@progress/kendo-angular-dropdowns 6.0.3-dev.202203091003 → 7.0.0-dev.202204191042
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 +34 -112
- package/schematics/ngAdd/index.js +7 -4
- 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,6 +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 });
|
|
@@ -1,6 +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 });
|
|
@@ -1,6 +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 });
|
|
@@ -1,31 +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
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var PreventableEvent = /** @class */ (function () {
|
|
11
|
-
function PreventableEvent() {
|
|
12
|
-
this.prevented = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Prevents the default action for a specified event.
|
|
16
|
-
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
17
|
-
*/
|
|
18
|
-
PreventableEvent.prototype.preventDefault = function () {
|
|
19
|
-
this.prevented = true;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* If the event is prevented by any of its subscribers, returns `true`.
|
|
23
|
-
*
|
|
24
|
-
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
|
25
|
-
*/
|
|
26
|
-
PreventableEvent.prototype.isDefaultPrevented = function () {
|
|
27
|
-
return this.prevented;
|
|
28
|
-
};
|
|
29
|
-
return PreventableEvent;
|
|
30
|
-
}());
|
|
31
|
-
exports.PreventableEvent = PreventableEvent;
|
|
@@ -1,26 +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 preventable_event_1 = require("./preventable-event");
|
|
9
|
-
/**
|
|
10
|
-
* Arguments for the `removeTag` event. The `removeTag` event fires when a tag is about
|
|
11
|
-
* to the removed. If you cancel the event, the removal is prevented.
|
|
12
|
-
*/
|
|
13
|
-
var RemoveTagEvent = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(RemoveTagEvent, _super);
|
|
15
|
-
/**
|
|
16
|
-
* Constructs the event arguments for the `remove` event.
|
|
17
|
-
* @param dataItem - The data item or an array of data items that will be removed.
|
|
18
|
-
*/
|
|
19
|
-
function RemoveTagEvent(dataItem) {
|
|
20
|
-
var _this = _super.call(this) || this;
|
|
21
|
-
_this.dataItem = dataItem;
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
return RemoveTagEvent;
|
|
25
|
-
}(preventable_event_1.PreventableEvent));
|
|
26
|
-
exports.RemoveTagEvent = RemoveTagEvent;
|
|
@@ -1,6 +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 });
|
|
@@ -1,6 +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 });
|
|
@@ -1,27 +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
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var DEFAULTS = {
|
|
12
|
-
pageSize: 50,
|
|
13
|
-
itemHeight: 28
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
exports.normalizeVirtualizationSettings = function (settings, defaultOverrides) {
|
|
19
|
-
var defaults = Object.assign({}, DEFAULTS, defaultOverrides);
|
|
20
|
-
if (settings === true) {
|
|
21
|
-
return defaults;
|
|
22
|
-
}
|
|
23
|
-
if (!settings) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return tslib_1.__assign({ pageSize: DEFAULTS.pageSize }, settings);
|
|
27
|
-
};
|
|
@@ -1,26 +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
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var NavigationAction;
|
|
11
|
-
(function (NavigationAction) {
|
|
12
|
-
NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
|
|
13
|
-
NavigationAction[NavigationAction["Open"] = 1] = "Open";
|
|
14
|
-
NavigationAction[NavigationAction["Close"] = 2] = "Close";
|
|
15
|
-
NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
|
|
16
|
-
NavigationAction[NavigationAction["Tab"] = 4] = "Tab";
|
|
17
|
-
NavigationAction[NavigationAction["Esc"] = 5] = "Esc";
|
|
18
|
-
NavigationAction[NavigationAction["Delete"] = 6] = "Delete";
|
|
19
|
-
NavigationAction[NavigationAction["Backspace"] = 7] = "Backspace";
|
|
20
|
-
NavigationAction[NavigationAction["Home"] = 8] = "Home";
|
|
21
|
-
NavigationAction[NavigationAction["End"] = 9] = "End";
|
|
22
|
-
NavigationAction[NavigationAction["Up"] = 10] = "Up";
|
|
23
|
-
NavigationAction[NavigationAction["Down"] = 11] = "Down";
|
|
24
|
-
NavigationAction[NavigationAction["Left"] = 12] = "Left";
|
|
25
|
-
NavigationAction[NavigationAction["Right"] = 13] = "Right";
|
|
26
|
-
})(NavigationAction = exports.NavigationAction || (exports.NavigationAction = {}));
|
|
@@ -1,149 +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
|
-
var util_1 = require("../util");
|
|
10
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
11
|
-
var navigation_action_1 = require("./navigation-action");
|
|
12
|
-
var disabled_items_service_1 = require("../disabled-items/disabled-items.service");
|
|
13
|
-
var selection_service_1 = require("../selection/selection.service");
|
|
14
|
-
var MIN_INDEX = 0;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
var NavigationEvent = /** @class */ (function () {
|
|
19
|
-
/**
|
|
20
|
-
* The index of the item to which the user navigated.
|
|
21
|
-
*/
|
|
22
|
-
function NavigationEvent(index, originalEvent) {
|
|
23
|
-
this.index = index;
|
|
24
|
-
this.originalEvent = originalEvent;
|
|
25
|
-
}
|
|
26
|
-
return NavigationEvent;
|
|
27
|
-
}());
|
|
28
|
-
exports.NavigationEvent = NavigationEvent;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
var NavigationService = /** @class */ (function () {
|
|
33
|
-
function NavigationService(disabledItemsService, selectionService) {
|
|
34
|
-
this.disabledItemsService = disabledItemsService;
|
|
35
|
-
this.selectionService = selectionService;
|
|
36
|
-
this.open = new core_1.EventEmitter();
|
|
37
|
-
this.close = new core_1.EventEmitter();
|
|
38
|
-
this.enter = new core_1.EventEmitter();
|
|
39
|
-
this.tab = new core_1.EventEmitter();
|
|
40
|
-
this.esc = new core_1.EventEmitter();
|
|
41
|
-
this.up = new core_1.EventEmitter();
|
|
42
|
-
this.right = new core_1.EventEmitter();
|
|
43
|
-
this.down = new core_1.EventEmitter();
|
|
44
|
-
this.left = new core_1.EventEmitter();
|
|
45
|
-
this.delete = new core_1.EventEmitter();
|
|
46
|
-
this.backspace = new core_1.EventEmitter();
|
|
47
|
-
this.home = new core_1.EventEmitter();
|
|
48
|
-
this.end = new core_1.EventEmitter();
|
|
49
|
-
}
|
|
50
|
-
NavigationService.prototype.process = function (args) {
|
|
51
|
-
var keyCode = args.originalEvent.keyCode;
|
|
52
|
-
var altKey = args.originalEvent.altKey;
|
|
53
|
-
var index;
|
|
54
|
-
var action = navigation_action_1.NavigationAction.Undefined;
|
|
55
|
-
if (altKey && keyCode === kendo_angular_common_1.Keys.ArrowDown) {
|
|
56
|
-
action = navigation_action_1.NavigationAction.Open;
|
|
57
|
-
}
|
|
58
|
-
else if (altKey && keyCode === kendo_angular_common_1.Keys.ArrowUp) {
|
|
59
|
-
action = navigation_action_1.NavigationAction.Close;
|
|
60
|
-
}
|
|
61
|
-
else if (keyCode === kendo_angular_common_1.Keys.Enter) {
|
|
62
|
-
action = navigation_action_1.NavigationAction.Enter;
|
|
63
|
-
}
|
|
64
|
-
else if (keyCode === kendo_angular_common_1.Keys.Escape) {
|
|
65
|
-
action = navigation_action_1.NavigationAction.Esc;
|
|
66
|
-
}
|
|
67
|
-
else if (keyCode === kendo_angular_common_1.Keys.Tab) {
|
|
68
|
-
action = navigation_action_1.NavigationAction.Tab;
|
|
69
|
-
}
|
|
70
|
-
else if (keyCode === kendo_angular_common_1.Keys.ArrowUp) {
|
|
71
|
-
index = this.next({ current: args.current, start: args.min, end: args.max, step: -1 });
|
|
72
|
-
action = navigation_action_1.NavigationAction.Up;
|
|
73
|
-
}
|
|
74
|
-
else if (keyCode === kendo_angular_common_1.Keys.ArrowLeft) {
|
|
75
|
-
index = this.next({ current: args.current, start: args.min, end: args.max, step: -1 });
|
|
76
|
-
action = navigation_action_1.NavigationAction.Left;
|
|
77
|
-
}
|
|
78
|
-
else if (keyCode === kendo_angular_common_1.Keys.ArrowDown) {
|
|
79
|
-
index = this.next({ current: args.current, start: args.min, end: args.max, step: 1 });
|
|
80
|
-
action = navigation_action_1.NavigationAction.Down;
|
|
81
|
-
}
|
|
82
|
-
else if (keyCode === kendo_angular_common_1.Keys.ArrowRight) {
|
|
83
|
-
index = this.next({ current: args.current, start: args.min, end: args.max, step: 1 });
|
|
84
|
-
action = navigation_action_1.NavigationAction.Right;
|
|
85
|
-
}
|
|
86
|
-
else if (keyCode === kendo_angular_common_1.Keys.Home) {
|
|
87
|
-
index = this.isDisabled(MIN_INDEX) ? args.current : MIN_INDEX;
|
|
88
|
-
action = navigation_action_1.NavigationAction.Home;
|
|
89
|
-
}
|
|
90
|
-
else if (keyCode === kendo_angular_common_1.Keys.End) {
|
|
91
|
-
index = this.isDisabled(args.max) ? args.current : args.max;
|
|
92
|
-
action = navigation_action_1.NavigationAction.End;
|
|
93
|
-
}
|
|
94
|
-
else if (keyCode === kendo_angular_common_1.Keys.Delete) {
|
|
95
|
-
action = navigation_action_1.NavigationAction.Delete;
|
|
96
|
-
}
|
|
97
|
-
else if (keyCode === kendo_angular_common_1.Keys.Backspace) {
|
|
98
|
-
action = navigation_action_1.NavigationAction.Backspace;
|
|
99
|
-
}
|
|
100
|
-
var eventData = new NavigationEvent(index, args.originalEvent);
|
|
101
|
-
if (action !== navigation_action_1.NavigationAction.Undefined) {
|
|
102
|
-
this[navigation_action_1.NavigationAction[action].toLowerCase()].emit(eventData);
|
|
103
|
-
}
|
|
104
|
-
return action;
|
|
105
|
-
};
|
|
106
|
-
NavigationService.prototype.next = function (args) {
|
|
107
|
-
var current = args.current, start = args.start, end = args.end, step = args.step;
|
|
108
|
-
var nextIndex = !util_1.isPresent(current) ? start : this.clampIndex(current + step, start, end);
|
|
109
|
-
var firstFocusableIndex = this.firstFocusableIndex(nextIndex, start, end, step);
|
|
110
|
-
if (util_1.isPresent(firstFocusableIndex)) {
|
|
111
|
-
return firstFocusableIndex;
|
|
112
|
-
}
|
|
113
|
-
if (this.selectionService.isSelected(current) && current >= start) {
|
|
114
|
-
return current;
|
|
115
|
-
}
|
|
116
|
-
var inversedStep = -1 * step;
|
|
117
|
-
return this.firstFocusableIndex(nextIndex, start, end, inversedStep);
|
|
118
|
-
};
|
|
119
|
-
NavigationService.prototype.clampIndex = function (index, min, max) {
|
|
120
|
-
if (!util_1.isPresent(index) || index < min) {
|
|
121
|
-
return min;
|
|
122
|
-
}
|
|
123
|
-
if (index > max) {
|
|
124
|
-
return max;
|
|
125
|
-
}
|
|
126
|
-
return index;
|
|
127
|
-
};
|
|
128
|
-
NavigationService.prototype.firstFocusableIndex = function (startIndex, min, max, step) {
|
|
129
|
-
while (min <= startIndex && startIndex <= max) {
|
|
130
|
-
if (!this.isDisabled(startIndex)) {
|
|
131
|
-
return startIndex;
|
|
132
|
-
}
|
|
133
|
-
startIndex += step;
|
|
134
|
-
}
|
|
135
|
-
return undefined;
|
|
136
|
-
};
|
|
137
|
-
NavigationService.prototype.isDisabled = function (index) {
|
|
138
|
-
if (this.disabledItemsService) {
|
|
139
|
-
return this.disabledItemsService.isIndexDisabled(index);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
NavigationService = tslib_1.__decorate([
|
|
143
|
-
core_1.Injectable(),
|
|
144
|
-
tslib_1.__metadata("design:paramtypes", [disabled_items_service_1.DisabledItemsService,
|
|
145
|
-
selection_service_1.SelectionService])
|
|
146
|
-
], NavigationService);
|
|
147
|
-
return NavigationService;
|
|
148
|
-
}());
|
|
149
|
-
exports.NavigationService = NavigationService;
|
|
@@ -1,255 +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:member-ordering */
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
var tslib_1 = require("tslib");
|
|
9
|
-
var core_1 = require("@angular/core");
|
|
10
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
11
|
-
var kendo_angular_common_2 = require("@progress/kendo-angular-common");
|
|
12
|
-
var util_1 = require("./util");
|
|
13
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
var SearchBarComponent = /** @class */ (function () {
|
|
18
|
-
function SearchBarComponent(localization, renderer) {
|
|
19
|
-
this.localization = localization;
|
|
20
|
-
this.valueChange = new core_1.EventEmitter();
|
|
21
|
-
this.onBlur = new core_1.EventEmitter();
|
|
22
|
-
this.onFocus = new core_1.EventEmitter();
|
|
23
|
-
this.onClick = new core_1.EventEmitter();
|
|
24
|
-
this.onNavigate = new core_1.EventEmitter();
|
|
25
|
-
this.searchBarClass = true;
|
|
26
|
-
this._userInput = "";
|
|
27
|
-
this._previousValue = "";
|
|
28
|
-
this._placeholder = "";
|
|
29
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
30
|
-
this.renderer = renderer;
|
|
31
|
-
}
|
|
32
|
-
Object.defineProperty(SearchBarComponent.prototype, "userInput", {
|
|
33
|
-
get: function () {
|
|
34
|
-
return this._userInput;
|
|
35
|
-
},
|
|
36
|
-
set: function (userInput) {
|
|
37
|
-
this._userInput = userInput || "";
|
|
38
|
-
},
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(SearchBarComponent.prototype, "value", {
|
|
43
|
-
get: function () {
|
|
44
|
-
return this.input.nativeElement.value;
|
|
45
|
-
},
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(SearchBarComponent.prototype, "placeholder", {
|
|
50
|
-
get: function () {
|
|
51
|
-
return this._placeholder;
|
|
52
|
-
},
|
|
53
|
-
set: function (text) {
|
|
54
|
-
this._placeholder = text || '';
|
|
55
|
-
this.setInputSize();
|
|
56
|
-
},
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(SearchBarComponent.prototype, "ariaExpanded", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return this.role === 'combobox' ? this.popupOpen : null;
|
|
63
|
-
},
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
SearchBarComponent.prototype.ngOnInit = function () {
|
|
68
|
-
var _this = this;
|
|
69
|
-
this.localizationChangeSubscription = this.localization
|
|
70
|
-
.changes.subscribe(function (_a) {
|
|
71
|
-
var rtl = _a.rtl;
|
|
72
|
-
return _this.direction = rtl ? 'rtl' : 'ltr';
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
SearchBarComponent.prototype.ngOnChanges = function (changes) {
|
|
76
|
-
var previousUserInput;
|
|
77
|
-
if (this.input && (changes.userInput || changes.suggestedText)) {
|
|
78
|
-
if (changes.userInput && changes.userInput.previousValue) {
|
|
79
|
-
if (this._previousValue === changes.userInput.previousValue) {
|
|
80
|
-
previousUserInput = this._previousValue;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
previousUserInput = changes.userInput.currentValue || "";
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
previousUserInput = this._previousValue;
|
|
88
|
-
}
|
|
89
|
-
var caretIndex = this.input.nativeElement.selectionStart;
|
|
90
|
-
var caretAtEnd = previousUserInput.length === caretIndex;
|
|
91
|
-
this.writeInputValue(this.suggestedText ? util_1.combineStr(this.userInput, this.suggestedText) : this.userInput);
|
|
92
|
-
if (this.suggestedText) {
|
|
93
|
-
this.setInputSelection(this.userInput.length, this.suggestedText.length);
|
|
94
|
-
}
|
|
95
|
-
else if (caretAtEnd) {
|
|
96
|
-
this.setInputSelection(this.userInput.length, this.userInput.length);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
this.setInputSelection(caretIndex, caretIndex);
|
|
100
|
-
}
|
|
101
|
-
this._previousValue = this.userInput;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
SearchBarComponent.prototype.ngOnDestroy = function () {
|
|
105
|
-
if (this.localizationChangeSubscription) {
|
|
106
|
-
this.localizationChangeSubscription.unsubscribe();
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
SearchBarComponent.prototype.writeInputValue = function (text) {
|
|
110
|
-
if (kendo_angular_common_1.isDocumentAvailable()) {
|
|
111
|
-
this.renderer.setProperty(this.input.nativeElement, 'value', text);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
SearchBarComponent.prototype.setInputSelection = function (start, end) {
|
|
115
|
-
if (kendo_angular_common_1.isDocumentAvailable() && this.input.nativeElement === document.activeElement) {
|
|
116
|
-
try {
|
|
117
|
-
this.input.nativeElement.setSelectionRange(start, end);
|
|
118
|
-
}
|
|
119
|
-
catch (e) {
|
|
120
|
-
//Make sure that the element is in the DOM before you invoke its methods
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
SearchBarComponent.prototype.handleInput = function (event) {
|
|
125
|
-
var value = event.target.value;
|
|
126
|
-
if (value !== this.userInput) {
|
|
127
|
-
this._previousValue = value;
|
|
128
|
-
this.valueChange.emit(value);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
SearchBarComponent.prototype.handleFocus = function (event) {
|
|
132
|
-
this.onFocus.emit(event);
|
|
133
|
-
};
|
|
134
|
-
SearchBarComponent.prototype.handleBlur = function (event) {
|
|
135
|
-
this.onBlur.emit(event);
|
|
136
|
-
};
|
|
137
|
-
SearchBarComponent.prototype.handleKeydown = function (event) {
|
|
138
|
-
var keyCode = event.keyCode;
|
|
139
|
-
var keys = [kendo_angular_common_2.Keys.ArrowUp, kendo_angular_common_2.Keys.ArrowDown, kendo_angular_common_2.Keys.ArrowLeft, kendo_angular_common_2.Keys.ArrowRight, kendo_angular_common_2.Keys.Enter,
|
|
140
|
-
kendo_angular_common_2.Keys.Escape, kendo_angular_common_2.Keys.Delete, kendo_angular_common_2.Keys.Backspace, kendo_angular_common_2.Keys.Home, kendo_angular_common_2.Keys.End];
|
|
141
|
-
if (keys.indexOf(keyCode) > -1) {
|
|
142
|
-
this.onNavigate.emit(event);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
SearchBarComponent.prototype.focus = function () {
|
|
146
|
-
if (kendo_angular_common_1.isDocumentAvailable()) {
|
|
147
|
-
this.input.nativeElement.focus();
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
SearchBarComponent.prototype.blur = function () {
|
|
151
|
-
if (kendo_angular_common_1.isDocumentAvailable()) {
|
|
152
|
-
this.input.nativeElement.blur();
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
SearchBarComponent.prototype.setInputSize = function () {
|
|
156
|
-
var lengthOf = function (x) { return x ? x.length : 0; };
|
|
157
|
-
var input = this.input.nativeElement;
|
|
158
|
-
var placeholderLength = lengthOf(this.placeholder);
|
|
159
|
-
var textLength = lengthOf(this.value);
|
|
160
|
-
var size = Math.max(placeholderLength, textLength, 1);
|
|
161
|
-
this.renderer.setAttribute(input, 'size', size.toString());
|
|
162
|
-
};
|
|
163
|
-
tslib_1.__decorate([
|
|
164
|
-
core_1.Input(),
|
|
165
|
-
tslib_1.__metadata("design:type", String)
|
|
166
|
-
], SearchBarComponent.prototype, "id", void 0);
|
|
167
|
-
tslib_1.__decorate([
|
|
168
|
-
core_1.Input(),
|
|
169
|
-
tslib_1.__metadata("design:type", String)
|
|
170
|
-
], SearchBarComponent.prototype, "listId", void 0);
|
|
171
|
-
tslib_1.__decorate([
|
|
172
|
-
core_1.Input(),
|
|
173
|
-
tslib_1.__metadata("design:type", String)
|
|
174
|
-
], SearchBarComponent.prototype, "tagListId", void 0);
|
|
175
|
-
tslib_1.__decorate([
|
|
176
|
-
core_1.Input(),
|
|
177
|
-
tslib_1.__metadata("design:type", String)
|
|
178
|
-
], SearchBarComponent.prototype, "activeDescendant", void 0);
|
|
179
|
-
tslib_1.__decorate([
|
|
180
|
-
core_1.Input(),
|
|
181
|
-
tslib_1.__metadata("design:type", String)
|
|
182
|
-
], SearchBarComponent.prototype, "noDataLabel", void 0);
|
|
183
|
-
tslib_1.__decorate([
|
|
184
|
-
core_1.Input(),
|
|
185
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
186
|
-
], SearchBarComponent.prototype, "disabled", void 0);
|
|
187
|
-
tslib_1.__decorate([
|
|
188
|
-
core_1.Input(),
|
|
189
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
190
|
-
], SearchBarComponent.prototype, "readonly", void 0);
|
|
191
|
-
tslib_1.__decorate([
|
|
192
|
-
core_1.Input(),
|
|
193
|
-
tslib_1.__metadata("design:type", Number)
|
|
194
|
-
], SearchBarComponent.prototype, "tabIndex", void 0);
|
|
195
|
-
tslib_1.__decorate([
|
|
196
|
-
core_1.Input(),
|
|
197
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
198
|
-
], SearchBarComponent.prototype, "popupOpen", void 0);
|
|
199
|
-
tslib_1.__decorate([
|
|
200
|
-
core_1.Input(),
|
|
201
|
-
tslib_1.__metadata("design:type", String)
|
|
202
|
-
], SearchBarComponent.prototype, "role", void 0);
|
|
203
|
-
tslib_1.__decorate([
|
|
204
|
-
core_1.Input(),
|
|
205
|
-
tslib_1.__metadata("design:type", String),
|
|
206
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
207
|
-
], SearchBarComponent.prototype, "userInput", null);
|
|
208
|
-
tslib_1.__decorate([
|
|
209
|
-
core_1.Input(),
|
|
210
|
-
tslib_1.__metadata("design:type", String)
|
|
211
|
-
], SearchBarComponent.prototype, "suggestedText", void 0);
|
|
212
|
-
tslib_1.__decorate([
|
|
213
|
-
core_1.Output(),
|
|
214
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
215
|
-
], SearchBarComponent.prototype, "valueChange", void 0);
|
|
216
|
-
tslib_1.__decorate([
|
|
217
|
-
core_1.Output(),
|
|
218
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
219
|
-
], SearchBarComponent.prototype, "onBlur", void 0);
|
|
220
|
-
tslib_1.__decorate([
|
|
221
|
-
core_1.Output(),
|
|
222
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
223
|
-
], SearchBarComponent.prototype, "onFocus", void 0);
|
|
224
|
-
tslib_1.__decorate([
|
|
225
|
-
core_1.Output(),
|
|
226
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
227
|
-
], SearchBarComponent.prototype, "onClick", void 0);
|
|
228
|
-
tslib_1.__decorate([
|
|
229
|
-
core_1.Output(),
|
|
230
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
231
|
-
], SearchBarComponent.prototype, "onNavigate", void 0);
|
|
232
|
-
tslib_1.__decorate([
|
|
233
|
-
core_1.ViewChild('input', { static: true }),
|
|
234
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
235
|
-
], SearchBarComponent.prototype, "input", void 0);
|
|
236
|
-
tslib_1.__decorate([
|
|
237
|
-
core_1.HostBinding('class.k-searchbar'),
|
|
238
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
239
|
-
], SearchBarComponent.prototype, "searchBarClass", void 0);
|
|
240
|
-
tslib_1.__decorate([
|
|
241
|
-
core_1.Input(),
|
|
242
|
-
tslib_1.__metadata("design:type", String),
|
|
243
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
244
|
-
], SearchBarComponent.prototype, "placeholder", null);
|
|
245
|
-
SearchBarComponent = tslib_1.__decorate([
|
|
246
|
-
core_1.Component({
|
|
247
|
-
selector: 'kendo-searchbar',
|
|
248
|
-
template: "\n <input #input\n autocomplete=\"off\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [class]=\"'k-input-inner'\"\n (input)=\"handleInput($event)\"\n (keydown)=\"handleKeydown($event)\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [attr.tabIndex]=\"tabIndex\"\n [attr.dir]=\"direction\"\n [attr.role]=\"role\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-readonly]=\"readonly\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-owns]=\"listId\"\n [attr.aria-describedby]=\"tagListId\"\n [attr.aria-activedescendant]=\"activeDescendant\"\n [attr.aria-label]=\"noDataLabel\"\n />\n "
|
|
249
|
-
}),
|
|
250
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
|
|
251
|
-
core_1.Renderer2])
|
|
252
|
-
], SearchBarComponent);
|
|
253
|
-
return SearchBarComponent;
|
|
254
|
-
}());
|
|
255
|
-
exports.SearchBarComponent = SearchBarComponent;
|
|
@@ -1,95 +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
|
-
var selection_service_1 = require("./selection.service");
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var SelectableDirective = /** @class */ (function () {
|
|
14
|
-
function SelectableDirective(selectionService) {
|
|
15
|
-
this.checkboxes = { enabled: false };
|
|
16
|
-
// @HostBinding('attr.offset-index')
|
|
17
|
-
// @Input() public offsetIndex: number;
|
|
18
|
-
this.multipleSelection = false;
|
|
19
|
-
this.selectionService = selectionService;
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(SelectableDirective.prototype, "focusedClassName", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return this.selectionService.isFocused(this.index);
|
|
24
|
-
},
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(SelectableDirective.prototype, "selectedClassName", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return !this.checkboxes.enabled && this.selectionService.isSelected(this.index);
|
|
31
|
-
},
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
SelectableDirective.prototype.onClick = function (event) {
|
|
36
|
-
event.stopPropagation();
|
|
37
|
-
if (this.checkboxes.enabled && !this.checkboxes.checkOnClick) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (this.multipleSelection) {
|
|
41
|
-
if (this.selectionService.isSelected(this.index)) {
|
|
42
|
-
this.selectionService.unselect(this.index);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
this.selectionService.add(this.index);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.selectionService.change(this.index);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
core_1.HostBinding('attr.index'),
|
|
54
|
-
core_1.Input(),
|
|
55
|
-
tslib_1.__metadata("design:type", Number)
|
|
56
|
-
], SelectableDirective.prototype, "index", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
core_1.Input(),
|
|
59
|
-
tslib_1.__metadata("design:type", Object)
|
|
60
|
-
], SelectableDirective.prototype, "checkboxes", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
core_1.HostBinding('style.height.px'),
|
|
63
|
-
core_1.HostBinding('style.minHeight.px'),
|
|
64
|
-
core_1.Input(),
|
|
65
|
-
tslib_1.__metadata("design:type", Number)
|
|
66
|
-
], SelectableDirective.prototype, "height", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
core_1.Input(),
|
|
69
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
70
|
-
], SelectableDirective.prototype, "multipleSelection", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
core_1.HostBinding('class.k-focus'),
|
|
73
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
74
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
75
|
-
], SelectableDirective.prototype, "focusedClassName", null);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
core_1.HostBinding('class.k-selected'),
|
|
78
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
79
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
80
|
-
], SelectableDirective.prototype, "selectedClassName", null);
|
|
81
|
-
tslib_1.__decorate([
|
|
82
|
-
core_1.HostListener('click', ['$event']),
|
|
83
|
-
tslib_1.__metadata("design:type", Function),
|
|
84
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
85
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
86
|
-
], SelectableDirective.prototype, "onClick", null);
|
|
87
|
-
SelectableDirective = tslib_1.__decorate([
|
|
88
|
-
core_1.Directive({
|
|
89
|
-
selector: '[kendoDropDownsSelectable]'
|
|
90
|
-
}),
|
|
91
|
-
tslib_1.__metadata("design:paramtypes", [selection_service_1.SelectionService])
|
|
92
|
-
], SelectableDirective);
|
|
93
|
-
return SelectableDirective;
|
|
94
|
-
}());
|
|
95
|
-
exports.SelectableDirective = SelectableDirective;
|