@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.
Files changed (109) hide show
  1. package/dist/as-action-form-dialog.cjs +1 -1
  2. package/dist/as-action-form-dialog.mjs +1 -1
  3. package/dist/{as-action-menu-content-miQYVP7x.mjs → as-action-menu-content-DoZnQP0I.mjs} +37 -25
  4. package/dist/{as-action-menu-content-BaNFBYn3.cjs → as-action-menu-content-FQ2miGid.cjs} +36 -24
  5. package/dist/as-column-menu.d.cts +1 -1
  6. package/dist/as-column-menu.d.mts +1 -1
  7. package/dist/{as-column-menu.vue-Ca3wSDxw.d.mts → as-column-menu.vue-ByTECTbX.d.cts} +2 -2
  8. package/dist/{as-column-menu.vue-Co7FtiEM.d.cts → as-column-menu.vue-TChT482i.d.mts} +2 -2
  9. package/dist/{as-config-dialog-CVSOrS9O.cjs → as-config-dialog-CpW1Qemf.cjs} +2 -2
  10. package/dist/{as-config-dialog-Di02V3bs.mjs → as-config-dialog-ObHtungs.mjs} +2 -2
  11. package/dist/as-config-dialog.cjs +1 -1
  12. package/dist/as-config-dialog.mjs +1 -1
  13. package/dist/{as-confirm-dialog-fCwo1ty9.cjs → as-confirm-dialog-D3Vu1Rb_.cjs} +1 -1
  14. package/dist/{as-confirm-dialog-C9Qat2rG.mjs → as-confirm-dialog-zg7jmS3u.mjs} +1 -1
  15. package/dist/as-confirm-dialog.cjs +1 -1
  16. package/dist/as-confirm-dialog.mjs +1 -1
  17. package/dist/{as-filter-dialog-DYpbsNDx.cjs → as-filter-dialog-C4EyRr2_.cjs} +7 -7
  18. package/dist/{as-filter-dialog-DdtrTT5w.mjs → as-filter-dialog-CWy0mjZl.mjs} +7 -7
  19. package/dist/as-filter-dialog.cjs +1 -1
  20. package/dist/as-filter-dialog.mjs +1 -1
  21. package/dist/{as-filter-field-4-qFRsJx.cjs → as-filter-field-BQ9UlV0y.cjs} +3 -3
  22. package/dist/{as-filter-field-DEQVodKG.mjs → as-filter-field-CW1_GHZT.mjs} +3 -3
  23. package/dist/as-filter-field.cjs +1 -1
  24. package/dist/as-filter-field.mjs +1 -1
  25. package/dist/{as-filters-Dd_j6_6G.mjs → as-filters-BLFSS_VP.mjs} +4 -4
  26. package/dist/{as-filters-C6ZkLrf4.cjs → as-filters-DUfFkXAo.cjs} +4 -4
  27. package/dist/as-filters.cjs +1 -1
  28. package/dist/as-filters.mjs +1 -1
  29. package/dist/{as-preset-dialog-SYA-6lGR.cjs → as-preset-dialog-BlXqTZiT.cjs} +1 -1
  30. package/dist/{as-preset-dialog-Bap48oUv.mjs → as-preset-dialog-CI2Hw8vi.mjs} +1 -1
  31. package/dist/as-preset-dialog.cjs +1 -1
  32. package/dist/as-preset-dialog.mjs +1 -1
  33. package/dist/{as-preset-picker-BdKTZa95.cjs → as-preset-picker-CVgyZBG7.cjs} +1 -1
  34. package/dist/{as-preset-picker-NBrvsE6s.mjs → as-preset-picker-CbZDGPaf.mjs} +1 -1
  35. package/dist/as-preset-picker.cjs +1 -1
  36. package/dist/as-preset-picker.mjs +1 -1
  37. package/dist/{as-residual-filter-CZ-Bytdj.cjs → as-residual-filter-C8n7kdGW.cjs} +1 -1
  38. package/dist/{as-residual-filter-BFnbI3h3.mjs → as-residual-filter-CUTouIn5.mjs} +1 -1
  39. package/dist/as-residual-filter.cjs +1 -1
  40. package/dist/as-residual-filter.mjs +1 -1
  41. package/dist/{as-row-actions-C3xHkX53.cjs → as-row-actions-DfUL9sYB.cjs} +21 -38
  42. package/dist/{as-row-actions-KeoHo9Ex.mjs → as-row-actions-ed1P6GEJ.mjs} +22 -39
  43. package/dist/as-row-actions.cjs +1 -1
  44. package/dist/as-row-actions.d.cts +1 -1
  45. package/dist/as-row-actions.d.mts +1 -1
  46. package/dist/as-row-actions.mjs +1 -1
  47. package/dist/{as-row-actions.vue-nmaDuxBT.d.mts → as-row-actions.vue-Ba3VO9W-.d.cts} +1 -1
  48. package/dist/{as-row-actions.vue-D3_z3ytk.d.cts → as-row-actions.vue-CKOnE0eb.d.mts} +1 -1
  49. package/dist/{as-select-cell-KD_ns8DS.mjs → as-select-cell-BMptU5sQ.mjs} +4 -4
  50. package/dist/{as-select-cell-XnzNuW2v.cjs → as-select-cell-DwMfqBMV.cjs} +4 -4
  51. package/dist/{as-table-ay1yel3u.cjs → as-table-BjKzKB0a.cjs} +3 -3
  52. package/dist/{as-table-NHqyekNd.mjs → as-table-DGWfzV4w.mjs} +3 -3
  53. package/dist/{as-table-actions-BpEFcsgh.mjs → as-table-actions-DQco4pGu.mjs} +16 -29
  54. package/dist/{as-table-actions-UQmFtRdJ.cjs → as-table-actions-DplblFlK.cjs} +15 -28
  55. package/dist/as-table-actions.cjs +1 -1
  56. package/dist/as-table-actions.d.cts +1 -1
  57. package/dist/as-table-actions.d.mts +1 -1
  58. package/dist/as-table-actions.mjs +1 -1
  59. package/dist/{as-table-actions.vue-BG3JVaBQ.d.mts → as-table-actions.vue-BL4xy2-d.d.mts} +2 -2
  60. package/dist/{as-table-actions.vue-DcuzNZoC.d.cts → as-table-actions.vue-DgMw3xJn.d.cts} +2 -2
  61. package/dist/{as-table-base-umzg4PBR.cjs → as-table-base-CNAn-vpa.cjs} +2 -2
  62. package/dist/{as-table-base-89DkDZ-1.mjs → as-table-base-lfyjPgsO.mjs} +2 -2
  63. package/dist/{as-table-header-cell-f3YpgJX1.cjs → as-table-header-cell-BwaOPYwI.cjs} +1 -1
  64. package/dist/{as-table-header-cell-DU3ws2x9.mjs → as-table-header-cell-Csv1KQDa.mjs} +1 -1
  65. package/dist/as-table-header-cell.cjs +1 -1
  66. package/dist/as-table-header-cell.d.cts +1 -1
  67. package/dist/as-table-header-cell.d.mts +1 -1
  68. package/dist/as-table-header-cell.mjs +1 -1
  69. package/dist/{as-table-header-cell.vue-5VGRc23o.d.mts → as-table-header-cell.vue-DU5h-2C_.d.cts} +2 -2
  70. package/dist/{as-table-header-cell.vue-XR90UlHO.d.cts → as-table-header-cell.vue-KkANwimG.d.mts} +2 -2
  71. package/dist/{as-table-root-47hiBEnq.mjs → as-table-root-BreMYhnv.mjs} +4 -4
  72. package/dist/{as-table-root-DDeGktcl.cjs → as-table-root-DXewWV9h.cjs} +4 -4
  73. package/dist/as-table-root.cjs +1 -1
  74. package/dist/as-table-root.d.cts +1 -1
  75. package/dist/as-table-root.d.mts +1 -1
  76. package/dist/as-table-root.mjs +1 -1
  77. package/dist/{as-table-root.vue-yZ7ZcwdT.d.cts → as-table-root.vue-CXaFNCMi.d.cts} +3 -3
  78. package/dist/{as-table-root.vue-BGx453_Q.d.mts → as-table-root.vue-DTos5nn3.d.mts} +3 -3
  79. package/dist/as-table.cjs +1 -1
  80. package/dist/as-table.d.cts +1 -1
  81. package/dist/as-table.d.mts +1 -1
  82. package/dist/as-table.mjs +1 -1
  83. package/dist/{as-table.vue-pYZ4eGni.d.cts → as-table.vue-Cn1CXJ1Y.d.mts} +3 -3
  84. package/dist/{as-table.vue-BgcFEBxt.d.mts → as-table.vue-EfLWpNy3.d.cts} +3 -3
  85. package/dist/{as-window-table-hOYLNhX3.cjs → as-window-table-Bj1dXOS6.cjs} +3 -3
  86. package/dist/{as-window-table-C312T_bc.mjs → as-window-table-JOTOi_Nm.mjs} +3 -3
  87. package/dist/as-window-table.cjs +1 -1
  88. package/dist/as-window-table.d.cts +1 -1
  89. package/dist/as-window-table.d.mts +1 -1
  90. package/dist/as-window-table.mjs +1 -1
  91. package/dist/{as-window-table.vue-6RsX1T1D.d.cts → as-window-table.vue-DCd8FtpC.d.cts} +2 -2
  92. package/dist/{as-window-table.vue-DZ23YTmK.d.mts → as-window-table.vue-DN5hed6Y.d.mts} +2 -2
  93. package/dist/index.cjs +19 -18
  94. package/dist/index.d.cts +9 -9
  95. package/dist/index.d.mts +9 -9
  96. package/dist/index.mjs +19 -19
  97. package/dist/{types-BU7J-a1r.d.mts → types-BEZ4_erB.d.mts} +86 -11
  98. package/dist/{types-D4dK49sA.d.cts → types-D1NxhrpW.d.cts} +86 -11
  99. package/dist/{use-table-DlqGHjPh.mjs → use-table-BTsNGBVx.mjs} +1 -1
  100. package/dist/{use-table-yZNJTfRq.cjs → use-table-W0KmaJ6L.cjs} +1 -1
  101. package/dist/{use-table-column-handlers-0myVzrZR.mjs → use-table-column-handlers-BitvioH4.mjs} +1 -1
  102. package/dist/{use-table-column-handlers-BHMCo_HR.cjs → use-table-column-handlers-DksXpbON.cjs} +1 -1
  103. package/dist/{use-table-component-IziAm0vk.cjs → use-table-component-BvAC82_c.cjs} +1 -1
  104. package/dist/{use-table-component-TLwFq4rx.mjs → use-table-component-DRMXTk9M.mjs} +1 -1
  105. package/dist/{use-table-nav-bridge-CkQqimdS.mjs → use-table-nav-bridge-Bw0NFDSf.mjs} +1 -1
  106. package/dist/{use-table-nav-bridge-QU4jKhqx.cjs → use-table-nav-bridge-CPI1tql6.cjs} +1 -1
  107. package/dist/{use-table-state-BiklfjP0.cjs → use-table-state-Ddr2UZzB.cjs} +298 -88
  108. package/dist/{use-table-state-Cq-3tbVr.mjs → use-table-state-DuY-Mf8e.mjs} +271 -85
  109. package/package.json +8 -8
