@atscript/vue-table 0.1.91 → 0.1.93

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.
Files changed (83) hide show
  1. package/dist/as-action-form-dialog.cjs +1 -1
  2. package/dist/as-action-form-dialog.mjs +1 -1
  3. package/dist/{as-action-menu-content-CyUfBrWH.cjs → as-action-menu-content-CSPPMACR.cjs} +1 -1
  4. package/dist/{as-action-menu-content-CXsdPn42.mjs → as-action-menu-content-DXWuttt_.mjs} +1 -1
  5. package/dist/{as-cell-date-CTrvxS1h.cjs → as-cell-date-D0rowX5E.cjs} +6 -2
  6. package/dist/{as-cell-date-Cq49RHmL.mjs → as-cell-date-DPWBlhyM.mjs} +6 -2
  7. package/dist/as-cell-date.cjs +1 -1
  8. package/dist/as-cell-date.mjs +1 -1
  9. package/dist/{as-config-dialog-vRklaKbi.mjs → as-config-dialog-BB6BDa1E.mjs} +1 -1
  10. package/dist/{as-config-dialog-d2k7_l0U.cjs → as-config-dialog-BCvtSxi6.cjs} +1 -1
  11. package/dist/as-config-dialog.cjs +1 -1
  12. package/dist/as-config-dialog.mjs +1 -1
  13. package/dist/{as-confirm-dialog-BLh3Ju4-.mjs → as-confirm-dialog-DL0mCEeX.mjs} +1 -1
  14. package/dist/{as-confirm-dialog-BgpIEE2z.cjs → as-confirm-dialog-Xtw2wE1X.cjs} +1 -1
  15. package/dist/as-confirm-dialog.cjs +1 -1
  16. package/dist/as-confirm-dialog.mjs +1 -1
  17. package/dist/{as-filter-dialog-C0HMpUPT.mjs → as-filter-dialog-KGyPqr2P.mjs} +5 -5
  18. package/dist/{as-filter-dialog-DcGvIV3h.cjs → as-filter-dialog-O62-CnIQ.cjs} +5 -5
  19. package/dist/as-filter-dialog.cjs +1 -1
  20. package/dist/as-filter-dialog.mjs +1 -1
  21. package/dist/{as-filter-field-Bqvu2ASN.mjs → as-filter-field-CkiRXHVx.mjs} +4 -3
  22. package/dist/{as-filter-field-B_tYzvvl.cjs → as-filter-field-jL7cnKUR.cjs} +4 -3
  23. package/dist/as-filter-field.cjs +1 -1
  24. package/dist/as-filter-field.mjs +1 -1
  25. package/dist/{as-filters-xRT2qv56.cjs → as-filters-BFpZKtAU.cjs} +2 -2
  26. package/dist/{as-filters-Bxa9ZEMm.mjs → as-filters-BJM-NjUn.mjs} +2 -2
  27. package/dist/as-filters.cjs +1 -1
  28. package/dist/as-filters.mjs +1 -1
  29. package/dist/{as-preset-dialog-BaTfwMnh.cjs → as-preset-dialog-1Xl8DIiN.cjs} +1 -1
  30. package/dist/{as-preset-dialog-BdDRgwf_.mjs → as-preset-dialog-DXbqMVI1.mjs} +1 -1
  31. package/dist/as-preset-dialog.cjs +1 -1
  32. package/dist/as-preset-dialog.mjs +1 -1
  33. package/dist/{as-preset-picker-Ce3crTQy.cjs → as-preset-picker-CkaaKzYB.cjs} +1 -1
  34. package/dist/{as-preset-picker-BQbNEiy9.mjs → as-preset-picker-DJTF47_V.mjs} +1 -1
  35. package/dist/as-preset-picker.cjs +1 -1
  36. package/dist/as-preset-picker.mjs +1 -1
  37. package/dist/{as-row-actions-B6Kob6gt.cjs → as-row-actions-C78cvaf3.cjs} +2 -2
  38. package/dist/{as-row-actions-CeWBBGqh.mjs → as-row-actions-CpEMa5NU.mjs} +2 -2
  39. package/dist/as-row-actions.cjs +1 -1
  40. package/dist/as-row-actions.mjs +1 -1
  41. package/dist/{as-table-Cnw2fOqZ.mjs → as-table-DDyvnBFL.mjs} +3 -3
  42. package/dist/{as-table-actions-BpMiNFni.mjs → as-table-actions-D2-MBvoy.mjs} +2 -2
  43. package/dist/{as-table-actions-BK1Thy2G.cjs → as-table-actions-DtCjMMCI.cjs} +2 -2
  44. package/dist/as-table-actions.cjs +1 -1
  45. package/dist/as-table-actions.d.cts +1 -1
  46. package/dist/as-table-actions.d.mts +1 -1
  47. package/dist/as-table-actions.mjs +1 -1
  48. package/dist/{as-table-actions.vue-pDtCQ0oB.d.cts → as-table-actions.vue-BzRGefEz.d.cts} +1 -1
  49. package/dist/{as-table-actions.vue-riwwEAGF.d.mts → as-table-actions.vue-CMgBBa4-.d.mts} +1 -1
  50. package/dist/{as-table-base-VIz-B_6_.cjs → as-table-base-CHzULili.cjs} +2 -2
  51. package/dist/{as-table-base-D0k4k7k_.mjs → as-table-base-CSrtmIN2.mjs} +2 -2
  52. package/dist/{as-table-root-Cd_g0Lhp.mjs → as-table-root-Bc23Z7we.mjs} +30 -12
  53. package/dist/{as-table-root-DRwM_vYa.cjs → as-table-root-zJdmNnsC.cjs} +30 -12
  54. package/dist/as-table-root.cjs +1 -1
  55. package/dist/as-table-root.d.cts +1 -1
  56. package/dist/as-table-root.d.mts +1 -1
  57. package/dist/as-table-root.mjs +1 -1
  58. package/dist/{as-table-root.vue-CAQzVgay.d.cts → as-table-root.vue-DL3BnZOe.d.cts} +19 -4
  59. package/dist/{as-table-root.vue-Bnooi1I6.d.mts → as-table-root.vue-DtjHgOVP.d.mts} +19 -4
  60. package/dist/{as-table-status-BjRGGuhC.mjs → as-table-status-B11orhFu.mjs} +1 -1
  61. package/dist/{as-table-status-DWYoJIMC.cjs → as-table-status-DKXFSCzE.cjs} +1 -1
  62. package/dist/{as-table-DlDFxdXI.cjs → as-table-v42bV1ea.cjs} +3 -3
  63. package/dist/as-table.cjs +1 -1
  64. package/dist/as-table.d.cts +1 -1
  65. package/dist/as-table.d.mts +1 -1
  66. package/dist/as-table.mjs +1 -1
  67. package/dist/{as-table.vue-vxuudXjo.d.cts → as-table.vue-C1PL0aFi.d.cts} +4 -4
  68. package/dist/{as-table.vue-CH7WH6qe.d.mts → as-table.vue-DHi9pCgA.d.mts} +4 -4
  69. package/dist/{as-window-table-CKIfo3M_.mjs → as-window-table-CDTjX7W5.mjs} +2 -2
  70. package/dist/{as-window-table-DE7_NyEP.cjs → as-window-table-DuwMCDUh.cjs} +2 -2
  71. package/dist/as-window-table.cjs +1 -1
  72. package/dist/as-window-table.d.cts +1 -1
  73. package/dist/as-window-table.d.mts +1 -1
  74. package/dist/as-window-table.mjs +1 -1
  75. package/dist/{as-window-table.vue-DXB5Qan7.d.cts → as-window-table.vue-CgvN_iua.d.cts} +4 -4
  76. package/dist/{as-window-table.vue-7cJ3TUZX.d.mts → as-window-table.vue-Ckjt9VU8.d.mts} +4 -4
  77. package/dist/index.cjs +15 -15
  78. package/dist/index.d.cts +4 -4
  79. package/dist/index.d.mts +4 -4
  80. package/dist/index.mjs +15 -15
  81. package/dist/{use-table-state-C4JbonEZ.mjs → use-table-state-CuZ2OXoY.mjs} +7 -0
  82. package/dist/{use-table-state-MU-vuzui.cjs → use-table-state-DFQ30m-j.cjs} +7 -0
  83. package/package.json +4 -4
