@atscript/vue-table 0.1.103 → 0.1.105
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-D2yf0zD2.mjs → as-action-menu-content-DEOJ4c9c.mjs} +1 -1
- package/dist/{as-action-menu-content-BChqFX3E.cjs → as-action-menu-content-DsAb2Z1_.cjs} +1 -1
- package/dist/{as-config-dialog-vOUtx5zq.cjs → as-config-dialog-BSYeHrVi.cjs} +2 -2
- package/dist/{as-config-dialog-COwDabdW.mjs → as-config-dialog-ejWEs-Mk.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-ClVKU1Dm.mjs → as-confirm-dialog-DThHWg1q.mjs} +1 -1
- package/dist/{as-confirm-dialog-C6HAGzrj.cjs → as-confirm-dialog-Ds0bsoxY.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-BcPI27cn.cjs → as-filter-dialog-C-Iw1pEJ.cjs} +7 -8
- package/dist/{as-filter-dialog-DuFgEjqE.mjs → as-filter-dialog-CtMsxzJG.mjs} +7 -8
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-Dsk1l3Et.mjs → as-filter-field-DPb7bhIf.mjs} +3 -4
- package/dist/{as-filter-field-B8idz2UD.cjs → as-filter-field-r-vkcWBY.cjs} +3 -4
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-BzdQ4HUx.cjs → as-filters-CHtxp1Fx.cjs} +3 -3
- package/dist/{as-filters-BS7kWJfI.mjs → as-filters-xplRbLmV.mjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-DoEpCt2j.mjs → as-preset-dialog-DnK_Gi_z.mjs} +1 -1
- package/dist/{as-preset-dialog-DOdrDDKy.cjs → as-preset-dialog-zsbgrl-D.cjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-2DkH7QfW.cjs → as-preset-picker-B2FVgmXk.cjs} +1 -1
- package/dist/{as-preset-picker-ByUCQpnX.mjs → as-preset-picker-BuyHHYD6.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-D7YgGt0x.mjs → as-row-actions-Cq_Eoxpn.mjs} +2 -2
- package/dist/{as-row-actions-05pQX_om.cjs → as-row-actions-DJXX81aA.cjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-H5uKWieH.mjs → as-table-BhtyI18Z.mjs} +2 -3
- package/dist/{as-table-DyuL_hUo.cjs → as-table-GS-99KAe.cjs} +2 -3
- package/dist/{as-table-actions-DCEGQiHi.mjs → as-table-actions-42ObwQBE.mjs} +2 -2
- package/dist/{as-table-actions-CsdY2_BG.cjs → as-table-actions-CmvhBaZH.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-BZW3UB9m.d.cts → as-table-actions.vue-C36YeIUD.d.cts} +1 -1
- package/dist/{as-table-actions.vue-D3HEJxbG.d.mts → as-table-actions.vue-CnL92_MD.d.mts} +1 -1
- package/dist/{as-table-base-DReD74pJ.mjs → as-table-base-BZV-Nd_X.mjs} +2 -2
- package/dist/{as-table-base-GEf95oXP.cjs → as-table-base-C1GvdzBY.cjs} +2 -2
- package/dist/{as-table-header-cell-DWONx2MI.cjs → as-table-header-cell-BRG9MJMO.cjs} +1 -1
- package/dist/{as-table-header-cell-BUf8wvrw.mjs → as-table-header-cell-CwFFk8f0.mjs} +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-Cg2zkxR5.cjs → as-table-root-CAuiC2K_.cjs} +4 -4
- package/dist/{as-table-root-DpQUTbQ8.mjs → as-table-root-DOE4CqP1.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-BjeThuub.d.mts → as-table-root.vue-Boq6pDr1.d.mts} +4 -4
- package/dist/{as-table-root.vue-BukHIoYu.d.cts → as-table-root.vue-CYmnf5SH.d.cts} +4 -4
- package/dist/{as-table-status-Dinns93w.mjs → as-table-status-D8DJYUYF.mjs} +4 -4
- package/dist/{as-table-status-DZP8dFpm.cjs → as-table-status-DHgPM8vQ.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-AT1XrXP_.d.cts → as-table.vue-4NViMhLE.d.cts} +5 -5
- package/dist/{as-table.vue-Bqkp2CT3.d.mts → as-table.vue-UzgniXai.d.mts} +5 -5
- package/dist/{as-window-table-BwF2t4Zy.mjs → as-window-table-C1U2gHNy.mjs} +2 -2
- package/dist/{as-window-table-CCRJKpoE.cjs → as-window-table-C4jdyIdV.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-BEMGuTpT.d.cts → as-window-table.vue-BGz0OaFR.d.cts} +5 -5
- package/dist/{as-window-table.vue-BkMDV1Ar.d.mts → as-window-table.vue-CuMQMCnY.d.mts} +5 -5
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +17 -17
- package/dist/{use-table-CRsFMyJb.mjs → use-table-DCH9Sl8T.mjs} +1 -1
- package/dist/{use-table-CLsp2mAu.cjs → use-table-EVIJL8m4.cjs} +1 -1
- package/dist/{use-table-component-CirEOQ_P.cjs → use-table-component-BIpRevq0.cjs} +1 -1
- package/dist/{use-table-component-BbETnUuy.mjs → use-table-component-Be6w6eL4.mjs} +1 -1
- package/dist/{use-table-nav-bridge-i8AjtjIt.mjs → use-table-nav-bridge-D5B1YBDN.mjs} +1 -1
- package/dist/{use-table-nav-bridge-Bh1tpG0X.cjs → use-table-nav-bridge-jCmNrUfV.cjs} +1 -1
- package/dist/{use-table-state-DFQ30m-j.cjs → use-table-state-C3IJ8dJ4.cjs} +12 -12
- package/dist/{use-table-state-CuZ2OXoY.mjs → use-table-state-C8aMAtiS.mjs} +12 -12
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
3
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
4
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-C3IJ8dJ4.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-BIpRevq0.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BRG9MJMO.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-DJXX81aA.cjs");
|
|
5
5
|
const require_as_table_cell_value = require("./as-table-cell-value-CcWR5oG4.cjs");
|
|
6
6
|
let _atscript_ui = require("@atscript/ui");
|
|
7
7
|
let vue = require("vue");
|
package/dist/as-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table = require("./as-table-
|
|
1
|
+
const require_as_table = require("./as-table-GS-99KAe.cjs");
|
|
2
2
|
module.exports = require_as_table.as_table_default;
|
package/dist/as-table.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-4NViMhLE.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-UzgniXai.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-BhtyI18Z.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -53,21 +53,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
53
53
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
54
54
|
};
|
|
55
55
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
56
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event:
|
|
56
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
57
57
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
58
58
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
60
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
60
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
61
61
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
62
62
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
|
-
|
|
64
|
+
stickyHeader: boolean;
|
|
65
|
+
virtualOverscan: number;
|
|
65
66
|
reorderable: boolean;
|
|
66
67
|
resizable: boolean;
|
|
67
68
|
columnMinWidth: number;
|
|
69
|
+
select: SelectionMode;
|
|
68
70
|
rowDelete: boolean | RowDeleteOpt;
|
|
69
|
-
stickyHeader: boolean;
|
|
70
|
-
virtualOverscan: number;
|
|
71
71
|
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
72
72
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
73
73
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -53,21 +53,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
53
53
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
54
54
|
};
|
|
55
55
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
56
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event:
|
|
56
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
57
57
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
58
58
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
60
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
60
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
61
61
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
62
62
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
|
-
|
|
64
|
+
stickyHeader: boolean;
|
|
65
|
+
virtualOverscan: number;
|
|
65
66
|
reorderable: boolean;
|
|
66
67
|
resizable: boolean;
|
|
67
68
|
columnMinWidth: number;
|
|
69
|
+
select: SelectionMode;
|
|
68
70
|
rowDelete: boolean | RowDeleteOpt;
|
|
69
|
-
stickyHeader: boolean;
|
|
70
|
-
virtualOverscan: number;
|
|
71
71
|
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
72
72
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
73
73
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -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-C8aMAtiS.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 useCellResolver, i as useCellComponents, n as as_table_header_default, r as useRafBatch, t as as_table_status_default } from "./as-table-status-
|
|
5
|
+
import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, r as useRafBatch, t as as_table_status_default } from "./as-table-status-D8DJYUYF.mjs";
|
|
6
6
|
import { t as useTableColumnHandlers } from "./use-table-column-handlers-cm0GxR2u.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-C3IJ8dJ4.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-DHgPM8vQ.cjs");
|
|
6
6
|
const require_use_table_column_handlers = require("./use-table-column-handlers-BgC4gUJV.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-C4jdyIdV.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-BGz0OaFR.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-CuMQMCnY.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-C1U2gHNy.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -57,23 +57,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
57
57
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
58
58
|
};
|
|
59
59
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
60
|
-
"main-action": (row: Row, absIndex: number, event:
|
|
60
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
61
61
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
62
62
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
63
63
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
65
|
-
"onMain-action"?: ((row: Row, absIndex: number, event:
|
|
65
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
66
66
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
67
67
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
68
68
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
69
69
|
}>, {
|
|
70
|
-
rowHeight: number;
|
|
71
|
-
wheelRowsPerTick: number;
|
|
72
|
-
select: SelectionMode;
|
|
73
70
|
reorderable: boolean;
|
|
74
71
|
resizable: boolean;
|
|
75
72
|
columnMinWidth: number;
|
|
73
|
+
select: SelectionMode;
|
|
76
74
|
rowDelete: boolean | RowDeleteOpt;
|
|
75
|
+
rowHeight: number;
|
|
76
|
+
wheelRowsPerTick: number;
|
|
77
77
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
78
78
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
79
79
|
declare const _default: typeof __VLS_export;
|
|
@@ -57,23 +57,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
57
57
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
58
58
|
};
|
|
59
59
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
60
|
-
"main-action": (row: Row, absIndex: number, event:
|
|
60
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
61
61
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
62
62
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
63
63
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
65
|
-
"onMain-action"?: ((row: Row, absIndex: number, event:
|
|
65
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
66
66
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
67
67
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
68
68
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
69
69
|
}>, {
|
|
70
|
-
rowHeight: number;
|
|
71
|
-
wheelRowsPerTick: number;
|
|
72
|
-
select: SelectionMode;
|
|
73
70
|
reorderable: boolean;
|
|
74
71
|
resizable: boolean;
|
|
75
72
|
columnMinWidth: number;
|
|
73
|
+
select: SelectionMode;
|
|
76
74
|
rowDelete: boolean | RowDeleteOpt;
|
|
75
|
+
rowHeight: number;
|
|
76
|
+
wheelRowsPerTick: number;
|
|
77
77
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
78
78
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
79
79
|
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-C3IJ8dJ4.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-EVIJL8m4.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-jCmNrUfV.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-BIpRevq0.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-BSYeHrVi.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-Ds0bsoxY.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-C-Iw1pEJ.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BRG9MJMO.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-C4jdyIdV.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-r-vkcWBY.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-CHtxp1Fx.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-zsbgrl-D.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-DJXX81aA.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-CAuiC2K_.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-GS-99KAe.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-CmvhBaZH.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-B2FVgmXk.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-BPFBxUS_.cjs";
|
|
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-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-C36YeIUD.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-CYmnf5SH.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-4NViMhLE.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-BGz0OaFR.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";
|
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-BWeFiZKk.mjs";
|
|
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-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-CnL92_MD.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-Boq6pDr1.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-UzgniXai.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-CuMQMCnY.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";
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useTableContext, d as extractIdentifier, g as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, d as extractIdentifier, g as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-C8aMAtiS.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-DCH9Sl8T.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-D5B1YBDN.mjs";
|
|
5
|
+
import { t as useTableComponent } from "./use-table-component-Be6w6eL4.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-ejWEs-Mk.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DThHWg1q.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-CtMsxzJG.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-CwFFk8f0.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-C1U2gHNy.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-DPb7bhIf.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-xplRbLmV.mjs";
|
|
23
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-DnK_Gi_z.mjs";
|
|
24
|
+
import { t as as_row_actions_default } from "./as-row-actions-Cq_Eoxpn.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-DOE4CqP1.mjs";
|
|
27
|
+
import { t as as_table_default } from "./as-table-BhtyI18Z.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-42ObwQBE.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-BuyHHYD6.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-C8aMAtiS.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-C3IJ8dJ4.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
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-C3IJ8dJ4.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-C8aMAtiS.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-C8aMAtiS.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
|
-
|
|
1
|
+
require("@atscript/ui");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
4
|
let _atscript_db_client = require("@atscript/db-client");
|
|
@@ -573,14 +573,13 @@ const DEFAULT_AVAILABLE_ASPECTS = [
|
|
|
573
573
|
];
|
|
574
574
|
/**
|
|
575
575
|
* Default `columnNames` for a system preset that doesn't specify them — every
|
|
576
|
-
* column
|
|
577
|
-
*
|
|
578
|
-
* so
|
|
576
|
+
* column in the table definition. `@ui.table.exclude` fields never become
|
|
577
|
+
* columns (they stay fetchable for `selectWith` but never enter `allColumns`),
|
|
578
|
+
* so there's nothing to filter out here. Shared by `apply` (no-explicit-
|
|
579
|
+
* columnNames fallback) and `expandDefault` so the two paths can't drift apart.
|
|
579
580
|
*/
|
|
580
|
-
function
|
|
581
|
-
|
|
582
|
-
for (const col of o.allColumns.value) if (col.visible) out.push(col.path);
|
|
583
|
-
return out;
|
|
581
|
+
function defaultColumnPaths(o) {
|
|
582
|
+
return o.allColumns.value.map((c) => c.path);
|
|
584
583
|
}
|
|
585
584
|
/**
|
|
586
585
|
* Slice that turns `usePresets` + `useLocalDraft` into the table-state
|
|
@@ -615,7 +614,7 @@ function createPresetState(opts) {
|
|
|
615
614
|
apply(o, value, isSystem) {
|
|
616
615
|
if (!value && !isSystem) return;
|
|
617
616
|
const cols = value;
|
|
618
|
-
const columnNames = cols?.columnNames ??
|
|
617
|
+
const columnNames = cols?.columnNames ?? defaultColumnPaths(o);
|
|
619
618
|
const columnWidths = cols?.columnWidths;
|
|
620
619
|
o.columnNames.value = [...columnNames];
|
|
621
620
|
const next = {};
|
|
@@ -633,7 +632,7 @@ function createPresetState(opts) {
|
|
|
633
632
|
o.columnWidths.value = next;
|
|
634
633
|
},
|
|
635
634
|
expandDefault(o) {
|
|
636
|
-
return { columnNames:
|
|
635
|
+
return { columnNames: defaultColumnPaths(o) };
|
|
637
636
|
}
|
|
638
637
|
},
|
|
639
638
|
filters: {
|
|
@@ -1265,7 +1264,7 @@ function createTableState(opts) {
|
|
|
1265
1264
|
let queryDetected = false;
|
|
1266
1265
|
let skipPaginationWatch = 0;
|
|
1267
1266
|
function buildCurrentQuery() {
|
|
1268
|
-
const available = new Set(allColumns.value.map((c) => c.path));
|
|
1267
|
+
const available = tableDef.value?.fetchableFields ?? new Set(allColumns.value.map((c) => c.path));
|
|
1269
1268
|
const extra = /* @__PURE__ */ new Set();
|
|
1270
1269
|
for (const c of columns.value) for (const p of c.selectWith ?? []) if (available.has(p)) extra.add(p);
|
|
1271
1270
|
if (queryOpts?.alwaysSelected) {
|
|
@@ -1694,7 +1693,7 @@ function createTableState(opts) {
|
|
|
1694
1693
|
allColumns.value = def.columns;
|
|
1695
1694
|
const reconciled = (0, _atscript_ui_table.reconcileColumnWidthDefaults)(def.columns, columnWidths.value);
|
|
1696
1695
|
if (reconciled !== columnWidths.value) columnWidths.value = reconciled;
|
|
1697
|
-
if (columnNames.value.length === 0) columnNames.value =
|
|
1696
|
+
if (columnNames.value.length === 0) columnNames.value = def.columns.map((c) => c.path);
|
|
1698
1697
|
tableDef.value = def;
|
|
1699
1698
|
},
|
|
1700
1699
|
resetPagination
|
|
@@ -1730,6 +1729,7 @@ function createStaticTableState(opts) {
|
|
|
1730
1729
|
type: void 0,
|
|
1731
1730
|
columns: opts.columns,
|
|
1732
1731
|
flatMap: /* @__PURE__ */ new Map(),
|
|
1732
|
+
fetchableFields: new Set(opts.columns.map((c) => c.path)),
|
|
1733
1733
|
primaryKeys: [],
|
|
1734
1734
|
preferredId: [],
|
|
1735
1735
|
crud: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@atscript/ui";
|
|
2
2
|
import { computed, inject, nextTick, onBeforeUnmount, onScopeDispose, provide, ref, shallowRef, toValue, watch } from "vue";
|
|
3
3
|
import { STANDARD_PRESET_ID, blockStartFor, buildTableQuery, debounce, fromWireSnapshot, isDirtyAgainst, isFilled, isSystemPresetId, pageAlignedBlocksFor, planFetch, reconcileColumnWidthDefaults, resolveAspectGate, resolveSystemPresets, sameColumnSet, sortersEqual, stateToUrlQueryString, togglePk, urlQueryStringToState, walkBackwardAbsorb, walkForwardAbsorb } from "@atscript/ui-table";
|
|
4
4
|
import { formatIdentifier } from "@atscript/db-client";
|
|
@@ -573,14 +573,13 @@ const DEFAULT_AVAILABLE_ASPECTS = [
|
|
|
573
573
|
];
|
|
574
574
|
/**
|
|
575
575
|
* Default `columnNames` for a system preset that doesn't specify them — every
|
|
576
|
-
* column
|
|
577
|
-
*
|
|
578
|
-
* so
|
|
576
|
+
* column in the table definition. `@ui.table.exclude` fields never become
|
|
577
|
+
* columns (they stay fetchable for `selectWith` but never enter `allColumns`),
|
|
578
|
+
* so there's nothing to filter out here. Shared by `apply` (no-explicit-
|
|
579
|
+
* columnNames fallback) and `expandDefault` so the two paths can't drift apart.
|
|
579
580
|
*/
|
|
580
|
-
function
|
|
581
|
-
|
|
582
|
-
for (const col of o.allColumns.value) if (col.visible) out.push(col.path);
|
|
583
|
-
return out;
|
|
581
|
+
function defaultColumnPaths(o) {
|
|
582
|
+
return o.allColumns.value.map((c) => c.path);
|
|
584
583
|
}
|
|
585
584
|
/**
|
|
586
585
|
* Slice that turns `usePresets` + `useLocalDraft` into the table-state
|
|
@@ -615,7 +614,7 @@ function createPresetState(opts) {
|
|
|
615
614
|
apply(o, value, isSystem) {
|
|
616
615
|
if (!value && !isSystem) return;
|
|
617
616
|
const cols = value;
|
|
618
|
-
const columnNames = cols?.columnNames ??
|
|
617
|
+
const columnNames = cols?.columnNames ?? defaultColumnPaths(o);
|
|
619
618
|
const columnWidths = cols?.columnWidths;
|
|
620
619
|
o.columnNames.value = [...columnNames];
|
|
621
620
|
const next = {};
|
|
@@ -633,7 +632,7 @@ function createPresetState(opts) {
|
|
|
633
632
|
o.columnWidths.value = next;
|
|
634
633
|
},
|
|
635
634
|
expandDefault(o) {
|
|
636
|
-
return { columnNames:
|
|
635
|
+
return { columnNames: defaultColumnPaths(o) };
|
|
637
636
|
}
|
|
638
637
|
},
|
|
639
638
|
filters: {
|
|
@@ -1265,7 +1264,7 @@ function createTableState(opts) {
|
|
|
1265
1264
|
let queryDetected = false;
|
|
1266
1265
|
let skipPaginationWatch = 0;
|
|
1267
1266
|
function buildCurrentQuery() {
|
|
1268
|
-
const available = new Set(allColumns.value.map((c) => c.path));
|
|
1267
|
+
const available = tableDef.value?.fetchableFields ?? new Set(allColumns.value.map((c) => c.path));
|
|
1269
1268
|
const extra = /* @__PURE__ */ new Set();
|
|
1270
1269
|
for (const c of columns.value) for (const p of c.selectWith ?? []) if (available.has(p)) extra.add(p);
|
|
1271
1270
|
if (queryOpts?.alwaysSelected) {
|
|
@@ -1694,7 +1693,7 @@ function createTableState(opts) {
|
|
|
1694
1693
|
allColumns.value = def.columns;
|
|
1695
1694
|
const reconciled = reconcileColumnWidthDefaults(def.columns, columnWidths.value);
|
|
1696
1695
|
if (reconciled !== columnWidths.value) columnWidths.value = reconciled;
|
|
1697
|
-
if (columnNames.value.length === 0) columnNames.value =
|
|
1696
|
+
if (columnNames.value.length === 0) columnNames.value = def.columns.map((c) => c.path);
|
|
1698
1697
|
tableDef.value = def;
|
|
1699
1698
|
},
|
|
1700
1699
|
resetPagination
|
|
@@ -1730,6 +1729,7 @@ function createStaticTableState(opts) {
|
|
|
1730
1729
|
type: void 0,
|
|
1731
1730
|
columns: opts.columns,
|
|
1732
1731
|
flatMap: /* @__PURE__ */ new Map(),
|
|
1732
|
+
fetchableFields: new Set(opts.columns.map((c) => c.path)),
|
|
1733
1733
|
primaryKeys: [],
|
|
1734
1734
|
preferredId: [],
|
|
1735
1735
|
crud: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.105",
|
|
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/ui-table": "^0.1.
|
|
167
|
-
"@atscript/vue-form": "^0.1.
|
|
165
|
+
"@atscript/ui": "^0.1.105",
|
|
166
|
+
"@atscript/ui-table": "^0.1.105",
|
|
167
|
+
"@atscript/vue-form": "^0.1.105"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
|
-
"@atscript/db-client": "^0.1.
|
|
171
|
-
"@atscript/typescript": "^0.1.
|
|
170
|
+
"@atscript/db-client": "^0.1.109",
|
|
171
|
+
"@atscript/typescript": "^0.1.78",
|
|
172
172
|
"@tanstack/vue-virtual": "^3.13.26",
|
|
173
173
|
"@uniqu/core": "^0.1.6",
|
|
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.109",
|
|
187
187
|
"@tanstack/vue-virtual": "^3.13.26",
|
|
188
188
|
"@vueuse/core": "^14.3.0",
|
|
189
189
|
"reka-ui": "^2.9.8",
|