@progress/kendo-angular-pivotgrid 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +31 -0
  4. package/bundles/kendo-angular-pivotgrid.umd.js +5 -0
  5. package/data-binding/base-binding-directive.d.ts +38 -0
  6. package/data-binding/local-binding.directive.d.ts +35 -0
  7. package/data-binding/olap-binding.directive.d.ts +30 -0
  8. package/data-binding/pivotgrid-data.service.d.ts +38 -0
  9. package/esm2015/data-binding/base-binding-directive.js +81 -0
  10. package/esm2015/data-binding/local-binding.directive.js +66 -0
  11. package/esm2015/data-binding/olap-binding.directive.js +57 -0
  12. package/esm2015/data-binding/pivotgrid-data.service.js +42 -0
  13. package/esm2015/kendo-angular-pivotgrid.js +8 -0
  14. package/esm2015/main.js +14 -0
  15. package/esm2015/models/expanded-state-action.js +5 -0
  16. package/esm2015/models/loader-settings.js +5 -0
  17. package/esm2015/package-metadata.js +15 -0
  18. package/esm2015/pivotgrid.component.js +152 -0
  19. package/esm2015/pivotgrid.module.js +60 -0
  20. package/esm2015/rendering/pivotgrid-cell.directive.js +90 -0
  21. package/esm2015/rendering/pivotgrid-table.component.js +89 -0
  22. package/esm2015/util.js +49 -0
  23. package/fesm2015/kendo-angular-pivotgrid.js +639 -0
  24. package/kendo-angular-pivotgrid.d.ts +9 -0
  25. package/main.d.ts +11 -0
  26. package/models/expanded-state-action.d.ts +16 -0
  27. package/models/loader-settings.d.ts +47 -0
  28. package/package-metadata.d.ts +9 -0
  29. package/package.json +86 -0
  30. package/pivotgrid.component.d.ts +39 -0
  31. package/pivotgrid.module.d.ts +21 -0
  32. package/rendering/pivotgrid-cell.directive.d.ts +26 -0
  33. package/rendering/pivotgrid-table.component.d.ts +22 -0
  34. package/schematics/collection.json +12 -0
  35. package/schematics/ngAdd/index.js +17 -0
  36. package/schematics/ngAdd/index.js.map +1 -0
  37. package/schematics/ngAdd/schema.json +28 -0
  38. package/util.d.ts +18 -0