@@ -1,20 +1,20 @@
1
- const require_use_table_state = require("./use-table-state-MU-vuzui.cjs");
2
- const require_as_filter_field = require("./as-filter-field-B_tYzvvl.cjs");
3
- const require_as_filter_dialog = require("./as-filter-dialog-DcGvIV3h.cjs");
1
+ const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
2
+ const require_as_filter_field = require("./as-filter-field-jL7cnKUR.cjs");
3
+ const require_as_filter_dialog = require("./as-filter-dialog-O62-CnIQ.cjs");
4
4
  const require_use_table_column_handlers = require("./use-table-column-handlers-CGYAY2xH.cjs");
5
5
  require("./as-cell-array-CXeZzZqt.cjs");
6
- require("./as-cell-date-CTrvxS1h.cjs");
6
+ require("./as-cell-date-D0rowX5E.cjs");
7
7
  require("./as-cell-json-DvHvQ6IL.cjs");
8
8
  require("./as-cell-number-0_WrSCzu.cjs");
9
9
  require("./as-cell-union-CFAI0utz.cjs");
10
10
  require("./as-column-menu-CH9Htz0Q.cjs");
11
- const require_as_config_dialog = require("./as-config-dialog-d2k7_l0U.cjs");
12
- const require_as_confirm_dialog = require("./as-confirm-dialog-BgpIEE2z.cjs");
11
+ require("./as-config-dialog-BCvtSxi6.cjs");
12
+ const require_as_confirm_dialog = require("./as-confirm-dialog-Xtw2wE1X.cjs");
13
13
  require("./as-filter-input--nr72iwX.cjs");
14
14
  require("./as-table-cell-value-CuxRtFn9.cjs");
15
15
  require("./as-table-header-cell-C3zeZUZo.cjs");
16
- const require_as_preset_dialog = require("./as-preset-dialog-BaTfwMnh.cjs");
17
- require("./as-row-actions-B6Kob6gt.cjs");
16
+ require("./as-preset-dialog-1Xl8DIiN.cjs");
17
+ require("./as-row-actions-C78cvaf3.cjs");
18
18
  let vue = require("vue");
