@atscript/vue-table 0.1.139 → 0.1.141
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-D7NIwc9X.mjs → as-action-menu-content-6dR5q8bs.mjs} +1 -1
- package/dist/{as-action-menu-content-DXuyDZ_X.cjs → as-action-menu-content-AKbIp4Ni.cjs} +1 -1
- package/dist/as-cell-array.d.mts +1 -1
- package/dist/as-cell-date.d.mts +1 -1
- package/dist/as-cell-json.d.mts +1 -1
- package/dist/as-cell-number.d.mts +1 -1
- package/dist/as-cell-union.d.mts +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-Cul3eIz_.d.cts → as-column-menu.vue-DapdB_qF.d.cts} +1 -1
- package/dist/{as-column-menu.vue-Dw2m8ZqD.d.mts → as-column-menu.vue-Ys_sx0VE.d.mts} +1 -1
- package/dist/{as-config-dialog-j_-oUmN7.cjs → as-config-dialog-Chpw_2tu.cjs} +2 -2
- package/dist/{as-config-dialog-DrcYlrOh.mjs → as-config-dialog-UeMU7jTP.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.d.mts +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-Pnt60ALy.mjs → as-confirm-dialog-SIqCOw2p.mjs} +1 -1
- package/dist/{as-confirm-dialog-CStjIWN0.cjs → as-confirm-dialog-hHYVEX9E.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.d.mts +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-CUzahpd_.mjs → as-filter-dialog-DVRhCx6O.mjs} +8 -8
- package/dist/{as-filter-dialog-B6_NvvlM.cjs → as-filter-dialog-Xvj5q09A.cjs} +8 -8
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.d.mts +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-DCUMuu0M.cjs → as-filter-field-B7b2sEG0.cjs} +3 -3
- package/dist/{as-filter-field-3DJh_ICs.mjs → as-filter-field-D4vQCOEU.mjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.d.mts +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input.d.mts +1 -1
- package/dist/{as-filters-CHLPYHNP.cjs → as-filters-CWQgQBCH.cjs} +19 -4
- package/dist/{as-filters-D0DWDyiv.mjs → as-filters-CudeInPr.mjs} +19 -4
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.d.cts +1 -1
- package/dist/as-filters.d.mts +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-filters.vue-BG_ysCkC.d.mts → as-filters.vue-BSgUEh4D.d.mts} +23 -1
- package/dist/{as-filters.vue-DcxDnWAU.d.cts → as-filters.vue-DMXZhQW3.d.cts} +23 -1
- package/dist/{as-preset-dialog-H98DeOMM.mjs → as-preset-dialog-BsWSuY9N.mjs} +2 -2
- package/dist/{as-preset-dialog-RLW0gZDj.cjs → as-preset-dialog-l81WXBmf.cjs} +2 -2
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.d.mts +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-Cw7LB7o1.mjs → as-preset-picker-BTkMqSxH.mjs} +31 -20
- package/dist/{as-preset-picker-yWXEhWEq.cjs → as-preset-picker-Bp4xMTua.cjs} +31 -20
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.d.mts +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/as-residual-filter-BJ4cwFP4.cjs +54 -0
- package/dist/as-residual-filter-D1SGFQ1p.mjs +49 -0
- package/dist/as-residual-filter.cjs +2 -0
- package/dist/as-residual-filter.d.cts +2 -0
- package/dist/as-residual-filter.d.mts +2 -0
- package/dist/as-residual-filter.mjs +2 -0
- package/dist/as-residual-filter.vue-Dfw1l2wS.d.cts +21 -0
- package/dist/as-residual-filter.vue-N89YqlCz.d.mts +21 -0
- package/dist/{as-row-actions-D_TqnP3S.cjs → as-row-actions-9p_BJPga.cjs} +2 -2
- package/dist/{as-row-actions-BvJWHf3j.mjs → as-row-actions-CH8WZ5kN.mjs} +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-DxXodLGq.d.mts → as-row-actions.vue-BOURuyjv.d.mts} +1 -1
- package/dist/{as-row-actions.vue-WRrzvdbJ.d.cts → as-row-actions.vue-BezMFOr6.d.cts} +1 -1
- package/dist/{as-table-D5mMZKKg.mjs → as-table-DmmXWq94.mjs} +3 -3
- package/dist/{as-table-actions-C6moFlxt.mjs → as-table-actions-CFBAxKIS.mjs} +2 -2
- package/dist/{as-table-actions-D91sNgel.cjs → as-table-actions-oxVqSH-G.cjs} +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-CPVhj2ZC.d.mts → as-table-actions.vue-CrZtcxAY.d.mts} +2 -2
- package/dist/{as-table-actions.vue-DB3LW-eI.d.cts → as-table-actions.vue-Dls_1Vze.d.cts} +2 -2
- package/dist/{as-table-base-CyBOmUK9.cjs → as-table-base--MfU8LVN.cjs} +2 -2
- package/dist/{as-table-base-CEpvNFBd.mjs → as-table-base-Cl1XJu4H.mjs} +2 -2
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.d.cts +1 -1
- package/dist/as-table-cell-value.d.mts +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-CVD1zLva.cjs → as-table-fOBpTDrI.cjs} +3 -3
- package/dist/{as-table-header-cell-D7pW2sV3.cjs → as-table-header-cell-10DQEs00.cjs} +1 -1
- package/dist/{as-table-header-cell-CUs-sSBm.mjs → as-table-header-cell-M8g9X9dR.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-DFaRLZZA.d.cts → as-table-header-cell.vue-D-iI_EJY.d.cts} +1 -1
- package/dist/{as-table-header-cell.vue-BDhs3PNi.d.mts → as-table-header-cell.vue-SMBpzqU2.d.mts} +1 -1
- package/dist/{as-table-root-C61wrFd9.mjs → as-table-root-Bl423S7X.mjs} +11 -5
- package/dist/{as-table-root-C7Tr_9W-.cjs → as-table-root-CGXKfCIk.cjs} +11 -5
- 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-Bza3D5F1.d.mts → as-table-root.vue-BROdsTqv.d.mts} +41 -8
- package/dist/{as-table-root.vue-D5Xyux8I.d.cts → as-table-root.vue-D5H8uXFK.d.cts} +41 -8
- package/dist/{as-table-status-D08b0cqn.mjs → as-table-status-Bl9XmWqc.mjs} +5 -5
- package/dist/{as-table-status-B-MjDXNZ.cjs → as-table-status-bbuFDaaK.cjs} +5 -5
- 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-BuZGgKuM.d.cts → as-table.vue-B533pYs6.d.cts} +5 -5
- package/dist/{as-table.vue-CPfERNtx.d.mts → as-table.vue-B_7Y82yW.d.mts} +5 -5
- package/dist/{as-window-table-CjYMF0aX.mjs → as-window-table-CkTJOvu9.mjs} +3 -3
- package/dist/{as-window-table-BfSud7yB.cjs → as-window-table-Dpbezh9D.cjs} +3 -3
- 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-BIjQuSie.d.cts → as-window-table.vue-Bar8mWRL.d.cts} +5 -5
- package/dist/{as-window-table.vue-3egLvwAy.d.mts → as-window-table.vue-OL4KC7Y-.d.mts} +5 -5
- package/dist/index.cjs +23 -48
- package/dist/index.d.cts +11 -11
- package/dist/index.d.mts +23 -23
- package/dist/index.mjs +23 -48
- package/dist/{types-B6N5NDx_.d.cts → types-Cdk5OH1-.d.cts} +61 -5
- package/dist/{types-CgdpcJdd.d.mts → types-Ev-A5h_D.d.mts} +61 -5
- package/dist/{use-table-DUwUfjSZ.mjs → use-table-BG3IZyCO.mjs} +3 -2
- package/dist/{use-table-column-handlers-Do0Z-R9D.cjs → use-table-column-handlers-CWHRcQbE.cjs} +1 -1
- package/dist/{use-table-column-handlers-eKHCfUm_.mjs → use-table-column-handlers-CaT7dYnI.mjs} +1 -1
- package/dist/{use-table-component-wfU13P3L.mjs → use-table-component-OTdgA202.mjs} +1 -1
- package/dist/{use-table-component-DbQDINoa.cjs → use-table-component-Tc_ZvZua.cjs} +1 -1
- package/dist/{use-table-nav-bridge-DRrvQxXq.mjs → use-table-nav-bridge-BNjwR3qy.mjs} +1 -1
- package/dist/{use-table-nav-bridge-BLLVGR1r.cjs → use-table-nav-bridge-ByQo00IH.cjs} +1 -1
- package/dist/{use-table-c4ku22Mx.cjs → use-table-rc6_sYU6.cjs} +3 -2
- package/dist/{use-table-state-BEwXQayO.mjs → use-table-state-BgLIOO31.mjs} +208 -25
- package/dist/{use-table-state-Cnxv0w_E.cjs → use-table-state-CgXY-ruN.cjs} +212 -23
- package/package.json +14 -7
- /package/dist/{as-cell-array.vue-D4vS7C_D.d.mts → as-cell-array.vue-ow34clSF.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-Chs7WTZ9.d.mts → as-cell-date.vue-B4JCr1qP.d.mts} +0 -0
- /package/dist/{as-cell-json.vue-C0_LDvQw.d.mts → as-cell-json.vue-B-T3TuFj.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-BBF0OuU8.d.mts → as-cell-number.vue-CNH2fbCB.d.mts} +0 -0
- /package/dist/{as-cell-union.vue-CL-Lf-Rm.d.mts → as-cell-union.vue-CZwN81H4.d.mts} +0 -0
- /package/dist/{as-config-dialog.vue-BvFZZRuY.d.mts → as-config-dialog.vue-BKo2GpzN.d.mts} +0 -0
- /package/dist/{as-confirm-dialog.vue-Cz52-v6c.d.mts → as-confirm-dialog.vue-BN_yzu3h.d.mts} +0 -0
- /package/dist/{as-filter-dialog.vue-likNLqzF.d.mts → as-filter-dialog.vue-Bl8OIKOf.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-BbXLhd6O.d.mts → as-filter-field.vue-DD0IZXS1.d.mts} +0 -0
- /package/dist/{as-filter-input.vue-B9ma2l9j.d.mts → as-filter-input.vue-CFZ33B--.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-BRjjfPty.d.mts → as-preset-dialog.vue-ChM7H7B4.d.mts} +0 -0
- /package/dist/{as-preset-picker.vue-BPjsiaVt.d.mts → as-preset-picker.vue-OaAV2v9z.d.mts} +0 -0
- /package/dist/{as-table-cell-value-Ct0KnyKc.cjs → as-table-cell-value-COyZnwUj.cjs} +0 -0
- /package/dist/{as-table-cell-value-D1eLiQKJ.mjs → as-table-cell-value-DoH8Mieo.mjs} +0 -0
- /package/dist/{as-table-cell-value.vue-BgFDv2JQ.d.cts → as-table-cell-value.vue-C0VR9GRK.d.cts} +0 -0
- /package/dist/{as-table-cell-value.vue-kfNgVhzn.d.mts → as-table-cell-value.vue-DphckGq-.d.mts} +0 -0
- /package/dist/{error-message-CglODWl4.cjs → error-message-CfKpn_5w.cjs} +0 -0
- /package/dist/{error-message-hPSAu8Ug.mjs → error-message-gNEXnnbb.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as RowAttrsHook, h as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowClassHook, x as RowSelectableHook, y as RowDeleteOpt } from "./types-Cdk5OH1-.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -99,16 +99,18 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
99
99
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
100
100
|
};
|
|
101
101
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
102
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
102
103
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
103
104
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
104
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
105
105
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
106
106
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
107
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
107
108
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
108
109
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
109
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
110
110
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
111
111
|
}>, {
|
|
112
|
+
rowHeight: number;
|
|
113
|
+
wheelRowsPerTick: number;
|
|
112
114
|
select: SelectionMode;
|
|
113
115
|
reorderable: boolean;
|
|
114
116
|
resizable: boolean;
|
|
@@ -116,8 +118,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
116
118
|
rowDelete: boolean | RowDeleteOpt;
|
|
117
119
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
118
120
|
headless: boolean;
|
|
119
|
-
rowHeight: number;
|
|
120
|
-
wheelRowsPerTick: number;
|
|
121
121
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
122
122
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
123
123
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as RowAttrsHook, h as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowClassHook, x as RowSelectableHook, y as RowDeleteOpt } from "./types-Ev-A5h_D.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -99,16 +99,18 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
99
99
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
100
100
|
};
|
|
101
101
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
102
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
102
103
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
103
104
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
104
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
105
105
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
106
106
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
107
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
107
108
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
108
109
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
109
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
110
110
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
111
111
|
}>, {
|
|
112
|
+
rowHeight: number;
|
|
113
|
+
wheelRowsPerTick: number;
|
|
112
114
|
select: SelectionMode;
|
|
113
115
|
reorderable: boolean;
|
|
114
116
|
resizable: boolean;
|
|
@@ -116,8 +118,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
116
118
|
rowDelete: boolean | RowDeleteOpt;
|
|
117
119
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
118
120
|
headless: boolean;
|
|
119
|
-
rowHeight: number;
|
|
120
|
-
wheelRowsPerTick: number;
|
|
121
121
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
122
122
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
123
123
|
declare const _default: typeof __VLS_export;
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-CgXY-ruN.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-
|
|
5
|
+
const require_use_table = require("./use-table-rc6_sYU6.cjs");
|
|
6
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-ByQo00IH.cjs");
|
|
7
|
+
const require_use_table_component = require("./use-table-component-Tc_ZvZua.cjs");
|
|
8
8
|
const require_as_cell_array = require("./as-cell-array-CCZ0Ajj9.cjs");
|
|
9
9
|
const require_as_cell_date = require("./as-cell-date-RU5JPJhI.cjs");
|
|
10
10
|
const require_use_cell_locale = require("./use-cell-locale-BGBRQB7s.cjs");
|
|
@@ -13,24 +13,26 @@ const require_as_cell_number = require("./as-cell-number-DGJCTXDf.cjs");
|
|
|
13
13
|
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-LOGvhPeK.cjs");
|
|
15
15
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
16
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
17
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-Chpw_2tu.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-hHYVEX9E.cjs");
|
|
18
18
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
19
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
20
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
21
|
-
const require_as_window_table = require("./as-window-table-
|
|
22
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-Xvj5q09A.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-10DQEs00.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-Dpbezh9D.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-B7b2sEG0.cjs");
|
|
23
|
+
const require_as_residual_filter = require("./as-residual-filter-BJ4cwFP4.cjs");
|
|
24
|
+
const require_as_filters = require("./as-filters-CWQgQBCH.cjs");
|
|
25
|
+
const require_as_preset_dialog = require("./as-preset-dialog-l81WXBmf.cjs");
|
|
26
|
+
const require_as_row_actions = require("./as-row-actions-9p_BJPga.cjs");
|
|
27
|
+
const require_as_table_cell_value = require("./as-table-cell-value-COyZnwUj.cjs");
|
|
28
|
+
const require_as_table_root = require("./as-table-root-CGXKfCIk.cjs");
|
|
29
|
+
const require_as_table = require("./as-table-fOBpTDrI.cjs");
|
|
30
|
+
const require_as_table_actions = require("./as-table-actions-oxVqSH-G.cjs");
|
|
31
|
+
const require_as_preset_picker = require("./as-preset-picker-Bp4xMTua.cjs");
|
|
31
32
|
let _atscript_ui = require("@atscript/ui");
|
|
32
33
|
let vue = require("vue");
|
|
33
34
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
35
|
+
let _uniqu_url = require("@uniqu/url");
|
|
34
36
|
let _vueuse_core = require("@vueuse/core");
|
|
35
37
|
//#region src/composables/use-table-export.ts
|
|
36
38
|
/**
|
|
@@ -293,35 +295,6 @@ function useTableActions() {
|
|
|
293
295
|
}
|
|
294
296
|
//#endregion
|
|
295
297
|
//#region src/composables/use-table-url-query.ts
|
|
296
|
-
/**
|
|
297
|
-
* Split a uniqu URL string on top-level `&` separators, respecting
|
|
298
|
-
* single-quoted string literals (`name='foo&bar'` is one segment, not two).
|
|
299
|
-
* Within a quote, `\'` escapes a literal apostrophe per @uniqu/url's encoder.
|
|
300
|
-
* Empty segments (from leading/trailing/double `&`) are dropped.
|
|
301
|
-
*/
|
|
302
|
-
function splitSegments(urlString) {
|
|
303
|
-
if (!urlString) return [];
|
|
304
|
-
const out = [];
|
|
305
|
-
let start = 0;
|
|
306
|
-
let inQuote = false;
|
|
307
|
-
const push = (end) => {
|
|
308
|
-
if (end > start) out.push(urlString.slice(start, end));
|
|
309
|
-
};
|
|
310
|
-
for (let i = 0; i < urlString.length; i++) {
|
|
311
|
-
const c = urlString[i];
|
|
312
|
-
if (c === "\\" && inQuote) {
|
|
313
|
-
i++;
|
|
314
|
-
continue;
|
|
315
|
-
}
|
|
316
|
-
if (c === "'") inQuote = !inQuote;
|
|
317
|
-
else if (c === "&" && !inQuote) {
|
|
318
|
-
push(i);
|
|
319
|
-
start = i + 1;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
push(urlString.length);
|
|
323
|
-
return out;
|
|
324
|
-
}
|
|
325
298
|
const KEY_CHAR = /[A-Za-z0-9_.$-]/;
|
|
326
299
|
/**
|
|
327
300
|
* Index of `=` if every char before it is URL-key-safe. Returns -1 when any
|
|
@@ -397,7 +370,8 @@ function useTableUrlQuery(route, router, opts = {}) {
|
|
|
397
370
|
},
|
|
398
371
|
set: (urlString) => {
|
|
399
372
|
const serialized = /* @__PURE__ */ new Map();
|
|
400
|
-
for (const segment of
|
|
373
|
+
for (const segment of (0, _uniqu_url.splitUrlSegments)(urlString)) {
|
|
374
|
+
if (!segment) continue;
|
|
401
375
|
const eqIdx = findCleanEq(segment);
|
|
402
376
|
const key = eqIdx > 0 ? `${prefix}${segment.slice(0, eqIdx)}` : `${prefix}${segment}`;
|
|
403
377
|
serialized.set(key, eqIdx > 0 ? segment.slice(eqIdx + 1) : null);
|
|
@@ -638,6 +612,7 @@ function createDefaultControls() {
|
|
|
638
612
|
filterDialog: require_as_filter_dialog.as_filter_dialog_default,
|
|
639
613
|
filterInput: require_as_filter_input.as_filter_input_default,
|
|
640
614
|
filterField: require_as_filter_field.as_filter_field_default,
|
|
615
|
+
residualFilter: require_as_residual_filter.as_residual_filter_default,
|
|
641
616
|
configDialog: require_as_config_dialog.as_config_dialog_default,
|
|
642
617
|
confirmDialog: require_as_confirm_dialog.as_confirm_dialog_default
|
|
643
618
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as _default$11 } from "./as-filters.vue-
|
|
1
|
+
import { t as _default$11 } from "./as-filters.vue-DMXZhQW3.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 TAsCellTypeComponents, D as TableNavBridge, E as TableActionsState, O as extractIdentifier, S as RowSelectableVerdict, T as TVueTableActionInfo, _ as RowAttrsHook, b as RowHookContext, c as InvokeOpts, d as NavKeyOptions, g as RowActionsConfig, i as ConfigTab, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowClassHook, w as TAsTableControls, x as RowSelectableHook, y as RowDeleteOpt } from "./types-Cdk5OH1-.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-Dls_1Vze.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-D5H8uXFK.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-B533pYs6.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-Bar8mWRL.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-DapdB_qF.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-
|
|
21
|
-
import { t as _default$17 } from "./as-table-cell-value.vue-
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
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 };
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-BezMFOr6.cjs";
|
|
21
|
+
import { t as _default$17 } from "./as-table-cell-value.vue-C0VR9GRK.cjs";
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-D-iI_EJY.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, DroppedFieldsReport, 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
|
-
import { t as _default$11 } from "./as-filters.vue-
|
|
2
|
-
import { t as _default$13 } from "./as-preset-picker.vue-
|
|
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-
|
|
8
|
-
import { t as _default } from "./as-cell-array.vue-
|
|
9
|
-
import { t as _default$1 } from "./as-cell-date.vue-
|
|
10
|
-
import { t as _default$2 } from "./as-cell-json.vue-
|
|
11
|
-
import { t as _default$3 } from "./as-cell-number.vue-
|
|
12
|
-
import { t as _default$4 } from "./as-cell-union.vue-
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
14
|
-
import { t as _default$6 } from "./as-config-dialog.vue-
|
|
15
|
-
import { t as _default$7 } from "./as-confirm-dialog.vue-
|
|
16
|
-
import { t as _default$8 } from "./as-filter-dialog.vue-
|
|
17
|
-
import { t as _default$9 } from "./as-filter-field.vue-
|
|
18
|
-
import { t as _default$10 } from "./as-filter-input.vue-
|
|
19
|
-
import { t as _default$12 } from "./as-preset-dialog.vue-
|
|
20
|
-
import { t as _default$14 } from "./as-row-actions.vue-
|
|
21
|
-
import { t as _default$17 } from "./as-table-cell-value.vue-
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
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 };
|
|
1
|
+
import { t as _default$11 } from "./as-filters.vue-BSgUEh4D.mjs";
|
|
2
|
+
import { t as _default$13 } from "./as-preset-picker.vue-OaAV2v9z.mjs";
|
|
3
|
+
import { C as TAsCellTypeComponents, D as TableNavBridge, E as TableActionsState, O as extractIdentifier, S as RowSelectableVerdict, T as TVueTableActionInfo, _ as RowAttrsHook, b as RowHookContext, c as InvokeOpts, d as NavKeyOptions, g as RowActionsConfig, i as ConfigTab, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowClassHook, w as TAsTableControls, x as RowSelectableHook, y as RowDeleteOpt } from "./types-Ev-A5h_D.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-CrZtcxAY.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-BROdsTqv.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-B_7Y82yW.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-OL4KC7Y-.mjs";
|
|
8
|
+
import { t as _default } from "./as-cell-array.vue-ow34clSF.mjs";
|
|
9
|
+
import { t as _default$1 } from "./as-cell-date.vue-B4JCr1qP.mjs";
|
|
10
|
+
import { t as _default$2 } from "./as-cell-json.vue-B-T3TuFj.mjs";
|
|
11
|
+
import { t as _default$3 } from "./as-cell-number.vue-CNH2fbCB.mjs";
|
|
12
|
+
import { t as _default$4 } from "./as-cell-union.vue-CZwN81H4.mjs";
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-Ys_sx0VE.mjs";
|
|
14
|
+
import { t as _default$6 } from "./as-config-dialog.vue-BKo2GpzN.mjs";
|
|
15
|
+
import { t as _default$7 } from "./as-confirm-dialog.vue-BN_yzu3h.mjs";
|
|
16
|
+
import { t as _default$8 } from "./as-filter-dialog.vue-Bl8OIKOf.mjs";
|
|
17
|
+
import { t as _default$9 } from "./as-filter-field.vue-DD0IZXS1.mjs";
|
|
18
|
+
import { t as _default$10 } from "./as-filter-input.vue-CFZ33B--.mjs";
|
|
19
|
+
import { t as _default$12 } from "./as-preset-dialog.vue-ChM7H7B4.mjs";
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-BOURuyjv.mjs";
|
|
21
|
+
import { t as _default$17 } from "./as-table-cell-value.vue-DphckGq-.mjs";
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-SMBpzqU2.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, DroppedFieldsReport, 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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as extractIdentifier, a as useTableContext, k as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-BgLIOO31.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-
|
|
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-BG3IZyCO.mjs";
|
|
5
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-BNjwR3qy.mjs";
|
|
6
|
+
import { t as useTableComponent } from "./use-table-component-OTdgA202.mjs";
|
|
7
7
|
import { t as as_cell_array_default } from "./as-cell-array-Bgc4GYZf.mjs";
|
|
8
8
|
import { t as as_cell_date_default } from "./as-cell-date-B9mu0OOD.mjs";
|
|
9
9
|
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-MQXoONh5.mjs";
|
|
@@ -12,24 +12,26 @@ import { t as as_cell_number_default } from "./as-cell-number-CNDT6gfw.mjs";
|
|
|
12
12
|
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-DMnoa7RM.mjs";
|
|
14
14
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.mjs";
|
|
15
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
16
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-UeMU7jTP.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-SIqCOw2p.mjs";
|
|
17
17
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
18
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
19
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
20
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
21
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-DVRhCx6O.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-M8g9X9dR.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-CkTJOvu9.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-D4vQCOEU.mjs";
|
|
22
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-D1SGFQ1p.mjs";
|
|
23
|
+
import { t as as_filters_default } from "./as-filters-CudeInPr.mjs";
|
|
24
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-BsWSuY9N.mjs";
|
|
25
|
+
import { t as as_row_actions_default } from "./as-row-actions-CH8WZ5kN.mjs";
|
|
26
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-DoH8Mieo.mjs";
|
|
27
|
+
import { t as as_table_root_default } from "./as-table-root-Bl423S7X.mjs";
|
|
28
|
+
import { t as as_table_default } from "./as-table-DmmXWq94.mjs";
|
|
29
|
+
import { t as as_table_actions_default } from "./as-table-actions-CFBAxKIS.mjs";
|
|
30
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-BTkMqSxH.mjs";
|
|
30
31
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
31
32
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
32
33
|
import { AppPrefsClient, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, collectExportRows, columnDefaultCondition, columnFilterConditions, columnFilterType, isFilled, isSystemPresetId, isUnavailableError, resolveExportValue, resolveSystemPresets, toCsv, urlQueryConsumesKey, withStableOrder } from "@atscript/ui-table";
|
|
34
|
+
import { splitUrlSegments } from "@uniqu/url";
|
|
33
35
|
import { StorageSerializers, useEventBus, useStorage } from "@vueuse/core";
|
|
34
36
|
//#region src/composables/use-table-export.ts
|
|
35
37
|
/**
|
|
@@ -292,35 +294,6 @@ function useTableActions() {
|
|
|
292
294
|
}
|
|
293
295
|
//#endregion
|
|
294
296
|
//#region src/composables/use-table-url-query.ts
|
|
295
|
-
/**
|
|
296
|
-
* Split a uniqu URL string on top-level `&` separators, respecting
|
|
297
|
-
* single-quoted string literals (`name='foo&bar'` is one segment, not two).
|
|
298
|
-
* Within a quote, `\'` escapes a literal apostrophe per @uniqu/url's encoder.
|
|
299
|
-
* Empty segments (from leading/trailing/double `&`) are dropped.
|
|
300
|
-
*/
|
|
301
|
-
function splitSegments(urlString) {
|
|
302
|
-
if (!urlString) return [];
|
|
303
|
-
const out = [];
|
|
304
|
-
let start = 0;
|
|
305
|
-
let inQuote = false;
|
|
306
|
-
const push = (end) => {
|
|
307
|
-
if (end > start) out.push(urlString.slice(start, end));
|
|
308
|
-
};
|
|
309
|
-
for (let i = 0; i < urlString.length; i++) {
|
|
310
|
-
const c = urlString[i];
|
|
311
|
-
if (c === "\\" && inQuote) {
|
|
312
|
-
i++;
|
|
313
|
-
continue;
|
|
314
|
-
}
|
|
315
|
-
if (c === "'") inQuote = !inQuote;
|
|
316
|
-
else if (c === "&" && !inQuote) {
|
|
317
|
-
push(i);
|
|
318
|
-
start = i + 1;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
push(urlString.length);
|
|
322
|
-
return out;
|
|
323
|
-
}
|
|
324
297
|
const KEY_CHAR = /[A-Za-z0-9_.$-]/;
|
|
325
298
|
/**
|
|
326
299
|
* Index of `=` if every char before it is URL-key-safe. Returns -1 when any
|
|
@@ -396,7 +369,8 @@ function useTableUrlQuery(route, router, opts = {}) {
|
|
|
396
369
|
},
|
|
397
370
|
set: (urlString) => {
|
|
398
371
|
const serialized = /* @__PURE__ */ new Map();
|
|
399
|
-
for (const segment of
|
|
372
|
+
for (const segment of splitUrlSegments(urlString)) {
|
|
373
|
+
if (!segment) continue;
|
|
400
374
|
const eqIdx = findCleanEq(segment);
|
|
401
375
|
const key = eqIdx > 0 ? `${prefix}${segment.slice(0, eqIdx)}` : `${prefix}${segment}`;
|
|
402
376
|
serialized.set(key, eqIdx > 0 ? segment.slice(eqIdx + 1) : null);
|
|
@@ -637,6 +611,7 @@ function createDefaultControls() {
|
|
|
637
611
|
filterDialog: as_filter_dialog_default,
|
|
638
612
|
filterInput: as_filter_input_default,
|
|
639
613
|
filterField: as_filter_field_default,
|
|
614
|
+
residualFilter: as_residual_filter_default,
|
|
640
615
|
configDialog: as_config_dialog_default,
|
|
641
616
|
confirmDialog: as_confirm_dialog_default
|
|
642
617
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
2
2
|
import { ClientError, PageResult, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
3
|
-
import { Uniquery } from "@uniqu/core";
|
|
3
|
+
import { FilterExpr, Uniquery } from "@uniqu/core";
|
|
4
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";
|
|
5
|
+
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, DroppedFields, 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 {
|
|
@@ -369,6 +369,11 @@ interface TAsTableControls {
|
|
|
369
369
|
filterDialog?: Component;
|
|
370
370
|
filterField?: Component;
|
|
371
371
|
filterValueHelp?: Component;
|
|
372
|
+
/**
|
|
373
|
+
* One residual filter condition's chip in `<AsFilters>` — receives
|
|
374
|
+
* `expr` and `index`. Default `AsResidualFilter`. Since 0.1.140.
|
|
375
|
+
*/
|
|
376
|
+
residualFilter?: Component;
|
|
372
377
|
configDialog?: Component;
|
|
373
378
|
fieldsSelector?: Component;
|
|
374
379
|
sortersConfig?: Component;
|
|
@@ -408,6 +413,28 @@ type TAsCellTypeComponents = {
|
|
|
408
413
|
ref: Component; /** Synthesised row-actions pseudo-column (`:rowActionsColumn` opt-in). */
|
|
409
414
|
__actions?: Component;
|
|
410
415
|
} & Record<string, Component>;
|
|
416
|
+
/**
|
|
417
|
+
* What the table left out because it names a field outside the columns this
|
|
418
|
+
* caller can use — a field hidden from their role, or gone from the schema.
|
|
419
|
+
* Sent to `onFieldsDropped` / `@fields-dropped` once per apply, only when
|
|
420
|
+
* something was dropped. `fields` lists the unavailable paths; the other
|
|
421
|
+
* lists hold the dropped entries themselves.
|
|
422
|
+
*
|
|
423
|
+
* - `"preset"` — a preset applied (picker switch, reset, raw snapshot, and
|
|
424
|
+
* the bootstrap default with the local draft laid over it).
|
|
425
|
+
* - `"url"` — a restored URL (deep link, shared link, Back/Forward). Its
|
|
426
|
+
* dropped filter pieces are listed in `residual`, as whole expressions.
|
|
427
|
+
*
|
|
428
|
+
* State written straight to the model is not reported: the query leaves such
|
|
429
|
+
* fields out (a dev-mode warning names them once).
|
|
430
|
+
*
|
|
431
|
+
* @since 0.1.141
|
|
432
|
+
*/
|
|
433
|
+
interface DroppedFieldsReport extends DroppedFields {
|
|
434
|
+
source: "preset" | "url";
|
|
435
|
+
/** The preset whose apply dropped the entries (`"preset"`). */
|
|
436
|
+
presetId?: string;
|
|
437
|
+
}
|
|
411
438
|
/**
|
|
412
439
|
* How `applyUrlQuery` treats filters and sorters the URL does not mention.
|
|
413
440
|
* @since 0.1.137
|
|
@@ -442,6 +469,15 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
442
469
|
columnWidths: Ref<ColumnWidthsMap>;
|
|
443
470
|
filterFields: ShallowRef<string[]>;
|
|
444
471
|
filters: ShallowRef<FieldFilters>;
|
|
472
|
+
/**
|
|
473
|
+
* Residual filter conditions — AND-ed Uniquery conjuncts the field-filter
|
|
474
|
+
* model cannot hold (a cross-field `$or`, a second range on one field, …).
|
|
475
|
+
* AND'd after `filters` into every query, carried through the URL, shown
|
|
476
|
+
* as "custom filter" chips by `<AsFilters>`. Replace wholesale (or use
|
|
477
|
+
* `setResidualFilters` / `removeResidualFilter`); `resetFilters()`
|
|
478
|
+
* clears them. Not saved in presets. Since 0.1.140.
|
|
479
|
+
*/
|
|
480
|
+
residualFilters: ShallowRef<FilterExpr[]>;
|
|
445
481
|
sorters: ShallowRef<SortControl[]>;
|
|
446
482
|
results: ShallowRef<Record<string, unknown>[]>;
|
|
447
483
|
/** Absolute index where `results[0]` sits. */
|
|
@@ -686,6 +722,11 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
686
722
|
* the baseline.
|
|
687
723
|
*
|
|
688
724
|
* `opts.mode` overrides the marker either way. Since 0.1.139.
|
|
725
|
+
*
|
|
726
|
+
* Filter pieces the field-filter model cannot hold are restored as
|
|
727
|
+
* `residualFilters` (since 0.1.140). A URL owns every path it mentions —
|
|
728
|
+
* in a field filter or inside such a condition — so on merge the
|
|
729
|
+
* baseline's filters and residual conditions on those paths give way.
|
|
689
730
|
*/
|
|
690
731
|
applyUrlQuery: (urlString: string, opts?: ApplyUrlQueryOptions) => void;
|
|
691
732
|
/**
|
|
@@ -784,8 +825,19 @@ interface PresetSurface {
|
|
|
784
825
|
available: ComputedRef<boolean>;
|
|
785
826
|
/** Currently active preset id (system `'sys:*'` or stored). null = no active. */
|
|
786
827
|
activeId: Ref<string | null>;
|
|
787
|
-
/**
|
|
828
|
+
/**
|
|
829
|
+
* Active preset's snapshot (system presets are aspect-expanded), pruned of
|
|
830
|
+
* fields this caller cannot use — what applying it wrote. The stored row
|
|
831
|
+
* is never rewritten.
|
|
832
|
+
*/
|
|
788
833
|
activeSnapshot: ComputedRef<PresetSnapshot>;
|
|
834
|
+
/**
|
|
835
|
+
* What the active preset names that this caller cannot use — left out
|
|
836
|
+
* when it was applied — or `null`. Derived from the stored preset, so it
|
|
837
|
+
* follows the active id. `<AsPresetPicker>` shows a quiet note while set.
|
|
838
|
+
* Since 0.1.141.
|
|
839
|
+
*/
|
|
840
|
+
droppedFields: ComputedRef<DroppedFieldsReport | null>;
|
|
789
841
|
/** True when the current snapshot ≠ active preset's claimed aspects. */
|
|
790
842
|
isDirty: ComputedRef<boolean>;
|
|
791
843
|
/** True iff the active preset is owned by the current user (gates Save). */
|
|
@@ -811,7 +863,11 @@ interface PresetSurface {
|
|
|
811
863
|
* if it still references a known preset, else `STANDARD_PRESET_ID`.
|
|
812
864
|
*/
|
|
813
865
|
resolveDefaultId: () => string;
|
|
814
|
-
/**
|
|
866
|
+
/**
|
|
867
|
+
* Re-capture the active preset's existing aspect mask. Never widens.
|
|
868
|
+
* Entries on fields this caller cannot use (`droppedFields`) are appended
|
|
869
|
+
* back after the visible ones, so they survive the overwrite.
|
|
870
|
+
*/
|
|
815
871
|
saveActive: () => Promise<void>;
|
|
816
872
|
/** Create a new preset and switch the active id to it. */
|
|
817
873
|
saveAs: (label: string, opts?: {
|
|
@@ -849,4 +905,4 @@ interface PresetSurface {
|
|
|
849
905
|
lastError: Ref<Error | null>;
|
|
850
906
|
}
|
|
851
907
|
//#endregion
|
|
852
|
-
export {
|
|
908
|
+
export { TAsCellTypeComponents as C, TableNavBridge as D, TableActionsState as E, extractIdentifier as O, RowSelectableVerdict as S, TVueTableActionInfo as T, RowAttrsHook as _, ConfirmOptions as a, RowHookContext as b, InvokeOpts as c, NavKeyOptions as d, PresetConfig as f, RowActionsConfig as g, RowActionsColumnPlacement as h, ConfigTab as i, LocalRowAction as l, ReactiveTableState as m, ApplyUrlQueryOptions as n, DroppedFieldsReport as o, QueryErrorKind as p, ColumnMenuConfig as r, EnterAction as s, ActionResult as t, MainActionRequest as u, RowClassHook as v, TAsTableControls as w, RowSelectableHook as x, RowDeleteOpt as y };
|