@atscript/vue-table 0.1.119 → 0.1.121
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-CWmWeQam.mjs → as-action-menu-content-4UfcabUe.mjs} +1 -1
- package/dist/{as-action-menu-content-C7n_dJx0.cjs → as-action-menu-content-C5qx9MPE.cjs} +1 -1
- package/dist/{as-config-dialog-B6MFmBRW.cjs → as-config-dialog-BOYWPYYH.cjs} +2 -2
- package/dist/{as-config-dialog-0e-az0nn.mjs → as-config-dialog-BehfqIGd.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-CYiLQUP-.cjs → as-confirm-dialog-UwhDHysk.cjs} +1 -1
- package/dist/{as-confirm-dialog-DlZzfASO.mjs → as-confirm-dialog-bpN4A-KN.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-Bole60UC.mjs → as-filter-dialog-D1qzq-8b.mjs} +7 -7
- package/dist/{as-filter-dialog-OiRuTYfh.cjs → as-filter-dialog-Dh2Ylthb.cjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-iJbKFVSw.cjs → as-filter-field-DRsDJdpx.cjs} +3 -3
- package/dist/{as-filter-field-xzcm2aGE.mjs → as-filter-field-DirBmnbb.mjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-DfkxKGNU.cjs → as-filters-DCZTHjf5.cjs} +3 -3
- package/dist/{as-filters-CGRd9vX0.mjs → as-filters-beIud9sF.mjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-BbnwfYzC.mjs → as-preset-dialog-CDqCAR7N.mjs} +1 -1
- package/dist/{as-preset-dialog-D77Dg9ll.cjs → as-preset-dialog-DpM06jqR.cjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-Bwr3kM4o.mjs → as-preset-picker-CISaxEZ0.mjs} +1 -1
- package/dist/{as-preset-picker-Divz_1ZG.cjs → as-preset-picker-jUS_YDX8.cjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-DC6-kpsJ.cjs → as-row-actions-Bm6Bzyno.cjs} +2 -2
- package/dist/{as-row-actions-CBVF6B2-.mjs → as-row-actions-xqJeAdQl.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-DaT2K-7n.cjs → as-table-BWUPzjRn.cjs} +2 -2
- package/dist/{as-table-DQwYi63u.mjs → as-table-CDSG2yED.mjs} +2 -2
- package/dist/{as-table-actions-ChR9MGQt.mjs → as-table-actions-DMxeaczm.mjs} +2 -2
- package/dist/{as-table-actions-CEhZXH97.cjs → as-table-actions-gV4lqqxc.cjs} +2 -2
- 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-lEHkmijR.d.mts → as-table-actions.vue-DVLiF5wq.d.mts} +1 -1
- package/dist/{as-table-actions.vue-TlWMTbFG.d.cts → as-table-actions.vue-IyPKQZSd.d.cts} +1 -1
- package/dist/{as-table-base-DOvVedJg.mjs → as-table-base-BaTE3VSN.mjs} +2 -2
- package/dist/{as-table-base-1uBBmFuL.cjs → as-table-base-RG2TEIgV.cjs} +2 -2
- package/dist/{as-table-header-cell-DfjfNeq4.mjs → as-table-header-cell-Bdhl5Lox.mjs} +1 -1
- package/dist/{as-table-header-cell-DD6Tw87_.cjs → as-table-header-cell-CIqlO6Lw.cjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-root-BSbO16CM.mjs → as-table-root-BLReUbRH.mjs} +4 -4
- package/dist/{as-table-root-BnW1SL4W.cjs → as-table-root-DLJ_3Jf4.cjs} +4 -4
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-BiRptgbp.d.cts → as-table-root.vue-D0T3n-Vm.d.cts} +3 -3
- package/dist/{as-table-root.vue-CFNWlsiX.d.mts → as-table-root.vue-QMT93qPk.d.mts} +3 -3
- package/dist/{as-table-status-Dy3rA0T-.mjs → as-table-status-DGTZlpyq.mjs} +4 -4
- package/dist/{as-table-status-2eUIHBmk.cjs → as-table-status-Du4WLF4k.cjs} +4 -4
- 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-CabASSZX.d.mts → as-table.vue-Ce5606ZO.d.mts} +3 -3
- package/dist/{as-table.vue-ed-kqeNL.d.cts → as-table.vue-Ds7MEp37.d.cts} +3 -3
- package/dist/{as-window-table-B9k_nv4c.mjs → as-window-table-DWujiUQy.mjs} +2 -2
- package/dist/{as-window-table-iwpsLq0K.cjs → as-window-table-jD_y9yet.cjs} +2 -2
- 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-epdirDow.d.cts → as-window-table.vue-Bhf9BK8E.d.cts} +2 -2
- package/dist/{as-window-table.vue-B09-b7uf.d.mts → as-window-table.vue-DfZF1Mux.d.mts} +2 -2
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +17 -17
- package/dist/{use-table-DHN_frAf.mjs → use-table-CyFcVtUN.mjs} +1 -1
- package/dist/{use-table-component-QDcfYIBU.cjs → use-table-component-DO_kvKSf.cjs} +1 -1
- package/dist/{use-table-component-Bu7CIG5I.mjs → use-table-component-K6xj1obF.mjs} +1 -1
- package/dist/{use-table-nav-bridge-CVO5_ttZ.mjs → use-table-nav-bridge-DeGeaQX-.mjs} +1 -1
- package/dist/{use-table-nav-bridge-BlqeY53w.cjs → use-table-nav-bridge-uOQUDooh.cjs} +1 -1
- package/dist/{use-table-BWgcmQS7.cjs → use-table-nvBq1dZ4.cjs} +1 -1
- package/dist/{use-table-state-Dju5bxt8.mjs → use-table-state-BxX3SpeW.mjs} +18 -10
- package/dist/{use-table-state-CElgF_iy.cjs → use-table-state-Oi2ds4_a.cjs} +18 -10
- package/package.json +7 -7
package/dist/as-table.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-Ds7MEp37.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-Ce5606ZO.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_default } from "./as-table-
|
|
1
|
+
import { t as as_table_default } from "./as-table-CDSG2yED.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -69,14 +69,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
69
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
71
|
select: SelectionMode;
|
|
72
|
+
stickyHeader: boolean;
|
|
73
|
+
virtualOverscan: number;
|
|
72
74
|
reorderable: boolean;
|
|
73
75
|
resizable: boolean;
|
|
74
76
|
columnMinWidth: number;
|
|
75
77
|
rowDelete: boolean | RowDeleteOpt;
|
|
76
|
-
headless: boolean;
|
|
77
|
-
stickyHeader: boolean;
|
|
78
|
-
virtualOverscan: number;
|
|
79
78
|
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
79
|
+
headless: boolean;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
81
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -69,14 +69,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
69
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
71
|
select: SelectionMode;
|
|
72
|
+
stickyHeader: boolean;
|
|
73
|
+
virtualOverscan: number;
|
|
72
74
|
reorderable: boolean;
|
|
73
75
|
resizable: boolean;
|
|
74
76
|
columnMinWidth: number;
|
|
75
77
|
rowDelete: boolean | RowDeleteOpt;
|
|
76
|
-
headless: boolean;
|
|
77
|
-
stickyHeader: boolean;
|
|
78
|
-
virtualOverscan: number;
|
|
79
78
|
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
79
|
+
headless: boolean;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
81
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-BxX3SpeW.mjs";
|
|
2
2
|
import { t as useSelectModeReset } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
3
|
import { t as useHasEmitListener } from "./use-has-emit-listener-BTMDIv2e.mjs";
|
|
4
4
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
5
|
-
import { a as useCellComponents, i as useRafBatch, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-
|
|
5
|
+
import { a as useCellComponents, i as useRafBatch, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-DGTZlpyq.mjs";
|
|
6
6
|
import { t as useTableColumnHandlers } from "./use-table-column-handlers-CpiiIniD.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 } from "@atscript/ui-table";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Oi2ds4_a.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
3
3
|
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
4
4
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
5
|
-
const require_as_table_status = require("./as-table-status-
|
|
5
|
+
const require_as_table_status = require("./as-table-status-Du4WLF4k.cjs");
|
|
6
6
|
const require_use_table_column_handlers = require("./use-table-column-handlers-ehreEzcx.cjs");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
let _atscript_ui_table = require("@atscript/ui-table");
|
package/dist/as-window-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_window_table = require("./as-window-table-
|
|
1
|
+
const require_as_window_table = require("./as-window-table-jD_y9yet.cjs");
|
|
2
2
|
module.exports = require_as_window_table.as_window_table_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-Bhf9BK8E.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DfZF1Mux.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-window-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
1
|
+
import { t as as_window_table_default } from "./as-window-table-DWujiUQy.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -74,14 +74,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
74
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
-
rowHeight: number;
|
|
78
|
-
wheelRowsPerTick: number;
|
|
79
77
|
select: SelectionMode;
|
|
80
78
|
reorderable: boolean;
|
|
81
79
|
resizable: boolean;
|
|
82
80
|
columnMinWidth: number;
|
|
83
81
|
rowDelete: boolean | RowDeleteOpt;
|
|
84
82
|
headless: boolean;
|
|
83
|
+
rowHeight: number;
|
|
84
|
+
wheelRowsPerTick: number;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
|
@@ -74,14 +74,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
74
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
-
rowHeight: number;
|
|
78
|
-
wheelRowsPerTick: number;
|
|
79
77
|
select: SelectionMode;
|
|
80
78
|
reorderable: boolean;
|
|
81
79
|
resizable: boolean;
|
|
82
80
|
columnMinWidth: number;
|
|
83
81
|
rowDelete: boolean | RowDeleteOpt;
|
|
84
82
|
headless: boolean;
|
|
83
|
+
rowHeight: number;
|
|
84
|
+
wheelRowsPerTick: number;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
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-Oi2ds4_a.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-nvBq1dZ4.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-uOQUDooh.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-DO_kvKSf.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-vCNTh4WZ.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-DJNsEKTi.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-BOYWPYYH.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-UwhDHysk.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-Dh2Ylthb.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-CIqlO6Lw.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-jD_y9yet.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-DRsDJdpx.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-DCZTHjf5.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-DpM06jqR.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-Bm6Bzyno.cjs");
|
|
26
26
|
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.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-DLJ_3Jf4.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-BWUPzjRn.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-gV4lqqxc.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-jUS_YDX8.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,10 +1,10 @@
|
|
|
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
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-CTMxE_zA.cjs";
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-IyPKQZSd.cjs";
|
|
5
|
+
import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-D0T3n-Vm.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-Ds7MEp37.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-Bhf9BK8E.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";
|
|
@@ -20,4 +20,4 @@ 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
22
|
import { t as _default$18 } from "./as-table-header-cell.vue-BzTzfGRo.cjs";
|
|
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 };
|
|
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, QueryOptions, 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,10 +1,10 @@
|
|
|
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
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-ByU4O0Yf.mjs";
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-DVLiF5wq.mjs";
|
|
5
|
+
import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-QMT93qPk.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-Ce5606ZO.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DfZF1Mux.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";
|
|
@@ -20,4 +20,4 @@ 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
22
|
import { t as _default$18 } from "./as-table-header-cell.vue-BCszzxtU.mjs";
|
|
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 };
|
|
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, QueryOptions, 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 { a as useTableContext, m as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState, x as ROW_ACTIONS_TYPE } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, m as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState, x as ROW_ACTIONS_TYPE } from "./use-table-state-BxX3SpeW.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-CyFcVtUN.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-DeGeaQX-.mjs";
|
|
5
|
+
import { t as useTableComponent } from "./use-table-component-K6xj1obF.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-D1Ziv96Q.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-C9FukGqF.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-BehfqIGd.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-bpN4A-KN.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-D1qzq-8b.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Bdhl5Lox.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-DWujiUQy.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-DirBmnbb.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-beIud9sF.mjs";
|
|
23
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-CDqCAR7N.mjs";
|
|
24
|
+
import { t as as_row_actions_default } from "./as-row-actions-xqJeAdQl.mjs";
|
|
25
25
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-CPcFxSOj.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-BLReUbRH.mjs";
|
|
27
|
+
import { t as as_table_default } from "./as-table-CDSG2yED.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-DMxeaczm.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CISaxEZ0.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";
|
|
@@ -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-BxX3SpeW.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-Oi2ds4_a.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-BxX3SpeW.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-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BxX3SpeW.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-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Oi2ds4_a.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");
|
|
@@ -1480,13 +1480,13 @@ function createTableState(opts) {
|
|
|
1480
1480
|
requestMainAction,
|
|
1481
1481
|
toggleActiveSelection
|
|
1482
1482
|
});
|
|
1483
|
-
async function runQuery(kind) {
|
|
1483
|
+
async function runQuery(kind, silent = false) {
|
|
1484
1484
|
if (queryOpts?.blockQuery) return;
|
|
1485
1485
|
mustRefresh.value = false;
|
|
1486
|
-
if (kind !== "initial" && topIndex.value !== 0) topIndex.value = 0;
|
|
1486
|
+
if (!silent && kind !== "initial" && topIndex.value !== 0) topIndex.value = 0;
|
|
1487
1487
|
const thisGen = ++generation;
|
|
1488
1488
|
clearSettlements();
|
|
1489
|
-
querying.value = true;
|
|
1489
|
+
if (!silent) querying.value = true;
|
|
1490
1490
|
queryDetected = true;
|
|
1491
1491
|
try {
|
|
1492
1492
|
const query = buildCurrentQuery();
|
|
@@ -1506,6 +1506,7 @@ function createTableState(opts) {
|
|
|
1506
1506
|
queryError.value = null;
|
|
1507
1507
|
} catch (err) {
|
|
1508
1508
|
if (thisGen !== generation) return;
|
|
1509
|
+
if (silent) return;
|
|
1509
1510
|
const error = err instanceof Error ? err : new Error(String(err));
|
|
1510
1511
|
queryError.value = error;
|
|
1511
1512
|
results.value = [];
|
|
@@ -1518,35 +1519,42 @@ function createTableState(opts) {
|
|
|
1518
1519
|
}
|
|
1519
1520
|
}
|
|
1520
1521
|
let pendingScheduledKind = null;
|
|
1522
|
+
let pendingSilent = true;
|
|
1521
1523
|
let queryFlushScheduled = false;
|
|
1522
|
-
function scheduleQuery(kind = "query") {
|
|
1524
|
+
function scheduleQuery(kind = "query", opts) {
|
|
1523
1525
|
if (queryOpts?.blockQuery) return;
|
|
1524
1526
|
if (tableDef.value === null) return;
|
|
1525
1527
|
pendingScheduledKind = pendingScheduledKind ?? kind;
|
|
1526
|
-
|
|
1528
|
+
if (!(opts?.silent ?? false)) {
|
|
1529
|
+
pendingSilent = false;
|
|
1530
|
+
querying.value = true;
|
|
1531
|
+
}
|
|
1527
1532
|
if (queryFlushScheduled) return;
|
|
1528
1533
|
queryFlushScheduled = true;
|
|
1529
1534
|
queueMicrotask(() => {
|
|
1530
1535
|
queryFlushScheduled = false;
|
|
1531
1536
|
const k = pendingScheduledKind;
|
|
1537
|
+
const s = pendingSilent;
|
|
1532
1538
|
pendingScheduledKind = null;
|
|
1539
|
+
pendingSilent = true;
|
|
1533
1540
|
if (k === null) return;
|
|
1534
1541
|
if (tableDef.value === null) return;
|
|
1535
|
-
runQuery(k);
|
|
1542
|
+
runQuery(k, s);
|
|
1536
1543
|
});
|
|
1537
1544
|
}
|
|
1538
|
-
function query() {
|
|
1539
|
-
scheduleQuery("query");
|
|
1545
|
+
function query(opts) {
|
|
1546
|
+
scheduleQuery("query", opts);
|
|
1540
1547
|
}
|
|
1541
1548
|
function requestRefresh() {
|
|
1542
1549
|
mustRefresh.value = true;
|
|
1543
1550
|
scheduleQuery();
|
|
1544
1551
|
}
|
|
1545
|
-
async function queryImmediate() {
|
|
1552
|
+
async function queryImmediate(opts) {
|
|
1546
1553
|
pendingScheduledKind = null;
|
|
1554
|
+
pendingSilent = true;
|
|
1547
1555
|
if (queryOpts?.blockQuery) return;
|
|
1548
1556
|
if (tableDef.value === null) return;
|
|
1549
|
-
await runQuery("query");
|
|
1557
|
+
await runQuery("query", opts?.silent ?? false);
|
|
1550
1558
|
}
|
|
1551
1559
|
function invalidate() {
|
|
1552
1560
|
generation++;
|
|
@@ -1480,13 +1480,13 @@ function createTableState(opts) {
|
|
|
1480
1480
|
requestMainAction,
|
|
1481
1481
|
toggleActiveSelection
|
|
1482
1482
|
});
|
|
1483
|
-
async function runQuery(kind) {
|
|
1483
|
+
async function runQuery(kind, silent = false) {
|
|
1484
1484
|
if (queryOpts?.blockQuery) return;
|
|
1485
1485
|
mustRefresh.value = false;
|
|
1486
|
-
if (kind !== "initial" && topIndex.value !== 0) topIndex.value = 0;
|
|
1486
|
+
if (!silent && kind !== "initial" && topIndex.value !== 0) topIndex.value = 0;
|
|
1487
1487
|
const thisGen = ++generation;
|
|
1488
1488
|
clearSettlements();
|
|
1489
|
-
querying.value = true;
|
|
1489
|
+
if (!silent) querying.value = true;
|
|
1490
1490
|
queryDetected = true;
|
|
1491
1491
|
try {
|
|
1492
1492
|
const query = buildCurrentQuery();
|
|
@@ -1506,6 +1506,7 @@ function createTableState(opts) {
|
|
|
1506
1506
|
queryError.value = null;
|
|
1507
1507
|
} catch (err) {
|
|
1508
1508
|
if (thisGen !== generation) return;
|
|
1509
|
+
if (silent) return;
|
|
1509
1510
|
const error = err instanceof Error ? err : new Error(String(err));
|
|
1510
1511
|
queryError.value = error;
|
|
1511
1512
|
results.value = [];
|
|
@@ -1518,35 +1519,42 @@ function createTableState(opts) {
|
|
|
1518
1519
|
}
|
|
1519
1520
|
}
|
|
1520
1521
|
let pendingScheduledKind = null;
|
|
1522
|
+
let pendingSilent = true;
|
|
1521
1523
|
let queryFlushScheduled = false;
|
|
1522
|
-
function scheduleQuery(kind = "query") {
|
|
1524
|
+
function scheduleQuery(kind = "query", opts) {
|
|
1523
1525
|
if (queryOpts?.blockQuery) return;
|
|
1524
1526
|
if (tableDef.value === null) return;
|
|
1525
1527
|
pendingScheduledKind = pendingScheduledKind ?? kind;
|
|
1526
|
-
|
|
1528
|
+
if (!(opts?.silent ?? false)) {
|
|
1529
|
+
pendingSilent = false;
|
|
1530
|
+
querying.value = true;
|
|
1531
|
+
}
|
|
1527
1532
|
if (queryFlushScheduled) return;
|
|
1528
1533
|
queryFlushScheduled = true;
|
|
1529
1534
|
queueMicrotask(() => {
|
|
1530
1535
|
queryFlushScheduled = false;
|
|
1531
1536
|
const k = pendingScheduledKind;
|
|
1537
|
+
const s = pendingSilent;
|
|
1532
1538
|
pendingScheduledKind = null;
|
|
1539
|
+
pendingSilent = true;
|
|
1533
1540
|
if (k === null) return;
|
|
1534
1541
|
if (tableDef.value === null) return;
|
|
1535
|
-
runQuery(k);
|
|
1542
|
+
runQuery(k, s);
|
|
1536
1543
|
});
|
|
1537
1544
|
}
|
|
1538
|
-
function query() {
|
|
1539
|
-
scheduleQuery("query");
|
|
1545
|
+
function query(opts) {
|
|
1546
|
+
scheduleQuery("query", opts);
|
|
1540
1547
|
}
|
|
1541
1548
|
function requestRefresh() {
|
|
1542
1549
|
mustRefresh.value = true;
|
|
1543
1550
|
scheduleQuery();
|
|
1544
1551
|
}
|
|
1545
|
-
async function queryImmediate() {
|
|
1552
|
+
async function queryImmediate(opts) {
|
|
1546
1553
|
pendingScheduledKind = null;
|
|
1554
|
+
pendingSilent = true;
|
|
1547
1555
|
if (queryOpts?.blockQuery) return;
|
|
1548
1556
|
if (tableDef.value === null) return;
|
|
1549
|
-
await runQuery("query");
|
|
1557
|
+
await runQuery("query", opts?.silent ?? false);
|
|
1550
1558
|
}
|
|
1551
1559
|
function invalidate() {
|
|
1552
1560
|
generation++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.121",
|
|
4
4
|
"description": "Type-driven table components for Atscript with Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
"access": "public"
|
|
163
163
|
},
|
|
164
164
|
"dependencies": {
|
|
165
|
-
"@atscript/ui": "^0.1.
|
|
166
|
-
"@atscript/
|
|
167
|
-
"@atscript/
|
|
165
|
+
"@atscript/ui": "^0.1.121",
|
|
166
|
+
"@atscript/ui-table": "^0.1.121",
|
|
167
|
+
"@atscript/vue-form": "^0.1.121"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
|
-
"@atscript/db-client": "^0.1.
|
|
171
|
-
"@atscript/typescript": "^0.1.
|
|
170
|
+
"@atscript/db-client": "^0.1.115",
|
|
171
|
+
"@atscript/typescript": "^0.1.82",
|
|
172
172
|
"@tanstack/vue-virtual": "^3.13.26",
|
|
173
173
|
"@uniqu/core": "^0.1.7",
|
|
174
174
|
"@vitejs/plugin-vue": "^6",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"vunor": "^0.2.1"
|
|
184
184
|
},
|
|
185
185
|
"peerDependencies": {
|
|
186
|
-
"@atscript/db-client": "^0.1.
|
|
186
|
+
"@atscript/db-client": "^0.1.115",
|
|
187
187
|
"@tanstack/vue-virtual": "^3.13.26",
|
|
188
188
|
"@vueuse/core": "^14.3.0",
|
|
189
189
|
"reka-ui": "^2.9.8",
|