19
19
  //#endregion
20
20
  //#region src/components/as-table-root.vue
@@ -61,6 +61,10 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
61
61
  type: Array,
62
62
  required: false
63
63
  },
64
+ alwaysSelected: {
65
+ type: Array,
66
+ required: false
67
+ },
64
68
  queryOnMount: {
65
69
  type: Boolean,
66
70
  required: false,
@@ -145,6 +149,9 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
145
149
  "update:urlQuery"
146
150
  ]),
147
151
  setup(__props, { expose: __expose, emit: __emit }) {
152
+ const AsConfigDialog = (0, vue.defineAsyncComponent)(() => Promise.resolve().then(() => require("./as-config-dialog.cjs")));
153
+ const AsFilterDialog = (0, vue.defineAsyncComponent)(() => Promise.resolve().then(() => require("./as-filter-dialog.cjs")));
154
+ const AsPresetDialog = (0, vue.defineAsyncComponent)(() => Promise.resolve().then(() => require("./as-preset-dialog.cjs")));
148
155
  const LazyActionFormDialog = (0, vue.defineAsyncComponent)(() => Promise.resolve().then(() => require("./as-action-form-dialog.cjs")));
149
156
  const props = __props;
150
157
  const emit = __emit;
@@ -167,6 +174,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
167
174
  selectionPersistence: props.selectionPersistence,
168
175
  forceFilters: props.forceFilters,
169
176
  forceSorters: props.forceSorters,
177
+ alwaysSelected: props.alwaysSelected,
170
178
  queryFn: props.queryFn,
171
179
  queryOnMount: props.queryOnMount,
172
180
  blockQuery: props.blockQuery,
@@ -203,6 +211,16 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
203
211
  }, { immediate: true });
204
212
  require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), require_use_table_column_handlers.useHasEmitListener("onMainAction"));
205
213
  const navBridge = require_as_filter_dialog.useTableNavBridge(state);
214
+ function latchOpened(source) {
215
+ const latched = (0, vue.ref)(false);
216
+ (0, vue.watch)(source, (v) => {
217
+ if (v) latched.value = true;
218
+ });
219
+ return latched;
220
+ }
221
+ const everOpenedConfig = latchOpened(() => state.configDialogOpen.value);
222
+ const everOpenedFilter = latchOpened(() => state.filterDialogColumn.value);
223
+ const everOpenedPreset = latchOpened(() => state.preset.dialogOpen.value);
206
224
  const hasInputFormActions = (0, vue.computed)(() => {
207
225
  const a = state.tableDef.value?.actions;
208
226
  if (!a) return false;
@@ -255,11 +273,11 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
255
273
  actions: (0, vue.unref)(state).actions,
256
274
  prompt: (0, vue.unref)(state).prompt
257
275
  }),
258
- ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.filterDialog ?? (0, vue.unref)(require_as_filter_dialog.as_filter_dialog_default)))),
259
- ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.configDialog ?? (0, vue.unref)(require_as_config_dialog.as_config_dialog_default)))),
276
+ (0, vue.unref)(everOpenedFilter) || props.controls?.filterDialog ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.filterDialog ?? (0, vue.unref)(AsFilterDialog)), { key: 0 })) : (0, vue.createCommentVNode)("v-if", true),
277
+ (0, vue.unref)(everOpenedConfig) || props.controls?.configDialog ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.configDialog ?? (0, vue.unref)(AsConfigDialog)), { key: 1 })) : (0, vue.createCommentVNode)("v-if", true),
260
278
  ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.confirmDialog ?? (0, vue.unref)(require_as_confirm_dialog.as_confirm_dialog_default)))),
261
- (0, vue.unref)(state).preset.available.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.presetDialog ?? (0, vue.unref)(require_as_preset_dialog.as_preset_dialog_default)), { key: 0 })) : (0, vue.createCommentVNode)("v-if", true),
262
- hasInputFormActions.value || props.controls?.actionFormDialog ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.actionFormDialog ?? (0, vue.unref)(LazyActionFormDialog)), { key: 1 })) : (0, vue.createCommentVNode)("v-if", true)
279
+ (0, vue.unref)(state).preset.available.value && ((0, vue.unref)(everOpenedPreset) || props.controls?.presetDialog) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.presetDialog ?? (0, vue.unref)(AsPresetDialog)), { key: 2 })) : (0, vue.createCommentVNode)("v-if", true),
280
+ hasInputFormActions.value || props.controls?.actionFormDialog ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(props.controls?.actionFormDialog ?? (0, vue.unref)(LazyActionFormDialog)), { key: 3 })) : (0, vue.createCommentVNode)("v-if", true)
263
281
  ], 64);
264
282
  };
265
283
  }
@@ -1,2 +1,2 @@
1
- const require_as_table_root = require("./as-table-root-DRwM_vYa.cjs");
1
+ const require_as_table_root = require("./as-table-root-zJdmNnsC.cjs");
2
2
  module.exports = require_as_table_root.as_table_root_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-CAQzVgay.cjs";
