diff --git a/src/app/components/dataview/dataview.ts b/src/app/components/dataview/dataview.ts index 09564a67ee2..b611e36bd09 100755 --- a/src/app/components/dataview/dataview.ts +++ b/src/app/components/dataview/dataview.ts @@ -232,7 +232,7 @@ export class DataView implements OnInit, AfterContentInit, OnDestroy, BlockableU * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. * @group Props */ - @Input({ transform: numberAttribute }) trackBy: Function = (index: number, item: any) => item; + @Input() trackBy: Function = (index: number, item: any) => item; /** * Comma separated list of fields in the object graph to search against. * @group Props diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 158d5dc9b18..eb5eab55fd2 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -371,12 +371,12 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). * @group Props */ - @Input({ transform: numberAttribute }) minFractionDigits: number | undefined; + @Input() minFractionDigits: number | undefined; /** * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). * @group Props */ - @Input({ transform: numberAttribute }) maxFractionDigits: number | undefined; + @Input() maxFractionDigits: number | undefined; /** * Text to display before the value. * @group Props diff --git a/src/app/components/orderlist/orderlist.ts b/src/app/components/orderlist/orderlist.ts index 6679cc6e26f..c2ce2a9ee7c 100755 --- a/src/app/components/orderlist/orderlist.ts +++ b/src/app/components/orderlist/orderlist.ts @@ -271,7 +271,7 @@ export class OrderList implements AfterViewChecked, AfterContentInit { * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. * @group Props */ - @Input({ transform: numberAttribute }) trackBy: Function = (index: number, item: any) => item; + @Input() trackBy: Function = (index: number, item: any) => item; /** * A list of values that are currently selected. diff --git a/src/app/components/picklist/picklist.ts b/src/app/components/picklist/picklist.ts index f64a891d5a9..bfc2ee6cc76 100755 --- a/src/app/components/picklist/picklist.ts +++ b/src/app/components/picklist/picklist.ts @@ -450,7 +450,7 @@ export class PickList implements AfterViewChecked, AfterContentInit { * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. Use sourceTrackBy or targetTrackBy in case different algorithms are needed per list. * @group Props */ - @Input({ transform: numberAttribute }) trackBy: Function = (index: number, item: any) => item; + @Input() trackBy: Function = (index: number, item: any) => item; /** * Function to optimize the dom operations by delegating to ngForTrackBy in source list, default algorithm checks for object identity. * @group Props diff --git a/src/app/components/slidemenu/slidemenu.ts b/src/app/components/slidemenu/slidemenu.ts index bb8af66a637..acc68f54c66 100755 --- a/src/app/components/slidemenu/slidemenu.ts +++ b/src/app/components/slidemenu/slidemenu.ts @@ -202,7 +202,7 @@ export class SlideMenuSub { @Input() easing: string = 'ease-out'; - @Input() effectDuration: any; + @Input({ transform: numberAttribute }) effectDuration: number; @Input({ transform: booleanAttribute }) autoDisplay: boolean | undefined; @@ -406,7 +406,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy { * Duration of the sliding animation in milliseconds. * @group Props */ - @Input({ transform: numberAttribute }) effectDuration: any = 250; + @Input({ transform: numberAttribute }) effectDuration: number = 250; /** * Easing animation to use for sliding. * @group Props diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 1a0c87cc9c5..dc152cd37c5 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -484,12 +484,12 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable * Defines if the row is selectable. * @group Props */ - @Input() rowSelectable: boolean | Function | undefined | any; + @Input() rowSelectable: (row: { data: any; index: number }) => boolean | undefined; /** * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. * @group Props */ - @Input({ transform: numberAttribute }) rowTrackBy: Function = (index: number, item: any) => item; + @Input() rowTrackBy: Function = (index: number, item: any) => item; /** * Defines if data is loaded and interacted with in lazy manner. * @group Props @@ -539,12 +539,12 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable * Map instance to keep the expanded rows where key of the map is the data key of the row. * @group Props */ - @Input({ transform: booleanAttribute }) expandedRowKeys: { [s: string]: boolean } = {}; + @Input() expandedRowKeys: { [s: string]: boolean } = {}; /** * Map instance to keep the rows being edited where key of the map is the data key of the row. * @group Props */ - @Input({ transform: booleanAttribute }) editingRowKeys: { [s: string]: boolean } = {}; + @Input() editingRowKeys: { [s: string]: boolean } = {}; /** * Whether multiple rows can be expanded at any time. Valid values are "multiple" and "single". * @group Props @@ -5169,12 +5169,12 @@ export class ColumnFilter implements AfterContentInit { * Defines minimum fraction of digits. * @group Props */ - @Input({ transform: numberAttribute }) minFractionDigits: number | undefined; + @Input() minFractionDigits: number | undefined; /** * Defines maximum fraction of digits. * @group Props */ - @Input({ transform: numberAttribute }) maxFractionDigits: number | undefined; + @Input() maxFractionDigits: number | undefined; /** * Defines prefix of the filter. * @group Props @@ -5807,9 +5807,9 @@ export class ColumnFilterFormElement implements OnInit { @Input() placeholder: string | undefined; - @Input({ transform: numberAttribute }) minFractionDigits: number | undefined; + @Input() minFractionDigits: number | undefined; - @Input({ transform: numberAttribute }) maxFractionDigits: number | undefined; + @Input() maxFractionDigits: number | undefined; @Input() prefix: string | undefined; diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index abb2b5adad9..8a69c548c94 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1010,7 +1010,7 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo * Function to optimize the node list rendering, default algorithm checks for object identity. * @group Props */ - @Input({ transform: numberAttribute }) trackBy: Function = (index: number, item: any) => item; + @Input() trackBy: Function = (index: number, item: any) => item; /** * Height of the node. * @group Props diff --git a/src/app/components/treetable/treetable.ts b/src/app/components/treetable/treetable.ts index d3cfb1ddd03..1afebdbba5a 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -502,7 +502,7 @@ export class TreeTable implements AfterContentInit, OnInit, OnDestroy, Blockable * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. * @group Props */ - @Input({ transform: numberAttribute }) rowTrackBy: Function = (index: number, item: any) => item; + @Input() rowTrackBy: Function = (index: number, item: any) => item; /** * An array of FilterMetadata objects to provide external filters. * @group Props diff --git a/src/app/showcase/doc/apidoc/index.json b/src/app/showcase/doc/apidoc/index.json index c87e1474577..3c9bd23b91b 100644 --- a/src/app/showcase/doc/apidoc/index.json +++ b/src/app/showcase/doc/apidoc/index.json @@ -20810,7 +20810,7 @@ "name": "effectDuration", "optional": false, "readonly": false, - "type": "any", + "type": "number", "default": "250", "description": "Duration of the sliding animation in milliseconds." }, @@ -22643,7 +22643,7 @@ "name": "rowSelectable", "optional": false, "readonly": false, - "type": "any", + "type": "(row: { data: any; index: number }) => boolean", "description": "Defines if the row is selectable." }, { @@ -28773,4 +28773,4 @@ } } } -} \ No newline at end of file +}