File tree Expand file tree Collapse file tree 18 files changed +20
-37
lines changed
card_view/content_view/content/card Expand file tree Collapse file tree 18 files changed +20
-37
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,6 @@ class Devices {
355355 }
356356
357357 _changeOrientation ( ) {
358- // @ts -expect-error
359358 const $window = $ ( this . _window ) ;
360359 const orientation = getHeight ( $window ) > getWidth ( $window ) ? 'portrait' : 'landscape' ;
361360
Original file line number Diff line number Diff line change @@ -124,9 +124,7 @@ export class TemplateWrapper extends InfernoComponent<TemplateWrapperProps> {
124124 const $oldContainerContent = $container . contents ( ) . toArray ( ) ;
125125
126126 const content = renderTemplateContent ( this . props , getPublicElement ( $container ) ) ;
127- // TODO Vinogradov: Fix the renderer function type.
128- // @ts -expect-error The renderer function's argument hasn't the full range of possible types
129- // (the Element[] type is missing).
127+
130128 replaceWith ( $ ( node ) , $ ( content ) ) ;
131129
132130 // NOTE: This is a dispose method that called before renderTemplate.
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/method-signature-style */
21/* eslint-disable max-classes-per-file */
32import { name as clickEventName } from '@js/common/core/events/click' ;
43import eventsEngine from '@js/common/core/events/core/events_engine' ;
@@ -808,7 +807,6 @@ export class AdaptiveColumnsController extends modules.ViewController {
808807 return ;
809808 }
810809
811- // @ts -expect-errors
812810 const $row = $ ( this . component . getRowElement ( rowIndex ) ) ;
813811
814812 this . setCommandAdaptiveAriaLabel ( $row , label ) ;
Original file line number Diff line number Diff line change @@ -483,7 +483,6 @@ export class ColumnHeadersView extends ColumnContextMenuMixin(ColumnsView) {
483483 $cellElement && result . push ( $cellElement . get ( 0 ) ) ;
484484 } ) ;
485485
486- // @ts -expect-error
487486 return $ ( result ) ;
488487 } if ( ! index || index < rowCount ) {
489488 return that . getCellElements ( index || 0 ) ;
Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ export default {
239239 } ,
240240
241241 calculateLoadPanelPosition ( $element ) {
242- // @ts -expect-error
243242 const $window = $ ( getWindow ( ) ) ;
244243 if ( getHeight ( $element ) > getHeight ( $window ) ) {
245244 return {
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/no-non-null-assertion */
21import { getPublicElement } from '@js/core/element' ;
32import $ from '@js/core/renderer' ;
43import type { FieldInfo } from '@ts/grids/new/grid_core/columns_controller/types' ;
@@ -20,7 +19,7 @@ export class Caption extends Component<CaptionProps> {
2019 private readonly onClick = ( e ) : void => {
2120 const args = {
2221 event : e ,
23- fieldCaptionElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
22+ fieldCaptionElement : getPublicElement ( $ ( this . ref . current ) ) ,
2423 field : this . props . field ,
2524 } ;
2625
@@ -30,7 +29,7 @@ export class Caption extends Component<CaptionProps> {
3029 private readonly onDblClick = ( e ) : void => {
3130 const args = {
3231 event : e ,
33- fieldCaptionElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
32+ fieldCaptionElement : getPublicElement ( $ ( this . ref . current ) ) ,
3433 field : this . props . field ,
3534 } ;
3635
@@ -58,7 +57,7 @@ export class Caption extends Component<CaptionProps> {
5857
5958 componentDidMount ( ) : void {
6059 const args = {
61- fieldCaptionElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
60+ fieldCaptionElement : getPublicElement ( $ ( this . ref . current ) ) ,
6261 field : this . props . field ,
6362 } ;
6463
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export class Card extends Component<CardProps> {
235235
236236 componentDidMount ( ) : void {
237237 const onPreparedArgs = {
238- cardElement : getPublicElement ( $ ( this . containerRef . current ! ) ) ,
238+ cardElement : getPublicElement ( $ ( this . containerRef . current ) ) ,
239239 card : this . props . card ,
240240 } ;
241241
@@ -260,7 +260,7 @@ export class Card extends Component<CardProps> {
260260 const args = {
261261 eventType : event . type ,
262262 card : this . props . card ,
263- cardElement : getPublicElement ( $ ( this . containerRef . current ! ) ) ,
263+ cardElement : getPublicElement ( $ ( this . containerRef . current ) ) ,
264264 event,
265265 } ;
266266
@@ -270,7 +270,7 @@ export class Card extends Component<CardProps> {
270270 onClick = ( event : MouseEvent ) : void => {
271271 const args = {
272272 card : this . props . card ,
273- cardElement : getPublicElement ( $ ( this . containerRef . current ! ) ) ,
273+ cardElement : getPublicElement ( $ ( this . containerRef . current ) ) ,
274274 event,
275275 } ;
276276
@@ -289,7 +289,7 @@ export class Card extends Component<CardProps> {
289289 onDblClick = ( event : MouseEvent ) : void => {
290290 const args = {
291291 card : this . props . card ,
292- cardElement : getPublicElement ( $ ( this . containerRef . current ! ) ) ,
292+ cardElement : getPublicElement ( $ ( this . containerRef . current ) ) ,
293293 event,
294294 } ;
295295
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/no-non-null-assertion */
21import { getPublicElement } from '@js/core/element' ;
32import $ from '@js/core/renderer' ;
43import type { FieldInfo } from '@ts/grids/new/grid_core/columns_controller/types' ;
@@ -27,7 +26,7 @@ export class ValueText extends Component<ValueTextProps> {
2726 private readonly onClick = ( e ) : void => {
2827 const args = {
2928 event : e ,
30- fieldValueElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
29+ fieldValueElement : getPublicElement ( $ ( this . ref . current ) ) ,
3130 field : this . props . field ,
3231 } ;
3332
@@ -37,7 +36,7 @@ export class ValueText extends Component<ValueTextProps> {
3736 private readonly onDblClick = ( e ) : void => {
3837 const args = {
3938 event : e ,
40- fieldValueElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
39+ fieldValueElement : getPublicElement ( $ ( this . ref . current ) ) ,
4140 field : this . props . field ,
4241 } ;
4342
@@ -75,7 +74,7 @@ export class ValueText extends Component<ValueTextProps> {
7574
7675 componentDidMount ( ) : void {
7776 const args = {
78- fieldValueElement : getPublicElement ( $ ( this . ref . current ! ) ) ,
77+ fieldValueElement : getPublicElement ( $ ( this . ref . current ) ) ,
7978 field : this . props . field ,
8079 } ;
8180
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/no-non-null-assertion */
21import type { FilterPanel } from '@js/common/grids' ;
32import $ from '@js/core/renderer' ;
43import type { Properties as FilterBuilderProperties } from '@js/ui/filter_builder' ;
@@ -34,12 +33,12 @@ export class FilterPanelComponent extends Component<FilterPanelProps> {
3433 }
3534
3635 public componentDidMount ( ) : void {
37- this . props . oldFilterPanelView . render ( $ ( this . filterPanelRef . current ! ) ) ;
38- this . props . oldFilterBuilderView . render ( $ ( this . filterBuilderRef . current ! ) ) ;
36+ this . props . oldFilterPanelView . render ( $ ( this . filterPanelRef . current ) ) ;
37+ this . props . oldFilterBuilderView . render ( $ ( this . filterBuilderRef . current ) ) ;
3938 }
4039
4140 public componentDidUpdate ( ) : void {
42- this . props . oldFilterPanelView . render ( $ ( this . filterPanelRef . current ! ) ) ;
43- this . props . oldFilterBuilderView . render ( $ ( this . filterBuilderRef . current ! ) ) ;
41+ this . props . oldFilterPanelView . render ( $ ( this . filterPanelRef . current ) ) ;
42+ this . props . oldFilterBuilderView . render ( $ ( this . filterBuilderRef . current ) ) ;
4443 }
4544}
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/no-non-null-assertion */
21import type { dxElementWrapper } from '@js/core/renderer' ;
32import $ from '@js/core/renderer' ;
43import { BaseInfernoComponent } from '@ts/core/r1/runtime/inferno/base_component' ;
@@ -15,10 +14,10 @@ export function TemplateWrapper<TProps = {}>(template: TemplateType<TProps>) {
1514 private readonly ref = createRef < HTMLDivElement > ( ) ;
1615
1716 private renderTemplate ( ) : void {
18- $ ( this . ref . current ! ) . empty ( ) ;
17+ $ ( this . ref . current ) . empty ( ) ;
1918
2019 template . render ( {
21- container : $ ( this . ref . current ! ) ,
20+ container : $ ( this . ref . current ) ,
2221 model : this . props ,
2322 } ) ;
2423 }
You can’t perform that action at this time.
0 commit comments