1
+ import { t as _default } from "./as-table-root.vue-DL3BnZOe.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-Bnooi1I6.mjs";
1
+ import { t as _default } from "./as-table-root.vue-DtjHgOVP.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_table_root_default } from "./as-table-root-Cd_g0Lhp.mjs";
1
+ import { t as as_table_root_default } from "./as-table-root-Bc23Z7we.mjs";
2
2
  export { as_table_root_default as default };
@@ -201,6 +201,11 @@ interface TableQueryOptions {
201
201
  forceFilters?: FilterExpr;
202
202
  /** Always-applied sorters (prepended before user sorters). */
203
203
  forceSorters?: SortControl[];
204
+ /**
205
+ * Leaf field paths always added to `$select` (deduped, gated by available
206
+ * meta), regardless of which columns are visible. Additive only.
207
+ */
208
+ alwaysSelected?: string[];
204
209
  /** When true, all triggers (query/queryNext/loadRange) early-return. */
205
210
  blockQuery?: boolean;
206
211
  /** Auto-query when metadata loads (default: true). */
@@ -376,6 +381,11 @@ interface UseTableOptions {
376
381
  forceFilters?: FilterExpr;
377
382
  /** Always-applied sorters (prepended before user sorters). */
378
383
  forceSorters?: SortControl[];
384
+ /**
385
+ * Leaf field paths always added to `$select` (deduped, gated by available
386
+ * meta), regardless of which columns are visible. Additive only.
387
+ */
388
+ alwaysSelected?: string[];
379
389
  /** Override the default query function. */
380
390
  queryFn?: QueryFn;
381
391
  /** Auto-query when metadata loads (default: true). */
@@ -2133,6 +2143,11 @@ type __VLS_Props = {
2133
2143
  limit?: number;
2134
2144
  forceFilters?: FilterExpr;
2135
2145
  forceSorters?: SortControl[];
2146
+ /**
2147
+ * Leaf field paths always added to `$select` (deduped, gated by available
2148
+ * meta), regardless of which columns are visible. Additive only.
2149
+ */
2150
+ alwaysSelected?: string[];
2136
2151
  queryOnMount?: boolean;
2137
2152
  queryFn?: (query: Uniquery, page: number, size: number) => Promise<PageResult<Record<string, unknown>>>;
2138
2153
  blockQuery?: boolean;
@@ -2231,17 +2246,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2231
2246
  "update:selectedRows": (value: unknown[]) => any;
2232
2247
  "update:urlQuery": (value: string | undefined) => any;
2233
2248
  } & {
2234
- action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
2235
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
2249
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2250
+ action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2236
2251
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2237
- onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
2252
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2253
+ onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2238
2254
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2239
2255
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
2240
2256
  "onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
2241
2257
  "onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
2242
2258
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2243
2259
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2244
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2245
2260
  }>, {
2246
2261
  queryOnMount: boolean;
2247
2262
  selectionPersistence: SelectionPersistence;
@@ -201,6 +201,11 @@ interface TableQueryOptions {
201
201
  forceFilters?: FilterExpr;
202
202
  /** Always-applied sorters (prepended before user sorters). */
203
203
  forceSorters?: SortControl[];
204
+ /**
205
+ * Leaf field paths always added to `$select` (deduped, gated by available
206
+ * meta), regardless of which columns are visible. Additive only.
207
+ */
208
+ alwaysSelected?: string[];
204
209
  /** When true, all triggers (query/queryNext/loadRange) early-return. */
205
210
  blockQuery?: boolean;
206
211
  /** Auto-query when metadata loads (default: true). */
@@ -376,6 +381,11 @@ interface UseTableOptions {
376
381
  forceFilters?: FilterExpr;
377
382
  /** Always-applied sorters (prepended before user sorters). */
378
383
  forceSorters?: SortControl[];
384
+ /**
385
+ * Leaf field paths always added to `$select` (deduped, gated by available
386
+ * meta), regardless of which columns are visible. Additive only.
387
+ */
388
+ alwaysSelected?: string[];
379
389
  /** Override the default query function. */
380
390
  queryFn?: QueryFn;
381
391
  /** Auto-query when metadata loads (default: true). */
@@ -2133,6 +2143,11 @@ type __VLS_Props = {
2133
2143
  limit?: number;
2134
2144
  forceFilters?: FilterExpr;
2135
2145
  forceSorters?: SortControl[];
2146
+ /**
2147
+ * Leaf field paths always added to `$select` (deduped, gated by available
2148
+ * meta), regardless of which columns are visible. Additive only.
2149
+ */
2150
+ alwaysSelected?: string[];
2136
2151
  queryOnMount?: boolean;
2137
2152
  queryFn?: (query: Uniquery, page: number, size: number) => Promise<PageResult<Record<string, unknown>>>;
2138
2153
  blockQuery?: boolean;
@@ -2231,17 +2246,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2231
2246
  "update:selectedRows": (value: unknown[]) => any;
2232
2247
  "update:urlQuery": (value: string | undefined) => any;
2233
2248
  } & {
2234
- action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
2235
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
2249
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2250
+ action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2236
2251
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2237
- onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
2252
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2253
+ onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2238
2254
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2239
2255
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
2240
2256
  "onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
2241
2257
  "onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
2242
2258
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2243
2259
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2244
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2245
2260
  }>, {
2246
2261
  queryOnMount: boolean;
2247
2262
  selectionPersistence: SelectionPersistence;
@@ -1,4 +1,4 @@
1
- import { o as useTableContextOptional } from "./use-table-state-C4JbonEZ.mjs";
1
+ import { o as useTableContextOptional } from "./use-table-state-CuZ2OXoY.mjs";
2
2
  import { t as as_table_cell_value_default } from "./as-table-cell-value-B1CiJYFn.mjs";
3
3
  import { t as as_table_header_cell_default } from "./as-table-header-cell-CBn_ioCe.mjs";
4
4
  import { UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_STYLES, UI_TABLE_STYLES, getFieldMeta, parseStaticAttrs, resolveAttrs, resolveFieldProp } from "@atscript/ui";
@@ -1,4 +1,4 @@
1
- const require_use_table_state = require("./use-table-state-MU-vuzui.cjs");
1
+ const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
2
2
  const require_as_table_cell_value = require("./as-table-cell-value-CuxRtFn9.cjs");
3
3
  const require_as_table_header_cell = require("./as-table-header-cell-C3zeZUZo.cjs");
4
4
  let _atscript_ui = require("@atscript/ui");
@@ -1,7 +1,7 @@
1
- const require_use_table_state = require("./use-table-state-MU-vuzui.cjs");
2
- const require_as_table_status = require("./as-table-status-DWYoJIMC.cjs");
1
+ const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
2
+ const require_as_table_status = require("./as-table-status-DKXFSCzE.cjs");
3
3
  const require_use_table_column_handlers = require("./use-table-column-handlers-CGYAY2xH.cjs");
4
- const require_as_table_base = require("./as-table-base-VIz-B_6_.cjs");
4
+ const require_as_table_base = require("./as-table-base-CHzULili.cjs");
5
5
  let vue = require("vue");
6
6
  let _atscript_ui_table = require("@atscript/ui-table");
7
7
  //#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
package/dist/as-table.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_table = require("./as-table-DlDFxdXI.cjs");
1
+ const require_as_table = require("./as-table-v42bV1ea.cjs");
2
2
  module.exports = require_as_table.as_table_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-vxuudXjo.cjs";
1
+ import { t as _default } from "./as-table.vue-C1PL0aFi.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-CH7WH6qe.mjs";
1
+ import { t as _default } from "./as-table.vue-DHi9pCgA.mjs";
2
2
  export { _default as default };
package/dist/as-table.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_table_default } from "./as-table-Cnw2fOqZ.mjs";
1
+ import { t as as_table_default } from "./as-table-DDyvnBFL.mjs";
2
2
  export { as_table_default as default };
@@ -53,21 +53,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
53
53
  'query-loading'?: (props: typeof __VLS_24) => any;
54
54
  };
55
55
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
56
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
56
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
57
57
  "row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
58
58
  "row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
59
59
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
60
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
60
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
61
61
  "onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
62
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
63
63
  }>, {
64
64
  select: SelectionMode;
65
- stickyHeader: boolean;
66
- virtualOverscan: number;
67
65
  reorderable: boolean;
68
66
  resizable: boolean;
69
67
  columnMinWidth: number;
70
68
  rowDelete: boolean | RowDeleteOpt;
69
+ stickyHeader: boolean;
70
+ virtualOverscan: number;
71
71
  rowActionsColumn: "first" | "last" | "merge-select" | false;
72
72
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
73
73
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -53,21 +53,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
53
53
  'query-loading'?: (props: typeof __VLS_24) => any;
54
54
  };
55
55
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
56
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
56
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
57
57
  "row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
58
58
  "row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
59
59
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
60
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
60
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
61
61
  "onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
62
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
63
63
  }>, {
64
64
  select: SelectionMode;
65
- stickyHeader: boolean;
66
- virtualOverscan: number;
67
65
  reorderable: boolean;
68
66
  resizable: boolean;
69
67
  columnMinWidth: number;
70
68
  rowDelete: boolean | RowDeleteOpt;
69
+ stickyHeader: boolean;
70
+ virtualOverscan: number;
71
71
  rowActionsColumn: "first" | "last" | "merge-select" | false;
72
72
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
73
73
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,5 +1,5 @@
1
- import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-C4JbonEZ.mjs";
2
- import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, o as useSelectModeReset, r as useRafBatch, t as as_table_status_default } from "./as-table-status-BjRGGuhC.mjs";
1
+ import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-CuZ2OXoY.mjs";
2
+ import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, o as useSelectModeReset, r as useRafBatch, t as as_table_status_default } from "./as-table-status-B11orhFu.mjs";
3
3
  import { n as useHasEmitListener, t as useTableColumnHandlers } from "./use-table-column-handlers-t6xi1yCE.mjs";
4
4
  import { t as getCellValue } from "./get-cell-value-DiH84HKL.mjs";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx, withModifiers } from "vue";
