@atscript/vue-table 0.1.134 → 0.1.136

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 (103) 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-C_D_Fepo.cjs → as-action-menu-content-D8VzLK9e.cjs} +1 -1
  4. package/dist/{as-action-menu-content-rim8hAO9.mjs → as-action-menu-content-qATZy3cu.mjs} +1 -1
  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-De7SRhj6.d.cts → as-column-menu.vue-BaIGUOhP.d.mts} +2 -2
  8. package/dist/{as-column-menu.vue-Dg0H1dOd.d.mts → as-column-menu.vue-CDlI4-Cz.d.cts} +2 -2
  9. package/dist/{as-config-dialog-BUBHiVlf.mjs → as-config-dialog-BMQxSqzl.mjs} +6 -3
  10. package/dist/{as-config-dialog-DvBptYMS.cjs → as-config-dialog-CP362FP3.cjs} +6 -3
  11. package/dist/as-config-dialog.cjs +1 -1
  12. package/dist/as-config-dialog.mjs +1 -1
  13. package/dist/{as-confirm-dialog-ByMfIG0A.cjs → as-confirm-dialog-D41XaN_P.cjs} +1 -1
  14. package/dist/{as-confirm-dialog-G4ZoL_Xo.mjs → as-confirm-dialog-Dp_njNXz.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-C2oyT0yt.cjs → as-filter-dialog-BCUqpKPd.cjs} +7 -7
  18. package/dist/{as-filter-dialog-BJWH8cvc.mjs → as-filter-dialog-kAXGDwsk.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-DxGfasQj.cjs → as-filter-field-D3jSbSwB.cjs} +3 -3
  22. package/dist/{as-filter-field-B2skq4K0.mjs → as-filter-field-WnV2axh8.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-DogNVlqr.mjs → as-filters-Bc44srvA.mjs} +3 -3
  26. package/dist/{as-filters-Bhte22La.cjs → as-filters-Dp93OWRS.cjs} +3 -3
  27. package/dist/as-filters.cjs +1 -1
  28. package/dist/as-filters.mjs +1 -1
  29. package/dist/{as-preset-dialog-BwHV6Y77.mjs → as-preset-dialog-Bx4nRuyk.mjs} +1 -1
  30. package/dist/{as-preset-dialog-D2a6nxEX.cjs → as-preset-dialog-pusPD935.cjs} +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-B0JnyAPA.mjs → as-preset-picker-BRQdflJz.mjs} +53 -49
  34. package/dist/{as-preset-picker-DbkmapBx.cjs → as-preset-picker-nAx3MYl7.cjs} +53 -49
  35. package/dist/as-preset-picker.cjs +1 -1
  36. package/dist/as-preset-picker.mjs +1 -1
  37. package/dist/{as-row-actions-CRg8LHGk.cjs → as-row-actions-PD-sFmDs.cjs} +2 -2
  38. package/dist/{as-row-actions-BkIsJVBm.mjs → as-row-actions-gxmuZkYI.mjs} +2 -2
  39. package/dist/as-row-actions.cjs +1 -1
  40. package/dist/as-row-actions.d.cts +1 -1
  41. package/dist/as-row-actions.d.mts +1 -1
  42. package/dist/as-row-actions.mjs +1 -1
  43. package/dist/{as-row-actions.vue-VpJsBAJ4.d.mts → as-row-actions.vue-AXXt5kQS.d.mts} +1 -1
  44. package/dist/{as-row-actions.vue-dn_DKcMm.d.cts → as-row-actions.vue-D0MXQoeg.d.cts} +1 -1
  45. package/dist/{as-table-BEvsX87E.mjs → as-table-BIV1W3O9.mjs} +2 -2
  46. package/dist/{as-table-actions-B5upF1bQ.mjs → as-table-actions-DQ5Nn8Jc.mjs} +2 -2
  47. package/dist/{as-table-actions-B6sKd4sl.cjs → as-table-actions-D_PUqMYy.cjs} +2 -2
  48. package/dist/as-table-actions.cjs +1 -1
  49. package/dist/as-table-actions.d.cts +1 -1
  50. package/dist/as-table-actions.d.mts +1 -1
  51. package/dist/as-table-actions.mjs +1 -1
  52. package/dist/{as-table-actions.vue-CoxhpIlJ.d.mts → as-table-actions.vue-iKw4tsJh.d.cts} +1 -1
  53. package/dist/{as-table-actions.vue-Kic8m28V.d.cts → as-table-actions.vue-kndyFTyi.d.mts} +1 -1
  54. package/dist/{as-table-base-DLuhKz69.cjs → as-table-base-M6_12pPq.cjs} +2 -2
  55. package/dist/{as-table-base-BxKBdIdS.mjs → as-table-base-kHOKCI7T.mjs} +2 -2
  56. package/dist/{as-table-header-cell-Xd3cvnII.mjs → as-table-header-cell-CZyy4q1s.mjs} +1 -1
  57. package/dist/{as-table-header-cell-Bv6q5iKA.cjs → as-table-header-cell-Ct_GPLVu.cjs} +1 -1
  58. package/dist/as-table-header-cell.cjs +1 -1
  59. package/dist/as-table-header-cell.d.cts +1 -1
  60. package/dist/as-table-header-cell.d.mts +1 -1
  61. package/dist/as-table-header-cell.mjs +1 -1
  62. package/dist/{as-table-header-cell.vue-AS6u4e6v.d.cts → as-table-header-cell.vue-BNsOEsof.d.mts} +2 -2
  63. package/dist/{as-table-header-cell.vue-zKOmlzhT.d.mts → as-table-header-cell.vue-DqjorECQ.d.cts} +2 -2
  64. package/dist/{as-table-root-C1A6JkwL.mjs → as-table-root-DGYw0kPC.mjs} +4 -4
  65. package/dist/{as-table-root-DlYjnZax.cjs → as-table-root-EyN1JHuS.cjs} +4 -4
  66. package/dist/as-table-root.cjs +1 -1
  67. package/dist/as-table-root.d.cts +1 -1
  68. package/dist/as-table-root.d.mts +1 -1
  69. package/dist/as-table-root.mjs +1 -1
  70. package/dist/{as-table-root.vue-CWk9YgpG.d.mts → as-table-root.vue-D5RZKczC.d.mts} +1 -1
  71. package/dist/{as-table-root.vue-D94eypcL.d.cts → as-table-root.vue-DHmH2h1z.d.cts} +1 -1
  72. package/dist/{as-table-status-QzlBdSiR.mjs → as-table-status-CYzRbU71.mjs} +4 -4
  73. package/dist/{as-table-status-B2HPerJT.cjs → as-table-status-DMFZuZfJ.cjs} +4 -4
  74. package/dist/{as-table-vJbZyZVx.cjs → as-table-ucLFACn0.cjs} +2 -2
  75. package/dist/as-table.cjs +1 -1
  76. package/dist/as-table.d.cts +1 -1
  77. package/dist/as-table.d.mts +1 -1
  78. package/dist/as-table.mjs +1 -1
  79. package/dist/{as-table.vue-BB1vaNL6.d.cts → as-table.vue-B2yu8GI5.d.cts} +7 -7
  80. package/dist/{as-table.vue-BUDFTCpo.d.mts → as-table.vue-CSsa8u47.d.mts} +7 -7
  81. package/dist/{as-window-table-BH0tDDnr.mjs → as-window-table-B9Y4Xgwm.mjs} +3 -3
  82. package/dist/{as-window-table-Bl_q72WL.cjs → as-window-table-Bxq7cYW5.cjs} +3 -3
  83. package/dist/as-window-table.cjs +1 -1
  84. package/dist/as-window-table.d.cts +1 -1
  85. package/dist/as-window-table.d.mts +1 -1
  86. package/dist/as-window-table.mjs +1 -1
  87. package/dist/{as-window-table.vue-CLqFM2ff.d.mts → as-window-table.vue-CBSeXWnu.d.cts} +6 -6
  88. package/dist/{as-window-table.vue-Be2IA0Eb.d.cts → as-window-table.vue-DxNiv9jn.d.mts} +6 -6
  89. package/dist/index.cjs +17 -17
  90. package/dist/index.d.cts +8 -8
  91. package/dist/index.d.mts +8 -8
  92. package/dist/index.mjs +17 -17
  93. package/dist/{types--ex8BJIO.d.cts → types-CyAmAg10.d.cts} +9 -0
  94. package/dist/{types-CBGaTR2Z.d.mts → types-yS6-QFfT.d.mts} +9 -0
  95. package/dist/{use-table-BFhbfWgY.mjs → use-table-BVptAnaS.mjs} +1 -1
  96. package/dist/{use-table-nvuZdgUd.cjs → use-table-Bm2a0g9D.cjs} +1 -1
  97. package/dist/{use-table-component-DS5NJPzs.cjs → use-table-component-Bpy5mg_P.cjs} +1 -1
  98. package/dist/{use-table-component-CRmLHdqi.mjs → use-table-component-DYzKgCC4.mjs} +1 -1
  99. package/dist/{use-table-nav-bridge-DzJN5v9a.mjs → use-table-nav-bridge-LCL6vq9F.mjs} +1 -1
  100. package/dist/{use-table-nav-bridge-DS14D_rG.cjs → use-table-nav-bridge-qyvyRm6S.cjs} +1 -1
  101. package/dist/{use-table-state-mBXx11aH.mjs → use-table-state-CwfgWmuk.mjs} +14 -0
  102. package/dist/{use-table-state-mhm-YWnu.cjs → use-table-state-jljSQQ8m.cjs} +14 -0
  103. package/package.json +6 -6
