@progress/kendo-angular-pivotgrid 11.0.0-develop.107 → 11.0.0-develop.109
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/chip-menu/chip-menu-filter.component.d.ts +2 -0
- package/configurator/chip-menu/chip-menu-item.component.d.ts +7 -1
- package/configurator/chip-menu/chip-menu-sort.component.d.ts +3 -0
- package/configurator/chip-menu/chip-menu.component.d.ts +3 -1
- package/esm2020/configurator/chip-menu/chip-menu-filter.component.mjs +5 -1
- package/esm2020/configurator/chip-menu/chip-menu-item.component.mjs +23 -13
- package/esm2020/configurator/chip-menu/chip-menu-sort.component.mjs +8 -1
- package/esm2020/configurator/chip-menu/chip-menu.component.mjs +30 -19
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/pivotgrid.component.mjs +11 -5
- package/esm2020/pivotgrid.module.mjs +5 -2
- package/esm2020/rendering/pivotgrid-cell.directive.mjs +18 -20
- package/esm2020/shared.module.mjs +5 -0
- package/fesm2015/progress-kendo-angular-pivotgrid.mjs +106 -70
- package/fesm2020/progress-kendo-angular-pivotgrid.mjs +106 -70
- package/package.json +12 -11
- package/pivotgrid.component.d.ts +5 -0
- package/pivotgrid.module.d.ts +2 -1
- package/rendering/pivotgrid-cell.directive.d.ts +3 -0
- package/schematics/ngAdd/index.js +3 -1
- package/shared.module.d.ts +3 -2
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, ElementRef } from '@angular/core';
|
|
6
6
|
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
8
9
|
import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
@@ -32,6 +33,7 @@ export declare class ChipMenuFilterComponent extends ChipMenuItemBase {
|
|
|
32
33
|
expanded: boolean;
|
|
33
34
|
isLast: boolean;
|
|
34
35
|
actionsClass: string;
|
|
36
|
+
filterSVGIcon: SVGIcon;
|
|
35
37
|
constructor(localization: PivotLocalizationService, hostElement: ElementRef);
|
|
36
38
|
onCollapse(): void;
|
|
37
39
|
onExpand(): void;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, OnChanges } from '@angular/core';
|
|
6
6
|
import { ChipMenuItemContentTemplateDirective } from './chip-menu-item-content-template.directive';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
@@ -27,6 +28,11 @@ export declare class ChipMenuItemComponent implements OnChanges {
|
|
|
27
28
|
* that will be rendered for the item.
|
|
28
29
|
*/
|
|
29
30
|
icon: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines an SVGIcon to be rendered for the column menu items.
|
|
33
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
34
|
+
*/
|
|
35
|
+
svgIcon: SVGIcon;
|
|
30
36
|
/**
|
|
31
37
|
* Specifies the item text.
|
|
32
38
|
*/
|
|
@@ -46,5 +52,5 @@ export declare class ChipMenuItemComponent implements OnChanges {
|
|
|
46
52
|
onClick(e: any): void;
|
|
47
53
|
private updateContentState;
|
|
48
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuItemComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuItemComponent, "kendo-pivot-chipmenu-item", never, { "icon": "icon"; "text": "text"; "selected": "selected"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuItemComponent, "kendo-pivot-chipmenu-item", never, { "icon": "icon"; "svgIcon": "svgIcon"; "text": "text"; "selected": "selected"; "expanded": "expanded"; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never>;
|
|
50
56
|
}
|
|
@@ -7,6 +7,7 @@ import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
|
7
7
|
import { ConfiguratorService } from '../configurator.service';
|
|
8
8
|
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
9
9
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
10
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
@@ -19,6 +20,8 @@ export declare class ChipMenuSortComponent extends ChipMenuItemBase {
|
|
|
19
20
|
protected renderer: Renderer2;
|
|
20
21
|
protected configuratorService: ConfiguratorService;
|
|
21
22
|
chip: AxisDescriptor;
|
|
23
|
+
sortAscSVGIcon: SVGIcon;
|
|
24
|
+
sortDescSVGIcon: SVGIcon;
|
|
22
25
|
constructor(localization: PivotLocalizationService, renderer: Renderer2, configuratorService: ConfiguratorService);
|
|
23
26
|
get sortedAsc(): boolean;
|
|
24
27
|
get sortedDesc(): boolean;
|
|
@@ -7,6 +7,7 @@ import { SinglePopupService } from './single-popup.service';
|
|
|
7
7
|
import { ChipMenuService } from './chip-menu.service';
|
|
8
8
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
9
9
|
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
10
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
@@ -23,11 +24,12 @@ export declare class ChipMenuComponent implements OnDestroy {
|
|
|
23
24
|
chip: AxisDescriptor;
|
|
24
25
|
tabIndex: string;
|
|
25
26
|
anchor: ElementRef;
|
|
27
|
+
menuItemSVGIcon: SVGIcon;
|
|
26
28
|
private popupRef;
|
|
27
29
|
private closeSubscription;
|
|
28
30
|
constructor(popupService: SinglePopupService, localization: PivotLocalizationService, service: ChipMenuService);
|
|
29
31
|
ngOnDestroy(): void;
|
|
30
|
-
toggle(e: any,
|
|
32
|
+
toggle(e: any, template: any): void;
|
|
31
33
|
close(): void;
|
|
32
34
|
get chipMenuTitle(): string;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuComponent, never>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
|
6
|
+
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
7
8
|
import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
@@ -33,6 +34,7 @@ export class ChipMenuFilterComponent extends ChipMenuItemBase {
|
|
|
33
34
|
this.expanded = false;
|
|
34
35
|
this.isLast = false;
|
|
35
36
|
this.actionsClass = 'k-columnmenu-actions';
|
|
37
|
+
this.filterSVGIcon = filterIcon;
|
|
36
38
|
}
|
|
37
39
|
onCollapse() {
|
|
38
40
|
this.expanded = false;
|
|
@@ -58,6 +60,7 @@ ChipMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
58
60
|
classs="k-widget k-expander"
|
|
59
61
|
[text]="messageFor('fieldMenuFilterItemLabel')"
|
|
60
62
|
icon="filter"
|
|
63
|
+
[svgIcon]="filterSVGIcon"
|
|
61
64
|
[expanded]="expanded"
|
|
62
65
|
(collapse)="onCollapse()"
|
|
63
66
|
(expand)="onExpand()">
|
|
@@ -73,7 +76,7 @@ ChipMenuFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
73
76
|
</kendo-pivot-filter-menu-container>
|
|
74
77
|
</ng-template>
|
|
75
78
|
</kendo-pivot-chipmenu-item>
|
|
76
|
-
`, isInline: true, components: [{ type: i2.ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "text", "selected", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-pivot-filter-menu-container", inputs: ["chip", "isLast", "isExpanded", "menuTabbingService", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ChipMenuItemContentTemplateDirective, selector: "[kendoPivotChipMenuItemContentTemplate]" }] });
|
|
79
|
+
`, isInline: true, components: [{ type: i2.ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "expanded"], outputs: ["itemClick", "expand", "collapse"] }, { type: i3.FilterMenuContainerComponent, selector: "kendo-pivot-filter-menu-container", inputs: ["chip", "isLast", "isExpanded", "menuTabbingService", "actionsClass"], outputs: ["close"] }], directives: [{ type: i4.ChipMenuItemContentTemplateDirective, selector: "[kendoPivotChipMenuItemContentTemplate]" }] });
|
|
77
80
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipMenuFilterComponent, decorators: [{
|
|
78
81
|
type: Component,
|
|
79
82
|
args: [{
|
|
@@ -83,6 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
83
86
|
classs="k-widget k-expander"
|
|
84
87
|
[text]="messageFor('fieldMenuFilterItemLabel')"
|
|
85
88
|
icon="filter"
|
|
89
|
+
[svgIcon]="filterSVGIcon"
|
|
86
90
|
[expanded]="expanded"
|
|
87
91
|
(collapse)="onCollapse()"
|
|
88
92
|
(expand)="onExpand()">
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Component, Input, Output, EventEmitter, ContentChild } from '@angular/core';
|
|
6
7
|
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
7
8
|
import { ChipMenuItemContentTemplateDirective } from './chip-menu-item-content-template.directive';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@angular
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-icons";
|
|
11
|
+
import * as i2 from "@angular/common";
|
|
10
12
|
/**
|
|
11
13
|
* @hidden
|
|
12
14
|
*
|
|
@@ -53,23 +55,26 @@ export class ChipMenuItemComponent {
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
ChipMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
ChipMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: { icon: "icon", text: "text", selected: "selected", expanded: "expanded" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ChipMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
58
|
+
ChipMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: { icon: "icon", svgIcon: "svgIcon", text: "text", selected: "selected", expanded: "expanded" }, outputs: { itemClick: "itemClick", expand: "expand", collapse: "collapse" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ChipMenuItemContentTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
57
59
|
<div
|
|
58
60
|
class="k-columnmenu-item"
|
|
59
61
|
(click)="onClick($event)"
|
|
60
62
|
(keydown.enter)="onClick($event)"
|
|
61
63
|
[class.k-selected]="selected"
|
|
62
64
|
role="button"
|
|
63
|
-
[attr.aria-expanded]="expanded"
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
[attr.aria-expanded]="expanded"
|
|
66
|
+
>
|
|
67
|
+
<kendo-icon-wrapper
|
|
68
|
+
*ngIf="icon"
|
|
69
|
+
[name]="icon"
|
|
70
|
+
[svgIcon]="svgIcon"
|
|
71
|
+
></kendo-icon-wrapper>
|
|
66
72
|
{{ text }}
|
|
67
73
|
</div>
|
|
68
74
|
<div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
|
|
69
|
-
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
|
|
70
|
-
</ng-container>
|
|
75
|
+
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef"></ng-container>
|
|
71
76
|
<div>
|
|
72
|
-
`, isInline: true,
|
|
77
|
+
`, isInline: true, components: [{ type: i1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
73
78
|
trigger('state', [
|
|
74
79
|
state('collapsed', style({ display: 'none' })),
|
|
75
80
|
state('expanded', style({ display: 'block' })),
|
|
@@ -126,14 +131,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
126
131
|
(keydown.enter)="onClick($event)"
|
|
127
132
|
[class.k-selected]="selected"
|
|
128
133
|
role="button"
|
|
129
|
-
[attr.aria-expanded]="expanded"
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
[attr.aria-expanded]="expanded"
|
|
135
|
+
>
|
|
136
|
+
<kendo-icon-wrapper
|
|
137
|
+
*ngIf="icon"
|
|
138
|
+
[name]="icon"
|
|
139
|
+
[svgIcon]="svgIcon"
|
|
140
|
+
></kendo-icon-wrapper>
|
|
132
141
|
{{ text }}
|
|
133
142
|
</div>
|
|
134
143
|
<div *ngIf="contentTemplate" [@state]="contentState" [style.overflow]="'hidden'" class="k-columnmenu-item-content">
|
|
135
|
-
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef">
|
|
136
|
-
</ng-container>
|
|
144
|
+
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef"></ng-container>
|
|
137
145
|
<div>
|
|
138
146
|
`
|
|
139
147
|
}]
|
|
@@ -145,6 +153,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
145
153
|
type: Output
|
|
146
154
|
}], icon: [{
|
|
147
155
|
type: Input
|
|
156
|
+
}], svgIcon: [{
|
|
157
|
+
type: Input
|
|
148
158
|
}], text: [{
|
|
149
159
|
type: Input
|
|
150
160
|
}], selected: [{
|
|
@@ -7,6 +7,7 @@ import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
|
7
7
|
import { ConfiguratorService } from '../configurator.service';
|
|
8
8
|
import { PIVOT_CONFIGURATOR_ACTION } from '@progress/kendo-pivotgrid-common';
|
|
9
9
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
10
|
+
import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../../localization/pivot-localization.service";
|
|
12
13
|
import * as i2 from "../configurator.service";
|
|
@@ -23,6 +24,8 @@ export class ChipMenuSortComponent extends ChipMenuItemBase {
|
|
|
23
24
|
this.localization = localization;
|
|
24
25
|
this.renderer = renderer;
|
|
25
26
|
this.configuratorService = configuratorService;
|
|
27
|
+
this.sortAscSVGIcon = sortAscSmallIcon;
|
|
28
|
+
this.sortDescSVGIcon = sortDescSmallIcon;
|
|
26
29
|
}
|
|
27
30
|
get sortedAsc() {
|
|
28
31
|
const descriptor = this.descriptor;
|
|
@@ -57,16 +60,18 @@ ChipMenuSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
57
60
|
<kendo-pivot-chipmenu-item
|
|
58
61
|
[text]="messageFor('fieldMenuSortAscendingItemLabel')"
|
|
59
62
|
icon="sort-asc-small"
|
|
63
|
+
[svgIcon]="sortAscSVGIcon"
|
|
60
64
|
(itemClick)="toggleSort('asc')"
|
|
61
65
|
[selected]="sortedAsc">
|
|
62
66
|
</kendo-pivot-chipmenu-item>
|
|
63
67
|
<kendo-pivot-chipmenu-item
|
|
64
68
|
[text]="messageFor('fieldMenuSortDescendingItemLabel')"
|
|
65
69
|
icon="sort-desc-small"
|
|
70
|
+
[svgIcon]="sortDescSVGIcon"
|
|
66
71
|
(itemClick)="toggleSort('desc')"
|
|
67
72
|
[selected]="sortedDesc">
|
|
68
73
|
</kendo-pivot-chipmenu-item>
|
|
69
|
-
`, isInline: true, components: [{ type: i3.ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "text", "selected", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
74
|
+
`, isInline: true, components: [{ type: i3.ChipMenuItemComponent, selector: "kendo-pivot-chipmenu-item", inputs: ["icon", "svgIcon", "text", "selected", "expanded"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
70
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipMenuSortComponent, decorators: [{
|
|
71
76
|
type: Component,
|
|
72
77
|
args: [{
|
|
@@ -75,12 +80,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
75
80
|
<kendo-pivot-chipmenu-item
|
|
76
81
|
[text]="messageFor('fieldMenuSortAscendingItemLabel')"
|
|
77
82
|
icon="sort-asc-small"
|
|
83
|
+
[svgIcon]="sortAscSVGIcon"
|
|
78
84
|
(itemClick)="toggleSort('asc')"
|
|
79
85
|
[selected]="sortedAsc">
|
|
80
86
|
</kendo-pivot-chipmenu-item>
|
|
81
87
|
<kendo-pivot-chipmenu-item
|
|
82
88
|
[text]="messageFor('fieldMenuSortDescendingItemLabel')"
|
|
83
89
|
icon="sort-desc-small"
|
|
90
|
+
[svgIcon]="sortDescSVGIcon"
|
|
84
91
|
(itemClick)="toggleSort('desc')"
|
|
85
92
|
[selected]="sortedDesc">
|
|
86
93
|
</kendo-pivot-chipmenu-item>
|
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { MenuTabbingService } from './filtering/menu-tabbing.service';
|
|
6
7
|
import { Component, Input, ElementRef, ViewChild } from '@angular/core';
|
|
7
8
|
import { SinglePopupService } from './single-popup.service';
|
|
8
9
|
import { ChipMenuService } from './chip-menu.service';
|
|
9
10
|
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
10
11
|
import { replaceMessagePlaceholder } from '../../util';
|
|
12
|
+
import { moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
import * as i1 from "./single-popup.service";
|
|
13
15
|
import * as i2 from "../../localization/pivot-localization.service";
|
|
14
16
|
import * as i3 from "./chip-menu.service";
|
|
15
|
-
import * as i4 from "
|
|
16
|
-
import * as i5 from "./chip-menu-
|
|
17
|
-
import * as i6 from "./chip-menu-
|
|
18
|
-
import * as i7 from "./chip-menu-
|
|
17
|
+
import * as i4 from "@progress/kendo-angular-icons";
|
|
18
|
+
import * as i5 from "./chip-menu-container.component";
|
|
19
|
+
import * as i6 from "./chip-menu-sort.component";
|
|
20
|
+
import * as i7 from "./chip-menu-filter.component";
|
|
21
|
+
import * as i8 from "./chip-menu-item.directive";
|
|
19
22
|
const POPUP_CLASS = 'k-column-menu';
|
|
20
23
|
/**
|
|
21
24
|
* @hidden
|
|
@@ -28,20 +31,22 @@ export class ChipMenuComponent {
|
|
|
28
31
|
this.localization = localization;
|
|
29
32
|
this.service = service;
|
|
30
33
|
this.tabIndex = '-1';
|
|
34
|
+
this.menuItemSVGIcon = moreVerticalIcon;
|
|
31
35
|
this.closeSubscription = service.closeMenu.subscribe(this.close.bind(this));
|
|
32
36
|
}
|
|
33
37
|
ngOnDestroy() {
|
|
34
38
|
this.close();
|
|
35
39
|
this.closeSubscription.unsubscribe();
|
|
36
40
|
}
|
|
37
|
-
toggle(e,
|
|
41
|
+
toggle(e, template) {
|
|
38
42
|
if (e) {
|
|
39
43
|
e.preventDefault();
|
|
40
44
|
e.stopImmediatePropagation();
|
|
41
45
|
}
|
|
46
|
+
const anchor = this.anchor.nativeElement;
|
|
42
47
|
this.popupRef = this.popupService.open(anchor, template, this.popupRef, POPUP_CLASS);
|
|
43
48
|
if (!this.popupRef) {
|
|
44
|
-
|
|
49
|
+
anchor.focus();
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
close() {
|
|
@@ -59,13 +64,16 @@ ChipMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
|
59
64
|
ChipMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: { chip: "chip", tabIndex: "tabIndex" }, providers: [
|
|
60
65
|
ChipMenuService,
|
|
61
66
|
MenuTabbingService
|
|
62
|
-
], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, static: true }], ngImport: i0, template: `
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: `
|
|
68
|
+
<kendo-icon-wrapper
|
|
69
|
+
#anchor
|
|
70
|
+
name="more-vertical"
|
|
71
|
+
[svgIcon]="menuItemSVGIcon"
|
|
72
|
+
(click)="toggle($event, template)"
|
|
66
73
|
[tabindex]="tabIndex"
|
|
67
|
-
[attr.title]="chipMenuTitle"
|
|
68
|
-
|
|
74
|
+
[attr.title]="chipMenuTitle"
|
|
75
|
+
>
|
|
76
|
+
</kendo-icon-wrapper>
|
|
69
77
|
<ng-template #template>
|
|
70
78
|
<kendo-pivot-chipmenu-container
|
|
71
79
|
(keydown.escape)="close()"
|
|
@@ -85,7 +93,7 @@ ChipMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
85
93
|
</kendo-pivot-chipmenu-filter>
|
|
86
94
|
</kendo-pivot-chipmenu-container>
|
|
87
95
|
</ng-template>
|
|
88
|
-
`, isInline: true, components: [{ type: i4.ChipMenuContainerComponent, selector: "kendo-pivot-chipmenu-container" }, { type:
|
|
96
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.ChipMenuContainerComponent, selector: "kendo-pivot-chipmenu-container" }, { type: i6.ChipMenuSortComponent, selector: "kendo-pivot-chipmenu-sort", inputs: ["chip"] }, { type: i7.ChipMenuFilterComponent, selector: "kendo-pivot-chipmenu-filter", inputs: ["chip", "expanded", "isLast"], outputs: ["expand", "collapse"] }], directives: [{ type: i8.ChipMenuItemDirective, selector: "[kendoPivotChipMenuItem]", inputs: ["kendoPivotChipMenuItem"] }] });
|
|
89
97
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipMenuComponent, decorators: [{
|
|
90
98
|
type: Component,
|
|
91
99
|
args: [{
|
|
@@ -95,12 +103,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
95
103
|
],
|
|
96
104
|
selector: 'kendo-pivot-chip-menu',
|
|
97
105
|
template: `
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
<kendo-icon-wrapper
|
|
107
|
+
#anchor
|
|
108
|
+
name="more-vertical"
|
|
109
|
+
[svgIcon]="menuItemSVGIcon"
|
|
110
|
+
(click)="toggle($event, template)"
|
|
101
111
|
[tabindex]="tabIndex"
|
|
102
|
-
[attr.title]="chipMenuTitle"
|
|
103
|
-
|
|
112
|
+
[attr.title]="chipMenuTitle"
|
|
113
|
+
>
|
|
114
|
+
</kendo-icon-wrapper>
|
|
104
115
|
<ng-template #template>
|
|
105
116
|
<kendo-pivot-chipmenu-container
|
|
106
117
|
(keydown.escape)="close()"
|
|
@@ -128,5 +139,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
128
139
|
type: Input
|
|
129
140
|
}], anchor: [{
|
|
130
141
|
type: ViewChild,
|
|
131
|
-
args: ['anchor', { static: true }]
|
|
142
|
+
args: ['anchor', { static: true, read: ElementRef }]
|
|
132
143
|
}] } });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-pivotgrid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1673549015,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -13,6 +13,7 @@ import { merge } from 'rxjs/operators';
|
|
|
13
13
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
14
|
import { ConfiguratorNavigation, PivotGridNavigation } from '@progress/kendo-pivotgrid-common';
|
|
15
15
|
import { PivotLocalizationService } from './localization/pivot-localization.service';
|
|
16
|
+
import { gearIcon } from '@progress/kendo-svg-icons';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
import * as i1 from "./data-binding/pivotgrid-data.service";
|
|
18
19
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -20,8 +21,9 @@ import * as i3 from "@progress/kendo-angular-common";
|
|
|
20
21
|
import * as i4 from "./rendering/pivotgrid-table.component";
|
|
21
22
|
import * as i5 from "@progress/kendo-angular-indicators";
|
|
22
23
|
import * as i6 from "./configurator/configurator.component";
|
|
23
|
-
import * as i7 from "
|
|
24
|
-
import * as i8 from "
|
|
24
|
+
import * as i7 from "@progress/kendo-angular-icons";
|
|
25
|
+
import * as i8 from "./localization/localized-messages.directive";
|
|
26
|
+
import * as i9 from "@angular/common";
|
|
25
27
|
const DEFAULT_LOADER_SETTINGS = {
|
|
26
28
|
type: 'converging-spinner',
|
|
27
29
|
themeColor: 'primary',
|
|
@@ -54,6 +56,10 @@ export class PivotGridComponent {
|
|
|
54
56
|
* @default false
|
|
55
57
|
*/
|
|
56
58
|
this.navigable = false;
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
*/
|
|
62
|
+
this.gearSVGIcon = gearIcon;
|
|
57
63
|
this.resizeObservers = [];
|
|
58
64
|
this._loaderSettings = DEFAULT_LOADER_SETTINGS;
|
|
59
65
|
this.subs = new Subscription();
|
|
@@ -380,10 +386,10 @@ PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
380
386
|
class="k-pivotgrid-configurator-button"
|
|
381
387
|
aria-hidden="true"
|
|
382
388
|
(click)="toggleConfigurator()">
|
|
383
|
-
<span>{{messageFor('configuratorButtonText')}}<
|
|
389
|
+
<span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
|
|
384
390
|
</span>
|
|
385
391
|
</div>
|
|
386
|
-
`, isInline: true, components: [{ type: i4.PivotGridTableComponent, selector: "kendo-pivotgrid-table", inputs: ["tableType", "colWidth"] }, { type: i5.LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }, { type: i6.PivotGridConfiguratorComponent, selector: "kendo-pivotgrid-configurator", inputs: ["orientation", "sort", "filter", "navigation"], outputs: ["close"] }], directives: [{ type:
|
|
392
|
+
`, isInline: true, components: [{ type: i4.PivotGridTableComponent, selector: "kendo-pivotgrid-table", inputs: ["tableType", "colWidth"] }, { type: i5.LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }, { type: i6.PivotGridConfiguratorComponent, selector: "kendo-pivotgrid-configurator", inputs: ["orientation", "sort", "filter", "navigation"], outputs: ["close"] }, { type: i7.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i8.LocalizedMessagesDirective, selector: "[kendoPivotGridLocalizedMessages]" }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
387
393
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PivotGridComponent, decorators: [{
|
|
388
394
|
type: Component,
|
|
389
395
|
args: [{
|
|
@@ -533,7 +539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
533
539
|
class="k-pivotgrid-configurator-button"
|
|
534
540
|
aria-hidden="true"
|
|
535
541
|
(click)="toggleConfigurator()">
|
|
536
|
-
<span>{{messageFor('configuratorButtonText')}}<
|
|
542
|
+
<span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
|
|
537
543
|
</span>
|
|
538
544
|
</div>
|
|
539
545
|
`
|
|
@@ -19,6 +19,7 @@ import { DropTargetDirective } from './configurator/drop-target.directive';
|
|
|
19
19
|
import { ChipMenuModule } from './configurator/chip-menu/chip-menu.module';
|
|
20
20
|
import { SharedModule } from './shared.module';
|
|
21
21
|
import { ChipKeyboardNavigationDirective } from './configurator/chip-kb-nav.directive';
|
|
22
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
22
23
|
import * as i0 from "@angular/core";
|
|
23
24
|
const IMPORTED_MODULES = [
|
|
24
25
|
EventsModule,
|
|
@@ -26,7 +27,8 @@ const IMPORTED_MODULES = [
|
|
|
26
27
|
TreeViewModule,
|
|
27
28
|
DraggableModule,
|
|
28
29
|
ChipMenuModule,
|
|
29
|
-
SharedModule
|
|
30
|
+
SharedModule,
|
|
31
|
+
IconsModule
|
|
30
32
|
];
|
|
31
33
|
const DECLARATIONS = [
|
|
32
34
|
PivotGridComponent,
|
|
@@ -70,7 +72,8 @@ PivotGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
70
72
|
TreeViewModule,
|
|
71
73
|
DraggableModule,
|
|
72
74
|
ChipMenuModule,
|
|
73
|
-
SharedModule
|
|
75
|
+
SharedModule,
|
|
76
|
+
IconsModule], exports: [PivotGridComponent,
|
|
74
77
|
PivotGridTableComponent,
|
|
75
78
|
PivotGridCellDirective,
|
|
76
79
|
PivotLocalBindingDirective,
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
|
|
6
|
+
import { chevronDownIcon, chevronUpIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "../data-binding/pivotgrid-data.service";
|
|
9
|
-
import * as i2 from "@angular
|
|
10
|
-
import * as i3 from "@
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
11
|
+
import * as i3 from "@angular/common";
|
|
12
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
11
13
|
/**
|
|
12
14
|
* @hidden
|
|
13
15
|
*/
|
|
@@ -17,6 +19,8 @@ export class PivotGridCellDirective {
|
|
|
17
19
|
this.renderer = renderer;
|
|
18
20
|
this.dataService = dataService;
|
|
19
21
|
this.cellClass = true;
|
|
22
|
+
this.chevronUpSVGIcon = chevronUpIcon;
|
|
23
|
+
this.chevronDownSVGIcon = chevronDownIcon;
|
|
20
24
|
this.handleClick = () => {
|
|
21
25
|
this.dataService.expandedStateChange.emit({
|
|
22
26
|
action: this.expanded ? 'collapse' : 'expand',
|
|
@@ -49,34 +53,28 @@ export class PivotGridCellDirective {
|
|
|
49
53
|
}
|
|
50
54
|
PivotGridCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PivotGridCellDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.PivotGridDataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
55
|
PivotGridCellDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PivotGridCellDirective, selector: "[kendoPivotGridCell]", inputs: { kendoPivotGridCell: "kendoPivotGridCell", tableType: "tableType", rowIndex: "rowIndex", colIndex: "colIndex" }, host: { properties: { "class.k-pivotgrid-cell": "this.cellClass" } }, ngImport: i0, template: `
|
|
52
|
-
<
|
|
56
|
+
<kendo-icon-wrapper
|
|
53
57
|
*ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"
|
|
54
|
-
class="k-icon"
|
|
55
58
|
aria-hidden="true"
|
|
56
|
-
[kendoEventsOutsideAngular]="{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
'k-i-arrow-chevron-down': !expanded
|
|
62
|
-
}"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
59
|
+
[kendoEventsOutsideAngular]="{ click: handleClick }"
|
|
60
|
+
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
61
|
+
[svgIcon]="expanded ? chevronUpSVGIcon : chevronDownSVGIcon">
|
|
62
|
+
</kendo-icon-wrapper>
|
|
63
|
+
{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
63
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PivotGridCellDirective, decorators: [{
|
|
64
65
|
type: Component,
|
|
65
66
|
args: [{
|
|
66
67
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
67
68
|
selector: '[kendoPivotGridCell]',
|
|
68
69
|
template: `
|
|
69
|
-
<
|
|
70
|
+
<kendo-icon-wrapper
|
|
70
71
|
*ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"
|
|
71
|
-
class="k-icon"
|
|
72
72
|
aria-hidden="true"
|
|
73
|
-
[kendoEventsOutsideAngular]="{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'k-i-arrow-chevron-down': !expanded
|
|
79
|
-
}"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}`
|
|
73
|
+
[kendoEventsOutsideAngular]="{ click: handleClick }"
|
|
74
|
+
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
75
|
+
[svgIcon]="expanded ? chevronUpSVGIcon : chevronDownSVGIcon">
|
|
76
|
+
</kendo-icon-wrapper>
|
|
77
|
+
{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}`
|
|
80
78
|
}]
|
|
81
79
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.PivotGridDataService }]; }, propDecorators: { cellClass: [{
|
|
82
80
|
type: HostBinding,
|
|
@@ -7,11 +7,13 @@ import { CommonModule } from '@angular/common';
|
|
|
7
7
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
8
8
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
9
9
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
10
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
const MODULES = [
|
|
12
13
|
CommonModule,
|
|
13
14
|
DropDownsModule,
|
|
14
15
|
InputsModule,
|
|
16
|
+
IconsModule,
|
|
15
17
|
ButtonsModule
|
|
16
18
|
];
|
|
17
19
|
/**
|
|
@@ -23,13 +25,16 @@ SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "1
|
|
|
23
25
|
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [CommonModule,
|
|
24
26
|
DropDownsModule,
|
|
25
27
|
InputsModule,
|
|
28
|
+
IconsModule,
|
|
26
29
|
ButtonsModule], exports: [CommonModule,
|
|
27
30
|
DropDownsModule,
|
|
28
31
|
InputsModule,
|
|
32
|
+
IconsModule,
|
|
29
33
|
ButtonsModule] });
|
|
30
34
|
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[MODULES], CommonModule,
|
|
31
35
|
DropDownsModule,
|
|
32
36
|
InputsModule,
|
|
37
|
+
IconsModule,
|
|
33
38
|
ButtonsModule] });
|
|
34
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
35
40
|
type: NgModule,
|