@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.
Files changed (54) hide show
  1. package/bundles/kendo-angular-pivotgrid.umd.js +1 -1
  2. package/configurator/chip-menu/chip-menu-container.component.d.ts +21 -0
  3. package/configurator/chip-menu/chip-menu-filter.component.d.ts +44 -0
  4. package/configurator/chip-menu/chip-menu-item-base.d.ts +22 -0
  5. package/configurator/chip-menu/chip-menu-item-content-template.directive.d.ts +18 -0
  6. package/configurator/chip-menu/chip-menu-item.component.d.ts +50 -0
  7. package/configurator/chip-menu/chip-menu-item.directive.d.ts +32 -0
  8. package/configurator/chip-menu/chip-menu-sort.component.d.ts +33 -0
  9. package/configurator/chip-menu/chip-menu.component.d.ts +35 -0
  10. package/configurator/chip-menu/chip-menu.module.d.ts +26 -0
  11. package/configurator/chip-menu/chip-menu.service.d.ts +22 -0
  12. package/configurator/chip-menu/filtering/filter-menu-container.component.d.ts +47 -0
  13. package/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.d.ts +19 -0
  14. package/configurator/chip-menu/filtering/menu-tabbing.service.d.ts +17 -0
  15. package/configurator/chip-menu/filtering/string-filter-menu.component.d.ts +53 -0
  16. package/configurator/chip-menu/single-popup.service.d.ts +50 -0
  17. package/configurator/configurator.component.d.ts +4 -1
  18. package/data-binding/base-binding-directive.d.ts +10 -1
  19. package/esm2015/configurator/chip-menu/chip-menu-container.component.js +46 -0
  20. package/esm2015/configurator/chip-menu/chip-menu-filter.component.js +112 -0
  21. package/esm2015/configurator/chip-menu/chip-menu-item-base.js +36 -0
  22. package/esm2015/configurator/chip-menu/chip-menu-item-content-template.directive.js +27 -0
  23. package/esm2015/configurator/chip-menu/chip-menu-item.component.js +157 -0
  24. package/esm2015/configurator/chip-menu/chip-menu-item.directive.js +88 -0
  25. package/esm2015/configurator/chip-menu/chip-menu-sort.component.js +89 -0
  26. package/esm2015/configurator/chip-menu/chip-menu.component.js +130 -0
  27. package/esm2015/configurator/chip-menu/chip-menu.module.js +83 -0
  28. package/esm2015/configurator/chip-menu/chip-menu.service.js +28 -0
  29. package/esm2015/configurator/chip-menu/filtering/filter-menu-container.component.js +173 -0
  30. package/esm2015/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.js +38 -0
  31. package/esm2015/configurator/chip-menu/filtering/menu-tabbing.service.js +20 -0
  32. package/esm2015/configurator/chip-menu/filtering/string-filter-menu.component.js +133 -0
  33. package/esm2015/configurator/chip-menu/single-popup.service.js +121 -0
  34. package/esm2015/configurator/configurator.component.js +56 -33
  35. package/esm2015/configurator/configurator.service.js +2 -2
  36. package/esm2015/data-binding/base-binding-directive.js +16 -4
  37. package/esm2015/data-binding/local-binding.directive.js +3 -3
  38. package/esm2015/data-binding/olap-binding.directive.js +6 -4
  39. package/esm2015/localization/messages.js +3 -1
  40. package/esm2015/localization/pivot-localization.service.js +28 -0
  41. package/esm2015/models/configurator-settings.js +3 -1
  42. package/esm2015/package-metadata.js +1 -1
  43. package/esm2015/pivotgrid.component.js +14 -5
  44. package/esm2015/pivotgrid.module.js +9 -12
  45. package/esm2015/shared.module.js +40 -0
  46. package/esm2015/util.js +13 -0
  47. package/fesm2015/kendo-angular-pivotgrid.js +1331 -75
  48. package/localization/messages.d.ts +23 -1
  49. package/localization/pivot-localization.service.d.ts +19 -0
  50. package/models/configurator-settings.d.ts +4 -1
  51. package/package.json +1 -1
  52. package/pivotgrid.module.d.ts +6 -7
  53. package/shared.module.d.ts +17 -0
  54. package/util.d.ts +12 -0