package/dist/index.d.cts CHANGED
@@ -1,23 +1,23 @@
1
1
  import { t as _default$11 } from "./as-filters.vue-DcxDnWAU.cjs";
2
2
  import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
3
- import { C as TableActionsState, S as TVueTableActionInfo, T as extractIdentifier, _ as RowHookContext, b as TAsCellTypeComponents, c as MainActionRequest, d as QueryErrorKind, f as ReactiveTableState, g as RowDeleteOpt, h as RowClassHook, l as NavKeyOptions, m as RowAttrsHook, n as ColumnMenuConfig, o as InvokeOpts, p as RowActionsConfig, r as ConfigTab, s as LocalRowAction, t as ActionResult, v as RowSelectableHook, w as TableNavBridge, x as TAsTableControls, y as RowSelectableVerdict } from "./types--ex8BJIO.cjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-Kic8m28V.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-D94eypcL.cjs";
6
- import { t as _default$15 } from "./as-table.vue-BB1vaNL6.cjs";
7
- import { t as _default$20 } from "./as-window-table.vue-Be2IA0Eb.cjs";
3
+ import { C as TableActionsState, S as TVueTableActionInfo, T as extractIdentifier, _ as RowHookContext, b as TAsCellTypeComponents, c as MainActionRequest, d as QueryErrorKind, f as ReactiveTableState, g as RowDeleteOpt, h as RowClassHook, l as NavKeyOptions, m as RowAttrsHook, n as ColumnMenuConfig, o as InvokeOpts, p as RowActionsConfig, r as ConfigTab, s as LocalRowAction, t as ActionResult, v as RowSelectableHook, w as TableNavBridge, x as TAsTableControls, y as RowSelectableVerdict } from "./types-CyAmAg10.cjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-iKw4tsJh.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-DHmH2h1z.cjs";
6
+ import { t as _default$15 } from "./as-table.vue-B2yu8GI5.cjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-CBSeXWnu.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-De7SRhj6.cjs";
13
+ import { t as _default$5 } from "./as-column-menu.vue-CDlI4-Cz.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-dn_DKcMm.cjs";
20
+ import { t as _default$14 } from "./as-row-actions.vue-D0MXQoeg.cjs";
21
21
  import { t as _default$17 } from "./as-table-cell-value.vue-BgFDv2JQ.cjs";
