@toolbox-web/grid-vue 0.7.1 → 0.8.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/features/clipboard.d.ts +0 -19
- package/features/clipboard.d.ts.map +1 -1
- package/features/clipboard.js +1 -3
- package/features/clipboard.js.map +1 -1
- package/features/column-virtualization.d.ts +0 -19
- package/features/column-virtualization.d.ts.map +1 -1
- package/features/column-virtualization.js +1 -3
- package/features/column-virtualization.js.map +1 -1
- package/features/context-menu.d.ts +0 -19
- package/features/context-menu.d.ts.map +1 -1
- package/features/context-menu.js +1 -3
- package/features/context-menu.js.map +1 -1
- package/features/editing.d.ts +0 -19
- package/features/editing.d.ts.map +1 -1
- package/features/editing.js +1 -3
- package/features/editing.js.map +1 -1
- package/features/export.d.ts.map +1 -1
- package/features/export.js +18 -20
- package/features/export.js.map +1 -1
- package/features/filtering.js +4 -4
- package/features/grouping-columns.d.ts +0 -23
- package/features/grouping-columns.d.ts.map +1 -1
- package/features/grouping-columns.js +1 -3
- package/features/grouping-columns.js.map +1 -1
- package/features/grouping-rows.d.ts +0 -22
- package/features/grouping-rows.d.ts.map +1 -1
- package/features/grouping-rows.js +1 -3
- package/features/grouping-rows.js.map +1 -1
- package/features/index.js +20 -21
- package/features/index.js.map +1 -1
- package/features/master-detail.d.ts +0 -22
- package/features/master-detail.d.ts.map +1 -1
- package/features/master-detail.js +1 -3
- package/features/master-detail.js.map +1 -1
- package/features/multi-sort.d.ts +0 -19
- package/features/multi-sort.d.ts.map +1 -1
- package/features/multi-sort.js +1 -4
- package/features/multi-sort.js.map +1 -1
- package/features/pinned-columns.d.ts +0 -22
- package/features/pinned-columns.d.ts.map +1 -1
- package/features/pinned-columns.js +1 -3
- package/features/pinned-columns.js.map +1 -1
- package/features/pinned-rows.d.ts +0 -21
- package/features/pinned-rows.d.ts.map +1 -1
- package/features/pinned-rows.js +1 -3
- package/features/pinned-rows.js.map +1 -1
- package/features/pivot.d.ts +0 -23
- package/features/pivot.d.ts.map +1 -1
- package/features/pivot.js +1 -3
- package/features/pivot.js.map +1 -1
- package/features/print.d.ts.map +1 -1
- package/features/print.js +9 -11
- package/features/print.js.map +1 -1
- package/features/reorder-columns.d.ts +1 -0
- package/features/reorder-columns.d.ts.map +1 -0
- package/features/reorder-columns.js +2 -0
- package/features/reorder-columns.js.map +1 -0
- package/features/reorder-rows.d.ts +1 -0
- package/features/reorder-rows.d.ts.map +1 -0
- package/features/reorder-rows.js +2 -0
- package/features/reorder-rows.js.map +1 -0
- package/features/reorder.d.ts +3 -17
- package/features/reorder.d.ts.map +1 -1
- package/features/reorder.js +1 -3
- package/features/reorder.js.map +1 -1
- package/features/responsive.d.ts +0 -23
- package/features/responsive.d.ts.map +1 -1
- package/features/responsive.js +1 -3
- package/features/responsive.js.map +1 -1
- package/features/row-reorder.d.ts +3 -17
- package/features/row-reorder.d.ts.map +1 -1
- package/features/row-reorder.js +1 -3
- package/features/row-reorder.js.map +1 -1
- package/features/selection.d.ts.map +1 -1
- package/features/selection.js +20 -22
- package/features/selection.js.map +1 -1
- package/features/server-side.d.ts +0 -21
- package/features/server-side.d.ts.map +1 -1
- package/features/server-side.js +1 -3
- package/features/server-side.js.map +1 -1
- package/features/tree.d.ts +0 -22
- package/features/tree.d.ts.map +1 -1
- package/features/tree.js +1 -3
- package/features/tree.js.map +1 -1
- package/features/undo-redo.d.ts.map +1 -1
- package/features/undo-redo.js +10 -12
- package/features/undo-redo.js.map +1 -1
- package/features/visibility.d.ts +0 -19
- package/features/visibility.d.ts.map +1 -1
- package/features/visibility.js +1 -3
- package/features/visibility.js.map +1 -1
- package/index.js +86 -72
- package/index.js.map +1 -1
- package/lib/TbwGrid.vue.d.ts +5 -1
- package/lib/TbwGrid.vue.d.ts.map +1 -1
- package/lib/feature-props.d.ts +12 -4
- package/lib/feature-props.d.ts.map +1 -1
- package/lib/feature-registry.d.ts +6 -51
- package/lib/feature-registry.d.ts.map +1 -1
- package/package.json +1 -1
- package/chunks/feature-registry-BgEOysSJ.js +0 -38
- package/chunks/feature-registry-BgEOysSJ.js.map +0 -1
package/features/clipboard.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clipboard feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `clipboard` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/clipboard';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid selection="range" clipboard />
|
|
14
|
-
* </template>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
1
|
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/clipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/clipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,sCAAsC,CAAC"}
|
package/features/clipboard.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as i } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
i("clipboard", (r) => r === !0 ? new e() : new e(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/clipboard";
|
|
4
2
|
//# sourceMappingURL=clipboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.js","sources":[
|
|
1
|
+
{"version":3,"file":"clipboard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Column virtualization feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `columnVirtualization` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/column-virtualization';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid columnVirtualization />
|
|
14
|
-
* </template>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
1
|
//# sourceMappingURL=column-virtualization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-virtualization.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/column-virtualization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
1
|
+
{"version":3,"file":"column-virtualization.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/column-virtualization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,kDAAkD,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as t } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
t("columnVirtualization", (r) => r === !0 ? new i() : new i(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/column-virtualization";
|
|
4
2
|
//# sourceMappingURL=column-virtualization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-virtualization.js","sources":[
|
|
1
|
+
{"version":3,"file":"column-virtualization.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context menu feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `contextMenu` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/context-menu';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid contextMenu />
|
|
14
|
-
* </template>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
1
|
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/context-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/context-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,yCAAyC,CAAC"}
|
package/features/context-menu.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as t } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
t("contextMenu", (e) => e === !0 ? new r() : new r(e ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/context-menu";
|
|
4
2
|
//# sourceMappingURL=context-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.js","sources":[
|
|
1
|
+
{"version":3,"file":"context-menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/features/editing.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Editing feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `editing` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/editing';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid editing="dblclick" />
|
|
14
|
-
* </template>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
1
|
//# sourceMappingURL=editing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/editing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
1
|
+
{"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/editing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,oCAAoC,CAAC"}
|
package/features/editing.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as t } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
t("editing", (r) => r === !0 ? new e() : r === "click" || r === "dblclick" || r === "manual" ? new e({ editOn: r }) : new e(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/editing";
|
|
4
2
|
//# sourceMappingURL=editing.js.map
|
package/features/editing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editing.js","sources":[
|
|
1
|
+
{"version":3,"file":"editing.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/features/export.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK3G,OAAO,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAEzE;;;;OAIG;IACH,aAAa,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE3E;;;;OAIG;IACH,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE1E;;OAEG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,IAAI,aAAa,CAwD7C"}
|
package/features/export.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function d() {
|
|
7
|
-
const n = p(u, x(null)), o = () => n.value?.getPluginByName("export");
|
|
1
|
+
import { inject as i, ref as x } from "vue";
|
|
2
|
+
import { G as p } from "../chunks/use-grid-B59B6XdD.js";
|
|
3
|
+
import "@toolbox-web/grid/features/export";
|
|
4
|
+
function s() {
|
|
5
|
+
const n = i(p, x(null)), o = () => n.value?.getPluginByName("export");
|
|
8
6
|
return {
|
|
9
|
-
exportToCsv: (
|
|
10
|
-
const
|
|
11
|
-
if (!
|
|
7
|
+
exportToCsv: (r, e) => {
|
|
8
|
+
const t = o();
|
|
9
|
+
if (!t) {
|
|
12
10
|
console.warn(
|
|
13
11
|
`[tbw-grid:export] ExportPlugin not found.
|
|
14
12
|
|
|
@@ -17,11 +15,11 @@ function d() {
|
|
|
17
15
|
);
|
|
18
16
|
return;
|
|
19
17
|
}
|
|
20
|
-
|
|
18
|
+
t.exportCsv({ ...e, fileName: r ?? e?.fileName ?? "export.csv" });
|
|
21
19
|
},
|
|
22
|
-
exportToExcel: (
|
|
23
|
-
const
|
|
24
|
-
if (!
|
|
20
|
+
exportToExcel: (r, e) => {
|
|
21
|
+
const t = o();
|
|
22
|
+
if (!t) {
|
|
25
23
|
console.warn(
|
|
26
24
|
`[tbw-grid:export] ExportPlugin not found.
|
|
27
25
|
|
|
@@ -30,11 +28,11 @@ function d() {
|
|
|
30
28
|
);
|
|
31
29
|
return;
|
|
32
30
|
}
|
|
33
|
-
|
|
31
|
+
t.exportExcel({ ...e, fileName: r ?? e?.fileName ?? "export.xlsx" });
|
|
34
32
|
},
|
|
35
|
-
exportToJson: (
|
|
36
|
-
const
|
|
37
|
-
if (!
|
|
33
|
+
exportToJson: (r, e) => {
|
|
34
|
+
const t = o();
|
|
35
|
+
if (!t) {
|
|
38
36
|
console.warn(
|
|
39
37
|
`[tbw-grid:export] ExportPlugin not found.
|
|
40
38
|
|
|
@@ -43,13 +41,13 @@ function d() {
|
|
|
43
41
|
);
|
|
44
42
|
return;
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
t.exportJson({ ...e, fileName: r ?? e?.fileName ?? "export.json" });
|
|
47
45
|
},
|
|
48
46
|
isExporting: () => o()?.isExporting() ?? !1,
|
|
49
47
|
getLastExport: () => o()?.getLastExport() ?? null
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
s as useGridExport
|
|
54
52
|
};
|
|
55
53
|
//# sourceMappingURL=export.js.map
|
package/features/export.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sources":["../../../../libs/grid-vue/src/features/export.ts"],"sourcesContent":["/**\n * Export feature for @toolbox-web/grid-vue\n *\n * Import this module to enable the `export` prop on TbwGrid.\n * Also exports `useGridExport()` composable for programmatic export control.\n *\n * @example\n * ```vue\n * <script setup>\n * import '@toolbox-web/grid-vue/features/export';\n * </script>\n *\n * <template>\n * <TbwGrid export />\n * </template>\n * ```\n *\n * @example Using the composable\n * ```vue\n * <script setup>\n * import { useGridExport } from '@toolbox-web/grid-vue/features/export';\n *\n * const { exportToCsv, exportToExcel, exportToJson } = useGridExport();\n *\n * function handleExport() {\n * exportToCsv('employees.csv');\n * }\n * </script>\n * ```\n *\n * @packageDocumentation\n */\n\nimport type { DataGridElement } from '@toolbox-web/grid';\nimport { ExportPlugin, type ExportFormat, type ExportParams } from '@toolbox-web/grid/plugins/export';\nimport { inject, ref } from 'vue';\nimport {
|
|
1
|
+
{"version":3,"file":"export.js","sources":["../../../../libs/grid-vue/src/features/export.ts"],"sourcesContent":["/**\n * Export feature for @toolbox-web/grid-vue\n *\n * Import this module to enable the `export` prop on TbwGrid.\n * Also exports `useGridExport()` composable for programmatic export control.\n *\n * @example\n * ```vue\n * <script setup>\n * import '@toolbox-web/grid-vue/features/export';\n * </script>\n *\n * <template>\n * <TbwGrid export />\n * </template>\n * ```\n *\n * @example Using the composable\n * ```vue\n * <script setup>\n * import { useGridExport } from '@toolbox-web/grid-vue/features/export';\n *\n * const { exportToCsv, exportToExcel, exportToJson } = useGridExport();\n *\n * function handleExport() {\n * exportToCsv('employees.csv');\n * }\n * </script>\n * ```\n *\n * @packageDocumentation\n */\n\nimport type { DataGridElement } from '@toolbox-web/grid';\nimport { type ExportPlugin, type ExportFormat, type ExportParams } from '@toolbox-web/grid/plugins/export';\nimport { inject, ref } from 'vue';\nimport { GRID_ELEMENT_KEY } from '../lib/use-grid';\n\n// Delegate to core feature registration\nimport '@toolbox-web/grid/features/export';\n\n/**\n * Export methods returned from useGridExport.\n */\nexport interface ExportMethods {\n /**\n * Export grid data to CSV file.\n * @param filename - Optional filename (defaults to 'export.csv')\n * @param params - Optional export parameters\n */\n exportToCsv: (filename?: string, params?: Partial<ExportParams>) => void;\n\n /**\n * Export grid data to Excel file (XML Spreadsheet format).\n * @param filename - Optional filename (defaults to 'export.xlsx')\n * @param params - Optional export parameters\n */\n exportToExcel: (filename?: string, params?: Partial<ExportParams>) => void;\n\n /**\n * Export grid data to JSON file.\n * @param filename - Optional filename (defaults to 'export.json')\n * @param params - Optional export parameters\n */\n exportToJson: (filename?: string, params?: Partial<ExportParams>) => void;\n\n /**\n * Check if an export is currently in progress.\n */\n isExporting: () => boolean;\n\n /**\n * Get information about the last export.\n */\n getLastExport: () => { format: ExportFormat; timestamp: Date } | null;\n}\n\n/**\n * Composable for programmatic export control.\n *\n * Must be used within a component that contains a TbwGrid with the export feature enabled.\n *\n * @example\n * ```vue\n * <script setup>\n * import { useGridExport } from '@toolbox-web/grid-vue/features/export';\n *\n * const { exportToCsv, exportToExcel, isExporting } = useGridExport();\n *\n * async function handleExport(format: 'csv' | 'excel' | 'json') {\n * if (isExporting()) return; // Prevent concurrent exports\n *\n * switch (format) {\n * case 'csv': exportToCsv('data.csv'); break;\n * case 'excel': exportToExcel('data.xlsx'); break;\n * case 'json': exportToJson('data.json'); break;\n * }\n * }\n * </script>\n * ```\n */\nexport function useGridExport(): ExportMethods {\n const gridElement = inject(GRID_ELEMENT_KEY, ref(null));\n\n const getPlugin = (): ExportPlugin | undefined => {\n const grid = gridElement.value as DataGridElement | null;\n return grid?.getPluginByName('export');\n };\n\n return {\n exportToCsv: (filename?: string, params?: Partial<ExportParams>) => {\n const plugin = getPlugin();\n if (!plugin) {\n console.warn(\n `[tbw-grid:export] ExportPlugin not found.\\n\\n` +\n ` → Enable export on the grid:\\n` +\n ` <TbwGrid :export=\"true\" />`,\n );\n return;\n }\n plugin.exportCsv({ ...params, fileName: filename ?? params?.fileName ?? 'export.csv' });\n },\n\n exportToExcel: (filename?: string, params?: Partial<ExportParams>) => {\n const plugin = getPlugin();\n if (!plugin) {\n console.warn(\n `[tbw-grid:export] ExportPlugin not found.\\n\\n` +\n ` → Enable export on the grid:\\n` +\n ` <TbwGrid :export=\"true\" />`,\n );\n return;\n }\n plugin.exportExcel({ ...params, fileName: filename ?? params?.fileName ?? 'export.xlsx' });\n },\n\n exportToJson: (filename?: string, params?: Partial<ExportParams>) => {\n const plugin = getPlugin();\n if (!plugin) {\n console.warn(\n `[tbw-grid:export] ExportPlugin not found.\\n\\n` +\n ` → Enable export on the grid:\\n` +\n ` <TbwGrid :export=\"true\" />`,\n );\n return;\n }\n plugin.exportJson({ ...params, fileName: filename ?? params?.fileName ?? 'export.json' });\n },\n\n isExporting: () => {\n return getPlugin()?.isExporting() ?? false;\n },\n\n getLastExport: () => {\n return getPlugin()?.getLastExport() ?? null;\n },\n };\n}\n"],"names":["useGridExport","gridElement","inject","GRID_ELEMENT_KEY","ref","getPlugin","filename","params","plugin"],"mappings":";;;AAqGO,SAASA,IAA+B;AAC7C,QAAMC,IAAcC,EAAOC,GAAkBC,EAAI,IAAI,CAAC,GAEhDC,IAAY,MACHJ,EAAY,OACZ,gBAAgB,QAAQ;AAGvC,SAAO;AAAA,IACL,aAAa,CAACK,GAAmBC,MAAmC;AAClE,YAAMC,IAASH,EAAA;AACf,UAAI,CAACG,GAAQ;AACX,gBAAQ;AAAA,UACN;AAAA;AAAA;AAAA;AAAA,QAAA;AAIF;AAAA,MACF;AACA,MAAAA,EAAO,UAAU,EAAE,GAAGD,GAAQ,UAAUD,KAAYC,GAAQ,YAAY,cAAc;AAAA,IACxF;AAAA,IAEA,eAAe,CAACD,GAAmBC,MAAmC;AACpE,YAAMC,IAASH,EAAA;AACf,UAAI,CAACG,GAAQ;AACX,gBAAQ;AAAA,UACN;AAAA;AAAA;AAAA;AAAA,QAAA;AAIF;AAAA,MACF;AACA,MAAAA,EAAO,YAAY,EAAE,GAAGD,GAAQ,UAAUD,KAAYC,GAAQ,YAAY,eAAe;AAAA,IAC3F;AAAA,IAEA,cAAc,CAACD,GAAmBC,MAAmC;AACnE,YAAMC,IAASH,EAAA;AACf,UAAI,CAACG,GAAQ;AACX,gBAAQ;AAAA,UACN;AAAA;AAAA;AAAA;AAAA,QAAA;AAIF;AAAA,MACF;AACA,MAAAA,EAAO,WAAW,EAAE,GAAGD,GAAQ,UAAUD,KAAYC,GAAQ,YAAY,eAAe;AAAA,IAC1F;AAAA,IAEA,aAAa,MACJF,EAAA,GAAa,YAAA,KAAiB;AAAA,IAGvC,eAAe,MACNA,EAAA,GAAa,cAAA,KAAmB;AAAA,EACzC;AAEJ;"}
|
package/features/filtering.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilteringPlugin as o } from "@toolbox-web/grid/plugins/filtering";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { inject as u, ref as d, createApp as f } from "vue";
|
|
3
|
+
import { registerFeature as s } from "@toolbox-web/grid/features/registry";
|
|
4
4
|
import { G as a } from "../chunks/use-grid-B59B6XdD.js";
|
|
5
5
|
s("filtering", (r) => {
|
|
6
6
|
if (r === !0)
|
|
@@ -12,7 +12,7 @@ s("filtering", (r) => {
|
|
|
12
12
|
const t = i.filterPanelRenderer;
|
|
13
13
|
e.filterPanelRenderer = (n, g) => {
|
|
14
14
|
const l = document.createElement("div");
|
|
15
|
-
l.style.display = "contents",
|
|
15
|
+
l.style.display = "contents", f({
|
|
16
16
|
render() {
|
|
17
17
|
return t(g);
|
|
18
18
|
}
|
|
@@ -22,7 +22,7 @@ s("filtering", (r) => {
|
|
|
22
22
|
return new o(e);
|
|
23
23
|
});
|
|
24
24
|
function b() {
|
|
25
|
-
const r =
|
|
25
|
+
const r = u(a, d(null)), i = () => r.value?.getPluginByName("filtering");
|
|
26
26
|
return {
|
|
27
27
|
setFilter: (e, t) => {
|
|
28
28
|
const n = i();
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Column grouping feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `groupingColumns` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/grouping-columns';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid :groupingColumns="{
|
|
14
|
-
* columnGroups: [
|
|
15
|
-
* { header: 'Personal Info', children: ['firstName', 'lastName'] },
|
|
16
|
-
* ],
|
|
17
|
-
* }" />
|
|
18
|
-
* </template>
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @packageDocumentation
|
|
22
|
-
*/
|
|
23
|
-
export {};
|
|
24
1
|
//# sourceMappingURL=grouping-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/grouping-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
|
|
1
|
+
{"version":3,"file":"grouping-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/grouping-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,6CAA6C,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as u } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
u("groupingColumns", (r) => r === !0 ? new e() : new e(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/grouping-columns";
|
|
4
2
|
//# sourceMappingURL=grouping-columns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping-columns.js","sources":[
|
|
1
|
+
{"version":3,"file":"grouping-columns.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Row grouping feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `groupingRows` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/grouping-rows';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid :groupingRows="{
|
|
14
|
-
* groupBy: ['department', 'team'],
|
|
15
|
-
* defaultExpanded: true,
|
|
16
|
-
* }" />
|
|
17
|
-
* </template>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @packageDocumentation
|
|
21
|
-
*/
|
|
22
|
-
export {};
|
|
23
1
|
//# sourceMappingURL=grouping-rows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/grouping-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
|
1
|
+
{"version":3,"file":"grouping-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/grouping-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,0CAA0C,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as i } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
i("groupingRows", (r) => new o(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/grouping-rows";
|
|
4
2
|
//# sourceMappingURL=grouping-rows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping-rows.js","sources":[
|
|
1
|
+
{"version":3,"file":"grouping-rows.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/features/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
1
|
+
import "@toolbox-web/grid/features/clipboard";
|
|
2
|
+
import "@toolbox-web/grid/features/column-virtualization";
|
|
3
|
+
import "@toolbox-web/grid/features/context-menu";
|
|
4
|
+
import "@toolbox-web/grid/features/editing";
|
|
5
|
+
import "vue";
|
|
6
|
+
import "@toolbox-web/grid/features/export";
|
|
6
7
|
import "./filtering.js";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "./undo-redo.js";
|
|
22
|
-
import "./visibility.js";
|
|
8
|
+
import "@toolbox-web/grid/features/grouping-columns";
|
|
9
|
+
import "@toolbox-web/grid/features/grouping-rows";
|
|
10
|
+
import "@toolbox-web/grid/features/master-detail";
|
|
11
|
+
import "@toolbox-web/grid/features/multi-sort";
|
|
12
|
+
import "@toolbox-web/grid/features/pinned-columns";
|
|
13
|
+
import "@toolbox-web/grid/features/pinned-rows";
|
|
14
|
+
import "@toolbox-web/grid/features/pivot";
|
|
15
|
+
import "@toolbox-web/grid/features/print";
|
|
16
|
+
import "@toolbox-web/grid/features/responsive";
|
|
17
|
+
import "@toolbox-web/grid/features/selection";
|
|
18
|
+
import "@toolbox-web/grid/features/server-side";
|
|
19
|
+
import "@toolbox-web/grid/features/tree";
|
|
20
|
+
import "@toolbox-web/grid/features/undo-redo";
|
|
21
|
+
import "@toolbox-web/grid/features/visibility";
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
package/features/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Master-detail feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `masterDetail` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/master-detail';
|
|
10
|
-
* import { h } from 'vue';
|
|
11
|
-
* </script>
|
|
12
|
-
*
|
|
13
|
-
* <template>
|
|
14
|
-
* <TbwGrid :masterDetail="{
|
|
15
|
-
* renderer: (row) => h(OrderDetails, { order: row }),
|
|
16
|
-
* }" />
|
|
17
|
-
* </template>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @packageDocumentation
|
|
21
|
-
*/
|
|
22
|
-
export {};
|
|
23
1
|
//# sourceMappingURL=master-detail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/master-detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
|
1
|
+
{"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/master-detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,0CAA0C,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as t } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
t("masterDetail", (r) => new e(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/master-detail";
|
|
4
2
|
//# sourceMappingURL=master-detail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-detail.js","sources":[
|
|
1
|
+
{"version":3,"file":"master-detail.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/features/multi-sort.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Multi-sort feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `multiSort` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/multi-sort';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid multiSort />
|
|
14
|
-
* </template>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
1
|
//# sourceMappingURL=multi-sort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-sort.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/multi-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
1
|
+
{"version":3,"file":"multi-sort.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/multi-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,uCAAuC,CAAC"}
|
package/features/multi-sort.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as e } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
e("multiSort", (r) => r === !0 || r === "multi" ? new t() : r === "single" ? new t({ maxSortColumns: 1 }) : new t(r ?? void 0));
|
|
4
|
-
e("sorting", (r) => r === !0 || r === "multi" ? new t() : r === "single" ? new t({ maxSortColumns: 1 }) : new t(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/multi-sort";
|
|
5
2
|
//# sourceMappingURL=multi-sort.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-sort.js","sources":[
|
|
1
|
+
{"version":3,"file":"multi-sort.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pinned columns feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `pinnedColumns` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/pinned-columns';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid pinnedColumns :columns="[
|
|
14
|
-
* { field: 'id', pinned: 'left' },
|
|
15
|
-
* { field: 'name' },
|
|
16
|
-
* ]" />
|
|
17
|
-
* </template>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @packageDocumentation
|
|
21
|
-
*/
|
|
22
|
-
export {};
|
|
23
1
|
//# sourceMappingURL=pinned-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/pinned-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
|
1
|
+
{"version":3,"file":"pinned-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/pinned-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,2CAA2C,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as n } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
n("pinnedColumns", () => new r());
|
|
1
|
+
import "@toolbox-web/grid/features/pinned-columns";
|
|
4
2
|
//# sourceMappingURL=pinned-columns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-columns.js","sources":[
|
|
1
|
+
{"version":3,"file":"pinned-columns.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pinned rows feature for @toolbox-web/grid-vue
|
|
3
|
-
*
|
|
4
|
-
* Import this module to enable the `pinnedRows` prop on TbwGrid.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```vue
|
|
8
|
-
* <script setup>
|
|
9
|
-
* import '@toolbox-web/grid-vue/features/pinned-rows';
|
|
10
|
-
* </script>
|
|
11
|
-
*
|
|
12
|
-
* <template>
|
|
13
|
-
* <TbwGrid :pinnedRows="{
|
|
14
|
-
* bottom: [{ type: 'aggregation', aggregator: 'sum' }],
|
|
15
|
-
* }" />
|
|
16
|
-
* </template>
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @packageDocumentation
|
|
20
|
-
*/
|
|
21
|
-
export {};
|
|
22
1
|
//# sourceMappingURL=pinned-rows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/pinned-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
1
|
+
{"version":3,"file":"pinned-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-vue/src/features/pinned-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,wCAAwC,CAAC"}
|
package/features/pinned-rows.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as n } from "../chunks/feature-registry-BgEOysSJ.js";
|
|
3
|
-
n("pinnedRows", (r) => r === !0 ? new e() : new e(r ?? void 0));
|
|
1
|
+
import "@toolbox-web/grid/features/pinned-rows";
|
|
4
2
|
//# sourceMappingURL=pinned-rows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-rows.js","sources":[
|
|
1
|
+
{"version":3,"file":"pinned-rows.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|