@atscript/vue-table 0.1.143 → 0.1.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-miQYVP7x.mjs → as-action-menu-content-DoZnQP0I.mjs} +37 -25
- package/dist/{as-action-menu-content-BaNFBYn3.cjs → as-action-menu-content-FQ2miGid.cjs} +36 -24
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-Ca3wSDxw.d.mts → as-column-menu.vue-ByTECTbX.d.cts} +2 -2
- package/dist/{as-column-menu.vue-Co7FtiEM.d.cts → as-column-menu.vue-TChT482i.d.mts} +2 -2
- package/dist/{as-config-dialog-CVSOrS9O.cjs → as-config-dialog-CpW1Qemf.cjs} +2 -2
- package/dist/{as-config-dialog-Di02V3bs.mjs → as-config-dialog-ObHtungs.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-fCwo1ty9.cjs → as-confirm-dialog-D3Vu1Rb_.cjs} +1 -1
- package/dist/{as-confirm-dialog-C9Qat2rG.mjs → as-confirm-dialog-zg7jmS3u.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-DYpbsNDx.cjs → as-filter-dialog-C4EyRr2_.cjs} +7 -7
- package/dist/{as-filter-dialog-DdtrTT5w.mjs → as-filter-dialog-CWy0mjZl.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-4-qFRsJx.cjs → as-filter-field-BQ9UlV0y.cjs} +3 -3
- package/dist/{as-filter-field-DEQVodKG.mjs → as-filter-field-CW1_GHZT.mjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-Dd_j6_6G.mjs → as-filters-BLFSS_VP.mjs} +4 -4
- package/dist/{as-filters-C6ZkLrf4.cjs → as-filters-DUfFkXAo.cjs} +4 -4
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-SYA-6lGR.cjs → as-preset-dialog-BlXqTZiT.cjs} +1 -1
- package/dist/{as-preset-dialog-Bap48oUv.mjs → as-preset-dialog-CI2Hw8vi.mjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-BdKTZa95.cjs → as-preset-picker-CVgyZBG7.cjs} +1 -1
- package/dist/{as-preset-picker-NBrvsE6s.mjs → as-preset-picker-CbZDGPaf.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-residual-filter-CZ-Bytdj.cjs → as-residual-filter-C8n7kdGW.cjs} +1 -1
- package/dist/{as-residual-filter-BFnbI3h3.mjs → as-residual-filter-CUTouIn5.mjs} +1 -1
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-C3xHkX53.cjs → as-row-actions-DfUL9sYB.cjs} +21 -38
- package/dist/{as-row-actions-KeoHo9Ex.mjs → as-row-actions-ed1P6GEJ.mjs} +22 -39
- 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-nmaDuxBT.d.mts → as-row-actions.vue-Ba3VO9W-.d.cts} +1 -1
- package/dist/{as-row-actions.vue-D3_z3ytk.d.cts → as-row-actions.vue-CKOnE0eb.d.mts} +1 -1
- package/dist/{as-select-cell-KD_ns8DS.mjs → as-select-cell-BMptU5sQ.mjs} +4 -4
- package/dist/{as-select-cell-XnzNuW2v.cjs → as-select-cell-DwMfqBMV.cjs} +4 -4
- package/dist/{as-table-ay1yel3u.cjs → as-table-BjKzKB0a.cjs} +3 -3
- package/dist/{as-table-NHqyekNd.mjs → as-table-DGWfzV4w.mjs} +3 -3
- package/dist/{as-table-actions-BpEFcsgh.mjs → as-table-actions-DQco4pGu.mjs} +16 -29
- package/dist/{as-table-actions-UQmFtRdJ.cjs → as-table-actions-DplblFlK.cjs} +15 -28
- 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-BG3JVaBQ.d.mts → as-table-actions.vue-BL4xy2-d.d.mts} +2 -2
- package/dist/{as-table-actions.vue-DcuzNZoC.d.cts → as-table-actions.vue-DgMw3xJn.d.cts} +2 -2
- package/dist/{as-table-base-umzg4PBR.cjs → as-table-base-CNAn-vpa.cjs} +2 -2
- package/dist/{as-table-base-89DkDZ-1.mjs → as-table-base-lfyjPgsO.mjs} +2 -2
- package/dist/{as-table-header-cell-f3YpgJX1.cjs → as-table-header-cell-BwaOPYwI.cjs} +1 -1
- package/dist/{as-table-header-cell-DU3ws2x9.mjs → as-table-header-cell-Csv1KQDa.mjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-5VGRc23o.d.mts → as-table-header-cell.vue-DU5h-2C_.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-XR90UlHO.d.cts → as-table-header-cell.vue-KkANwimG.d.mts} +2 -2
- package/dist/{as-table-root-47hiBEnq.mjs → as-table-root-BreMYhnv.mjs} +4 -4
- package/dist/{as-table-root-DDeGktcl.cjs → as-table-root-DXewWV9h.cjs} +4 -4
- 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-yZ7ZcwdT.d.cts → as-table-root.vue-CXaFNCMi.d.cts} +3 -3
- package/dist/{as-table-root.vue-BGx453_Q.d.mts → as-table-root.vue-DTos5nn3.d.mts} +3 -3
- 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-pYZ4eGni.d.cts → as-table.vue-Cn1CXJ1Y.d.mts} +3 -3
- package/dist/{as-table.vue-BgcFEBxt.d.mts → as-table.vue-EfLWpNy3.d.cts} +3 -3
- package/dist/{as-window-table-hOYLNhX3.cjs → as-window-table-Bj1dXOS6.cjs} +3 -3
- package/dist/{as-window-table-C312T_bc.mjs → as-window-table-JOTOi_Nm.mjs} +3 -3
- package/dist/as-window-table.cjs +1 -1
- package/dist/as-window-table.d.cts +1 -1
- package/dist/as-window-table.d.mts +1 -1
- package/dist/as-window-table.mjs +1 -1
- package/dist/{as-window-table.vue-6RsX1T1D.d.cts → as-window-table.vue-DCd8FtpC.d.cts} +2 -2
- package/dist/{as-window-table.vue-DZ23YTmK.d.mts → as-window-table.vue-DN5hed6Y.d.mts} +2 -2
- package/dist/index.cjs +19 -18
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +19 -19
- package/dist/{types-BU7J-a1r.d.mts → types-BEZ4_erB.d.mts} +86 -11
- package/dist/{types-D4dK49sA.d.cts → types-D1NxhrpW.d.cts} +86 -11
- package/dist/{use-table-DlqGHjPh.mjs → use-table-BTsNGBVx.mjs} +1 -1
- package/dist/{use-table-yZNJTfRq.cjs → use-table-W0KmaJ6L.cjs} +1 -1
- package/dist/{use-table-column-handlers-0myVzrZR.mjs → use-table-column-handlers-BitvioH4.mjs} +1 -1
- package/dist/{use-table-column-handlers-BHMCo_HR.cjs → use-table-column-handlers-DksXpbON.cjs} +1 -1
- package/dist/{use-table-component-IziAm0vk.cjs → use-table-component-BvAC82_c.cjs} +1 -1
- package/dist/{use-table-component-TLwFq4rx.mjs → use-table-component-DRMXTk9M.mjs} +1 -1
- package/dist/{use-table-nav-bridge-CkQqimdS.mjs → use-table-nav-bridge-Bw0NFDSf.mjs} +1 -1
- package/dist/{use-table-nav-bridge-QU4jKhqx.cjs → use-table-nav-bridge-CPI1tql6.cjs} +1 -1
- package/dist/{use-table-state-BiklfjP0.cjs → use-table-state-Ddr2UZzB.cjs} +298 -88
- package/dist/{use-table-state-Cq-3tbVr.mjs → use-table-state-DuY-Mf8e.mjs} +271 -85
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { A as TableNavBridge, D as TAsTableControls, E as TAsCellTypeComponents, O as TVueTableActionInfo, _ as RowActionsConfig, a as ConfirmOptions, d as NavKeyOptions, f as PresetConfig, k as TableActionsState, m as ReactiveTableState, o as DroppedFieldsReport, t as ActionResult } from "./types-BEZ4_erB.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";
|
|
@@ -2571,11 +2571,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2571
2571
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2572
2572
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2573
2573
|
} & {
|
|
2574
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2574
2575
|
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2575
2576
|
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
2576
2577
|
"fields-dropped": (report: DroppedFieldsReport) => any;
|
|
2577
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2578
2578
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2579
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2579
2580
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2580
2581
|
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
2581
2582
|
"onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
|
|
@@ -2586,7 +2587,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2586
2587
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2587
2588
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2588
2589
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2589
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2590
2590
|
}>, {
|
|
2591
2591
|
localSort: boolean;
|
|
2592
2592
|
queryOnMount: boolean;
|
package/dist/as-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table = require("./as-table-
|
|
1
|
+
const require_as_table = require("./as-table-BjKzKB0a.cjs");
|
|
2
2
|
module.exports = require_as_table.as_table_default;
|
package/dist/as-table.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-EfLWpNy3.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-Cn1CXJ1Y.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-
|
|
1
|
+
import { t as as_table_default } from "./as-table-DGWfzV4w.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { S as RowSelectableHook, T as SelectOn, b as RowDeleteOpt, g as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowAttrsHook, y as RowClassHook } from "./types-BEZ4_erB.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/as-table.vue.d.ts
|
|
@@ -93,12 +93,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
93
93
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
94
94
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
|
+
select: SelectionMode;
|
|
96
97
|
stickyHeader: boolean;
|
|
97
98
|
virtualOverscan: number;
|
|
98
99
|
reorderable: boolean;
|
|
99
100
|
resizable: boolean;
|
|
100
101
|
columnMinWidth: number;
|
|
101
|
-
select: SelectionMode;
|
|
102
102
|
selectOn: SelectOn;
|
|
103
103
|
rowDelete: boolean | RowDeleteOpt;
|
|
104
104
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { S as RowSelectableHook, T as SelectOn, b as RowDeleteOpt, g as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowAttrsHook, y as RowClassHook } from "./types-D1NxhrpW.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/as-table.vue.d.ts
|
|
@@ -93,12 +93,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
93
93
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
94
94
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
|
+
select: SelectionMode;
|
|
96
97
|
stickyHeader: boolean;
|
|
97
98
|
virtualOverscan: number;
|
|
98
99
|
reorderable: boolean;
|
|
99
100
|
resizable: boolean;
|
|
100
101
|
columnMinWidth: number;
|
|
101
|
-
select: SelectionMode;
|
|
102
102
|
selectOn: SelectOn;
|
|
103
103
|
rowDelete: boolean | RowDeleteOpt;
|
|
104
104
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
3
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
4
4
|
const require_use_has_emit_listener = require("./use-has-emit-listener-BaGFZDyM.cjs");
|
|
5
|
-
const require_use_table_column_handlers = require("./use-table-column-handlers-
|
|
6
|
-
const require_as_select_cell = require("./as-select-cell-
|
|
5
|
+
const require_use_table_column_handlers = require("./use-table-column-handlers-DksXpbON.cjs");
|
|
6
|
+
const require_as_select_cell = require("./as-select-cell-DwMfqBMV.cjs");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
9
9
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as toSelectAllState, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { _ as toSelectAllState, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
3
|
import { t as useSelectModeReset } from "./use-table-selection-ULbKT2xW.mjs";
|
|
4
4
|
import { t as useHasEmitListener } from "./use-has-emit-listener-DrBbsLHQ.mjs";
|
|
5
|
-
import { n as useRowActionsColumn, t as useTableColumnHandlers } from "./use-table-column-handlers-
|
|
6
|
-
import { a as useRafBatch, i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-
|
|
5
|
+
import { n as useRowActionsColumn, t as useTableColumnHandlers } from "./use-table-column-handlers-BitvioH4.mjs";
|
|
6
|
+
import { a as useRafBatch, i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-BMptU5sQ.mjs";
|
|
7
7
|
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";
|
|
8
8
|
import { DEFAULT_ROW_HEIGHT_PX, clampTopIndex, filledFilterCount, rowsToPks } from "@atscript/ui-table";
|
|
9
9
|
import { useElementSize, useResizeObserver } from "@vueuse/core";
|
package/dist/as-window-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_window_table = require("./as-window-table-
|
|
1
|
+
const require_as_window_table = require("./as-window-table-Bj1dXOS6.cjs");
|
|
2
2
|
module.exports = require_as_window_table.as_window_table_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DCd8FtpC.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DN5hed6Y.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-window-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
1
|
+
import { t as as_window_table_default } from "./as-window-table-JOTOi_Nm.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as RowSelectableHook, T as SelectOn, b as RowDeleteOpt, g as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowAttrsHook, y as RowClassHook } from "./types-D1NxhrpW.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -110,10 +110,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
110
110
|
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
111
111
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
+
select: SelectionMode;
|
|
113
114
|
reorderable: boolean;
|
|
114
115
|
resizable: boolean;
|
|
115
116
|
columnMinWidth: number;
|
|
116
|
-
select: SelectionMode;
|
|
117
117
|
selectOn: SelectOn;
|
|
118
118
|
rowDelete: boolean | RowDeleteOpt;
|
|
119
119
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as RowSelectableHook, T as SelectOn, b as RowDeleteOpt, g as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowAttrsHook, y as RowClassHook } from "./types-BEZ4_erB.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -110,10 +110,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
110
110
|
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
111
111
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
+
select: SelectionMode;
|
|
113
114
|
reorderable: boolean;
|
|
114
115
|
resizable: boolean;
|
|
115
116
|
columnMinWidth: number;
|
|
116
|
-
select: SelectionMode;
|
|
117
117
|
selectOn: SelectOn;
|
|
118
118
|
rowDelete: boolean | RowDeleteOpt;
|
|
119
119
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
3
3
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
4
4
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
5
|
-
const require_use_table = require("./use-table-
|
|
6
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
7
|
-
const require_use_table_component = require("./use-table-component-
|
|
5
|
+
const require_use_table = require("./use-table-W0KmaJ6L.cjs");
|
|
6
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-CPI1tql6.cjs");
|
|
7
|
+
const require_use_table_component = require("./use-table-component-BvAC82_c.cjs");
|
|
8
8
|
const require_as_cell_array = require("./as-cell-array-CCZ0Ajj9.cjs");
|
|
9
9
|
const require_as_cell_date = require("./as-cell-date-RU5JPJhI.cjs");
|
|
10
10
|
const require_use_cell_locale = require("./use-cell-locale-BGBRQB7s.cjs");
|
|
@@ -13,22 +13,22 @@ const require_as_cell_number = require("./as-cell-number-DGJCTXDf.cjs");
|
|
|
13
13
|
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-LOGvhPeK.cjs");
|
|
15
15
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
16
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
17
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-CpW1Qemf.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-D3Vu1Rb_.cjs");
|
|
18
18
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
19
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
20
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
21
|
-
const require_as_window_table = require("./as-window-table-
|
|
22
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
23
|
-
const require_as_residual_filter = require("./as-residual-filter-
|
|
24
|
-
const require_as_filters = require("./as-filters-
|
|
25
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
26
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-C4EyRr2_.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BwaOPYwI.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-Bj1dXOS6.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-BQ9UlV0y.cjs");
|
|
23
|
+
const require_as_residual_filter = require("./as-residual-filter-C8n7kdGW.cjs");
|
|
24
|
+
const require_as_filters = require("./as-filters-DUfFkXAo.cjs");
|
|
25
|
+
const require_as_preset_dialog = require("./as-preset-dialog-BlXqTZiT.cjs");
|
|
26
|
+
const require_as_row_actions = require("./as-row-actions-DfUL9sYB.cjs");
|
|
27
27
|
const require_as_table_cell_value = require("./as-table-cell-value-COyZnwUj.cjs");
|
|
28
|
-
const require_as_table_root = require("./as-table-root-
|
|
29
|
-
const require_as_table = require("./as-table-
|
|
30
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
31
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
28
|
+
const require_as_table_root = require("./as-table-root-DXewWV9h.cjs");
|
|
29
|
+
const require_as_table = require("./as-table-BjKzKB0a.cjs");
|
|
30
|
+
const require_as_table_actions = require("./as-table-actions-DplblFlK.cjs");
|
|
31
|
+
const require_as_preset_picker = require("./as-preset-picker-CVgyZBG7.cjs");
|
|
32
32
|
let _atscript_ui = require("@atscript/ui");
|
|
33
33
|
let vue = require("vue");
|
|
34
34
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -736,6 +736,7 @@ Object.defineProperty(exports, "resetDefaultClientFactory", {
|
|
|
736
736
|
return _atscript_ui.resetDefaultClientFactory;
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
|
+
exports.resolveRowActions = require_use_table_state.resolveRowActions;
|
|
739
740
|
Object.defineProperty(exports, "resolveSystemPresets", {
|
|
740
741
|
enumerable: true,
|
|
741
742
|
get: function() {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-vH1FHn9L.cjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
|
-
import { A as
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { A as TableNavBridge, C as RowSelectableVerdict, D as TAsTableControls, E as TAsCellTypeComponents, M as extractIdentifier, O as TVueTableActionInfo, S as RowSelectableHook, T as SelectOn, _ as RowActionsConfig, b as RowDeleteOpt, c as InvokeOpts, d as NavKeyOptions, h as ResolvedRowActions, i as ConfigTab, j as resolveRowActions, k as TableActionsState, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowAttrsHook, w as SelectAllState, x as RowHookContext, y as RowClassHook } from "./types-D1NxhrpW.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-DgMw3xJn.cjs";
|
|
5
|
+
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-CXaFNCMi.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-EfLWpNy3.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DCd8FtpC.cjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CJ2K5zeM.cjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CslPM_c2.cjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-ByTECTbX.cjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-DvvJi3xx.cjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-CXxLpzbu.cjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-BV2J8PgZ.cjs";
|
|
17
17
|
import { t as _default$9 } from "./as-filter-field.vue-ByQ8xIGq.cjs";
|
|
18
18
|
import { t as _default$10 } from "./as-filter-input.vue-CS4nOk_Q.cjs";
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-DP9fy00Y.cjs";
|
|
20
|
-
import { t as _default$14 } from "./as-row-actions.vue-
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-Ba3VO9W-.cjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-C0VR9GRK.cjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
23
|
-
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectAllState, SelectOn, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-DU5h-2C_.cjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, ResolvedRowActions, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectAllState, SelectOn, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveRowActions, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-dHbGmcbr.mjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-OaAV2v9z.mjs";
|
|
3
|
-
import { A as
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { A as TableNavBridge, C as RowSelectableVerdict, D as TAsTableControls, E as TAsCellTypeComponents, M as extractIdentifier, O as TVueTableActionInfo, S as RowSelectableHook, T as SelectOn, _ as RowActionsConfig, b as RowDeleteOpt, c as InvokeOpts, d as NavKeyOptions, h as ResolvedRowActions, i as ConfigTab, j as resolveRowActions, k as TableActionsState, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowAttrsHook, w as SelectAllState, x as RowHookContext, y as RowClassHook } from "./types-BEZ4_erB.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-BL4xy2-d.mjs";
|
|
5
|
+
import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-DTos5nn3.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-Cn1CXJ1Y.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DN5hed6Y.mjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-ow34clSF.mjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-B4JCr1qP.mjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-B-T3TuFj.mjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CNH2fbCB.mjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CZwN81H4.mjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-TChT482i.mjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-BKo2GpzN.mjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-BN_yzu3h.mjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-Bl8OIKOf.mjs";
|
|
17
17
|
import { t as _default$9 } from "./as-filter-field.vue-DD0IZXS1.mjs";
|
|
18
18
|
import { t as _default$10 } from "./as-filter-input.vue-CFZ33B--.mjs";
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-ChM7H7B4.mjs";
|
|
20
|
-
import { t as _default$14 } from "./as-row-actions.vue-
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-CKOnE0eb.mjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-DphckGq-.mjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
23
|
-
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectAllState, SelectOn, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-KkANwimG.mjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, ResolvedRowActions, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectAllState, SelectOn, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveRowActions, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as ROW_ACTIONS_TYPE, T as extractIdentifier, a as useTableContext, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState, v as resolveRowActions } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
3
|
import { n as useTableSelection } from "./use-table-selection-ULbKT2xW.mjs";
|
|
4
|
-
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-
|
|
5
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
6
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
4
|
+
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-BTsNGBVx.mjs";
|
|
5
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-Bw0NFDSf.mjs";
|
|
6
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
7
7
|
import { t as as_cell_array_default } from "./as-cell-array-Bgc4GYZf.mjs";
|
|
8
8
|
import { t as as_cell_date_default } from "./as-cell-date-B9mu0OOD.mjs";
|
|
9
9
|
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-MQXoONh5.mjs";
|
|
@@ -12,22 +12,22 @@ import { t as as_cell_number_default } from "./as-cell-number-CNDT6gfw.mjs";
|
|
|
12
12
|
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-DMnoa7RM.mjs";
|
|
14
14
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.mjs";
|
|
15
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
16
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-ObHtungs.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-zg7jmS3u.mjs";
|
|
17
17
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
18
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
19
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
20
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
21
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
22
|
-
import { t as as_residual_filter_default } from "./as-residual-filter-
|
|
23
|
-
import { t as as_filters_default } from "./as-filters-
|
|
24
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
25
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-CWy0mjZl.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Csv1KQDa.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-JOTOi_Nm.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-CW1_GHZT.mjs";
|
|
22
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-CUTouIn5.mjs";
|
|
23
|
+
import { t as as_filters_default } from "./as-filters-BLFSS_VP.mjs";
|
|
24
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-CI2Hw8vi.mjs";
|
|
25
|
+
import { t as as_row_actions_default } from "./as-row-actions-ed1P6GEJ.mjs";
|
|
26
26
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-DoH8Mieo.mjs";
|
|
27
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
28
|
-
import { t as as_table_default } from "./as-table-
|
|
29
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
30
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
27
|
+
import { t as as_table_root_default } from "./as-table-root-BreMYhnv.mjs";
|
|
28
|
+
import { t as as_table_default } from "./as-table-DGWfzV4w.mjs";
|
|
29
|
+
import { t as as_table_actions_default } from "./as-table-actions-DQco4pGu.mjs";
|
|
30
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CbZDGPaf.mjs";
|
|
31
31
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
32
32
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
33
33
|
import { AppPrefsClient, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, collectExportRows, columnDefaultCondition, columnFilterConditions, columnFilterType, isFilled, isSystemPresetId, isUnavailableError, resolveExportValue, resolveSystemPresets, toCsv, urlQueryConsumesKey, withStableOrder } from "@atscript/ui-table";
|
|
@@ -658,4 +658,4 @@ function getColumnWidth(column) {
|
|
|
658
658
|
return column.width || DEFAULT_WIDTHS[column.type] || "15em";
|
|
659
659
|
}
|
|
660
660
|
//#endregion
|
|
661
|
-
export { AS_PRESETS_APP, as_cell_array_default as AsCellArray, as_cell_date_default as AsCellDate, as_cell_json_default as AsCellJson, as_cell_number_default as AsCellNumber, as_cell_union_default as AsCellUnion, as_column_menu_default as AsColumnMenu, as_config_dialog_default as AsConfigDialog, as_confirm_dialog_default as AsConfirmDialog, as_filter_dialog_default as AsFilterDialog, as_filter_field_default as AsFilterField, as_filter_input_default as AsFilterInput, as_filters_default as AsFilters, as_preset_dialog_default as AsPresetDialog, as_preset_picker_default as AsPresetPicker, as_row_actions_default as AsRowActions, as_table_default as AsTable, as_table_actions_default as AsTableActions, as_table_cell_value_default as AsTableCellValue, as_table_header_cell_default as AsTableHeaderCell, as_table_root_default as AsTableRoot, as_window_table_default as AsWindowTable, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
661
|
+
export { AS_PRESETS_APP, as_cell_array_default as AsCellArray, as_cell_date_default as AsCellDate, as_cell_json_default as AsCellJson, as_cell_number_default as AsCellNumber, as_cell_union_default as AsCellUnion, as_column_menu_default as AsColumnMenu, as_config_dialog_default as AsConfigDialog, as_confirm_dialog_default as AsConfirmDialog, as_filter_dialog_default as AsFilterDialog, as_filter_field_default as AsFilterField, as_filter_input_default as AsFilterInput, as_filters_default as AsFilters, as_preset_dialog_default as AsPresetDialog, as_preset_picker_default as AsPresetPicker, as_row_actions_default as AsRowActions, as_table_default as AsTable, as_table_actions_default as AsTableActions, as_table_cell_value_default as AsTableCellValue, as_table_header_cell_default as AsTableHeaderCell, as_table_root_default as AsTableRoot, as_window_table_default as AsWindowTable, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveRowActions, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
@@ -5,6 +5,13 @@ import { ClientError, PageResult, TDbActionInfo, TDbActionProcessor, TDbDeleteRe
|
|
|
5
5
|
import { FilterExpr, Uniquery } from "@uniqu/core";
|
|
6
6
|
|
|
7
7
|
//#region src/composables/state/intent-scope.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Per-action verdict of a gate: `true` keeps the action as is, `false` drops
|
|
10
|
+
* it (hidden), a non-empty string keeps it DISABLED with that string as the
|
|
11
|
+
* reason (`""` counts as `true`).
|
|
12
|
+
*/
|
|
13
|
+
type ActionVerdict = boolean | string;
|
|
14
|
+
type ActionGate = (a: TVueTableActionInfo) => ActionVerdict;
|
|
8
15
|
interface ActionBuckets {
|
|
9
16
|
default: TVueTableActionInfo | undefined;
|
|
10
17
|
others: TVueTableActionInfo[];
|
|
@@ -29,25 +36,39 @@ declare function extractIdentifier(source: unknown, preferredId: readonly string
|
|
|
29
36
|
/**
|
|
30
37
|
* A {@link RowActionsConfig} compiled into the two passes a surface runs per
|
|
31
38
|
* row. Built once per config change (not once per row per render), so the
|
|
32
|
-
* `include` / `exclude` sets
|
|
39
|
+
* `include` / `exclude` sets, the override lookups and the app-owned action
|
|
40
|
+
* descriptors exist once. Surfaces call {@link resolveRowActions}, not this.
|
|
33
41
|
*/
|
|
34
42
|
interface RowActionsPolicy {
|
|
35
43
|
/**
|
|
36
|
-
*
|
|
37
|
-
* `
|
|
38
|
-
*
|
|
44
|
+
* Gate + narrow + relabel in ONE pass: the row's server verdict
|
|
45
|
+
* (`rowGate`, from `rowActionGate`) first, then `include` / `exclude`, then
|
|
46
|
+
* `overrides`. That order is the whole safety story: `include` can only
|
|
47
|
+
* narrow what the server allowed for the row, and `overrides`
|
|
39
48
|
* (presentation only) cannot resurrect an action the server gated away.
|
|
40
|
-
* Returns the input reference when
|
|
49
|
+
* Returns the input reference when nothing changes.
|
|
41
50
|
*/
|
|
42
|
-
apply: (buckets: ActionBuckets) => ActionBuckets;
|
|
51
|
+
apply: (buckets: ActionBuckets, rowGate?: ActionGate | null) => ActionBuckets;
|
|
43
52
|
/**
|
|
44
53
|
* The app-owned actions for `row`. `include` lists SERVER action names —
|
|
45
54
|
* being listed in `extra` IS an app action's opt-in — so only `exclude` and
|
|
46
|
-
* the action's own `enabled(row)` apply here
|
|
55
|
+
* the action's own `enabled(row)` apply here: `false` hides it, a non-empty
|
|
56
|
+
* string keeps it disabled with that reason. Pass no row to skip the
|
|
47
57
|
* per-row gate (a surface with no row in hand).
|
|
48
58
|
*/
|
|
49
59
|
extra: (row?: Record<string, unknown>) => TVueTableActionInfo[];
|
|
50
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* The row actions a surface renders for `row` — the one shared per-row
|
|
63
|
+
* pipeline behind `<AsRowActions>`, the `<AsTableActions>` row level and the
|
|
64
|
+
* Enter / double-click main-action fallback: the row's server gate
|
|
65
|
+
* (`$actions` / `$disabledReasons`) and the root's `:row-actions` policy in a
|
|
66
|
+
* single pass, plus the policy's app-owned `extra` actions. Pass
|
|
67
|
+
* `withRows: false` to leave out the rows-level bucket.
|
|
68
|
+
*/
|
|
69
|
+
declare function resolveRowActions(state: ReactiveTableState, row: Record<string, unknown> | undefined, opts?: {
|
|
70
|
+
withRows?: boolean;
|
|
71
|
+
}): ResolvedRowActions;
|
|
51
72
|
//#endregion
|
|
52
73
|
//#region src/types.d.ts
|
|
53
74
|
/** UI-side sentinel for the synthesised row-delete processor. */
|
|
@@ -63,6 +84,17 @@ type RowActionsColumnPlacement = "first" | "last" | "merge-select";
|
|
|
63
84
|
*/
|
|
64
85
|
type TVueTableActionInfo = Omit<TDbActionInfo, "processor"> & {
|
|
65
86
|
processor: TDbActionProcessor | typeof REMOVE_PROCESSOR;
|
|
87
|
+
/**
|
|
88
|
+
* Set when the action is shown DISABLED for the targeted row(s): the
|
|
89
|
+
* reason the server's `disabled` predicate returned (row
|
|
90
|
+
* `$disabledReasons`), or a client-only action's `enabled(row)` string.
|
|
91
|
+
* Built-in surfaces render it greyed with `aria-disabled` and the reason,
|
|
92
|
+
* and never trigger it; a custom `button` / `menu-item` slot should render
|
|
93
|
+
* the reason too. Not to be confused with `TDbActionInfo.disabled` — the
|
|
94
|
+
* server predicate's source. Only on the gated copies a surface renders,
|
|
95
|
+
* never on `state.actions.*`. Since 0.1.144.
|
|
96
|
+
*/
|
|
97
|
+
disabledReason?: string;
|
|
66
98
|
};
|
|
67
99
|
/** Per-call options for `state.actions.invoke`. */
|
|
68
100
|
interface InvokeOpts {
|
|
@@ -104,8 +136,12 @@ interface LocalRowAction {
|
|
|
104
136
|
href?: (row: Record<string, unknown>) => string;
|
|
105
137
|
/** Local handler. Awaited; a rejection settles the action as an error result. */
|
|
106
138
|
onInvoke?: (row: Record<string, unknown>, pk?: Record<string, unknown>) => void | Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
|
|
139
|
+
/**
|
|
140
|
+
* Per-row gate. `false` hides the action for that row; a non-empty string
|
|
141
|
+
* shows it disabled with that string as the reason (since 0.1.144).
|
|
142
|
+
* Anything else — `true`, `""` — enables it.
|
|
143
|
+
*/
|
|
144
|
+
enabled?: (row: Record<string, unknown>) => boolean | string;
|
|
109
145
|
}
|
|
110
146
|
/**
|
|
111
147
|
* Per-screen presentation policy for the row-actions cell. Narrows and
|
|
@@ -126,6 +162,23 @@ interface RowActionsConfig {
|
|
|
126
162
|
/** App-owned actions appended after the server ones. */
|
|
127
163
|
extra?: LocalRowAction[];
|
|
128
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* The row actions a surface renders for one row — see `resolveRowActions`.
|
|
167
|
+
* The server-declared buckets come back gated and policy-applied (hidden
|
|
168
|
+
* actions dropped, disabled ones as copies carrying `disabledReason`,
|
|
169
|
+
* `overrides` applied); `extra` holds the policy's app-owned actions. Since
|
|
170
|
+
* 0.1.144.
|
|
171
|
+
*/
|
|
172
|
+
interface ResolvedRowActions {
|
|
173
|
+
/** `state.actions.default.row`, if it survived the row's gate and the policy. */
|
|
174
|
+
default: TVueTableActionInfo | undefined;
|
|
175
|
+
/** `state.actions.others.row` (row-level, minus the default). */
|
|
176
|
+
others: TVueTableActionInfo[];
|
|
177
|
+
/** `state.actions.rows` — empty when resolved with `withRows: false`. */
|
|
178
|
+
rows: TVueTableActionInfo[];
|
|
179
|
+
/** `RowActionsConfig.extra`, gated by each one's `enabled(row)`. */
|
|
180
|
+
extra: TVueTableActionInfo[];
|
|
181
|
+
}
|
|
129
182
|
/** Discriminated result returned by `state.actions.invoke`. Never throws. */
|
|
130
183
|
type ActionResult = {
|
|
131
184
|
ok: true;
|
|
@@ -547,6 +600,26 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
547
600
|
selectedCount: ComputedRef<number>;
|
|
548
601
|
/** Extract unique value from a row for selection tracking. */
|
|
549
602
|
rowValueFn: (row: Record<string, unknown>) => unknown;
|
|
603
|
+
/**
|
|
604
|
+
* Every loaded row (`windowCache`) keyed by its `rowValueFn` value.
|
|
605
|
+
* Computed lazily and memoised per cache instance, so resolving scalar
|
|
606
|
+
* selections costs one map build per fetch, not one per read. Since
|
|
607
|
+
* 0.1.144.
|
|
608
|
+
*/
|
|
609
|
+
rowByValue: ComputedRef<ReadonlyMap<unknown, Record<string, unknown>>>;
|
|
610
|
+
/**
|
|
611
|
+
* The row behind a selection value: an object value IS the row; a scalar
|
|
612
|
+
* (a `rowValueFn` returning the PK) is looked up in {@link rowByValue} —
|
|
613
|
+
* `undefined` when that row is not loaded. Since 0.1.144.
|
|
614
|
+
*/
|
|
615
|
+
rowOf: (value: unknown) => Record<string, unknown> | undefined;
|
|
616
|
+
/**
|
|
617
|
+
* The loaded rows of the current selection, in selection order — selected
|
|
618
|
+
* values whose row is not loaded are left out. The toolbar's bulk action
|
|
619
|
+
* gate reads the rows' `$actions` / `$disabledReasons` from here. Since
|
|
620
|
+
* 0.1.144.
|
|
621
|
+
*/
|
|
622
|
+
selectedRowObjects: ComputedRef<Record<string, unknown>[]>;
|
|
550
623
|
/**
|
|
551
624
|
* Map a navigate action's interpolated href before it is used as an
|
|
552
625
|
* anchor's `href` attribute or a mod/middle-click `window.open` target —
|
|
@@ -575,7 +648,9 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
575
648
|
* `<AsTable>` / `<AsWindowTable>` flip this on whenever their
|
|
576
649
|
* `:row-actions-column` prop is non-`false` AND the table has at least one
|
|
577
650
|
* row/rows-level action. When on, `buildTableQuery` requests per-row
|
|
578
|
-
* `$actions: string[]`
|
|
651
|
+
* `$actions: string[]` (plus `$disabledReasons` from servers that give
|
|
652
|
+
* reasons) so the action surfaces hide server-disabled actions — or show
|
|
653
|
+
* them disabled with the reason, when the server gave one.
|
|
579
654
|
*/
|
|
580
655
|
includeActions: Ref<boolean>;
|
|
581
656
|
/**
|
|
@@ -937,4 +1012,4 @@ interface PresetSurface {
|
|
|
937
1012
|
lastError: Ref<Error | null>;
|
|
938
1013
|
}
|
|
939
1014
|
//#endregion
|
|
940
|
-
export {
|
|
1015
|
+
export { TableNavBridge as A, RowSelectableVerdict as C, TAsTableControls as D, TAsCellTypeComponents as E, extractIdentifier as M, TVueTableActionInfo as O, RowSelectableHook as S, SelectOn as T, RowActionsConfig as _, ConfirmOptions as a, RowDeleteOpt as b, InvokeOpts as c, NavKeyOptions as d, PresetConfig as f, RowActionsColumnPlacement as g, ResolvedRowActions as h, ConfigTab as i, resolveRowActions as j, TableActionsState as k, LocalRowAction as l, ReactiveTableState as m, ApplyUrlQueryOptions as n, DroppedFieldsReport as o, QueryErrorKind as p, ColumnMenuConfig as r, EnterAction as s, ActionResult as t, MainActionRequest as u, RowAttrsHook as v, SelectAllState as w, RowHookContext as x, RowClassHook as y };
|