@progress/kendo-angular-pivotgrid 17.0.0-develop.9 → 17.0.0
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 +1 -1
- 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 +1 -1
- 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 +22 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.service.mjs +12 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-container.component.mjs +21 -8
- 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 +58 -39
- 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 +98 -73
- package/{esm2020 → esm2022}/pivotgrid.module.mjs +13 -14
- package/{esm2020 → esm2022}/rendering/pivotgrid-cell.directive.mjs +30 -19
- 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 +1067 -560
- 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 +3 -3
- package/esm2020/localization/messages.mjs +0 -87
- package/fesm2015/progress-kendo-angular-pivotgrid.mjs +0 -4928
- /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
@@ -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',
|
@@ -29,14 +29,26 @@ const POPUP_CLASS = 'k-column-menu';
|
|
29
29
|
* Represents the field chip menu component.
|
30
30
|
*/
|
31
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;
|
32
47
|
constructor(popupService, localization, service, renderer) {
|
33
48
|
this.popupService = popupService;
|
34
49
|
this.localization = localization;
|
35
50
|
this.service = service;
|
36
51
|
this.renderer = renderer;
|
37
|
-
this.tabIndex = '-1';
|
38
|
-
this.isMeasureField = false;
|
39
|
-
this.menuItemSVGIcon = moreVerticalIcon;
|
40
52
|
this.closeSubscription = service.closeMenu.subscribe(this.close.bind(this));
|
41
53
|
}
|
42
54
|
ngOnDestroy() {
|
@@ -65,12 +77,11 @@ export class ChipMenuComponent {
|
|
65
77
|
const chipName = this.chip.name.toString();
|
66
78
|
return replaceMessagePlaceholder(localizationMsg, 'fieldName', chipName);
|
67
79
|
}
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
], viewQueries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true, static: true }], ngImport: i0, template: `
|
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: `
|
74
85
|
<ng-template #template>
|
75
86
|
<kendo-pivot-chipmenu-container
|
76
87
|
(keydown.escape)="close()"
|
@@ -100,7 +111,8 @@ ChipMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
100
111
|
</kendo-pivot-chipmenu-container>
|
101
112
|
</ng-template>
|
102
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"] }] });
|
103
|
-
|
114
|
+
}
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipMenuComponent, decorators: [{
|
104
116
|
type: Component,
|
105
117
|
args: [{
|
106
118
|
providers: [
|
@@ -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">
|
@@ -115,7 +127,8 @@ FilterMenuContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
115
127
|
</div>
|
116
128
|
</form>
|
117
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"] }] });
|
118
|
-
|
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]',
|
@@ -8,12 +8,13 @@ import * as i0 from "@angular/core";
|
|
8
8
|
* @hidden
|
9
9
|
*/
|
10
10
|
export class MenuTabbingService {
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
firstFocusable;
|
12
|
+
lastFocusable;
|
13
|
+
isPopupOpen = false;
|
14
|
+
lastMenuItem;
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuTabbingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
16
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuTabbingService });
|
14
17
|
}
|
15
|
-
|
16
|
-
MenuTabbingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuTabbingService });
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuTabbingService, decorators: [{
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuTabbingService, decorators: [{
|
18
19
|
type: Injectable
|
19
20
|
}] });
|
package/{esm2020 → esm2022}/configurator/chip-menu/filtering/string-filter-menu.component.mjs
RENAMED
@@ -41,18 +41,28 @@ const stringOperators = localizeOperators({
|
|
41
41
|
* Represents a string-filter menu component.
|
42
42
|
*/
|
43
43
|
export class StringFilterMenuComponent {
|
44
|
+
localization;
|
45
|
+
configuratorService;
|
46
|
+
fb;
|
47
|
+
/**
|
48
|
+
* The field with which the filter is associated.
|
49
|
+
*/
|
50
|
+
chip;
|
51
|
+
menuTabbingService;
|
52
|
+
operators;
|
53
|
+
filterFormGroup;
|
54
|
+
get currentFilter() {
|
55
|
+
const filterValue = this.configuratorService.state.filter?.filter(x => x.field === this.chip.name.toString());
|
56
|
+
return filterValue && filterValue[0];
|
57
|
+
}
|
58
|
+
subscription = new Subscription();
|
44
59
|
constructor(localization, configuratorService, fb) {
|
45
60
|
this.localization = localization;
|
46
61
|
this.configuratorService = configuratorService;
|
47
62
|
this.fb = fb;
|
48
|
-
this.subscription = new Subscription();
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
50
|
-
this.onTouched = () => { };
|
51
|
-
}
|
52
|
-
get currentFilter() {
|
53
|
-
const filterValue = this.configuratorService.state.filter?.filter(x => x.field === this.chip.name.toString());
|
54
|
-
return filterValue && filterValue[0];
|
55
63
|
}
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
65
|
+
onTouched = () => { };
|
56
66
|
registerOnChange(fn) {
|
57
67
|
this.filterFormGroup.valueChanges.subscribe(fn);
|
58
68
|
}
|
@@ -79,13 +89,12 @@ export class StringFilterMenuComponent {
|
|
79
89
|
ngOnDestroy() {
|
80
90
|
this.subscription.unsubscribe();
|
81
91
|
}
|
82
|
-
}
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
}], ngImport: i0, template: `
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StringFilterMenuComponent, deps: [{ token: i1.PivotLocalizationService }, { token: i2.ConfiguratorService }, { token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
93
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StringFilterMenuComponent, isStandalone: true, selector: "kendo-pivot-string-filter-menu", inputs: { chip: "chip", menuTabbingService: "menuTabbingService" }, providers: [{
|
94
|
+
provide: NG_VALUE_ACCESSOR,
|
95
|
+
useExisting: forwardRef(() => StringFilterMenuComponent),
|
96
|
+
multi: true
|
97
|
+
}], ngImport: i0, template: `
|
89
98
|
<ng-container [formGroup]="filterFormGroup">
|
90
99
|
<kendo-dropdownlist
|
91
100
|
kendoFilterMenuDropDown
|
@@ -102,7 +111,8 @@ StringFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
102
111
|
/>
|
103
112
|
</ng-container>
|
104
113
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }, { kind: "directive", type: TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }] });
|
105
|
-
|
114
|
+
}
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StringFilterMenuComponent, decorators: [{
|
106
116
|
type: Component,
|
107
117
|
args: [{
|
108
118
|
selector: 'kendo-pivot-string-filter-menu',
|
@@ -25,6 +25,10 @@ const contains = (node, predicate) => {
|
|
25
25
|
* Arguments for the `close` event of the chip-menu popup.
|
26
26
|
*/
|
27
27
|
export class PopupCloseEvent extends PreventableEvent {
|
28
|
+
/**
|
29
|
+
* The original DOM event that causes the popup to close.
|
30
|
+
*/
|
31
|
+
originalEvent;
|
28
32
|
/**
|
29
33
|
* @hidden
|
30
34
|
*/
|
@@ -39,18 +43,25 @@ const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
39
43
|
* The service that is used for the popups of the chip menus.
|
40
44
|
*/
|
41
45
|
export class SinglePopupService {
|
46
|
+
popupService;
|
47
|
+
renderer;
|
48
|
+
ngZone;
|
49
|
+
localization;
|
50
|
+
/**
|
51
|
+
* Fires when the chip menus are about to close because the user clicked outside their popups.
|
52
|
+
* Used to prevent the popup from closing.
|
53
|
+
*/
|
54
|
+
onClose = new Subject();
|
55
|
+
removeClick;
|
56
|
+
pointerEventsSub = new Subscription();
|
57
|
+
popupRef;
|
58
|
+
scrollSubscription = new Subscription();
|
59
|
+
canClosePopup;
|
42
60
|
constructor(popupService, renderer, ngZone, localization) {
|
43
61
|
this.popupService = popupService;
|
44
62
|
this.renderer = renderer;
|
45
63
|
this.ngZone = ngZone;
|
46
64
|
this.localization = localization;
|
47
|
-
/**
|
48
|
-
* Fires when the chip menus are about to close because the user clicked outside their popups.
|
49
|
-
* Used to prevent the popup from closing.
|
50
|
-
*/
|
51
|
-
this.onClose = new Subject();
|
52
|
-
this.pointerEventsSub = new Subscription();
|
53
|
-
this.scrollSubscription = new Subscription();
|
54
65
|
}
|
55
66
|
open(anchor, template, popupRef, popupClass = DEFAULT_POPUP_CLASS) {
|
56
67
|
const toggle = isPresent(popupRef) && this.popupRef === popupRef;
|
@@ -117,9 +128,9 @@ export class SinglePopupService {
|
|
117
128
|
}));
|
118
129
|
});
|
119
130
|
}
|
131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SinglePopupService, deps: [{ token: i1.PopupService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i2.PivotLocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
132
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SinglePopupService });
|
120
133
|
}
|
121
|
-
|
122
|
-
SinglePopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SinglePopupService });
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SinglePopupService, decorators: [{
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SinglePopupService, decorators: [{
|
124
135
|
type: Injectable
|
125
136
|
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i2.PivotLocalizationService }]; } });
|