@progress/kendo-angular-pivotgrid 21.4.0-develop.1 → 21.4.0-develop.11
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/configurator/configurator.component.d.ts +1 -0
- package/esm2022/configurator/configurator.component.mjs +8 -2
- package/esm2022/configurator/drop-cue.service.mjs +15 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-pivotgrid.mjs +25 -6
- package/package.json +13 -13
- package/schematics/ngAdd/index.js +2 -2
|
@@ -40,6 +40,7 @@ export declare class PivotGridConfiguratorComponent implements OnInit, OnChanges
|
|
|
40
40
|
fields: PivotGridField[];
|
|
41
41
|
checked: any[];
|
|
42
42
|
get isHorizontal(): boolean;
|
|
43
|
+
get isApplyDisabled(): boolean;
|
|
43
44
|
private subs;
|
|
44
45
|
/**
|
|
45
46
|
* A function which determines if a specific node has child nodes.
|
|
@@ -54,6 +54,9 @@ export class PivotGridConfiguratorComponent {
|
|
|
54
54
|
get isHorizontal() {
|
|
55
55
|
return this.orientation === 'horizontal';
|
|
56
56
|
}
|
|
57
|
+
get isApplyDisabled() {
|
|
58
|
+
return !this.state?.columnAxes?.length && !this.state?.rowAxes?.length && !this.state?.measureAxes?.length;
|
|
59
|
+
}
|
|
57
60
|
subs = new Subscription();
|
|
58
61
|
/**
|
|
59
62
|
* A function which determines if a specific node has child nodes.
|
|
@@ -260,6 +263,9 @@ export class PivotGridConfiguratorComponent {
|
|
|
260
263
|
this.close.emit();
|
|
261
264
|
}
|
|
262
265
|
handleSubmit() {
|
|
266
|
+
if (this.isApplyDisabled) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
263
269
|
this.dataService.configuratorFieldChange.emit(this.dataService.state);
|
|
264
270
|
}
|
|
265
271
|
/**
|
|
@@ -532,7 +538,7 @@ export class PivotGridConfiguratorComponent {
|
|
|
532
538
|
</div>
|
|
533
539
|
<div class="k-pivotgrid-configurator-actions k-actions k-actions-end k-actions-horizontal">
|
|
534
540
|
<button kendoButton type="button" (click)="handleReset()">{{messageFor('configuratorCancelButtonText')}}</button>
|
|
535
|
-
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
541
|
+
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()" [disabled]="isApplyDisabled">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
536
542
|
</div>
|
|
537
543
|
</div>
|
|
538
544
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { kind: "directive", type: CheckDirective, selector: "[kendoTreeViewCheckable]", inputs: ["isChecked", "checkBy", "checkedKeys", "kendoTreeViewCheckable"], outputs: ["checkedKeysChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { kind: "component", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["orientation", "selection", "size", "role", "navigable"], outputs: ["selectedChange", "remove"] }, { kind: "component", type: ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "svgIcon", "iconClass", "avatarSettings", "selected", "removable", "removeIcon", "removeSvgIcon", "hasMenu", "menuIcon", "menuSvgIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "menuToggle", "contentClick"] }, { kind: "directive", type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: ["item"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: ChipKeyboardNavigationDirective, selector: "[kendoChipKeyboardNavigation]", outputs: ["reorder"] }, { kind: "component", type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: ["chip", "tabIndex", "isMeasureField", "anchor"] }, { 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"] }] });
|
|
@@ -758,7 +764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
758
764
|
</div>
|
|
759
765
|
<div class="k-pivotgrid-configurator-actions k-actions k-actions-end k-actions-horizontal">
|
|
760
766
|
<button kendoButton type="button" (click)="handleReset()">{{messageFor('configuratorCancelButtonText')}}</button>
|
|
761
|
-
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
767
|
+
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()" [disabled]="isApplyDisabled">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
762
768
|
</div>
|
|
763
769
|
</div>
|
|
764
770
|
`,
|
|
@@ -52,12 +52,25 @@ export class DropCueService {
|
|
|
52
52
|
if (!this.dom) {
|
|
53
53
|
this.create();
|
|
54
54
|
}
|
|
55
|
+
if (!target || !container) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
55
58
|
if (direction === 'before') {
|
|
56
|
-
container.
|
|
59
|
+
if (container.contains(target)) {
|
|
60
|
+
container.insertBefore(this.dom, target);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
container.appendChild(this.dom);
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
66
|
else {
|
|
59
67
|
if (target.classList.contains('k-chip') && target.matches(':last-child')) {
|
|
60
|
-
container.
|
|
68
|
+
if (container.contains(target)) {
|
|
69
|
+
container.insertBefore(this.dom, target);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
container.appendChild(this.dom);
|
|
73
|
+
}
|
|
61
74
|
return;
|
|
62
75
|
}
|
|
63
76
|
// eslint-disable-next-line no-unused-expressions
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.4.0-develop.
|
|
13
|
+
publishDate: 1766151191,
|
|
14
|
+
version: '21.4.0-develop.11',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
16
16
|
};
|
|
@@ -1944,12 +1944,25 @@ class DropCueService {
|
|
|
1944
1944
|
if (!this.dom) {
|
|
1945
1945
|
this.create();
|
|
1946
1946
|
}
|
|
1947
|
+
if (!target || !container) {
|
|
1948
|
+
return;
|
|
1949
|
+
}
|
|
1947
1950
|
if (direction === 'before') {
|
|
1948
|
-
container.
|
|
1951
|
+
if (container.contains(target)) {
|
|
1952
|
+
container.insertBefore(this.dom, target);
|
|
1953
|
+
}
|
|
1954
|
+
else {
|
|
1955
|
+
container.appendChild(this.dom);
|
|
1956
|
+
}
|
|
1949
1957
|
}
|
|
1950
1958
|
else {
|
|
1951
1959
|
if (target.classList.contains('k-chip') && target.matches(':last-child')) {
|
|
1952
|
-
container.
|
|
1960
|
+
if (container.contains(target)) {
|
|
1961
|
+
container.insertBefore(this.dom, target);
|
|
1962
|
+
}
|
|
1963
|
+
else {
|
|
1964
|
+
container.appendChild(this.dom);
|
|
1965
|
+
}
|
|
1953
1966
|
return;
|
|
1954
1967
|
}
|
|
1955
1968
|
// eslint-disable-next-line no-unused-expressions
|
|
@@ -2289,6 +2302,9 @@ class PivotGridConfiguratorComponent {
|
|
|
2289
2302
|
get isHorizontal() {
|
|
2290
2303
|
return this.orientation === 'horizontal';
|
|
2291
2304
|
}
|
|
2305
|
+
get isApplyDisabled() {
|
|
2306
|
+
return !this.state?.columnAxes?.length && !this.state?.rowAxes?.length && !this.state?.measureAxes?.length;
|
|
2307
|
+
}
|
|
2292
2308
|
subs = new Subscription();
|
|
2293
2309
|
/**
|
|
2294
2310
|
* A function which determines if a specific node has child nodes.
|
|
@@ -2495,6 +2511,9 @@ class PivotGridConfiguratorComponent {
|
|
|
2495
2511
|
this.close.emit();
|
|
2496
2512
|
}
|
|
2497
2513
|
handleSubmit() {
|
|
2514
|
+
if (this.isApplyDisabled) {
|
|
2515
|
+
return;
|
|
2516
|
+
}
|
|
2498
2517
|
this.dataService.configuratorFieldChange.emit(this.dataService.state);
|
|
2499
2518
|
}
|
|
2500
2519
|
/**
|
|
@@ -2767,7 +2786,7 @@ class PivotGridConfiguratorComponent {
|
|
|
2767
2786
|
</div>
|
|
2768
2787
|
<div class="k-pivotgrid-configurator-actions k-actions k-actions-end k-actions-horizontal">
|
|
2769
2788
|
<button kendoButton type="button" (click)="handleReset()">{{messageFor('configuratorCancelButtonText')}}</button>
|
|
2770
|
-
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
2789
|
+
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()" [disabled]="isApplyDisabled">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
2771
2790
|
</div>
|
|
2772
2791
|
</div>
|
|
2773
2792
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { kind: "directive", type: CheckDirective, selector: "[kendoTreeViewCheckable]", inputs: ["isChecked", "checkBy", "checkedKeys", "kendoTreeViewCheckable"], outputs: ["checkedKeysChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { kind: "component", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["orientation", "selection", "size", "role", "navigable"], outputs: ["selectedChange", "remove"] }, { kind: "component", type: ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "svgIcon", "iconClass", "avatarSettings", "selected", "removable", "removeIcon", "removeSvgIcon", "hasMenu", "menuIcon", "menuSvgIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "menuToggle", "contentClick"] }, { kind: "directive", type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: ["item"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: ChipKeyboardNavigationDirective, selector: "[kendoChipKeyboardNavigation]", outputs: ["reorder"] }, { kind: "component", type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: ["chip", "tabIndex", "isMeasureField", "anchor"] }, { 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"] }] });
|
|
@@ -2993,7 +3012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2993
3012
|
</div>
|
|
2994
3013
|
<div class="k-pivotgrid-configurator-actions k-actions k-actions-end k-actions-horizontal">
|
|
2995
3014
|
<button kendoButton type="button" (click)="handleReset()">{{messageFor('configuratorCancelButtonText')}}</button>
|
|
2996
|
-
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
3015
|
+
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()" [disabled]="isApplyDisabled">{{messageFor('configuratorApplyButtonText')}}</button>
|
|
2997
3016
|
</div>
|
|
2998
3017
|
</div>
|
|
2999
3018
|
`,
|
|
@@ -3869,8 +3888,8 @@ const packageMetadata = {
|
|
|
3869
3888
|
productName: 'Kendo UI for Angular',
|
|
3870
3889
|
productCode: 'KENDOUIANGULAR',
|
|
3871
3890
|
productCodes: ['KENDOUIANGULAR'],
|
|
3872
|
-
publishDate:
|
|
3873
|
-
version: '21.4.0-develop.
|
|
3891
|
+
publishDate: 1766151191,
|
|
3892
|
+
version: '21.4.0-develop.11',
|
|
3874
3893
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
3875
3894
|
};
|
|
3876
3895
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-pivotgrid",
|
|
3
|
-
"version": "21.4.0-develop.
|
|
3
|
+
"version": "21.4.0-develop.11",
|
|
4
4
|
"description": "PivotGrid package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"package": {
|
|
19
19
|
"productName": "Kendo UI for Angular",
|
|
20
20
|
"productCode": "KENDOUIANGULAR",
|
|
21
|
-
"publishDate":
|
|
21
|
+
"publishDate": 1766151191,
|
|
22
22
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"@progress/kendo-data-query": "^1.5.5",
|
|
32
32
|
"@progress/kendo-drawing": "^1.23.1",
|
|
33
33
|
"@progress/kendo-licensing": "^1.7.0",
|
|
34
|
-
"@progress/kendo-angular-buttons": "21.4.0-develop.
|
|
35
|
-
"@progress/kendo-angular-common": "21.4.0-develop.
|
|
36
|
-
"@progress/kendo-angular-dropdowns": "21.4.0-develop.
|
|
37
|
-
"@progress/kendo-angular-indicators": "21.4.0-develop.
|
|
38
|
-
"@progress/kendo-angular-inputs": "21.4.0-develop.
|
|
39
|
-
"@progress/kendo-angular-intl": "21.4.0-develop.
|
|
40
|
-
"@progress/kendo-angular-l10n": "21.4.0-develop.
|
|
41
|
-
"@progress/kendo-angular-popup": "21.4.0-develop.
|
|
42
|
-
"@progress/kendo-angular-icons": "21.4.0-develop.
|
|
43
|
-
"@progress/kendo-angular-treeview": "21.4.0-develop.
|
|
34
|
+
"@progress/kendo-angular-buttons": "21.4.0-develop.11",
|
|
35
|
+
"@progress/kendo-angular-common": "21.4.0-develop.11",
|
|
36
|
+
"@progress/kendo-angular-dropdowns": "21.4.0-develop.11",
|
|
37
|
+
"@progress/kendo-angular-indicators": "21.4.0-develop.11",
|
|
38
|
+
"@progress/kendo-angular-inputs": "21.4.0-develop.11",
|
|
39
|
+
"@progress/kendo-angular-intl": "21.4.0-develop.11",
|
|
40
|
+
"@progress/kendo-angular-l10n": "21.4.0-develop.11",
|
|
41
|
+
"@progress/kendo-angular-popup": "21.4.0-develop.11",
|
|
42
|
+
"@progress/kendo-angular-icons": "21.4.0-develop.11",
|
|
43
|
+
"@progress/kendo-angular-treeview": "21.4.0-develop.11",
|
|
44
44
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"tslib": "^2.3.1",
|
|
48
|
-
"@progress/kendo-angular-schematics": "21.4.0-develop.
|
|
48
|
+
"@progress/kendo-angular-schematics": "21.4.0-develop.11",
|
|
49
49
|
"@progress/kendo-pivotgrid-common": "0.6.3"
|
|
50
50
|
},
|
|
51
51
|
"schematics": "./schematics/collection.json",
|
|
@@ -11,11 +11,11 @@ function default_1(options) {
|
|
|
11
11
|
// Additional dependencies to install.
|
|
12
12
|
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
13
13
|
peerDependencies: {
|
|
14
|
-
'@progress/kendo-angular-dialog': '21.4.0-develop.
|
|
14
|
+
'@progress/kendo-angular-dialog': '21.4.0-develop.11',
|
|
15
15
|
// peer dep of the icons
|
|
16
16
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
17
17
|
// peer dep of the dropdowns
|
|
18
|
-
'@progress/kendo-angular-navigation': '21.4.0-develop.
|
|
18
|
+
'@progress/kendo-angular-navigation': '21.4.0-develop.11'
|
|
19
19
|
} });
|
|
20
20
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
21
21
|
}
|