22
- import { t as _default$18 } from "./as-table-header-cell.vue-AS6u4e6v.cjs";
22
+ import { t as _default$18 } from "./as-table-header-cell.vue-DqjorECQ.cjs";
23
23
  export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
package/dist/index.d.mts CHANGED
@@ -1,23 +1,23 @@
1
1
  import { t as _default$11 } from "./as-filters.vue-BG_ysCkC.mjs";
2
2
  import { t as _default$13 } from "./as-preset-picker.vue-BPjsiaVt.mjs";
3
- import { C as TableActionsState, S as TVueTableActionInfo, T as extractIdentifier, _ as RowHookContext, b as TAsCellTypeComponents, c as MainActionRequest, d as QueryErrorKind, f as ReactiveTableState, g as RowDeleteOpt, h as RowClassHook, l as NavKeyOptions, m as RowAttrsHook, n as ColumnMenuConfig, o as InvokeOpts, p as RowActionsConfig, r as ConfigTab, s as LocalRowAction, t as ActionResult, v as RowSelectableHook, w as TableNavBridge, x as TAsTableControls, y as RowSelectableVerdict } from "./types-CBGaTR2Z.mjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-CoxhpIlJ.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-CWk9YgpG.mjs";
6
- import { t as _default$15 } from "./as-table.vue-BUDFTCpo.mjs";
7
- import { t as _default$20 } from "./as-window-table.vue-CLqFM2ff.mjs";
3
+ import { C as TableActionsState, S as TVueTableActionInfo, T as extractIdentifier, _ as RowHookContext, b as TAsCellTypeComponents, c as MainActionRequest, d as QueryErrorKind, f as ReactiveTableState, g as RowDeleteOpt, h as RowClassHook, l as NavKeyOptions, m as RowAttrsHook, n as ColumnMenuConfig, o as InvokeOpts, p as RowActionsConfig, r as ConfigTab, s as LocalRowAction, t as ActionResult, v as RowSelectableHook, w as TableNavBridge, x as TAsTableControls, y as RowSelectableVerdict } from "./types-yS6-QFfT.mjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-kndyFTyi.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-D5RZKczC.mjs";
6
+ import { t as _default$15 } from "./as-table.vue-CSsa8u47.mjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-DxNiv9jn.mjs";
8
8
  import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
