@atscript/vue-table 0.1.137 → 0.1.138
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-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-DIuEvru6.d.mts → as-column-menu.vue-CgvDp7JK.d.cts} +2 -2
- package/dist/{as-column-menu.vue-olu6BNEU.d.cts → as-column-menu.vue-SRkxrvo_.d.mts} +2 -2
- package/dist/{as-filter-dialog-DoynFox2.cjs → as-filter-dialog-CW8-zoag.cjs} +2 -2
- package/dist/{as-filter-dialog-DAvtsH3d.mjs → as-filter-dialog-Dis7tkN_.mjs} +2 -2
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-DB5WFT4l.mjs → as-filter-field-BKoxTudl.mjs} +1 -1
- package/dist/{as-filter-field-CBMDjApB.cjs → as-filter-field-bVIXoH3j.cjs} +1 -1
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-DfBH5YH9.mjs → as-filters-CxVy00LQ.mjs} +1 -1
- package/dist/{as-filters-CiPv-dKs.cjs → as-filters-Dx8WkGiA.cjs} +1 -1
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/as-row-actions.d.cts +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/{as-row-actions.vue-Cac2kfwO.d.cts → as-row-actions.vue-BCgHsU18.d.mts} +1 -1
- package/dist/{as-row-actions.vue-DZrASzp7.d.mts → as-row-actions.vue-C49h8PpE.d.cts} +1 -1
- package/dist/{as-table-DtfWLLlb.mjs → as-table-BAoJ60tx.mjs} +8 -34
- package/dist/{as-table-BNfZcSra.cjs → as-table-QoXP-NZr.cjs} +7 -33
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/{as-table-actions.vue-66cjnFZI.d.mts → as-table-actions.vue-BTGQnFH_.d.mts} +2 -2
- package/dist/{as-table-actions.vue-B7ttOxKU.d.cts → as-table-actions.vue-oxyikRAt.d.cts} +2 -2
- package/dist/{as-table-base-D7mO_Zmv.mjs → as-table-base-DA5T7x_K.mjs} +1 -1
- package/dist/{as-table-base-CdtyDOra.cjs → as-table-base-wPJuru7P.cjs} +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/{as-table-header-cell.vue-DhCxDIn1.d.mts → as-table-header-cell.vue-BjgxfKhi.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-DmncmpeQ.d.cts → as-table-header-cell.vue-zGeuzm3w.d.mts} +2 -2
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/{as-table-root.vue-zWOmt_ug.d.mts → as-table-root.vue-DnOHVQtA.d.mts} +3 -3
- package/dist/{as-table-root.vue-BllmTRXj.d.cts → as-table-root.vue-Dze91qga.d.cts} +3 -3
- 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-Bzp4UOqz.d.cts → as-table.vue-BSKifGzD.d.cts} +4 -4
- package/dist/{as-table.vue-Cd1Hc5v9.d.mts → as-table.vue-emq84QmP.d.mts} +4 -4
- package/dist/{as-window-table-D5grrLFG.mjs → as-window-table-ByTXS8yA.mjs} +29 -12
- package/dist/{as-window-table-OB4B1knU.cjs → as-window-table-DS30wumm.cjs} +29 -12
- 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-CcDoghqs.d.mts → as-window-table.vue-DJNJ-6dd.d.cts} +15 -2
- package/dist/{as-window-table.vue-Db--CSWD.d.cts → as-window-table.vue-DUJgZDXy.d.mts} +15 -2
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +5 -5
- package/dist/{types-n40LWFm_.d.cts → types-CsgAGRfG.d.mts} +8 -3
- package/dist/{types-CuOHiH-S.d.mts → types-DvWLY5zQ.d.cts} +8 -3
- package/dist/use-table-column-handlers-DGn4ZW9j.mjs +85 -0
- package/dist/use-table-column-handlers-r47WDxEh.cjs +96 -0
- package/package.json +4 -4
- package/dist/use-table-column-handlers-BMrP0WY2.cjs +0 -45
- package/dist/use-table-column-handlers-Bx3JERqs.mjs +0 -40
- /package/dist/{as-table-status-CbKmSKAy.cjs → as-table-status-B2O3hLGg.cjs} +0 -0
- /package/dist/{as-table-status-D9YuoBOm.mjs → as-table-status-aebsG7bR.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-CgvDp7JK.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-SRkxrvo_.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-DvWLY5zQ.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-column-menu.vue.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-CsgAGRfG.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-column-menu.vue.d.ts
|
|
@@ -5,8 +5,8 @@ const require_use_table_component = require("./use-table-component-DIWiP_Vs.cjs"
|
|
|
5
5
|
const require_as_config_dialog = require("./as-config-dialog-BrVhIV_e.cjs");
|
|
6
6
|
const require_use_seed_on_open = require("./use-seed-on-open-9TSm1Vbv.cjs");
|
|
7
7
|
const require_as_filter_input = require("./as-filter-input-DUqpkTkg.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-DS30wumm.cjs");
|
|
9
|
+
const require_as_filters = require("./as-filters-Dx8WkGiA.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");
|
|
@@ -5,8 +5,8 @@ import { t as useTableComponent } from "./use-table-component-VUFlxIk-.mjs";
|
|
|
5
5
|
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-DHdpmRo9.mjs";
|
|
6
6
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DSh4XFyp.mjs";
|
|
7
7
|
import { t as as_filter_input_default } from "./as-filter-input-C8KmOus8.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-ByTXS8yA.mjs";
|
|
9
|
+
import { t as as_filters_default } from "./as-filters-CxVy00LQ.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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
1
|
+
const require_as_filter_dialog = require("./as-filter-dialog-CW8-zoag.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-Dis7tkN_.mjs";
|
|
2
2
|
export { as_filter_dialog_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useTableContext } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { r as useTable } from "./use-table-DRN4nlZs.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-DA5T7x_K.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
2
2
|
const require_use_table = require("./use-table-JU7BAX4e.cjs");
|
|
3
|
-
const require_as_table_base = require("./as-table-base-
|
|
3
|
+
const require_as_table_base = require("./as-table-base-wPJuru7P.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");
|
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-bVIXoH3j.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-BKoxTudl.mjs";
|
|
2
2
|
export { as_filter_field_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useTableContext } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { t as useTableComponent } from "./use-table-component-VUFlxIk-.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-BKoxTudl.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
5
5
|
import { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from "reka-ui";
|
|
6
6
|
//#region src/components/as-filters.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
2
2
|
const require_use_table_component = require("./use-table-component-DIWiP_Vs.cjs");
|
|
3
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
3
|
+
const require_as_filter_field = require("./as-filter-field-bVIXoH3j.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let reka_ui = require("reka-ui");
|
|
6
6
|
//#region src/components/as-filters.vue?vue&type=script&setup=true&lang.ts
|
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-Dx8WkGiA.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-CxVy00LQ.mjs";
|
|
2
2
|
export { as_filters_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-C49h8PpE.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-BCgHsU18.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { t as useSelectModeReset } from "./use-table-selection-ULbKT2xW.mjs";
|
|
3
3
|
import { t as useHasEmitListener } from "./use-has-emit-listener-DrBbsLHQ.mjs";
|
|
4
|
-
import { t as useTableColumnHandlers } from "./use-table-column-handlers-
|
|
5
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
4
|
+
import { n as useRowActionsColumn, t as useTableColumnHandlers } from "./use-table-column-handlers-DGn4ZW9j.mjs";
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-DA5T7x_K.mjs";
|
|
6
6
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -105,37 +105,11 @@ var as_table_default = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
state.rowSelectable.value = val;
|
|
106
106
|
}, { immediate: true });
|
|
107
107
|
useSelectModeReset(state, () => props.select);
|
|
108
|
-
watch(() => {
|
|
109
|
-
const placement = props.rowActionsColumn;
|
|
110
|
-
if (!placement) return false;
|
|
111
|
-
if (placement === "merge-select" && props.select !== "none") return false;
|
|
112
|
-
return state.actions.cellRow.length > 0;
|
|
113
|
-
}, (on) => {
|
|
114
|
-
state.includeActions.value = on;
|
|
115
|
-
}, { immediate: true });
|
|
116
108
|
const effectiveRows = computed(() => state.applyLocalSort(props.rows ?? state.results.value));
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
label: "",
|
|
122
|
-
type: ROW_ACTIONS_TYPE,
|
|
123
|
-
sortable: false,
|
|
124
|
-
filterable: false,
|
|
125
|
-
order: 0,
|
|
126
|
-
fixed: true,
|
|
127
|
-
width: acts.length === 1 && !acts[0]?.icon ? "8em" : "4em"
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
const effectiveColumns = computed(() => {
|
|
131
|
-
const base = props.columns ?? state.columns.value;
|
|
132
|
-
const placement = props.rowActionsColumn;
|
|
133
|
-
if (placement === false || placement === void 0) return base;
|
|
134
|
-
if (state.actions.row.length === 0) return base;
|
|
135
|
-
if (placement === "first") return [actionsCol.value, ...base];
|
|
136
|
-
if (placement === "last") return [...base, actionsCol.value];
|
|
137
|
-
if (props.select === "none") return [actionsCol.value, ...base];
|
|
138
|
-
return base;
|
|
109
|
+
const effectiveColumns = useRowActionsColumn(state, {
|
|
110
|
+
placement: () => props.rowActionsColumn,
|
|
111
|
+
select: () => props.select,
|
|
112
|
+
columns: () => props.columns ?? state.columns.value
|
|
139
113
|
});
|
|
140
114
|
useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), useHasEmitListener("onMainAction"));
|
|
141
115
|
const { onSort, onHide, onFilter, onFiltersOff, onResetWidth, onReorder, onClearFilters } = useTableColumnHandlers(state);
|
|
@@ -148,7 +122,7 @@ var as_table_default = /* @__PURE__ */ defineComponent({
|
|
|
148
122
|
return (_ctx, _cache) => {
|
|
149
123
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(as_table_base_default, {
|
|
150
124
|
"render-mode": "standalone",
|
|
151
|
-
columns: effectiveColumns
|
|
125
|
+
columns: unref(effectiveColumns),
|
|
152
126
|
rows: effectiveRows.value,
|
|
153
127
|
sorters: unref(state).sorters.value,
|
|
154
128
|
"selected-rows": unref(state).selectedRows.value,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
3
3
|
const require_use_has_emit_listener = require("./use-has-emit-listener-BaGFZDyM.cjs");
|
|
4
|
-
const require_use_table_column_handlers = require("./use-table-column-handlers-
|
|
5
|
-
const require_as_table_base = require("./as-table-base-
|
|
4
|
+
const require_use_table_column_handlers = require("./use-table-column-handlers-r47WDxEh.cjs");
|
|
5
|
+
const require_as_table_base = require("./as-table-base-wPJuru7P.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -105,37 +105,11 @@ var as_table_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
105
105
|
state.rowSelectable.value = val;
|
|
106
106
|
}, { immediate: true });
|
|
107
107
|
require_use_table_selection.useSelectModeReset(state, () => props.select);
|
|
108
|
-
(0, vue.watch)(() => {
|
|
109
|
-
const placement = props.rowActionsColumn;
|
|
110
|
-
if (!placement) return false;
|
|
111
|
-
if (placement === "merge-select" && props.select !== "none") return false;
|
|
112
|
-
return state.actions.cellRow.length > 0;
|
|
113
|
-
}, (on) => {
|
|
114
|
-
state.includeActions.value = on;
|
|
115
|
-
}, { immediate: true });
|
|
116
108
|
const effectiveRows = (0, vue.computed)(() => state.applyLocalSort(props.rows ?? state.results.value));
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
label: "",
|
|
122
|
-
type: require_use_table_state.ROW_ACTIONS_TYPE,
|
|
123
|
-
sortable: false,
|
|
124
|
-
filterable: false,
|
|
125
|
-
order: 0,
|
|
126
|
-
fixed: true,
|
|
127
|
-
width: acts.length === 1 && !acts[0]?.icon ? "8em" : "4em"
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
const effectiveColumns = (0, vue.computed)(() => {
|
|
131
|
-
const base = props.columns ?? state.columns.value;
|
|
132
|
-
const placement = props.rowActionsColumn;
|
|
133
|
-
if (placement === false || placement === void 0) return base;
|
|
134
|
-
if (state.actions.row.length === 0) return base;
|
|
135
|
-
if (placement === "first") return [actionsCol.value, ...base];
|
|
136
|
-
if (placement === "last") return [...base, actionsCol.value];
|
|
137
|
-
if (props.select === "none") return [actionsCol.value, ...base];
|
|
138
|
-
return base;
|
|
109
|
+
const effectiveColumns = require_use_table_column_handlers.useRowActionsColumn(state, {
|
|
110
|
+
placement: () => props.rowActionsColumn,
|
|
111
|
+
select: () => props.select,
|
|
112
|
+
columns: () => props.columns ?? state.columns.value
|
|
139
113
|
});
|
|
140
114
|
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), require_use_has_emit_listener.useHasEmitListener("onMainAction"));
|
|
141
115
|
const { onSort, onHide, onFilter, onFiltersOff, onResetWidth, onReorder, onClearFilters } = require_use_table_column_handlers.useTableColumnHandlers(state);
|
|
@@ -148,7 +122,7 @@ var as_table_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
148
122
|
return (_ctx, _cache) => {
|
|
149
123
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [(0, vue.createVNode)(require_as_table_base.as_table_base_default, {
|
|
150
124
|
"render-mode": "standalone",
|
|
151
|
-
columns: effectiveColumns
|
|
125
|
+
columns: (0, vue.unref)(effectiveColumns),
|
|
152
126
|
rows: effectiveRows.value,
|
|
153
127
|
sorters: (0, vue.unref)(state).sorters.value,
|
|
154
128
|
"selected-rows": (0, vue.unref)(state).selectedRows.value,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-oxyikRAt.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-BTGQnFH_.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as TVueTableActionInfo } from "./types-CsgAGRfG.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "row" | "
|
|
21
|
+
level: "row" | "table" | "rows";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as TVueTableActionInfo } from "./types-DvWLY5zQ.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "row" | "
|
|
21
|
+
level: "row" | "table" | "rows";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as useTableContextOptional, p as onSelectControlKeydown } from "./use-table-state-CqU1N4Q9.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.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-aebsG7bR.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-CoVe_8NI.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
-
const require_as_table_status = require("./as-table-status-
|
|
3
|
+
const require_as_table_status = require("./as-table-status-B2O3hLGg.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");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-BjgxfKhi.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-zGeuzm3w.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/{as-table-header-cell.vue-DhCxDIn1.d.mts → as-table-header-cell.vue-BjgxfKhi.d.cts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-DvWLY5zQ.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-table-header-cell.vue.d.ts
|
package/dist/{as-table-header-cell.vue-DmncmpeQ.d.cts → as-table-header-cell.vue-zGeuzm3w.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-CsgAGRfG.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-table-header-cell.vue.d.ts
|
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-Dze91qga.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-DnOHVQtA.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-CsgAGRfG.mjs";
|
|
2
2
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
3
3
|
import { ClientFactory, ClientFactory as ClientFactory$1, ColumnDef, SortControl, TableDef, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
4
4
|
import * as vue from "vue";
|
|
@@ -2525,9 +2525,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2525
2525
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2526
2526
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2527
2527
|
} & {
|
|
2528
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2529
2528
|
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2529
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2530
2530
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2531
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2531
2532
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2532
2533
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2533
2534
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
@@ -2536,7 +2537,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2536
2537
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2537
2538
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2538
2539
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2539
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2540
2540
|
}>, {
|
|
2541
2541
|
localSort: boolean;
|
|
2542
2542
|
queryOnMount: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-DvWLY5zQ.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { AllowedComponentProps, AnchorHTMLAttributes, App, Component as Component$1, ComponentCustomProps, ComponentPublicInstance, ComputedRef, DefineComponent, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, UnwrapRef, VNode, VNodeProps, WritableComputedRef } from "vue";
|
|
4
4
|
import { Client, PageResult } from "@atscript/db-client";
|
|
@@ -2525,9 +2525,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2525
2525
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2526
2526
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2527
2527
|
} & {
|
|
2528
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2529
2528
|
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2529
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2530
2530
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2531
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2531
2532
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2532
2533
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2533
2534
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
@@ -2536,7 +2537,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2536
2537
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2537
2538
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2538
2539
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2539
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2540
2540
|
}>, {
|
|
2541
2541
|
localSort: boolean;
|
|
2542
2542
|
queryOnMount: boolean;
|
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-QoXP-NZr.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-BSKifGzD.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-emq84QmP.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-BAoJ60tx.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as RowClassHook, b as RowSelectableHook, g as RowAttrsHook, m as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowDeleteOpt } from "./types-DvWLY5zQ.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
@@ -46,7 +46,7 @@ type __VLS_Props = {
|
|
|
46
46
|
* Wrapper-only prop — not forwarded by `<AsTableRoot>`. Raw consumers
|
|
47
47
|
* compose their own column layout.
|
|
48
48
|
*/
|
|
49
|
-
rowActionsColumn?:
|
|
49
|
+
rowActionsColumn?: RowActionsColumnPlacement | false;
|
|
50
50
|
/**
|
|
51
51
|
* Render without a header row. Omits `<thead>` entirely (not
|
|
52
52
|
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
@@ -92,14 +92,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
92
92
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
93
93
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
+
select: SelectionMode;
|
|
95
96
|
stickyHeader: boolean;
|
|
96
97
|
virtualOverscan: number;
|
|
97
98
|
reorderable: boolean;
|
|
98
99
|
resizable: boolean;
|
|
99
100
|
columnMinWidth: number;
|
|
100
|
-
select: SelectionMode;
|
|
101
101
|
rowDelete: boolean | RowDeleteOpt;
|
|
102
|
-
rowActionsColumn:
|
|
102
|
+
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
103
103
|
headless: boolean;
|
|
104
104
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
105
105
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as RowClassHook, b as RowSelectableHook, g as RowAttrsHook, m as RowActionsColumnPlacement, r as ColumnMenuConfig, v as RowDeleteOpt } from "./types-CsgAGRfG.mjs";
|
|
2
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
@@ -46,7 +46,7 @@ type __VLS_Props = {
|
|
|
46
46
|
* Wrapper-only prop — not forwarded by `<AsTableRoot>`. Raw consumers
|
|
47
47
|
* compose their own column layout.
|
|
48
48
|
*/
|
|
49
|
-
rowActionsColumn?:
|
|
49
|
+
rowActionsColumn?: RowActionsColumnPlacement | false;
|
|
50
50
|
/**
|
|
51
51
|
* Render without a header row. Omits `<thead>` entirely (not
|
|
52
52
|
* `display:none`); column widths are carried by the `<colgroup>`, so data
|
|
@@ -92,14 +92,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
|
|
|
92
92
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
93
93
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
+
select: SelectionMode;
|
|
95
96
|
stickyHeader: boolean;
|
|
96
97
|
virtualOverscan: number;
|
|
97
98
|
reorderable: boolean;
|
|
98
99
|
resizable: boolean;
|
|
99
100
|
columnMinWidth: number;
|
|
100
|
-
select: SelectionMode;
|
|
101
101
|
rowDelete: boolean | RowDeleteOpt;
|
|
102
|
-
rowActionsColumn:
|
|
102
|
+
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
103
103
|
headless: boolean;
|
|
104
104
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
105
105
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|