@atscript/vue-table 0.1.106 → 0.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-C566-BZi.cjs → as-action-menu-content-B6rWBo5O.cjs} +1 -1
- package/dist/{as-action-menu-content-QLqwcIyN.mjs → as-action-menu-content-CXG6BhWe.mjs} +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-BtXVQywl.d.cts → as-column-menu.vue-DZawdGvY.d.cts} +1 -1
- package/dist/{as-column-menu.vue-D3Z5BVLx.d.mts → as-column-menu.vue-csCNmAYR.d.mts} +1 -1
- package/dist/{as-config-dialog-mz5oML3g.mjs → as-config-dialog-DAqSy8zx.mjs} +2 -2
- package/dist/{as-config-dialog-6QNcUtFs.cjs → as-config-dialog-DKYI4uQ0.cjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-Dj-nIpgR.mjs → as-confirm-dialog-B1zuisFu.mjs} +1 -1
- package/dist/{as-confirm-dialog-dnSPMGyB.cjs → as-confirm-dialog-BqvOf3yo.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-DAvF5KI7.cjs → as-filter-dialog-CPUVRQ7U.cjs} +7 -7
- package/dist/{as-filter-dialog-QjVypqE9.mjs → as-filter-dialog-Gl5U-9OS.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-BR32vGGD.mjs → as-filter-field-C4BI5jwc.mjs} +3 -3
- package/dist/{as-filter-field-c0T27ONN.cjs → as-filter-field-DllWImJE.cjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-5Qyru0V1.mjs → as-filters-DUSyWqRX.mjs} +3 -3
- package/dist/{as-filters-DhJy2qGo.cjs → as-filters-bXSMPvBh.cjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-KUcH4G-M.cjs → as-preset-dialog-BXO1O1q0.cjs} +1 -1
- package/dist/{as-preset-dialog-DZ106BdC.mjs → as-preset-dialog-CuWw5fuN.mjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-DrhvxmxV.cjs → as-preset-picker-BBkjl0fs.cjs} +1 -1
- package/dist/{as-preset-picker-DUEObd_i.mjs → as-preset-picker-CyBbOnBS.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-DSsKbKGO.cjs → as-row-actions-BoOAXAeW.cjs} +2 -2
- package/dist/{as-row-actions-CrqYfsva.mjs → as-row-actions-DIpn-EYD.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-BqIeLNSt.cjs → as-table-B8zdNqeN.cjs} +9 -2
- package/dist/{as-table-B7RnEB9N.mjs → as-table-BWWcR-0B.mjs} +9 -2
- package/dist/{as-table-actions-_kHRpDah.cjs → as-table-actions-Cd7KoTEK.cjs} +3 -3
- package/dist/{as-table-actions-CJfrl39w.mjs → as-table-actions-DQ3xaFXJ.mjs} +3 -3
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-33oeDXOg.d.cts → as-table-actions.vue-CokIIKDL.d.mts} +1 -1
- package/dist/{as-table-actions.vue-DMf6-R5o.d.mts → as-table-actions.vue-D1VcrsSM.d.cts} +1 -1
- package/dist/{as-table-base-Bx9cxbk4.cjs → as-table-base-CryorP14.cjs} +23 -6
- package/dist/{as-table-base-ZW7lQ-Id.mjs → as-table-base-ybGbySqt.mjs} +23 -6
- package/dist/{as-table-header-cell-BeHbNQjP.cjs → as-table-header-cell-BEwpWr4m.cjs} +1 -1
- package/dist/{as-table-header-cell-xKGgCjbF.mjs → as-table-header-cell-mCOAZsjL.mjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-CzqTEpyk.d.cts → as-table-header-cell.vue-DsVfhlk3.d.mts} +2 -2
- package/dist/{as-table-header-cell.vue-Dj_Tl7dZ.d.mts → as-table-header-cell.vue-jvtDmqhR.d.cts} +2 -2
- package/dist/{as-table-root-DFYbEtFF.cjs → as-table-root-BNJ1yqaD.cjs} +4 -4
- package/dist/{as-table-root-CqjewHJz.mjs → as-table-root-BQNXfIvB.mjs} +4 -4
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-Cmk2Altf.d.cts → as-table-root.vue-D3FPtr3T.d.cts} +2 -2
- package/dist/{as-table-root.vue-B52eHZRL.d.mts → as-table-root.vue-DVPxUP_F.d.mts} +2 -2
- package/dist/{as-table-status-Cs4G2sK3.mjs → as-table-status-DUJixKkQ.mjs} +81 -8
- package/dist/{as-table-status-Bunm0FTz.cjs → as-table-status-Dv8cYqEG.cjs} +86 -7
- package/dist/as-table.cjs +1 -1
- package/dist/as-table.d.cts +1 -1
- package/dist/as-table.d.mts +1 -1
- package/dist/as-table.mjs +1 -1
- package/dist/{as-table.vue-CBrxpL4X.d.cts → as-table.vue-ClTk8h2d.d.mts} +14 -6
- package/dist/{as-table.vue-WF12BUAO.d.mts → as-table.vue-DjpQ5xKN.d.cts} +14 -6
- package/dist/{as-window-table-CqPCI_jD.mjs → as-window-table-DRbmDwi3.mjs} +138 -112
- package/dist/{as-window-table-C8eJc_FV.cjs → as-window-table-DVMMiLK6.cjs} +138 -112
- package/dist/as-window-table.cjs +1 -1
- package/dist/as-window-table.d.cts +1 -1
- package/dist/as-window-table.d.mts +1 -1
- package/dist/as-window-table.mjs +1 -1
- package/dist/{as-window-table.vue-Cs5RHe_j.d.cts → as-window-table.vue-BPq-1zfL.d.cts} +13 -5
- package/dist/{as-window-table.vue-BJExjL2G.d.mts → as-window-table.vue-DfAUpZp3.d.mts} +13 -5
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +17 -17
- package/dist/{types-BWeFiZKk.d.mts → types-BMvxn9iU.d.mts} +6 -0
- package/dist/{types-BPFBxUS_.d.cts → types-CDJmLD-E.d.cts} +6 -0
- package/dist/{use-table-BDkSpj7h.mjs → use-table-CGxkBszK.mjs} +1 -1
- package/dist/{use-table-w7Bpuk95.cjs → use-table-CaegBdPZ.cjs} +1 -1
- package/dist/{use-table-component-D1Ea4qv_.mjs → use-table-component-ClgvnuRH.mjs} +1 -1
- package/dist/{use-table-component-Bs1T8Mk3.cjs → use-table-component-D-1kzctZ.cjs} +1 -1
- package/dist/{use-table-nav-bridge-jZMWrBI8.mjs → use-table-nav-bridge-C3gqHOIa.mjs} +1 -1
- package/dist/{use-table-nav-bridge-DVAQCVrs.cjs → use-table-nav-bridge-bZIH2d6Y.cjs} +1 -1
- package/dist/{use-table-state-CmTX31G4.cjs → use-table-state-152Ejpyo.cjs} +8 -7
- package/dist/{use-table-state-C0m71e4n.mjs → use-table-state-BHAwfUKw.mjs} +8 -7
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-
|
|
1
|
+
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-CDJmLD-E.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -51,29 +51,37 @@ type __VLS_Props = {
|
|
|
51
51
|
* a watcher — the action set live-updates as the prop flips.
|
|
52
52
|
*/
|
|
53
53
|
rowDelete?: boolean | RowDeleteOpt;
|
|
54
|
+
/**
|
|
55
|
+
* Render without a header row. Omits `<thead>` entirely (not
|
|
56
|
+
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
57
|
+
* columns keep their annotated/seeded widths. Header-driven interactions
|
|
58
|
+
* (sort/filter/reorder/resize) are unavailable in headless mode.
|
|
59
|
+
*/
|
|
60
|
+
headless?: boolean;
|
|
54
61
|
};
|
|
55
62
|
declare var __VLS_13: string, __VLS_14: any, __VLS_16: {};
|
|
56
63
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any } & {
|
|
57
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
58
65
|
};
|
|
59
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
60
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
61
69
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
62
|
-
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
63
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
64
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
65
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
66
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
67
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
69
76
|
}>, {
|
|
70
77
|
select: SelectionMode;
|
|
78
|
+
rowHeight: number;
|
|
79
|
+
wheelRowsPerTick: number;
|
|
71
80
|
reorderable: boolean;
|
|
72
81
|
resizable: boolean;
|
|
73
82
|
columnMinWidth: number;
|
|
74
83
|
rowDelete: boolean | RowDeleteOpt;
|
|
75
|
-
|
|
76
|
-
wheelRowsPerTick: number;
|
|
84
|
+
headless: boolean;
|
|
77
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
78
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
79
87
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-
|
|
1
|
+
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-BMvxn9iU.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -51,29 +51,37 @@ type __VLS_Props = {
|
|
|
51
51
|
* a watcher — the action set live-updates as the prop flips.
|
|
52
52
|
*/
|
|
53
53
|
rowDelete?: boolean | RowDeleteOpt;
|
|
54
|
+
/**
|
|
55
|
+
* Render without a header row. Omits `<thead>` entirely (not
|
|
56
|
+
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
57
|
+
* columns keep their annotated/seeded widths. Header-driven interactions
|
|
58
|
+
* (sort/filter/reorder/resize) are unavailable in headless mode.
|
|
59
|
+
*/
|
|
60
|
+
headless?: boolean;
|
|
54
61
|
};
|
|
55
62
|
declare var __VLS_13: string, __VLS_14: any, __VLS_16: {};
|
|
56
63
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any } & {
|
|
57
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
58
65
|
};
|
|
59
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
60
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
61
69
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
62
|
-
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
63
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
64
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
65
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
66
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
67
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
69
76
|
}>, {
|
|
70
77
|
select: SelectionMode;
|
|
78
|
+
rowHeight: number;
|
|
79
|
+
wheelRowsPerTick: number;
|
|
71
80
|
reorderable: boolean;
|
|
72
81
|
resizable: boolean;
|
|
73
82
|
columnMinWidth: number;
|
|
74
83
|
rowDelete: boolean | RowDeleteOpt;
|
|
75
|
-
|
|
76
|
-
wheelRowsPerTick: number;
|
|
84
|
+
headless: boolean;
|
|
77
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
78
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
79
87
|
declare const _default: typeof __VLS_export;
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
3
3
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
4
|
-
const require_use_table = require("./use-table-
|
|
5
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
6
|
-
const require_use_table_component = require("./use-table-component-
|
|
4
|
+
const require_use_table = require("./use-table-CaegBdPZ.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-bZIH2d6Y.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-D-1kzctZ.cjs");
|
|
7
7
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
8
8
|
const require_as_cell_array = require("./as-cell-array-iPeUnk2G.cjs");
|
|
9
9
|
const require_as_cell_date = require("./as-cell-date-DyixWKuS.cjs");
|
|
@@ -13,21 +13,21 @@ const require_as_cell_number = require("./as-cell-number-DuPMOesI.cjs");
|
|
|
13
13
|
const require_format_cell = require("./format-cell-CSbJgz5B.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-CT0rIvQq.cjs");
|
|
15
15
|
const require_as_column_menu = require("./as-column-menu-fZVbJ9lU.cjs");
|
|
16
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
17
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-DKYI4uQ0.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-BqvOf3yo.cjs");
|
|
18
18
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
19
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
20
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
21
|
-
const require_as_window_table = require("./as-window-table-
|
|
22
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
23
|
-
const require_as_filters = require("./as-filters-
|
|
24
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
25
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-CPUVRQ7U.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BEwpWr4m.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-DVMMiLK6.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-DllWImJE.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-bXSMPvBh.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-BXO1O1q0.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-BoOAXAeW.cjs");
|
|
26
26
|
const require_as_table_cell_value = require("./as-table-cell-value-CcWR5oG4.cjs");
|
|
27
|
-
const require_as_table_root = require("./as-table-root-
|
|
28
|
-
const require_as_table = require("./as-table-
|
|
29
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
30
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
27
|
+
const require_as_table_root = require("./as-table-root-BNJ1yqaD.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-B8zdNqeN.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-Cd7KoTEK.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-BBkjl0fs.cjs");
|
|
31
31
|
let _atscript_ui = require("@atscript/ui");
|
|
32
32
|
let vue = require("vue");
|
|
33
33
|
let _atscript_ui_table = require("@atscript/ui-table");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-fv-tRL2H.cjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-CDJmLD-E.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-D1VcrsSM.cjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-D3FPtr3T.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-DjpQ5xKN.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-BPq-1zfL.cjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CJ2K5zeM.cjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CslPM_c2.cjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-DZawdGvY.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";
|
|
@@ -19,5 +19,5 @@ 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
20
|
import { t as _default$14 } from "./as-row-actions.vue-Bvcc2tUN.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-
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-jvtDmqhR.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, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-DmECMd1v.mjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-BPjsiaVt.mjs";
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-BMvxn9iU.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-CokIIKDL.mjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-DVPxUP_F.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-ClTk8h2d.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DfAUpZp3.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-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-csCNmAYR.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";
|
|
@@ -19,5 +19,5 @@ 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
20
|
import { t as _default$14 } from "./as-row-actions.vue-DUSDuoR2.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-
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-DsVfhlk3.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, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as ROW_ACTIONS_TYPE, a as useTableContext, f as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-
|
|
1
|
+
import { _ as ROW_ACTIONS_TYPE, a as useTableContext, f as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
|
-
import { a as AS_PRESETS_APP, i as useLocalDraft, n as useTable, o as injectPresetsApp, r as usePresets, t as clearTableCache } from "./use-table-
|
|
4
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
5
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
+
import { a as AS_PRESETS_APP, i as useLocalDraft, n as useTable, o as injectPresetsApp, r as usePresets, t as clearTableCache } from "./use-table-CGxkBszK.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-C3gqHOIa.mjs";
|
|
5
|
+
import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
6
6
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
7
7
|
import { t as as_cell_array_default } from "./as-cell-array-2qmJ1lT2.mjs";
|
|
8
8
|
import { t as as_cell_date_default } from "./as-cell-date-BwFgi6O0.mjs";
|
|
@@ -12,21 +12,21 @@ import { t as as_cell_number_default } from "./as-cell-number-DKRaS9pM.mjs";
|
|
|
12
12
|
import { t as formatCellValue } from "./format-cell-CNQ6BpvR.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-sAOSdepj.mjs";
|
|
14
14
|
import { t as as_column_menu_default } from "./as-column-menu-kTIQfLTi.mjs";
|
|
15
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
16
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-DAqSy8zx.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-B1zuisFu.mjs";
|
|
17
17
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
18
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
19
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
20
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
21
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
22
|
-
import { t as as_filters_default } from "./as-filters-
|
|
23
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
24
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-Gl5U-9OS.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-mCOAZsjL.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-DRbmDwi3.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-C4BI5jwc.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-DUSyWqRX.mjs";
|
|
23
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-CuWw5fuN.mjs";
|
|
24
|
+
import { t as as_row_actions_default } from "./as-row-actions-DIpn-EYD.mjs";
|
|
25
25
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-Byrb_Zyh.mjs";
|
|
26
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
27
|
-
import { t as as_table_default } from "./as-table-
|
|
28
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
29
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
26
|
+
import { t as as_table_root_default } from "./as-table-root-BQNXfIvB.mjs";
|
|
27
|
+
import { t as as_table_default } from "./as-table-BWWcR-0B.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-DQ3xaFXJ.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CyBbOnBS.mjs";
|
|
30
30
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
31
31
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
32
32
|
import { AppPrefsClient, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, columnFilterType, conditionsForType, defaultCondition, isAuthError, isFilled, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
|
|
@@ -366,6 +366,12 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
366
366
|
* unloaded rows still navigable, the windowed renderer fetches them in).
|
|
367
367
|
*/
|
|
368
368
|
navMode: Ref<"pagination" | "window">;
|
|
369
|
+
/**
|
|
370
|
+
* The currently-active row, resolved correctly for the current nav mode
|
|
371
|
+
* (page-relative into `results` in pagination, absolute via `dataAt` in
|
|
372
|
+
* window). `undefined` when no row is active (`activeIndex < 0`).
|
|
373
|
+
*/
|
|
374
|
+
getActiveRow: () => Record<string, unknown> | undefined;
|
|
369
375
|
/** True when at least one of `<AsTableRoot>` / `<AsTable>` / `<AsWindowTable>` has a `main-action` listener bound. */
|
|
370
376
|
hasMainActionListener: Ref<boolean>;
|
|
371
377
|
/** Build a deterministic DOM `id` for the row at `absIndex` (per-state UID). */
|
|
@@ -366,6 +366,12 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
366
366
|
* unloaded rows still navigable, the windowed renderer fetches them in).
|
|
367
367
|
*/
|
|
368
368
|
navMode: Ref<"pagination" | "window">;
|
|
369
|
+
/**
|
|
370
|
+
* The currently-active row, resolved correctly for the current nav mode
|
|
371
|
+
* (page-relative into `results` in pagination, absolute via `dataAt` in
|
|
372
|
+
* window). `undefined` when no row is active (`activeIndex < 0`).
|
|
373
|
+
*/
|
|
374
|
+
getActiveRow: () => Record<string, unknown> | undefined;
|
|
369
375
|
/** True when at least one of `<AsTableRoot>` / `<AsTable>` / `<AsWindowTable>` has a `main-action` listener bound. */
|
|
370
376
|
hasMainActionListener: Ref<boolean>;
|
|
371
377
|
/** Build a deterministic DOM `id` for the row at `absIndex` (per-state UID). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-
|
|
1
|
+
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
3
|
import { createTableDef, getMetaEntry, resetMetaCache } from "@atscript/ui";
|
|
4
4
|
import { computed, inject, isRef, ref, shallowRef, watch } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
3
3
|
let _atscript_ui = require("@atscript/ui");
|
|
4
4
|
let vue = require("vue");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.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
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.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-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
//#region src/composables/use-table-nav-bridge.ts
|
|
3
3
|
function isPassthroughKey(event) {
|
|
4
4
|
const key = event.key;
|
|
@@ -483,8 +483,7 @@ function createMainActionRegistry(opts) {
|
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/composables/state/create-nav-controller.ts
|
|
485
485
|
function createNavController(inputs) {
|
|
486
|
-
const { activeIndex, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
487
|
-
const navMode = (0, vue.ref)("pagination");
|
|
486
|
+
const { activeIndex, navMode, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
488
487
|
const navViewportRowCount = (0, vue.ref)(0);
|
|
489
488
|
function clampActive(idx) {
|
|
490
489
|
let upper;
|
|
@@ -605,7 +604,6 @@ function createNavController(inputs) {
|
|
|
605
604
|
}
|
|
606
605
|
}
|
|
607
606
|
return {
|
|
608
|
-
navMode,
|
|
609
607
|
navViewportRowCount,
|
|
610
608
|
setActive,
|
|
611
609
|
clearActive,
|
|
@@ -1344,6 +1342,7 @@ function createTableState(opts) {
|
|
|
1344
1342
|
}
|
|
1345
1343
|
/** -1 == nothing active. */
|
|
1346
1344
|
const activeIndex = (0, vue.ref)(-1);
|
|
1345
|
+
const navMode = (0, vue.ref)("pagination");
|
|
1347
1346
|
const { windowCache, windowLoading, errors, topIndex, viewportRowCount, dataAt, loadingAt, errorAt, loadRange, queryNext, clearSettlements, resetWindow, disposeDebounces } = createWindowFetcher({
|
|
1348
1347
|
blockSize,
|
|
1349
1348
|
dragReleaseDebounceMs,
|
|
@@ -1359,9 +1358,9 @@ function createTableState(opts) {
|
|
|
1359
1358
|
reportError
|
|
1360
1359
|
});
|
|
1361
1360
|
function getActiveRow() {
|
|
1362
|
-
const
|
|
1363
|
-
if (
|
|
1364
|
-
return dataAt(
|
|
1361
|
+
const idx = activeIndex.value;
|
|
1362
|
+
if (idx < 0) return void 0;
|
|
1363
|
+
return navMode.value === "window" ? dataAt(idx) : results.value[idx];
|
|
1365
1364
|
}
|
|
1366
1365
|
const { selectedRows, selectedCount, rowValueFn, isPkSelected, toggleActiveSelection } = createSelectionApi(selectionOpts, getActiveRow);
|
|
1367
1366
|
const { actions } = createActions({
|
|
@@ -1387,8 +1386,9 @@ function createTableState(opts) {
|
|
|
1387
1386
|
}, event);
|
|
1388
1387
|
}
|
|
1389
1388
|
});
|
|
1390
|
-
const {
|
|
1389
|
+
const { navViewportRowCount, setActive, clearActive, handleNavKey } = createNavController({
|
|
1391
1390
|
activeIndex,
|
|
1391
|
+
navMode,
|
|
1392
1392
|
totalCount,
|
|
1393
1393
|
results,
|
|
1394
1394
|
viewportRowCount,
|
|
@@ -1521,6 +1521,7 @@ function createTableState(opts) {
|
|
|
1521
1521
|
includeActions,
|
|
1522
1522
|
activeIndex,
|
|
1523
1523
|
navMode,
|
|
1524
|
+
getActiveRow,
|
|
1524
1525
|
hasMainActionListener,
|
|
1525
1526
|
rowId,
|
|
1526
1527
|
setActive,
|
|
@@ -483,8 +483,7 @@ function createMainActionRegistry(opts) {
|
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/composables/state/create-nav-controller.ts
|
|
485
485
|
function createNavController(inputs) {
|
|
486
|
-
const { activeIndex, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
487
|
-
const navMode = ref("pagination");
|
|
486
|
+
const { activeIndex, navMode, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
488
487
|
const navViewportRowCount = ref(0);
|
|
489
488
|
function clampActive(idx) {
|
|
490
489
|
let upper;
|
|
@@ -605,7 +604,6 @@ function createNavController(inputs) {
|
|
|
605
604
|
}
|
|
606
605
|
}
|
|
607
606
|
return {
|
|
608
|
-
navMode,
|
|
609
607
|
navViewportRowCount,
|
|
610
608
|
setActive,
|
|
611
609
|
clearActive,
|
|
@@ -1344,6 +1342,7 @@ function createTableState(opts) {
|
|
|
1344
1342
|
}
|
|
1345
1343
|
/** -1 == nothing active. */
|
|
1346
1344
|
const activeIndex = ref(-1);
|
|
1345
|
+
const navMode = ref("pagination");
|
|
1347
1346
|
const { windowCache, windowLoading, errors, topIndex, viewportRowCount, dataAt, loadingAt, errorAt, loadRange, queryNext, clearSettlements, resetWindow, disposeDebounces } = createWindowFetcher({
|
|
1348
1347
|
blockSize,
|
|
1349
1348
|
dragReleaseDebounceMs,
|
|
@@ -1359,9 +1358,9 @@ function createTableState(opts) {
|
|
|
1359
1358
|
reportError
|
|
1360
1359
|
});
|
|
1361
1360
|
function getActiveRow() {
|
|
1362
|
-
const
|
|
1363
|
-
if (
|
|
1364
|
-
return dataAt(
|
|
1361
|
+
const idx = activeIndex.value;
|
|
1362
|
+
if (idx < 0) return void 0;
|
|
1363
|
+
return navMode.value === "window" ? dataAt(idx) : results.value[idx];
|
|
1365
1364
|
}
|
|
1366
1365
|
const { selectedRows, selectedCount, rowValueFn, isPkSelected, toggleActiveSelection } = createSelectionApi(selectionOpts, getActiveRow);
|
|
1367
1366
|
const { actions } = createActions({
|
|
@@ -1387,8 +1386,9 @@ function createTableState(opts) {
|
|
|
1387
1386
|
}, event);
|
|
1388
1387
|
}
|
|
1389
1388
|
});
|
|
1390
|
-
const {
|
|
1389
|
+
const { navViewportRowCount, setActive, clearActive, handleNavKey } = createNavController({
|
|
1391
1390
|
activeIndex,
|
|
1391
|
+
navMode,
|
|
1392
1392
|
totalCount,
|
|
1393
1393
|
results,
|
|
1394
1394
|
viewportRowCount,
|
|
@@ -1521,6 +1521,7 @@ function createTableState(opts) {
|
|
|
1521
1521
|
includeActions,
|
|
1522
1522
|
activeIndex,
|
|
1523
1523
|
navMode,
|
|
1524
|
+
getActiveRow,
|
|
1524
1525
|
hasMainActionListener,
|
|
1525
1526
|
rowId,
|
|
1526
1527
|
setActive,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.108",
|
|
4
4
|
"description": "Type-driven table components for Atscript with Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -162,9 +162,9 @@
|
|
|
162
162
|
"access": "public"
|
|
163
163
|
},
|
|
164
164
|
"dependencies": {
|
|
165
|
-
"@atscript/ui": "^0.1.
|
|
166
|
-
"@atscript/
|
|
167
|
-
"@atscript/
|
|
165
|
+
"@atscript/ui": "^0.1.108",
|
|
166
|
+
"@atscript/ui-table": "^0.1.108",
|
|
167
|
+
"@atscript/vue-form": "^0.1.108"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
170
|
"@atscript/db-client": "^0.1.110",
|