@atscript/vue-table 0.1.108 → 0.1.110
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-cell-union-sAOSdepj.mjs → as-cell-union-C9FukGqF.mjs} +1 -1
- package/dist/{as-cell-union-CT0rIvQq.cjs → as-cell-union-DJNsEKTi.cjs} +1 -1
- package/dist/as-cell-union.cjs +1 -1
- package/dist/as-cell-union.mjs +1 -1
- package/dist/{as-filter-dialog-Gl5U-9OS.mjs → as-filter-dialog-BIj0ABzy.mjs} +2 -2
- package/dist/{as-filter-dialog-CPUVRQ7U.cjs → as-filter-dialog-PBy9IDBz.cjs} +2 -2
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-C4BI5jwc.mjs → as-filter-field-9mG-alNU.mjs} +2 -6
- package/dist/{as-filter-field-DllWImJE.cjs → as-filter-field-BHPZtUwd.cjs} +2 -6
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-bXSMPvBh.cjs → as-filters-7oIkmDHI.cjs} +1 -1
- package/dist/{as-filters-DUSyWqRX.mjs → as-filters-BSQ3nugx.mjs} +1 -1
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-table-B8zdNqeN.cjs → as-table-C3Li7WTI.cjs} +1 -1
- package/dist/{as-table-BWWcR-0B.mjs → as-table-QkKHAIh6.mjs} +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.vue-CokIIKDL.d.mts → as-table-actions.vue-CTC9xl5i.d.mts} +1 -1
- package/dist/{as-table-actions.vue-D1VcrsSM.d.cts → as-table-actions.vue-DW-zOVP0.d.cts} +1 -1
- package/dist/{as-table-base-ybGbySqt.mjs → as-table-base-D4Otzbe4.mjs} +20 -1
- package/dist/{as-table-base-CryorP14.cjs → as-table-base-DImVUSKt.cjs} +20 -1
- package/dist/{as-table-cell-value-Byrb_Zyh.mjs → as-table-cell-value-CPcFxSOj.mjs} +1 -1
- package/dist/{as-table-cell-value-CcWR5oG4.cjs → as-table-cell-value-D1JkTQt0.cjs} +1 -1
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.mjs +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.vue-DVPxUP_F.d.mts → as-table-root.vue-C5IrebWr.d.mts} +4 -4
- package/dist/{as-table-root.vue-D3FPtr3T.d.cts → as-table-root.vue-DFCZwH1h.d.cts} +4 -4
- package/dist/{as-table-status-Dv8cYqEG.cjs → as-table-status-C3A1WYwb.cjs} +1 -1
- package/dist/{as-table-status-DUJixKkQ.mjs → as-table-status-CxkiQ_EE.mjs} +1 -1
- 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-ClTk8h2d.d.mts → as-table.vue-CAydq1n0.d.mts} +6 -6
- package/dist/{as-table.vue-DjpQ5xKN.d.cts → as-table.vue-COtIbUsp.d.cts} +6 -6
- package/dist/{as-window-table-DVMMiLK6.cjs → as-window-table-BBtgpJ1h.cjs} +2 -1
- package/dist/{as-window-table-DRbmDwi3.mjs → as-window-table-DONQh4nM.mjs} +2 -1
- 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-DfAUpZp3.d.mts → as-window-table.vue-BycvdZ82.d.mts} +5 -5
- package/dist/{as-window-table.vue-BPq-1zfL.d.cts → as-window-table.vue-iLK4PSW_.d.cts} +5 -5
- package/dist/{format-cell-CNQ6BpvR.mjs → format-cell-D1Ziv96Q.mjs} +1 -1
- package/dist/{format-cell-CSbJgz5B.cjs → format-cell-vCNTh4WZ.cjs} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +8 -8
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
2
2
|
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-Dkdv5Y9E.mjs";
|
|
3
|
-
import { t as formatCellValue } from "./format-cell-
|
|
3
|
+
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
5
5
|
//#region src/components/defaults/as-cell-union.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
const _hoisted_1 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
2
2
|
const require_as_cell_json_popover = require("./as-cell-json-popover-BM2QLgfk.cjs");
|
|
3
|
-
const require_format_cell = require("./format-cell-
|
|
3
|
+
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#region src/components/defaults/as-cell-union.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
const _hoisted_1 = {
|
package/dist/as-cell-union.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_union = require("./as-cell-union-
|
|
1
|
+
const require_as_cell_union = require("./as-cell-union-DJNsEKTi.cjs");
|
|
2
2
|
module.exports = require_as_cell_union.as_cell_union_default;
|
package/dist/as-cell-union.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_union_default } from "./as-cell-union-
|
|
1
|
+
import { t as as_cell_union_default } from "./as-cell-union-C9FukGqF.mjs";
|
|
2
2
|
export { as_cell_union_default as default };
|
|
@@ -5,8 +5,8 @@ import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
|
5
5
|
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-DAqSy8zx.mjs";
|
|
6
6
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DO3A1kIb.mjs";
|
|
7
7
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
8
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
9
|
-
import { t as as_filters_default } from "./as-filters-
|
|
8
|
+
import { t as as_window_table_default } from "./as-window-table-DONQh4nM.mjs";
|
|
9
|
+
import { t as as_filters_default } from "./as-filters-BSQ3nugx.mjs";
|
|
10
10
|
import { resolveValueHelp, valueHelpDictPaths } from "@atscript/ui";
|
|
11
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, resolveDynamicComponent, shallowRef, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
12
12
|
import { columnFilterType, conditionLabel, conditionsForType, dateShortcuts, defaultCondition, filledFilterCount, formatFilterCondition, isFilled, isSimpleEq, sameColumnSet } from "@atscript/ui-table";
|
|
@@ -5,8 +5,8 @@ const require_use_table_component = require("./use-table-component-D-1kzctZ.cjs"
|
|
|
5
5
|
const require_as_config_dialog = require("./as-config-dialog-DKYI4uQ0.cjs");
|
|
6
6
|
const require_use_seed_on_open = require("./use-seed-on-open-Dg9I89fU.cjs");
|
|
7
7
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
8
|
-
const require_as_window_table = require("./as-window-table-
|
|
9
|
-
const require_as_filters = require("./as-filters-
|
|
8
|
+
const require_as_window_table = require("./as-window-table-BBtgpJ1h.cjs");
|
|
9
|
+
const require_as_filters = require("./as-filters-7oIkmDHI.cjs");
|
|
10
10
|
let _atscript_ui = require("@atscript/ui");
|
|
11
11
|
let vue = require("vue");
|
|
12
12
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
1
|
+
const require_as_filter_dialog = require("./as-filter-dialog-PBy9IDBz.cjs");
|
|
2
2
|
module.exports = require_as_filter_dialog.as_filter_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
1
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-BIj0ABzy.mjs";
|
|
2
2
|
export { as_filter_dialog_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useTableContext } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { n as useTable } from "./use-table-CGxkBszK.mjs";
|
|
3
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
3
|
+
import { t as as_table_base_default } from "./as-table-base-D4Otzbe4.mjs";
|
|
4
4
|
import { ValueHelpClient, getMetaEntry, resolveValueHelp, valueHelpDictPaths } from "@atscript/ui";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onBeforeUnmount, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useId, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
6
6
|
import { arraysEqual, columnFilterType, debounce, formatFilterCondition, isFilled, isSimpleEq, parseFilterInput } from "@atscript/ui-table";
|
|
@@ -291,11 +291,6 @@ var as_filter_field_default = /* @__PURE__ */ defineComponent({
|
|
|
291
291
|
} finally {
|
|
292
292
|
innerState.querying.value = false;
|
|
293
293
|
}
|
|
294
|
-
dropdownOpen.value = false;
|
|
295
|
-
await nextTick();
|
|
296
|
-
await nextTick();
|
|
297
|
-
await nextTick();
|
|
298
|
-
dropdownOpen.value = true;
|
|
299
294
|
}
|
|
300
295
|
function filterFunction(val) {
|
|
301
296
|
if (!hasOptions || !searchTerm.value) return val;
|
|
@@ -372,6 +367,7 @@ var as_filter_field_default = /* @__PURE__ */ defineComponent({
|
|
|
372
367
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => dropdownOpen.value = $event),
|
|
373
368
|
multiple: true,
|
|
374
369
|
"reset-search-term-on-blur": false,
|
|
370
|
+
"ignore-filter": hasValueHelp,
|
|
375
371
|
"as-child": ""
|
|
376
372
|
}, {
|
|
377
373
|
default: withCtx(() => [createVNode(unref(ComboboxAnchor), { "as-child": "" }, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
const require_use_table = require("./use-table-CaegBdPZ.cjs");
|
|
3
|
-
const require_as_table_base = require("./as-table-base-
|
|
3
|
+
const require_as_table_base = require("./as-table-base-DImVUSKt.cjs");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -291,11 +291,6 @@ var as_filter_field_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
291
291
|
} finally {
|
|
292
292
|
innerState.querying.value = false;
|
|
293
293
|
}
|
|
294
|
-
dropdownOpen.value = false;
|
|
295
|
-
await (0, vue.nextTick)();
|
|
296
|
-
await (0, vue.nextTick)();
|
|
297
|
-
await (0, vue.nextTick)();
|
|
298
|
-
dropdownOpen.value = true;
|
|
299
294
|
}
|
|
300
295
|
function filterFunction(val) {
|
|
301
296
|
if (!hasOptions || !searchTerm.value) return val;
|
|
@@ -372,6 +367,7 @@ var as_filter_field_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
372
367
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => dropdownOpen.value = $event),
|
|
373
368
|
multiple: true,
|
|
374
369
|
"reset-search-term-on-blur": false,
|
|
370
|
+
"ignore-filter": hasValueHelp,
|
|
375
371
|
"as-child": ""
|
|
376
372
|
}, {
|
|
377
373
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxAnchor), { "as-child": "" }, {
|
package/dist/as-filter-field.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
1
|
+
const require_as_filter_field = require("./as-filter-field-BHPZtUwd.cjs");
|
|
2
2
|
module.exports = require_as_filter_field.as_filter_field_default;
|
package/dist/as-filter-field.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
1
|
+
import { t as as_filter_field_default } from "./as-filter-field-9mG-alNU.mjs";
|
|
2
2
|
export { as_filter_field_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
const require_use_table_component = require("./use-table-component-D-1kzctZ.cjs");
|
|
3
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
3
|
+
const require_as_filter_field = require("./as-filter-field-BHPZtUwd.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/as-filters.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useTableContext } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
3
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
3
|
+
import { t as as_filter_field_default } from "./as-filter-field-9mG-alNU.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, unref } from "vue";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/as-filters.vue
|
package/dist/as-filters.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filters = require("./as-filters-
|
|
1
|
+
const require_as_filters = require("./as-filters-7oIkmDHI.cjs");
|
|
2
2
|
module.exports = require_as_filters.as_filters_default;
|
package/dist/as-filters.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filters_default } from "./as-filters-
|
|
1
|
+
import { t as as_filters_default } from "./as-filters-BSQ3nugx.mjs";
|
|
2
2
|
export { as_filters_default as default };
|
|
@@ -2,7 +2,7 @@ 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
|
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
4
4
|
const require_use_table_column_handlers = require("./use-table-column-handlers-ehreEzcx.cjs");
|
|
5
|
-
const require_as_table_base = require("./as-table-base-
|
|
5
|
+
const require_as_table_base = require("./as-table-base-DImVUSKt.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
8
8
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -2,7 +2,7 @@ import { _ as ROW_ACTIONS_TYPE, a as useTableContext, g as ROW_ACTIONS_PATH, i a
|
|
|
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 useTableColumnHandlers } from "./use-table-column-handlers-CpiiIniD.mjs";
|
|
5
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-D4Otzbe4.mjs";
|
|
6
6
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
7
7
|
import { rowsToPks } from "@atscript/ui-table";
|
|
8
8
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-DW-zOVP0.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-CTC9xl5i.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "
|
|
21
|
+
level: "rows" | "table" | "row";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_3: {
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "
|
|
21
|
+
level: "rows" | "table" | "row";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_3: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
3
|
-
import { a as useCellComponents, 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-
|
|
3
|
+
import { a as useCellComponents, 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-CxkiQ_EE.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { DEFAULT_ROW_HEIGHT_PX, filledFilterCount } from "@atscript/ui-table";
|
|
6
6
|
import { useParentElement, useResizeObserver } from "@vueuse/core";
|
|
@@ -434,6 +434,23 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
434
434
|
if (!isStandalone.value || !ctx) return false;
|
|
435
435
|
return ctx.state.activeIndex.value === index;
|
|
436
436
|
}
|
|
437
|
+
const columnPathKeys = computed(() => props.columns.map((col) => col.path.split(".")));
|
|
438
|
+
function rowTextValue(row) {
|
|
439
|
+
let text = "";
|
|
440
|
+
for (const keys of columnPathKeys.value) {
|
|
441
|
+
let value = row;
|
|
442
|
+
for (const key of keys) {
|
|
443
|
+
if (value === null || value === void 0 || typeof value !== "object") {
|
|
444
|
+
value = void 0;
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
value = value[key];
|
|
448
|
+
}
|
|
449
|
+
if (value === null || value === void 0) continue;
|
|
450
|
+
text = text ? `${text} ${String(value)}` : String(value);
|
|
451
|
+
}
|
|
452
|
+
return text;
|
|
453
|
+
}
|
|
437
454
|
return (_ctx, _cache) => {
|
|
438
455
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n Always render the table + header so filter/sort/hide menus stay reachable\n even when rows are empty or the last query errored. The empty/error block\n renders AFTER </table> (but inside the scroll container) so its width is\n bound to the container, not the table's intrinsic fit-content width.\n "), createElementVNode("div", {
|
|
439
456
|
ref_key: "scrollContainerRef",
|
|
@@ -515,6 +532,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
515
532
|
default: withCtx(({ item, index, spaceBefore }) => [(openBlock(), createBlock(resolveDynamicComponent(isCombobox.value ? unref(ComboboxItem) : unref(ListboxItem)), {
|
|
516
533
|
as: "tr",
|
|
517
534
|
value: __props.rowValueFn ? __props.rowValueFn(item) : void 0,
|
|
535
|
+
"text-value": isCombobox.value ? rowTextValue(item) : void 0,
|
|
518
536
|
style: normalizeStyle({
|
|
519
537
|
height: __props.virtualRowHeight ? `${__props.virtualRowHeight}px` : void 0,
|
|
520
538
|
transform: spaceBefore ? `translateY(${spaceBefore}px)` : void 0
|
|
@@ -558,6 +576,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
558
576
|
_: 2
|
|
559
577
|
}, 1064, [
|
|
560
578
|
"value",
|
|
579
|
+
"text-value",
|
|
561
580
|
"style",
|
|
562
581
|
"onClick",
|
|
563
582
|
"onDblclick"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
3
|
-
const require_as_table_status = require("./as-table-status-
|
|
3
|
+
const require_as_table_status = require("./as-table-status-C3A1WYwb.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
6
6
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -434,6 +434,23 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
434
434
|
if (!isStandalone.value || !ctx) return false;
|
|
435
435
|
return ctx.state.activeIndex.value === index;
|
|
436
436
|
}
|
|
437
|
+
const columnPathKeys = (0, vue.computed)(() => props.columns.map((col) => col.path.split(".")));
|
|
438
|
+
function rowTextValue(row) {
|
|
439
|
+
let text = "";
|
|
440
|
+
for (const keys of columnPathKeys.value) {
|
|
441
|
+
let value = row;
|
|
442
|
+
for (const key of keys) {
|
|
443
|
+
if (value === null || value === void 0 || typeof value !== "object") {
|
|
444
|
+
value = void 0;
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
value = value[key];
|
|
448
|
+
}
|
|
449
|
+
if (value === null || value === void 0) continue;
|
|
450
|
+
text = text ? `${text} ${String(value)}` : String(value);
|
|
451
|
+
}
|
|
452
|
+
return text;
|
|
453
|
+
}
|
|
437
454
|
return (_ctx, _cache) => {
|
|
438
455
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createCommentVNode)("\n Always render the table + header so filter/sort/hide menus stay reachable\n even when rows are empty or the last query errored. The empty/error block\n renders AFTER </table> (but inside the scroll container) so its width is\n bound to the container, not the table's intrinsic fit-content width.\n "), (0, vue.createElementVNode)("div", {
|
|
439
456
|
ref_key: "scrollContainerRef",
|
|
@@ -515,6 +532,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
515
532
|
default: (0, vue.withCtx)(({ item, index, spaceBefore }) => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(isCombobox.value ? (0, vue.unref)(reka_ui.ComboboxItem) : (0, vue.unref)(reka_ui.ListboxItem)), {
|
|
516
533
|
as: "tr",
|
|
517
534
|
value: __props.rowValueFn ? __props.rowValueFn(item) : void 0,
|
|
535
|
+
"text-value": isCombobox.value ? rowTextValue(item) : void 0,
|
|
518
536
|
style: (0, vue.normalizeStyle)({
|
|
519
537
|
height: __props.virtualRowHeight ? `${__props.virtualRowHeight}px` : void 0,
|
|
520
538
|
transform: spaceBefore ? `translateY(${spaceBefore}px)` : void 0
|
|
@@ -558,6 +576,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
558
576
|
_: 2
|
|
559
577
|
}, 1064, [
|
|
560
578
|
"value",
|
|
579
|
+
"text-value",
|
|
561
580
|
"style",
|
|
562
581
|
"onClick",
|
|
563
582
|
"onDblclick"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
2
|
-
import { t as formatCellValue } from "./format-cell-
|
|
2
|
+
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
3
3
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
2
|
-
const require_format_cell = require("./format-cell-
|
|
2
|
+
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
1
|
+
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.cjs");
|
|
2
2
|
module.exports = require_as_table_cell_value.as_table_cell_value_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-CPcFxSOj.mjs";
|
|
2
2
|
export { as_table_cell_value_default as default };
|
package/dist/as-table-root.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-DFCZwH1h.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table-root.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-C5IrebWr.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -2255,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2255
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2257
|
} & {
|
|
2258
|
-
action: (
|
|
2259
|
-
|
|
2258
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2259
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2260
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2261
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2262
2262
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2263
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2264
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2265
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2266
2266
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2267
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
|
|
2268
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2269
|
}>, {
|
|
2270
2270
|
queryOnMount: boolean;
|
|
2271
2271
|
selectionPersistence: SelectionPersistence;
|
|
@@ -2255,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2255
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2257
|
} & {
|
|
2258
|
-
action: (
|
|
2259
|
-
|
|
2258
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2259
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2260
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2261
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2262
2262
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2263
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2264
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2265
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2266
2266
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2267
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
|
|
2268
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2269
|
}>, {
|
|
2270
2270
|
queryOnMount: boolean;
|
|
2271
2271
|
selectionPersistence: SelectionPersistence;
|
|
@@ -2,7 +2,7 @@ const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
|
2
2
|
const require_use_table_component = require("./use-table-component-D-1kzctZ.cjs");
|
|
3
3
|
const require_as_table_header_cell = require("./as-table-header-cell-BEwpWr4m.cjs");
|
|
4
4
|
const require_as_row_actions = require("./as-row-actions-BoOAXAeW.cjs");
|
|
5
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
5
|
+
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.cjs");
|
|
6
6
|
let _atscript_ui = require("@atscript/ui");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
//#region src/composables/use-cell-resolver.ts
|
|
@@ -2,7 +2,7 @@ import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.mjs";
|
|
|
2
2
|
import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
3
3
|
import { t as as_table_header_cell_default } from "./as-table-header-cell-mCOAZsjL.mjs";
|
|
4
4
|
import { t as as_row_actions_default } from "./as-row-actions-DIpn-EYD.mjs";
|
|
5
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
5
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-CPcFxSOj.mjs";
|
|
6
6
|
import { UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_STYLES, UI_TABLE_STYLES, getFieldMeta, parseStaticAttrs, resolveAttrs, resolveFieldProp } from "@atscript/ui";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withModifiers } from "vue";
|
|
8
8
|
//#region src/composables/use-cell-resolver.ts
|
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-C3Li7WTI.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-COtIbUsp.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-CAydq1n0.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-QkKHAIh6.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -60,23 +60,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
60
60
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
63
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
64
63
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
64
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
67
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
68
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
|
-
|
|
71
|
+
stickyHeader: boolean;
|
|
72
|
+
virtualOverscan: number;
|
|
72
73
|
reorderable: boolean;
|
|
73
74
|
resizable: boolean;
|
|
74
75
|
columnMinWidth: number;
|
|
76
|
+
select: SelectionMode;
|
|
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;
|
|
@@ -60,23 +60,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
60
60
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
63
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
64
63
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
64
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
67
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
68
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
|
-
|
|
71
|
+
stickyHeader: boolean;
|
|
72
|
+
virtualOverscan: number;
|
|
72
73
|
reorderable: boolean;
|
|
73
74
|
resizable: boolean;
|
|
74
75
|
columnMinWidth: number;
|
|
76
|
+
select: SelectionMode;
|
|
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;
|
|
@@ -2,7 +2,7 @@ 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
|
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-C3A1WYwb.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");
|
|
@@ -313,6 +313,7 @@ var as_window_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
313
313
|
state.navMode.value = prevNavMode;
|
|
314
314
|
});
|
|
315
315
|
function onWheel(event) {
|
|
316
|
+
if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) return;
|
|
316
317
|
event.preventDefault();
|
|
317
318
|
const delta = Math.sign(event.deltaY) * props.wheelRowsPerTick;
|
|
318
319
|
scheduleTopIndex(clamp((pendingTopIndex ?? state.topIndex.value) + delta));
|
|
@@ -2,7 +2,7 @@ import { a as useTableContext, i as useRegisterMainActionListener } from "./use-
|
|
|
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-CxkiQ_EE.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";
|
|
@@ -313,6 +313,7 @@ var as_window_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
313
313
|
state.navMode.value = prevNavMode;
|
|
314
314
|
});
|
|
315
315
|
function onWheel(event) {
|
|
316
|
+
if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) return;
|
|
316
317
|
event.preventDefault();
|
|
317
318
|
const delta = Math.sign(event.deltaY) * props.wheelRowsPerTick;
|
|
318
319
|
scheduleTopIndex(clamp((pendingTopIndex ?? state.topIndex.value) + delta));
|
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-BBtgpJ1h.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-iLK4PSW_.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-BycvdZ82.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-DONQh4nM.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -64,24 +64,24 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
64
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
65
65
|
};
|
|
66
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
-
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
68
67
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
69
68
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
69
|
+
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
70
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
71
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
73
72
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
73
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
-
select: SelectionMode;
|
|
78
|
-
rowHeight: number;
|
|
79
|
-
wheelRowsPerTick: number;
|
|
80
77
|
reorderable: boolean;
|
|
81
78
|
resizable: boolean;
|
|
82
79
|
columnMinWidth: number;
|
|
80
|
+
select: SelectionMode;
|
|
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;
|
|
@@ -64,24 +64,24 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
64
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
65
65
|
};
|
|
66
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
-
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
68
67
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
69
68
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
69
|
+
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
70
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
71
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
73
72
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
73
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
-
select: SelectionMode;
|
|
78
|
-
rowHeight: number;
|
|
79
|
-
wheelRowsPerTick: number;
|
|
80
77
|
reorderable: boolean;
|
|
81
78
|
resizable: boolean;
|
|
82
79
|
columnMinWidth: number;
|
|
80
|
+
select: SelectionMode;
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { str } from "@atscript/ui";
|
|
2
2
|
//#region src/utils/format-cell.ts
|
|
3
|
-
const numberFmt = new Intl.NumberFormat();
|
|
3
|
+
const numberFmt = new Intl.NumberFormat(void 0, { useGrouping: false });
|
|
4
4
|
const dateFmt = new Intl.DateTimeFormat();
|
|
5
5
|
/** Format a cell value based on column type. */
|
|
6
6
|
function formatCellValue(value, type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let _atscript_ui = require("@atscript/ui");
|
|
2
2
|
//#region src/utils/format-cell.ts
|
|
3
|
-
const numberFmt = new Intl.NumberFormat();
|
|
3
|
+
const numberFmt = new Intl.NumberFormat(void 0, { useGrouping: false });
|
|
4
4
|
const dateFmt = new Intl.DateTimeFormat();
|
|
5
5
|
/** Format a cell value based on column type. */
|
|
6
6
|
function formatCellValue(value, type) {
|
package/dist/index.cjs
CHANGED
|
@@ -10,22 +10,22 @@ const require_as_cell_date = require("./as-cell-date-DyixWKuS.cjs");
|
|
|
10
10
|
const require_use_cell_locale = require("./use-cell-locale-BGBRQB7s.cjs");
|
|
11
11
|
const require_as_cell_json = require("./as-cell-json-Bvv2P7YV.cjs");
|
|
12
12
|
const require_as_cell_number = require("./as-cell-number-DuPMOesI.cjs");
|
|
13
|
-
const require_format_cell = require("./format-cell-
|
|
14
|
-
const require_as_cell_union = require("./as-cell-union-
|
|
13
|
+
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
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
16
|
const require_as_config_dialog = require("./as-config-dialog-DKYI4uQ0.cjs");
|
|
17
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-
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-PBy9IDBz.cjs");
|
|
20
20
|
const require_as_table_header_cell = require("./as-table-header-cell-BEwpWr4m.cjs");
|
|
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-
|
|
21
|
+
const require_as_window_table = require("./as-window-table-BBtgpJ1h.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-BHPZtUwd.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-7oIkmDHI.cjs");
|
|
24
24
|
const require_as_preset_dialog = require("./as-preset-dialog-BXO1O1q0.cjs");
|
|
25
25
|
const require_as_row_actions = require("./as-row-actions-BoOAXAeW.cjs");
|
|
26
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
26
|
+
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.cjs");
|
|
27
27
|
const require_as_table_root = require("./as-table-root-BNJ1yqaD.cjs");
|
|
28
|
-
const require_as_table = require("./as-table-
|
|
28
|
+
const require_as_table = require("./as-table-C3Li7WTI.cjs");
|
|
29
29
|
const require_as_table_actions = require("./as-table-actions-Cd7KoTEK.cjs");
|
|
30
30
|
const require_as_preset_picker = require("./as-preset-picker-BBkjl0fs.cjs");
|
|
31
31
|
let _atscript_ui = require("@atscript/ui");
|
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-CDJmLD-E.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-DW-zOVP0.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-DFCZwH1h.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-COtIbUsp.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-iLK4PSW_.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-BMvxn9iU.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-CTC9xl5i.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-C5IrebWr.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-CAydq1n0.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-BycvdZ82.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
|
@@ -9,22 +9,22 @@ import { t as as_cell_date_default } from "./as-cell-date-BwFgi6O0.mjs";
|
|
|
9
9
|
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-MQXoONh5.mjs";
|
|
10
10
|
import { t as as_cell_json_default } from "./as-cell-json--95Xq6yq.mjs";
|
|
11
11
|
import { t as as_cell_number_default } from "./as-cell-number-DKRaS9pM.mjs";
|
|
12
|
-
import { t as formatCellValue } from "./format-cell-
|
|
13
|
-
import { t as as_cell_union_default } from "./as-cell-union-
|
|
12
|
+
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
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
15
|
import { t as as_config_dialog_default } from "./as-config-dialog-DAqSy8zx.mjs";
|
|
16
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-
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-BIj0ABzy.mjs";
|
|
19
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-
|
|
21
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
22
|
-
import { t as as_filters_default } from "./as-filters-
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-DONQh4nM.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-9mG-alNU.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-BSQ3nugx.mjs";
|
|
23
23
|
import { t as as_preset_dialog_default } from "./as-preset-dialog-CuWw5fuN.mjs";
|
|
24
24
|
import { t as as_row_actions_default } from "./as-row-actions-DIpn-EYD.mjs";
|
|
25
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
25
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-CPcFxSOj.mjs";
|
|
26
26
|
import { t as as_table_root_default } from "./as-table-root-BQNXfIvB.mjs";
|
|
27
|
-
import { t as as_table_default } from "./as-table-
|
|
27
|
+
import { t as as_table_default } from "./as-table-QkKHAIh6.mjs";
|
|
28
28
|
import { t as as_table_actions_default } from "./as-table-actions-DQ3xaFXJ.mjs";
|
|
29
29
|
import { t as as_preset_picker_default } from "./as-preset-picker-CyBbOnBS.mjs";
|
|
30
30
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.110",
|
|
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/ui-table": "^0.1.
|
|
167
|
-
"@atscript/vue-form": "^0.1.
|
|
165
|
+
"@atscript/ui": "^0.1.110",
|
|
166
|
+
"@atscript/ui-table": "^0.1.110",
|
|
167
|
+
"@atscript/vue-form": "^0.1.110"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
170
|
"@atscript/db-client": "^0.1.110",
|