@lumeer/pivot 0.0.1 → 0.0.3
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/esm2022/lib/directives/lmr-templates.directive.mjs +27 -0
- package/esm2022/lib/lmr-pivot-table.component.mjs +81 -0
- package/esm2022/lib/lmr-pivot-table.module.mjs +42 -0
- package/esm2022/lib/pipes/contrast-color.pipe.mjs +41 -0
- package/esm2022/lib/pipes/pivot-data-empty.pipe.mjs +38 -0
- package/esm2022/lib/pipes/pivot-table-value.pipe.mjs +35 -0
- package/esm2022/lib/util/lmr-pivot-config.mjs +12 -0
- package/esm2022/lib/util/lmr-pivot-constants.mjs +12 -0
- package/esm2022/lib/util/lmr-pivot-data.mjs +2 -0
- package/esm2022/lib/util/lmr-pivot-table.mjs +2 -0
- package/esm2022/lib/util/pivot-data-converter.mjs +502 -0
- package/esm2022/lib/util/pivot-table-converter.mjs +803 -0
- package/esm2022/lib/util/pivot-util.mjs +72 -0
- package/esm2022/lumeer-pivot.mjs +5 -0
- package/esm2022/public-api.mjs +11 -0
- package/fesm2022/lumeer-pivot.mjs +1644 -0
- package/fesm2022/lumeer-pivot.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/directives/lmr-templates.directive.d.ts +14 -0
- package/lib/lmr-pivot-table.component.d.ts +31 -0
- package/lib/lmr-pivot-table.module.d.ts +12 -0
- package/lib/pipes/contrast-color.pipe.d.ts +11 -0
- package/lib/pipes/pivot-data-empty.pipe.d.ts +8 -0
- package/lib/pipes/pivot-table-value.pipe.d.ts +8 -0
- package/lib/util/lmr-pivot-config.d.ts +57 -0
- package/lib/util/lmr-pivot-constants.d.ts +11 -0
- package/lib/util/lmr-pivot-data.d.ts +34 -0
- package/lib/util/lmr-pivot-table.d.ts +18 -0
- package/lib/util/pivot-data-converter.d.ts +46 -0
- package/lib/util/pivot-table-converter.d.ts +62 -0
- package/lib/util/pivot-util.d.ts +12 -0
- package/lumeer-pivot-0.0.3.tgz +0 -0
- package/package.json +17 -4
- package/{src/public-api.ts → public-api.d.ts} +0 -4
- package/.eslintrc.json +0 -35
- package/ng-package.json +0 -7
- package/src/lib/directives/lmr-templates.directive.ts +0 -11
- package/src/lib/lmr-pivot-table.component.html +0 -69
- package/src/lib/lmr-pivot-table.component.scss +0 -69
- package/src/lib/lmr-pivot-table.component.ts +0 -108
- package/src/lib/lmr-pivot-table.module.ts +0 -28
- package/src/lib/pipes/contrast-color.pipe.ts +0 -33
- package/src/lib/pipes/pivot-data-empty.pipe.ts +0 -36
- package/src/lib/pipes/pivot-table-value.pipe.ts +0 -32
- package/src/lib/util/lmr-pivot-config.ts +0 -68
- package/src/lib/util/lmr-pivot-constants.ts +0 -13
- package/src/lib/util/lmr-pivot-data.ts +0 -57
- package/src/lib/util/lmr-pivot-table.ts +0 -38
- package/src/lib/util/pivot-data-converter.spec.ts +0 -647
- package/src/lib/util/pivot-data-converter.ts +0 -803
- package/src/lib/util/pivot-table-converter.spec.ts +0 -1045
- package/src/lib/util/pivot-table-converter.ts +0 -1118
- package/src/lib/util/pivot-util.ts +0 -92
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const COLOR_GRAY100 = '#f8f9fa';
|
|
2
|
-
export const COLOR_GRAY200 = '#ecf0f1';
|
|
3
|
-
export const COLOR_GRAY300 = '#dee2e6';
|
|
4
|
-
export const COLOR_GRAY400 = '#ced4da';
|
|
5
|
-
export const COLOR_GRAY500 = '#b4bcc2';
|
|
6
|
-
export const COLOR_GRAY600 = '#95a5a6';
|
|
7
|
-
export const COLOR_GRAY700 = '#7b8a8b';
|
|
8
|
-
export const COLOR_GRAY800 = '#343a40';
|
|
9
|
-
export const COLOR_GRAY900 = '#212529';
|
|
10
|
-
|
|
11
|
-
export const COLOR_PRIMARY = '#253746';
|
|
12
|
-
|
|
13
|
-
export const COLOR_LIGHT = COLOR_GRAY200;
|
|
@@ -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
|
-
}
|