@@ -1,5 +1,5 @@
1
- const require_use_table_state = require("./use-table-state-MU-vuzui.cjs");
2
- const require_as_table_status = require("./as-table-status-DWYoJIMC.cjs");
1
+ const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
2
+ const require_as_table_status = require("./as-table-status-DKXFSCzE.cjs");
3
3
  const require_use_table_column_handlers = require("./use-table-column-handlers-CGYAY2xH.cjs");
4
4
  const require_get_cell_value = require("./get-cell-value-CZSVfDLg.cjs");
5
5
  let vue = require("vue");
@@ -1,2 +1,2 @@
1
- const require_as_window_table = require("./as-window-table-DE7_NyEP.cjs");
1
+ const require_as_window_table = require("./as-window-table-DuwMCDUh.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-DXB5Qan7.cjs";
1
+ import { t as _default } from "./as-window-table.vue-CgvN_iua.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-7cJ3TUZX.mjs";
1
+ import { t as _default } from "./as-window-table.vue-Ckjt9VU8.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_window_table_default } from "./as-window-table-CKIfo3M_.mjs";
1
+ import { t as as_window_table_default } from "./as-window-table-CDTjX7W5.mjs";
2
2
  export { as_window_table_default as default };
@@ -57,23 +57,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
57
57
  'query-loading'?: (props: typeof __VLS_16) => any;
58
58
  };
