@progress/kendo-angular-dropdowns 6.0.2 → 7.0.0-dev.202204150937
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/es2015/autocomplete → autocomplete}/autocomplete.component.d.ts +47 -35
- package/{dist/es2015/autocomplete → autocomplete}/autocomplete.module.d.ts +7 -0
- package/bundles/kendo-angular-dropdowns.umd.js +5 -0
- package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-cell-template.directive.d.ts +3 -0
- package/{dist/es2015/comboboxes → comboboxes}/combobox-column/column-header-template.directive.d.ts +3 -0
- package/{dist/es2015/comboboxes → comboboxes}/combobox-column/combobox-column.component.d.ts +3 -0
- package/{dist/es2015/comboboxes → comboboxes}/combobox-column/util.d.ts +0 -0
- package/{dist/es2015/comboboxes → comboboxes}/combobox.component.d.ts +53 -39
- package/comboboxes/combobox.module.d.ts +31 -0
- package/{dist/es2015/comboboxes → comboboxes}/multicolumncombobox.component.d.ts +8 -5
- package/{dist/es2015/common → common}/constants/error-messages.d.ts +27 -27
- package/{dist/es2015/common → common}/constants/touch-enabled.d.ts +0 -0
- package/{dist/es2015/common → common}/data.service.d.ts +6 -2
- package/{dist/es2015/common → common}/disabled-items/disabled-items.service.d.ts +3 -0
- package/{dist/es2015/common → common}/disabled-items/item-disabled.d.ts +0 -0
- package/{dist/es2015/common → common}/filter-input.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/filtering/filter-settings.d.ts +0 -0
- package/{dist/es2015/common → common}/filtering/filter.directive.d.ts +6 -2
- package/{dist/es2015/common → common}/filtering/filterable-component.d.ts +0 -0
- package/{dist/es2015/common → common}/list-item.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/list.component.d.ts +11 -6
- package/{dist/es2015/common → common}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/common → common}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/localization/messages.d.ts +3 -0
- package/{dist/es2015/common → common}/models/checkboxes-settings.d.ts +1 -1
- package/{dist/es2015/common → common}/models/direction.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +1 -7
- package/{dist/es2015/common → common}/models/list-type.d.ts +0 -0
- package/{dist/es2015/common → common}/models/page-change-event.d.ts +0 -0
- package/{dist/es2015/common → common}/models/popup-settings.d.ts +0 -0
- package/{dist/es2015/common → common}/models/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/models/remove-tag-event.d.ts +4 -1
- package/{dist/es2015/common → common}/models/rounded.d.ts +1 -8
- package/common/models/size.d.ts +8 -0
- package/{dist/es2015/common → common}/models/virtualization-settings.d.ts +0 -0
- package/{dist/es2015/common → common}/navigation/navigation-action.d.ts +0 -0
- package/{dist/es2015/common → common}/navigation/navigation.service.d.ts +3 -0
- package/{dist/es2015/common → common}/searchbar.component.d.ts +9 -4
- package/{dist/es2015/common → common}/selection/selectable.directive.d.ts +5 -2
- package/{dist/es2015/common → common}/selection/selection.service.d.ts +6 -2
- package/common/shared-directives.module.d.ts +37 -0
- package/common/shared.module.d.ts +26 -0
- package/{dist/es2015/common → common}/taglist.component.d.ts +7 -3
- package/{dist/es2015/common → common}/templates/custom-item-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/fixed-group-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/footer-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/group-tag-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/group-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/header-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/item-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/no-data-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/tag-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/templates/template-context.directive.d.ts +4 -1
- package/{dist/es2015/common → common}/templates/value-template.directive.d.ts +3 -0
- package/{dist/es2015/common → common}/util.d.ts +3 -2
- package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.component.d.ts +61 -48
- package/{dist/es2015/dropdownlist → dropdownlist}/dropdownlist.module.d.ts +7 -0
- package/{dist/es2015/dropdowns.module.d.ts → dropdowns.module.d.ts} +9 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/base-check.directive.d.ts +3 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check-all.directive.d.ts +5 -2
- package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/check.directive.d.ts +3 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checkable-settings.d.ts +0 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/checked-state/checked-item.d.ts +0 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/flat-binding.directive.d.ts +10 -2
- package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +6 -4
- package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/flat-binding.directive.d.ts +10 -2
- package/{dist/es2015/dropdowntrees → dropdowntrees}/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +6 -4
- package/{dist/es2015/dropdowntrees → dropdowntrees}/dropdowntree.component.d.ts +62 -45
- package/dropdowntrees/dropdowntrees.module.d.ts +25 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/expanded-state/expand.directive.d.ts +5 -1
- package/{dist/es2015/dropdowntrees → dropdowntrees}/multiselecttree.component.d.ts +70 -52
- package/{dist/es2015/dropdowntrees → dropdowntrees}/summary-tag/summary-tag.directive.d.ts +3 -0
- package/{dist/es2015/dropdowntrees → dropdowntrees}/templates/node-template.directive.d.ts +3 -0
- package/{dist/es2015 → esm2015}/autocomplete/autocomplete.component.js +296 -258
- package/esm2015/autocomplete/autocomplete.module.js +36 -0
- package/{dist/es2015 → esm2015}/comboboxes/combobox-column/column-cell-template.directive.js +12 -11
- package/esm2015/comboboxes/combobox-column/column-header-template.directive.js +26 -0
- package/esm2015/comboboxes/combobox-column/combobox-column.component.js +59 -0
- package/{dist/es2015 → esm2015}/comboboxes/combobox-column/util.js +0 -2
- package/{dist/es2015 → esm2015}/comboboxes/combobox.component.js +321 -281
- package/{dist/es2015 → esm2015}/comboboxes/combobox.module.js +23 -14
- package/esm2015/comboboxes/multicolumncombobox.component.js +653 -0
- package/{dist/es2015 → esm2015}/common/constants/error-messages.js +0 -1
- package/{dist/es2015 → esm2015}/common/constants/touch-enabled.js +0 -0
- package/{dist/es2015 → esm2015}/common/data.service.js +8 -10
- package/{dist/es2015 → esm2015}/common/disabled-items/disabled-items.service.js +9 -9
- package/{dist/es2015 → esm2015}/common/disabled-items/item-disabled.js +1 -0
- package/esm2015/common/filter-input.directive.js +34 -0
- package/{dist/es2015 → esm2015}/common/filtering/filter-settings.js +1 -0
- package/{dist/es2015 → esm2015}/common/filtering/filter.directive.js +19 -24
- package/{dist/es2015 → esm2015}/common/filtering/filterable-component.js +0 -0
- package/esm2015/common/list-item.directive.js +22 -0
- package/{dist/es2015 → esm2015}/common/list.component.js +194 -126
- package/esm2015/common/localization/custom-messages.component.js +41 -0
- package/esm2015/common/localization/localized-messages.directive.js +44 -0
- package/esm2015/common/localization/messages.js +25 -0
- package/{dist/es2015 → esm2015}/common/models/checkboxes-settings.js +0 -0
- package/{dist/es2015 → esm2015}/common/models/direction.js +1 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/list-type.js +1 -0
- package/{dist/es → esm2015}/common/models/page-change-event.js +1 -0
- package/{dist/es → esm2015}/common/models/popup-settings.js +1 -0
- package/{dist/es2015 → esm2015}/common/models/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/common/models/remove-tag-event.js +0 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es2015 → esm2015}/common/models/virtualization-settings.js +0 -0
- package/{dist/es → esm2015}/common/navigation/navigation-action.js +1 -0
- package/{dist/es2015 → esm2015}/common/navigation/navigation.service.js +10 -11
- package/{dist/es2015 → esm2015}/common/searchbar.component.js +84 -97
- package/esm2015/common/selection/selectable.directive.js +76 -0
- package/{dist/es2015 → esm2015}/common/selection/selection.service.js +8 -10
- package/{dist/es2015 → esm2015}/common/shared-directives.module.js +37 -10
- package/esm2015/common/shared.module.js +59 -0
- package/{dist/es2015 → esm2015}/common/taglist.component.js +112 -87
- package/{dist/es2015 → esm2015}/common/templates/custom-item-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/templates/fixed-group-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/templates/footer-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/common/templates/group-tag-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/templates/group-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/templates/header-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/common/templates/item-template.directive.js +12 -11
- package/{dist/es2015 → esm2015}/common/templates/no-data-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/templates/tag-template.directive.js +12 -12
- package/esm2015/common/templates/template-context.directive.js +33 -0
- package/{dist/es2015 → esm2015}/common/templates/value-template.directive.js +12 -12
- package/{dist/es2015 → esm2015}/common/util.js +1 -3
- package/{dist/es2015 → esm2015}/dropdownlist/dropdownlist.component.js +393 -325
- package/esm2015/dropdownlist/dropdownlist.module.js +37 -0
- package/{dist/es → esm2015}/dropdowns.module.js +12 -12
- package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/base-check.directive.js +13 -12
- package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check-all.directive.js +39 -46
- package/{dist/es2015 → esm2015}/dropdowntrees/checked-state/check.directive.js +20 -27
- package/{dist/es → esm2015}/dropdowntrees/checked-state/checkable-settings.js +1 -0
- package/{dist/es → esm2015}/dropdowntrees/checked-state/checked-item.js +1 -0
- package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +51 -0
- package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +69 -0
- package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +50 -0
- package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +47 -0
- package/{dist/es2015 → esm2015}/dropdowntrees/dropdowntree.component.js +410 -343
- package/esm2015/dropdowntrees/dropdowntrees.module.js +61 -0
- package/esm2015/dropdowntrees/expanded-state/expand.directive.js +38 -0
- package/{dist/es2015 → esm2015}/dropdowntrees/multiselecttree.component.js +474 -378
- package/{dist/es2015 → esm2015}/dropdowntrees/summary-tag/summary-tag.directive.js +15 -15
- package/esm2015/dropdowntrees/templates/node-template.directive.js +28 -0
- package/{dist/es2015/common/shared.module.d.ts → esm2015/kendo-angular-dropdowns.js} +2 -3
- package/{dist/es → esm2015}/main.js +15 -0
- package/{dist/es2015 → esm2015}/multiselect/multiselect.component.js +367 -314
- package/{dist/es2015 → esm2015}/multiselect/multiselect.module.js +19 -14
- package/{dist/es2015 → esm2015}/multiselect/summary-tag.directive.js +15 -15
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dropdowns.js} +8066 -7210
- package/kendo-angular-dropdowns.d.ts +9 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +16 -1
- package/{dist/es2015/multiselect → multiselect}/multiselect.component.d.ts +54 -39
- package/{dist/es2015/multiselect → multiselect}/multiselect.module.d.ts +9 -0
- package/{dist/es2015/multiselect → multiselect}/summary-tag.directive.d.ts +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +38 -114
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-dropdowns.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/autocomplete/autocomplete.component.js +0 -1201
- package/dist/es/autocomplete/autocomplete.module.js +0 -36
- package/dist/es/comboboxes/combobox-column/column-cell-template.directive.js +0 -29
- package/dist/es/comboboxes/combobox-column/column-header-template.directive.js +0 -26
- package/dist/es/comboboxes/combobox-column/combobox-column.component.js +0 -78
- package/dist/es/comboboxes/combobox-column/util.js +0 -57
- package/dist/es/comboboxes/combobox.component.js +0 -1622
- package/dist/es/comboboxes/combobox.module.js +0 -52
- package/dist/es/comboboxes/multicolumncombobox.component.js +0 -230
- package/dist/es/common/constants/error-messages.js +0 -62
- package/dist/es/common/constants/touch-enabled.js +0 -9
- package/dist/es/common/data.service.js +0 -250
- package/dist/es/common/disabled-items/disabled-items.service.js +0 -45
- package/dist/es/common/disabled-items/item-disabled.js +0 -4
- package/dist/es/common/filter-input.directive.js +0 -37
- package/dist/es/common/filtering/filter-settings.js +0 -4
- package/dist/es/common/filtering/filter.directive.js +0 -141
- package/dist/es/common/filtering/filterable-component.js +0 -17
- package/dist/es/common/list-item.directive.js +0 -22
- package/dist/es/common/list.component.js +0 -503
- package/dist/es/common/localization/custom-messages.component.js +0 -44
- package/dist/es/common/localization/localized-messages.directive.js +0 -35
- package/dist/es/common/localization/messages.js +0 -34
- package/dist/es/common/models/checkboxes-settings.js +0 -15
- package/dist/es/common/models/direction.js +0 -4
- package/dist/es/common/models/preventable-event.js +0 -29
- package/dist/es/common/models/remove-tag-event.js +0 -24
- package/dist/es/common/models/virtualization-settings.js +0 -25
- package/dist/es/common/navigation/navigation.service.js +0 -147
- package/dist/es/common/searchbar.component.js +0 -253
- package/dist/es/common/selection/selectable.directive.js +0 -93
- package/dist/es/common/selection/selection.service.js +0 -107
- package/dist/es/common/shared-directives.module.js +0 -60
- package/dist/es/common/shared.module.js +0 -45
- package/dist/es/common/taglist.component.js +0 -179
- package/dist/es/common/templates/custom-item-template.directive.js +0 -47
- package/dist/es/common/templates/fixed-group-template.directive.js +0 -54
- package/dist/es/common/templates/footer-template.directive.js +0 -47
- package/dist/es/common/templates/group-tag-template.directive.js +0 -46
- package/dist/es/common/templates/group-template.directive.js +0 -54
- package/dist/es/common/templates/header-template.directive.js +0 -47
- package/dist/es/common/templates/item-template.directive.js +0 -46
- package/dist/es/common/templates/no-data-template.directive.js +0 -48
- package/dist/es/common/templates/tag-template.directive.js +0 -45
- package/dist/es/common/templates/template-context.directive.js +0 -40
- package/dist/es/common/templates/value-template.directive.js +0 -49
- package/dist/es/common/util.js +0 -337
- package/dist/es/dropdownlist/dropdownlist.component.js +0 -1649
- package/dist/es/dropdownlist/dropdownlist.module.js +0 -37
- package/dist/es/dropdowntrees/checked-state/base-check.directive.js +0 -68
- package/dist/es/dropdowntrees/checked-state/check-all.directive.js +0 -181
- package/dist/es/dropdowntrees/checked-state/check.directive.js +0 -169
- package/dist/es/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -32
- package/dist/es/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -42
- package/dist/es/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -32
- package/dist/es/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -42
- package/dist/es/dropdowntrees/dropdowntree.component.js +0 -1394
- package/dist/es/dropdowntrees/dropdowntrees.module.js +0 -45
- package/dist/es/dropdowntrees/expanded-state/expand.directive.js +0 -28
- package/dist/es/dropdowntrees/multiselecttree.component.js +0 -1683
- package/dist/es/dropdowntrees/summary-tag/summary-tag.directive.js +0 -63
- package/dist/es/dropdowntrees/templates/node-template.directive.js +0 -28
- package/dist/es/index.js +0 -30
- package/dist/es/multiselect/multiselect.component.js +0 -1734
- package/dist/es/multiselect/multiselect.module.js +0 -50
- package/dist/es/multiselect/summary-tag.directive.js +0 -65
- package/dist/es/package-metadata.js +0 -15
- package/dist/es2015/autocomplete/autocomplete.module.js +0 -33
- package/dist/es2015/comboboxes/combobox-column/column-header-template.directive.js +0 -25
- package/dist/es2015/comboboxes/combobox-column/combobox-column.component.js +0 -81
- package/dist/es2015/comboboxes/combobox.module.d.ts +0 -20
- package/dist/es2015/comboboxes/multicolumncombobox.component.js +0 -417
- package/dist/es2015/common/filter-input.directive.js +0 -35
- package/dist/es2015/common/list-item.directive.js +0 -21
- package/dist/es2015/common/localization/custom-messages.component.js +0 -36
- package/dist/es2015/common/localization/localized-messages.directive.js +0 -39
- package/dist/es2015/common/localization/messages.js +0 -28
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/list-type.js +0 -4
- package/dist/es2015/common/models/page-change-event.js +0 -4
- package/dist/es2015/common/models/popup-settings.js +0 -4
- package/dist/es2015/common/models/rounded.js +0 -4
- package/dist/es2015/common/models/size.d.ts +0 -14
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/common/navigation/navigation-action.js +0 -24
- package/dist/es2015/common/selection/selectable.directive.js +0 -84
- package/dist/es2015/common/shared-directives.module.d.ts +0 -20
- package/dist/es2015/common/shared.module.js +0 -42
- package/dist/es2015/common/templates/template-context.directive.js +0 -35
- package/dist/es2015/dropdownlist/dropdownlist.module.js +0 -34
- package/dist/es2015/dropdowns.module.js +0 -50
- package/dist/es2015/dropdowntrees/checked-state/checkable-settings.js +0 -4
- package/dist/es2015/dropdowntrees/checked-state/checked-item.js +0 -4
- package/dist/es2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -30
- package/dist/es2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -35
- package/dist/es2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -30
- package/dist/es2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -35
- package/dist/es2015/dropdowntrees/dropdowntrees.module.d.ts +0 -9
- package/dist/es2015/dropdowntrees/dropdowntrees.module.js +0 -42
- package/dist/es2015/dropdowntrees/expanded-state/expand.directive.js +0 -26
- package/dist/es2015/dropdowntrees/templates/node-template.directive.js +0 -27
- package/dist/es2015/index.d.ts +0 -30
- package/dist/es2015/index.js +0 -30
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -44
- package/dist/fesm5/index.js +0 -13097
- package/dist/npm/autocomplete/autocomplete.component.js +0 -1203
- package/dist/npm/autocomplete/autocomplete.module.js +0 -38
- package/dist/npm/comboboxes/combobox-column/column-cell-template.directive.js +0 -31
- package/dist/npm/comboboxes/combobox-column/column-header-template.directive.js +0 -28
- package/dist/npm/comboboxes/combobox-column/combobox-column.component.js +0 -80
- package/dist/npm/comboboxes/combobox-column/util.js +0 -59
- package/dist/npm/comboboxes/combobox.component.js +0 -1624
- package/dist/npm/comboboxes/combobox.module.js +0 -54
- package/dist/npm/comboboxes/multicolumncombobox.component.js +0 -232
- package/dist/npm/common/constants/error-messages.js +0 -64
- package/dist/npm/common/constants/touch-enabled.js +0 -11
- package/dist/npm/common/data.service.js +0 -252
- package/dist/npm/common/disabled-items/disabled-items.service.js +0 -47
- package/dist/npm/common/disabled-items/item-disabled.js +0 -6
- package/dist/npm/common/filter-input.directive.js +0 -39
- package/dist/npm/common/filtering/filter-settings.js +0 -6
- package/dist/npm/common/filtering/filter.directive.js +0 -143
- package/dist/npm/common/filtering/filterable-component.js +0 -19
- package/dist/npm/common/list-item.directive.js +0 -24
- package/dist/npm/common/list.component.js +0 -505
- package/dist/npm/common/localization/custom-messages.component.js +0 -46
- package/dist/npm/common/localization/localized-messages.directive.js +0 -37
- package/dist/npm/common/localization/messages.js +0 -36
- package/dist/npm/common/models/checkboxes-settings.js +0 -17
- package/dist/npm/common/models/direction.js +0 -6
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/list-type.js +0 -6
- package/dist/npm/common/models/page-change-event.js +0 -6
- package/dist/npm/common/models/popup-settings.js +0 -6
- package/dist/npm/common/models/preventable-event.js +0 -31
- package/dist/npm/common/models/remove-tag-event.js +0 -26
- package/dist/npm/common/models/rounded.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/models/virtualization-settings.js +0 -27
- package/dist/npm/common/navigation/navigation-action.js +0 -26
- package/dist/npm/common/navigation/navigation.service.js +0 -149
- package/dist/npm/common/searchbar.component.js +0 -255
- package/dist/npm/common/selection/selectable.directive.js +0 -95
- package/dist/npm/common/selection/selection.service.js +0 -109
- package/dist/npm/common/shared-directives.module.js +0 -62
- package/dist/npm/common/shared.module.js +0 -47
- package/dist/npm/common/taglist.component.js +0 -181
- package/dist/npm/common/templates/custom-item-template.directive.js +0 -49
- package/dist/npm/common/templates/fixed-group-template.directive.js +0 -56
- package/dist/npm/common/templates/footer-template.directive.js +0 -49
- package/dist/npm/common/templates/group-tag-template.directive.js +0 -48
- package/dist/npm/common/templates/group-template.directive.js +0 -56
- package/dist/npm/common/templates/header-template.directive.js +0 -49
- package/dist/npm/common/templates/item-template.directive.js +0 -48
- package/dist/npm/common/templates/no-data-template.directive.js +0 -50
- package/dist/npm/common/templates/tag-template.directive.js +0 -47
- package/dist/npm/common/templates/template-context.directive.js +0 -42
- package/dist/npm/common/templates/value-template.directive.js +0 -51
- package/dist/npm/common/util.js +0 -339
- package/dist/npm/dropdownlist/dropdownlist.component.js +0 -1651
- package/dist/npm/dropdownlist/dropdownlist.module.js +0 -39
- package/dist/npm/dropdowns.module.js +0 -55
- package/dist/npm/dropdowntrees/checked-state/base-check.directive.js +0 -70
- package/dist/npm/dropdowntrees/checked-state/check-all.directive.js +0 -183
- package/dist/npm/dropdowntrees/checked-state/check.directive.js +0 -171
- package/dist/npm/dropdowntrees/checked-state/checkable-settings.js +0 -6
- package/dist/npm/dropdowntrees/checked-state/checked-item.js +0 -6
- package/dist/npm/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +0 -34
- package/dist/npm/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +0 -44
- package/dist/npm/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +0 -34
- package/dist/npm/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +0 -44
- package/dist/npm/dropdowntrees/dropdowntree.component.js +0 -1399
- package/dist/npm/dropdowntrees/dropdowntrees.module.js +0 -47
- package/dist/npm/dropdowntrees/expanded-state/expand.directive.js +0 -30
- package/dist/npm/dropdowntrees/multiselecttree.component.js +0 -1688
- package/dist/npm/dropdowntrees/summary-tag/summary-tag.directive.js +0 -65
- package/dist/npm/dropdowntrees/templates/node-template.directive.js +0 -30
- package/dist/npm/index.js +0 -55
- package/dist/npm/main.js +0 -86
- package/dist/npm/multiselect/multiselect.component.js +0 -1736
- package/dist/npm/multiselect/multiselect.module.js +0 -52
- package/dist/npm/multiselect/summary-tag.directive.js +0 -67
- package/dist/npm/package-metadata.js +0 -17
- package/dist/systemjs/kendo-angular-dropdowns.js +0 -5
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
/* tslint:disable:max-line-length */
|
|
7
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
8
|
-
/**
|
|
9
|
-
* Renders content when no data is available. To define the no-data template, nest a `<ng-template>` tag
|
|
10
|
-
* with the `kendo<ComponentName>NoDataTemplate` directive inside the component tag.
|
|
11
|
-
*
|
|
12
|
-
* - [Using `NoDataTemplate` with the AutoComplete]({% slug templates_autocomplete %}#toc-no-data-template)
|
|
13
|
-
* - [Using `NoDataTemplate` with the ComboBox]({% slug templates_combobox %}#toc-no-data-template)
|
|
14
|
-
* - [Using `NoDataTemplate` with the MultiColumnComboBox]({% slug templates_multicolumncombobox %}#toc-no-data-template)
|
|
15
|
-
* - [Using `NoDataTemplate` with the DropDownList]({% slug templates_ddl %}#toc-no-data-template)
|
|
16
|
-
* - [Using `NoDataTemplate` with the DropDownTree]({% slug templates_ddt %}#toc-no-data-template)
|
|
17
|
-
* - [Using `NoDataTemplate` with the MultiSelect]({% slug templates_multiselect %}#toc-no-data-template)
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* _@Component({
|
|
22
|
-
* selector: 'my-app',
|
|
23
|
-
* template: `
|
|
24
|
-
* <kendo-combobox [data]="listItems">
|
|
25
|
-
* <ng-template kendoComboBoxNoDataTemplate>
|
|
26
|
-
* <h4>No data!</h4>
|
|
27
|
-
* </ng-template>
|
|
28
|
-
* </kendo-combobox>
|
|
29
|
-
* `
|
|
30
|
-
* })
|
|
31
|
-
* class AppComponent {
|
|
32
|
-
* public listItems: Array<string> = [];
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
var NoDataTemplateDirective = /** @class */ (function () {
|
|
37
|
-
function NoDataTemplateDirective(templateRef) {
|
|
38
|
-
this.templateRef = templateRef;
|
|
39
|
-
}
|
|
40
|
-
NoDataTemplateDirective = tslib_1.__decorate([
|
|
41
|
-
Directive({
|
|
42
|
-
selector: '[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]'
|
|
43
|
-
}),
|
|
44
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
45
|
-
], NoDataTemplateDirective);
|
|
46
|
-
return NoDataTemplateDirective;
|
|
47
|
-
}());
|
|
48
|
-
export { NoDataTemplateDirective };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
/* tslint:disable:max-line-length */
|
|
7
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
8
|
-
/**
|
|
9
|
-
* Renders the selected tag value of the MultiSelect
|
|
10
|
-
* ([see example]({% slug templates_multiselect %}#toc-tag-template)).
|
|
11
|
-
* The template context is set to the current component.
|
|
12
|
-
* To get a reference to the current data item, use the `let-dataItem` directive.
|
|
13
|
-
*
|
|
14
|
-
* > The `TagTemplate` directive can only be used with the MultiSelect and MultiSelectTree components.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* _@Component({
|
|
19
|
-
* selector: 'my-app',
|
|
20
|
-
* template: `
|
|
21
|
-
* <kendo-multiselect [data]="items">
|
|
22
|
-
* <ng-template kendoMultiSelectTagTemplate let-dataItem>
|
|
23
|
-
* <span>{{dataItem}} option</span>
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-multiselect>
|
|
26
|
-
* `
|
|
27
|
-
* })
|
|
28
|
-
* class AppComponent {
|
|
29
|
-
* public items: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
var TagTemplateDirective = /** @class */ (function () {
|
|
34
|
-
function TagTemplateDirective(templateRef) {
|
|
35
|
-
this.templateRef = templateRef;
|
|
36
|
-
}
|
|
37
|
-
TagTemplateDirective = tslib_1.__decorate([
|
|
38
|
-
Directive({
|
|
39
|
-
selector: '[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]'
|
|
40
|
-
}),
|
|
41
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
42
|
-
], TagTemplateDirective);
|
|
43
|
-
return TagTemplateDirective;
|
|
44
|
-
}());
|
|
45
|
-
export { TagTemplateDirective };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ViewContainerRef, Input } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var TemplateContextDirective = /** @class */ (function () {
|
|
11
|
-
function TemplateContextDirective(viewContainerRef) {
|
|
12
|
-
this.viewContainerRef = viewContainerRef;
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(TemplateContextDirective.prototype, "templateContext", {
|
|
15
|
-
set: function (context) {
|
|
16
|
-
if (this.insertedViewRef) {
|
|
17
|
-
this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef));
|
|
18
|
-
this.insertedViewRef = undefined;
|
|
19
|
-
}
|
|
20
|
-
if (context.templateRef) {
|
|
21
|
-
this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true
|
|
26
|
-
});
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
Input(),
|
|
29
|
-
tslib_1.__metadata("design:type", Object),
|
|
30
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
31
|
-
], TemplateContextDirective.prototype, "templateContext", null);
|
|
32
|
-
TemplateContextDirective = tslib_1.__decorate([
|
|
33
|
-
Directive({
|
|
34
|
-
selector: '[templateContext]' // tslint:disable-line
|
|
35
|
-
}),
|
|
36
|
-
tslib_1.__metadata("design:paramtypes", [ViewContainerRef])
|
|
37
|
-
], TemplateContextDirective);
|
|
38
|
-
return TemplateContextDirective;
|
|
39
|
-
}());
|
|
40
|
-
export { TemplateContextDirective };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
/* tslint:disable:max-line-length */
|
|
7
|
-
import { Directive, TemplateRef } from '@angular/core';
|
|
8
|
-
/**
|
|
9
|
-
* Renders the selected value of the dropdown. To define the header template, nest an `<ng-template>` tag
|
|
10
|
-
* with the `kendo<ComponentName>ValueTemplate` directive inside the component tag.
|
|
11
|
-
*
|
|
12
|
-
* The template context is set to the current component.
|
|
13
|
-
* To get a reference to the current data item, use the `let-dataItem` directive.
|
|
14
|
-
*
|
|
15
|
-
* > The `ValueTemplate` directive can only be used with the DropDownList and DropDownTree components.
|
|
16
|
-
*
|
|
17
|
-
* - [Using `ValueTemplate` with the DropDownList]({% slug templates_ddl %}#toc-value-template)
|
|
18
|
-
* - [Using `ValueTemplate` with the DropDownTree]({% slug templates_ddt %}#toc-value-template)
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* _@Component({
|
|
23
|
-
* selector: 'my-app',
|
|
24
|
-
* template: `
|
|
25
|
-
* <kendo-dropdownlist [data]="listItems">
|
|
26
|
-
* <ng-template kendoDropDownListValueTemplate let-dataItem>
|
|
27
|
-
* <span>{{dataItem}} option</span>
|
|
28
|
-
* </ng-template>
|
|
29
|
-
* </kendo-dropdownlist>
|
|
30
|
-
* `
|
|
31
|
-
* })
|
|
32
|
-
* class AppComponent {
|
|
33
|
-
* public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
var ValueTemplateDirective = /** @class */ (function () {
|
|
38
|
-
function ValueTemplateDirective(templateRef) {
|
|
39
|
-
this.templateRef = templateRef;
|
|
40
|
-
}
|
|
41
|
-
ValueTemplateDirective = tslib_1.__decorate([
|
|
42
|
-
Directive({
|
|
43
|
-
selector: '[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]'
|
|
44
|
-
}),
|
|
45
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
46
|
-
], ValueTemplateDirective);
|
|
47
|
-
return ValueTemplateDirective;
|
|
48
|
-
}());
|
|
49
|
-
export { ValueTemplateDirective };
|
package/dist/es/common/util.js
DELETED
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/* tslint:disable:no-bitwise */
|
|
6
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
-
import { getter as fieldAccessor } from '@progress/kendo-common';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export var isNumber = function (value) { return !isNaN(value); };
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export var guid = function () {
|
|
20
|
-
var id = "";
|
|
21
|
-
var i;
|
|
22
|
-
var random;
|
|
23
|
-
for (i = 0; i < 32; i++) {
|
|
24
|
-
random = Math.random() * 16 | 0;
|
|
25
|
-
if (i === 8 || i === 12 || i === 16 || i === 20) {
|
|
26
|
-
id += "-";
|
|
27
|
-
}
|
|
28
|
-
id += (i === 12 ? 4 : (i === 16 ? (random & 3 | 8) : random)).toString(16);
|
|
29
|
-
}
|
|
30
|
-
return id;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
export var combineStr = function (begin, end) {
|
|
36
|
-
return begin.concat(end.substr(end.toLowerCase().indexOf(begin.toLowerCase()) + begin.length));
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export var isWindowAvailable = function () { return typeof window !== 'undefined'; };
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export var isArray = function (value) { return Array.isArray(value); };
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export var isObject = function (value) { return isPresent(value) && typeof value === 'object'; };
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export var isEmptyString = function (value) { return typeof value === 'string' && value.length === 0; };
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
export var resolveValuesInArray = function (values, data, valueField) {
|
|
58
|
-
if (data === void 0) { data = []; }
|
|
59
|
-
return values
|
|
60
|
-
.map(function (value) {
|
|
61
|
-
return data.find(function (item) { return getter(item, valueField) === value; });
|
|
62
|
-
})
|
|
63
|
-
.filter(function (value) { return value !== undefined; });
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
export var validateComplexValues = function (values, valueField) {
|
|
69
|
-
return isArray(values) && values.filter(function (item) {
|
|
70
|
-
return isObject(item) && isPresent(getter(item, valueField));
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
export var resolveAllValues = function (value, data, valueField) {
|
|
77
|
-
var customValues = validateComplexValues(value, valueField) || [];
|
|
78
|
-
var resolvedValues = resolveValuesInArray(value, data, valueField) || [];
|
|
79
|
-
return resolvedValues.concat(customValues);
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
export var isObjectArray = function (values) {
|
|
85
|
-
return isArray(values) && values.every(function (item) { return isObject(item); });
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
*/
|
|
90
|
-
export var selectedIndices = function (values, data, valueField) {
|
|
91
|
-
var extractedValues = data.map(function (item) {
|
|
92
|
-
return isPresent(item) && isPresent(getter(item, valueField)) ? getter(item, valueField) : item;
|
|
93
|
-
});
|
|
94
|
-
return values.reduce(function (arr, item) {
|
|
95
|
-
var value = isPresent(item) && isPresent(getter(item, valueField)) ? getter(item, valueField) : item;
|
|
96
|
-
var index = extractedValues.indexOf(value);
|
|
97
|
-
if (index !== -1) {
|
|
98
|
-
arr.push(index);
|
|
99
|
-
}
|
|
100
|
-
return arr;
|
|
101
|
-
}, []);
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*/
|
|
106
|
-
export var getter = function (dataItem, field) {
|
|
107
|
-
if (!isPresent(dataItem)) {
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
if (!isPresent(field) || !isObject(dataItem)) {
|
|
111
|
-
return dataItem;
|
|
112
|
-
}
|
|
113
|
-
// creates a field accessor supporting nested fields processing
|
|
114
|
-
var valueFrom = fieldAccessor(field);
|
|
115
|
-
return valueFrom(dataItem);
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
export var resolveValue = function (args) {
|
|
121
|
-
var dataItem;
|
|
122
|
-
if (isPresent(args.value)) {
|
|
123
|
-
var data = [args.defaultItem].concat(args.data);
|
|
124
|
-
dataItem = data.find(function (element) { return getter(element, args.valueField) === args.value; });
|
|
125
|
-
return {
|
|
126
|
-
dataItem: dataItem,
|
|
127
|
-
focused: args.data.indexOf(dataItem),
|
|
128
|
-
selected: args.data.indexOf(dataItem)
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
else if (args.index) {
|
|
132
|
-
dataItem = args.data[args.index];
|
|
133
|
-
return {
|
|
134
|
-
dataItem: args.data[args.index],
|
|
135
|
-
focused: args.index,
|
|
136
|
-
selected: args.index
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return {
|
|
140
|
-
dataItem: args.defaultItem,
|
|
141
|
-
focused: -1,
|
|
142
|
-
selected: -1
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*/
|
|
148
|
-
export var sameCharsOnly = function (word, character) {
|
|
149
|
-
for (var idx = 0; idx < word.length; idx++) {
|
|
150
|
-
if (word.charAt(idx) !== character) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return true;
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* @hidden
|
|
158
|
-
*/
|
|
159
|
-
export var shuffleData = function (data, splitIndex, defaultItem) {
|
|
160
|
-
var result = data;
|
|
161
|
-
if (defaultItem) {
|
|
162
|
-
result = [defaultItem].concat(result);
|
|
163
|
-
}
|
|
164
|
-
return result.slice(splitIndex).concat(result.slice(0, splitIndex));
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* @hidden
|
|
168
|
-
*/
|
|
169
|
-
export var matchText = function (text, word, ignoreCase) {
|
|
170
|
-
if (!isPresent(text)) {
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
var temp = String(text);
|
|
174
|
-
if (ignoreCase) {
|
|
175
|
-
temp = temp.toLowerCase();
|
|
176
|
-
}
|
|
177
|
-
return temp.indexOf(word) === 0;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* @hidden
|
|
181
|
-
*/
|
|
182
|
-
export var elementFromPoint = function (x, y) {
|
|
183
|
-
if (!isDocumentAvailable()) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
return document.elementFromPoint(x, y);
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* @hidden
|
|
190
|
-
*
|
|
191
|
-
* Checks whether the passed object has all of the listed properties.
|
|
192
|
-
*/
|
|
193
|
-
export var hasProps = function (obj, props) {
|
|
194
|
-
if (!isPresent(obj)) {
|
|
195
|
-
return false;
|
|
196
|
-
}
|
|
197
|
-
return props.every(function (prop) { return obj.hasOwnProperty(prop); });
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* @hidden
|
|
201
|
-
*
|
|
202
|
-
* Checks whether an element is untouched by looking for the ng-untouched css class
|
|
203
|
-
*/
|
|
204
|
-
export var isUntouched = function (element) { return element.className.includes('ng-untouched'); };
|
|
205
|
-
/**
|
|
206
|
-
* @hidden
|
|
207
|
-
*/
|
|
208
|
-
export var noop = function (_) { };
|
|
209
|
-
/**
|
|
210
|
-
* IE element `matches` polyfill.
|
|
211
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
|
|
212
|
-
*/
|
|
213
|
-
var matches = function (element, selector) {
|
|
214
|
-
var matcher = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
|
|
215
|
-
if (!matcher) {
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
218
|
-
return matcher.call(element, selector);
|
|
219
|
-
};
|
|
220
|
-
var ɵ0 = matches;
|
|
221
|
-
/**
|
|
222
|
-
* @hidden
|
|
223
|
-
*
|
|
224
|
-
* IE element `closest` polyfill.
|
|
225
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
|
|
226
|
-
*/
|
|
227
|
-
export var closest = function (element, selector) {
|
|
228
|
-
var parent = element;
|
|
229
|
-
while (parent !== null && parent.nodeType === 1) {
|
|
230
|
-
if (matches(parent, selector)) {
|
|
231
|
-
return parent;
|
|
232
|
-
}
|
|
233
|
-
parent = parent.parentElement || parent.parentNode;
|
|
234
|
-
}
|
|
235
|
-
return null;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* @hidden
|
|
239
|
-
*
|
|
240
|
-
* Parses a provided value to its type 'number' representation.
|
|
241
|
-
* If the parsed value (via Number(value)) is NaN, the provided default value is returned.
|
|
242
|
-
* Uses 0 as default value if a second param is not provided.
|
|
243
|
-
*/
|
|
244
|
-
export var parseNumber = function (num, defaultValue) {
|
|
245
|
-
if (defaultValue === void 0) { defaultValue = 0; }
|
|
246
|
-
var normalizedValue = Number(num);
|
|
247
|
-
return isNaN(normalizedValue) ? defaultValue : normalizedValue;
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* @hidden
|
|
251
|
-
*
|
|
252
|
-
* Checks whether the passed target element is inside the provided host or popupRef.
|
|
253
|
-
*/
|
|
254
|
-
export var inDropDown = function (host, target, popupRef) {
|
|
255
|
-
return host.nativeElement.contains(target) || (popupRef && popupRef.popupElement.contains(target));
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* @hidden
|
|
259
|
-
*
|
|
260
|
-
* Calculates the hierarchical level of an item, based on the provided index.
|
|
261
|
-
* The result level is zero-based (starts from 0).
|
|
262
|
-
*/
|
|
263
|
-
export var getHierarchicalItemLevel = function (index) {
|
|
264
|
-
return (index || '').split('_').length - 1;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* @hidden
|
|
268
|
-
*
|
|
269
|
-
* Retrieves all descendant nodes' lookups which are currently registered in the provided lookup item as a flat array.
|
|
270
|
-
*/
|
|
271
|
-
export var fetchDescendentNodes = function (lookup, filterExpression) {
|
|
272
|
-
if (!isPresent(lookup) || lookup.children.length === 0) {
|
|
273
|
-
return [];
|
|
274
|
-
}
|
|
275
|
-
var descendants = lookup.children;
|
|
276
|
-
if (isPresent(filterExpression)) {
|
|
277
|
-
descendants = descendants.filter(function (descendent) { return filterExpression(descendent.item); });
|
|
278
|
-
}
|
|
279
|
-
descendants.forEach(function (child) {
|
|
280
|
-
return descendants = descendants.concat(fetchDescendentNodes(child, filterExpression));
|
|
281
|
-
});
|
|
282
|
-
return descendants;
|
|
283
|
-
};
|
|
284
|
-
/**
|
|
285
|
-
* @hidden
|
|
286
|
-
*
|
|
287
|
-
* Retrieves the correct value based on the item's level and the provided value field/s.
|
|
288
|
-
* Used in the MultiSelectTree component.
|
|
289
|
-
*/
|
|
290
|
-
export var valueFrom = function (_a, valueField) {
|
|
291
|
-
var dataItem = _a.dataItem, index = _a.index, level = _a.level;
|
|
292
|
-
var fields = Array.isArray(valueField) ? valueField : [valueField];
|
|
293
|
-
// either use the explicitly provided value level, or infer it from the item index
|
|
294
|
-
var valueLevel = isPresent(level) ? level : getHierarchicalItemLevel(index);
|
|
295
|
-
// fall-back to the last available one, if the current node is in a deeper level
|
|
296
|
-
var normalizedLevel = Math.min(valueLevel, fields.length - 1);
|
|
297
|
-
var field = fields[normalizedLevel];
|
|
298
|
-
return fieldAccessor(field)(dataItem);
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* @hidden
|
|
302
|
-
* Returns the size class based on the component and size input.
|
|
303
|
-
*/
|
|
304
|
-
export var getSizeClass = function (component, size) {
|
|
305
|
-
var SIZE_CLASSES = {
|
|
306
|
-
'small': "k-" + component + "-sm",
|
|
307
|
-
'medium': "k-" + component + "-md",
|
|
308
|
-
'large': "k-" + component + "-lg"
|
|
309
|
-
};
|
|
310
|
-
return SIZE_CLASSES[size];
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* @hidden
|
|
314
|
-
* Returns the rounded class based on the rounded input.
|
|
315
|
-
*/
|
|
316
|
-
export var getRoundedClass = function (rounded) {
|
|
317
|
-
var ROUNDED_CLASSES = {
|
|
318
|
-
'small': 'k-rounded-sm',
|
|
319
|
-
'medium': 'k-rounded-md',
|
|
320
|
-
'large': 'k-rounded-lg',
|
|
321
|
-
'full': 'k-rounded-full'
|
|
322
|
-
};
|
|
323
|
-
return ROUNDED_CLASSES[rounded];
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* @hidden
|
|
327
|
-
* Return the fillMode class based on the component and fillMode input.
|
|
328
|
-
*/
|
|
329
|
-
export var getFillModeClass = function (component, fillMode) {
|
|
330
|
-
var FILLMODE_CLASSES = {
|
|
331
|
-
'solid': "k-" + component + "-solid",
|
|
332
|
-
'flat': "k-" + component + "-flat",
|
|
333
|
-
'outline': "k-" + component + "-outline"
|
|
334
|
-
};
|
|
335
|
-
return FILLMODE_CLASSES[fillMode];
|
|
336
|
-
};
|
|
337
|
-
export { ɵ0 };
|