@lumeer/pivot 0.0.1 → 0.0.2

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 (56) hide show
  1. package/esm2022/lib/directives/lmr-templates.directive.mjs +27 -0
  2. package/esm2022/lib/lmr-pivot-table.component.mjs +81 -0
  3. package/esm2022/lib/lmr-pivot-table.module.mjs +42 -0
  4. package/esm2022/lib/pipes/contrast-color.pipe.mjs +41 -0
  5. package/esm2022/lib/pipes/pivot-data-empty.pipe.mjs +38 -0
  6. package/esm2022/lib/pipes/pivot-table-value.pipe.mjs +35 -0
  7. package/esm2022/lib/util/lmr-pivot-config.mjs +12 -0
  8. package/esm2022/lib/util/lmr-pivot-constants.mjs +12 -0
  9. package/esm2022/lib/util/lmr-pivot-data.mjs +2 -0
  10. package/esm2022/lib/util/lmr-pivot-table.mjs +2 -0
  11. package/esm2022/lib/util/pivot-data-converter.mjs +502 -0
  12. package/esm2022/lib/util/pivot-table-converter.mjs +803 -0
  13. package/esm2022/lib/util/pivot-util.mjs +72 -0
  14. package/esm2022/lumeer-pivot.mjs +5 -0
  15. package/esm2022/public-api.mjs +11 -0
  16. package/fesm2022/lumeer-pivot.mjs +1644 -0
  17. package/fesm2022/lumeer-pivot.mjs.map +1 -0
  18. package/index.d.ts +5 -0
  19. package/lib/directives/lmr-templates.directive.d.ts +14 -0
  20. package/lib/lmr-pivot-table.component.d.ts +31 -0
  21. package/lib/lmr-pivot-table.module.d.ts +12 -0
  22. package/lib/pipes/contrast-color.pipe.d.ts +11 -0
  23. package/lib/pipes/pivot-data-empty.pipe.d.ts +8 -0
  24. package/lib/pipes/pivot-table-value.pipe.d.ts +8 -0
  25. package/lib/util/lmr-pivot-config.d.ts +57 -0
  26. package/lib/util/lmr-pivot-constants.d.ts +11 -0
  27. package/lib/util/lmr-pivot-data.d.ts +34 -0
  28. package/lib/util/lmr-pivot-table.d.ts +18 -0
  29. package/lib/util/pivot-data-converter.d.ts +46 -0
  30. package/lib/util/pivot-table-converter.d.ts +62 -0
  31. package/lib/util/pivot-util.d.ts +12 -0
  32. package/lumeer-pivot-0.0.2.tgz +0 -0
  33. package/package.json +16 -3
  34. package/{src/public-api.ts → public-api.d.ts} +0 -4
  35. package/.eslintrc.json +0 -35
  36. package/ng-package.json +0 -7
  37. package/src/lib/directives/lmr-templates.directive.ts +0 -11
  38. package/src/lib/lmr-pivot-table.component.html +0 -69
  39. package/src/lib/lmr-pivot-table.component.scss +0 -69
  40. package/src/lib/lmr-pivot-table.component.ts +0 -108
  41. package/src/lib/lmr-pivot-table.module.ts +0 -28
  42. package/src/lib/pipes/contrast-color.pipe.ts +0 -33
  43. package/src/lib/pipes/pivot-data-empty.pipe.ts +0 -36
  44. package/src/lib/pipes/pivot-table-value.pipe.ts +0 -32
  45. package/src/lib/util/lmr-pivot-config.ts +0 -68
  46. package/src/lib/util/lmr-pivot-constants.ts +0 -13
  47. package/src/lib/util/lmr-pivot-data.ts +0 -57
  48. package/src/lib/util/lmr-pivot-table.ts +0 -38
  49. package/src/lib/util/pivot-data-converter.spec.ts +0 -647
  50. package/src/lib/util/pivot-data-converter.ts +0 -803
  51. package/src/lib/util/pivot-table-converter.spec.ts +0 -1045
  52. package/src/lib/util/pivot-table-converter.ts +0 -1118
  53. package/src/lib/util/pivot-util.ts +0 -92
  54. package/tsconfig.lib.json +0 -14
  55. package/tsconfig.lib.prod.json +0 -10
  56. package/tsconfig.spec.json +0 -14
@@ -1,57 +0,0 @@
1
- /*
2
- * Lumeer: Modern Data Definition and Processing Platform
3
- *
4
- * Copyright (C) since 2017 Lumeer.io, s.r.o. and/or its affiliates.
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
- */
19
- import {Constraint, ConstraintData, DataAggregationType, DataResource} from '@lumeer/data-filters';
20
- import {LmrPivotSort, LmrPivotValueType} from './lmr-pivot-config';
21
-
22
- export interface LmrPivotData {
23
- data: LmrPivotStemData[];
24
-
25
- constraintData?: ConstraintData;
26
- mergeTables?: boolean;
27
- ableToMerge?: boolean;
28
- }
29
-
30
- export interface LmrPivotStemData {
31
- columnHeaders: LmrPivotDataHeader[];
32
- rowHeaders: LmrPivotDataHeader[];
33
- valueTitles: string[];
34
- values: any[][];
35
- dataResources: DataResource[][][];
36
- valuesConstraints?: Constraint[];
37
- valueTypes?: LmrPivotValueType[];
38
- valueAggregations?: DataAggregationType[];
39
-
40
- rowShowSums: boolean[];
41
- rowSticky: boolean[];
42
- rowSorts?: LmrPivotSort[];
43
- columnShowSums: boolean[];
44
- columnSticky: boolean[];
45
- columnSorts?: LmrPivotSort[];
46
- hasAdditionalColumnLevel?: boolean;
47
- }
48
-
49
- export interface LmrPivotDataHeader {
50
- title: string;
51
- children?: LmrPivotDataHeader[];
52
- targetIndex?: number;
53
- color: string;
54
- isValueHeader: boolean;
55
- constraint?: Constraint;
56
- attributeName?: string;
57
- }
@@ -1,38 +0,0 @@
1
- /*
2
- * Lumeer: Modern Data Definition and Processing Platform
3
- *
4
- * Copyright (C) since 2017 Lumeer.io, s.r.o. and/or its affiliates.
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
- */
19
- import {Constraint, DataResource} from '@lumeer/data-filters';
20
-
21
- export interface LmrPivotTable {
22
- cells: LmrPivotTableCell[][];
23
- }
24
-
25
- export interface LmrPivotTableCell {
26
- value: any;
27
- dataResources?: DataResource[];
28
- constraint?: Constraint;
29
- summary?: string;
30
- rowSpan: number;
31
- colSpan: number;
32
- cssClass: string;
33
- isHeader: boolean;
34
- background?: string;
35
- label?: string;
36
- stickyTop?: boolean;
37
- stickyStart?: boolean;
38
- }