9
9
  import { t as _default$1 } from "./as-cell-date.vue-Chs7WTZ9.mjs";
10
10
  import { t as _default$2 } from "./as-cell-json.vue-C0_LDvQw.mjs";
11
11
  import { t as _default$3 } from "./as-cell-number.vue-BBF0OuU8.mjs";
12
12
  import { t as _default$4 } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
13
- import { t as _default$5 } from "./as-column-menu.vue-Dg0H1dOd.mjs";
13
+ import { t as _default$5 } from "./as-column-menu.vue-BaIGUOhP.mjs";
14
14
  import { t as _default$6 } from "./as-config-dialog.vue-BvFZZRuY.mjs";
15
15
  import { t as _default$7 } from "./as-confirm-dialog.vue-Cz52-v6c.mjs";
16
16
  import { t as _default$8 } from "./as-filter-dialog.vue-likNLqzF.mjs";
17
17
  import { t as _default$9 } from "./as-filter-field.vue-BbXLhd6O.mjs";
18
18
  import { t as _default$10 } from "./as-filter-input.vue-B9ma2l9j.mjs";
19
19
  import { t as _default$12 } from "./as-preset-dialog.vue-BRjjfPty.mjs";
20
- import { t as _default$14 } from "./as-row-actions.vue-VpJsBAJ4.mjs";
20
+ import { t as _default$14 } from "./as-row-actions.vue-AXXt5kQS.mjs";
21
21
  import { t as _default$17 } from "./as-table-cell-value.vue-kfNgVhzn.mjs";
