@progress/kendo-angular-dropdowns 16.5.0 → 16.6.0-develop.2
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/autocomplete/autocomplete.component.d.ts +3 -4
- package/autocomplete/autocomplete.module.d.ts +17 -6
- package/comboboxes/combobox-column/column-cell-template.directive.d.ts +1 -1
- package/comboboxes/combobox-column/column-header-template.directive.d.ts +1 -1
- package/comboboxes/combobox-column/combobox-column.component.d.ts +1 -1
- package/comboboxes/combobox.component.d.ts +3 -4
- package/comboboxes/combobox.module.d.ts +22 -12
- package/comboboxes/multicolumncombobox.component.d.ts +2 -2
- package/common/action-sheet.component.d.ts +1 -1
- package/common/filter-input.directive.d.ts +1 -1
- package/common/filtering/filter.directive.d.ts +1 -1
- package/common/list-item.directive.d.ts +1 -1
- package/common/list.component.d.ts +1 -1
- package/common/localization/custom-messages.component.d.ts +1 -1
- package/common/localization/localized-messages.directive.d.ts +1 -1
- package/common/searchbar.component.d.ts +1 -1
- package/common/selection/selectable.directive.d.ts +1 -1
- package/common/shared-directives.module.d.ts +1 -1
- package/common/shared-events.directive.d.ts +1 -1
- package/common/shared.module.d.ts +9 -11
- package/common/taglist.component.d.ts +1 -1
- package/common/templates/custom-item-template.directive.d.ts +1 -1
- package/common/templates/fixed-group-template.directive.d.ts +1 -1
- package/common/templates/footer-template.directive.d.ts +1 -1
- package/common/templates/group-tag-template.directive.d.ts +1 -1
- package/common/templates/group-template.directive.d.ts +1 -1
- package/common/templates/header-template.directive.d.ts +1 -1
- package/common/templates/item-template.directive.d.ts +1 -1
- package/common/templates/no-data-template.directive.d.ts +1 -1
- package/common/templates/tag-template.directive.d.ts +1 -1
- package/common/templates/value-template.directive.d.ts +1 -1
- package/directives.d.ts +67 -0
- package/dropdownlist/dropdownlist.component.d.ts +7 -4
- package/dropdownlist/dropdownlist.module.d.ts +15 -4
- package/dropdowns.module.d.ts +32 -6
- package/dropdowntrees/checked-state/check-all.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/check.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/dropdowntree.component.d.ts +7 -4
- package/dropdowntrees/dropdowntrees.module.d.ts +32 -13
- package/dropdowntrees/expanded-state/expand.directive.d.ts +1 -1
- package/dropdowntrees/multiselecttree.component.d.ts +7 -4
- package/dropdowntrees/summary-tag/summary-tag.directive.d.ts +1 -1
- package/dropdowntrees/templates/node-template.directive.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete.component.mjs +17 -26
- package/esm2020/autocomplete/autocomplete.module.mjs +35 -14
- package/esm2020/comboboxes/combobox-column/column-cell-template.directive.mjs +3 -2
- package/esm2020/comboboxes/combobox-column/column-header-template.directive.mjs +3 -2
- package/esm2020/comboboxes/combobox-column/combobox-column.component.mjs +3 -2
- package/esm2020/comboboxes/combobox.component.mjs +18 -29
- package/esm2020/comboboxes/combobox.module.mjs +40 -35
- package/esm2020/comboboxes/multicolumncombobox.component.mjs +17 -21
- package/esm2020/common/action-sheet.component.mjs +9 -9
- package/esm2020/common/filter-input.directive.mjs +3 -1
- package/esm2020/common/filtering/filter.directive.mjs +3 -2
- package/esm2020/common/list-item.directive.mjs +3 -1
- package/esm2020/common/list.component.mjs +8 -9
- package/esm2020/common/localization/custom-messages.component.mjs +3 -2
- package/esm2020/common/localization/localized-messages.directive.mjs +3 -2
- package/esm2020/common/searchbar.component.mjs +5 -3
- package/esm2020/common/selection/selectable.directive.mjs +3 -2
- package/esm2020/common/shared-directives.module.mjs +3 -3
- package/esm2020/common/shared-events.directive.mjs +3 -2
- package/esm2020/common/shared.module.mjs +13 -12
- package/esm2020/common/taglist.component.mjs +8 -6
- package/esm2020/common/templates/custom-item-template.directive.mjs +3 -2
- package/esm2020/common/templates/fixed-group-template.directive.mjs +3 -2
- package/esm2020/common/templates/footer-template.directive.mjs +3 -2
- package/esm2020/common/templates/group-tag-template.directive.mjs +3 -2
- package/esm2020/common/templates/group-template.directive.mjs +3 -2
- package/esm2020/common/templates/header-template.directive.mjs +3 -2
- package/esm2020/common/templates/item-template.directive.mjs +3 -2
- package/esm2020/common/templates/no-data-template.directive.mjs +3 -2
- package/esm2020/common/templates/tag-template.directive.mjs +3 -2
- package/esm2020/common/templates/value-template.directive.mjs +3 -2
- package/esm2020/directives.mjs +166 -0
- package/esm2020/dropdownlist/dropdownlist.component.mjs +22 -27
- package/esm2020/dropdownlist/dropdownlist.module.mjs +33 -12
- package/esm2020/dropdowns.module.mjs +42 -8
- package/esm2020/dropdowntrees/checked-state/check-all.directive.mjs +3 -2
- package/esm2020/dropdowntrees/checked-state/check.directive.mjs +3 -2
- package/esm2020/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.mjs +3 -2
- package/esm2020/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.mjs +3 -2
- package/esm2020/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.mjs +3 -2
- package/esm2020/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.mjs +3 -2
- package/esm2020/dropdowntrees/dropdowntree.component.mjs +19 -24
- package/esm2020/dropdowntrees/dropdowntrees.module.mjs +59 -45
- package/esm2020/dropdowntrees/expanded-state/expand.directive.mjs +3 -2
- package/esm2020/dropdowntrees/multiselecttree.component.mjs +21 -25
- package/esm2020/dropdowntrees/summary-tag/summary-tag.directive.mjs +3 -2
- package/esm2020/dropdowntrees/templates/node-template.directive.mjs +3 -2
- package/esm2020/index.mjs +1 -1
- package/esm2020/multiselect/multiselect.component.mjs +19 -30
- package/esm2020/multiselect/multiselect.module.mjs +39 -25
- package/esm2020/multiselect/summary-tag.directive.mjs +3 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +1324 -1196
- package/fesm2020/progress-kendo-angular-dropdowns.mjs +735 -593
- package/index.d.ts +1 -1
- package/multiselect/multiselect.component.d.ts +3 -4
- package/multiselect/multiselect.module.d.ts +19 -6
- package/multiselect/summary-tag.directive.d.ts +1 -1
- package/package.json +8 -8
- package/schematics/ngAdd/index.js +2 -2
- package/common/constants/touch-enabled.d.ts +0 -9
- package/common/shared-events.module.d.ts +0 -14
- package/common/templates/template-context.directive.d.ts +0 -17
- package/esm2020/common/constants/touch-enabled.mjs +0 -9
- package/esm2020/common/shared-events.module.mjs +0 -22
- package/esm2020/common/templates/template-context.directive.mjs +0 -33
|
@@ -3,59 +3,73 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { DropDownTreeFlatBindingDirective } from './data-binding/dropdowntree/flat-binding.directive';
|
|
12
|
-
import { DropDownTreeHierarchyBindingDirective } from './data-binding/dropdowntree/hierarchy-binding.directive';
|
|
13
|
-
import { MultiSelectTreeFlatBindingDirective } from './data-binding/multiselecttree/flat-binding.directive';
|
|
14
|
-
import { MultiSelectTreeHierarchyBindingDirective } from './data-binding/multiselecttree/hierarchy-binding.directive';
|
|
15
|
-
import { DropDownTreesExpandDirective } from './expanded-state/expand.directive';
|
|
16
|
-
import { NodeTemplateDirective } from './templates/node-template.directive';
|
|
17
|
-
import { MultiSelectTreeSummaryTagDirective } from './summary-tag/summary-tag.directive';
|
|
6
|
+
import { KENDO_DROPDOWNTREE, KENDO_MULTISELECTTREE } from '../directives';
|
|
7
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
|
+
import { DialogContainerService, DialogService, WindowContainerService, WindowService } from '@progress/kendo-angular-dialog';
|
|
9
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
10
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
18
11
|
import * as i0 from "@angular/core";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
import * as i1 from "./dropdowntree.component";
|
|
13
|
+
import * as i2 from "./data-binding/dropdowntree/flat-binding.directive";
|
|
14
|
+
import * as i3 from "./data-binding/dropdowntree/hierarchy-binding.directive";
|
|
15
|
+
import * as i4 from "./expanded-state/expand.directive";
|
|
16
|
+
import * as i5 from "./templates/node-template.directive";
|
|
17
|
+
import * as i6 from "../common/templates/header-template.directive";
|
|
18
|
+
import * as i7 from "../common/templates/footer-template.directive";
|
|
19
|
+
import * as i8 from "../common/templates/value-template.directive";
|
|
20
|
+
import * as i9 from "../common/templates/no-data-template.directive";
|
|
21
|
+
import * as i10 from "../common/localization/custom-messages.component";
|
|
22
|
+
import * as i11 from "./multiselecttree.component";
|
|
23
|
+
import * as i12 from "./data-binding/multiselecttree/flat-binding.directive";
|
|
24
|
+
import * as i13 from "./data-binding/multiselecttree/hierarchy-binding.directive";
|
|
25
|
+
import * as i14 from "./summary-tag/summary-tag.directive";
|
|
26
|
+
import * as i15 from "../common/templates/group-tag-template.directive";
|
|
27
|
+
import * as i16 from "../common/templates/tag-template.directive";
|
|
28
|
+
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
30
|
+
* - `MultiSelectTreeComponent`—The MultiSelectTree component class.
|
|
31
|
+
* - `DropDownTreeComponent`—The DropDownTree component class.
|
|
32
|
+
* - `MultiSelectTreeFlatBindingDirective`—The MultiSelectTree flat binding directive.
|
|
33
|
+
* - `DropDownTreeFlatBindingDirective`—The DropDownTree flat binding directive.
|
|
34
|
+
* - `MultiSelectTreeHierarchyBindingDirective`—The MultiSelectTree hierarchy binding directive.
|
|
35
|
+
* - `DropDownTreeHierarchyBindingDirective`—The DropDownTree hierarchy binding directive.
|
|
36
|
+
* - `DropDownTreesExpandDirective`—The DropDownTreesExpand directive.
|
|
37
|
+
* - `NodeTemplateDirective`—The node template directive.
|
|
38
|
+
* - `MultiSelectTreeSummaryTagDirective`—The MultiSelectTreeSummaryTag directive.
|
|
39
|
+
* - `TagTemplateDirective`—The tag template directive.
|
|
40
|
+
* - `GroupTagTemplateDirective`—The group tag template directive.
|
|
41
|
+
* - `HeaderTemplateDirective`—The header template directive.
|
|
42
|
+
* - `FooterTemplateDirective`—The footer template directive.
|
|
43
|
+
* - `ValueTemplateDirective`—The value template directive.
|
|
44
|
+
* - `NoDataTemplateDirective`—The no-data template directive.
|
|
45
|
+
* - `CustomMessagesComponent`—The custom messages component.
|
|
32
46
|
*/
|
|
33
47
|
export class DropDownTreesModule {
|
|
34
48
|
}
|
|
35
49
|
DropDownTreesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
36
|
-
DropDownTreesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
DropDownTreeFlatBindingDirective,
|
|
47
|
-
DropDownTreeHierarchyBindingDirective,
|
|
48
|
-
MultiSelectTreeFlatBindingDirective,
|
|
49
|
-
MultiSelectTreeHierarchyBindingDirective,
|
|
50
|
-
DropDownTreesExpandDirective,
|
|
51
|
-
NodeTemplateDirective,
|
|
52
|
-
MultiSelectTreeSummaryTagDirective, SharedDirectivesModule] });
|
|
53
|
-
DropDownTreesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule, imports: [SharedModule, TreeViewModule, SharedDirectivesModule] });
|
|
50
|
+
DropDownTreesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule, imports: [i1.DropDownTreeComponent, i2.DropDownTreeFlatBindingDirective, i3.DropDownTreeHierarchyBindingDirective, i4.DropDownTreesExpandDirective, i5.NodeTemplateDirective, i6.HeaderTemplateDirective, i7.FooterTemplateDirective, i8.ValueTemplateDirective, i9.NoDataTemplateDirective, i10.CustomMessagesComponent, i11.MultiSelectTreeComponent, i12.MultiSelectTreeFlatBindingDirective, i13.MultiSelectTreeHierarchyBindingDirective, i4.DropDownTreesExpandDirective, i5.NodeTemplateDirective, i14.MultiSelectTreeSummaryTagDirective, i15.GroupTagTemplateDirective, i16.TagTemplateDirective, i6.HeaderTemplateDirective, i7.FooterTemplateDirective, i8.ValueTemplateDirective, i9.NoDataTemplateDirective, i10.CustomMessagesComponent], exports: [i1.DropDownTreeComponent, i2.DropDownTreeFlatBindingDirective, i3.DropDownTreeHierarchyBindingDirective, i4.DropDownTreesExpandDirective, i5.NodeTemplateDirective, i6.HeaderTemplateDirective, i7.FooterTemplateDirective, i8.ValueTemplateDirective, i9.NoDataTemplateDirective, i10.CustomMessagesComponent, i11.MultiSelectTreeComponent, i12.MultiSelectTreeFlatBindingDirective, i13.MultiSelectTreeHierarchyBindingDirective, i4.DropDownTreesExpandDirective, i5.NodeTemplateDirective, i14.MultiSelectTreeSummaryTagDirective, i15.GroupTagTemplateDirective, i16.TagTemplateDirective, i6.HeaderTemplateDirective, i7.FooterTemplateDirective, i8.ValueTemplateDirective, i9.NoDataTemplateDirective, i10.CustomMessagesComponent] });
|
|
51
|
+
DropDownTreesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule, providers: [
|
|
52
|
+
IconsService,
|
|
53
|
+
PopupService,
|
|
54
|
+
ResizeBatchService,
|
|
55
|
+
DialogContainerService,
|
|
56
|
+
DialogService,
|
|
57
|
+
WindowService,
|
|
58
|
+
WindowContainerService
|
|
59
|
+
], imports: [i1.DropDownTreeComponent, i10.CustomMessagesComponent, i11.MultiSelectTreeComponent, i10.CustomMessagesComponent] });
|
|
54
60
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesModule, decorators: [{
|
|
55
61
|
type: NgModule,
|
|
56
62
|
args: [{
|
|
57
|
-
|
|
58
|
-
exports: [
|
|
59
|
-
|
|
63
|
+
imports: [...KENDO_DROPDOWNTREE, ...KENDO_MULTISELECTTREE],
|
|
64
|
+
exports: [...KENDO_DROPDOWNTREE, ...KENDO_MULTISELECTTREE],
|
|
65
|
+
providers: [
|
|
66
|
+
IconsService,
|
|
67
|
+
PopupService,
|
|
68
|
+
ResizeBatchService,
|
|
69
|
+
DialogContainerService,
|
|
70
|
+
DialogService,
|
|
71
|
+
WindowService,
|
|
72
|
+
WindowContainerService
|
|
73
|
+
]
|
|
60
74
|
}]
|
|
61
75
|
}] });
|
|
@@ -25,11 +25,12 @@ export class DropDownTreesExpandDirective extends ExpandDirective {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
DropDownTreesExpandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesExpandDirective, deps: [{ token: i1.ExpandableComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
-
DropDownTreesExpandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownTreesExpandDirective, selector: "[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]", inputs: { isExpanded: ["isNodeExpanded", "isExpanded"] }, usesInheritance: true, ngImport: i0 });
|
|
28
|
+
DropDownTreesExpandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownTreesExpandDirective, isStandalone: true, selector: "[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]", inputs: { isExpanded: ["isNodeExpanded", "isExpanded"] }, usesInheritance: true, ngImport: i0 });
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreesExpandDirective, decorators: [{
|
|
30
30
|
type: Directive,
|
|
31
31
|
args: [{
|
|
32
|
-
selector: '[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]'
|
|
32
|
+
selector: '[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]',
|
|
33
|
+
standalone: true
|
|
33
34
|
}]
|
|
34
35
|
}], ctorParameters: function () { return [{ type: i1.ExpandableComponent }]; }, propDecorators: { isExpanded: [{
|
|
35
36
|
type: Input,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding,
|
|
5
|
+
import { ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding, Injector, Input, isDevMode, NgZone, Output, Renderer2, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
|
|
6
6
|
import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
-
import { anyChanged, guid, hasObservers, Keys, KendoInput, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
+
import { anyChanged, guid, hasObservers, Keys, KendoInput, isDocumentAvailable, EventsOutsideAngularDirective, ResizeSensorComponent, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
8
8
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { NavigationService } from '../common/navigation/navigation.service';
|
|
10
10
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
@@ -23,28 +23,24 @@ import { NodeTemplateDirective } from './templates/node-template.directive';
|
|
|
23
23
|
import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
|
|
24
24
|
import { TagTemplateDirective } from '../common/templates/tag-template.directive';
|
|
25
25
|
import { GroupTagTemplateDirective } from '../common/templates/group-tag-template.directive';
|
|
26
|
-
import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
|
|
27
26
|
import { merge, of, Subject, Subscription } from 'rxjs';
|
|
28
27
|
import { debounceTime, filter, tap } from 'rxjs/operators';
|
|
29
28
|
import { buildTreeItem, MultiSelectTreeLookupService, nodeIndex } from './lookup/lookup.service';
|
|
30
29
|
import { searchIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
31
30
|
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
31
|
+
import { CheckDirective } from './checked-state/check.directive';
|
|
32
|
+
import { CheckAllDirective } from './checked-state/check-all.directive';
|
|
33
|
+
import { FilterInputDirective } from '../common/filter-input.directive';
|
|
34
|
+
import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
35
|
+
import { TagListComponent } from '../common/taglist.component';
|
|
36
|
+
import { LocalizedMessagesDirective } from '../common/localization/localized-messages.directive';
|
|
37
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
38
|
+
import { touchEnabled } from '@progress/kendo-common';
|
|
32
39
|
import * as i0 from "@angular/core";
|
|
33
40
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
34
41
|
import * as i2 from "../common/navigation/navigation.service";
|
|
35
42
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
36
43
|
import * as i4 from "./lookup/lookup.service";
|
|
37
|
-
import * as i5 from "../common/templates/template-context.directive";
|
|
38
|
-
import * as i6 from "../common/taglist.component";
|
|
39
|
-
import * as i7 from "./checked-state/check.directive";
|
|
40
|
-
import * as i8 from "./checked-state/check-all.directive";
|
|
41
|
-
import * as i9 from "../common/action-sheet.component";
|
|
42
|
-
import * as i10 from "@angular/common";
|
|
43
|
-
import * as i11 from "@progress/kendo-angular-common";
|
|
44
|
-
import * as i12 from "../common/localization/localized-messages.directive";
|
|
45
|
-
import * as i13 from "../common/filter-input.directive";
|
|
46
|
-
import * as i14 from "@progress/kendo-angular-icons";
|
|
47
|
-
import * as i15 from "@progress/kendo-angular-treeview";
|
|
48
44
|
const DEFAULT_POPUP_SETTINGS = { animate: true };
|
|
49
45
|
const DEFAULT_CHECKABLE_SETTINGS = { checkChildren: true, checkOnClick: true };
|
|
50
46
|
const hasChildren = () => false;
|
|
@@ -58,7 +54,7 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
58
54
|
* Represents the [Kendo UI MultiSelectTree component for Angular]({% slug overview_multiselecttree %}).
|
|
59
55
|
*/
|
|
60
56
|
export class MultiSelectTreeComponent {
|
|
61
|
-
constructor(injector, wrapper, popupService, renderer, navigationService, _zone, localization, cdr, lookup
|
|
57
|
+
constructor(injector, wrapper, popupService, renderer, navigationService, _zone, localization, cdr, lookup) {
|
|
62
58
|
this.injector = injector;
|
|
63
59
|
this.wrapper = wrapper;
|
|
64
60
|
this.popupService = popupService;
|
|
@@ -68,6 +64,9 @@ export class MultiSelectTreeComponent {
|
|
|
68
64
|
this.localization = localization;
|
|
69
65
|
this.cdr = cdr;
|
|
70
66
|
this.lookup = lookup;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
71
70
|
this.touchEnabled = touchEnabled;
|
|
72
71
|
/**
|
|
73
72
|
* @hidden
|
|
@@ -1571,8 +1570,8 @@ export class MultiSelectTreeComponent {
|
|
|
1571
1570
|
this.filterable && this.actionSheetSearchBar.focus();
|
|
1572
1571
|
}
|
|
1573
1572
|
}
|
|
1574
|
-
MultiSelectTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.Renderer2 }, { token: i2.NavigationService }, { token: i0.NgZone }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i4.MultiSelectTreeLookupService }
|
|
1575
|
-
MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeComponent, selector: "kendo-multiselecttree", inputs: { adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", popupSettings: "popupSettings", checkableSettings: "checkableSettings", data: "data", value: "value", dataItems: "dataItems", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", loading: "loading", placeholder: "placeholder", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", loadOnDemand: "loadOnDemand", focusableId: "focusableId", clearButton: "clearButton", filterable: "filterable", checkAll: "checkAll", hasChildren: "hasChildren", fetchChildren: "fetchChildren", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", itemDisabled: "itemDisabled", tagMapper: "tagMapper" }, outputs: { onFocus: "focus", onBlur: "blur", open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", valueChange: "valueChange", removeTag: "removeTag", filterChange: "filterChange" }, host: { properties: { "class.k-multiselecttree": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.isDisabled", "attr.aria-disabled": "this.isDisabled", "attr.aria-controls": "this.hostAriaControls", "attr.aria-autocomplete": "this.hostAriaAutocomplete", "class.k-loading": "this.isLoading", "attr.aria-invalid": "this.hostAriaInvalid", "attr.aria-busy": "this.isBusy", "attr.id": "this.id", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabIndex", "attr.role": "this.role", "attr.aria-expanded": "this.isAriaExpanded", "attr.aria-haspopup": "this.ariaHasPopup", "attr.readonly": "this.isReadonly", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-activedescendant": "this.ariaActiveDescendant", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1573
|
+
MultiSelectTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.Renderer2 }, { token: i2.NavigationService }, { token: i0.NgZone }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i4.MultiSelectTreeLookupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1574
|
+
MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeComponent, isStandalone: true, selector: "kendo-multiselecttree", inputs: { adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", popupSettings: "popupSettings", checkableSettings: "checkableSettings", data: "data", value: "value", dataItems: "dataItems", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", loading: "loading", placeholder: "placeholder", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", loadOnDemand: "loadOnDemand", focusableId: "focusableId", clearButton: "clearButton", filterable: "filterable", checkAll: "checkAll", hasChildren: "hasChildren", fetchChildren: "fetchChildren", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", itemDisabled: "itemDisabled", tagMapper: "tagMapper" }, outputs: { onFocus: "focus", onBlur: "blur", open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", valueChange: "valueChange", removeTag: "removeTag", filterChange: "filterChange" }, host: { properties: { "class.k-multiselecttree": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.isDisabled", "attr.aria-disabled": "this.isDisabled", "attr.aria-controls": "this.hostAriaControls", "attr.aria-autocomplete": "this.hostAriaAutocomplete", "class.k-loading": "this.isLoading", "attr.aria-invalid": "this.hostAriaInvalid", "attr.aria-busy": "this.isBusy", "attr.id": "this.id", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabIndex", "attr.role": "this.role", "attr.aria-expanded": "this.isAriaExpanded", "attr.aria-haspopup": "this.ariaHasPopup", "attr.readonly": "this.isReadonly", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-activedescendant": "this.ariaActiveDescendant", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1576
1575
|
LocalizationService,
|
|
1577
1576
|
NavigationService,
|
|
1578
1577
|
DataService,
|
|
@@ -1822,7 +1821,7 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
1822
1821
|
</ng-template>
|
|
1823
1822
|
|
|
1824
1823
|
<kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
1825
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1824
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "component", type: TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResponsiveRendererComponent, selector: "responsive-renderer", inputs: ["title", "showActionButtons", "subtitle", "size", "showTextInput", "sharedPopupActionSheetTemplate", "isActionSheetExpanded", "text", "placeholder"], outputs: ["closePopup", "textInputChange", "navigate", "onExpand", "onCollapse", "onApply", "onCancel"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: FilterInputDirective, selector: "[filterInput]", inputs: ["filterInput"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: CheckAllDirective, selector: "[checkAll]", inputs: ["lastAction", "treeview", "checkedItems", "valueField", "checkAll"], outputs: ["checkedItemsChange"] }, { kind: "component", type: TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { kind: "directive", type: CheckDirective, selector: "[kendoMultiSelectTreeCheckable]", inputs: ["checkable", "valueField", "checkedItems"], outputs: ["checkedItemsChange"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
1826
1825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeComponent, decorators: [{
|
|
1827
1826
|
type: Component,
|
|
1828
1827
|
args: [{
|
|
@@ -2079,14 +2078,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2079
2078
|
</ng-template>
|
|
2080
2079
|
|
|
2081
2080
|
<kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
2082
|
-
|
|
2081
|
+
`,
|
|
2082
|
+
standalone: true,
|
|
2083
|
+
imports: [LocalizedMessagesDirective, TagListComponent, NgIf, IconWrapperComponent, NgTemplateOutlet, ResponsiveRendererComponent, NgClass, FilterInputDirective, EventsOutsideAngularDirective, TemplateContextDirective, CheckAllDirective, TreeViewComponent, CheckDirective, ResizeSensorComponent]
|
|
2083
2084
|
}]
|
|
2084
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i1.PopupService }, { type: i0.Renderer2 }, { type: i2.NavigationService }, { type: i0.NgZone }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i4.MultiSelectTreeLookupService },
|
|
2085
|
-
type: Optional
|
|
2086
|
-
}, {
|
|
2087
|
-
type: Inject,
|
|
2088
|
-
args: [TOUCH_ENABLED]
|
|
2089
|
-
}] }]; }, propDecorators: { hostClasses: [{
|
|
2085
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i1.PopupService }, { type: i0.Renderer2 }, { type: i2.NavigationService }, { type: i0.NgZone }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i4.MultiSelectTreeLookupService }]; }, propDecorators: { hostClasses: [{
|
|
2090
2086
|
type: HostBinding,
|
|
2091
2087
|
args: ['class.k-multiselecttree']
|
|
2092
2088
|
}, {
|
|
@@ -51,11 +51,12 @@ export class MultiSelectTreeSummaryTagDirective {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
MultiSelectTreeSummaryTagDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeSummaryTagDirective, deps: [{ token: i1.MultiSelectTreeComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
-
MultiSelectTreeSummaryTagDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeSummaryTagDirective, selector: "[kendoMultiSelectTreeSummaryTag]", inputs: { showAfter: ["kendoMultiSelectTreeSummaryTag", "showAfter"] }, usesOnChanges: true, ngImport: i0 });
|
|
54
|
+
MultiSelectTreeSummaryTagDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeSummaryTagDirective, isStandalone: true, selector: "[kendoMultiSelectTreeSummaryTag]", inputs: { showAfter: ["kendoMultiSelectTreeSummaryTag", "showAfter"] }, usesOnChanges: true, ngImport: i0 });
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeSummaryTagDirective, decorators: [{
|
|
56
56
|
type: Directive,
|
|
57
57
|
args: [{
|
|
58
|
-
selector: '[kendoMultiSelectTreeSummaryTag]'
|
|
58
|
+
selector: '[kendoMultiSelectTreeSummaryTag]',
|
|
59
|
+
standalone: true
|
|
59
60
|
}]
|
|
60
61
|
}], ctorParameters: function () { return [{ type: i1.MultiSelectTreeComponent }]; }, propDecorators: { showAfter: [{
|
|
61
62
|
type: Input,
|
|
@@ -19,10 +19,11 @@ export class NodeTemplateDirective {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
NodeTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NodeTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
-
NodeTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: NodeTemplateDirective, selector: "[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]", ngImport: i0 });
|
|
22
|
+
NodeTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: NodeTemplateDirective, isStandalone: true, selector: "[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]", ngImport: i0 });
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NodeTemplateDirective, decorators: [{
|
|
24
24
|
type: Directive,
|
|
25
25
|
args: [{
|
|
26
|
-
selector: '[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]'
|
|
26
|
+
selector: '[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]',
|
|
27
|
+
standalone: true
|
|
27
28
|
}]
|
|
28
29
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
package/esm2020/index.mjs
CHANGED
|
@@ -32,7 +32,6 @@ export { CustomItemTemplateDirective } from './common/templates/custom-item-temp
|
|
|
32
32
|
export { HeaderTemplateDirective } from './common/templates/header-template.directive';
|
|
33
33
|
export { FooterTemplateDirective } from './common/templates/footer-template.directive';
|
|
34
34
|
export { ValueTemplateDirective } from './common/templates/value-template.directive';
|
|
35
|
-
export { TemplateContextDirective } from './common/templates/template-context.directive';
|
|
36
35
|
export { TagTemplateDirective } from './common/templates/tag-template.directive';
|
|
37
36
|
export { GroupTagTemplateDirective } from './common/templates/group-tag-template.directive';
|
|
38
37
|
export { NoDataTemplateDirective } from './common/templates/no-data-template.directive';
|
|
@@ -55,3 +54,4 @@ export { ListComponent } from './common/list.component';
|
|
|
55
54
|
export { ResponsiveRendererComponent } from './common/action-sheet.component';
|
|
56
55
|
export { PreventableEvent } from './common/models/preventable-event';
|
|
57
56
|
export { RemoveTagEvent } from './common/models/remove-tag-event';
|
|
57
|
+
export * from './directives';
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { guid, isPresent, isArray, isObjectArray, resolveAllValues, selectedIndices, getter, isNumber, isUntouched, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, animationDuration, isTruthy, windowSize, setListBoxAriaLabelledBy, setActionSheetTitle, updateActionSheetAdaptiveAppearance } from '../common/util';
|
|
6
6
|
import { SearchBarComponent } from '../common/searchbar.component';
|
|
7
|
-
import { ViewChild, Renderer2, ViewContainerRef, Component, HostBinding, Input, ElementRef, TemplateRef, Output, EventEmitter, isDevMode, forwardRef, ContentChild, ChangeDetectorRef, KeyValueDiffers, NgZone,
|
|
7
|
+
import { ViewChild, Renderer2, ViewContainerRef, Component, HostBinding, Input, ElementRef, TemplateRef, Output, EventEmitter, isDevMode, forwardRef, ContentChild, ChangeDetectorRef, KeyValueDiffers, NgZone, Injector } from '@angular/core';
|
|
8
8
|
import { Subscription, Subject, of, merge } from 'rxjs';
|
|
9
|
+
import { isChanged, isDocumentAvailable, KendoInput, hasObservers, anyChanged, SuffixTemplateDirective, PrefixTemplateDirective, isControlRequired, SeparatorComponent, ResizeSensorComponent, Keys, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
9
10
|
import { catchError, filter, map, take, tap } from 'rxjs/operators';
|
|
10
|
-
import { isChanged, isDocumentAvailable, KendoInput, hasObservers, anyChanged, SuffixTemplateDirective, PrefixTemplateDirective, isControlRequired } from '@progress/kendo-angular-common';
|
|
11
11
|
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
12
12
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
13
13
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -15,7 +15,6 @@ import { SelectionService } from '../common/selection/selection.service';
|
|
|
15
15
|
import { NavigationService } from '../common/navigation/navigation.service';
|
|
16
16
|
import { NavigationAction } from '../common/navigation/navigation-action';
|
|
17
17
|
import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
|
|
18
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
19
18
|
import { ItemTemplateDirective } from '../common/templates/item-template.directive';
|
|
20
19
|
import { CustomItemTemplateDirective } from '../common/templates/custom-item-template.directive';
|
|
21
20
|
import { GroupTemplateDirective } from '../common/templates/group-template.directive';
|
|
@@ -31,14 +30,19 @@ import { RemoveTagEvent } from '../common/models/remove-tag-event';
|
|
|
31
30
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
32
31
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
33
32
|
import { FilterableComponent } from '../common/filtering/filterable-component';
|
|
34
|
-
import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
|
|
35
33
|
import { DataService } from '../common/data.service';
|
|
36
34
|
import { ListComponent } from '../common/list.component';
|
|
37
35
|
import { normalizeCheckboxesSettings } from '../common/models/checkboxes-settings';
|
|
38
36
|
import { normalizeVirtualizationSettings } from '../common/models/virtualization-settings';
|
|
39
37
|
import { plusIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
40
38
|
import { ResponsiveRendererComponent } from '../common/action-sheet.component';
|
|
39
|
+
import { SelectableDirective } from '../common/selection/selectable.directive';
|
|
41
40
|
import { TagListComponent } from '../common/taglist.component';
|
|
41
|
+
import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
42
|
+
import { SharedDropDownEventsDirective } from '../common/shared-events.directive';
|
|
43
|
+
import { LocalizedMessagesDirective } from '../common/localization/localized-messages.directive';
|
|
44
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
45
|
+
import { touchEnabled } from '@progress/kendo-common';
|
|
42
46
|
import * as i0 from "@angular/core";
|
|
43
47
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
44
48
|
import * as i2 from "@progress/kendo-angular-popup";
|
|
@@ -46,17 +50,6 @@ import * as i3 from "../common/data.service";
|
|
|
46
50
|
import * as i4 from "../common/selection/selection.service";
|
|
47
51
|
import * as i5 from "../common/navigation/navigation.service";
|
|
48
52
|
import * as i6 from "../common/disabled-items/disabled-items.service";
|
|
49
|
-
import * as i7 from "../common/list.component";
|
|
50
|
-
import * as i8 from "../common/selection/selectable.directive";
|
|
51
|
-
import * as i9 from "../common/searchbar.component";
|
|
52
|
-
import * as i10 from "../common/templates/template-context.directive";
|
|
53
|
-
import * as i11 from "../common/taglist.component";
|
|
54
|
-
import * as i12 from "../common/action-sheet.component";
|
|
55
|
-
import * as i13 from "@angular/common";
|
|
56
|
-
import * as i14 from "@progress/kendo-angular-common";
|
|
57
|
-
import * as i15 from "../common/localization/localized-messages.directive";
|
|
58
|
-
import * as i16 from "@progress/kendo-angular-icons";
|
|
59
|
-
import * as i17 from "../common/shared-events.directive";
|
|
60
53
|
const MULTISELECT_VALUE_ACCESSOR = {
|
|
61
54
|
multi: true,
|
|
62
55
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -83,7 +76,7 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
83
76
|
* ```
|
|
84
77
|
*/
|
|
85
78
|
export class MultiSelectComponent {
|
|
86
|
-
constructor(wrapper, localization, popupService, dataService, selectionService, navigationService, disabledItemsService, cdr, differs, renderer, _zone,
|
|
79
|
+
constructor(wrapper, localization, popupService, dataService, selectionService, navigationService, disabledItemsService, cdr, differs, renderer, _zone, injector, hostElement) {
|
|
87
80
|
this.wrapper = wrapper;
|
|
88
81
|
this.localization = localization;
|
|
89
82
|
this.popupService = popupService;
|
|
@@ -95,7 +88,6 @@ export class MultiSelectComponent {
|
|
|
95
88
|
this.differs = differs;
|
|
96
89
|
this.renderer = renderer;
|
|
97
90
|
this._zone = _zone;
|
|
98
|
-
this.touchEnabled = touchEnabled;
|
|
99
91
|
this.injector = injector;
|
|
100
92
|
this.hostElement = hostElement;
|
|
101
93
|
/**
|
|
@@ -787,7 +779,7 @@ export class MultiSelectComponent {
|
|
|
787
779
|
return prefix + "-" + focusedIndex;
|
|
788
780
|
}
|
|
789
781
|
get clearButtonVisiblity() {
|
|
790
|
-
if (
|
|
782
|
+
if (touchEnabled) {
|
|
791
783
|
return 'visible';
|
|
792
784
|
}
|
|
793
785
|
}
|
|
@@ -1223,7 +1215,7 @@ export class MultiSelectComponent {
|
|
|
1223
1215
|
].forEach(s => this.subs.add(s));
|
|
1224
1216
|
}
|
|
1225
1217
|
subscribeTouchEvents() {
|
|
1226
|
-
if (!isDocumentAvailable() || !
|
|
1218
|
+
if (!isDocumentAvailable() || !touchEnabled) {
|
|
1227
1219
|
return;
|
|
1228
1220
|
}
|
|
1229
1221
|
this._zone.runOutsideAngular(() =>
|
|
@@ -1376,7 +1368,7 @@ export class MultiSelectComponent {
|
|
|
1376
1368
|
if (this.isFocused && this.isOpen && event.target === inputElement) {
|
|
1377
1369
|
return;
|
|
1378
1370
|
}
|
|
1379
|
-
if (!
|
|
1371
|
+
if (!touchEnabled || (touchEnabled && event.target.tagName !== 'SPAN')) {
|
|
1380
1372
|
this.searchbar.focus();
|
|
1381
1373
|
}
|
|
1382
1374
|
// The check is needed otherwise when appended to the component, the popup reopens on click
|
|
@@ -1743,8 +1735,8 @@ export class MultiSelectComponent {
|
|
|
1743
1735
|
this.actionSheetSearchBar.focus();
|
|
1744
1736
|
}
|
|
1745
1737
|
}
|
|
1746
|
-
MultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.DataService }, { token: i4.SelectionService }, { token: i5.NavigationService }, { token: i6.DisabledItemsService }, { token: i0.ChangeDetectorRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token:
|
|
1747
|
-
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectComponent, selector: "kendo-multiselect", inputs: { showStickyHeader: "showStickyHeader", focusableId: "focusableId", autoClose: "autoClose", loading: "loading", data: "data", value: "value", valueField: "valueField", textField: "textField", tabindex: "tabindex", tabIndex: "tabIndex", size: "size", rounded: "rounded", fillMode: "fillMode", placeholder: "placeholder", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", disabled: "disabled", itemDisabled: "itemDisabled", checkboxes: "checkboxes", readonly: "readonly", filterable: "filterable", virtual: "virtual", popupSettings: "popupSettings", listHeight: "listHeight", valuePrimitive: "valuePrimitive", clearButton: "clearButton", tagMapper: "tagMapper", allowCustom: "allowCustom", valueNormalizer: "valueNormalizer", inputAttributes: "inputAttributes" }, outputs: { filterChange: "filterChange", valueChange: "valueChange", open: "open", opened: "opened", close: "close", closed: "closed", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur", removeTag: "removeTag" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-multiselect": "this.hostClasses", "class.k-input": "this.hostClasses", "attr.dir": "this.dir", "class.k-disabled": "this.disabledClass", "class.k-loading": "this.isLoading" } }, providers: [
|
|
1738
|
+
MultiSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.DataService }, { token: i4.SelectionService }, { token: i5.NavigationService }, { token: i6.DisabledItemsService }, { token: i0.ChangeDetectorRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1739
|
+
MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectComponent, isStandalone: true, selector: "kendo-multiselect", inputs: { showStickyHeader: "showStickyHeader", focusableId: "focusableId", autoClose: "autoClose", loading: "loading", data: "data", value: "value", valueField: "valueField", textField: "textField", tabindex: "tabindex", tabIndex: "tabIndex", size: "size", rounded: "rounded", fillMode: "fillMode", placeholder: "placeholder", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", disabled: "disabled", itemDisabled: "itemDisabled", checkboxes: "checkboxes", readonly: "readonly", filterable: "filterable", virtual: "virtual", popupSettings: "popupSettings", listHeight: "listHeight", valuePrimitive: "valuePrimitive", clearButton: "clearButton", tagMapper: "tagMapper", allowCustom: "allowCustom", valueNormalizer: "valueNormalizer", inputAttributes: "inputAttributes" }, outputs: { filterChange: "filterChange", valueChange: "valueChange", open: "open", opened: "opened", close: "close", closed: "closed", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur", removeTag: "removeTag" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-multiselect": "this.hostClasses", "class.k-input": "this.hostClasses", "attr.dir": "this.dir", "class.k-disabled": "this.disabledClass", "class.k-loading": "this.isLoading" } }, providers: [
|
|
1748
1740
|
MULTISELECT_VALUE_ACCESSOR,
|
|
1749
1741
|
DataService,
|
|
1750
1742
|
SelectionService,
|
|
@@ -1956,7 +1948,7 @@ MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1956
1948
|
}">
|
|
1957
1949
|
</ng-template>
|
|
1958
1950
|
</ng-template>
|
|
1959
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
1951
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: TagListComponent, selector: "kendo-taglist", inputs: ["tags", "textField", "valueField", "valueDepth", "focused", "template", "groupTemplate", "disabled", "tagPrefix", "id", "size", "rounded", "fillMode", "disabledIndices"], outputs: ["removeTag"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ResponsiveRendererComponent, selector: "responsive-renderer", inputs: ["title", "showActionButtons", "subtitle", "size", "showTextInput", "sharedPopupActionSheetTemplate", "isActionSheetExpanded", "text", "placeholder"], outputs: ["closePopup", "textInputChange", "navigate", "onExpand", "onCollapse", "onApply", "onCancel"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: SelectableDirective, selector: "[kendoDropDownsSelectable]", inputs: ["index", "checkboxes", "height", "isMultiselect", "multipleSelection"] }, { kind: "component", type: ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "isActionSheetExpanded", "showStickyHeader", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
1960
1952
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectComponent, decorators: [{
|
|
1961
1953
|
type: Component,
|
|
1962
1954
|
args: [{
|
|
@@ -2175,14 +2167,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2175
2167
|
}">
|
|
2176
2168
|
</ng-template>
|
|
2177
2169
|
</ng-template>
|
|
2178
|
-
|
|
2170
|
+
`,
|
|
2171
|
+
standalone: true,
|
|
2172
|
+
imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, TagListComponent, SearchBarComponent, IconWrapperComponent, ResizeSensorComponent, ResponsiveRendererComponent, TemplateContextDirective, NgClass, SelectableDirective, ListComponent]
|
|
2179
2173
|
}]
|
|
2180
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.DataService }, { type: i4.SelectionService }, { type: i5.NavigationService }, { type: i6.DisabledItemsService }, { type: i0.ChangeDetectorRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type:
|
|
2181
|
-
type: Optional
|
|
2182
|
-
}, {
|
|
2183
|
-
type: Inject,
|
|
2184
|
-
args: [TOUCH_ENABLED]
|
|
2185
|
-
}] }, { type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { responsiveRendererComponent: [{
|
|
2174
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.DataService }, { type: i4.SelectionService }, { type: i5.NavigationService }, { type: i6.DisabledItemsService }, { type: i0.ChangeDetectorRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { responsiveRendererComponent: [{
|
|
2186
2175
|
type: ViewChild,
|
|
2187
2176
|
args: [ResponsiveRendererComponent]
|
|
2188
2177
|
}], showStickyHeader: [{
|
|
@@ -3,23 +3,27 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { SharedModule } from '../common/shared.module';
|
|
11
|
-
import { SharedDirectivesModule } from '../common/shared-directives.module';
|
|
12
|
-
import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
|
|
13
|
-
import { AdornmentsModule } from '@progress/kendo-angular-common';
|
|
14
|
-
import { SharedEventsModule } from '../common/shared-events.module';
|
|
6
|
+
import { KENDO_MULTISELECT } from '../directives';
|
|
7
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
9
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
15
10
|
import * as i0 from "@angular/core";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
import * as i1 from "./multiselect.component";
|
|
12
|
+
import * as i2 from "./summary-tag.directive";
|
|
13
|
+
import * as i3 from "../common/templates/custom-item-template.directive";
|
|
14
|
+
import * as i4 from "../common/templates/fixed-group-template.directive";
|
|
15
|
+
import * as i5 from "../common/templates/footer-template.directive";
|
|
16
|
+
import * as i6 from "../common/templates/group-template.directive";
|
|
17
|
+
import * as i7 from "../common/templates/group-tag-template.directive";
|
|
18
|
+
import * as i8 from "../common/templates/tag-template.directive";
|
|
19
|
+
import * as i9 from "../common/templates/header-template.directive";
|
|
20
|
+
import * as i10 from "../common/templates/item-template.directive";
|
|
21
|
+
import * as i11 from "../common/templates/no-data-template.directive";
|
|
22
|
+
import * as i12 from "../common/filtering/filter.directive";
|
|
23
|
+
import * as i13 from "../common/localization/custom-messages.component";
|
|
24
|
+
import * as i14 from "@progress/kendo-angular-common";
|
|
25
|
+
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
21
26
|
/**
|
|
22
|
-
* @hidden
|
|
23
27
|
*
|
|
24
28
|
* The exported package module.
|
|
25
29
|
*
|
|
@@ -29,26 +33,36 @@ const MULTISELECT_DIRECTIVES = [
|
|
|
29
33
|
* - `ItemTemplateDirective`—The item template directive.
|
|
30
34
|
* - `CustomItemTemplateDirective`—The custom item template directive.
|
|
31
35
|
* - `TagTemplateDirective`—The tag template directive.
|
|
36
|
+
* - `GroupTagTemplateDirective`—The group tag template directive.
|
|
32
37
|
* - `SummaryTagTemplateDirective`—The summary tag template directive.
|
|
33
38
|
* - `HeaderTemplateDirective`—The header template directive.
|
|
34
39
|
* - `FooterTemplateDirective`—The footer template directive.
|
|
35
40
|
* - `NoDataTemplateDirective`—The no-data template directive.
|
|
41
|
+
* - `FilterDirective`—The filter directive.
|
|
42
|
+
* - `CustomMessagesComponent`—The custom messages component.
|
|
43
|
+
* - `GroupTemplateDirective`—The group template directive.
|
|
44
|
+
* - `FixedGroupTemplateDirective`—The fixed group template directive.
|
|
45
|
+
* - `SuffixTemplateDirective`—The suffix template directive.
|
|
46
|
+
* - `PrefixTemplateDirective`—The prefix template directive.
|
|
36
47
|
*/
|
|
37
48
|
export class MultiSelectModule {
|
|
38
49
|
}
|
|
39
50
|
MultiSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
-
MultiSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectModule,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
MultiSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectModule, imports: [i1.MultiSelectComponent, i2.SummaryTagDirective, i3.CustomItemTemplateDirective, i4.FixedGroupTemplateDirective, i5.FooterTemplateDirective, i6.GroupTemplateDirective, i7.GroupTagTemplateDirective, i8.TagTemplateDirective, i9.HeaderTemplateDirective, i10.ItemTemplateDirective, i11.NoDataTemplateDirective, i12.FilterDirective, i13.CustomMessagesComponent, i14.SuffixTemplateDirective, i14.PrefixTemplateDirective], exports: [i1.MultiSelectComponent, i2.SummaryTagDirective, i3.CustomItemTemplateDirective, i4.FixedGroupTemplateDirective, i5.FooterTemplateDirective, i6.GroupTemplateDirective, i7.GroupTagTemplateDirective, i8.TagTemplateDirective, i9.HeaderTemplateDirective, i10.ItemTemplateDirective, i11.NoDataTemplateDirective, i12.FilterDirective, i13.CustomMessagesComponent, i14.SuffixTemplateDirective, i14.PrefixTemplateDirective] });
|
|
52
|
+
MultiSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectModule, providers: [
|
|
53
|
+
PopupService,
|
|
54
|
+
ResizeBatchService,
|
|
55
|
+
IconsService
|
|
56
|
+
], imports: [i1.MultiSelectComponent, i13.CustomMessagesComponent] });
|
|
46
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectModule, decorators: [{
|
|
47
58
|
type: NgModule,
|
|
48
59
|
args: [{
|
|
49
|
-
|
|
50
|
-
exports: [
|
|
51
|
-
|
|
52
|
-
|
|
60
|
+
imports: [...KENDO_MULTISELECT],
|
|
61
|
+
exports: [...KENDO_MULTISELECT],
|
|
62
|
+
providers: [
|
|
63
|
+
PopupService,
|
|
64
|
+
ResizeBatchService,
|
|
65
|
+
IconsService
|
|
66
|
+
]
|
|
53
67
|
}]
|
|
54
68
|
}] });
|
|
@@ -52,11 +52,12 @@ export class SummaryTagDirective {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
SummaryTagDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryTagDirective, deps: [{ token: i1.MultiSelectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
-
SummaryTagDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SummaryTagDirective, selector: "[kendoMultiSelectSummaryTag]", inputs: { showAfter: ["kendoMultiSelectSummaryTag", "showAfter"] }, usesOnChanges: true, ngImport: i0 });
|
|
55
|
+
SummaryTagDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SummaryTagDirective, isStandalone: true, selector: "[kendoMultiSelectSummaryTag]", inputs: { showAfter: ["kendoMultiSelectSummaryTag", "showAfter"] }, usesOnChanges: true, ngImport: i0 });
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SummaryTagDirective, decorators: [{
|
|
57
57
|
type: Directive,
|
|
58
58
|
args: [{
|
|
59
|
-
selector: '[kendoMultiSelectSummaryTag]'
|
|
59
|
+
selector: '[kendoMultiSelectSummaryTag]',
|
|
60
|
+
standalone: true
|
|
60
61
|
}]
|
|
61
62
|
}], ctorParameters: function () { return [{ type: i1.MultiSelectComponent }]; }, propDecorators: { showAfter: [{
|
|
62
63
|
type: Input,
|