59
59
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
60
- "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
60
+ "main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
61
61
  "row-click": (row: Row, event: MouseEvent) => any;
62
62
  "row-dblclick": (row: Row, event: MouseEvent) => any;
63
63
  error: (error: Error, kind: QueryErrorKind) => any;
64
64
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
65
- "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
65
+ "onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
66
66
  "onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
67
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
68
68
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
69
69
  }>, {
70
+ rowHeight: number;
71
+ wheelRowsPerTick: number;
70
72
  select: SelectionMode;
71
73
  reorderable: boolean;
72
74
  resizable: boolean;
73
75
  columnMinWidth: number;
74
76
  rowDelete: boolean | RowDeleteOpt;
75
- rowHeight: number;
76
- wheelRowsPerTick: number;
77
77
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
78
78
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
79
79
  declare const _default: typeof __VLS_export;
@@ -57,23 +57,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
57
57
  'query-loading'?: (props: typeof __VLS_16) => any;
58
58
  };
59
59
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
60
- "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
60
+ "main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
61
61
  "row-click": (row: Row, event: MouseEvent) => any;
62
62
  "row-dblclick": (row: Row, event: MouseEvent) => any;
63
63
  error: (error: Error, kind: QueryErrorKind) => any;
64
64
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
65
- "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
65
+ "onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
66
66
  "onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
67
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
68
68
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
69
69
  }>, {
70
+ rowHeight: number;
71
+ wheelRowsPerTick: number;
70
72
  select: SelectionMode;
71
73
  reorderable: boolean;
72
74
  resizable: boolean;
73
75
  columnMinWidth: number;
74
76
  rowDelete: boolean | RowDeleteOpt;
75
- rowHeight: number;
76
- wheelRowsPerTick: number;
77
77
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
78
78
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
79
79
  declare const _default: typeof __VLS_export;
package/dist/index.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_use_table_state = require("./use-table-state-MU-vuzui.cjs");
3
- const require_as_table_status = require("./as-table-status-DWYoJIMC.cjs");
4
- const require_as_filter_field = require("./as-filter-field-B_tYzvvl.cjs");
5
- const require_as_filter_dialog = require("./as-filter-dialog-DcGvIV3h.cjs");
2
+ const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
3
+ const require_as_table_status = require("./as-table-status-DKXFSCzE.cjs");
4
+ const require_as_filter_field = require("./as-filter-field-jL7cnKUR.cjs");
5
+ const require_as_filter_dialog = require("./as-filter-dialog-O62-CnIQ.cjs");
6
6
  const require_get_cell_value = require("./get-cell-value-CZSVfDLg.cjs");
7
7
  const require_as_cell_array = require("./as-cell-array-CXeZzZqt.cjs");
8
- const require_as_cell_date = require("./as-cell-date-CTrvxS1h.cjs");
8
+ const require_as_cell_date = require("./as-cell-date-D0rowX5E.cjs");
9
9
  const require_use_cell_locale = require("./use-cell-locale-B480_QYK.cjs");
10
10
  const require_as_cell_json = require("./as-cell-json-DvHvQ6IL.cjs");
11
11
  const require_as_cell_number = require("./as-cell-number-0_WrSCzu.cjs");
12
12
  const require_format_cell = require("./format-cell-D4mqaN0E.cjs");
13
13
  const require_as_cell_union = require("./as-cell-union-CFAI0utz.cjs");
14
14
  const require_as_column_menu = require("./as-column-menu-CH9Htz0Q.cjs");
15
- const require_as_config_dialog = require("./as-config-dialog-d2k7_l0U.cjs");
16
- const require_as_confirm_dialog = require("./as-confirm-dialog-BgpIEE2z.cjs");
15
+ const require_as_config_dialog = require("./as-config-dialog-BCvtSxi6.cjs");
16
+ const require_as_confirm_dialog = require("./as-confirm-dialog-Xtw2wE1X.cjs");
17
17
  const require_as_filter_input = require("./as-filter-input--nr72iwX.cjs");
18
18
  const require_as_table_cell_value = require("./as-table-cell-value-CuxRtFn9.cjs");
19
19
  const require_as_table_header_cell = require("./as-table-header-cell-C3zeZUZo.cjs");
20
- const require_as_window_table = require("./as-window-table-DE7_NyEP.cjs");
21
- const require_as_filters = require("./as-filters-xRT2qv56.cjs");
22
- const require_as_preset_dialog = require("./as-preset-dialog-BaTfwMnh.cjs");
23
- const require_as_row_actions = require("./as-row-actions-B6Kob6gt.cjs");
24
- const require_as_table_root = require("./as-table-root-DRwM_vYa.cjs");
25
- const require_as_table = require("./as-table-DlDFxdXI.cjs");
26
- const require_as_table_actions = require("./as-table-actions-BK1Thy2G.cjs");
27
- const require_as_preset_picker = require("./as-preset-picker-Ce3crTQy.cjs");
20
+ const require_as_window_table = require("./as-window-table-DuwMCDUh.cjs");
21
+ const require_as_filters = require("./as-filters-BFpZKtAU.cjs");
22
+ const require_as_preset_dialog = require("./as-preset-dialog-1Xl8DIiN.cjs");
23
+ const require_as_row_actions = require("./as-row-actions-C78cvaf3.cjs");
24
+ const require_as_table_root = require("./as-table-root-zJdmNnsC.cjs");
25
+ const require_as_table = require("./as-table-v42bV1ea.cjs");
26
+ const require_as_table_actions = require("./as-table-actions-DtCjMMCI.cjs");
27
+ const require_as_preset_picker = require("./as-preset-picker-CkaaKzYB.cjs");
28
28
  let _atscript_ui = require("@atscript/ui");
29
29
  let vue = require("vue");
30
30
  let _atscript_ui_table = require("@atscript/ui-table");
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as _default$9 } from "./as-filters.vue-fv-tRL2H.cjs";
2
2
  import { t as _default$11 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
3
3
  import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-CNMmF6W2.cjs";
4
- import { t as _default$14 } from "./as-table-actions.vue-pDtCQ0oB.cjs";
5
- import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$17, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-CAQzVgay.cjs";
6
- import { t as _default$13 } from "./as-table.vue-vxuudXjo.cjs";
7
- import { t as _default$18 } from "./as-window-table.vue-DXB5Qan7.cjs";
4
+ import { t as _default$14 } from "./as-table-actions.vue-BzRGefEz.cjs";
5
+ import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$17, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-DL3BnZOe.cjs";
6
+ import { t as _default$13 } from "./as-table.vue-C1PL0aFi.cjs";
7
+ import { t as _default$18 } from "./as-window-table.vue-CgvN_iua.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";
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as _default$9 } from "./as-filters.vue-BsMgYUcX.mjs";
2
2
  import { t as _default$11 } from "./as-preset-picker.vue-CTBk6leV.mjs";
