@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,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { DropDownListComponent } from './dropdownlist.component';
|
|
8
|
-
import { SharedModule } from '../common/shared.module';
|
|
9
|
-
import { SharedDirectivesModule } from '../common/shared-directives.module';
|
|
10
|
-
var DROPDOWNLIST_DIRECTIVES = [
|
|
11
|
-
DropDownListComponent
|
|
12
|
-
];
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*
|
|
16
|
-
* The exported package module.
|
|
17
|
-
*
|
|
18
|
-
* The package exports:
|
|
19
|
-
* - `DropDownListComponent`—The DropDownList component class.
|
|
20
|
-
* - `ItemTemplateDirective`—The item template directive.
|
|
21
|
-
* - `ValueTemplateDirective`—The value template directive.
|
|
22
|
-
* - `HeaderTemplateDirective`—The header template directive.
|
|
23
|
-
* - `FooterTemplateDirective`—The footer template directive.
|
|
24
|
-
*/
|
|
25
|
-
var DropDownListModule = /** @class */ (function () {
|
|
26
|
-
function DropDownListModule() {
|
|
27
|
-
}
|
|
28
|
-
DropDownListModule = tslib_1.__decorate([
|
|
29
|
-
NgModule({
|
|
30
|
-
declarations: [DROPDOWNLIST_DIRECTIVES],
|
|
31
|
-
exports: [DROPDOWNLIST_DIRECTIVES, SharedDirectivesModule],
|
|
32
|
-
imports: [SharedModule]
|
|
33
|
-
})
|
|
34
|
-
], DropDownListModule);
|
|
35
|
-
return DropDownListModule;
|
|
36
|
-
}());
|
|
37
|
-
export { DropDownListModule };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Input } from '@angular/core';
|
|
7
|
-
import { getHierarchicalItemLevel, isArray, valueFrom } from '../../common/util';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*
|
|
11
|
-
* A directive which manages the in-memory checked state of the MultiSelectTree nodes.
|
|
12
|
-
*/
|
|
13
|
-
var BaseCheckDirective = /** @class */ (function () {
|
|
14
|
-
function BaseCheckDirective() {
|
|
15
|
-
}
|
|
16
|
-
BaseCheckDirective.prototype.addItem = function (item) {
|
|
17
|
-
if (this.isItemChecked(item)) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
var level = getHierarchicalItemLevel(item.index);
|
|
21
|
-
var candidate = tslib_1.__assign({}, item, { level: level });
|
|
22
|
-
this.checkedItems.push(candidate);
|
|
23
|
-
this.checkedKeys.add(this.getKey(candidate));
|
|
24
|
-
};
|
|
25
|
-
BaseCheckDirective.prototype.removeItem = function (item) {
|
|
26
|
-
var _this = this;
|
|
27
|
-
if (!this.isItemChecked(item)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
var level = getHierarchicalItemLevel(item.index);
|
|
31
|
-
var candidate = tslib_1.__assign({}, item, { level: level });
|
|
32
|
-
this.checkedItems = this.checkedItems
|
|
33
|
-
.filter(function (item) { return valueFrom(item, _this.valueField) !== valueFrom(candidate, _this.valueField); });
|
|
34
|
-
this.checkedKeys.delete(this.getKey(candidate));
|
|
35
|
-
};
|
|
36
|
-
BaseCheckDirective.prototype.isItemChecked = function (item) {
|
|
37
|
-
var level = item.index.split('_').length - 1;
|
|
38
|
-
item.level = level;
|
|
39
|
-
return this.checkedKeys.has(this.getKey(item));
|
|
40
|
-
};
|
|
41
|
-
BaseCheckDirective.prototype.updateItems = function () {
|
|
42
|
-
var _this = this;
|
|
43
|
-
this.checkedItems = this.checkedItems || [];
|
|
44
|
-
this.checkedKeys = new Set(this.checkedItems.map(function (item) { return _this.getKey(item); }));
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Adds the item's depth to the item's value to allow duplicate values on different levels.
|
|
48
|
-
*
|
|
49
|
-
* @param item - The checked key.
|
|
50
|
-
* @returns { string } - A string key consisting of the item's `valueField` value and its depth.
|
|
51
|
-
*/
|
|
52
|
-
BaseCheckDirective.prototype.getKey = function (item) {
|
|
53
|
-
if (isArray(this.valueField)) {
|
|
54
|
-
return valueFrom(item, this.valueField) + '_' + item.level;
|
|
55
|
-
}
|
|
56
|
-
return valueFrom(item, this.valueField);
|
|
57
|
-
};
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
Input(),
|
|
60
|
-
tslib_1.__metadata("design:type", Object)
|
|
61
|
-
], BaseCheckDirective.prototype, "valueField", void 0);
|
|
62
|
-
tslib_1.__decorate([
|
|
63
|
-
Input(),
|
|
64
|
-
tslib_1.__metadata("design:type", Array)
|
|
65
|
-
], BaseCheckDirective.prototype, "checkedItems", void 0);
|
|
66
|
-
return BaseCheckDirective;
|
|
67
|
-
}());
|
|
68
|
-
export { BaseCheckDirective };
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostListener, Input, NgZone, Output, Renderer2 } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from '@progress/kendo-angular-treeview';
|
|
8
|
-
import { fetchDescendentNodes, isPresent } from '../../common/util';
|
|
9
|
-
import { BaseCheckDirective } from './base-check.directive';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*
|
|
13
|
-
* A directive which manages the in-memory checked state of the MultiSelectTree nodes.
|
|
14
|
-
*/
|
|
15
|
-
var CheckAllDirective = /** @class */ (function (_super) {
|
|
16
|
-
tslib_1.__extends(CheckAllDirective, _super);
|
|
17
|
-
function CheckAllDirective(element, zone, cdr, renderer) {
|
|
18
|
-
var _this = _super.call(this) || this;
|
|
19
|
-
_this.element = element;
|
|
20
|
-
_this.zone = zone;
|
|
21
|
-
_this.cdr = cdr;
|
|
22
|
-
_this.renderer = renderer;
|
|
23
|
-
/**
|
|
24
|
-
* Fires when the `checkedItems` collection was updated.
|
|
25
|
-
*/
|
|
26
|
-
_this.checkedItemsChange = new EventEmitter();
|
|
27
|
-
/**
|
|
28
|
-
* Holds a Set with just the checked item keys.
|
|
29
|
-
*
|
|
30
|
-
* Should be updated each time the `checkedItems` value or content is changed.
|
|
31
|
-
* Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
|
|
32
|
-
*/
|
|
33
|
-
_this.checkedKeys = new Set();
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
CheckAllDirective.prototype.handleChange = function (event) {
|
|
37
|
-
var _this = this;
|
|
38
|
-
// Need to store the current checkbox state at the moment of click
|
|
39
|
-
this.currentCheckedState = event.checked;
|
|
40
|
-
this.currentIndeterminateState = this.isIndeterminate;
|
|
41
|
-
this.treeview.nodes.map(function (_value, index) {
|
|
42
|
-
var itemIndex = String(index);
|
|
43
|
-
var itemLookup = _this.treeview.itemLookup(itemIndex);
|
|
44
|
-
_this.checkNode(itemLookup);
|
|
45
|
-
});
|
|
46
|
-
this.checkedItemsChange.emit(this.checkedItems.slice());
|
|
47
|
-
};
|
|
48
|
-
Object.defineProperty(CheckAllDirective.prototype, "isIndeterminate", {
|
|
49
|
-
get: function () {
|
|
50
|
-
var _this = this;
|
|
51
|
-
var isIndeterminate = this.treeview.nodes.some(function (_node, index) {
|
|
52
|
-
var itemIndex = String(index);
|
|
53
|
-
var itemLookup = _this.treeview.itemLookup(itemIndex);
|
|
54
|
-
return _this.someChecked(itemLookup);
|
|
55
|
-
});
|
|
56
|
-
return this.isChecked ? false : isIndeterminate;
|
|
57
|
-
},
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(CheckAllDirective.prototype, "isChecked", {
|
|
62
|
-
get: function () {
|
|
63
|
-
var _this = this;
|
|
64
|
-
var isChecked = this.treeview.nodes.every(function (_node, index) {
|
|
65
|
-
var itemIndex = String(index);
|
|
66
|
-
var itemLookup = _this.treeview.itemLookup(itemIndex);
|
|
67
|
-
return _this.allChecked(itemLookup);
|
|
68
|
-
});
|
|
69
|
-
return isChecked;
|
|
70
|
-
},
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
CheckAllDirective.prototype.ngOnChanges = function (changes) {
|
|
75
|
-
if (isPresent(changes.checkedItems)) {
|
|
76
|
-
this.updateItems();
|
|
77
|
-
this.renderer.setProperty(this.element.nativeElement, 'checked', this.isChecked);
|
|
78
|
-
this.renderer.setProperty(this.element.nativeElement, 'indeterminate', this.isIndeterminate);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
CheckAllDirective.prototype.ngOnInit = function () {
|
|
82
|
-
var _this = this;
|
|
83
|
-
if (this.focused) {
|
|
84
|
-
this.nextTick(function () { return _this.element.nativeElement.focus(); });
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
CheckAllDirective.prototype.nextTick = function (fn) {
|
|
88
|
-
this.zone.runOutsideAngular(function () { return setTimeout(fn); });
|
|
89
|
-
};
|
|
90
|
-
CheckAllDirective.prototype.checkNode = function (itemLookup) {
|
|
91
|
-
var _this = this;
|
|
92
|
-
if (this.treeview.isDisabled(itemLookup.item.dataItem, itemLookup.item.index)) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
var pendingCheck = [];
|
|
96
|
-
var filter = function (item) {
|
|
97
|
-
return _this.treeview.isVisible(item.dataItem, item.index) &&
|
|
98
|
-
!_this.treeview.isDisabled(item.dataItem, item.index);
|
|
99
|
-
};
|
|
100
|
-
pendingCheck.push(itemLookup.item);
|
|
101
|
-
fetchDescendentNodes(itemLookup, filter)
|
|
102
|
-
.forEach(function (lookup) { return pendingCheck.push(lookup.item); });
|
|
103
|
-
pendingCheck.forEach(function (item) {
|
|
104
|
-
if (_this.currentIndeterminateState) {
|
|
105
|
-
_this.lastAction === 'check' ?
|
|
106
|
-
_this.addItem(item) :
|
|
107
|
-
_this.removeItem(item);
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
_this.currentCheckedState ?
|
|
111
|
-
_this.addItem(item) :
|
|
112
|
-
_this.removeItem(item);
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
CheckAllDirective.prototype.allChecked = function (lookup) {
|
|
116
|
-
var _this = this;
|
|
117
|
-
var children = lookup && lookup.children;
|
|
118
|
-
if (!Array.isArray(children)) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
var childrenChecked = children.every(function (child) {
|
|
122
|
-
if (child.children.length) {
|
|
123
|
-
return _this.isItemChecked(child.item) && _this.allChecked(child);
|
|
124
|
-
}
|
|
125
|
-
return _this.isItemChecked(child.item);
|
|
126
|
-
});
|
|
127
|
-
return childrenChecked && this.isItemChecked(lookup.item);
|
|
128
|
-
};
|
|
129
|
-
CheckAllDirective.prototype.someChecked = function (lookup) {
|
|
130
|
-
var _this = this;
|
|
131
|
-
var children = lookup && lookup.children;
|
|
132
|
-
if (!Array.isArray(children)) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
var childrenChecked = children.some(function (child) {
|
|
136
|
-
if (child.children.length) {
|
|
137
|
-
return _this.isItemChecked(child.item) || _this.someChecked(child);
|
|
138
|
-
}
|
|
139
|
-
return _this.isItemChecked(child.item);
|
|
140
|
-
});
|
|
141
|
-
return childrenChecked || this.isItemChecked(lookup.item);
|
|
142
|
-
};
|
|
143
|
-
tslib_1.__decorate([
|
|
144
|
-
Input(),
|
|
145
|
-
tslib_1.__metadata("design:type", String)
|
|
146
|
-
], CheckAllDirective.prototype, "lastAction", void 0);
|
|
147
|
-
tslib_1.__decorate([
|
|
148
|
-
Input(),
|
|
149
|
-
tslib_1.__metadata("design:type", TreeViewComponent)
|
|
150
|
-
], CheckAllDirective.prototype, "treeview", void 0);
|
|
151
|
-
tslib_1.__decorate([
|
|
152
|
-
Input(),
|
|
153
|
-
tslib_1.__metadata("design:type", Array)
|
|
154
|
-
], CheckAllDirective.prototype, "checkedItems", void 0);
|
|
155
|
-
tslib_1.__decorate([
|
|
156
|
-
Input(),
|
|
157
|
-
tslib_1.__metadata("design:type", Object)
|
|
158
|
-
], CheckAllDirective.prototype, "valueField", void 0);
|
|
159
|
-
tslib_1.__decorate([
|
|
160
|
-
Input('checkAll'),
|
|
161
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
162
|
-
], CheckAllDirective.prototype, "focused", void 0);
|
|
163
|
-
tslib_1.__decorate([
|
|
164
|
-
Output(),
|
|
165
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
166
|
-
], CheckAllDirective.prototype, "checkedItemsChange", void 0);
|
|
167
|
-
tslib_1.__decorate([
|
|
168
|
-
HostListener('change', ['$event.target']),
|
|
169
|
-
tslib_1.__metadata("design:type", Function),
|
|
170
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
171
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
172
|
-
], CheckAllDirective.prototype, "handleChange", null);
|
|
173
|
-
CheckAllDirective = tslib_1.__decorate([
|
|
174
|
-
Directive({
|
|
175
|
-
selector: '[checkAll]' // tslint:disable-line
|
|
176
|
-
}),
|
|
177
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef, NgZone, ChangeDetectorRef, Renderer2])
|
|
178
|
-
], CheckAllDirective);
|
|
179
|
-
return CheckAllDirective;
|
|
180
|
-
}(BaseCheckDirective));
|
|
181
|
-
export { CheckAllDirective };
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from '@progress/kendo-angular-treeview';
|
|
8
|
-
import { Subscription } from 'rxjs';
|
|
9
|
-
import { filter } from 'rxjs/operators';
|
|
10
|
-
import { fetchDescendentNodes, isPresent } from '../../common/util';
|
|
11
|
-
import { BaseCheckDirective } from './base-check.directive';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* A directive which manages the in-memory checked state of the MultiSelectTree nodes.
|
|
16
|
-
*/
|
|
17
|
-
var CheckDirective = /** @class */ (function (_super) {
|
|
18
|
-
tslib_1.__extends(CheckDirective, _super);
|
|
19
|
-
function CheckDirective(treeView) {
|
|
20
|
-
var _this = _super.call(this) || this;
|
|
21
|
-
_this.treeView = treeView;
|
|
22
|
-
/**
|
|
23
|
-
* Fires when the `checkedItems` collection was updated.
|
|
24
|
-
*/
|
|
25
|
-
_this.checkedItemsChange = new EventEmitter();
|
|
26
|
-
/**
|
|
27
|
-
* Holds a Set with just the checked item keys.
|
|
28
|
-
*
|
|
29
|
-
* Should be updated each time the `checkedItems` value or content is changed.
|
|
30
|
-
* Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
|
|
31
|
-
*/
|
|
32
|
-
_this.checkedKeys = new Set();
|
|
33
|
-
_this.subscriptions = new Subscription();
|
|
34
|
-
_this.subscriptions.add(_this.treeView.checkedChange
|
|
35
|
-
.subscribe(_this.handleCheckedChange.bind(_this)));
|
|
36
|
-
_this.treeView.isChecked = _this.getCheckedState.bind(_this);
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
CheckDirective.prototype.ngOnChanges = function (changes) {
|
|
40
|
-
if (isPresent(changes.checkable)) {
|
|
41
|
-
this.toggleCheckOnClick();
|
|
42
|
-
}
|
|
43
|
-
if (isPresent(changes.checkedItems)) {
|
|
44
|
-
this.updateItems();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
CheckDirective.prototype.ngOnDestroy = function () {
|
|
48
|
-
this.subscriptions.unsubscribe();
|
|
49
|
-
this.unsubscribeClick();
|
|
50
|
-
};
|
|
51
|
-
CheckDirective.prototype.getCheckedState = function (dataItem, index) {
|
|
52
|
-
if (this.isItemChecked({ dataItem: dataItem, index: index })) {
|
|
53
|
-
return 'checked';
|
|
54
|
-
}
|
|
55
|
-
else if (this.checkable.checkChildren && this.isItemIndeterminate(this.treeView.itemLookup(index))) {
|
|
56
|
-
return 'indeterminate';
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return 'none';
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
CheckDirective.prototype.handleCheckedChange = function (node) {
|
|
63
|
-
this.checkNode(node);
|
|
64
|
-
// parents should be checked if `checkChildren` is set to `true` (single config option for both)
|
|
65
|
-
var checkParents = this.checkable.checkChildren;
|
|
66
|
-
if (checkParents) {
|
|
67
|
-
this.checkParents(node.parent);
|
|
68
|
-
}
|
|
69
|
-
this.checkedItemsChange.emit(this.checkedItems.slice());
|
|
70
|
-
};
|
|
71
|
-
CheckDirective.prototype.toggleCheckOnClick = function () {
|
|
72
|
-
var _this = this;
|
|
73
|
-
this.unsubscribeClick();
|
|
74
|
-
if (this.checkable.checkOnClick) {
|
|
75
|
-
this.clickSubscription = this.treeView.nodeClick
|
|
76
|
-
.pipe(filter(function (event) { return event.type === 'click'; }))
|
|
77
|
-
.subscribe(function (event) {
|
|
78
|
-
var lookup = _this.treeView.itemLookup(event.item.index);
|
|
79
|
-
_this.handleCheckedChange(lookup);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
CheckDirective.prototype.unsubscribeClick = function () {
|
|
84
|
-
if (this.clickSubscription) {
|
|
85
|
-
this.clickSubscription.unsubscribe();
|
|
86
|
-
this.clickSubscription = null;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
CheckDirective.prototype.checkNode = function (lookup) {
|
|
90
|
-
var _this = this;
|
|
91
|
-
if (this.treeView.isDisabled(lookup.item.dataItem, lookup.item.index)) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
var target = lookup.item;
|
|
95
|
-
var pendingCheck = [target];
|
|
96
|
-
// TODO: extract in a separate `checkChildren` method?
|
|
97
|
-
if (this.checkable.checkChildren) {
|
|
98
|
-
var filter_1 = function (item) {
|
|
99
|
-
return _this.treeView.isVisible(item.dataItem, item.index) &&
|
|
100
|
-
!_this.treeView.isDisabled(item.dataItem, item.index);
|
|
101
|
-
};
|
|
102
|
-
fetchDescendentNodes(lookup, filter_1)
|
|
103
|
-
.forEach(function (lookup) { return pendingCheck.push(lookup.item); });
|
|
104
|
-
}
|
|
105
|
-
var shouldCheck = !this.isItemChecked(target);
|
|
106
|
-
pendingCheck.forEach(function (item) {
|
|
107
|
-
if (shouldCheck) {
|
|
108
|
-
_this.addItem(item);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
_this.removeItem(item);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
CheckDirective.prototype.checkParents = function (parent) {
|
|
116
|
-
var _this = this;
|
|
117
|
-
var currentParent = parent;
|
|
118
|
-
while (currentParent) {
|
|
119
|
-
var allChildrenSelected = currentParent.children.every(function (item) { return _this.isItemChecked(item); });
|
|
120
|
-
if (allChildrenSelected) {
|
|
121
|
-
this.addItem(currentParent.item);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
this.removeItem(currentParent.item);
|
|
125
|
-
}
|
|
126
|
-
currentParent = currentParent.parent;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
CheckDirective.prototype.isItemIndeterminate = function (lookup) {
|
|
130
|
-
var children = lookup.children;
|
|
131
|
-
if (!Array.isArray(children) || children.length === 0) {
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
var index = 0;
|
|
135
|
-
var child = children[index];
|
|
136
|
-
while (isPresent(child)) {
|
|
137
|
-
if (this.isItemChecked(child.item) || this.isItemIndeterminate(child)) {
|
|
138
|
-
return true;
|
|
139
|
-
}
|
|
140
|
-
index += 1;
|
|
141
|
-
child = children[index];
|
|
142
|
-
}
|
|
143
|
-
return false;
|
|
144
|
-
};
|
|
145
|
-
tslib_1.__decorate([
|
|
146
|
-
Input(),
|
|
147
|
-
tslib_1.__metadata("design:type", Object)
|
|
148
|
-
], CheckDirective.prototype, "checkable", void 0);
|
|
149
|
-
tslib_1.__decorate([
|
|
150
|
-
Input(),
|
|
151
|
-
tslib_1.__metadata("design:type", Object)
|
|
152
|
-
], CheckDirective.prototype, "valueField", void 0);
|
|
153
|
-
tslib_1.__decorate([
|
|
154
|
-
Input(),
|
|
155
|
-
tslib_1.__metadata("design:type", Array)
|
|
156
|
-
], CheckDirective.prototype, "checkedItems", void 0);
|
|
157
|
-
tslib_1.__decorate([
|
|
158
|
-
Output(),
|
|
159
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
160
|
-
], CheckDirective.prototype, "checkedItemsChange", void 0);
|
|
161
|
-
CheckDirective = tslib_1.__decorate([
|
|
162
|
-
Directive({
|
|
163
|
-
selector: '[kendoMultiSelectTreeCheckable]'
|
|
164
|
-
}),
|
|
165
|
-
tslib_1.__metadata("design:paramtypes", [TreeViewComponent])
|
|
166
|
-
], CheckDirective);
|
|
167
|
-
return CheckDirective;
|
|
168
|
-
}(BaseCheckDirective));
|
|
169
|
-
export { CheckDirective };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { DataBoundComponent, FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
|
-
/**
|
|
9
|
-
* A directive which encapsulates the retrieval of the child nodes when flat data is provided.
|
|
10
|
-
*/
|
|
11
|
-
var DropDownTreeFlatBindingDirective = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(DropDownTreeFlatBindingDirective, _super);
|
|
13
|
-
function DropDownTreeFlatBindingDirective(dropDownTree) {
|
|
14
|
-
return _super.call(this, dropDownTree) || this;
|
|
15
|
-
}
|
|
16
|
-
tslib_1.__decorate([
|
|
17
|
-
Input('kendoDropDownTreeFlatBinding'),
|
|
18
|
-
tslib_1.__metadata("design:type", Array)
|
|
19
|
-
], DropDownTreeFlatBindingDirective.prototype, "nodes", void 0);
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
Input('valueField'),
|
|
22
|
-
tslib_1.__metadata("design:type", String)
|
|
23
|
-
], DropDownTreeFlatBindingDirective.prototype, "idField", void 0);
|
|
24
|
-
DropDownTreeFlatBindingDirective = tslib_1.__decorate([
|
|
25
|
-
Directive({
|
|
26
|
-
selector: '[kendoDropDownTreeFlatBinding]'
|
|
27
|
-
}),
|
|
28
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent])
|
|
29
|
-
], DropDownTreeFlatBindingDirective);
|
|
30
|
-
return DropDownTreeFlatBindingDirective;
|
|
31
|
-
}(FlatDataBindingDirective));
|
|
32
|
-
export { DropDownTreeFlatBindingDirective };
|
|
@@ -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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { DataBoundComponent, HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
|
-
/**
|
|
9
|
-
* A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
|
|
10
|
-
*/
|
|
11
|
-
var DropDownTreeHierarchyBindingDirective = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(DropDownTreeHierarchyBindingDirective, _super);
|
|
13
|
-
function DropDownTreeHierarchyBindingDirective(dropDownTree) {
|
|
14
|
-
var _this = _super.call(this, dropDownTree) || this;
|
|
15
|
-
_this.dropDownTree = dropDownTree;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(DropDownTreeHierarchyBindingDirective.prototype, "data", {
|
|
19
|
-
/**
|
|
20
|
-
* The nodes which will be displayed by the DropDownTree.
|
|
21
|
-
*/
|
|
22
|
-
set: function (nodes) {
|
|
23
|
-
this.dropDownTree.nodes = nodes;
|
|
24
|
-
this.nodes = nodes;
|
|
25
|
-
},
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
tslib_1.__decorate([
|
|
30
|
-
Input('kendoDropDownTreeHierarchyBinding'),
|
|
31
|
-
tslib_1.__metadata("design:type", Array),
|
|
32
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
33
|
-
], DropDownTreeHierarchyBindingDirective.prototype, "data", null);
|
|
34
|
-
DropDownTreeHierarchyBindingDirective = tslib_1.__decorate([
|
|
35
|
-
Directive({
|
|
36
|
-
selector: '[kendoDropDownTreeHierarchyBinding]'
|
|
37
|
-
}),
|
|
38
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent])
|
|
39
|
-
], DropDownTreeHierarchyBindingDirective);
|
|
40
|
-
return DropDownTreeHierarchyBindingDirective;
|
|
41
|
-
}(HierarchyBindingDirective));
|
|
42
|
-
export { DropDownTreeHierarchyBindingDirective };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { DataBoundComponent, FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
|
-
/**
|
|
9
|
-
* A directive which encapsulates the retrieval of the child nodes when flat data is provided.
|
|
10
|
-
*/
|
|
11
|
-
var MultiSelectTreeFlatBindingDirective = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(MultiSelectTreeFlatBindingDirective, _super);
|
|
13
|
-
function MultiSelectTreeFlatBindingDirective(multiSelectTree) {
|
|
14
|
-
return _super.call(this, multiSelectTree) || this;
|
|
15
|
-
}
|
|
16
|
-
tslib_1.__decorate([
|
|
17
|
-
Input('kendoMultiSelectTreeFlatBinding'),
|
|
18
|
-
tslib_1.__metadata("design:type", Array)
|
|
19
|
-
], MultiSelectTreeFlatBindingDirective.prototype, "nodes", void 0);
|
|
20
|
-
tslib_1.__decorate([
|
|
21
|
-
Input('valueField'),
|
|
22
|
-
tslib_1.__metadata("design:type", String)
|
|
23
|
-
], MultiSelectTreeFlatBindingDirective.prototype, "idField", void 0);
|
|
24
|
-
MultiSelectTreeFlatBindingDirective = tslib_1.__decorate([
|
|
25
|
-
Directive({
|
|
26
|
-
selector: '[kendoMultiSelectTreeFlatBinding]'
|
|
27
|
-
}),
|
|
28
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent])
|
|
29
|
-
], MultiSelectTreeFlatBindingDirective);
|
|
30
|
-
return MultiSelectTreeFlatBindingDirective;
|
|
31
|
-
}(FlatDataBindingDirective));
|
|
32
|
-
export { MultiSelectTreeFlatBindingDirective };
|
|
@@ -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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Input } from '@angular/core';
|
|
7
|
-
import { DataBoundComponent, HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
|
-
/**
|
|
9
|
-
* A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
|
|
10
|
-
*/
|
|
11
|
-
var MultiSelectTreeHierarchyBindingDirective = /** @class */ (function (_super) {
|
|
12
|
-
tslib_1.__extends(MultiSelectTreeHierarchyBindingDirective, _super);
|
|
13
|
-
function MultiSelectTreeHierarchyBindingDirective(multiSelectTree) {
|
|
14
|
-
var _this = _super.call(this, multiSelectTree) || this;
|
|
15
|
-
_this.multiSelectTree = multiSelectTree;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(MultiSelectTreeHierarchyBindingDirective.prototype, "data", {
|
|
19
|
-
/**
|
|
20
|
-
* The nodes which will be displayed by the MultiSelectTree.
|
|
21
|
-
*/
|
|
22
|
-
set: function (nodes) {
|
|
23
|
-
this.multiSelectTree.nodes = nodes;
|
|
24
|
-
this.nodes = nodes;
|
|
25
|
-
},
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
tslib_1.__decorate([
|
|
30
|
-
Input('kendoMultiSelectTreeHierarchyBinding'),
|
|
31
|
-
tslib_1.__metadata("design:type", Array),
|
|
32
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
33
|
-
], MultiSelectTreeHierarchyBindingDirective.prototype, "data", null);
|
|
34
|
-
MultiSelectTreeHierarchyBindingDirective = tslib_1.__decorate([
|
|
35
|
-
Directive({
|
|
36
|
-
selector: '[kendoMultiSelectTreeHierarchyBinding]'
|
|
37
|
-
}),
|
|
38
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent])
|
|
39
|
-
], MultiSelectTreeHierarchyBindingDirective);
|
|
40
|
-
return MultiSelectTreeHierarchyBindingDirective;
|
|
41
|
-
}(HierarchyBindingDirective));
|
|
42
|
-
export { MultiSelectTreeHierarchyBindingDirective };
|