@platforma-sdk/ui-vue 1.20.0 → 1.20.4
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/CHANGELOG.md +13 -0
- package/dist/lib.js +2497 -2490
- package/dist/lib.umd.cjs +11 -11
- package/dist/src/components/PlAgDataTable/sources/table-source-heterogeneous.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/components/PlAgDataTable/sources/table-source-heterogeneous.ts +6 -6
- package/src/components/PlAgDataTable/sources/table-source.ts +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/ui-vue",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/lib.umd.cjs",
|
|
6
6
|
"module": "dist/lib.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@ag-grid-community/theming": "^32.3.3",
|
|
38
38
|
"@ag-grid-enterprise/side-bar": "^32.3.3",
|
|
39
39
|
"@ag-grid-enterprise/column-tool-panel": "^32.3.3",
|
|
40
|
-
"@milaboratories/uikit": "^2.2.
|
|
40
|
+
"@milaboratories/uikit": "^2.2.33",
|
|
41
41
|
"@platforma-sdk/model": "^1.20.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"yarpm": "^1.2.0",
|
|
59
59
|
"semver": "^7.6.3",
|
|
60
60
|
"@types/semver": "^7.5.8",
|
|
61
|
-
"@milaboratories/
|
|
62
|
-
"@milaboratories/
|
|
61
|
+
"@milaboratories/helpers": "^1.6.10",
|
|
62
|
+
"@milaboratories/eslint-config": "^1.0.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"test": "vitest run --passWithNoTests",
|
|
@@ -57,7 +57,7 @@ export function getHeterogeneousColumns(specs: PTableColumnSpec[], indices: numb
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// auxiliary function to get a field for i-th axis-value
|
|
60
|
-
const hColumnField = (originalLength: number, i: number) =>
|
|
60
|
+
const hColumnField = (originalLength: number, i: number) => 'hC' + (originalLength + i).toString();
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Calculate GridOptions for p-table data source type
|
|
@@ -77,11 +77,11 @@ export function updatePFrameGridOptionsHeterogeneousAxes(
|
|
|
77
77
|
fields: number[],
|
|
78
78
|
indices: number[],
|
|
79
79
|
): {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} {
|
|
80
|
+
columnDefs: ColDef[];
|
|
81
|
+
serverSideDatasource?: IServerSideDatasource;
|
|
82
|
+
rowModelType: RowModelType;
|
|
83
|
+
rowData?: unknown[];
|
|
84
|
+
} {
|
|
85
85
|
// recalculate indices of h-cols to the positions in the resulting data
|
|
86
86
|
// index of axis & column in indices array
|
|
87
87
|
let axisIdx: number = -1;
|
|
@@ -140,11 +140,11 @@ export async function updatePFrameGridOptions(
|
|
|
140
140
|
hiddenColIds?: string[],
|
|
141
141
|
showCellButtonForAxisId?: AxisId,
|
|
142
142
|
): Promise<{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}> {
|
|
143
|
+
columnDefs: ColDef[];
|
|
144
|
+
serverSideDatasource?: IServerSideDatasource;
|
|
145
|
+
rowModelType: RowModelType;
|
|
146
|
+
rowData?: unknown[];
|
|
147
|
+
}> {
|
|
148
148
|
const specs = await pfDriver.getSpec(pt);
|
|
149
149
|
|
|
150
150
|
let numberOfAxes = specs.findIndex((s) => s.type === 'column');
|
|
@@ -157,11 +157,11 @@ export async function updatePFrameGridOptions(
|
|
|
157
157
|
!lodash.some(
|
|
158
158
|
sheets,
|
|
159
159
|
(sheet) =>
|
|
160
|
-
lodash.isEqual(getAxisId(sheet.axis), specs[i].id)
|
|
161
|
-
(specs[i].type === 'column'
|
|
162
|
-
specs[i].spec.name === 'pl7.app/label'
|
|
163
|
-
specs[i].spec.axesSpec.length === 1
|
|
164
|
-
lodash.isEqual(getAxisId(sheet.axis), getAxisId(specs[i].spec.axesSpec[0]))),
|
|
160
|
+
lodash.isEqual(getAxisId(sheet.axis), specs[i].id)
|
|
161
|
+
|| (specs[i].type === 'column'
|
|
162
|
+
&& specs[i].spec.name === 'pl7.app/label'
|
|
163
|
+
&& specs[i].spec.axesSpec.length === 1
|
|
164
|
+
&& lodash.isEqual(getAxisId(sheet.axis), getAxisId(specs[i].spec.axesSpec[0]))),
|
|
165
165
|
),
|
|
166
166
|
)
|
|
167
167
|
.sort((a, b) => {
|