@progress/kendo-angular-pivotgrid 17.0.0-develop.4 → 17.0.0-develop.41
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/README.md +37 -15
- package/configurator/chip-menu/chip-menu-filter.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item-base.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item.directive.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-reorder.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-sort.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu.component.d.ts +6 -4
- package/configurator/chip-menu/filtering/filter-menu-container.component.d.ts +1 -1
- package/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.d.ts +1 -1
- package/configurator/chip-menu/filtering/string-filter-menu.component.d.ts +3 -3
- package/configurator/configurator.component.d.ts +3 -6
- package/configurator/draggable.directive.d.ts +4 -5
- package/configurator/drop-target.directive.d.ts +1 -1
- package/data-binding/base-binding-directive.d.ts +1 -1
- package/data-binding/local-binding.directive.d.ts +1 -1
- package/data-binding/olap-binding.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/configurator/chip-kb-nav.directive.mjs +8 -5
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-container.component.mjs +8 -5
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-filter.component.mjs +25 -19
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item-base.mjs +9 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item.component.mjs +65 -40
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item.directive.mjs +35 -28
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-reorder.component.mjs +27 -19
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-sort.component.mjs +10 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.component.mjs +36 -39
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.service.mjs +12 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-container.component.mjs +22 -9
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.mjs +11 -9
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/menu-tabbing.service.mjs +7 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/string-filter-menu.component.mjs +25 -15
- package/{esm2020 → esm2022}/configurator/chip-menu/single-popup.service.mjs +21 -10
- package/{esm2020 → esm2022}/configurator/configurator.component.mjs +137 -120
- package/{esm2020 → esm2022}/configurator/configurator.service.mjs +12 -5
- package/{esm2020 → esm2022}/configurator/draggable.directive.mjs +22 -15
- package/{esm2020 → esm2022}/configurator/drop-cue.service.mjs +4 -3
- package/{esm2020 → esm2022}/configurator/drop-target.directive.mjs +15 -4
- package/{esm2020 → esm2022}/data-binding/base-binding-directive.mjs +43 -35
- package/{esm2020 → esm2022}/data-binding/local-binding.directive.mjs +17 -5
- package/{esm2020 → esm2022}/data-binding/olap-binding.directive.mjs +16 -4
- package/{esm2020 → esm2022}/data-binding/pivotgrid-data.service.mjs +25 -14
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +284 -0
- package/{esm2020 → esm2022}/localization/pivot-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/models/configuration-change-event.mjs +20 -0
- package/{esm2020 → esm2022}/models/configurator-settings.mjs +5 -0
- package/{esm2020 → esm2022}/models/expanded-change-event.mjs +12 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/pivotgrid.component.mjs +101 -76
- package/{esm2020 → esm2022}/pivotgrid.module.mjs +13 -14
- package/{esm2020 → esm2022}/rendering/pivotgrid-cell.directive.mjs +38 -26
- package/{esm2020 → esm2022}/rendering/pivotgrid-table.component.mjs +66 -48
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-column-header-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-row-header-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-value-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/virtual/scroll.service.mjs +5 -6
- package/{esm2020 → esm2022}/virtual/scrollable-container.mjs +57 -43
- package/{fesm2020 → fesm2022}/progress-kendo-angular-pivotgrid.mjs +1169 -679
- package/localization/messages.d.ts +1 -1
- package/models/configurator-chipmenu-reorder-target.d.ts +1 -1
- package/models/configurator-orientation.d.ts +1 -1
- package/models/configurator-position.d.ts +1 -1
- package/models/drop-section.d.ts +1 -1
- package/models/drop-target.d.ts +1 -1
- package/models/expanded-state-action.d.ts +2 -2
- package/models/virtualization-settings.d.ts +1 -1
- package/package.json +22 -28
- package/pivotgrid.component.d.ts +1 -1
- package/pivotgrid.module.d.ts +1 -2
- package/rendering/pivotgrid-cell.directive.d.ts +1 -1
- package/rendering/pivotgrid-table.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +2 -2
- package/esm2020/localization/messages.mjs +0 -87
- package/fesm2015/progress-kendo-angular-pivotgrid.mjs +0 -4947
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-chipmenu-reorder-target.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-position.mjs +0 -0
- /package/{esm2020 → esm2022}/models/data-row-item.mjs +0 -0
- /package/{esm2020 → esm2022}/models/drop-section.mjs +0 -0
- /package/{esm2020 → esm2022}/models/drop-target.mjs +0 -0
- /package/{esm2020 → esm2022}/models/expanded-state-action.mjs +0 -0
- /package/{esm2020 → esm2022}/models/loader-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/models/virtualization-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-pivotgrid.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
|
@@ -14,24 +14,49 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
export class ChipMenuItemComponent {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Fires when the item is clicked.
|
|
19
|
+
*/
|
|
20
|
+
itemClick = new EventEmitter();
|
|
21
|
+
/**
|
|
22
|
+
* Fires when the content is expanded.
|
|
23
|
+
*/
|
|
24
|
+
expand = new EventEmitter();
|
|
25
|
+
/**
|
|
26
|
+
* Fires when the content is collapsed.
|
|
27
|
+
*/
|
|
28
|
+
collapse = new EventEmitter();
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons)
|
|
31
|
+
* that will be rendered for the item.
|
|
32
|
+
*/
|
|
33
|
+
icon;
|
|
34
|
+
/**
|
|
35
|
+
* Defines an SVGIcon to be rendered for the column menu items.
|
|
36
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
37
|
+
*/
|
|
38
|
+
svgIcon;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the item text.
|
|
41
|
+
*/
|
|
42
|
+
text;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies if the item is selected.
|
|
45
|
+
*/
|
|
46
|
+
selected;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies if the item is expanded.
|
|
49
|
+
*/
|
|
50
|
+
expanded;
|
|
51
|
+
/**
|
|
52
|
+
* Specified if the item is disabled
|
|
53
|
+
*/
|
|
54
|
+
disabled;
|
|
55
|
+
contentTemplate;
|
|
32
56
|
get iconClass() {
|
|
33
57
|
return `k-i-${this.icon}`;
|
|
34
58
|
}
|
|
59
|
+
contentState = 'collapsed';
|
|
35
60
|
ngOnChanges(changes) {
|
|
36
61
|
if (changes.expanded) {
|
|
37
62
|
this.updateContentState();
|
|
@@ -53,9 +78,8 @@ export class ChipMenuItemComponent {
|
|
|
53
78
|
updateContentState() {
|
|
54
79
|
this.contentState = this.expanded ? 'expanded' : 'collapsed';
|
|
55
80
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
ChipMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChipMenuItemComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-item", inputs: { icon: "icon", svgIcon: "svgIcon", text: "text", selected: "selected", expanded: "expanded", disabled: "disabled" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ChipMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
81
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
82
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuItemComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-item", inputs: { icon: "icon", svgIcon: "svgIcon", text: "text", selected: "selected", expanded: "expanded", disabled: "disabled" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ChipMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
59
83
|
<div
|
|
60
84
|
class="k-columnmenu-item"
|
|
61
85
|
(click)="onClick($event)"
|
|
@@ -77,29 +101,30 @@ ChipMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
77
101
|
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef"></ng-container>
|
|
78
102
|
<div>
|
|
79
103
|
`, isInline: true, dependencies: [{ 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"] }], animations: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
trigger('state', [
|
|
105
|
+
state('collapsed', style({ display: 'none' })),
|
|
106
|
+
state('expanded', style({ display: 'block' })),
|
|
107
|
+
transition('collapsed => expanded', [
|
|
108
|
+
style({
|
|
109
|
+
height: '0px',
|
|
110
|
+
display: 'block'
|
|
111
|
+
}),
|
|
112
|
+
animate('100ms ease-in', style({
|
|
113
|
+
height: '*'
|
|
114
|
+
}))
|
|
115
|
+
]),
|
|
116
|
+
transition('expanded => collapsed', [
|
|
117
|
+
style({
|
|
118
|
+
height: '*'
|
|
119
|
+
}),
|
|
120
|
+
animate('100ms ease-in', style({
|
|
121
|
+
height: '0px'
|
|
122
|
+
}))
|
|
123
|
+
])
|
|
99
124
|
])
|
|
100
|
-
])
|
|
101
|
-
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
125
|
+
] });
|
|
126
|
+
}
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemComponent, decorators: [{
|
|
103
128
|
type: Component,
|
|
104
129
|
args: [{
|
|
105
130
|
animations: [
|
|
@@ -10,31 +10,12 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class ChipMenuItemDirective {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.subs = new Subscription();
|
|
20
|
-
this.onTab = (e) => {
|
|
21
|
-
if (e.keyCode !== Keys.Tab) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (this.isFirst && e.shiftKey && e.target === this.chipMenuItems[0]) {
|
|
25
|
-
e.preventDefault();
|
|
26
|
-
this.menuItemComponent.service.menuTabbingService.lastFocusable.focus();
|
|
27
|
-
}
|
|
28
|
-
if (this.isLast && !e.shiftKey) {
|
|
29
|
-
const lastColumnMenuItem = this.getLastColumnMenuItem();
|
|
30
|
-
const isExpanded = this.menuItemComponent.expanded;
|
|
31
|
-
if (lastColumnMenuItem === e.target && !isExpanded) {
|
|
32
|
-
e.preventDefault();
|
|
33
|
-
this.menuItemComponent.service.menuTabbingService.firstFocusable.focus();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
13
|
+
hostElement;
|
|
14
|
+
renderer;
|
|
15
|
+
ngZone;
|
|
16
|
+
menuItemComponent;
|
|
17
|
+
firstFocusableElement;
|
|
18
|
+
lastFocusableElement;
|
|
38
19
|
set isFirst(value) {
|
|
39
20
|
if (value) {
|
|
40
21
|
const focusableElement = this.chipMenuItems[0];
|
|
@@ -66,6 +47,15 @@ export class ChipMenuItemDirective {
|
|
|
66
47
|
get isLast() {
|
|
67
48
|
return this._isLast;
|
|
68
49
|
}
|
|
50
|
+
_isFirst = false;
|
|
51
|
+
_isLast = false;
|
|
52
|
+
chipMenuItems;
|
|
53
|
+
subs = new Subscription();
|
|
54
|
+
constructor(hostElement, renderer, ngZone) {
|
|
55
|
+
this.hostElement = hostElement;
|
|
56
|
+
this.renderer = renderer;
|
|
57
|
+
this.ngZone = ngZone;
|
|
58
|
+
}
|
|
69
59
|
ngAfterViewInit() {
|
|
70
60
|
this.chipMenuItems = this.hostElement.nativeElement.querySelectorAll('.k-columnmenu-item');
|
|
71
61
|
this.chipMenuItems.forEach(el => this.renderer.setAttribute(el, 'tabindex', '0'));
|
|
@@ -73,13 +63,30 @@ export class ChipMenuItemDirective {
|
|
|
73
63
|
ngOnDestroy() {
|
|
74
64
|
this.subs.unsubscribe();
|
|
75
65
|
}
|
|
66
|
+
onTab = (e) => {
|
|
67
|
+
if (e.keyCode !== Keys.Tab) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (this.isFirst && e.shiftKey && e.target === this.chipMenuItems[0]) {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
this.menuItemComponent.service.menuTabbingService.lastFocusable.focus();
|
|
73
|
+
}
|
|
74
|
+
if (this.isLast && !e.shiftKey) {
|
|
75
|
+
const lastColumnMenuItem = this.getLastColumnMenuItem();
|
|
76
|
+
const isExpanded = this.menuItemComponent.expanded;
|
|
77
|
+
if (lastColumnMenuItem === e.target && !isExpanded) {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
this.menuItemComponent.service.menuTabbingService.firstFocusable.focus();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
76
83
|
getLastColumnMenuItem() {
|
|
77
84
|
return this.chipMenuItems[this.chipMenuItems.length - 1];
|
|
78
85
|
}
|
|
86
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
87
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuItemDirective, isStandalone: true, selector: "[kendoPivotChipMenuItem]", inputs: { menuItemComponent: ["kendoPivotChipMenuItem", "menuItemComponent"] }, ngImport: i0 });
|
|
79
88
|
}
|
|
80
|
-
|
|
81
|
-
ChipMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChipMenuItemDirective, isStandalone: true, selector: "[kendoPivotChipMenuItem]", inputs: { menuItemComponent: ["kendoPivotChipMenuItem", "menuItemComponent"] }, ngImport: i0 });
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipMenuItemDirective, decorators: [{
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuItemDirective, decorators: [{
|
|
83
90
|
type: Directive,
|
|
84
91
|
args: [{
|
|
85
92
|
selector: '[kendoPivotChipMenuItem]',
|
|
@@ -21,21 +21,18 @@ import * as i3 from "../../data-binding/pivotgrid-data.service";
|
|
|
21
21
|
* Represents a chip-menu item for reordering PivotGrid fields.
|
|
22
22
|
*/
|
|
23
23
|
export class ChipMenuReorderComponent extends ChipMenuItemBase {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.rtl = false;
|
|
37
|
-
this.subs = this.localization.localization.changes.subscribe(({ rtl }) => this.rtl = rtl);
|
|
38
|
-
}
|
|
24
|
+
localization;
|
|
25
|
+
renderer;
|
|
26
|
+
configuratorService;
|
|
27
|
+
dataService;
|
|
28
|
+
cdr;
|
|
29
|
+
ngZone;
|
|
30
|
+
chip;
|
|
31
|
+
columnsIcon = columnsIcon;
|
|
32
|
+
rowsIcon = rowsIcon;
|
|
33
|
+
arrowLeftIcon = arrowLeftIcon;
|
|
34
|
+
arrowRightIcon = arrowRightIcon;
|
|
35
|
+
rtl = false;
|
|
39
36
|
get isColumnsField() {
|
|
40
37
|
return this.configuratorService.state.columnAxes.some(item => item === this.chip);
|
|
41
38
|
}
|
|
@@ -57,6 +54,17 @@ export class ChipMenuReorderComponent extends ChipMenuItemBase {
|
|
|
57
54
|
this.isRowsField && state.rowAxes[state.rowAxes.length - 1] === this.chip ||
|
|
58
55
|
this.isMeasureField && state.measureAxes[state.measureAxes.length - 1] === this.chip;
|
|
59
56
|
}
|
|
57
|
+
subs;
|
|
58
|
+
constructor(localization, renderer, configuratorService, dataService, cdr, ngZone) {
|
|
59
|
+
super();
|
|
60
|
+
this.localization = localization;
|
|
61
|
+
this.renderer = renderer;
|
|
62
|
+
this.configuratorService = configuratorService;
|
|
63
|
+
this.dataService = dataService;
|
|
64
|
+
this.cdr = cdr;
|
|
65
|
+
this.ngZone = ngZone;
|
|
66
|
+
this.subs = this.localization.localization.changes.subscribe(({ rtl }) => this.rtl = rtl);
|
|
67
|
+
}
|
|
60
68
|
ngOnDestroy() {
|
|
61
69
|
this.subs.unsubscribe();
|
|
62
70
|
}
|
|
@@ -109,9 +117,8 @@ export class ChipMenuReorderComponent extends ChipMenuItemBase {
|
|
|
109
117
|
}
|
|
110
118
|
this.close();
|
|
111
119
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
ChipMenuReorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChipMenuReorderComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-reorder", inputs: { chip: "chip" }, usesInheritance: true, ngImport: i0, template: `
|
|
120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuReorderComponent, deps: [{ token: i1.PivotLocalizationService }, { token: i0.Renderer2 }, { token: i2.ConfiguratorService }, { token: i3.PivotGridDataService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuReorderComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-reorder", inputs: { chip: "chip" }, usesInheritance: true, ngImport: i0, template: `
|
|
115
122
|
<kendo-pivot-chipmenu-item
|
|
116
123
|
*ngIf="!isMeasureField"
|
|
117
124
|
[disabled]="isColumnsField"
|
|
@@ -143,7 +150,8 @@ ChipMenuReorderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
143
150
|
(itemClick)="move($event, 'next')">
|
|
144
151
|
</kendo-pivot-chipmenu-item>
|
|
145
152
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "expanded", "disabled"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
146
|
-
|
|
153
|
+
}
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuReorderComponent, decorators: [{
|
|
147
155
|
type: Component,
|
|
148
156
|
args: [{
|
|
149
157
|
selector: 'kendo-pivot-chipmenu-reorder',
|
|
@@ -19,13 +19,17 @@ import * as i2 from "../configurator.service";
|
|
|
19
19
|
* Allows the user to sort the PivotGrid.
|
|
20
20
|
*/
|
|
21
21
|
export class ChipMenuSortComponent extends ChipMenuItemBase {
|
|
22
|
+
localization;
|
|
23
|
+
renderer;
|
|
24
|
+
configuratorService;
|
|
25
|
+
chip;
|
|
26
|
+
sortAscSVGIcon = sortAscSmallIcon;
|
|
27
|
+
sortDescSVGIcon = sortDescSmallIcon;
|
|
22
28
|
constructor(localization, renderer, configuratorService) {
|
|
23
29
|
super();
|
|
24
30
|
this.localization = localization;
|
|
25
31
|
this.renderer = renderer;
|
|
26
32
|
this.configuratorService = configuratorService;
|
|
27
|
-
this.sortAscSVGIcon = sortAscSmallIcon;
|
|
28
|
-
this.sortDescSVGIcon = sortDescSmallIcon;
|
|
29
33
|
}
|
|
30
34
|
get sortedAsc() {
|
|
31
35
|
const descriptor = this.descriptor;
|
|
@@ -54,9 +58,8 @@ export class ChipMenuSortComponent extends ChipMenuItemBase {
|
|
|
54
58
|
get descriptor() {
|
|
55
59
|
return [].concat(this.configuratorService.state.sort || []).find(s => s.field === this.chip.name.toString());
|
|
56
60
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ChipMenuSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChipMenuSortComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-sort", inputs: { chip: "chip" }, usesInheritance: true, ngImport: i0, template: `
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuSortComponent, deps: [{ token: i1.PivotLocalizationService }, { token: i0.Renderer2 }, { token: i2.ConfiguratorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuSortComponent, isStandalone: true, selector: "kendo-pivot-chipmenu-sort", inputs: { chip: "chip" }, usesInheritance: true, ngImport: i0, template: `
|
|
60
63
|
<kendo-pivot-chipmenu-item
|
|
61
64
|
[text]="messageFor('fieldMenuSortAscendingItemLabel')"
|
|
62
65
|
icon="sort-asc-small"
|
|
@@ -72,7 +75,8 @@ ChipMenuSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
72
75
|
[selected]="sortedDesc">
|
|
73
76
|
</kendo-pivot-chipmenu-item>
|
|
74
77
|
`, isInline: true, dependencies: [{ kind: "component", type: ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "expanded", "disabled"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
75
|
-
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuSortComponent, decorators: [{
|
|
76
80
|
type: Component,
|
|
77
81
|
args: [{
|
|
78
82
|
selector: 'kendo-pivot-chipmenu-sort',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { MenuTabbingService } from './filtering/menu-tabbing.service';
|
|
7
|
-
import { Component, Input,
|
|
7
|
+
import { Component, Input, ViewChild, Renderer2, TemplateRef } from '@angular/core';
|
|
8
8
|
import { SinglePopupService } from './single-popup.service';
|
|
9
9
|
import { ChipMenuService } from './chip-menu.service';
|
|
10
10
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
@@ -17,6 +17,7 @@ import { ChipMenuSortComponent } from './chip-menu-sort.component';
|
|
|
17
17
|
import { NgIf } from '@angular/common';
|
|
18
18
|
import { ChipMenuContainerComponent } from './chip-menu-container.component';
|
|
19
19
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
20
|
+
import { ChipComponent } from '@progress/kendo-angular-buttons';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
import * as i1 from "./single-popup.service";
|
|
22
23
|
import * as i2 from "../../localization/pivot-localization.service";
|
|
@@ -28,57 +29,59 @@ const POPUP_CLASS = 'k-column-menu';
|
|
|
28
29
|
* Represents the field chip menu component.
|
|
29
30
|
*/
|
|
30
31
|
export class ChipMenuComponent {
|
|
32
|
+
popupService;
|
|
33
|
+
localization;
|
|
34
|
+
service;
|
|
35
|
+
renderer;
|
|
36
|
+
/**
|
|
37
|
+
* The Configurator field instance to control with the menu.
|
|
38
|
+
*/
|
|
39
|
+
chip;
|
|
40
|
+
tabIndex = '-1';
|
|
41
|
+
isMeasureField = false;
|
|
42
|
+
anchor;
|
|
43
|
+
template;
|
|
44
|
+
menuItemSVGIcon = moreVerticalIcon;
|
|
45
|
+
popupRef;
|
|
46
|
+
closeSubscription;
|
|
31
47
|
constructor(popupService, localization, service, renderer) {
|
|
32
48
|
this.popupService = popupService;
|
|
33
49
|
this.localization = localization;
|
|
34
50
|
this.service = service;
|
|
35
51
|
this.renderer = renderer;
|
|
36
|
-
this.tabIndex = '-1';
|
|
37
|
-
this.isMeasureField = false;
|
|
38
|
-
this.menuItemSVGIcon = moreVerticalIcon;
|
|
39
52
|
this.closeSubscription = service.closeMenu.subscribe(this.close.bind(this));
|
|
40
53
|
}
|
|
41
54
|
ngOnDestroy() {
|
|
42
55
|
this.close();
|
|
43
56
|
this.closeSubscription.unsubscribe();
|
|
44
57
|
}
|
|
45
|
-
toggle(e
|
|
46
|
-
if (e) {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
e.stopImmediatePropagation();
|
|
58
|
+
toggle(e) {
|
|
59
|
+
if (e?.originalEvent) {
|
|
60
|
+
e.originalEvent.preventDefault();
|
|
61
|
+
e.originalEvent.stopImmediatePropagation();
|
|
49
62
|
}
|
|
50
|
-
const
|
|
51
|
-
this.popupRef = this.popupService.open(
|
|
63
|
+
const anchorElement = this.anchor.element.nativeElement;
|
|
64
|
+
this.popupRef = this.popupService.open(anchorElement, this.template, this.popupRef, POPUP_CLASS);
|
|
52
65
|
this.popupRef && this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.localization.rtl ? 'rtl' : 'ltr');
|
|
53
66
|
if (!this.popupRef) {
|
|
54
|
-
|
|
67
|
+
anchorElement.focus();
|
|
55
68
|
}
|
|
56
69
|
}
|
|
57
70
|
close() {
|
|
58
71
|
this.popupService.destroy();
|
|
59
72
|
this.popupRef = null;
|
|
60
|
-
this.anchor.nativeElement.closest('.k-chip').focus();
|
|
73
|
+
this.anchor.element.nativeElement.closest('.k-chip').focus();
|
|
61
74
|
}
|
|
62
75
|
get chipMenuTitle() {
|
|
63
76
|
const localizationMsg = this.localization.get('chipMenuIconTitle') || '';
|
|
64
77
|
const chipName = this.chip.name.toString();
|
|
65
78
|
return replaceMessagePlaceholder(localizationMsg, 'fieldName', chipName);
|
|
66
79
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: `
|
|
73
|
-
<kendo-icon-wrapper
|
|
74
|
-
#anchor
|
|
75
|
-
name="more-vertical"
|
|
76
|
-
[svgIcon]="menuItemSVGIcon"
|
|
77
|
-
(click)="toggle($event, template)"
|
|
78
|
-
[tabindex]="tabIndex"
|
|
79
|
-
[attr.title]="chipMenuTitle"
|
|
80
|
-
>
|
|
81
|
-
</kendo-icon-wrapper>
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.PivotLocalizationService }, { token: i3.ChipMenuService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipMenuComponent, isStandalone: true, selector: "kendo-pivot-chip-menu", inputs: { chip: "chip", tabIndex: "tabIndex", isMeasureField: "isMeasureField", anchor: "anchor" }, providers: [
|
|
82
|
+
ChipMenuService,
|
|
83
|
+
MenuTabbingService
|
|
84
|
+
], viewQueries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true, static: true }], ngImport: i0, template: `
|
|
82
85
|
<ng-template #template>
|
|
83
86
|
<kendo-pivot-chipmenu-container
|
|
84
87
|
(keydown.escape)="close()"
|
|
@@ -107,8 +110,9 @@ ChipMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
107
110
|
[service]="service"></kendo-pivot-chipmenu-reorder>
|
|
108
111
|
</kendo-pivot-chipmenu-container>
|
|
109
112
|
</ng-template>
|
|
110
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
111
|
-
|
|
113
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ChipMenuContainerComponent, selector: "kendo-pivot-chipmenu-container" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChipMenuSortComponent, selector: "kendo-pivot-chipmenu-sort", inputs: ["chip"] }, { kind: "directive", type: ChipMenuItemDirective, selector: "[kendoPivotChipMenuItem]", inputs: ["kendoPivotChipMenuItem"] }, { kind: "component", type: ChipMenuFilterComponent, selector: "kendo-pivot-chipmenu-filter", inputs: ["chip", "expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ChipMenuReorderComponent, selector: "kendo-pivot-chipmenu-reorder", inputs: ["chip"] }] });
|
|
114
|
+
}
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuComponent, decorators: [{
|
|
112
116
|
type: Component,
|
|
113
117
|
args: [{
|
|
114
118
|
providers: [
|
|
@@ -117,15 +121,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
117
121
|
],
|
|
118
122
|
selector: 'kendo-pivot-chip-menu',
|
|
119
123
|
template: `
|
|
120
|
-
<kendo-icon-wrapper
|
|
121
|
-
#anchor
|
|
122
|
-
name="more-vertical"
|
|
123
|
-
[svgIcon]="menuItemSVGIcon"
|
|
124
|
-
(click)="toggle($event, template)"
|
|
125
|
-
[tabindex]="tabIndex"
|
|
126
|
-
[attr.title]="chipMenuTitle"
|
|
127
|
-
>
|
|
128
|
-
</kendo-icon-wrapper>
|
|
129
124
|
<ng-template #template>
|
|
130
125
|
<kendo-pivot-chipmenu-container
|
|
131
126
|
(keydown.escape)="close()"
|
|
@@ -165,6 +160,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
165
160
|
}], isMeasureField: [{
|
|
166
161
|
type: Input
|
|
167
162
|
}], anchor: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], template: [{
|
|
168
165
|
type: ViewChild,
|
|
169
|
-
args: ['
|
|
166
|
+
args: ['template', { static: true }]
|
|
170
167
|
}] } });
|
|
@@ -14,25 +14,27 @@ import * as i2 from "../configurator.service";
|
|
|
14
14
|
* Represents the service that is passed to the ChipMenuFilterComponent and ChipMenuSortComponent.
|
|
15
15
|
*/
|
|
16
16
|
export class ChipMenuService {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.menuTabbingService = menuTabbingService;
|
|
22
|
-
configuratorService && (this.sub = configuratorService.closeMenu.subscribe(() => this.close()));
|
|
23
|
-
}
|
|
17
|
+
configuratorService;
|
|
18
|
+
menuTabbingService;
|
|
19
|
+
closeMenu = new EventEmitter();
|
|
20
|
+
sub = new Subscription();
|
|
24
21
|
/**
|
|
25
22
|
* Closes the chip menu.
|
|
26
23
|
*/
|
|
27
24
|
close() {
|
|
28
25
|
this.closeMenu.emit();
|
|
29
26
|
}
|
|
27
|
+
constructor(menuTabbingService, configuratorService) {
|
|
28
|
+
this.configuratorService = configuratorService;
|
|
29
|
+
this.menuTabbingService = menuTabbingService;
|
|
30
|
+
configuratorService && (this.sub = configuratorService.closeMenu.subscribe(() => this.close()));
|
|
31
|
+
}
|
|
30
32
|
ngOnDestroy() {
|
|
31
33
|
this.sub.unsubscribe();
|
|
32
34
|
}
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuService, deps: [{ token: i1.MenuTabbingService }, { token: i2.ConfiguratorService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
36
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuService });
|
|
33
37
|
}
|
|
34
|
-
|
|
35
|
-
ChipMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipMenuService });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipMenuService, decorators: [{
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuService, decorators: [{
|
|
37
39
|
type: Injectable
|
|
38
40
|
}], ctorParameters: function () { return [{ type: i1.MenuTabbingService }, { type: i2.ConfiguratorService }]; } });
|
package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-container.component.mjs
RENAMED
|
@@ -26,12 +26,25 @@ const validFilter = ({ value, operator }) => !isNullOrEmptyString(value) || isNo
|
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
28
28
|
export class FilterMenuContainerComponent {
|
|
29
|
+
localization;
|
|
30
|
+
cd;
|
|
31
|
+
configuratorService;
|
|
32
|
+
close = new EventEmitter();
|
|
33
|
+
/**
|
|
34
|
+
* The field with which the filter is associated.
|
|
35
|
+
*/
|
|
36
|
+
chip;
|
|
37
|
+
isLast;
|
|
38
|
+
isExpanded;
|
|
39
|
+
menuTabbingService;
|
|
40
|
+
actionsClass = 'k-action-buttons k-button-group';
|
|
41
|
+
filterDescriptorValue;
|
|
42
|
+
resetButton;
|
|
43
|
+
filterButton;
|
|
29
44
|
constructor(localization, cd, menuTabbingService, configuratorService) {
|
|
30
45
|
this.localization = localization;
|
|
31
46
|
this.cd = cd;
|
|
32
47
|
this.configuratorService = configuratorService;
|
|
33
|
-
this.close = new EventEmitter();
|
|
34
|
-
this.actionsClass = 'k-action-buttons k-button-group';
|
|
35
48
|
this.menuTabbingService = menuTabbingService;
|
|
36
49
|
}
|
|
37
50
|
ngAfterViewChecked() {
|
|
@@ -84,11 +97,10 @@ export class FilterMenuContainerComponent {
|
|
|
84
97
|
messageFor(localizationToken) {
|
|
85
98
|
return this.localization.get(localizationToken);
|
|
86
99
|
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
], viewQueries: [{ propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true }, { propertyName: "filterButton", first: true, predicate: ["filterButton"], descendants: true }], ngImport: i0, template: `
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuContainerComponent, deps: [{ token: i1.PivotLocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.MenuTabbingService }, { token: i3.ConfiguratorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FilterMenuContainerComponent, isStandalone: true, selector: "kendo-pivot-filter-menu-container", inputs: { chip: "chip", isLast: "isLast", isExpanded: "isExpanded", menuTabbingService: "menuTabbingService", actionsClass: "actionsClass" }, outputs: { close: "close" }, providers: [
|
|
102
|
+
MenuTabbingService
|
|
103
|
+
], viewQueries: [{ propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true }, { propertyName: "filterButton", first: true, predicate: ["filterButton"], descendants: true }], ngImport: i0, template: `
|
|
92
104
|
<form (submit)="submit()" (reset)="reset()"
|
|
93
105
|
class="k-filter-menu k-group k-reset k-state-border-up">
|
|
94
106
|
<div class="k-filter-menu-container">
|
|
@@ -114,8 +126,9 @@ FilterMenuContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
114
126
|
</div>
|
|
115
127
|
</div>
|
|
116
128
|
</form>
|
|
117
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: StringFilterMenuComponent, selector: "kendo-pivot-string-filter-menu", inputs: ["chip", "menuTabbingService"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
118
|
-
|
|
129
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: StringFilterMenuComponent, selector: "kendo-pivot-string-filter-menu", inputs: ["chip", "menuTabbingService"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
130
|
+
}
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuContainerComponent, decorators: [{
|
|
119
132
|
type: Component,
|
|
120
133
|
args: [{
|
|
121
134
|
providers: [
|
package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.mjs
RENAMED
|
@@ -11,14 +11,10 @@ import * as i1 from "@progress/kendo-angular-dropdowns";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class FilterMenuDropDownListDirective {
|
|
14
|
+
host;
|
|
15
|
+
filterMenuDropDownLabel;
|
|
14
16
|
constructor(host) {
|
|
15
17
|
this.host = host;
|
|
16
|
-
this.keydownHandler = (e) => {
|
|
17
|
-
if (e.keyCode === Keys.Escape && this.host.isOpen) {
|
|
18
|
-
e.stopPropagation();
|
|
19
|
-
this.host.toggle(false);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
18
|
}
|
|
23
19
|
ngAfterViewInit() {
|
|
24
20
|
const wrapperElement = this.host.wrapper.nativeElement;
|
|
@@ -28,10 +24,16 @@ export class FilterMenuDropDownListDirective {
|
|
|
28
24
|
ngOnDestroy() {
|
|
29
25
|
this.host.wrapper.nativeElement.removeEventListener('keydown', this.keydownHandler);
|
|
30
26
|
}
|
|
27
|
+
keydownHandler = (e) => {
|
|
28
|
+
if (e.keyCode === Keys.Escape && this.host.isOpen) {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
this.host.toggle(false);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuDropDownListDirective, deps: [{ token: i1.DropDownListComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FilterMenuDropDownListDirective, isStandalone: true, selector: "[kendoFilterMenuDropDown]", inputs: { filterMenuDropDownLabel: "filterMenuDropDownLabel" }, ngImport: i0 });
|
|
31
35
|
}
|
|
32
|
-
|
|
33
|
-
FilterMenuDropDownListDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FilterMenuDropDownListDirective, isStandalone: true, selector: "[kendoFilterMenuDropDown]", inputs: { filterMenuDropDownLabel: "filterMenuDropDownLabel" }, ngImport: i0 });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterMenuDropDownListDirective, decorators: [{
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuDropDownListDirective, decorators: [{
|
|
35
37
|
type: Directive,
|
|
36
38
|
args: [{
|
|
37
39
|
selector: '[kendoFilterMenuDropDown]',
|