@platforma-sdk/ui-vue 1.15.4 → 1.16.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.
- package/CHANGELOG.md +6 -0
- package/dist/lib.js +7001 -7133
- package/dist/lib.umd.cjs +26 -26
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts +2 -2
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgOverlayLoading.vue.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/PlAgOverlayLoading.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/row-number.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts +1 -3
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/types.d.ts +3 -14
- package/dist/src/components/PlAgDataTable/types.d.ts.map +1 -1
- package/dist/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts.map +1 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/assets/ui.scss +5 -1
- package/src/components/PlAgDataTable/PlAgDataTable.vue +94 -199
- package/src/components/PlAgDataTable/PlAgOverlayLoading.vue +2 -2
- package/src/components/PlAgDataTable/sources/row-number.ts +25 -10
- package/src/components/PlAgDataTable/sources/table-source.ts +16 -138
- package/src/components/PlAgDataTable/types.ts +2 -19
- package/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue +24 -21
- package/src/lib.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlDataTableState, type PTableColumnSpec } from '@platforma-sdk/model';
|
|
2
2
|
import type { PlDataTableSettings } from './types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
settings
|
|
4
|
+
settings?: Readonly<PlDataTableSettings>;
|
|
5
5
|
/**
|
|
6
6
|
* The showColumnsPanel prop controls the display of a button that activates
|
|
7
7
|
* the columns management panel in the table. To make the button functional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlAgDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTable.vue"],"names":[],"mappings":"AAueA,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EAA2B,mBAAmB,EAAoB,MAAM,SAAS,CAAC;AAgB9F,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACzC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AA6WF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC7B,GAAG,WAAW,CAAC;;;;;;;;;;;;AA4MhB,wBASG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
params: {
|
|
3
|
-
notReady: boolean
|
|
3
|
+
notReady: Readonly<boolean>;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgOverlayLoading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgOverlayLoading.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PlAgOverlayLoading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgOverlayLoading.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;;AAsEF,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-number.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/row-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAqB,MAAM,yBAAyB,CAAC;AAGlF,eAAO,MAAM,2BAA2B,8BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"row-number.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/row-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAqB,MAAM,yBAAyB,CAAC;AAGlF,eAAO,MAAM,2BAA2B,8BAA4B,CAAC;AAIrE,wBAAgB,mBAAmB,IAAI,MAAM,CA6B5C;AA+CD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,QAuBvD"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { ColDef, IServerSideDatasource, RowModelType } from '@ag-grid-community/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PlDataTableSheet } from '@platforma-sdk/model';
|
|
3
3
|
import { type PFrameDriver, type PTableColumnSpec, type PTableHandle } from '@platforma-sdk/model';
|
|
4
4
|
/**
|
|
5
5
|
* Extract `PTableColumnId` from colId string
|
|
6
6
|
*/
|
|
7
7
|
export declare function parseColId(str: string): PTableColumnSpec;
|
|
8
8
|
export declare const defaultValueFormatter: (value: any) => any;
|
|
9
|
-
export declare function enrichJoinWithLabelColumns(pfDriver: PFrameDriver, pFrame: PFrameHandle, join: JoinEntry<PColumnIdAndSpec>): Promise<JoinEntry<PColumnIdAndSpec>>;
|
|
10
|
-
export declare function makeSheets(pfDriver: PFrameDriver, pFrameHandle: PFrameHandle, sheetAxes: AxisId[], join: JoinEntry<PColumnIdAndSpec>): Promise<PlDataTableSheet[]>;
|
|
11
9
|
/**
|
|
12
10
|
* Calculate GridOptions for p-table data source type
|
|
13
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-source.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/table-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAA4B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"table-source.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/table-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAA4B,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EAOlB,MAAM,sBAAsB,CAAC;AAe9B;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GACV,gBAAgB,CAC3C;AAID,eAAO,MAAM,qBAAqB,UAAW,GAAG,QAU/C,CAAC;AA0GF;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,YAAY,EACtB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,gBAAgB,EAAE,EAC1B,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC;IACT,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC,CA8JD"}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalBlobHandleAndSize, PlDataTableSheet, PlTableFilter, PlTableFilterType, PTableColumnId, PTableHandle, RemoteBlobHandleAndSize } from '@platforma-sdk/model';
|
|
2
2
|
/** Data table settings */
|
|
3
3
|
export type PlDataTableSettings = {
|
|
4
|
-
/** The type of the source to feed the data into the table */
|
|
5
|
-
sourceType: 'pframe';
|
|
6
|
-
/** PFrame handle output */
|
|
7
|
-
pFrame: PFrameHandle | undefined;
|
|
8
|
-
/** Join used to construct pTable, will be enriched with label-columns */
|
|
9
|
-
join: JoinEntry<PColumnIdAndSpec> | undefined;
|
|
10
|
-
/** Partitioning axes to make sheets */
|
|
11
|
-
sheetAxes: AxisId[];
|
|
12
|
-
/** PTable handle output */
|
|
13
|
-
pTable: PTableHandle | undefined;
|
|
14
|
-
} | {
|
|
15
4
|
/** The type of the source to feed the data into the table */
|
|
16
5
|
sourceType: 'ptable';
|
|
17
6
|
/** PTable handle output */
|
|
18
|
-
pTable
|
|
7
|
+
pTable?: PTableHandle;
|
|
19
8
|
/** Sheets that we want to show in our table */
|
|
20
9
|
sheets?: PlDataTableSheet[];
|
|
21
10
|
} | {
|
|
22
11
|
/** The type of the source to feed the data into the table */
|
|
23
12
|
sourceType: 'xsv';
|
|
24
|
-
xsvFile
|
|
13
|
+
xsvFile?: LocalBlobHandleAndSize | RemoteBlobHandleAndSize;
|
|
25
14
|
};
|
|
26
15
|
/** PlTableFilters restriction entry */
|
|
27
16
|
export type PlTableFiltersRestriction = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAE9B,0BAA0B;AAC1B,MAAM,MAAM,mBAAmB,GAC3B;IACE,6DAA6D;IAC7D,UAAU,EAAE,QAAQ,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B,GACD;IACE,6DAA6D;IAC7D,UAAU,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,sBAAsB,GAAG,uBAAuB,CAAC;CAC5D,CAAC;AAEN,uCAAuC;AACvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,qEAAqE;IACrE,MAAM,EAAE,cAAc,CAAC;IACvB,oDAAoD;IACpD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC,CAAC;AAEF,4CAA4C;AAC5C,MAAM,MAAM,qBAAqB,GAAG;IAClC,uDAAuD;IACvD,MAAM,EAAE,cAAc,CAAC;IACvB,mBAAmB;IACnB,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,6DAA6D;AAC7D,MAAM,MAAM,uBAAuB,GAAG;IACpC,oCAAoC;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAwB;AACxB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,OAAO,EAAE,CAAC;IACf,CAAC,KAAK,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;CAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlAgGridColumnManager.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"PlAgGridColumnManager.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue"],"names":[],"mappings":"AAAA,OA8FO,KAAK,EAAU,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,kCAAkC,CAAC;AAM1C,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;;AAyMF,wBAOG"}
|
package/dist/src/lib.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { BlockLayout, PlAgDataTable, PlAgOverlayLoading, PlAgOverlayNoRows, Valu
|
|
|
8
8
|
export * from './components/PlAgColumnHeader';
|
|
9
9
|
export * from './components/PlAgCellFile';
|
|
10
10
|
export * from './components/PlAgDataTable/types';
|
|
11
|
+
export * from './components/PlAgDataTable/sources/row-number';
|
|
11
12
|
export * from './components/PlAgTextAndButtonCell';
|
|
12
13
|
export * from './components/PlAgGridColumnManager';
|
|
13
14
|
export * from './components/PlTableFilters';
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,kBAAkB,MAAM,mDAAmD,CAAC;AACnF,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,sBAAsB,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,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