@@ -1,4 +1,4 @@
1
- import { D as TVueTableActionInfo, E as TAsTableControls, O as TableActionsState, T as TAsCellTypeComponents, a as ConfirmOptions, d as NavKeyOptions, f as PresetConfig, g as RowActionsConfig, k as TableNavBridge, m as ReactiveTableState, o as DroppedFieldsReport, t as ActionResult } from "./types-BU7J-a1r.mjs";
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-ay1yel3u.cjs");
1
+ const require_as_table = require("./as-table-BjKzKB0a.cjs");
2
2
  module.exports = require_as_table.as_table_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-pYZ4eGni.cjs";
1
+ import { t as _default } from "./as-table.vue-EfLWpNy3.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-BgcFEBxt.mjs";
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-NHqyekNd.mjs";
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 { _ as RowAttrsHook, h as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-D4dK49sA.cjs";
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 { _ as RowAttrsHook, h as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-BU7J-a1r.mjs";
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-BiklfjP0.cjs");
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-BHMCo_HR.cjs");
6
- const require_as_select_cell = require("./as-select-cell-XnzNuW2v.cjs");
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-Cq-3tbVr.mjs";
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-0myVzrZR.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-KD_ns8DS.mjs";
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";
@@ -1,2 +1,2 @@
1
- const require_as_window_table = require("./as-window-table-hOYLNhX3.cjs");
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-6RsX1T1D.cjs";
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-DZ23YTmK.mjs";
1
+ import { t as _default } from "./as-window-table.vue-DN5hed6Y.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_window_table_default } from "./as-window-table-C312T_bc.mjs";
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 { _ as RowAttrsHook, h as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-D4dK49sA.cjs";
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 { _ as RowAttrsHook, h as RowActionsColumnPlacement, p as QueryErrorKind, r as ColumnMenuConfig, s as EnterAction, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-BU7J-a1r.mjs";
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-BiklfjP0.cjs");
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-yZNJTfRq.cjs");
6
- const require_use_table_nav_bridge = require("./use-table-nav-bridge-QU4jKhqx.cjs");
7
- const require_use_table_component = require("./use-table-component-IziAm0vk.cjs");
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-CVSOrS9O.cjs");
17
- const require_as_confirm_dialog = require("./as-confirm-dialog-fCwo1ty9.cjs");
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-DYpbsNDx.cjs");
20
- const require_as_table_header_cell = require("./as-table-header-cell-f3YpgJX1.cjs");
21
- const require_as_window_table = require("./as-window-table-hOYLNhX3.cjs");
22
- const require_as_filter_field = require("./as-filter-field-4-qFRsJx.cjs");
23
- const require_as_residual_filter = require("./as-residual-filter-CZ-Bytdj.cjs");
24
- const require_as_filters = require("./as-filters-C6ZkLrf4.cjs");
25
- const require_as_preset_dialog = require("./as-preset-dialog-SYA-6lGR.cjs");
26
- const require_as_row_actions = require("./as-row-actions-C3xHkX53.cjs");
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-DDeGktcl.cjs");
29
- const require_as_table = require("./as-table-ay1yel3u.cjs");
30
- const require_as_table_actions = require("./as-table-actions-UQmFtRdJ.cjs");
31
- const require_as_preset_picker = require("./as-preset-picker-BdKTZa95.cjs");
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 extractIdentifier, C as SelectAllState, D as TVueTableActionInfo, E as TAsTableControls, O as TableActionsState, S as RowSelectableVerdict, T as TAsCellTypeComponents, _ as RowAttrsHook, b as RowHookContext, c as InvokeOpts, d as NavKeyOptions, g as RowActionsConfig, i as ConfigTab, k as TableNavBridge, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-D4dK49sA.cjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-DcuzNZoC.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-yZ7ZcwdT.cjs";
6
- import { t as _default$15 } from "./as-table.vue-pYZ4eGni.cjs";
7
- import { t as _default$20 } from "./as-window-table.vue-6RsX1T1D.cjs";
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-Co7FtiEM.cjs";
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-D3_z3ytk.cjs";
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-XR90UlHO.cjs";
23
- export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, 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 extractIdentifier, C as SelectAllState, D as TVueTableActionInfo, E as TAsTableControls, O as TableActionsState, S as RowSelectableVerdict, T as TAsCellTypeComponents, _ as RowAttrsHook, b as RowHookContext, c as InvokeOpts, d as NavKeyOptions, g as RowActionsConfig, i as ConfigTab, k as TableNavBridge, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowClassHook, w as SelectOn, x as RowSelectableHook, y as RowDeleteOpt } from "./types-BU7J-a1r.mjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-BG3JVaBQ.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-BGx453_Q.mjs";
6
- import { t as _default$15 } from "./as-table.vue-BgcFEBxt.mjs";
7
- import { t as _default$20 } from "./as-window-table.vue-DZ23YTmK.mjs";
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-Ca3wSDxw.mjs";
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-nmaDuxBT.mjs";
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-5VGRc23o.mjs";
23
- export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, ApplyUrlQueryOptions, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, DroppedFieldsReport, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, 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 { a as useTableContext, j as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState, w as extractIdentifier } from "./use-table-state-Cq-3tbVr.mjs";
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-DlqGHjPh.mjs";
5
- import { t as useTableNavBridge } from "./use-table-nav-bridge-CkQqimdS.mjs";
6
- import { t as useTableComponent } from "./use-table-component-TLwFq4rx.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-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-Di02V3bs.mjs";
16
- import { t as as_confirm_dialog_default } from "./as-confirm-dialog-C9Qat2rG.mjs";
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-DdtrTT5w.mjs";
19
- import { t as as_table_header_cell_default } from "./as-table-header-cell-DU3ws2x9.mjs";
20
- import { t as as_window_table_default } from "./as-window-table-C312T_bc.mjs";
21
- import { t as as_filter_field_default } from "./as-filter-field-DEQVodKG.mjs";
22
- import { t as as_residual_filter_default } from "./as-residual-filter-BFnbI3h3.mjs";
23
- import { t as as_filters_default } from "./as-filters-Dd_j6_6G.mjs";
24
- import { t as as_preset_dialog_default } from "./as-preset-dialog-Bap48oUv.mjs";
25
- import { t as as_row_actions_default } from "./as-row-actions-KeoHo9Ex.mjs";
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-47hiBEnq.mjs";
28
- import { t as as_table_default } from "./as-table-NHqyekNd.mjs";
29
- import { t as as_table_actions_default } from "./as-table-actions-BpEFcsgh.mjs";
30
- import { t as as_preset_picker_default } from "./as-preset-picker-NBrvsE6s.mjs";
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 and the override lookups exist once.
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
- * Narrow + relabel already backend-gated buckets. Callers run
37
- * `applyRowGate` FIRST — that order is the whole safety story: `include`
38
- * can only narrow what the server allowed for the row, and `overrides`
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 the policy touches nothing.
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. Pass no row to skip the
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
- /** Per-row gate. Returning `false` hides the action for that row. */
108
- enabled?: (row: Record<string, unknown>) => boolean;
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[]` so the dropdown can hide server-disabled actions.
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 { extractIdentifier as A, SelectAllState as C, TVueTableActionInfo as D, TAsTableControls as E, TableActionsState as O, RowSelectableVerdict as S, TAsCellTypeComponents as T, RowAttrsHook as _, ConfirmOptions as a, RowHookContext as b, InvokeOpts as c, NavKeyOptions as d, PresetConfig as f, RowActionsConfig as g, RowActionsColumnPlacement as h, ConfigTab as i, TableNavBridge 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, RowClassHook as v, SelectOn as w, RowSelectableHook as x, RowDeleteOpt as y };
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 };