@platforma-sdk/ui-vue 1.29.9 → 1.29.13
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 +18 -0
- package/dist/lib.js +9477 -9003
- package/dist/lib.js.map +1 -1
- package/dist/lib.umd.cjs +27 -27
- package/dist/lib.umd.cjs.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts +78 -0
- package/dist/src/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -0
- package/dist/src/components/PlAgDataTable/index.d.ts +1 -0
- package/dist/src/components/PlAgDataTable/index.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/common.d.ts +21 -0
- package/dist/src/components/PlAgDataTable/sources/common.d.ts.map +1 -0
- package/dist/src/components/PlAgDataTable/sources/table-source-v2.d.ts +16 -0
- package/dist/src/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -0
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts +4 -15
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/types.d.ts +14 -2
- package/dist/src/components/PlAgDataTable/types.d.ts.map +1 -1
- package/dist/src/lib.d.ts +2 -1
- 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 +3 -3
- package/src/components/PlAgDataTable/PlAgDataTable.vue +10 -6
- package/src/components/PlAgDataTable/PlAgDataTableV2.vue +539 -0
- package/src/components/PlAgDataTable/index.ts +1 -0
- package/src/components/PlAgDataTable/sources/common.ts +127 -0
- package/src/components/PlAgDataTable/sources/table-source-heterogeneous.ts +2 -2
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +260 -0
- package/src/components/PlAgDataTable/sources/table-source.ts +2 -115
- package/src/components/PlAgDataTable/types.ts +19 -1
- package/src/lib.ts +2 -1
|
@@ -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":"AAykBA,OAAO,EAIL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAItB,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAA2B,mBAAmB,EAAoB,YAAY,EAA6B,MAAM,SAAS,CAAC;AAkBvI,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IACzC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;SAMK;IACL,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AAiaF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;iCATZ,GAAG;gCACJ,GAAG;;;;EAavC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type AxisId, type PlDataTableState, type PTableColumnSpec } from '@platforma-sdk/model';
|
|
2
|
+
import type { PlAgDataTableSettings, PTableRowKey } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
settings?: Readonly<PlAgDataTableSettings>;
|
|
5
|
+
/**
|
|
6
|
+
* The showColumnsPanel prop controls the display of a button that activates
|
|
7
|
+
* the columns management panel in the table. To make the button functional
|
|
8
|
+
* and visible, you must also include the PlAgDataTableToolsPanel component in your layout.
|
|
9
|
+
* This component serves as the target for teleporting the button.
|
|
10
|
+
*/
|
|
11
|
+
showColumnsPanel?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Css width of the Column Manager (Panel) modal (default value is `368px`)
|
|
14
|
+
*/
|
|
15
|
+
columnsPanelWidth?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The showExportButton prop controls the display of a button that allows
|
|
18
|
+
* to export table data in CSV format. To make the button functional
|
|
19
|
+
* and visible, you must also include the PlAgDataTableToolsPanel component in your layout.
|
|
20
|
+
* This component serves as the target for teleporting the button.
|
|
21
|
+
*/
|
|
22
|
+
showExportButton?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Force use of client-side row model.
|
|
25
|
+
* Required for reliable work of focusRow.
|
|
26
|
+
* Auto-enabled when selectedRows provided.
|
|
27
|
+
*/
|
|
28
|
+
clientSideModel?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The AxisId property is used to configure and display the PlAgTextAndButtonCell component
|
|
31
|
+
*/
|
|
32
|
+
showCellButtonForAxisId?: AxisId;
|
|
33
|
+
/**
|
|
34
|
+
* If cellButtonInvokeRowsOnDoubleClick = true, clicking a button inside the row
|
|
35
|
+
* triggers the doubleClick event for the entire row.
|
|
36
|
+
*
|
|
37
|
+
* If cellButtonInvokeRowsOnDoubleClick = false, the doubleClick event for the row
|
|
38
|
+
* is not triggered, but will triggered cellButtonClicked event with (key: PTableRowKey) argument.
|
|
39
|
+
*/
|
|
40
|
+
cellButtonInvokeRowsOnDoubleClick?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type __VLS_PublicProps = {
|
|
43
|
+
modelValue?: PlDataTableState;
|
|
44
|
+
'selectedRows'?: PTableRowKey[];
|
|
45
|
+
} & __VLS_Props;
|
|
46
|
+
declare function __VLS_template(): {
|
|
47
|
+
attrs: Partial<{}>;
|
|
48
|
+
slots: {
|
|
49
|
+
"before-sheets"?(_: {}): any;
|
|
50
|
+
"after-sheets"?(_: {}): any;
|
|
51
|
+
};
|
|
52
|
+
refs: {};
|
|
53
|
+
rootEl: HTMLDivElement;
|
|
54
|
+
};
|
|
55
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
56
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
57
|
+
focusRow: (rowKey: PTableRowKey) => Promise<void>;
|
|
58
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
|
+
"update:modelValue": (value: PlDataTableState) => any;
|
|
60
|
+
rowDoubleClicked: (key?: PTableRowKey | undefined) => any;
|
|
61
|
+
columnsChanged: (columns: PTableColumnSpec[]) => any;
|
|
62
|
+
cellButtonClicked: (key?: PTableRowKey | undefined) => any;
|
|
63
|
+
"update:selectedRows": (value: PTableRowKey[]) => any;
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
65
|
+
"onUpdate:modelValue"?: ((value: PlDataTableState) => any) | undefined;
|
|
66
|
+
onRowDoubleClicked?: ((key?: PTableRowKey | undefined) => any) | undefined;
|
|
67
|
+
onColumnsChanged?: ((columns: PTableColumnSpec[]) => any) | undefined;
|
|
68
|
+
onCellButtonClicked?: ((key?: PTableRowKey | undefined) => any) | undefined;
|
|
69
|
+
"onUpdate:selectedRows"?: ((value: PTableRowKey[]) => any) | undefined;
|
|
70
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
71
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
72
|
+
export default _default;
|
|
73
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
74
|
+
new (): {
|
|
75
|
+
$slots: S;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=PlAgDataTableV2.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlAgDataTableV2.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/PlAgDataTableV2.vue"],"names":[],"mappings":"AAmjBA,OAAO,EAIL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAItB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EAA2B,qBAAqB,EAAoB,YAAY,EAA+B,MAAM,SAAS,CAAC;AAkB3I,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;SAMK;IACL,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AA4YF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;iCATZ,GAAG;gCACJ,GAAG;;;;EAavC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as PlDataTable } from './PlAgDataTable.vue';
|
|
2
|
+
export { default as PlDataTableV2 } from './PlAgDataTableV2.vue';
|
|
2
3
|
export { default as PlAgOverlayLoading } from './PlAgOverlayLoading.vue';
|
|
3
4
|
export { default as PlAgOverlayNoRows } from './PlAgOverlayNoRows.vue';
|
|
4
5
|
export * from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PlAgDataTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ColDef, ValueFormatterParams } from 'ag-grid-enterprise';
|
|
2
|
+
import { type AxisId, type PTableColumnSpec, type PTableValue } from '@platforma-sdk/model';
|
|
3
|
+
import type { PlAgDataTableRow, PTableRowKey, PTableRowKeyJson } from '../types';
|
|
4
|
+
export type PlAgCellButtonAxisParams = {
|
|
5
|
+
showCellButtonForAxisId?: AxisId;
|
|
6
|
+
cellButtonInvokeRowsOnDoubleClick?: boolean;
|
|
7
|
+
trigger: (key?: PTableRowKey) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const PTableHidden: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
export type PTableHidden = typeof PTableHidden;
|
|
13
|
+
export declare function isPTableHidden(value: PTableValue): value is PTableHidden;
|
|
14
|
+
export declare const defaultValueFormatter: (value: ValueFormatterParams<PlAgDataTableRow, PTableValue>) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Calculates column definition for a given p-table column
|
|
17
|
+
*/
|
|
18
|
+
export declare function makeColDef(iCol: number, spec: PTableColumnSpec, hiddenColIds?: string[], cellButtonAxisParams?: PlAgCellButtonAxisParams): ColDef;
|
|
19
|
+
export declare function makeRowId(rowKey: PTableValue[]): PTableRowKeyJson;
|
|
20
|
+
export declare function isLabelColumn(column: PTableColumnSpec): boolean;
|
|
21
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjF,MAAM,MAAM,wBAAwB,GAAG;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,YAAY;;CAAqB,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,IAAI,YAAY,CAExE;AAED,eAAO,MAAM,qBAAqB,UAAW,oBAAoB,CAAC,gBAAgB,EAAE,WAAW,CAAC,WAU/F,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gBAAgB,EACtB,YAAY,CAAC,EAAE,MAAM,EAAE,EACvB,oBAAoB,CAAC,EAAE,wBAAwB,GAC9C,MAAM,CA8DR;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,gBAAgB,CAEjE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,gBAAgB,WAErD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ColDef, IServerSideDatasource, RowModelType } from 'ag-grid-enterprise';
|
|
2
|
+
import type { PlDataTableGridStateWithoutSheets, PlDataTableModel } from '@platforma-sdk/model';
|
|
3
|
+
import { type PFrameDriver, type PlDataTableSheet } from '@platforma-sdk/model';
|
|
4
|
+
import type { PlAgDataTableRow } from '../types';
|
|
5
|
+
import type { Ref } from 'vue';
|
|
6
|
+
import { type PlAgCellButtonAxisParams } from './common';
|
|
7
|
+
/**
|
|
8
|
+
* Calculate GridOptions for p-table data source type
|
|
9
|
+
*/
|
|
10
|
+
export declare function updatePFrameGridOptions(pfDriver: PFrameDriver, model: PlDataTableModel, sheets: PlDataTableSheet[], clientSide: boolean, gridState: Ref<PlDataTableGridStateWithoutSheets>, cellButtonAxisParams?: PlAgCellButtonAxisParams): Promise<{
|
|
11
|
+
columnDefs: ColDef[];
|
|
12
|
+
serverSideDatasource?: IServerSideDatasource;
|
|
13
|
+
rowModelType: RowModelType;
|
|
14
|
+
rowData?: PlAgDataTableRow[];
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=table-source-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-source-v2.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/table-source-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EAErB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,iCAAiC,EACjC,gBAAgB,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,UAAU,CAAC;AAwBlB;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,gBAAgB,EAAE,EAC1B,UAAU,EAAE,OAAO,EACnB,SAAS,EAAE,GAAG,CAAC,iCAAiC,CAAC,EACjD,oBAAoB,CAAC,EAAE,wBAAwB,GAC9C,OAAO,CAAC;IACP,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC,CA8LH"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import type { ColDef, IServerSideDatasource, RowModelType
|
|
1
|
+
import type { ColDef, IServerSideDatasource, RowModelType } from 'ag-grid-enterprise';
|
|
2
2
|
import type { PlDataTableGridStateWithoutSheets } from '@platforma-sdk/model';
|
|
3
|
-
import { type
|
|
4
|
-
import type { PlAgDataTableRow
|
|
3
|
+
import { type PFrameDriver, type PlDataTableSheet, type PTableHandle } from '@platforma-sdk/model';
|
|
4
|
+
import type { PlAgDataTableRow } from '../types';
|
|
5
5
|
import type { Ref } from 'vue';
|
|
6
|
-
type PlAgCellButtonAxisParams
|
|
7
|
-
showCellButtonForAxisId?: AxisId;
|
|
8
|
-
cellButtonInvokeRowsOnDoubleClick?: boolean;
|
|
9
|
-
trigger: (key?: PTableRowKey) => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Extract `PTableColumnId` from colId string
|
|
13
|
-
*/
|
|
14
|
-
export declare function parseColId(str: string): PTableColumnSpec;
|
|
15
|
-
export declare const defaultValueFormatter: (value: ValueFormatterParams<PlAgDataTableRow, PTableValue>) => string;
|
|
16
|
-
export declare function makeRowId(rowKey: PTableValue[]): string;
|
|
6
|
+
import { type PlAgCellButtonAxisParams } from './common';
|
|
17
7
|
/**
|
|
18
8
|
* Calculate GridOptions for p-table data source type
|
|
19
9
|
*/
|
|
@@ -23,5 +13,4 @@ export declare function updatePFrameGridOptions(pfDriver: PFrameDriver, pt: PTab
|
|
|
23
13
|
rowModelType: RowModelType;
|
|
24
14
|
rowData?: PlAgDataTableRow[];
|
|
25
15
|
}>;
|
|
26
|
-
export {};
|
|
27
16
|
//# sourceMappingURL=table-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-source.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/table-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"table-source.d.ts","sourceRoot":"","sources":["../../../../../src/components/PlAgDataTable/sources/table-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EAErB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,iCAAiC,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAwC,KAAK,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAgB/F;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,YAAY,EACtB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,gBAAgB,EAAE,EAC1B,UAAU,EAAE,OAAO,EACnB,SAAS,EAAE,GAAG,CAAC,iCAAiC,CAAC,EACjD,oBAAoB,CAAC,EAAE,wBAAwB,GAC9C,OAAO,CAAC;IACP,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC,CA8LH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocalBlobHandleAndSize, PlDataTableSheet, PlTableFilter, PlTableFilterType, PTableColumnId, PTableHandle, PTableValue, RemoteBlobHandleAndSize } from '@platforma-sdk/model';
|
|
1
|
+
import type { CanonicalizedJson, LocalBlobHandleAndSize, PlDataTableModel, PlDataTableSheet, PlTableFilter, PlTableFilterType, PTableColumnId, PTableHandle, PTableValue, RemoteBlobHandleAndSize } from '@platforma-sdk/model';
|
|
2
2
|
export type PlDataTableSettingsPTable = {
|
|
3
3
|
/** The type of the source to feed the data into the table */
|
|
4
4
|
sourceType: 'ptable';
|
|
@@ -14,6 +14,16 @@ export type PlDataTableSettingsXsv = {
|
|
|
14
14
|
};
|
|
15
15
|
/** Data table settings */
|
|
16
16
|
export type PlDataTableSettings = PlDataTableSettingsPTable | PlDataTableSettingsXsv;
|
|
17
|
+
export type PlAgDataTableSettingsPTable = {
|
|
18
|
+
/** The type of the source to feed the data into the table */
|
|
19
|
+
sourceType: 'ptable';
|
|
20
|
+
/** PTable handle output */
|
|
21
|
+
model?: PlDataTableModel;
|
|
22
|
+
/** Sheets that we want to show in our table */
|
|
23
|
+
sheets?: PlDataTableSheet[];
|
|
24
|
+
};
|
|
25
|
+
/** Data table settings */
|
|
26
|
+
export type PlAgDataTableSettings = PlAgDataTableSettingsPTable;
|
|
17
27
|
/** PlTableFilters restriction entry */
|
|
18
28
|
export type PlTableFiltersRestriction = {
|
|
19
29
|
/** Spec of the column for which filter types should be restricted */
|
|
@@ -38,12 +48,14 @@ export type PlAgDataTableController = {
|
|
|
38
48
|
*/
|
|
39
49
|
focusRow: (rowKey: PTableRowKey) => Promise<void>;
|
|
40
50
|
};
|
|
51
|
+
/** Canonicalized PTableValue array JSON string */
|
|
52
|
+
export type PTableRowKeyJson = CanonicalizedJson<PTableValue[]>;
|
|
41
53
|
/** PlAgDataTable row */
|
|
42
54
|
export type PlAgDataTableRow = {
|
|
43
55
|
/** Axis key is not present for heterogeneous axes */
|
|
44
56
|
key?: PTableRowKey;
|
|
45
57
|
/** Unique row identifier, created as canonicalize(key)! when key is present */
|
|
46
|
-
id:
|
|
58
|
+
id: PTableRowKeyJson | `${number}`;
|
|
47
59
|
/** Row values by column; sheet axes and labeled axes are excluded */
|
|
48
60
|
[field: `${number}` | `hC${number}`]: PTableValue;
|
|
49
61
|
};
|
|
@@ -1 +1 @@
|
|
|
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,WAAW,EACX,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,yBAAyB,GAAG;IACtC,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,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,6DAA6D;IAC7D,UAAU,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,sBAAsB,GAAG,uBAAuB,CAAC;CAC5D,CAAC;AAEF,0BAA0B;AAC1B,MAAM,MAAM,mBAAmB,GAC3B,yBAAyB,GACzB,sBAAsB,CAAC;AAE3B,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,4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/src/lib.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import './assets/ui.scss';
|
|
2
2
|
import BlockLayout from './components/BlockLayout.vue';
|
|
3
3
|
import PlAgDataTable from './components/PlAgDataTable/PlAgDataTable.vue';
|
|
4
|
+
import PlAgDataTableV2 from './components/PlAgDataTable/PlAgDataTableV2.vue';
|
|
4
5
|
import PlAgOverlayLoading from './components/PlAgDataTable/PlAgOverlayLoading.vue';
|
|
5
6
|
import PlAgOverlayNoRows from './components/PlAgDataTable/PlAgOverlayNoRows.vue';
|
|
6
7
|
import ValueOrErrorsComponent from './components/ValueOrErrorsComponent.vue';
|
|
7
|
-
export { BlockLayout, PlAgDataTable, PlAgOverlayLoading, PlAgOverlayNoRows, ValueOrErrorsComponent };
|
|
8
|
+
export { BlockLayout, PlAgDataTable, PlAgDataTableV2, PlAgOverlayLoading, PlAgOverlayNoRows, ValueOrErrorsComponent };
|
|
8
9
|
export * from './AgGridVue';
|
|
9
10
|
export * from './components/PlAgColumnHeader';
|
|
10
11
|
export * from './components/PlAgCellFile';
|
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,sBAAsB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,WA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