@atscript/vue-table 0.1.136 → 0.1.138
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/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-qATZy3cu.mjs → as-action-menu-content-CVlExEpl.mjs} +1 -1
- package/dist/{as-action-menu-content-D8VzLK9e.cjs → as-action-menu-content-D8f60mY-.cjs} +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-BaIGUOhP.d.mts → as-column-menu.vue-CgvDp7JK.d.cts} +2 -2
- package/dist/{as-column-menu.vue-CDlI4-Cz.d.cts → as-column-menu.vue-SRkxrvo_.d.mts} +2 -2
- package/dist/{as-config-dialog-CP362FP3.cjs → as-config-dialog-BrVhIV_e.cjs} +2 -2
- package/dist/{as-config-dialog-BMQxSqzl.mjs → as-config-dialog-DHdpmRo9.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-Dp_njNXz.mjs → as-confirm-dialog-BG5vlbvV.mjs} +1 -1
- package/dist/{as-confirm-dialog-D41XaN_P.cjs → as-confirm-dialog-iytk-urB.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-BCUqpKPd.cjs → as-filter-dialog-CW8-zoag.cjs} +7 -7
- package/dist/{as-filter-dialog-kAXGDwsk.mjs → as-filter-dialog-Dis7tkN_.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-WnV2axh8.mjs → as-filter-field-BKoxTudl.mjs} +3 -3
- package/dist/{as-filter-field-D3jSbSwB.cjs → as-filter-field-bVIXoH3j.cjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-Bc44srvA.mjs → as-filters-CxVy00LQ.mjs} +3 -3
- package/dist/{as-filters-Dp93OWRS.cjs → as-filters-Dx8WkGiA.cjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-Bx4nRuyk.mjs → as-preset-dialog-C0f_6VxJ.mjs} +1 -1
- package/dist/{as-preset-dialog-pusPD935.cjs → as-preset-dialog-D8o2ChtM.cjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-BRQdflJz.mjs → as-preset-picker-CDItDinB.mjs} +1 -1
- package/dist/{as-preset-picker-nAx3MYl7.cjs → as-preset-picker-DonMQ8Ia.cjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-gxmuZkYI.mjs → as-row-actions-B8YANdb4.mjs} +2 -2
- package/dist/{as-row-actions-PD-sFmDs.cjs → as-row-actions-CAiCfw8d.cjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.d.cts +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-row-actions.vue-AXXt5kQS.d.mts → as-row-actions.vue-BCgHsU18.d.mts} +1 -1
- package/dist/{as-row-actions.vue-D0MXQoeg.d.cts → as-row-actions.vue-C49h8PpE.d.cts} +1 -1
- package/dist/{as-table-BIV1W3O9.mjs → as-table-BAoJ60tx.mjs} +8 -34
- package/dist/{as-table-ucLFACn0.cjs → as-table-QoXP-NZr.cjs} +8 -34
- package/dist/{as-table-actions-D_PUqMYy.cjs → as-table-actions-8yf2QIER.cjs} +2 -2
- package/dist/{as-table-actions-DQ5Nn8Jc.mjs → as-table-actions-z5xUWtvK.mjs} +2 -2
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-iKw4tsJh.d.cts → as-table-actions.vue-BTGQnFH_.d.mts} +2 -2
- package/dist/{as-table-actions.vue-kndyFTyi.d.mts → as-table-actions.vue-oxyikRAt.d.cts} +2 -2
- package/dist/{as-table-base-kHOKCI7T.mjs → as-table-base-DA5T7x_K.mjs} +2 -2
- package/dist/{as-table-base-M6_12pPq.cjs → as-table-base-wPJuru7P.cjs} +2 -2
- package/dist/{as-table-header-cell-Ct_GPLVu.cjs → as-table-header-cell-CiRLNVJz.cjs} +1 -1
- package/dist/{as-table-header-cell-CZyy4q1s.mjs → as-table-header-cell-Cl8waY_g.mjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-BNsOEsof.d.mts → as-table-header-cell.vue-BjgxfKhi.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-DqjorECQ.d.cts → as-table-header-cell.vue-zGeuzm3w.d.mts} +2 -2
- package/dist/{as-table-root-DGYw0kPC.mjs → as-table-root-Bza3ZGJZ.mjs} +20 -13
- package/dist/{as-table-root-EyN1JHuS.cjs → as-table-root-C6a6iO6M.cjs} +20 -13
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-D5RZKczC.d.mts → as-table-root.vue-DnOHVQtA.d.mts} +3 -3
- package/dist/{as-table-root.vue-DHmH2h1z.d.cts → as-table-root.vue-Dze91qga.d.cts} +3 -3
- package/dist/{as-table-status-DMFZuZfJ.cjs → as-table-status-B2O3hLGg.cjs} +4 -4
- package/dist/{as-table-status-CYzRbU71.mjs → as-table-status-aebsG7bR.mjs} +4 -4
- package/dist/as-table.cjs +1 -1
- package/dist/as-table.d.cts +1 -1
- package/dist/as-table.d.mts +1 -1
- package/dist/as-table.mjs +1 -1
- package/dist/{as-table.vue-CSsa8u47.d.mts → as-table.vue-BSKifGzD.d.cts} +8 -8
- package/dist/{as-table.vue-B2yu8GI5.d.cts → as-table.vue-emq84QmP.d.mts} +8 -8
- package/dist/{as-window-table-B9Y4Xgwm.mjs → as-window-table-ByTXS8yA.mjs} +30 -13
- package/dist/{as-window-table-Bxq7cYW5.cjs → as-window-table-DS30wumm.cjs} +30 -13
- package/dist/as-window-table.cjs +1 -1
- package/dist/as-window-table.d.cts +1 -1
- package/dist/as-window-table.d.mts +1 -1
- package/dist/as-window-table.mjs +1 -1
- package/dist/{as-window-table.vue-DxNiv9jn.d.mts → as-window-table.vue-DJNJ-6dd.d.cts} +18 -5
- package/dist/{as-window-table.vue-CBSeXWnu.d.cts → as-window-table.vue-DUJgZDXy.d.mts} +18 -5
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +17 -17
- package/dist/{types-CyAmAg10.d.cts → types-CsgAGRfG.d.mts} +29 -8
- package/dist/{types-yS6-QFfT.d.mts → types-DvWLY5zQ.d.cts} +29 -8
- package/dist/{use-table-BVptAnaS.mjs → use-table-DRN4nlZs.mjs} +1 -1
- package/dist/{use-table-Bm2a0g9D.cjs → use-table-JU7BAX4e.cjs} +1 -1
- package/dist/use-table-column-handlers-DGn4ZW9j.mjs +85 -0
- package/dist/use-table-column-handlers-r47WDxEh.cjs +96 -0
- package/dist/{use-table-component-Bpy5mg_P.cjs → use-table-component-DIWiP_Vs.cjs} +1 -1
- package/dist/{use-table-component-DYzKgCC4.mjs → use-table-component-VUFlxIk-.mjs} +1 -1
- package/dist/{use-table-nav-bridge-qyvyRm6S.cjs → use-table-nav-bridge-BBtXE70x.cjs} +1 -1
- package/dist/{use-table-nav-bridge-LCL6vq9F.mjs → use-table-nav-bridge-DT8oU-6r.mjs} +1 -1
- package/dist/{use-table-state-jljSQQ8m.cjs → use-table-state-CoVe_8NI.cjs} +6 -5
- package/dist/{use-table-state-CwfgWmuk.mjs → use-table-state-CqU1N4Q9.mjs} +7 -6
- package/package.json +6 -6
- package/dist/use-table-column-handlers-BMrP0WY2.cjs +0 -45
- package/dist/use-table-column-handlers-Bx3JERqs.mjs +0 -40
package/dist/as-window-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_window_table = require("./as-window-table-
|
|
1
|
+
const require_as_window_table = require("./as-window-table-DS30wumm.cjs");
|
|
2
2
|
module.exports = require_as_window_table.as_window_table_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DJNJ-6dd.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DUJgZDXy.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-window-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
1
|
+
import { t as as_window_table_default } from "./as-window-table-ByTXS8yA.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as RowClassHook, b as RowSelectableHook, f as QueryErrorKind, g as RowAttrsHook, m as RowActionsColumnPlacement, o as EnterAction, r as ColumnMenuConfig, v as RowDeleteOpt } from "./types-DvWLY5zQ.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -51,6 +51,18 @@ type __VLS_Props = {
|
|
|
51
51
|
* a watcher — the action set live-updates as the prop flips.
|
|
52
52
|
*/
|
|
53
53
|
rowDelete?: boolean | RowDeleteOpt;
|
|
54
|
+
/**
|
|
55
|
+
* Synthesised row-actions pseudo-column, as on `<AsTable>`. `'first'` /
|
|
56
|
+
* `'last'` prepend or append a fixed `__actions` column rendering
|
|
57
|
+
* `controls.rowActions` (the `@DbAction` row actions, per-row gated by
|
|
58
|
+
* `$actions`). `'merge-select'` only renders it when `select === "none"`,
|
|
59
|
+
* sharing the leading gutter with the checkbox column.
|
|
60
|
+
*
|
|
61
|
+
* The column is locked: no header dropdown, no resize, no drag-reorder,
|
|
62
|
+
* NOT in the `columnNames` v-model. Hidden entirely when
|
|
63
|
+
* `state.actions.row` is empty. Since 0.1.138.
|
|
64
|
+
*/
|
|
65
|
+
rowActionsColumn?: RowActionsColumnPlacement | false;
|
|
54
66
|
/**
|
|
55
67
|
* Render without a header row. Omits `<thead>` entirely (not
|
|
56
68
|
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
@@ -87,24 +99,25 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
87
99
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
88
100
|
};
|
|
89
101
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
90
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
91
102
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
92
103
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
104
|
+
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
93
105
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
94
106
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
95
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
96
107
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
97
108
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
109
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
98
110
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
99
111
|
}>, {
|
|
100
|
-
rowHeight: number;
|
|
101
|
-
wheelRowsPerTick: number;
|
|
102
112
|
select: SelectionMode;
|
|
103
113
|
reorderable: boolean;
|
|
104
114
|
resizable: boolean;
|
|
105
115
|
columnMinWidth: number;
|
|
106
116
|
rowDelete: boolean | RowDeleteOpt;
|
|
117
|
+
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
107
118
|
headless: boolean;
|
|
119
|
+
rowHeight: number;
|
|
120
|
+
wheelRowsPerTick: number;
|
|
108
121
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
109
122
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
110
123
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as RowClassHook, b as RowSelectableHook, f as QueryErrorKind, g as RowAttrsHook, m as RowActionsColumnPlacement, o as EnterAction, r as ColumnMenuConfig, v as RowDeleteOpt } from "./types-CsgAGRfG.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -51,6 +51,18 @@ type __VLS_Props = {
|
|
|
51
51
|
* a watcher — the action set live-updates as the prop flips.
|
|
52
52
|
*/
|
|
53
53
|
rowDelete?: boolean | RowDeleteOpt;
|
|
54
|
+
/**
|
|
55
|
+
* Synthesised row-actions pseudo-column, as on `<AsTable>`. `'first'` /
|
|
56
|
+
* `'last'` prepend or append a fixed `__actions` column rendering
|
|
57
|
+
* `controls.rowActions` (the `@DbAction` row actions, per-row gated by
|
|
58
|
+
* `$actions`). `'merge-select'` only renders it when `select === "none"`,
|
|
59
|
+
* sharing the leading gutter with the checkbox column.
|
|
60
|
+
*
|
|
61
|
+
* The column is locked: no header dropdown, no resize, no drag-reorder,
|
|
62
|
+
* NOT in the `columnNames` v-model. Hidden entirely when
|
|
63
|
+
* `state.actions.row` is empty. Since 0.1.138.
|
|
64
|
+
*/
|
|
65
|
+
rowActionsColumn?: RowActionsColumnPlacement | false;
|
|
54
66
|
/**
|
|
55
67
|
* Render without a header row. Omits `<thead>` entirely (not
|
|
56
68
|
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
@@ -87,24 +99,25 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
87
99
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
88
100
|
};
|
|
89
101
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
90
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
91
102
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
92
103
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
104
|
+
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
93
105
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
94
106
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
95
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
96
107
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
97
108
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
109
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
98
110
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
99
111
|
}>, {
|
|
100
|
-
rowHeight: number;
|
|
101
|
-
wheelRowsPerTick: number;
|
|
102
112
|
select: SelectionMode;
|
|
103
113
|
reorderable: boolean;
|
|
104
114
|
resizable: boolean;
|
|
105
115
|
columnMinWidth: number;
|
|
106
116
|
rowDelete: boolean | RowDeleteOpt;
|
|
117
|
+
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
107
118
|
headless: boolean;
|
|
119
|
+
rowHeight: number;
|
|
120
|
+
wheelRowsPerTick: number;
|
|
108
121
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
109
122
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
110
123
|
declare const _default: typeof __VLS_export;
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
+
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
3
3
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
4
4
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
5
|
-
const require_use_table = require("./use-table-
|
|
6
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
7
|
-
const require_use_table_component = require("./use-table-component-
|
|
8
|
-
const require_as_table_root = require("./as-table-root-
|
|
5
|
+
const require_use_table = require("./use-table-JU7BAX4e.cjs");
|
|
6
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-BBtXE70x.cjs");
|
|
7
|
+
const require_use_table_component = require("./use-table-component-DIWiP_Vs.cjs");
|
|
8
|
+
const require_as_table_root = require("./as-table-root-C6a6iO6M.cjs");
|
|
9
9
|
const require_as_cell_array = require("./as-cell-array-D-8Pqlgo.cjs");
|
|
10
10
|
const require_as_cell_date = require("./as-cell-date-DviMJEqs.cjs");
|
|
11
11
|
const require_use_cell_locale = require("./use-cell-locale-caG2Fzpc.cjs");
|
|
@@ -14,20 +14,20 @@ const require_as_cell_number = require("./as-cell-number-BnYbxOiG.cjs");
|
|
|
14
14
|
const require_format_cell = require("./format-cell-DaxV6WIJ.cjs");
|
|
15
15
|
const require_as_cell_union = require("./as-cell-union-BjMP91PS.cjs");
|
|
16
16
|
const require_as_column_menu = require("./as-column-menu-D_8NxujZ.cjs");
|
|
17
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
18
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
17
|
+
const require_as_config_dialog = require("./as-config-dialog-BrVhIV_e.cjs");
|
|
18
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-iytk-urB.cjs");
|
|
19
19
|
const require_as_filter_input = require("./as-filter-input-DUqpkTkg.cjs");
|
|
20
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
21
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
22
|
-
const require_as_window_table = require("./as-window-table-
|
|
23
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
24
|
-
const require_as_filters = require("./as-filters-
|
|
25
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
26
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
20
|
+
const require_as_filter_dialog = require("./as-filter-dialog-CW8-zoag.cjs");
|
|
21
|
+
const require_as_table_header_cell = require("./as-table-header-cell-CiRLNVJz.cjs");
|
|
22
|
+
const require_as_window_table = require("./as-window-table-DS30wumm.cjs");
|
|
23
|
+
const require_as_filter_field = require("./as-filter-field-bVIXoH3j.cjs");
|
|
24
|
+
const require_as_filters = require("./as-filters-Dx8WkGiA.cjs");
|
|
25
|
+
const require_as_preset_dialog = require("./as-preset-dialog-D8o2ChtM.cjs");
|
|
26
|
+
const require_as_row_actions = require("./as-row-actions-CAiCfw8d.cjs");
|
|
27
27
|
const require_as_table_cell_value = require("./as-table-cell-value-BAi5yadc.cjs");
|
|
28
|
-
const require_as_table = require("./as-table-
|
|
29
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
30
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
28
|
+
const require_as_table = require("./as-table-QoXP-NZr.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-8yf2QIER.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-DonMQ8Ia.cjs");
|
|
31
31
|
let _atscript_ui = require("@atscript/ui");
|
|
32
32
|
let vue = require("vue");
|
|
33
33
|
let _atscript_ui_table = require("@atscript/ui-table");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-DcxDnWAU.cjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
|
-
import { C as
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { C as TAsTableControls, D as extractIdentifier, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, _ as RowClassHook, b as RowSelectableHook, c as LocalRowAction, f as QueryErrorKind, g as RowAttrsHook, h as RowActionsConfig, i as ConfigTab, l as MainActionRequest, n as ApplyUrlQueryOptions, p as ReactiveTableState, r as ColumnMenuConfig, s as InvokeOpts, t as ActionResult, u as NavKeyOptions, v as RowDeleteOpt, w as TVueTableActionInfo, x as RowSelectableVerdict, y as RowHookContext } from "./types-DvWLY5zQ.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-oxyikRAt.cjs";
|
|
5
|
+
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-Dze91qga.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-BSKifGzD.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DJNJ-6dd.cjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CJ2K5zeM.cjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CslPM_c2.cjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-CgvDp7JK.cjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-DvvJi3xx.cjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-CXxLpzbu.cjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-BV2J8PgZ.cjs";
|
|
17
17
|
import { t as _default$9 } from "./as-filter-field.vue-ByQ8xIGq.cjs";
|
|
18
18
|
import { t as _default$10 } from "./as-filter-input.vue-CS4nOk_Q.cjs";
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-DP9fy00Y.cjs";
|
|
20
|
-
import { t as _default$14 } from "./as-row-actions.vue-
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-C49h8PpE.cjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-BgFDv2JQ.cjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
23
|
-
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-BjgxfKhi.cjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-BG_ysCkC.mjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-BPjsiaVt.mjs";
|
|
3
|
-
import { C as
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { C as TAsTableControls, D as extractIdentifier, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, _ as RowClassHook, b as RowSelectableHook, c as LocalRowAction, f as QueryErrorKind, g as RowAttrsHook, h as RowActionsConfig, i as ConfigTab, l as MainActionRequest, n as ApplyUrlQueryOptions, p as ReactiveTableState, r as ColumnMenuConfig, s as InvokeOpts, t as ActionResult, u as NavKeyOptions, v as RowDeleteOpt, w as TVueTableActionInfo, x as RowSelectableVerdict, y as RowHookContext } from "./types-CsgAGRfG.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-BTGQnFH_.mjs";
|
|
5
|
+
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-DnOHVQtA.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-emq84QmP.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DUJgZDXy.mjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-Chs7WTZ9.mjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C0_LDvQw.mjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-BBF0OuU8.mjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-SRkxrvo_.mjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-BvFZZRuY.mjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-Cz52-v6c.mjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-likNLqzF.mjs";
|
|
17
17
|
import { t as _default$9 } from "./as-filter-field.vue-BbXLhd6O.mjs";
|
|
18
18
|
import { t as _default$10 } from "./as-filter-input.vue-B9ma2l9j.mjs";
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-BRjjfPty.mjs";
|
|
20
|
-
import { t as _default$14 } from "./as-row-actions.vue-
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-BCgHsU18.mjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-kfNgVhzn.mjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
23
|
-
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-zGeuzm3w.mjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as ROW_ACTIONS_TYPE, a as useTableContext, b as extractIdentifier, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-
|
|
1
|
+
import { D as ROW_ACTIONS_TYPE, a as useTableContext, b as extractIdentifier, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
3
|
import { n as useTableSelection } from "./use-table-selection-ULbKT2xW.mjs";
|
|
4
|
-
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-
|
|
5
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
6
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
7
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
4
|
+
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-DRN4nlZs.mjs";
|
|
5
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-DT8oU-6r.mjs";
|
|
6
|
+
import { t as useTableComponent } from "./use-table-component-VUFlxIk-.mjs";
|
|
7
|
+
import { t as as_table_root_default } from "./as-table-root-Bza3ZGJZ.mjs";
|
|
8
8
|
import { t as as_cell_array_default } from "./as-cell-array-BWHkJX3I.mjs";
|
|
9
9
|
import { t as as_cell_date_default } from "./as-cell-date-mGlnDeLP.mjs";
|
|
10
10
|
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-CxQOQsns.mjs";
|
|
@@ -13,20 +13,20 @@ import { t as as_cell_number_default } from "./as-cell-number-CP2AZI9g.mjs";
|
|
|
13
13
|
import { t as formatCellValue } from "./format-cell-Bx7wNc4X.mjs";
|
|
14
14
|
import { t as as_cell_union_default } from "./as-cell-union-NHpDCXty.mjs";
|
|
15
15
|
import { t as as_column_menu_default } from "./as-column-menu-BMTS3DO2.mjs";
|
|
16
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
17
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
16
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-DHdpmRo9.mjs";
|
|
17
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-BG5vlbvV.mjs";
|
|
18
18
|
import { t as as_filter_input_default } from "./as-filter-input-C8KmOus8.mjs";
|
|
19
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
20
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
21
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
22
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
23
|
-
import { t as as_filters_default } from "./as-filters-
|
|
24
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
25
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
19
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-Dis7tkN_.mjs";
|
|
20
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Cl8waY_g.mjs";
|
|
21
|
+
import { t as as_window_table_default } from "./as-window-table-ByTXS8yA.mjs";
|
|
22
|
+
import { t as as_filter_field_default } from "./as-filter-field-BKoxTudl.mjs";
|
|
23
|
+
import { t as as_filters_default } from "./as-filters-CxVy00LQ.mjs";
|
|
24
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-C0f_6VxJ.mjs";
|
|
25
|
+
import { t as as_row_actions_default } from "./as-row-actions-B8YANdb4.mjs";
|
|
26
26
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-BVcfhhCb.mjs";
|
|
27
|
-
import { t as as_table_default } from "./as-table-
|
|
28
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
29
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
27
|
+
import { t as as_table_default } from "./as-table-BAoJ60tx.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-z5xUWtvK.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CDItDinB.mjs";
|
|
30
30
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
31
31
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
32
32
|
import { AppPrefsClient, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, collectExportRows, columnFilterType, conditionsForType, defaultCondition, isFilled, isSystemPresetId, isUnavailableError, resolveExportValue, resolveSystemPresets, toCsv, urlQueryConsumesKey, withStableOrder } from "@atscript/ui-table";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
1
2
|
import { Component, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
3
|
+
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
2
4
|
import { ClientError, PageResult, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
3
5
|
import { Uniquery } from "@uniqu/core";
|
|
4
|
-
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
5
|
-
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
6
6
|
|
|
7
7
|
//#region src/composables/state/intent-scope.d.ts
|
|
8
8
|
interface ActionBuckets {
|
|
@@ -52,6 +52,11 @@ interface RowActionsPolicy {
|
|
|
52
52
|
//#region src/types.d.ts
|
|
53
53
|
/** UI-side sentinel for the synthesised row-delete processor. */
|
|
54
54
|
declare const REMOVE_PROCESSOR = "__remove";
|
|
55
|
+
/**
|
|
56
|
+
* Where a renderer places the synthesised row-actions column
|
|
57
|
+
* (`:row-actions-column` on `<AsTable>` / `<AsWindowTable>`).
|
|
58
|
+
*/
|
|
59
|
+
type RowActionsColumnPlacement = "first" | "last" | "merge-select";
|
|
55
60
|
/**
|
|
56
61
|
* Action descriptor used everywhere in vue-table. Widens `processor` to admit
|
|
57
62
|
* the UI-side `__remove` sentinel without leaking into db-client.
|
|
@@ -403,6 +408,14 @@ type TAsCellTypeComponents = {
|
|
|
403
408
|
ref: Component; /** Synthesised row-actions pseudo-column (`:rowActionsColumn` opt-in). */
|
|
404
409
|
__actions?: Component;
|
|
405
410
|
} & Record<string, Component>;
|
|
411
|
+
/**
|
|
412
|
+
* How `applyUrlQuery` treats filters and sorters the URL does not mention.
|
|
413
|
+
* @since 0.1.137
|
|
414
|
+
*/
|
|
415
|
+
interface ApplyUrlQueryOptions {
|
|
416
|
+
/** `"merge"` (default) keeps them, `"replace"` clears them. */
|
|
417
|
+
mode?: "merge" | "replace";
|
|
418
|
+
}
|
|
406
419
|
/**
|
|
407
420
|
* Reactive table state — Vue implementation of the framework-agnostic
|
|
408
421
|
* TableStateData + TableStateMethods interfaces.
|
|
@@ -650,12 +663,20 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
650
663
|
releaseActionForm: () => void;
|
|
651
664
|
/**
|
|
652
665
|
* Hydrate state from a URL query string produced by `stateToUrlQueryString`.
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
666
|
+
* Writes filters / sorters / search / pagination decoded from the URL and
|
|
667
|
+
* unions decoded filter fields into `filterFields`. Echo-guarded against the
|
|
668
|
+
* bridge's own emissions. Does NOT call `query()` — root watchers refetch in
|
|
669
|
+
* reaction to the writes.
|
|
670
|
+
*
|
|
671
|
+
* `mode` decides what happens to filters and sorters the URL does NOT
|
|
672
|
+
* mention (search and pagination always take the URL's value):
|
|
673
|
+
* - `"merge"` (default) — they survive. This is mount-time deep-link
|
|
674
|
+
* hydration, where the URL overlays a preset baseline it must not wipe.
|
|
675
|
+
* - `"replace"` (since 0.1.137) — they are cleared, within whatever the
|
|
676
|
+
* `urlQuerySync` gates actually serialize. This is history navigation,
|
|
677
|
+
* where the URL is a complete snapshot of the synced aspects.
|
|
657
678
|
*/
|
|
658
|
-
applyUrlQuery: (urlString: string) => void;
|
|
679
|
+
applyUrlQuery: (urlString: string, opts?: ApplyUrlQueryOptions) => void;
|
|
659
680
|
/**
|
|
660
681
|
* Build the Uniquery the table's own fetch would send right now — same
|
|
661
682
|
* filters, sorters, search, force-filters and `$select` projection. Used by
|
|
@@ -817,4 +838,4 @@ interface PresetSurface {
|
|
|
817
838
|
lastError: Ref<Error | null>;
|
|
818
839
|
}
|
|
819
840
|
//#endregion
|
|
820
|
-
export {
|
|
841
|
+
export { TAsTableControls as C, extractIdentifier as D, TableNavBridge as E, TAsCellTypeComponents as S, TableActionsState as T, RowClassHook as _, ConfirmOptions as a, RowSelectableHook as b, LocalRowAction as c, PresetConfig as d, QueryErrorKind as f, RowAttrsHook as g, RowActionsConfig as h, ConfigTab as i, MainActionRequest as l, RowActionsColumnPlacement as m, ApplyUrlQueryOptions as n, EnterAction as o, ReactiveTableState as p, ColumnMenuConfig as r, InvokeOpts as s, ActionResult as t, NavKeyOptions as u, RowDeleteOpt as v, TVueTableActionInfo as w, RowSelectableVerdict as x, RowHookContext as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
2
1
|
import { Component, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
3
|
-
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
4
2
|
import { ClientError, PageResult, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
5
3
|
import { Uniquery } from "@uniqu/core";
|
|
4
|
+
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
5
|
+
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
6
6
|
|
|
7
7
|
//#region src/composables/state/intent-scope.d.ts
|
|
8
8
|
interface ActionBuckets {
|
|
@@ -52,6 +52,11 @@ interface RowActionsPolicy {
|
|
|
52
52
|
//#region src/types.d.ts
|
|
53
53
|
/** UI-side sentinel for the synthesised row-delete processor. */
|
|
54
54
|
declare const REMOVE_PROCESSOR = "__remove";
|
|
55
|
+
/**
|
|
56
|
+
* Where a renderer places the synthesised row-actions column
|
|
57
|
+
* (`:row-actions-column` on `<AsTable>` / `<AsWindowTable>`).
|
|
58
|
+
*/
|
|
59
|
+
type RowActionsColumnPlacement = "first" | "last" | "merge-select";
|
|
55
60
|
/**
|
|
56
61
|
* Action descriptor used everywhere in vue-table. Widens `processor` to admit
|
|
57
62
|
* the UI-side `__remove` sentinel without leaking into db-client.
|
|
@@ -403,6 +408,14 @@ type TAsCellTypeComponents = {
|
|
|
403
408
|
ref: Component; /** Synthesised row-actions pseudo-column (`:rowActionsColumn` opt-in). */
|
|
404
409
|
__actions?: Component;
|
|
405
410
|
} & Record<string, Component>;
|
|
411
|
+
/**
|
|
412
|
+
* How `applyUrlQuery` treats filters and sorters the URL does not mention.
|
|
413
|
+
* @since 0.1.137
|
|
414
|
+
*/
|
|
415
|
+
interface ApplyUrlQueryOptions {
|
|
416
|
+
/** `"merge"` (default) keeps them, `"replace"` clears them. */
|
|
417
|
+
mode?: "merge" | "replace";
|
|
418
|
+
}
|
|
406
419
|
/**
|
|
407
420
|
* Reactive table state — Vue implementation of the framework-agnostic
|
|
408
421
|
* TableStateData + TableStateMethods interfaces.
|
|
@@ -650,12 +663,20 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
650
663
|
releaseActionForm: () => void;
|
|
651
664
|
/**
|
|
652
665
|
* Hydrate state from a URL query string produced by `stateToUrlQueryString`.
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
666
|
+
* Writes filters / sorters / search / pagination decoded from the URL and
|
|
667
|
+
* unions decoded filter fields into `filterFields`. Echo-guarded against the
|
|
668
|
+
* bridge's own emissions. Does NOT call `query()` — root watchers refetch in
|
|
669
|
+
* reaction to the writes.
|
|
670
|
+
*
|
|
671
|
+
* `mode` decides what happens to filters and sorters the URL does NOT
|
|
672
|
+
* mention (search and pagination always take the URL's value):
|
|
673
|
+
* - `"merge"` (default) — they survive. This is mount-time deep-link
|
|
674
|
+
* hydration, where the URL overlays a preset baseline it must not wipe.
|
|
675
|
+
* - `"replace"` (since 0.1.137) — they are cleared, within whatever the
|
|
676
|
+
* `urlQuerySync` gates actually serialize. This is history navigation,
|
|
677
|
+
* where the URL is a complete snapshot of the synced aspects.
|
|
657
678
|
*/
|
|
658
|
-
applyUrlQuery: (urlString: string) => void;
|
|
679
|
+
applyUrlQuery: (urlString: string, opts?: ApplyUrlQueryOptions) => void;
|
|
659
680
|
/**
|
|
660
681
|
* Build the Uniquery the table's own fetch would send right now — same
|
|
661
682
|
* filters, sorters, search, force-filters and `$select` projection. Used by
|
|
@@ -817,4 +838,4 @@ interface PresetSurface {
|
|
|
817
838
|
lastError: Ref<Error | null>;
|
|
818
839
|
}
|
|
819
840
|
//#endregion
|
|
820
|
-
export {
|
|
841
|
+
export { TAsTableControls as C, extractIdentifier as D, TableNavBridge as E, TAsCellTypeComponents as S, TableActionsState as T, RowClassHook as _, ConfirmOptions as a, RowSelectableHook as b, LocalRowAction as c, PresetConfig as d, QueryErrorKind as f, RowAttrsHook as g, RowActionsConfig as h, ConfigTab as i, MainActionRequest as l, RowActionsColumnPlacement as m, ApplyUrlQueryOptions as n, EnterAction as o, ReactiveTableState as p, ColumnMenuConfig as r, InvokeOpts as s, ActionResult as t, NavKeyOptions as u, RowDeleteOpt as v, TVueTableActionInfo as w, RowSelectableVerdict as x, RowHookContext as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-
|
|
1
|
+
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-ULbKT2xW.mjs";
|
|
3
3
|
import { createTableDef, getMetaEntry, resetMetaCache } from "@atscript/ui";
|
|
4
4
|
import { computed, inject, isRef, ref, shallowRef, toValue, watch } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
3
3
|
let _atscript_ui = require("@atscript/ui");
|
|
4
4
|
let vue = require("vue");
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { D as ROW_ACTIONS_TYPE, E as ROW_ACTIONS_PATH } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
|
+
import { computed, watch } from "vue";
|
|
3
|
+
import { reorderColumnNames } from "@atscript/ui-table";
|
|
4
|
+
//#region src/composables/use-row-actions-column.ts
|
|
5
|
+
/**
|
|
6
|
+
* The synthesised row-actions pseudo-column, shared by `<AsTable>` and
|
|
7
|
+
* `<AsWindowTable>`. Returns the renderer's effective column list — the base
|
|
8
|
+
* columns with a fixed `__actions` column prepended / appended per
|
|
9
|
+
* `placement` — and opts the table into per-row `$actions` while the column
|
|
10
|
+
* is shown.
|
|
11
|
+
*/
|
|
12
|
+
function useRowActionsColumn(state, opts) {
|
|
13
|
+
watch(() => {
|
|
14
|
+
const placement = opts.placement();
|
|
15
|
+
if (!placement) return false;
|
|
16
|
+
if (placement === "merge-select" && opts.select() !== "none") return false;
|
|
17
|
+
return state.actions.cellRow.length > 0;
|
|
18
|
+
}, (on) => {
|
|
19
|
+
state.includeActions.value = on;
|
|
20
|
+
}, { immediate: true });
|
|
21
|
+
const actionsCol = computed(() => {
|
|
22
|
+
const acts = state.actions.row;
|
|
23
|
+
return {
|
|
24
|
+
path: ROW_ACTIONS_PATH,
|
|
25
|
+
label: "",
|
|
26
|
+
type: ROW_ACTIONS_TYPE,
|
|
27
|
+
sortable: false,
|
|
28
|
+
filterable: false,
|
|
29
|
+
nullable: false,
|
|
30
|
+
order: 0,
|
|
31
|
+
fixed: true,
|
|
32
|
+
width: acts.length === 1 && !acts[0]?.icon ? "8em" : "4em"
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
return computed(() => {
|
|
36
|
+
const base = opts.columns();
|
|
37
|
+
const placement = opts.placement();
|
|
38
|
+
if (placement === false || placement === void 0) return base;
|
|
39
|
+
if (state.actions.row.length === 0) return base;
|
|
40
|
+
if (placement === "first") return [actionsCol.value, ...base];
|
|
41
|
+
if (placement === "last") return [...base, actionsCol.value];
|
|
42
|
+
if (opts.select() === "none") return [actionsCol.value, ...base];
|
|
43
|
+
return base;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/composables/use-table-column-handlers.ts
|
|
48
|
+
/**
|
|
49
|
+
* Pure pass-through handlers shared between the pagination renderer
|
|
50
|
+
* (`<AsTable>`) and the window renderer (`<AsWindowTableBase>`). Selection
|
|
51
|
+
* and row-mouse handlers stay in their owning components because their
|
|
52
|
+
* semantics diverge meaningfully (window has no "all" state; standalone
|
|
53
|
+
* vs Reka renderModes need different gating).
|
|
54
|
+
*/
|
|
55
|
+
function useTableColumnHandlers(state) {
|
|
56
|
+
return {
|
|
57
|
+
onSort(column, direction) {
|
|
58
|
+
state.sorters.value = direction === null ? [] : [{
|
|
59
|
+
field: column.path,
|
|
60
|
+
direction
|
|
61
|
+
}];
|
|
62
|
+
},
|
|
63
|
+
onHide(column) {
|
|
64
|
+
state.columnNames.value = state.columnNames.value.filter((n) => n !== column.path);
|
|
65
|
+
},
|
|
66
|
+
onFilter(column) {
|
|
67
|
+
state.openFilterDialog(column);
|
|
68
|
+
},
|
|
69
|
+
onFiltersOff(column) {
|
|
70
|
+
state.removeFieldFilter(column.path);
|
|
71
|
+
},
|
|
72
|
+
onResetWidth(column) {
|
|
73
|
+
state.resetColumnWidth(column.path);
|
|
74
|
+
},
|
|
75
|
+
onReorder(fromPath, toPath, position) {
|
|
76
|
+
state.columnNames.value = reorderColumnNames(state.columnNames.value, fromPath, toPath, position);
|
|
77
|
+
},
|
|
78
|
+
onClearFilters() {
|
|
79
|
+
state.resetFilters();
|
|
80
|
+
if (state.searchTerm.value) state.searchTerm.value = "";
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { useRowActionsColumn as n, useTableColumnHandlers as t };
|