@@ -167,6 +167,28 @@ export declare class PivotGridMessages extends ComponentMessages {
167
167
  * The text content of the PivotGrid configurator empty measures container.
168
168
  */
169
169
  configuratorEmptyMeasuresText: string;
170
+ /**
171
+ * The title of the chip menu icon.
172
+ *
173
+ * The title consists of a two-part message - the name of the chip and a localizable string.
174
+ * For a field named 'Product', the default title will be 'Product Field Menu'.
175
+ *
176
+ * To allow reordering the field name and the localizable part, the chipMenu accepts a string with a
177
+ * placeholder for the chip name - e.g. 'chip for {fieldName}'. The '{fieldName}' placeholder will be replaced
178
+ * internally with the current chip name, and the resulting title will be rendered as 'Product Field Menu'.
179
+ *
180
+ * @example
181
+ *
182
+ * ```ts-no-run
183
+ * <kendo-pivotgrid>
184
+ * <kendo-pivotgrid-messages
185
+ * chipMenuIconTitle="'{fieldName} Field Menu'"
186
+ * >
187
+ * </kendo-pivotgrid-messages>
188
+ * </kendo-pivotgrid>
189
+ * ```
190
+ */
191
+ chipMenuIconTitle: string;
170
192
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridMessages, never>;
171
- static ɵdir: i0.ɵɵDirectiveDeclaration<PivotGridMessages, never, never, { "fieldMenuFilterItemLabel": "fieldMenuFilterItemLabel"; "fieldMenuSortAscendingItemLabel": "fieldMenuSortAscendingItemLabel"; "fieldMenuSortDescendingItemLabel": "fieldMenuSortDescendingItemLabel"; "filterInputLabel": "filterInputLabel"; "filterOperatorsDropDownLabel": "filterOperatorsDropDownLabel"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "loading": "loading"; "emptyCellLabel": "emptyCellLabel"; "configuratorButtonText": "configuratorButtonText"; "configuratorHeaderText": "configuratorHeaderText"; "configuratorFieldsText": "configuratorFieldsText"; "configuratorColumnsText": "configuratorColumnsText"; "configuratorRowsText": "configuratorRowsText"; "configuratorValuesText": "configuratorValuesText"; "configuratorCancelButtonText": "configuratorCancelButtonText"; "configuratorApplyButtonText": "configuratorApplyButtonText"; "configuratorEmptyRowsText": "configuratorEmptyRowsText"; "configuratorEmptyColumnsText": "configuratorEmptyColumnsText"; "configuratorEmptyMeasuresText": "configuratorEmptyMeasuresText"; }, {}, never>;
193
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PivotGridMessages, never, never, { "fieldMenuFilterItemLabel": "fieldMenuFilterItemLabel"; "fieldMenuSortAscendingItemLabel": "fieldMenuSortAscendingItemLabel"; "fieldMenuSortDescendingItemLabel": "fieldMenuSortDescendingItemLabel"; "filterInputLabel": "filterInputLabel"; "filterOperatorsDropDownLabel": "filterOperatorsDropDownLabel"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "loading": "loading"; "emptyCellLabel": "emptyCellLabel"; "configuratorButtonText": "configuratorButtonText"; "configuratorHeaderText": "configuratorHeaderText"; "configuratorFieldsText": "configuratorFieldsText"; "configuratorColumnsText": "configuratorColumnsText"; "configuratorRowsText": "configuratorRowsText"; "configuratorValuesText": "configuratorValuesText"; "configuratorCancelButtonText": "configuratorCancelButtonText"; "configuratorApplyButtonText": "configuratorApplyButtonText"; "configuratorEmptyRowsText": "configuratorEmptyRowsText"; "configuratorEmptyColumnsText": "configuratorEmptyColumnsText"; "configuratorEmptyMeasuresText": "configuratorEmptyMeasuresText"; "chipMenuIconTitle": "chipMenuIconTitle"; }, {}, never>;
172
194
  }