@@ -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 { LoaderSize as LoaderSizeSource, LoaderThemeColor as LoaderThemeColorSource, LoaderType as LoaderTypeSource } from '@progress/kendo-angular-indicators';
6
+ /**
7
+ * Specifies the size of the PivotGrid's loader.
8
+ *
9
+ * The available values are:
10
+ * * `small`
11
+ * * `medium`
12
+ * * `large`(Default)
13
+ */
14
+ export declare type LoaderSize = Partial<LoaderSizeSource>;
15
+ /**
16
+ * Specifies the theme color of the PivotGrid's loader.
17
+ *
18
+ * The available values are:
19
+ * * `primary`(Default)&mdash;Applies coloring based on primary theme color.
20
+ * * `secondary`&mdash;Applies coloring based on secondary theme color.
21
+ * * `tertiary`&mdash;Applies coloring based on tertiary theme color.
22
+ * * `info`&mdash;Applies coloring based on info theme color.
23
+ * * `success`&mdash;Applies coloring based on success theme color.
24
+ * * `warning`&mdash;Applies coloring based on warning theme color.
25
+ * * `error`&mdash;Applies coloring based on error theme color.
26
+ * * `dark`&mdash;Applies coloring based on dark theme color.
27
+ * * `light`&mdash;Applies coloring based on light theme color.
28
+ * * `inverse`&mdash;Applies coloring based on inverted theme color.
29
+ */
30
+ export declare type LoaderThemeColor = Partial<LoaderThemeColorSource>;
31
+ /**
32
+ * Specifies the theme color of the PivotGrid's loader.
33
+ *
34
+ * The available values are:
35
+ * * `pulsing`
36
+ * * `infinite-spinner`
37
+ * * `converging-spinner`(Default)
38
+ */
39
+ export declare type LoaderType = Partial<LoaderTypeSource>;
40
+ /**
41
+ * Specifies the type, size and color of the PivotGrid's loader.
42
+ */
43
+ export interface LoaderSettings {
44
+ size: LoaderSize;
45
+ themeColor: LoaderThemeColor;
46
+ type: LoaderType;
47
+ }
@@ -0,0 +1,9 @@
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 { PackageMetadata } from '@progress/kendo-licensing';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const packageMetadata: PackageMetadata;
package/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "@progress/kendo-angular-pivotgrid",
3
+ "version": "0.1.0",
4
+ "description": "PivotGrid package for Angular",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
+ "author": "Progress",
7
+ "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/telerik/kendo-angular-pivotgrid.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/telerik/kendo-angular"
14
+ },
15
+ "keywords": [
16
+ "Angular",
17
+ "PivotGrid",
18
+ "Kendo UI"
19
+ ],
20
+ "@progress": {
21
+ "friendlyName": "PivotGrid"
22
+ },
23
+ "dependencies": {
24
+ "@progress/kendo-pivotgrid-common": "0.2.1",
25
+ "@progress/kendo-schematics": "^2.0.0",
26
+ "tslib": "^2.3.1"
27
+ },
28
+ "peerDependencies": {
29
+ "@angular/animations": "12 - 14",
30
+ "@angular/common": "12 - 14",
31
+ "@angular/core": "12 - 14",
32
+ "@angular/forms": "12 - 14",
33
+ "@progress/kendo-angular-common": "^3.0.0",
34
+ "@progress/kendo-data-query": "^1.5.5",
35
+ "@progress/kendo-angular-indicators": "^2.0.0",
36
+ "@progress/kendo-angular-intl": "^4.0.0",
37
+ "@progress/kendo-angular-l10n": "^4.0.0",
38
+ "@progress/kendo-licensing": "^1.0.0",
39
+ "rxjs": "^6.5.3 || ^7.0.0"
40
+ },
41
+ "config": {
42
+ "commitizen": {
43
+ "path": "./node_modules/cz-conventional-changelog"
44
+ },
45
+ "ghooks": {
46
+ "commit-msg": "validate-commit-msg"
47
+ },
48
+ "validate-commit-msg": {
49
+ "types": [
50
+ "feat",
51
+ "fix",
52
+ "docs",
53
+ "style",
54
+ "refactor",
55
+ "perf",
56
+ "test",
57
+ "chore",
58
+ "revert"
59
+ ],
60
+ "warnOnFail": false,
61
+ "maxSubjectLength": 100
62
+ }
63
+ },
64
+ "schematics": "./schematics/collection.json",
65
+ "release": {
66
+ "debug": false,
67
+ "branchTags": {
68
+ "develop": "dev"
69
+ },
70
+ "fallbackTags": {
71
+ "dev": "latest"
72
+ },
73
+ "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
74
+ "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
75
+ "getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
76
+ "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
77
+ "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
78
+ },
79
+ "main": "bundles/kendo-angular-pivotgrid.umd.js",
80
+ "module": "fesm2015/kendo-angular-pivotgrid.js",
81
+ "es2015": "fesm2015/kendo-angular-pivotgrid.js",
82
+ "esm2015": "esm2015/kendo-angular-pivotgrid.js",
83
+ "fesm2015": "fesm2015/kendo-angular-pivotgrid.js",
84
+ "typings": "kendo-angular-pivotgrid.d.ts",
85
+ "sideEffects": false
86
+ }
@@ -0,0 +1,39 @@
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 { AfterContentInit, AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
6
+ import { PivotGridDataService } from './data-binding/pivotgrid-data.service';
7
+ import { LoaderSettings } from './models/loader-settings';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * A sample component
11
+ */
12
+ export declare class PivotGridComponent implements AfterViewInit, AfterContentInit, OnDestroy {
13
+ private hostEl;
14
+ private zone;
15
+ private dataService;
16
+ hostClass: boolean;
17
+ get scrollbarWidth(): string;
18
+ /**
19
+ * Specify the type, size and color of the PivotGrid's loader.
20
+ *
21
+ * The default settings are:
22
+ * * type: `converging-spinner`
23
+ * * color: `primary`
24
+ * * size: `large`
25
+ */
26
+ set loaderSettings(settings: LoaderSettings);
27
+ get loaderSettings(): LoaderSettings;
28
+ loading: boolean;
29
+ private resizeObservers;
30
+ private _loaderSettings;
31
+ private loadingSubscription;
32
+ constructor(hostEl: ElementRef, zone: NgZone, dataService: PivotGridDataService);
33
+ ngAfterViewInit(): void;
34
+ ngAfterContentInit(): void;
35
+ ngOnDestroy(): void;
36
+ private resizeContainer;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "kendo-pivotgrid", never, { "loaderSettings": "loaderSettings"; }, {}, never, never>;
39
+ }
@@ -0,0 +1,21 @@
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 "./pivotgrid.component";
7
+ import * as i2 from "./rendering/pivotgrid-table.component";
8
+ import * as i3 from "./rendering/pivotgrid-cell.directive";
9
+ import * as i4 from "./data-binding/local-binding.directive";
10
+ import * as i5 from "./data-binding/olap-binding.directive";
11
+ import * as i6 from "@angular/common";
12
+ import * as i7 from "@progress/kendo-angular-common";
13
+ import * as i8 from "@progress/kendo-angular-indicators";
14
+ /**
15
+ * Sample module
16
+ */
17
+ export declare class PivotGridModule {
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridModule, never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PivotGridModule, [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridCellDirective, typeof i4.PivotLocalBindingDirective, typeof i5.PivotOLAPBindingDirective], [typeof i6.CommonModule, typeof i7.EventsModule, typeof i8.IndicatorsModule], [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridCellDirective, typeof i4.PivotLocalBindingDirective, typeof i5.PivotOLAPBindingDirective]>;
20
+ static ɵinj: i0.ɵɵInjectorDeclaration<PivotGridModule>;
21
+ }
@@ -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 { ElementRef, Renderer2 } from '@angular/core';
6
+ import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class PivotGridCellDirective {
12
+ private hostEl;
13
+ private renderer;
14
+ private dataService;
15
+ cellClass: boolean;
16
+ kendoPivotGridCell: any;
17
+ tableType: string;
18
+ rowIndex: number;
19
+ colIndex: number;
20
+ get expanded(): boolean;
21
+ constructor(hostEl: ElementRef, renderer: Renderer2, dataService: PivotGridDataService);
22
+ ngOnInit(): void;
23
+ handleClick: () => void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridCellDirective, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridCellDirective, "[kendoPivotGridCell]", never, { "kendoPivotGridCell": "kendoPivotGridCell"; "tableType": "tableType"; "rowIndex": "rowIndex"; "colIndex": "colIndex"; }, {}, never, never>;
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 { OnInit } from '@angular/core';
6
+ import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class PivotGridTableComponent implements OnInit {
12
+ private dataService;
13
+ headerItems: any;
14
+ rows: any;
15
+ tableType: string;
16
+ private dataChangeSubs;
17
+ constructor(dataService: PivotGridDataService);
18
+ ngOnInit(): void;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridTableComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridTableComponent, "kendo-pivotgrid-table", never, { "tableType": "tableType"; }, {}, never, never>;
22
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Adds Kendo Angular Package to the application.",
6
+ "factory": "./ngAdd",
7
+ "schema": "./ngAdd/schema.json",
8
+ "hidden": true,
9
+ "private": true
10
+ }
11
+ }
12
+ }
@@ -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
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const schematics_1 = require("@angular-devkit/schematics");
8
+ function default_1(options) {
9
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PivotGridModule', package: 'pivotgrid',
10
+ // Additional dependencies to install.
11
+ // See https://github.com/telerik/kendo-schematics/issues/28
12
+ peerDependencies: {
13
+ // "@progress/kendo-angular-foo": "^1.0.0"
14
+ } });
15
+ return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
16
+ }
17
+ exports.default = default_1;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAGqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,iBAAiB,EAC/B,OAAO,EAAE,WAAW;QACpB,sCAAsC;QACtC,4DAA4D;QAC5D,gBAAgB,EAAE;QACd,0CAA0C;SAC7C,GACJ,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAbD,4BAaC"}
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsKendoAngularPivotGrid",
4
+ "title": "Kendo Angular PivotGrid Options Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "theme": {
8
+ "enum": [
9
+ "default",
10
+ "bootstrap",
11
+ "material"
12
+ ],
13
+ "default": "default",
14
+ "description": "The theme to apply"
15
+ },
16
+ "export": {
17
+ "type": "boolean",
18
+ "default": false,
19
+ "description": "Specifies if declaring module exports the component."
20
+ },
21
+ "skipInstall": {
22
+ "description": "Skip installing Kendo dependency packages.",
23
+ "type": "boolean",
24
+ "default": false
25
+ }
26
+ },
27
+ "required": []
28
+ }
package/util.d.ts ADDED
@@ -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
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const scrollbarWidth: () => number;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const isPresent: (value: any) => boolean;
13
+ /**
14
+ * @hidden
15
+ * Returns whether two arrays contain the same values.
16
+ * Assumes array elements are primitive types
17
+ */
18
+ export declare const areSameArrays: (a1: any[], a2: any[]) => boolean;