3
3
  import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-BvvXN72P.mjs";
4
- import { t as _default$14 } from "./as-table-actions.vue-riwwEAGF.mjs";
5
- import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$17, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-Bnooi1I6.mjs";
6
- import { t as _default$13 } from "./as-table.vue-CH7WH6qe.mjs";
7
- import { t as _default$18 } from "./as-window-table.vue-7cJ3TUZX.mjs";
4
+ import { t as _default$14 } from "./as-table-actions.vue-CMgBBa4-.mjs";
5
+ import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$17, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-DtjHgOVP.mjs";
6
+ import { t as _default$13 } from "./as-table.vue-DHi9pCgA.mjs";
7
+ import { t as _default$18 } from "./as-window-table.vue-Ckjt9VU8.mjs";
8
8
  import { t as _default } from "./as-cell-array.vue-DZGM2VHh.mjs";
9
9
  import { t as _default$1 } from "./as-cell-date.vue-Zlt4mHWb.mjs";
10
10
  import { t as _default$2 } from "./as-cell-json.vue-CESWuCer.mjs";
package/dist/index.mjs CHANGED
@@ -1,29 +1,29 @@
1
- import { a as useTableContext, d as extractIdentifier, g as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-C4JbonEZ.mjs";
2
- import { s as useTableSelection } from "./as-table-status-BjRGGuhC.mjs";
3
- import { a as useLocalDraft, i as usePresets, n as clearTableCache, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as as_filter_field_default } from "./as-filter-field-Bqvu2ASN.mjs";
4
- import { n as useTableNavBridge, t as as_filter_dialog_default } from "./as-filter-dialog-C0HMpUPT.mjs";
1
+ import { a as useTableContext, d as extractIdentifier, g as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-CuZ2OXoY.mjs";
2
+ import { s as useTableSelection } from "./as-table-status-B11orhFu.mjs";
3
+ import { a as useLocalDraft, i as usePresets, n as clearTableCache, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as as_filter_field_default } from "./as-filter-field-CkiRXHVx.mjs";
4
+ import { n as useTableNavBridge, t as as_filter_dialog_default } from "./as-filter-dialog-KGyPqr2P.mjs";
5
5
  import { t as getCellValue } from "./get-cell-value-DiH84HKL.mjs";
6
6
  import { t as as_cell_array_default } from "./as-cell-array-DOQKR6t5.mjs";
7
- import { t as as_cell_date_default } from "./as-cell-date-Cq49RHmL.mjs";
7
+ import { t as as_cell_date_default } from "./as-cell-date-DPWBlhyM.mjs";
8
8
  import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-1uQaFTLQ.mjs";
9
9
  import { t as as_cell_json_default } from "./as-cell-json-BynWIs1d.mjs";
10
10
  import { t as as_cell_number_default } from "./as-cell-number-Bc1C97Vg.mjs";
11
11
  import { t as formatCellValue } from "./format-cell-B2xMDYO9.mjs";
12
12
  import { t as as_cell_union_default } from "./as-cell-union-C1w3B38J.mjs";
13
13
  import { t as as_column_menu_default } from "./as-column-menu-DCfhorMP.mjs";
14
- import { t as as_config_dialog_default } from "./as-config-dialog-vRklaKbi.mjs";
15
- import { t as as_confirm_dialog_default } from "./as-confirm-dialog-BLh3Ju4-.mjs";
14
+ import { t as as_config_dialog_default } from "./as-config-dialog-BB6BDa1E.mjs";
15
+ import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DL0mCEeX.mjs";
16
16
  import { t as as_filter_input_default } from "./as-filter-input-P1i0CW2-.mjs";
17
17
  import { t as as_table_cell_value_default } from "./as-table-cell-value-B1CiJYFn.mjs";
18
18
  import { t as as_table_header_cell_default } from "./as-table-header-cell-CBn_ioCe.mjs";
19
- import { t as as_window_table_default } from "./as-window-table-CKIfo3M_.mjs";
20
- import { t as as_filters_default } from "./as-filters-Bxa9ZEMm.mjs";
21
- import { t as as_preset_dialog_default } from "./as-preset-dialog-BdDRgwf_.mjs";
22
- import { t as as_row_actions_default } from "./as-row-actions-CeWBBGqh.mjs";
23
- import { t as as_table_root_default } from "./as-table-root-Cd_g0Lhp.mjs";
24
- import { t as as_table_default } from "./as-table-Cnw2fOqZ.mjs";
25
- import { t as as_table_actions_default } from "./as-table-actions-BpMiNFni.mjs";
26
- import { t as as_preset_picker_default } from "./as-preset-picker-BQbNEiy9.mjs";
19
+ import { t as as_window_table_default } from "./as-window-table-CDTjX7W5.mjs";
20
+ import { t as as_filters_default } from "./as-filters-BJM-NjUn.mjs";
21
+ import { t as as_preset_dialog_default } from "./as-preset-dialog-DXbqMVI1.mjs";
22
+ import { t as as_row_actions_default } from "./as-row-actions-CpEMa5NU.mjs";
23
+ import { t as as_table_root_default } from "./as-table-root-Bc23Z7we.mjs";
24
+ import { t as as_table_default } from "./as-table-DDyvnBFL.mjs";
25
+ import { t as as_table_actions_default } from "./as-table-actions-D2-MBvoy.mjs";
26
+ import { t as as_preset_picker_default } from "./as-preset-picker-DJTF47_V.mjs";
27
27
  import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
28
28
  import { computed, effectScope, ref, shallowRef } from "vue";
29
29
  import { AppPrefsClient, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, columnFilterType, conditionsForType, defaultCondition, isAuthError, isFilled, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
@@ -1265,8 +1265,15 @@ function createTableState(opts) {
1265
1265
  let queryDetected = false;
1266
1266
  let skipPaginationWatch = 0;
1267
1267
  function buildCurrentQuery() {
1268
+ const available = new Set(allColumns.value.map((c) => c.path));
1269
+ const extra = /* @__PURE__ */ new Set();
1270
+ for (const c of columns.value) for (const p of c.selectWith ?? []) if (available.has(p)) extra.add(p);
1271
+ if (queryOpts?.alwaysSelected) {
1272
+ for (const p of queryOpts.alwaysSelected) if (available.has(p)) extra.add(p);
1273
+ }
1268
1274
  return buildTableQuery({
1269
1275
  visibleColumnPaths: columnNames.value,
1276
+ extraSelect: extra.size ? [...extra] : void 0,
1270
1277
  sorters: sorters.value,
1271
1278
  forceSorters: queryOpts?.forceSorters,
1272
1279
  filters: filters.value,
@@ -1265,8 +1265,15 @@ function createTableState(opts) {
1265
1265
  let queryDetected = false;
1266
1266
  let skipPaginationWatch = 0;
1267
1267
  function buildCurrentQuery() {
1268
+ const available = new Set(allColumns.value.map((c) => c.path));
1269
+ const extra = /* @__PURE__ */ new Set();
1270
+ for (const c of columns.value) for (const p of c.selectWith ?? []) if (available.has(p)) extra.add(p);
1271
+ if (queryOpts?.alwaysSelected) {
1272
+ for (const p of queryOpts.alwaysSelected) if (available.has(p)) extra.add(p);
1273
+ }
1268
1274
  return (0, _atscript_ui_table.buildTableQuery)({
1269
1275
  visibleColumnPaths: columnNames.value,
1276
+ extraSelect: extra.size ? [...extra] : void 0,
1270
1277
  sorters: sorters.value,
1271
1278
  forceSorters: queryOpts?.forceSorters,
1272
1279
  filters: filters.value,