@@ -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 { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ *
10
+ * Needed to keep the Pivot's LocalizationService reference and be able to use it inside the ChipList component.
11
+ */
12
+ export declare class PivotLocalizationService {
13
+ private localization;
14
+ constructor(localization: LocalizationService);
15
+ get(token: string): string;
16
+ get rtl(): boolean;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<PivotLocalizationService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<PivotLocalizationService>;
19
+ }
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2021 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
+ import { FilterDescriptor, SortDescriptor } from "@progress/kendo-data-query";
5
6
  import { PivotGridAxis } from "@progress/kendo-pivotgrid-common";
6
7
  /**
7
8
  * Allows customizing the PivotGrid Configurator layout.
@@ -28,5 +29,7 @@ export declare class PivotGridState {
28
29
  columnAxes?: PivotGridAxis[];
29
30
  rowAxes?: PivotGridAxis[];
30
31
  measureAxes?: PivotGridAxis[];
31
- constructor(columnAxes: PivotGridAxis[], rowAxes: PivotGridAxis[], measureAxes: PivotGridAxis[]);
32
+ sort?: SortDescriptor[];
33
+ filter?: FilterDescriptor[];
34
+ constructor(columnAxes: PivotGridAxis[], rowAxes: PivotGridAxis[], measureAxes: PivotGridAxis[], sort: SortDescriptor[], filter: FilterDescriptor[]);
32
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-pivotgrid",
3
- "version": "0.2.0-dev.202209020712",
3
+ "version": "0.2.0-dev.202209020832",
4
4
  "description": "PivotGrid package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -13,17 +13,16 @@ import * as i7 from "./configurator/draggable.directive";
13
13
  import * as i8 from "./configurator/drop-target.directive";
14
14
  import * as i9 from "./localization/localized-messages.directive";
15
15
  import * as i10 from "./localization/custom-messages.component";
16
- import * as i11 from "@angular/common";
17
- import * as i12 from "@progress/kendo-angular-common";
18
- import * as i13 from "@progress/kendo-angular-indicators";
19
- import * as i14 from "@progress/kendo-angular-buttons";
20
- import * as i15 from "@progress/kendo-angular-treeview";
21
- import * as i16 from "@progress/kendo-angular-inputs";
16
+ import * as i11 from "@progress/kendo-angular-common";
17
+ import * as i12 from "@progress/kendo-angular-indicators";
18
+ import * as i13 from "@progress/kendo-angular-treeview";
19
+ import * as i14 from "./configurator/chip-menu/chip-menu.module";
20
+ import * as i15 from "./shared.module";
22
21
  /**
23
22
  * Sample module
24
23
  */
25
24
  export declare class PivotGridModule {
26
25
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<PivotGridModule, [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridConfiguratorComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i7.DraggableChipDirective, typeof i8.DropTargetDirective, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent], [typeof i11.CommonModule, typeof i12.EventsModule, typeof i13.IndicatorsModule, typeof i14.ButtonsModule, typeof i15.TreeViewModule, typeof i16.InputsModule, typeof i12.DraggableModule], [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i10.CustomMessagesComponent]>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PivotGridModule, [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridConfiguratorComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i7.DraggableChipDirective, typeof i8.DropTargetDirective, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent], [typeof i11.EventsModule, typeof i12.IndicatorsModule, typeof i13.TreeViewModule, typeof i11.DraggableModule, typeof i14.ChipMenuModule, typeof i15.SharedModule], [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i10.CustomMessagesComponent]>;
28
27
  static ɵinj: i0.ɵɵInjectorDeclaration<PivotGridModule>;
29
28
  }
@@ -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
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "@progress/kendo-angular-dropdowns";
8
+ import * as i3 from "@progress/kendo-angular-inputs";
9
+ import * as i4 from "@progress/kendo-angular-buttons";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare class SharedModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule, typeof i2.DropDownsModule, typeof i3.InputsModule, typeof i4.ButtonsModule], [typeof i1.CommonModule, typeof i2.DropDownsModule, typeof i3.InputsModule, typeof i4.ButtonsModule]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
17
+ }
package/util.d.ts CHANGED
@@ -6,6 +6,14 @@
6
6
  * @hidden
7
7
  */
8
8
  export declare const isPresent: (value: any) => boolean;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const isBlank: (value: any) => boolean;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const isNullOrEmptyString: (value: string) => boolean;
9
17
  /**
10
18
  * @hidden
11
19
  * Returns whether two arrays contain the same values.
@@ -55,3 +63,7 @@ export declare const position: (target: any, before: any) => {
55
63
  * @hidden
56
64
  */
57
65
  export declare const filterAndMap: (arr: any[], predicate: (item: any) => boolean, mapper: (item: any) => any) => any[];
66
+ /**
67
+ * @hidden
68
+ */
69
+ export declare const replaceMessagePlaceholder: (message: string, name: string, value: string) => string;