22
- import { t as _default$18 } from "./as-table-header-cell.vue-zKOmlzhT.mjs";
22
+ import { t as _default$18 } from "./as-table-header-cell.vue-BNsOEsof.mjs";
23
23
  export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, BuildQueryOptions, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, CsvOptions, DisplayColumnDef, ExportAbortError, ExportCellFormatter, ExportProgress, ExportResult, ExportRowsOptions, ExportScalar, InvokeOpts, LocalRowAction, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, QueryFn, QueryOptions, ReactiveTableState, RowActionsConfig, RowAttrsHook, RowClassHook, RowDeleteOpt, RowHookContext, RowSelectableHook, RowSelectableVerdict, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableModelRefs, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableExportReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, downloadExport, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, provideTableContext, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableExport, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { D as ROW_ACTIONS_TYPE, a as useTableContext, b as extractIdentifier, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-mBXx11aH.mjs";
1
+ import { D as ROW_ACTIONS_TYPE, a as useTableContext, b as extractIdentifier, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-CwfgWmuk.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-BFhbfWgY.mjs";
5
- import { t as useTableNavBridge } from "./use-table-nav-bridge-DzJN5v9a.mjs";
6
- import { t as useTableComponent } from "./use-table-component-CRmLHdqi.mjs";
7
- import { t as as_table_root_default } from "./as-table-root-C1A6JkwL.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-BVptAnaS.mjs";
5
+ import { t as useTableNavBridge } from "./use-table-nav-bridge-LCL6vq9F.mjs";
6
+ import { t as useTableComponent } from "./use-table-component-DYzKgCC4.mjs";
7
+ import { t as as_table_root_default } from "./as-table-root-DGYw0kPC.mjs";
8
8
  import { t as as_cell_array_default } from "./as-cell-array-BWHkJX3I.mjs";
9
9
  import { t as as_cell_date_default } from "./as-cell-date-mGlnDeLP.mjs";
10
10
  import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-CxQOQsns.mjs";
@@ -13,20 +13,20 @@ import { t as as_cell_number_default } from "./as-cell-number-CP2AZI9g.mjs";
13
13
  import { t as formatCellValue } from "./format-cell-Bx7wNc4X.mjs";
14
14
  import { t as as_cell_union_default } from "./as-cell-union-NHpDCXty.mjs";
15
15
  import { t as as_column_menu_default } from "./as-column-menu-BMTS3DO2.mjs";
16
- import { t as as_config_dialog_default } from "./as-config-dialog-BUBHiVlf.mjs";
17
- import { t as as_confirm_dialog_default } from "./as-confirm-dialog-G4ZoL_Xo.mjs";
16
+ import { t as as_config_dialog_default } from "./as-config-dialog-BMQxSqzl.mjs";
17
+ import { t as as_confirm_dialog_default } from "./as-confirm-dialog-Dp_njNXz.mjs";
18
18
  import { t as as_filter_input_default } from "./as-filter-input-C8KmOus8.mjs";
19
- import { t as as_filter_dialog_default } from "./as-filter-dialog-BJWH8cvc.mjs";
20
- import { t as as_table_header_cell_default } from "./as-table-header-cell-Xd3cvnII.mjs";
21
- import { t as as_window_table_default } from "./as-window-table-BH0tDDnr.mjs";
22
- import { t as as_filter_field_default } from "./as-filter-field-B2skq4K0.mjs";
23
- import { t as as_filters_default } from "./as-filters-DogNVlqr.mjs";
24
- import { t as as_preset_dialog_default } from "./as-preset-dialog-BwHV6Y77.mjs";
25
- import { t as as_row_actions_default } from "./as-row-actions-BkIsJVBm.mjs";
19
+ import { t as as_filter_dialog_default } from "./as-filter-dialog-kAXGDwsk.mjs";
20
+ import { t as as_table_header_cell_default } from "./as-table-header-cell-CZyy4q1s.mjs";
21
+ import { t as as_window_table_default } from "./as-window-table-B9Y4Xgwm.mjs";
22
+ import { t as as_filter_field_default } from "./as-filter-field-WnV2axh8.mjs";
23
+ import { t as as_filters_default } from "./as-filters-Bc44srvA.mjs";
24
+ import { t as as_preset_dialog_default } from "./as-preset-dialog-Bx4nRuyk.mjs";
25
+ import { t as as_row_actions_default } from "./as-row-actions-gxmuZkYI.mjs";
26
26
  import { t as as_table_cell_value_default } from "./as-table-cell-value-BVcfhhCb.mjs";
27
- import { t as as_table_default } from "./as-table-BEvsX87E.mjs";
28
- import { t as as_table_actions_default } from "./as-table-actions-B5upF1bQ.mjs";
29
- import { t as as_preset_picker_default } from "./as-preset-picker-B0JnyAPA.mjs";
27
+ import { t as as_table_default } from "./as-table-BIV1W3O9.mjs";
28
+ import { t as as_table_actions_default } from "./as-table-actions-DQ5Nn8Jc.mjs";
29
+ import { t as as_preset_picker_default } from "./as-preset-picker-BRQdflJz.mjs";
30
30
  import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
31
31
  import { computed, effectScope, ref, shallowRef } from "vue";
32
32
  import { AppPrefsClient, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, collectExportRows, columnFilterType, conditionsForType, defaultCondition, isFilled, isSystemPresetId, isUnavailableError, resolveExportValue, resolveSystemPresets, toCsv, urlQueryConsumesKey, withStableOrder } from "@atscript/ui-table";
@@ -686,6 +686,15 @@ interface ReactiveTableState extends TableStateMethods {
686
686
  * window mode, or when the rows arrive pre-sorted. Since 0.1.134.
687
687
  */
688
688
  applyLocalSort: <T extends Record<string, unknown>>(rows: T[]) => T[];
689
+ /**
690
+ * Whether a sorter on a client-owned column currently does anything — the
691
+ * single rule behind every sort affordance, so the header and the config
692
+ * dialog cannot offer different sets. `false` only in window mode behind a
693
+ * server fetcher, where rows are cached by absolute index and dropped as
694
+ * the viewport moves; an in-memory provider orders the whole dataset before
695
+ * it slices, so the sort holds there. Since 0.1.135.
696
+ */
697
+ localSortAvailable: ComputedRef<boolean>;
689
698
  /**
690
699
  * The row-action policy from {@link rowActions}, compiled once per config
691
700
  * change. Every surface that renders row actions reads it — the row-actions
@@ -686,6 +686,15 @@ interface ReactiveTableState extends TableStateMethods {
686
686
  * window mode, or when the rows arrive pre-sorted. Since 0.1.134.
687
687
  */
688
688
  applyLocalSort: <T extends Record<string, unknown>>(rows: T[]) => T[];
689
+ /**
690
+ * Whether a sorter on a client-owned column currently does anything — the
691
+ * single rule behind every sort affordance, so the header and the config
692
+ * dialog cannot offer different sets. `false` only in window mode behind a
693
+ * server fetcher, where rows are cached by absolute index and dropped as
694
+ * the viewport moves; an in-memory provider orders the whole dataset before
695
+ * it slices, so the sort holds there. Since 0.1.135.
696
+ */
697
+ localSortAvailable: ComputedRef<boolean>;
689
698
  /**
690
699
  * The row-action policy from {@link rowActions}, compiled once per config
691
700
  * change. Every surface that renders row actions reads it — the row-actions
@@ -1,4 +1,4 @@
1
- import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-mBXx11aH.mjs";
1
+ import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-CwfgWmuk.mjs";
2
2
  import { n as useTableSelection } from "./use-table-selection-ULbKT2xW.mjs";
3
3
  import { createTableDef, getMetaEntry, resetMetaCache } from "@atscript/ui";
4
4
  import { computed, inject, isRef, ref, shallowRef, toValue, watch } from "vue";
@@ -1,4 +1,4 @@
1
- const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
1
+ const require_use_table_state = require("./use-table-state-jljSQQ8m.cjs");
2
2
  const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
3
3
  let _atscript_ui = require("@atscript/ui");
4
4
  let vue = require("vue");
@@ -1,4 +1,4 @@
1
- const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
1
+ const require_use_table_state = require("./use-table-state-jljSQQ8m.cjs");
2
2
  //#region src/composables/use-table-component.ts
3
3
  /**
4
4
  * Resolve a single skin-slot component from the injected `controls` map,
@@ -1,4 +1,4 @@
1
- import { o as useTableContextOptional } from "./use-table-state-mBXx11aH.mjs";
1
+ import { o as useTableContextOptional } from "./use-table-state-CwfgWmuk.mjs";
2
2
  //#region src/composables/use-table-component.ts
3
3
  /**
4
4
  * Resolve a single skin-slot component from the injected `controls` map,
@@ -1,4 +1,4 @@
1
- import { o as useTableContextOptional } from "./use-table-state-mBXx11aH.mjs";
1
+ import { o as useTableContextOptional } from "./use-table-state-CwfgWmuk.mjs";
2
2
  //#region src/composables/use-table-nav-bridge.ts
3
3
  function isPassthroughKey(event) {
4
4
  const key = event.key;
@@ -1,4 +1,4 @@
1
- const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
1
+ const require_use_table_state = require("./use-table-state-jljSQQ8m.cjs");
2
2
  //#region src/composables/use-table-nav-bridge.ts
3
3
  function isPassthroughKey(event) {
4
4
  const key = event.key;
@@ -1783,6 +1783,19 @@ function createTableState(opts) {
1783
1783
  /** -1 == nothing active. */
1784
1784
  const activeIndex = ref(-1);
1785
1785
  const navMode = ref("pagination");
1786
+ /**
1787
+ * Whether a sorter on a client-owned column does anything right now — the
1788
+ * one rule every surface that renders a sort affordance reads, so the
1789
+ * header and the config dialog cannot disagree about it.
1790
+ *
1791
+ * Sorting a client-owned column happens in memory over the loaded page.
1792
+ * Window mode has no page: it caches rows by absolute index and drops them
1793
+ * as the viewport moves, so behind a server fetcher the order would shift
1794
+ * under the user as they scrolled. `preSorted` is the case where it would
1795
+ * not — the in-memory provider orders the whole dataset before it slices,
1796
+ * so every absolute index arrives already in place.
1797
+ */
1798
+ const localSortAvailable = computed(() => navMode.value !== "window" || !!queryOpts?.preSorted);
1786
1799
  const isQueryBlocked = computed(() => {
1787
1800
  const blocked = queryOpts?.blockQuery;
1788
1801
  return typeof blocked === "function" ? !!blocked() : !!blocked;
@@ -2012,6 +2025,7 @@ function createTableState(opts) {
2012
2025
  fetchPage: dispatchPages,
2013
2026
  localColumnPaths,
2014
2027
  applyLocalSort,
2028
+ localSortAvailable,
2015
2029
  rowActionsPolicy,
2016
2030
  dataAt,
2017
2031
  loadingAt,
@@ -1783,6 +1783,19 @@ function createTableState(opts) {
1783
1783
  /** -1 == nothing active. */
1784
1784
  const activeIndex = (0, vue.ref)(-1);
1785
1785
  const navMode = (0, vue.ref)("pagination");
1786
+ /**
1787
+ * Whether a sorter on a client-owned column does anything right now — the
1788
+ * one rule every surface that renders a sort affordance reads, so the
1789
+ * header and the config dialog cannot disagree about it.
1790
+ *
1791
+ * Sorting a client-owned column happens in memory over the loaded page.
1792
+ * Window mode has no page: it caches rows by absolute index and drops them
1793
+ * as the viewport moves, so behind a server fetcher the order would shift
1794
+ * under the user as they scrolled. `preSorted` is the case where it would
1795
+ * not — the in-memory provider orders the whole dataset before it slices,
1796
+ * so every absolute index arrives already in place.
1797
+ */
1798
+ const localSortAvailable = (0, vue.computed)(() => navMode.value !== "window" || !!queryOpts?.preSorted);
1786
1799
  const isQueryBlocked = (0, vue.computed)(() => {
1787
1800
  const blocked = queryOpts?.blockQuery;
1788
1801
  return typeof blocked === "function" ? !!blocked() : !!blocked;
@@ -2012,6 +2025,7 @@ function createTableState(opts) {
2012
2025
  fetchPage: dispatchPages,
2013
2026
  localColumnPaths,
2014
2027
  applyLocalSort,
2028
+ localSortAvailable,
2015
2029
  rowActionsPolicy,
2016
2030
  dataAt,
2017
2031
  loadingAt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-table",
3
- "version": "0.1.134",
3
+ "version": "0.1.136",
4
4
  "description": "Type-driven table components for Atscript with Vue 3",
5
5
  "keywords": [
6
6
  "atscript",
@@ -162,12 +162,12 @@
162
162
  "access": "public"
163
163
  },
164
164
  "dependencies": {
165
- "@atscript/ui": "^0.1.134",
166
- "@atscript/ui-table": "^0.1.134",
167
- "@atscript/vue-form": "^0.1.134"
165
+ "@atscript/ui": "^0.1.136",
166
+ "@atscript/ui-table": "^0.1.136",
167
+ "@atscript/vue-form": "^0.1.136"
168
168
  },
169
169
  "devDependencies": {
170
- "@atscript/db-client": "^0.1.129",
170
+ "@atscript/db-client": "^0.1.130",
171
171
  "@atscript/typescript": "^0.1.93",
172
172
  "@tanstack/vue-virtual": "^3.13.26",
173
173
  "@uniqu/core": "^0.1.8",
@@ -183,7 +183,7 @@
183
183
  "vunor": "^0.3.0"
184
184
  },
185
185
  "peerDependencies": {
186
- "@atscript/db-client": "^0.1.129",
186
+ "@atscript/db-client": "^0.1.130",
187
187
  "@tanstack/vue-virtual": "^3.13.26",
188
188
  "@vueuse/core": "^14.3.0",
189
189
  "reka-ui": "^2.9.8",