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