@atscript/vue-table 0.1.132 → 0.1.134
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 +42 -30
- package/dist/as-action-form-dialog.mjs +42 -30
- package/dist/{as-action-menu-content-C5qx9MPE.cjs → as-action-menu-content-C_D_Fepo.cjs} +1 -1
- package/dist/{as-action-menu-content-4UfcabUe.mjs → as-action-menu-content-rim8hAO9.mjs} +1 -1
- package/dist/{as-cell-array-2qmJ1lT2.mjs → as-cell-array-BWHkJX3I.mjs} +2 -2
- package/dist/{as-cell-array-iPeUnk2G.cjs → as-cell-array-D-8Pqlgo.cjs} +2 -2
- package/dist/as-cell-array.cjs +1 -1
- package/dist/as-cell-array.mjs +1 -1
- package/dist/{as-cell-date-DyixWKuS.cjs → as-cell-date-DviMJEqs.cjs} +2 -2
- package/dist/{as-cell-date-BwFgi6O0.mjs → as-cell-date-mGlnDeLP.mjs} +2 -2
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-cell-json--95Xq6yq.mjs → as-cell-json-2I081xnO.mjs} +2 -2
- package/dist/{as-cell-json-Bvv2P7YV.cjs → as-cell-json-CaVB6e7V.cjs} +2 -2
- package/dist/as-cell-json.cjs +1 -1
- package/dist/as-cell-json.mjs +1 -1
- package/dist/{as-cell-number-DuPMOesI.cjs → as-cell-number-BnYbxOiG.cjs} +2 -2
- package/dist/{as-cell-number-DKRaS9pM.mjs → as-cell-number-CP2AZI9g.mjs} +2 -2
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-cell-union-DJNsEKTi.cjs → as-cell-union-BjMP91PS.cjs} +3 -3
- package/dist/{as-cell-union-C9FukGqF.mjs → as-cell-union-NHpDCXty.mjs} +3 -3
- package/dist/as-cell-union.cjs +1 -1
- package/dist/as-cell-union.mjs +1 -1
- package/dist/as-column-menu.cjs +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/as-column-menu.mjs +1 -1
- package/dist/{as-column-menu.vue-u_DNy3f-.d.cts → as-column-menu.vue-De7SRhj6.d.cts} +1 -1
- package/dist/{as-column-menu.vue-DL5N9mKR.d.mts → as-column-menu.vue-Dg0H1dOd.d.mts} +1 -1
- package/dist/{as-config-dialog-BehfqIGd.mjs → as-config-dialog-BUBHiVlf.mjs} +56 -35
- package/dist/{as-config-dialog-BOYWPYYH.cjs → as-config-dialog-DvBptYMS.cjs} +55 -34
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-UwhDHysk.cjs → as-confirm-dialog-ByMfIG0A.cjs} +12 -9
- package/dist/{as-confirm-dialog-bpN4A-KN.mjs → as-confirm-dialog-G4ZoL_Xo.mjs} +12 -9
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-D1qzq-8b.mjs → as-filter-dialog-BJWH8cvc.mjs} +34 -26
- package/dist/{as-filter-dialog-Dh2Ylthb.cjs → as-filter-dialog-C2oyT0yt.cjs} +33 -25
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-DirBmnbb.mjs → as-filter-field-B2skq4K0.mjs} +4 -4
- package/dist/{as-filter-field-DRsDJdpx.cjs → as-filter-field-DxGfasQj.cjs} +4 -4
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/as-filters-Bhte22La.cjs +130 -0
- package/dist/as-filters-DogNVlqr.mjs +125 -0
- 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 +65 -0
- package/dist/as-filters.vue-DcxDnWAU.d.cts +65 -0
- package/dist/{as-preset-dialog-CDqCAR7N.mjs → as-preset-dialog-BwHV6Y77.mjs} +71 -21
- package/dist/{as-preset-dialog-DpM06jqR.cjs → as-preset-dialog-D2a6nxEX.cjs} +75 -25
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CISaxEZ0.mjs → as-preset-picker-B0JnyAPA.mjs} +39 -15
- package/dist/{as-preset-picker-jUS_YDX8.cjs → as-preset-picker-DbkmapBx.cjs} +45 -21
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-xqJeAdQl.mjs → as-row-actions-BkIsJVBm.mjs} +24 -11
- package/dist/{as-row-actions-Bm6Bzyno.cjs → as-row-actions-CRg8LHGk.cjs} +24 -11
- 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-Bvcc2tUN.d.cts → as-row-actions.vue-VpJsBAJ4.d.mts} +8 -0
- package/dist/{as-row-actions.vue-DUSDuoR2.d.mts → as-row-actions.vue-dn_DKcMm.d.cts} +8 -0
- package/dist/{as-table-CDSG2yED.mjs → as-table-BEvsX87E.mjs} +26 -8
- package/dist/{as-table-actions-DMxeaczm.mjs → as-table-actions-B5upF1bQ.mjs} +69 -18
- package/dist/{as-table-actions-gV4lqqxc.cjs → as-table-actions-B6sKd4sl.cjs} +68 -17
- 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-B-cgiCXP.d.cts → as-table-actions.vue-CoxhpIlJ.d.mts} +2 -2
- package/dist/{as-table-actions.vue-ClMa0OD1.d.mts → as-table-actions.vue-Kic8m28V.d.cts} +2 -2
- package/dist/{as-table-base-BaTE3VSN.mjs → as-table-base-BxKBdIdS.mjs} +142 -47
- package/dist/{as-table-base-RG2TEIgV.cjs → as-table-base-DLuhKz69.cjs} +142 -47
- package/dist/{as-table-cell-value-D1JkTQt0.cjs → as-table-cell-value-BAi5yadc.cjs} +2 -2
- package/dist/{as-table-cell-value-CPcFxSOj.mjs → as-table-cell-value-BVcfhhCb.mjs} +2 -2
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-CIqlO6Lw.cjs → as-table-header-cell-Bv6q5iKA.cjs} +2 -2
- package/dist/{as-table-header-cell-Bdhl5Lox.mjs → as-table-header-cell-Xd3cvnII.mjs} +2 -2
- 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-BCszzxtU.d.mts → as-table-header-cell.vue-AS6u4e6v.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-BzTzfGRo.d.cts → as-table-header-cell.vue-zKOmlzhT.d.mts} +2 -2
- package/dist/{as-table-root-BLReUbRH.mjs → as-table-root-C1A6JkwL.mjs} +112 -10
- package/dist/{as-table-root-DLJ_3Jf4.cjs → as-table-root-DlYjnZax.cjs} +112 -10
- 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-QMT93qPk.d.mts → as-table-root.vue-CWk9YgpG.d.mts} +257 -41
- package/dist/{as-table-root.vue-D0T3n-Vm.d.cts → as-table-root.vue-D94eypcL.d.cts} +258 -42
- package/dist/{as-table-status-Du4WLF4k.cjs → as-table-status-B2HPerJT.cjs} +54 -38
- package/dist/{as-table-status-DGTZlpyq.mjs → as-table-status-QzlBdSiR.mjs} +54 -38
- package/dist/{as-table-BWUPzjRn.cjs → as-table-vJbZyZVx.cjs} +26 -8
- 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-Ds7MEp37.d.cts → as-table.vue-BB1vaNL6.d.cts} +28 -4
- package/dist/{as-table.vue-Ce5606ZO.d.mts → as-table.vue-BUDFTCpo.d.mts} +28 -4
- package/dist/{as-window-table-DWujiUQy.mjs → as-window-table-BH0tDDnr.mjs} +107 -24
- package/dist/{as-window-table-jD_y9yet.cjs → as-window-table-Bl_q72WL.cjs} +107 -24
- 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-DfZF1Mux.d.mts → as-window-table.vue-Be2IA0Eb.d.cts} +27 -4
- package/dist/{as-window-table.vue-Bhf9BK8E.d.cts → as-window-table.vue-CLqFM2ff.d.mts} +27 -4
- package/dist/error-message-CfKpn_5w.cjs +18 -0
- package/dist/error-message-gNEXnnbb.mjs +13 -0
- package/dist/index.cjs +237 -41
- package/dist/index.d.cts +10 -10
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +230 -43
- package/dist/{types-ByU4O0Yf.d.mts → types--ex8BJIO.d.cts} +263 -5
- package/dist/{types-CTMxE_zA.d.cts → types-CBGaTR2Z.d.mts} +263 -5
- package/dist/{use-table-CyFcVtUN.mjs → use-table-BFhbfWgY.mjs} +48 -23
- package/dist/{use-table-component-K6xj1obF.mjs → use-table-component-CRmLHdqi.mjs} +1 -1
- package/dist/{use-table-component-DO_kvKSf.cjs → use-table-component-DS5NJPzs.cjs} +1 -1
- package/dist/{use-table-nav-bridge-uOQUDooh.cjs → use-table-nav-bridge-DS14D_rG.cjs} +1 -1
- package/dist/{use-table-nav-bridge-DeGeaQX-.mjs → use-table-nav-bridge-DzJN5v9a.mjs} +1 -1
- package/dist/{use-table-nvBq1dZ4.cjs → use-table-nvuZdgUd.cjs} +51 -20
- package/dist/{use-table-state-BxX3SpeW.mjs → use-table-state-mBXx11aH.mjs} +501 -105
- package/dist/{use-table-state-Oi2ds4_a.cjs → use-table-state-mhm-YWnu.cjs} +541 -109
- package/package.json +9 -9
- package/dist/as-filters-DCZTHjf5.cjs +0 -51
- package/dist/as-filters-beIud9sF.mjs +0 -46
- package/dist/as-filters.vue-DmECMd1v.d.mts +0 -10
- package/dist/as-filters.vue-fv-tRL2H.d.cts +0 -10
- package/dist/preset-aspect-display-IICxAlVo.mjs +0 -43
- package/dist/preset-aspect-display-TWwf6j1B.cjs +0 -72
- /package/dist/{as-cell-json-popover-Dkdv5Y9E.mjs → as-cell-json-popover-CH5bAcLE.mjs} +0 -0
- /package/dist/{as-cell-json-popover-BM2QLgfk.cjs → as-cell-json-popover-vty5vMjW.cjs} +0 -0
- /package/dist/{as-column-menu-kTIQfLTi.mjs → as-column-menu-BMTS3DO2.mjs} +0 -0
- /package/dist/{as-column-menu-fZVbJ9lU.cjs → as-column-menu-D_8NxujZ.cjs} +0 -0
- /package/dist/{as-filter-input-BM23TNeh.mjs → as-filter-input-C8KmOus8.mjs} +0 -0
- /package/dist/{as-filter-input-DJu2k9gO.cjs → as-filter-input-DUqpkTkg.cjs} +0 -0
- /package/dist/{format-cell-D1Ziv96Q.mjs → format-cell-Bx7wNc4X.mjs} +0 -0
- /package/dist/{format-cell-vCNTh4WZ.cjs → format-cell-DaxV6WIJ.cjs} +0 -0
- /package/dist/{get-cell-value-4rHKP-TG.cjs → get-cell-value-CJT4fk4y.cjs} +0 -0
- /package/dist/{get-cell-value-C8LLc_Rr.mjs → get-cell-value-Cb3X8nUn.mjs} +0 -0
- /package/dist/{use-cell-locale-MQXoONh5.mjs → use-cell-locale-CxQOQsns.mjs} +0 -0
- /package/dist/{use-cell-locale-BGBRQB7s.cjs → use-cell-locale-caG2Fzpc.cjs} +0 -0
- /package/dist/{use-has-emit-listener-hhOH8CBI.cjs → use-has-emit-listener-BaGFZDyM.cjs} +0 -0
- /package/dist/{use-has-emit-listener-BTMDIv2e.mjs → use-has-emit-listener-DrBbsLHQ.mjs} +0 -0
- /package/dist/{use-seed-on-open-Dg9I89fU.cjs → use-seed-on-open-9TSm1Vbv.cjs} +0 -0
- /package/dist/{use-seed-on-open-DO3A1kIb.mjs → use-seed-on-open-DSh4XFyp.mjs} +0 -0
- /package/dist/{use-table-column-handlers-ehreEzcx.cjs → use-table-column-handlers-BMrP0WY2.cjs} +0 -0
- /package/dist/{use-table-column-handlers-CpiiIniD.mjs → use-table-column-handlers-Bx3JERqs.mjs} +0 -0
- /package/dist/{use-table-selection-Cmiu1h4S.cjs → use-table-selection-DtCV3rhu.cjs} +0 -0
- /package/dist/{use-table-selection-C84z4OZy.mjs → use-table-selection-ULbKT2xW.mjs} +0 -0
package/dist/as-table-root.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-D94eypcL.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table-root.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-CWk9YgpG.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table-root.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
1
|
+
import { t as as_table_root_default } from "./as-table-root-C1A6JkwL.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as TableActionsState, S as TVueTableActionInfo, b as TAsCellTypeComponents, f as ReactiveTableState, i as ConfirmOptions, l as NavKeyOptions, p as RowActionsConfig, t as ActionResult, u as PresetConfig, w as TableNavBridge, x as TAsTableControls } from "./types-CBGaTR2Z.mjs";
|
|
2
2
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
3
3
|
import { ClientFactory, ClientFactory as ClientFactory$1, ColumnDef, SortControl, TableDef, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
4
4
|
import * as vue from "vue";
|
|
5
5
|
import { AllowedComponentProps, AnchorHTMLAttributes, App, Component as Component$1, ComponentCustomProps, ComponentPublicInstance, ComputedRef, DefineComponent, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, UnwrapRef, VNode, VNodeProps, WritableComputedRef } from "vue";
|
|
6
6
|
import * as _atscript_ui_table0 from "@atscript/ui-table";
|
|
7
|
-
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID as STANDARD_PRESET_ID$1, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId as isSystemPresetId$1, resolveSystemPresets as resolveSystemPresets$1 } from "@atscript/ui-table";
|
|
8
|
-
import { Client, PageResult
|
|
7
|
+
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, CsvOptions, CsvOptions as CsvOptions$1, DisplayColumnDef, DisplayColumnDef as DisplayColumnDef$1, ExportAbortError, ExportScalar, ExportScalar as ExportScalar$1, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID as STANDARD_PRESET_ID$1, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId as isSystemPresetId$1, resolveSystemPresets as resolveSystemPresets$1 } from "@atscript/ui-table";
|
|
8
|
+
import { Client, PageResult } from "@atscript/db-client";
|
|
9
9
|
import { TAsTypeComponents } from "@atscript/vue-form";
|
|
10
10
|
import { FilterExpr, Uniquery } from "@uniqu/core";
|
|
11
11
|
|
|
@@ -30,6 +30,14 @@ interface UseLocalDraftOptions {
|
|
|
30
30
|
enabled: Ref<boolean> | boolean;
|
|
31
31
|
/** Persisted-aspect gate — drafts only persist aspects in this set. */
|
|
32
32
|
availableAspects: readonly PresetAspect[];
|
|
33
|
+
/**
|
|
34
|
+
* Identity the draft is keyed under — pass the signed-in user's id so a
|
|
35
|
+
* shared browser never restores the previous user's draft. Reactive: when
|
|
36
|
+
* it changes, reads and writes move to the new key and the old scope's
|
|
37
|
+
* draft is neither read nor overwritten. Omitted (or `undefined`) keeps
|
|
38
|
+
* the pre-0.1.133 unscoped key. Since 0.1.133.
|
|
39
|
+
*/
|
|
40
|
+
scope?: MaybeRefOrGetter<string | undefined>;
|
|
33
41
|
/** Optional debounce override (default 300ms). */
|
|
34
42
|
debounceMs?: number;
|
|
35
43
|
/**
|
|
@@ -67,8 +75,9 @@ interface UseLocalDraftReturn {
|
|
|
67
75
|
}
|
|
68
76
|
/**
|
|
69
77
|
* localStorage overlay manager for table presets. One overlay per
|
|
70
|
-
* `(app, tableKey)`; switching presets clears it (caller's
|
|
71
|
-
* — this composable only tracks state, not which preset is
|
|
78
|
+
* `(app, scope, tableKey)`; switching presets clears it (caller's
|
|
79
|
+
* responsibility — this composable only tracks state, not which preset is
|
|
80
|
+
* active).
|
|
72
81
|
*/
|
|
73
82
|
declare function useLocalDraft(opts: UseLocalDraftOptions): UseLocalDraftReturn;
|
|
74
83
|
//#endregion
|
|
@@ -104,6 +113,11 @@ interface UsePresetsReturn {
|
|
|
104
113
|
/** False on 401/403 from initial load — UI hides itself. */
|
|
105
114
|
available: ComputedRef<boolean>;
|
|
106
115
|
loading: Ref<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Load failure from `reload()`, or null. Mutator failures are NOT recorded
|
|
118
|
+
* here — they rethrow, and the table-state slice's
|
|
119
|
+
* `state.preset.lastError` is the single channel UI renders.
|
|
120
|
+
*/
|
|
107
121
|
error: Ref<unknown>;
|
|
108
122
|
/**
|
|
109
123
|
* Authoritative current-user id. `capabilities.userId` when caps are
|
|
@@ -186,6 +200,16 @@ interface TableContext {
|
|
|
186
200
|
formComponents?: Record<string, Component$1>;
|
|
187
201
|
}
|
|
188
202
|
type QueryFn = (query: Uniquery, page: number, size: number) => Promise<PageResult<Record<string, unknown>>>;
|
|
203
|
+
/** Per-call overrides for `state.buildQuery()`. Since 0.1.134. */
|
|
204
|
+
interface BuildQueryOptions {
|
|
205
|
+
/**
|
|
206
|
+
* Column paths to project instead of the visible ones. Client-owned
|
|
207
|
+
* (`local`) columns are dropped from the result either way.
|
|
208
|
+
*/
|
|
209
|
+
columnPaths?: string[];
|
|
210
|
+
/** Override the `$actions` opt-in (default: whatever the renderer asked for). */
|
|
211
|
+
includeActions?: boolean;
|
|
212
|
+
}
|
|
189
213
|
/** External refs the consumer wires up via `defineModel` (or otherwise). */
|
|
190
214
|
interface TableModelRefs {
|
|
191
215
|
filterFields?: Ref<string[]>;
|
|
@@ -212,8 +236,12 @@ interface TableQueryOptions {
|
|
|
212
236
|
* meta), regardless of which columns are visible. Additive only.
|
|
213
237
|
*/
|
|
214
238
|
alwaysSelected?: string[];
|
|
215
|
-
/**
|
|
216
|
-
|
|
239
|
+
/**
|
|
240
|
+
* When true, all triggers (query/queryNext/loadRange) early-return. Pass a
|
|
241
|
+
* getter (or a ref) to keep it reactive: when it flips back to `false` the
|
|
242
|
+
* table runs the query it was holding back, once. Since 0.1.133.
|
|
243
|
+
*/
|
|
244
|
+
blockQuery?: boolean | (() => boolean);
|
|
217
245
|
/**
|
|
218
246
|
* Configured default for the runtime `ignoreSortersWhenSearched` flag
|
|
219
247
|
* (default `false`). Opt-in for relevance-ranked backends: while the
|
|
@@ -225,6 +253,12 @@ interface TableQueryOptions {
|
|
|
225
253
|
ignoreSortersWhenSearched?: boolean;
|
|
226
254
|
/** Auto-query when metadata loads (default: true). */
|
|
227
255
|
queryOnMount?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* The query function already returns its rows ordered by every active
|
|
258
|
+
* sorter, so `applyLocalSort` must not re-order the page on top of it. Set
|
|
259
|
+
* by the in-memory (`createStaticTableState`) path. Since 0.1.134.
|
|
260
|
+
*/
|
|
261
|
+
preSorted?: boolean;
|
|
228
262
|
/**
|
|
229
263
|
* Gate the initial `scheduleQuery("initial")` until this ref flips to
|
|
230
264
|
* `true`. Used by `<AsTableRoot>` when `v-model:urlQuery` is bound, to
|
|
@@ -275,6 +309,8 @@ interface TablePresetOptions {
|
|
|
275
309
|
draftHandle?: UseLocalDraftReturn | null;
|
|
276
310
|
/** App-declared aspect set; default `['columns','filters','filterOps','sorters']`. */
|
|
277
311
|
availableAspects?: PresetAspect[];
|
|
312
|
+
/** Aspects a system preset owns; intersected with `availableAspects`, default all. */
|
|
313
|
+
systemAspects?: PresetAspect[];
|
|
278
314
|
/** Static fallback for system presets when no `presetsHandle` is wired. */
|
|
279
315
|
fallbackSystemPresets?: SystemPreset[];
|
|
280
316
|
/** Whether localStorage drafts should be hydrated + persisted on bootstrap. */
|
|
@@ -297,6 +333,11 @@ interface CreateTableStateOptions {
|
|
|
297
333
|
actions?: TableActionsOptions;
|
|
298
334
|
/** Preset settings. */
|
|
299
335
|
preset?: TablePresetOptions;
|
|
336
|
+
/**
|
|
337
|
+
* Client-owned columns merged into the server's column list. Captured once
|
|
338
|
+
* at setup — to change the set, re-mount. Since 0.1.134.
|
|
339
|
+
*/
|
|
340
|
+
displayColumns?: readonly DisplayColumnDef[];
|
|
300
341
|
}
|
|
301
342
|
/** Internal handles returned alongside the public state. */
|
|
302
343
|
interface TableStateInternals {
|
|
@@ -310,8 +351,12 @@ declare function createTableState(opts: CreateTableStateOptions): {
|
|
|
310
351
|
internals: TableStateInternals;
|
|
311
352
|
};
|
|
312
353
|
interface CreateStaticTableStateOptions {
|
|
313
|
-
/**
|
|
314
|
-
|
|
354
|
+
/**
|
|
355
|
+
* All rows in the dataset. Sorting/searching is applied locally. Pass a
|
|
356
|
+
* getter (or a ref) to keep it reactive — every local "fetch" re-reads it,
|
|
357
|
+
* so replacing the array and calling `state.query()` re-renders the table.
|
|
358
|
+
*/
|
|
359
|
+
rows: MaybeRefOrGetter<Record<string, unknown>[]>;
|
|
315
360
|
/** Columns to render. Used to synthesize a minimal `TableDef`. */
|
|
316
361
|
columns: ColumnDef[];
|
|
317
362
|
/** Field paths matched (substring, case-insensitive) by `searchTerm`. */
|
|
@@ -320,6 +365,23 @@ interface CreateStaticTableStateOptions {
|
|
|
320
365
|
selection?: TableSelectionOptions;
|
|
321
366
|
/** Default page size (`pagination.itemsPerPage`). */
|
|
322
367
|
limit?: number;
|
|
368
|
+
/**
|
|
369
|
+
* Sort `rows` in memory from the active sorters (default `true`). Set
|
|
370
|
+
* `false` when `rows` already arrives in the order it should render and the
|
|
371
|
+
* header's sort affordance is purely cosmetic. Since 0.1.134.
|
|
372
|
+
*/
|
|
373
|
+
localSort?: boolean;
|
|
374
|
+
/** Client-owned columns merged into `columns`. Since 0.1.134. */
|
|
375
|
+
displayColumns?: readonly DisplayColumnDef[];
|
|
376
|
+
/** External refs from `defineModel` — same contract as `createTableState`. Since 0.1.134. */
|
|
377
|
+
model?: TableModelRefs;
|
|
378
|
+
/** Auto-query once the synthetic definition is in place (default: true). Since 0.1.134. */
|
|
379
|
+
queryOnMount?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* Action settings. Only the client-free parts apply — there is no client to
|
|
382
|
+
* invoke a server action with. Since 0.1.134.
|
|
383
|
+
*/
|
|
384
|
+
actions?: TableActionsOptions;
|
|
323
385
|
}
|
|
324
386
|
/**
|
|
325
387
|
* Build a `ReactiveTableState` backed by an in-memory row list. Used by the
|
|
@@ -330,6 +392,8 @@ declare function createStaticTableState(opts: CreateStaticTableStateOptions): {
|
|
|
330
392
|
state: ReactiveTableState;
|
|
331
393
|
internals: TableStateInternals;
|
|
332
394
|
};
|
|
395
|
+
/** Provide the full table context to the component subtree. */
|
|
396
|
+
declare function provideTableContext(ctx: TableContext): void;
|
|
333
397
|
/** Inject the full table context (throws if used outside as-table-root). */
|
|
334
398
|
declare function useTableContext(): TableContext;
|
|
335
399
|
/**
|
|
@@ -420,8 +484,12 @@ interface UseTableOptions {
|
|
|
420
484
|
queryFn?: QueryFn;
|
|
421
485
|
/** Auto-query when metadata loads (default: true). */
|
|
422
486
|
queryOnMount?: boolean;
|
|
423
|
-
/**
|
|
424
|
-
|
|
487
|
+
/**
|
|
488
|
+
* When true, all triggers (query/queryNext/loadRange) early-return. Pass a
|
|
489
|
+
* getter to keep it reactive — the held-back query runs once when it flips
|
|
490
|
+
* back to `false`. Since 0.1.133.
|
|
491
|
+
*/
|
|
492
|
+
blockQuery?: boolean | (() => boolean);
|
|
425
493
|
/** Page-alignment unit for `loadRange` and the `queryNext` extension. */
|
|
426
494
|
blockSize?: number;
|
|
427
495
|
/** Debounce window for the topIndex/viewportRowCount watcher. */
|
|
@@ -481,6 +549,11 @@ interface UseTableOptions {
|
|
|
481
549
|
* `url` and `tableKey` are required.
|
|
482
550
|
*/
|
|
483
551
|
preset?: PresetConfig;
|
|
552
|
+
/**
|
|
553
|
+
* Client-owned columns merged into the server's column list — see
|
|
554
|
+
* {@link DisplayColumnDef}. Captured once at setup. Since 0.1.134.
|
|
555
|
+
*/
|
|
556
|
+
displayColumns?: readonly DisplayColumnDef[];
|
|
484
557
|
}
|
|
485
558
|
/**
|
|
486
559
|
* Main entry composable for table setup.
|
|
@@ -489,6 +562,106 @@ interface UseTableOptions {
|
|
|
489
562
|
*/
|
|
490
563
|
declare function useTable(url: string, opts?: UseTableOptions): ReactiveTableState;
|
|
491
564
|
//#endregion
|
|
565
|
+
//#region src/composables/use-table-export.d.ts
|
|
566
|
+
/** Per-cell formatter override. Return `undefined` to fall back to the default. */
|
|
567
|
+
type ExportCellFormatter = (value: unknown, column: ColumnDef, row: Record<string, unknown>) => ExportScalar | undefined;
|
|
568
|
+
interface ExportRowsOptions {
|
|
569
|
+
/**
|
|
570
|
+
* `'visible'` (default) exports the visible columns in their current display
|
|
571
|
+
* order, minus the client-owned ([display](/tables/customization)) ones —
|
|
572
|
+
* nothing on the server backs them, so they would export as an empty column
|
|
573
|
+
* unless a `formatters` entry fills them in. An array of column paths
|
|
574
|
+
* exports exactly those, in that order, display columns included.
|
|
575
|
+
*/
|
|
576
|
+
columns?: "visible" | string[];
|
|
577
|
+
/** `'csv'` (default) renders a CSV string; `'rows'` returns scalar arrays. */
|
|
578
|
+
format?: "csv" | "rows";
|
|
579
|
+
/** Rows per request while paging. Default 500. */
|
|
580
|
+
pageSize?: number;
|
|
581
|
+
/** Stop the run between pages; the promise rejects with an `AbortError`. */
|
|
582
|
+
signal?: AbortSignal;
|
|
583
|
+
/** Called after each settled page. `total` is the first page's `count`, when the endpoint reports one. */
|
|
584
|
+
onProgress?: (done: number, total?: number) => void;
|
|
585
|
+
/** Global cell formatter, applied to every column that has no `formatters` entry. */
|
|
586
|
+
formatCell?: ExportCellFormatter;
|
|
587
|
+
/** Per-column formatters keyed by column path. Win over `formatCell`. */
|
|
588
|
+
formatters?: Record<string, ExportCellFormatter>;
|
|
589
|
+
/** File name for `format: 'csv'`. `.csv` is appended when missing. Default `"export.csv"`. */
|
|
590
|
+
filename?: string;
|
|
591
|
+
/**
|
|
592
|
+
* CSV writer settings — `bom`, `escapeFormulas`, `delimiter`. Ignored by
|
|
593
|
+
* `format: 'rows'`.
|
|
594
|
+
*/
|
|
595
|
+
csv?: CsvOptions;
|
|
596
|
+
/** Hard ceiling on exported rows. */
|
|
597
|
+
maxRows?: number;
|
|
598
|
+
}
|
|
599
|
+
interface ExportResultBase {
|
|
600
|
+
/** Header labels, in export order. */
|
|
601
|
+
columns: string[];
|
|
602
|
+
/** Column paths, in export order. */
|
|
603
|
+
columnPaths: string[];
|
|
604
|
+
/** How many data rows the run collected. */
|
|
605
|
+
rowCount: number;
|
|
606
|
+
/** Total the endpoint reported for the query, when it reported one. */
|
|
607
|
+
total?: number;
|
|
608
|
+
}
|
|
609
|
+
/** A finished export. `format` discriminates the payload. */
|
|
610
|
+
type ExportResult = (ExportResultBase & {
|
|
611
|
+
format: "csv";
|
|
612
|
+
csv: string;
|
|
613
|
+
filename: string;
|
|
614
|
+
}) | (ExportResultBase & {
|
|
615
|
+
format: "rows";
|
|
616
|
+
rows: ExportScalar[][];
|
|
617
|
+
});
|
|
618
|
+
/** Progress of the run in flight: rows collected so far, and the reported total. */
|
|
619
|
+
interface ExportProgress {
|
|
620
|
+
done: number;
|
|
621
|
+
total?: number;
|
|
622
|
+
}
|
|
623
|
+
interface UseTableExportReturn {
|
|
624
|
+
/**
|
|
625
|
+
* Run an export against the table's CURRENT query. Rejects when a run is
|
|
626
|
+
* already in flight — one handle runs one export at a time.
|
|
627
|
+
*/
|
|
628
|
+
exportRows: (opts?: ExportRowsOptions) => Promise<ExportResult>;
|
|
629
|
+
/** `true` while an `exportRows` call is in flight. */
|
|
630
|
+
exporting: ComputedRef<boolean>;
|
|
631
|
+
/** Progress of the in-flight run, or `null` while idle. */
|
|
632
|
+
progress: Ref<ExportProgress | null>;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Export the table's data as it is queried right now.
|
|
636
|
+
*
|
|
637
|
+
* The export snapshots the table's own query at call time — the same filters,
|
|
638
|
+
* sorters, search term, force-filters and `$select` projection the on-screen
|
|
639
|
+
* fetch uses (`state.buildQuery()`), through the same fetch path
|
|
640
|
+
* (`state.fetchPage()`, so a custom `queryFn` is honoured) — then pages
|
|
641
|
+
* through every result instead of one page. The primary key(s) are appended
|
|
642
|
+
* to the sort as a tiebreaker so pages never overlap or skip.
|
|
643
|
+
*
|
|
644
|
+
* Values come out of the same column metadata the cells read: union/enum keys
|
|
645
|
+
* become their labels, dates become ISO strings, arrays join. Override per
|
|
646
|
+
* column with `formatters`, or globally with `formatCell`.
|
|
647
|
+
*
|
|
648
|
+
* ```ts
|
|
649
|
+
* const { exportRows } = useTableExport()
|
|
650
|
+
* downloadExport(await exportRows({ filename: "orders.csv", csv: { bom: true } }))
|
|
651
|
+
* ```
|
|
652
|
+
*
|
|
653
|
+
* Since 0.1.134.
|
|
654
|
+
*/
|
|
655
|
+
declare function useTableExport(ctx?: TableContext): UseTableExportReturn;
|
|
656
|
+
/**
|
|
657
|
+
* Hand a finished CSV export to the browser as a file download. Returns
|
|
658
|
+
* `false` without doing anything when there is no DOM (SSR / a worker), so a
|
|
659
|
+
* server render can call it unguarded.
|
|
660
|
+
*
|
|
661
|
+
* Since 0.1.134.
|
|
662
|
+
*/
|
|
663
|
+
declare function downloadExport(result: ExportResult): boolean;
|
|
664
|
+
//#endregion
|
|
492
665
|
//#region src/composables/use-table-nav-bridge.d.ts
|
|
493
666
|
interface UseTableNavBridgeOptions extends Omit<NavKeyOptions, "mode"> {
|
|
494
667
|
/**
|
|
@@ -1982,6 +2155,14 @@ interface UseTableUrlQueryOptions {
|
|
|
1982
2155
|
* navigation-recoverable.
|
|
1983
2156
|
*/
|
|
1984
2157
|
mode?: "replace" | "push";
|
|
2158
|
+
/**
|
|
2159
|
+
* Namespace for this table's query keys. With `prefix: "t1"` every key the
|
|
2160
|
+
* bridge writes becomes `t1.<key>` (`t1.$skip`, `t1.status`, `t1.total>100`)
|
|
2161
|
+
* and only keys under that prefix are read back or removed. Keys with no
|
|
2162
|
+
* prefix — or another table's prefix — are foreign and preserved untouched,
|
|
2163
|
+
* so two tables can share one route. Since 0.1.133.
|
|
2164
|
+
*/
|
|
2165
|
+
prefix?: string;
|
|
1985
2166
|
}
|
|
1986
2167
|
/**
|
|
1987
2168
|
* Bridge `<AsTableRoot v-model:url-query>` to vue-router. Uses **type-only**
|
|
@@ -1989,11 +2170,19 @@ interface UseTableUrlQueryOptions {
|
|
|
1989
2170
|
* dependency on `vue-router` is added to `@atscript/vue-table`. Consumers
|
|
1990
2171
|
* pass in their already-resolved `useRoute()` and `useRouter()` instances.
|
|
1991
2172
|
*
|
|
1992
|
-
* Scope:
|
|
1993
|
-
*
|
|
1994
|
-
*
|
|
1995
|
-
* write
|
|
1996
|
-
*
|
|
2173
|
+
* Scope: the bridge owns **only what the table reads back** (since 0.1.133).
|
|
2174
|
+
* A key is the table's iff `urlQueryStringToState` would consume it — see
|
|
2175
|
+
* `urlQueryConsumesKey` — or the bridge has written it before. Read and
|
|
2176
|
+
* write therefore agree in both directions: a key the parser ignores (a host
|
|
2177
|
+
* flag, an unrecognised `$control`) is never removed, and a key the parser
|
|
2178
|
+
* reads is the bridge's to remove. Every write merges into the current
|
|
2179
|
+
* `route.query`, in place.
|
|
2180
|
+
*
|
|
2181
|
+
* Without a `prefix` the bridge cannot tell a plain `field=value` filter from
|
|
2182
|
+
* a page-owned flag of the same shape, so a plain key that was already in the
|
|
2183
|
+
* URL when the bridge mounted counts as foreign until the bridge writes it
|
|
2184
|
+
* itself. Pass `prefix` when a route carries a host key that could collide
|
|
2185
|
+
* with a column path, or when it carries two tables.
|
|
1997
2186
|
*
|
|
1998
2187
|
* @example
|
|
1999
2188
|
* ```vue
|
|
@@ -2001,6 +2190,9 @@ interface UseTableUrlQueryOptions {
|
|
|
2001
2190
|
* import { useRoute, useRouter } from 'vue-router';
|
|
2002
2191
|
* import { useTableUrlQuery } from '@atscript/vue-table';
|
|
2003
2192
|
* const urlQuery = useTableUrlQuery(useRoute(), useRouter());
|
|
2193
|
+
* // Two tables on one route:
|
|
2194
|
+
* // const left = useTableUrlQuery(useRoute(), useRouter(), { prefix: 'a' });
|
|
2195
|
+
* // const right = useTableUrlQuery(useRoute(), useRouter(), { prefix: 'b' });
|
|
2004
2196
|
* </script>
|
|
2005
2197
|
* <template>
|
|
2006
2198
|
* <AsTableRoot v-model:url-query="urlQuery" url="/db/products" .../>
|
|
@@ -2157,25 +2349,48 @@ declare function getCellValue(row: Record<string, unknown>, path: string): unkno
|
|
|
2157
2349
|
/** Format a cell value based on column type. */
|
|
2158
2350
|
declare function formatCellValue(value: unknown, type: string): string;
|
|
2159
2351
|
//#endregion
|
|
2160
|
-
//#region src/composables/state/intent-scope.d.ts
|
|
2161
|
-
/**
|
|
2162
|
-
* Build the identifier object to forward to `client.action` / `client.remove`.
|
|
2163
|
-
*
|
|
2164
|
-
* Per `@atscript/db-client` invariant #11, identifier bodies are object-only
|
|
2165
|
-
* — never bare scalars, even for single-field PK tables. This helper accepts:
|
|
2166
|
-
* - a row-shaped object (default `rowValueFn`) → picks `preferredId` fields;
|
|
2167
|
-
* - a scalar value when `preferredId` has exactly one field (consumers that
|
|
2168
|
-
* override `rowValueFn` to return the PK scalar) → wraps it.
|
|
2169
|
-
*
|
|
2170
|
-
* Returns `undefined` when no `preferredId` is declared, the source is
|
|
2171
|
-
* `null`/`undefined`, or a scalar can't be paired with a single-field
|
|
2172
|
-
* identifier.
|
|
2173
|
-
*/
|
|
2174
|
-
declare function extractIdentifier(source: unknown, preferredId: readonly string[]): Record<string, unknown> | undefined;
|
|
2175
|
-
//#endregion
|
|
2176
2352
|
//#region src/components/as-table-root.vue.d.ts
|
|
2177
2353
|
type __VLS_Props = {
|
|
2178
|
-
/**
|
|
2354
|
+
/**
|
|
2355
|
+
* Table endpoint URL (e.g. "/db/tables/products"). Omit it — and pass
|
|
2356
|
+
* `:rows` + `:columns` instead — to run the table in local mode over an
|
|
2357
|
+
* already-loaded array.
|
|
2358
|
+
*/
|
|
2359
|
+
url?: string;
|
|
2360
|
+
/**
|
|
2361
|
+
* Local mode: render these rows instead of fetching. No client, no
|
|
2362
|
+
* `/meta` request and no metadata cache entry. Reactive — replacing the
|
|
2363
|
+
* array re-runs the local query (search / sort / paging stay live).
|
|
2364
|
+
* Requires `:columns`. Since 0.1.134.
|
|
2365
|
+
*/
|
|
2366
|
+
rows?: Record<string, unknown>[];
|
|
2367
|
+
/**
|
|
2368
|
+
* Local mode: the columns to render. Read once at setup. Since 0.1.134.
|
|
2369
|
+
*/
|
|
2370
|
+
columns?: ColumnDef[];
|
|
2371
|
+
/**
|
|
2372
|
+
* Local mode: field paths the search term matches (substring,
|
|
2373
|
+
* case-insensitive). Omit to disable search. Since 0.1.134.
|
|
2374
|
+
*/
|
|
2375
|
+
searchPaths?: string[];
|
|
2376
|
+
/**
|
|
2377
|
+
* Local mode: sort `rows` in memory from the active sorters (default
|
|
2378
|
+
* `true`). Since 0.1.134.
|
|
2379
|
+
*/
|
|
2380
|
+
localSort?: boolean;
|
|
2381
|
+
/**
|
|
2382
|
+
* Client-owned columns merged into the server's column list — labelled,
|
|
2383
|
+
* hideable, reorderable and preset-persisted like any column, but never
|
|
2384
|
+
* part of `$select`, server sorting or filters. Since 0.1.134.
|
|
2385
|
+
*/
|
|
2386
|
+
displayColumns?: DisplayColumnDef[];
|
|
2387
|
+
/**
|
|
2388
|
+
* Per-screen policy for the row-actions cell: narrow the server's action
|
|
2389
|
+
* set (`include` / `exclude`), relabel it (`overrides`), and append
|
|
2390
|
+
* app-owned actions (`extra`). The server stays authoritative — an action
|
|
2391
|
+
* a row's `$actions` gated away never appears. Since 0.1.134.
|
|
2392
|
+
*/
|
|
2393
|
+
rowActions?: RowActionsConfig; /** Factory to create a client from a URL. Falls back to the app-wide default set via `setDefaultClientFactory` (or the built-in `new Client(url)` factory if unset). */
|
|
2179
2394
|
clientFactory?: ClientFactory; /** Skin-slot overrides for table chrome — header cells, filter dialog, column menu, etc. Use {@link createDefaultControls} to seed defaults. */
|
|
2180
2395
|
controls?: TAsTableControls; /** Cell-type → component dispatch map. Use {@link createDefaultCellTypes} to seed defaults. */
|
|
2181
2396
|
types?: TAsCellTypeComponents; /** Named cell-component overrides — looked up by `@ui.table.component "name"`. */
|
|
@@ -2261,10 +2476,10 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
2261
2476
|
declare var __VLS_1: {
|
|
2262
2477
|
tableDef: _atscript_ui0.TableDef | null;
|
|
2263
2478
|
loadingMetadata: boolean;
|
|
2264
|
-
allColumns:
|
|
2479
|
+
allColumns: ColumnDef[];
|
|
2265
2480
|
columnNames: string[];
|
|
2266
2481
|
columnWidths: ColumnWidthsMap;
|
|
2267
|
-
columns:
|
|
2482
|
+
columns: ColumnDef[];
|
|
2268
2483
|
filterFields: string[];
|
|
2269
2484
|
filters: _atscript_ui_table0.FieldFilters;
|
|
2270
2485
|
sorters: SortControl[];
|
|
@@ -2286,7 +2501,7 @@ declare var __VLS_1: {
|
|
|
2286
2501
|
queryNext: () => void;
|
|
2287
2502
|
resetFilters: () => void;
|
|
2288
2503
|
showConfigDialog: (tab?: _atscript_ui_table0.ConfigTab) => void;
|
|
2289
|
-
openFilterDialog: (column:
|
|
2504
|
+
openFilterDialog: (column: ColumnDef) => void;
|
|
2290
2505
|
closeFilterDialog: () => void;
|
|
2291
2506
|
setFieldFilter: (path: string, conditions: _atscript_ui_table0.FilterCondition[]) => void;
|
|
2292
2507
|
removeFieldFilter: (path: string) => void;
|
|
@@ -2310,9 +2525,11 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2310
2525
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2311
2526
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2312
2527
|
} & {
|
|
2313
|
-
action: (
|
|
2314
|
-
|
|
2528
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2529
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2315
2530
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2531
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2532
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2316
2533
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2317
2534
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2318
2535
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
@@ -2320,9 +2537,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2320
2537
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2321
2538
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2322
2539
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2323
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2324
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2325
2540
|
}>, {
|
|
2541
|
+
localSort: boolean;
|
|
2326
2542
|
queryOnMount: boolean;
|
|
2327
2543
|
selectionPersistence: SelectionPersistence;
|
|
2328
2544
|
refreshOnAction: boolean;
|
|
@@ -2335,4 +2551,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
2335
2551
|
};
|
|
2336
2552
|
};
|
|
2337
2553
|
//#endregion
|
|
2338
|
-
export {
|
|
2554
|
+
export { useTableExport as $, CellLocale as A, injectPresetsApp as B, isSystemPresetId$1 as C, UseLocalDraftReturn as Ct, formatCellValue as D, setDefaultClientFactory as E, useTableComponent as F, useTableFilter as G, useTableUrlQuery as H, UseAppPrefsOptions as I, ExportProgress as J, useTableNavBridge as K, UseAppPrefsReturn as L, useCellLocale as M, createDefaultCellTypes as N, getCellValue as O, createDefaultControls as P, downloadExport as Q, useAppPrefs as R, getDefaultClientFactory as S, UseLocalDraftOptions as St, resolveSystemPresets$1 as T, useTableActions as U, UseTableUrlQueryOptions as V, useTableSearch as W, ExportRowsOptions as X, ExportResult as Y, UseTableExportReturn as Z, SYSTEM_PRESET_PREFIX as _, ActivePresetView as _t, CsvOptions$1 as a, BuildQueryOptions as at, UrlQuerySync$1 as b, usePresets as bt, ExportScalar$1 as c, QueryFn as ct, PresetCapabilities$1 as d, TableStateInternals as dt, UseTableOptions as et, PresetData as f, createStaticTableState as ft, STANDARD_PRESET_ID$1 as g, useTableContextOptional as gt, QueryOptions as h, useTableContext as ht, ClientFactory$1 as i, useTableSelection as it, provideCellLocale as j, getColumnWidth as k, PRESET_ASPECTS as l, TableContext as lt, PresetSnapshotWire as m, provideTableContext as mt, AppConfData$1 as n, useTable as nt, DisplayColumnDef$1 as o, CreateStaticTableStateOptions as ot, PresetSnapshot$1 as p, createTableState as pt, ExportCellFormatter as q, AsPresetEntryRow$1 as r, SelectionPersistence as rt, ExportAbortError as s, CreateTableStateOptions as st, _default as t, clearTableCache as tt, PresetAspect$1 as u, TableModelRefs as ut, SystemPreset$1 as v, UsePresetsOptions as vt, resetDefaultClientFactory as w, useLocalDraft as wt, UserConfData as x, StorageLike as xt, SystemPresetInput$1 as y, UsePresetsReturn as yt, AS_PRESETS_APP as z };
|