@@ -6,7 +6,7 @@ import render from 'devextreme/core/renderer';
66import { triggerHandler } from 'devextreme/events' ;
77import domAdapter from 'devextreme/core/dom_adapter' ;
88import { getElement } from './utils' ;
9- import { DX_TEMPLATE_WRAPPER_CLASS } from './template' ;
9+ import { DX_TEMPLATE_WRAPPER_CLASS } from './template' ;
1010
1111export const NESTED_ITEM_TOKEN = new InjectionToken < string > ( 'nested-item' ) ;
1212
@@ -30,16 +30,16 @@ const warnAboutIncompatibleNestedItems = (containerClassName: string, itemClassN
3030 the nested ${ itemClassName } and ${ anotherItemClassName } components are incompatible.
3131 Ensure that all nested components in the content area match.` ) ;
3232 }
33- }
33+ } ;
3434
3535export const _updateNestedItems = (
36- items : QueryList < { propertyName : string , className : string , component : ICollectionNestedOption } > ,
37- setChildrenFn : ( propertyName : string , items : QueryList < ICollectionNestedOption > ) => void ,
38- { componentClassName, legacyClassNames } : { componentClassName : string , legacyClassNames : Record < string , string [ ] > }
36+ items : QueryList < { propertyName : string ; className : string ; component : ICollectionNestedOption } > ,
37+ setChildrenFn : ( propertyName : string , items : QueryList < ICollectionNestedOption > ) => void ,
38+ { componentClassName, legacyClassNames } : { componentClassName : string ; legacyClassNames : Record < string , string [ ] > } ,
3939) => {
40- let hasLegacy = { } ;
41- const groupedItems = { }
42-
40+ const hasLegacy = { } ;
41+ const groupedItems = { } ;
42+
4343 for ( let index = 0 ; index < items . length ; index ++ ) {
4444 const { propertyName, className, component } = items . get ( index ) ;
4545
@@ -48,7 +48,7 @@ export const _updateNestedItems = (
4848
4949 if ( legacyClassNames ) {
5050 const isLegacyClassName = legacyClassNames [ propertyName ] . includes ( className ) ;
51-
51+
5252 if ( index === 0 ) {
5353 hasLegacy [ propertyName ] = isLegacyClassName ;
5454 } else if ( hasLegacy [ propertyName ] !== isLegacyClassName ) {
@@ -248,17 +248,17 @@ export abstract class CollectionNestedOption extends BaseNestedOption implements
248248 _index : number ;
249249
250250 @ContentChildren ( NESTED_ITEM_TOKEN )
251- set _nestedItems ( value : QueryList < { propertyName : string , className : string , component : ICollectionNestedOption } > ) {
251+ set _nestedItems ( value : QueryList < { propertyName : string ; className : string ; component : ICollectionNestedOption } > ) {
252252 _updateNestedItems (
253- value ,
254- this . setChildren . bind ( this ) ,
255- {
256- componentClassName : this . constructor . name ,
257- legacyClassNames : null ,
258- }
253+ value ,
254+ this . setChildren . bind ( this ) ,
255+ {
256+ componentClassName : this . constructor . name ,
257+ legacyClassNames : null ,
258+ } ,
259259 ) ;
260260 }
261-
261+
262262 protected _fullOptionPath ( ) {
263263 return `${ this . _getOptionPath ( ) } [${ this . _index } ].` ;
264264 }
0 commit comments