@progress/kendo-angular-pivotgrid 0.2.0-dev.202209020712 → 0.2.0-dev.202209020832
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/bundles/kendo-angular-pivotgrid.umd.js +1 -1
- package/configurator/chip-menu/chip-menu-container.component.d.ts +21 -0
- package/configurator/chip-menu/chip-menu-filter.component.d.ts +44 -0
- package/configurator/chip-menu/chip-menu-item-base.d.ts +22 -0
- package/configurator/chip-menu/chip-menu-item-content-template.directive.d.ts +18 -0
- package/configurator/chip-menu/chip-menu-item.component.d.ts +50 -0
- package/configurator/chip-menu/chip-menu-item.directive.d.ts +32 -0
- package/configurator/chip-menu/chip-menu-sort.component.d.ts +33 -0
- package/configurator/chip-menu/chip-menu.component.d.ts +35 -0
- package/configurator/chip-menu/chip-menu.module.d.ts +26 -0
- package/configurator/chip-menu/chip-menu.service.d.ts +22 -0
- package/configurator/chip-menu/filtering/filter-menu-container.component.d.ts +47 -0
- package/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.d.ts +19 -0
- package/configurator/chip-menu/filtering/menu-tabbing.service.d.ts +17 -0
- package/configurator/chip-menu/filtering/string-filter-menu.component.d.ts +53 -0
- package/configurator/chip-menu/single-popup.service.d.ts +50 -0
- package/configurator/configurator.component.d.ts +4 -1
- package/data-binding/base-binding-directive.d.ts +10 -1
- package/esm2015/configurator/chip-menu/chip-menu-container.component.js +46 -0
- package/esm2015/configurator/chip-menu/chip-menu-filter.component.js +112 -0
- package/esm2015/configurator/chip-menu/chip-menu-item-base.js +36 -0
- package/esm2015/configurator/chip-menu/chip-menu-item-content-template.directive.js +27 -0
- package/esm2015/configurator/chip-menu/chip-menu-item.component.js +157 -0
- package/esm2015/configurator/chip-menu/chip-menu-item.directive.js +88 -0
- package/esm2015/configurator/chip-menu/chip-menu-sort.component.js +89 -0
- package/esm2015/configurator/chip-menu/chip-menu.component.js +130 -0
- package/esm2015/configurator/chip-menu/chip-menu.module.js +83 -0
- package/esm2015/configurator/chip-menu/chip-menu.service.js +28 -0
- package/esm2015/configurator/chip-menu/filtering/filter-menu-container.component.js +173 -0
- package/esm2015/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.js +38 -0
- package/esm2015/configurator/chip-menu/filtering/menu-tabbing.service.js +20 -0
- package/esm2015/configurator/chip-menu/filtering/string-filter-menu.component.js +133 -0
- package/esm2015/configurator/chip-menu/single-popup.service.js +121 -0
- package/esm2015/configurator/configurator.component.js +56 -33
- package/esm2015/configurator/configurator.service.js +2 -2
- package/esm2015/data-binding/base-binding-directive.js +16 -4
- package/esm2015/data-binding/local-binding.directive.js +3 -3
- package/esm2015/data-binding/olap-binding.directive.js +6 -4
- package/esm2015/localization/messages.js +3 -1
- package/esm2015/localization/pivot-localization.service.js +28 -0
- package/esm2015/models/configurator-settings.js +3 -1
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/pivotgrid.component.js +14 -5
- package/esm2015/pivotgrid.module.js +9 -12
- package/esm2015/shared.module.js +40 -0
- package/esm2015/util.js +13 -0
- package/fesm2015/kendo-angular-pivotgrid.js +1331 -75
- package/localization/messages.d.ts +23 -1
- package/localization/pivot-localization.service.d.ts +19 -0
- package/models/configurator-settings.d.ts +4 -1
- package/package.json +1 -1
- package/pivotgrid.module.d.ts +6 -7
- package/shared.module.d.ts +17 -0
- package/util.d.ts +12 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
6
|
+
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
7
|
+
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
8
|
+
import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
* Represents the component for setting field filters in the PivotGrid.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ChipMenuFilterComponent extends ChipMenuItemBase {
|
|
15
|
+
localization: PivotLocalizationService;
|
|
16
|
+
private hostElement;
|
|
17
|
+
/**
|
|
18
|
+
* Fires when the content is expanded.
|
|
19
|
+
*/
|
|
20
|
+
expand: EventEmitter<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Fires when the content is collapsed.
|
|
23
|
+
*/
|
|
24
|
+
collapse: EventEmitter<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Holds current field information.
|
|
27
|
+
*/
|
|
28
|
+
chip: AxisDescriptor;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies if the content is expanded.
|
|
31
|
+
*/
|
|
32
|
+
expanded: boolean;
|
|
33
|
+
isLast: boolean;
|
|
34
|
+
actionsClass: string;
|
|
35
|
+
constructor(localization: PivotLocalizationService, hostElement: ElementRef);
|
|
36
|
+
onCollapse(): void;
|
|
37
|
+
onExpand(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the localized message for a given token
|
|
40
|
+
*/
|
|
41
|
+
messageFor(localizationToken: string): string;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuFilterComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuFilterComponent, "kendo-pivot-chipmenu-filter", never, { "chip": "chip"; "expanded": "expanded"; "isLast": "isLast"; }, { "expand": "expand"; "collapse": "collapse"; }, never, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { OnInit } from '@angular/core';
|
|
6
|
+
import { ChipMenuService } from './chip-menu.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class ChipMenuItemBase implements OnInit {
|
|
12
|
+
/**
|
|
13
|
+
* Represents the ChipMenuService class.
|
|
14
|
+
* Requires a mandatory input.
|
|
15
|
+
*/
|
|
16
|
+
service: ChipMenuService;
|
|
17
|
+
hostClass: boolean;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
close(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuItemBase, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuItemBase, "kendo-pivot-chip-menu-item-base", never, { "service": "service"; }, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*
|
|
10
|
+
* Represents the content template of the ChipMenuItemComponent.
|
|
11
|
+
* Provides an option for specifying the content of a chip menu item..
|
|
12
|
+
*/
|
|
13
|
+
export declare class ChipMenuItemContentTemplateDirective {
|
|
14
|
+
templateRef: TemplateRef<any>;
|
|
15
|
+
constructor(templateRef: TemplateRef<any>);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuItemContentTemplateDirective, [{ optional: true; }]>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChipMenuItemContentTemplateDirective, "[kendoPivotChipMenuItemContentTemplate]", never, {}, {}, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
6
|
+
import { ChipMenuItemContentTemplateDirective } from './chip-menu-item-content-template.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare class ChipMenuItemComponent implements OnChanges {
|
|
13
|
+
/**
|
|
14
|
+
* Fires when the item is clicked.
|
|
15
|
+
*/
|
|
16
|
+
itemClick: EventEmitter<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Fires when the content is expanded.
|
|
19
|
+
*/
|
|
20
|
+
expand: EventEmitter<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Fires when the content is collapsed.
|
|
23
|
+
*/
|
|
24
|
+
collapse: EventEmitter<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons)
|
|
27
|
+
* that will be rendered for the item.
|
|
28
|
+
*/
|
|
29
|
+
icon: string;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the item text.
|
|
32
|
+
*/
|
|
33
|
+
text: string;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies if the item is selected.
|
|
36
|
+
*/
|
|
37
|
+
selected: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies if the item is expanded.
|
|
40
|
+
*/
|
|
41
|
+
expanded: boolean;
|
|
42
|
+
contentTemplate: ChipMenuItemContentTemplateDirective;
|
|
43
|
+
get iconClass(): string;
|
|
44
|
+
contentState: string;
|
|
45
|
+
ngOnChanges(changes: any): void;
|
|
46
|
+
onClick(e: any): void;
|
|
47
|
+
private updateContentState;
|
|
48
|
+
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>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ElementRef, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChipMenuItemDirective {
|
|
11
|
+
hostElement: ElementRef;
|
|
12
|
+
private renderer;
|
|
13
|
+
private ngZone;
|
|
14
|
+
menuItemComponent: any;
|
|
15
|
+
firstFocusableElement: HTMLElement;
|
|
16
|
+
lastFocusableElement: HTMLElement;
|
|
17
|
+
set isFirst(value: boolean);
|
|
18
|
+
get isFirst(): boolean;
|
|
19
|
+
set isLast(value: boolean);
|
|
20
|
+
get isLast(): boolean;
|
|
21
|
+
private _isFirst;
|
|
22
|
+
private _isLast;
|
|
23
|
+
private chipMenuItems;
|
|
24
|
+
private subs;
|
|
25
|
+
constructor(hostElement: ElementRef, renderer: Renderer2, ngZone: NgZone);
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
private onTab;
|
|
29
|
+
private getLastColumnMenuItem;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuItemDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChipMenuItemDirective, "[kendoPivotChipMenuItem]", never, { "menuItemComponent": "kendoPivotChipMenuItem"; }, {}, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Renderer2 } from '@angular/core';
|
|
6
|
+
import { ChipMenuItemBase } from './chip-menu-item-base';
|
|
7
|
+
import { ConfiguratorService } from '../configurator.service';
|
|
8
|
+
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
9
|
+
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*
|
|
14
|
+
* Represents a chip-menu item for sorting PivotGrid fields.
|
|
15
|
+
* Allows the user to sort the PivotGrid.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ChipMenuSortComponent extends ChipMenuItemBase {
|
|
18
|
+
localization: PivotLocalizationService;
|
|
19
|
+
protected renderer: Renderer2;
|
|
20
|
+
protected configuratorService: ConfiguratorService;
|
|
21
|
+
chip: AxisDescriptor;
|
|
22
|
+
constructor(localization: PivotLocalizationService, renderer: Renderer2, configuratorService: ConfiguratorService);
|
|
23
|
+
get sortedAsc(): boolean;
|
|
24
|
+
get sortedDesc(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the localized message for a given token
|
|
27
|
+
*/
|
|
28
|
+
messageFor(localizationToken: string): string;
|
|
29
|
+
toggleSort(dir: 'asc' | 'desc'): void;
|
|
30
|
+
private get descriptor();
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuSortComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuSortComponent, "kendo-pivot-chipmenu-sort", never, { "chip": "chip"; }, {}, never, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { OnDestroy, ElementRef } from '@angular/core';
|
|
6
|
+
import { SinglePopupService } from './single-popup.service';
|
|
7
|
+
import { ChipMenuService } from './chip-menu.service';
|
|
8
|
+
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
9
|
+
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*
|
|
14
|
+
* Represents the field chip menu component.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ChipMenuComponent implements OnDestroy {
|
|
17
|
+
protected popupService: SinglePopupService;
|
|
18
|
+
localization: PivotLocalizationService;
|
|
19
|
+
service: ChipMenuService;
|
|
20
|
+
/**
|
|
21
|
+
* The Configurator field instance to control with the menu.
|
|
22
|
+
*/
|
|
23
|
+
chip: AxisDescriptor;
|
|
24
|
+
tabIndex: string;
|
|
25
|
+
anchor: ElementRef;
|
|
26
|
+
private popupRef;
|
|
27
|
+
private closeSubscription;
|
|
28
|
+
constructor(popupService: SinglePopupService, localization: PivotLocalizationService, service: ChipMenuService);
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
toggle(e: any, anchor: any, template: any): void;
|
|
31
|
+
close(): void;
|
|
32
|
+
get chipMenuTitle(): string;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipMenuComponent, "kendo-pivot-chip-menu", never, { "chip": "chip"; "tabIndex": "tabIndex"; }, {}, never, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./chip-menu-item.component";
|
|
7
|
+
import * as i2 from "./chip-menu-sort.component";
|
|
8
|
+
import * as i3 from "./chip-menu.component";
|
|
9
|
+
import * as i4 from "./chip-menu-filter.component";
|
|
10
|
+
import * as i5 from "./chip-menu-item-content-template.directive";
|
|
11
|
+
import * as i6 from "./filtering/filter-menu-container.component";
|
|
12
|
+
import * as i7 from "./filtering/string-filter-menu.component";
|
|
13
|
+
import * as i8 from "./filtering/filter-menu-dropdownlist.directive";
|
|
14
|
+
import * as i9 from "./chip-menu-container.component";
|
|
15
|
+
import * as i10 from "./chip-menu-item.directive";
|
|
16
|
+
import * as i11 from "../../shared.module";
|
|
17
|
+
import * as i12 from "@angular/forms";
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare class ChipMenuModule {
|
|
22
|
+
static exports(): any[];
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuModule, never>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChipMenuModule, [typeof i1.ChipMenuItemComponent, typeof i2.ChipMenuSortComponent, typeof i3.ChipMenuComponent, typeof i4.ChipMenuFilterComponent, typeof i5.ChipMenuItemContentTemplateDirective, typeof i6.FilterMenuContainerComponent, typeof i7.StringFilterMenuComponent, typeof i8.FilterMenuDropDownListDirective, typeof i9.ChipMenuContainerComponent, typeof i10.ChipMenuItemDirective], [typeof i11.SharedModule, typeof i12.ReactiveFormsModule, typeof i12.FormsModule], [typeof i1.ChipMenuItemComponent, typeof i2.ChipMenuSortComponent, typeof i3.ChipMenuComponent, typeof i4.ChipMenuFilterComponent, typeof i5.ChipMenuItemContentTemplateDirective, typeof i6.FilterMenuContainerComponent, typeof i7.StringFilterMenuComponent, typeof i8.FilterMenuDropDownListDirective, typeof i9.ChipMenuContainerComponent, typeof i10.ChipMenuItemDirective]>;
|
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChipMenuModule>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { MenuTabbingService } from './filtering/menu-tabbing.service';
|
|
6
|
+
import { EventEmitter } from '@angular/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
* Represents the service that is passed to the ChipMenuFilterComponent and ChipMenuSortComponent.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ChipMenuService {
|
|
13
|
+
menuTabbingService: MenuTabbingService;
|
|
14
|
+
closeMenu: EventEmitter<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Closes the chip menu.
|
|
17
|
+
*/
|
|
18
|
+
close(): void;
|
|
19
|
+
constructor(menuTabbingService?: MenuTabbingService);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipMenuService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChipMenuService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { MenuTabbingService } from './menu-tabbing.service';
|
|
6
|
+
import { OnInit, EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
7
|
+
import { PivotLocalizationService } from '../../../localization/pivot-localization.service';
|
|
8
|
+
import { ConfiguratorService } from '../../configurator.service';
|
|
9
|
+
import { AxisDescriptor } from '@progress/kendo-pivotgrid-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class FilterMenuContainerComponent implements OnInit, OnDestroy {
|
|
15
|
+
protected localization: PivotLocalizationService;
|
|
16
|
+
protected cd: ChangeDetectorRef;
|
|
17
|
+
private configuratorService;
|
|
18
|
+
close: EventEmitter<any>;
|
|
19
|
+
/**
|
|
20
|
+
* The field with which the filter is associated.
|
|
21
|
+
*/
|
|
22
|
+
chip: AxisDescriptor;
|
|
23
|
+
isLast: boolean;
|
|
24
|
+
isExpanded: boolean;
|
|
25
|
+
menuTabbingService: MenuTabbingService;
|
|
26
|
+
actionsClass: string;
|
|
27
|
+
filterDescriptorValue: {
|
|
28
|
+
operator: any;
|
|
29
|
+
value: any;
|
|
30
|
+
};
|
|
31
|
+
private resetButton;
|
|
32
|
+
private filterButton;
|
|
33
|
+
constructor(localization: PivotLocalizationService, cd: ChangeDetectorRef, menuTabbingService: MenuTabbingService, configuratorService: ConfiguratorService);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
ngAfterViewChecked(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
get disabled(): boolean;
|
|
38
|
+
submit(): boolean;
|
|
39
|
+
reset(): void;
|
|
40
|
+
onTab(e: Event, buttonType: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the localized message for a given token
|
|
43
|
+
*/
|
|
44
|
+
messageFor(localizationToken: string): string;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterMenuContainerComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterMenuContainerComponent, "kendo-pivot-filter-menu-container", never, { "chip": "chip"; "isLast": "isLast"; "isExpanded": "isExpanded"; "menuTabbingService": "menuTabbingService"; "actionsClass": "actionsClass"; }, { "close": "close"; }, never, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class FilterMenuDropDownListDirective {
|
|
11
|
+
private host;
|
|
12
|
+
filterMenuDropDownLabel: string;
|
|
13
|
+
constructor(host: DropDownListComponent);
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
private keydownHandler;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterMenuDropDownListDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FilterMenuDropDownListDirective, "[kendoFilterMenuDropDown]", never, { "filterMenuDropDownLabel": "filterMenuDropDownLabel"; }, {}, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare class MenuTabbingService {
|
|
10
|
+
firstFocusable: any;
|
|
11
|
+
lastFocusable: any;
|
|
12
|
+
isColumnMenu: boolean;
|
|
13
|
+
isPopupOpen: boolean;
|
|
14
|
+
lastMenuItem: any;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTabbingService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MenuTabbingService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { MenuTabbingService } from './menu-tabbing.service';
|
|
6
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
7
|
+
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
8
|
+
import { PivotLocalizationService } from '../../../localization/pivot-localization.service';
|
|
9
|
+
import { ControlValueAccessor, FormBuilder, FormGroup } from '@angular/forms';
|
|
10
|
+
import { ConfiguratorService } from '../../configurator.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
declare type ChangeCallbackFn<T> = (value: T) => void;
|
|
13
|
+
declare type TouchCallbackFn = () => void;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare const localizeOperators: (operators: any) => (localization: any) => {
|
|
18
|
+
text: any;
|
|
19
|
+
value: any;
|
|
20
|
+
}[];
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*
|
|
24
|
+
* Represents a string-filter menu component.
|
|
25
|
+
*/
|
|
26
|
+
export declare class StringFilterMenuComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
27
|
+
private localization;
|
|
28
|
+
private configuratorService;
|
|
29
|
+
private fb;
|
|
30
|
+
/**
|
|
31
|
+
* The field with which the filter is associated.
|
|
32
|
+
*/
|
|
33
|
+
chip: any;
|
|
34
|
+
menuTabbingService: MenuTabbingService;
|
|
35
|
+
operators: Array<{
|
|
36
|
+
text: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}>;
|
|
39
|
+
filterFormGroup: FormGroup;
|
|
40
|
+
get currentFilter(): FilterDescriptor;
|
|
41
|
+
private subscription;
|
|
42
|
+
constructor(localization: PivotLocalizationService, configuratorService: ConfiguratorService, fb: FormBuilder);
|
|
43
|
+
onTouched: () => void;
|
|
44
|
+
registerOnChange(fn: ChangeCallbackFn<object>): void;
|
|
45
|
+
registerOnTouched(fn: TouchCallbackFn): void;
|
|
46
|
+
writeValue(val: any): void;
|
|
47
|
+
get filterMenuDropDownLabel(): string;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringFilterMenuComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringFilterMenuComponent, "kendo-pivot-string-filter-menu", never, { "chip": "chip"; "menuTabbingService": "menuTabbingService"; }, {}, never, never>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PopupService, PopupRef } from '@progress/kendo-angular-popup';
|
|
6
|
+
import { Renderer2, NgZone, OnDestroy } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
9
|
+
import { PivotLocalizationService } from '../../localization/pivot-localization.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
* Arguments for the `close` event of the chip-menu popup.
|
|
14
|
+
*/
|
|
15
|
+
export declare class PopupCloseEvent extends PreventableEvent {
|
|
16
|
+
/**
|
|
17
|
+
* The original DOM event that causes the popup to close.
|
|
18
|
+
*/
|
|
19
|
+
originalEvent: any;
|
|
20
|
+
constructor(e: any);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
* The service that is used for the popups of the chip menus.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SinglePopupService implements OnDestroy {
|
|
27
|
+
private popupService;
|
|
28
|
+
private renderer;
|
|
29
|
+
private ngZone;
|
|
30
|
+
private localization;
|
|
31
|
+
/**
|
|
32
|
+
* Fires when the chip menus are about to close because the user clicked outside their popups.
|
|
33
|
+
* Used to prevent the popup from closing.
|
|
34
|
+
*/
|
|
35
|
+
readonly onClose: Subject<PopupCloseEvent>;
|
|
36
|
+
private removeClick;
|
|
37
|
+
private pointerEventsSub;
|
|
38
|
+
private popupRef;
|
|
39
|
+
private scrollSubscription;
|
|
40
|
+
private canClosePopup;
|
|
41
|
+
constructor(popupService: PopupService, renderer: Renderer2, ngZone: NgZone, localization: PivotLocalizationService);
|
|
42
|
+
open(anchor: any, template: any, popupRef: PopupRef, popupClass?: string): PopupRef;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
private detachClose;
|
|
46
|
+
private attachClose;
|
|
47
|
+
private attachMouseListeners;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SinglePopupService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SinglePopupService>;
|
|
50
|
+
}
|
|
@@ -9,6 +9,7 @@ import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
|
|
|
9
9
|
import { ConfiguratorService } from './configurator.service';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { FilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -21,6 +22,8 @@ export declare class PivotGridConfiguratorComponent implements OnInit, OnDestroy
|
|
|
21
22
|
private cdr;
|
|
22
23
|
hostClass: boolean;
|
|
23
24
|
horizontal: boolean;
|
|
25
|
+
sort: Array<SortDescriptor>;
|
|
26
|
+
filter: FilterDescriptor[];
|
|
24
27
|
originalState: PivotGridConfiguratorState;
|
|
25
28
|
state: PivotGridConfiguratorState;
|
|
26
29
|
fields: PivotGridField[];
|
|
@@ -92,5 +95,5 @@ export declare class PivotGridConfiguratorComponent implements OnInit, OnDestroy
|
|
|
92
95
|
*/
|
|
93
96
|
private extractDefaultFields;
|
|
94
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridConfiguratorComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridConfiguratorComponent, "kendo-pivotgrid-configurator", never, { "horizontal": "horizontal"; }, {}, never, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridConfiguratorComponent, "kendo-pivotgrid-configurator", never, { "horizontal": "horizontal"; "sort": "sort"; "filter": "filter"; }, {}, never, never>;
|
|
96
99
|
}
|
|
@@ -9,6 +9,7 @@ import { PivotGridState } from '../models/configurator-settings';
|
|
|
9
9
|
import { ExpandChangeEvent } from '../models/expanded-change-event';
|
|
10
10
|
import { ConfigurationChangeEvent } from '../models/configuration-change-event';
|
|
11
11
|
import { PivotDataRowItem } from '../models/data-row-item';
|
|
12
|
+
import { FilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -33,6 +34,14 @@ export declare abstract class PivotBaseBindingDirective implements OnInit, OnDes
|
|
|
33
34
|
* Represents the measure axes configuration of the PivotGrid.
|
|
34
35
|
*/
|
|
35
36
|
measureAxes: PivotGridAxis[];
|
|
37
|
+
/**
|
|
38
|
+
* Represents the initial sorted state of the PivotGrid.
|
|
39
|
+
*/
|
|
40
|
+
sort: SortDescriptor[];
|
|
41
|
+
/**
|
|
42
|
+
* Represents the initial filtered state of the PivotGrid.
|
|
43
|
+
*/
|
|
44
|
+
filter: FilterDescriptor[];
|
|
36
45
|
/**
|
|
37
46
|
* Fires each time a row or column header gets expanded or collapsed by the end user. The event is preventable.
|
|
38
47
|
* If you prevent the event, the PivotGrid will not be rerendered with the new state, resulting from the end user interaction.
|
|
@@ -62,5 +71,5 @@ export declare abstract class PivotBaseBindingDirective implements OnInit, OnDes
|
|
|
62
71
|
protected updateConfiguratorFields(): void;
|
|
63
72
|
private updateHeaders;
|
|
64
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<PivotBaseBindingDirective, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PivotBaseBindingDirective, "kendo-base-binding-directive", never, { "columnAxes": "columnAxes"; "rowAxes": "rowAxes"; "measureAxes": "measureAxes"; }, { "expandChange": "expandChange"; "configurationChange": "configurationChange"; "dataLoaded": "dataLoaded"; }, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PivotBaseBindingDirective, "kendo-base-binding-directive", never, { "columnAxes": "columnAxes"; "rowAxes": "rowAxes"; "measureAxes": "measureAxes"; "sort": "sort"; "filter": "filter"; }, { "expandChange": "expandChange"; "configurationChange": "configurationChange"; "dataLoaded": "dataLoaded"; }, never>;
|
|
66
75
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChipMenuItemDirective } from './chip-menu-item.directive';
|
|
6
|
+
import { Component, ContentChildren, HostBinding } from '@angular/core';
|
|
7
|
+
import { take } from 'rxjs/operators';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./chip-menu.service";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export class ChipMenuContainerComponent {
|
|
14
|
+
constructor(service, ngZone) {
|
|
15
|
+
this.service = service;
|
|
16
|
+
this.ngZone = ngZone;
|
|
17
|
+
this.hostClass = true;
|
|
18
|
+
}
|
|
19
|
+
ngAfterViewInit() {
|
|
20
|
+
if (!this.chipMenuItems.length) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
this.chipMenuItems.first.isFirst = true;
|
|
24
|
+
this.chipMenuItems.last.isLast = true;
|
|
25
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => this.service.menuTabbingService.firstFocusable.focus());
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
ChipMenuContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipMenuContainerComponent, deps: [{ token: i1.ChipMenuService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
ChipMenuContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChipMenuContainerComponent, selector: "kendo-pivot-chipmenu-container", host: { properties: { "class.k-grid-columnmenu-popup": "this.hostClass" } }, queries: [{ propertyName: "chipMenuItems", predicate: ChipMenuItemDirective, descendants: true }], ngImport: i0, template: `
|
|
30
|
+
<ng-content></ng-content>
|
|
31
|
+
`, isInline: true });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipMenuContainerComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'kendo-pivot-chipmenu-container',
|
|
36
|
+
template: `
|
|
37
|
+
<ng-content></ng-content>
|
|
38
|
+
`
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.ChipMenuService }, { type: i0.NgZone }]; }, propDecorators: { chipMenuItems: [{
|
|
41
|
+
type: ContentChildren,
|
|
42
|
+
args: [ChipMenuItemDirective, { descendants: true }]
|
|
43
|
+
}], hostClass: [{
|
|
44
|
+
type: HostBinding,
|
|
45
|
+
args: ['class.k-grid-columnmenu-popup']
|
|
46
|
+
}] } });
|