@atscript/vue-table 0.1.96 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-cell-array-DOQKR6t5.mjs → as-cell-array-2qmJ1lT2.mjs} +2 -2
- package/dist/{as-cell-array-CXeZzZqt.cjs → as-cell-array-iPeUnk2G.cjs} +2 -2
- package/dist/as-cell-array.cjs +1 -1
- package/dist/as-cell-array.d.mts +1 -1
- package/dist/as-cell-array.mjs +1 -1
- package/dist/{as-cell-date-DPWBlhyM.mjs → as-cell-date-BwFgi6O0.mjs} +2 -2
- package/dist/{as-cell-date-D0rowX5E.cjs → as-cell-date-DyixWKuS.cjs} +2 -2
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.d.mts +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-cell-json-BynWIs1d.mjs → as-cell-json--95Xq6yq.mjs} +2 -2
- package/dist/{as-cell-json-DvHvQ6IL.cjs → as-cell-json-Bvv2P7YV.cjs} +2 -2
- package/dist/as-cell-json.cjs +1 -1
- package/dist/as-cell-json.d.mts +1 -1
- package/dist/as-cell-json.mjs +1 -1
- package/dist/{as-cell-number-Bc1C97Vg.mjs → as-cell-number-DKRaS9pM.mjs} +2 -2
- package/dist/{as-cell-number-0_WrSCzu.cjs → as-cell-number-DuPMOesI.cjs} +2 -2
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.d.mts +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-cell-union-CFAI0utz.cjs → as-cell-union-CT0rIvQq.cjs} +3 -3
- package/dist/{as-cell-union-C1w3B38J.mjs → as-cell-union-sAOSdepj.mjs} +3 -3
- package/dist/as-cell-union.cjs +1 -1
- package/dist/as-cell-union.d.mts +1 -1
- package/dist/as-cell-union.mjs +1 -1
- package/dist/as-column-menu.cjs +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/as-column-menu.mjs +1 -1
- package/dist/{as-column-menu.vue-C9e6wJ3z.d.mts → as-column-menu.vue-BtXVQywl.d.cts} +2 -2
- package/dist/{as-column-menu.vue-o0qFdzoL.d.cts → as-column-menu.vue-D3Z5BVLx.d.mts} +2 -2
- package/dist/{as-config-dialog-BB6BDa1E.mjs → as-config-dialog-COwDabdW.mjs} +15 -13
- package/dist/{as-config-dialog-BCvtSxi6.cjs → as-config-dialog-vOUtx5zq.cjs} +14 -12
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.d.mts +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.d.mts +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-O62-CnIQ.cjs → as-filter-dialog-BcPI27cn.cjs} +19 -70
- package/dist/{as-filter-dialog-KGyPqr2P.mjs → as-filter-dialog-DuFgEjqE.mjs} +20 -65
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.d.mts +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-jL7cnKUR.cjs → as-filter-field-B8idz2UD.cjs} +3 -473
- package/dist/{as-filter-field-CkiRXHVx.mjs → as-filter-field-Dsk1l3Et.mjs} +7 -441
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.d.mts +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.d.mts +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filters-BJM-NjUn.mjs → as-filters-BS7kWJfI.mjs} +5 -3
- package/dist/{as-filters-BFpZKtAU.cjs → as-filters-BzdQ4HUx.cjs} +4 -2
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.d.mts +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-1Xl8DIiN.cjs → as-preset-dialog-DOdrDDKy.cjs} +7 -8
- package/dist/{as-preset-dialog-DXbqMVI1.mjs → as-preset-dialog-DoEpCt2j.mjs} +7 -8
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.d.mts +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CkaaKzYB.cjs → as-preset-picker-2DkH7QfW.cjs} +1 -1
- package/dist/{as-preset-picker-DJTF47_V.mjs → as-preset-picker-ByUCQpnX.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.d.mts +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-C78cvaf3.cjs → as-row-actions-05pQX_om.cjs} +1 -1
- package/dist/{as-row-actions-CpEMa5NU.mjs → as-row-actions-D7YgGt0x.mjs} +1 -1
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-v42bV1ea.cjs → as-table-DyuL_hUo.cjs} +6 -5
- package/dist/{as-table-DDyvnBFL.mjs → as-table-H5uKWieH.mjs} +4 -3
- package/dist/{as-table-actions-DtCjMMCI.cjs → as-table-actions-CsdY2_BG.cjs} +1 -1
- package/dist/{as-table-actions-D2-MBvoy.mjs → as-table-actions-DCEGQiHi.mjs} +1 -1
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-BuqEk4zM.d.cts → as-table-actions.vue-33oeDXOg.d.cts} +2 -2
- package/dist/{as-table-actions.vue-q8hQPcZp.d.mts → as-table-actions.vue-DMf6-R5o.d.mts} +2 -2
- package/dist/{as-table-base-CSrtmIN2.mjs → as-table-base-DReD74pJ.mjs} +2 -2
- package/dist/{as-table-base-CHzULili.cjs → as-table-base-GEf95oXP.cjs} +2 -2
- package/dist/{as-table-cell-value-B1CiJYFn.mjs → as-table-cell-value-Byrb_Zyh.mjs} +2 -2
- package/dist/{as-table-cell-value-CuxRtFn9.cjs → as-table-cell-value-CcWR5oG4.cjs} +2 -2
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.d.mts +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-CBn_ioCe.mjs → as-table-header-cell-BUf8wvrw.mjs} +6 -4
- package/dist/{as-table-header-cell-C3zeZUZo.cjs → as-table-header-cell-DWONx2MI.cjs} +5 -3
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-Bc_DSsGY.d.cts → as-table-header-cell.vue-CzqTEpyk.d.cts} +1 -1
- package/dist/{as-table-header-cell.vue-DNMOHfek.d.mts → as-table-header-cell.vue-Dj_Tl7dZ.d.mts} +1 -1
- package/dist/{as-table-root-zJdmNnsC.cjs → as-table-root-Cg2zkxR5.cjs} +8 -20
- package/dist/{as-table-root-Bc23Z7we.mjs → as-table-root-DpQUTbQ8.mjs} +4 -16
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-DtjHgOVP.d.mts → as-table-root.vue-Boq6pDr1.d.mts} +15 -6
- package/dist/{as-table-root.vue-DL3BnZOe.d.cts → as-table-root.vue-CYmnf5SH.d.cts} +15 -6
- package/dist/{as-table-status-DKXFSCzE.cjs → as-table-status-DZP8dFpm.cjs} +17 -74
- package/dist/{as-table-status-B11orhFu.mjs → as-table-status-Dinns93w.mjs} +19 -64
- 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-CLBXcYRv.d.cts → as-table.vue-CE_7OC_h.d.mts} +5 -5
- package/dist/{as-table.vue-Co7gHZ8C.d.mts → as-table.vue-kFORh8Vg.d.cts} +5 -5
- package/dist/{as-window-table-CDTjX7W5.mjs → as-window-table-BwF2t4Zy.mjs} +5 -3
- package/dist/{as-window-table-DuwMCDUh.cjs → as-window-table-CCRJKpoE.cjs} +7 -5
- 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-CLXZuY3h.d.cts → as-window-table.vue-C60NtRtq.d.cts} +4 -4
- package/dist/{as-window-table.vue-BA2S6YQr.d.mts → as-window-table.vue-C88OoW5d.d.mts} +4 -4
- package/dist/index.cjs +46 -44
- package/dist/index.d.cts +19 -17
- package/dist/index.d.mts +23 -21
- package/dist/index.mjs +35 -35
- package/dist/{types-BvvXN72P.d.mts → types-BPFBxUS_.d.cts} +2 -4
- package/dist/{types-CNMmF6W2.d.cts → types-BWeFiZKk.d.mts} +2 -4
- package/dist/use-has-emit-listener-BTMDIv2e.mjs +14 -0
- package/dist/use-has-emit-listener-hhOH8CBI.cjs +19 -0
- package/dist/use-seed-on-open-DO3A1kIb.mjs +30 -0
- package/dist/use-seed-on-open-Dg9I89fU.cjs +35 -0
- package/dist/use-table-CLsp2mAu.cjs +475 -0
- package/dist/use-table-CRsFMyJb.mjs +440 -0
- package/dist/{use-table-column-handlers-CGYAY2xH.cjs → use-table-column-handlers-BgC4gUJV.cjs} +0 -19
- package/dist/{use-table-column-handlers-t6xi1yCE.mjs → use-table-column-handlers-cm0GxR2u.mjs} +1 -14
- package/dist/use-table-component-BbETnUuy.mjs +12 -0
- package/dist/use-table-component-CirEOQ_P.cjs +17 -0
- package/dist/use-table-nav-bridge-Bh1tpG0X.cjs +57 -0
- package/dist/use-table-nav-bridge-i8AjtjIt.mjs +52 -0
- package/dist/use-table-selection-C84z4OZy.mjs +59 -0
- package/dist/use-table-selection-Cmiu1h4S.cjs +70 -0
- package/package.json +10 -7
- /package/dist/{as-action-menu-content-CSPPMACR.cjs → as-action-menu-content-BChqFX3E.cjs} +0 -0
- /package/dist/{as-action-menu-content-DXWuttt_.mjs → as-action-menu-content-D2yf0zD2.mjs} +0 -0
- /package/dist/{as-cell-array.vue-DZGM2VHh.d.mts → as-cell-array.vue-D4vS7C_D.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-Zlt4mHWb.d.mts → as-cell-date.vue-Chs7WTZ9.d.mts} +0 -0
- /package/dist/{as-cell-json-popover-BWdNs1YU.cjs → as-cell-json-popover-BM2QLgfk.cjs} +0 -0
- /package/dist/{as-cell-json-popover-DUq25I0L.mjs → as-cell-json-popover-Dkdv5Y9E.mjs} +0 -0
- /package/dist/{as-cell-json.vue-CESWuCer.d.mts → as-cell-json.vue-C0_LDvQw.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-1Oq7nVI3.d.mts → as-cell-number.vue-BBF0OuU8.d.mts} +0 -0
- /package/dist/{as-cell-union.vue-NnDmQZOA.d.mts → as-cell-union.vue-CL-Lf-Rm.d.mts} +0 -0
- /package/dist/{as-column-menu-CH9Htz0Q.cjs → as-column-menu-fZVbJ9lU.cjs} +0 -0
- /package/dist/{as-column-menu-DCfhorMP.mjs → as-column-menu-kTIQfLTi.mjs} +0 -0
- /package/dist/{as-config-dialog.vue-C6Q62xF5.d.mts → as-config-dialog.vue-BvFZZRuY.d.mts} +0 -0
- /package/dist/{as-confirm-dialog-Xtw2wE1X.cjs → as-confirm-dialog-C6HAGzrj.cjs} +0 -0
- /package/dist/{as-confirm-dialog-DL0mCEeX.mjs → as-confirm-dialog-ClVKU1Dm.mjs} +0 -0
- /package/dist/{as-confirm-dialog.vue-pas8jGhv.d.mts → as-confirm-dialog.vue-Cz52-v6c.d.mts} +0 -0
- /package/dist/{as-filter-dialog.vue-RDZjp4gJ.d.mts → as-filter-dialog.vue-likNLqzF.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-QY8wi5S5.d.mts → as-filter-field.vue-BbXLhd6O.d.mts} +0 -0
- /package/dist/{as-filter-input-P1i0CW2-.mjs → as-filter-input-BM23TNeh.mjs} +0 -0
- /package/dist/{as-filter-input--nr72iwX.cjs → as-filter-input-DJu2k9gO.cjs} +0 -0
- /package/dist/{as-filter-input.vue-CBQ71eNg.d.mts → as-filter-input.vue-B9ma2l9j.d.mts} +0 -0
- /package/dist/{as-filters.vue-BsMgYUcX.d.mts → as-filters.vue-DmECMd1v.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-Bzv-ON9W.d.mts → as-preset-dialog.vue-BRjjfPty.d.mts} +0 -0
- /package/dist/{as-preset-picker.vue-CTBk6leV.d.mts → as-preset-picker.vue-BPjsiaVt.d.mts} +0 -0
- /package/dist/{as-row-actions.vue-BPaQfGev.d.mts → as-row-actions.vue-DUSDuoR2.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-BuPCQ8YA.d.mts → as-table-cell-value.vue-kfNgVhzn.d.mts} +0 -0
- /package/dist/{format-cell-B2xMDYO9.mjs → format-cell-CNQ6BpvR.mjs} +0 -0
- /package/dist/{format-cell-D4mqaN0E.cjs → format-cell-CSbJgz5B.cjs} +0 -0
- /package/dist/{get-cell-value-CZSVfDLg.cjs → get-cell-value-4rHKP-TG.cjs} +0 -0
- /package/dist/{get-cell-value-DiH84HKL.mjs → get-cell-value-C8LLc_Rr.mjs} +0 -0
- /package/dist/{preset-aspect-display-BYeiSgcc.mjs → preset-aspect-display-IICxAlVo.mjs} +0 -0
- /package/dist/{preset-aspect-display-y8aal_EF.cjs → preset-aspect-display-TWwf6j1B.cjs} +0 -0
- /package/dist/{use-cell-locale-B480_QYK.cjs → use-cell-locale-BGBRQB7s.cjs} +0 -0
- /package/dist/{use-cell-locale-1uQaFTLQ.mjs → use-cell-locale-MQXoONh5.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useTableContext, c as applyRowGate, d as extractIdentifier, f as intentClass, l as ariaLabelFor, m as triggerAction } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-D2yf0zD2.mjs";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-row-actions.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_as_row_actions = require("./as-row-actions-05pQX_om.cjs");
|
|
2
2
|
module.exports = require_as_row_actions.as_row_actions_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-DUSDuoR2.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-row-actions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
1
|
+
import { t as as_row_actions_default } from "./as-row-actions-D7YgGt0x.mjs";
|
|
2
2
|
export { as_row_actions_default as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
3
|
+
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
4
|
+
const require_use_table_column_handlers = require("./use-table-column-handlers-BgC4gUJV.cjs");
|
|
5
|
+
const require_as_table_base = require("./as-table-base-GEf95oXP.cjs");
|
|
5
6
|
let vue = require("vue");
|
|
6
7
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
7
8
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -84,7 +85,7 @@ var as_table_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
84
85
|
(0, vue.watch)(() => props.rowDelete, (val) => {
|
|
85
86
|
state.rowDelete.value = val;
|
|
86
87
|
}, { immediate: true });
|
|
87
|
-
|
|
88
|
+
require_use_table_selection.useSelectModeReset(state, () => props.select);
|
|
88
89
|
(0, vue.watch)(() => {
|
|
89
90
|
const placement = props.rowActionsColumn;
|
|
90
91
|
if (!placement) return false;
|
|
@@ -118,7 +119,7 @@ var as_table_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
118
119
|
if (props.select === "none") return [actionsCol.value, ...base];
|
|
119
120
|
return base;
|
|
120
121
|
});
|
|
121
|
-
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event),
|
|
122
|
+
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), require_use_has_emit_listener.useHasEmitListener("onMainAction"));
|
|
122
123
|
const { onSort, onHide, onFilter, onFiltersOff, onResetWidth, onReorder, onClearFilters } = require_use_table_column_handlers.useTableColumnHandlers(state);
|
|
123
124
|
function handleSelectAll() {
|
|
124
125
|
state.selectedRows.value = (0, _atscript_ui_table.rowsToPks)(effectiveRows.value, state.rowValueFn);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { a as useTableContext, g as ROW_ACTIONS_TYPE, h as ROW_ACTIONS_PATH, i as useRegisterMainActionListener } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
2
|
+
import { t as useSelectModeReset } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
|
+
import { t as useHasEmitListener } from "./use-has-emit-listener-BTMDIv2e.mjs";
|
|
4
|
+
import { t as useTableColumnHandlers } from "./use-table-column-handlers-cm0GxR2u.mjs";
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-DReD74pJ.mjs";
|
|
5
6
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
6
7
|
import { rowsToPks } from "@atscript/ui-table";
|
|
7
8
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-BChqFX3E.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useTableContext, c as applyRowGate, f as intentClass, l as ariaLabelFor, m as triggerAction, u as collectIdentifiers } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-D2yf0zD2.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
1
|
+
const require_as_table_actions = require("./as-table-actions-CsdY2_BG.cjs");
|
|
2
2
|
module.exports = require_as_table_actions.as_table_actions_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-33oeDXOg.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-DMf6-R5o.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
1
|
+
import { t as as_table_actions_default } from "./as-table-actions-DCEGQiHi.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { h as TVueTableActionInfo } from "./types-BPFBxUS_.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: "
|
|
21
|
+
level: "table" | "rows" | "row";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_3: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { h as TVueTableActionInfo } from "./types-BWeFiZKk.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: "
|
|
21
|
+
level: "table" | "rows" | "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-CuZ2OXoY.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
2
|
+
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
3
|
+
import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, t as as_table_status_default } from "./as-table-status-Dinns93w.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-DFQ30m-j.cjs");
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
3
|
+
const require_as_table_status = require("./as-table-status-DZP8dFpm.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,5 +1,5 @@
|
|
|
1
|
-
import { t as getCellValue } from "./get-cell-value-
|
|
2
|
-
import { t as formatCellValue } from "./format-cell-
|
|
1
|
+
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
2
|
+
import { t as formatCellValue } from "./format-cell-CNQ6BpvR.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
|
-
const require_get_cell_value = require("./get-cell-value-
|
|
2
|
-
const require_format_cell = require("./format-cell-
|
|
1
|
+
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
2
|
+
const require_format_cell = require("./format-cell-CSbJgz5B.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-CcWR5oG4.cjs");
|
|
2
2
|
module.exports = require_as_table_cell_value.as_table_cell_value_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-cell-value.vue-
|
|
1
|
+
import { t as _default } from "./as-table-cell-value.vue-kfNgVhzn.mjs";
|
|
2
2
|
export { _default as 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-Byrb_Zyh.mjs";
|
|
2
2
|
export { as_table_cell_value_default as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-BbETnUuy.mjs";
|
|
2
|
+
import { t as as_column_menu_default } from "./as-column-menu-kTIQfLTi.mjs";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
3
4
|
import { isFilled } from "@atscript/ui-table";
|
|
4
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
const _hoisted_1 = { class: "as-th-label" };
|
|
@@ -49,6 +50,7 @@ var as_table_header_cell_default = /* @__PURE__ */ defineComponent({
|
|
|
49
50
|
"reset-width"
|
|
50
51
|
],
|
|
51
52
|
setup(__props, { emit: __emit }) {
|
|
53
|
+
const MenuComponent = useTableComponent("columnMenu", as_column_menu_default);
|
|
52
54
|
const props = __props;
|
|
53
55
|
const emit = __emit;
|
|
54
56
|
const filledCount = computed(() => props.filters?.filter(isFilled).length ?? 0);
|
|
@@ -68,7 +70,7 @@ var as_table_header_cell_default = /* @__PURE__ */ defineComponent({
|
|
|
68
70
|
emit("reset-width", props.column);
|
|
69
71
|
}
|
|
70
72
|
return (_ctx, _cache) => {
|
|
71
|
-
return openBlock(), createBlock(
|
|
73
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(MenuComponent)), {
|
|
72
74
|
column: props.column,
|
|
73
75
|
order: __props.sortDirection,
|
|
74
76
|
filters: __props.filters,
|
|
@@ -98,7 +100,7 @@ var as_table_header_cell_default = /* @__PURE__ */ defineComponent({
|
|
|
98
100
|
}, null, 2)) : createCommentVNode("v-if", true)
|
|
99
101
|
])], 32)]),
|
|
100
102
|
_: 1
|
|
101
|
-
},
|
|
103
|
+
}, 40, [
|
|
102
104
|
"column",
|
|
103
105
|
"order",
|
|
104
106
|
"filters",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_use_table_component = require("./use-table-component-CirEOQ_P.cjs");
|
|
2
|
+
const require_as_column_menu = require("./as-column-menu-fZVbJ9lU.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -49,6 +50,7 @@ var as_table_header_cell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
49
50
|
"reset-width"
|
|
50
51
|
],
|
|
51
52
|
setup(__props, { emit: __emit }) {
|
|
53
|
+
const MenuComponent = require_use_table_component.useTableComponent("columnMenu", require_as_column_menu.as_column_menu_default);
|
|
52
54
|
const props = __props;
|
|
53
55
|
const emit = __emit;
|
|
54
56
|
const filledCount = (0, vue.computed)(() => props.filters?.filter(_atscript_ui_table.isFilled).length ?? 0);
|
|
@@ -68,7 +70,7 @@ var as_table_header_cell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
68
70
|
emit("reset-width", props.column);
|
|
69
71
|
}
|
|
70
72
|
return (_ctx, _cache) => {
|
|
71
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)(
|
|
73
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.unref)(MenuComponent)), {
|
|
72
74
|
column: props.column,
|
|
73
75
|
order: __props.sortDirection,
|
|
74
76
|
filters: __props.filters,
|
|
@@ -98,7 +100,7 @@ var as_table_header_cell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
98
100
|
}, null, 2)) : (0, vue.createCommentVNode)("v-if", true)
|
|
99
101
|
])], 32)]),
|
|
100
102
|
_: 1
|
|
101
|
-
},
|
|
103
|
+
}, 40, [
|
|
102
104
|
"column",
|
|
103
105
|
"order",
|
|
104
106
|
"filters",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
1
|
+
const require_as_table_header_cell = require("./as-table-header-cell-DWONx2MI.cjs");
|
|
2
2
|
module.exports = require_as_table_header_cell.as_table_header_cell_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-CzqTEpyk.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-Dj_Tl7dZ.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
1
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-BUf8wvrw.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-Bc_DSsGY.d.cts → as-table-header-cell.vue-CzqTEpyk.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-BPFBxUS_.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
package/dist/{as-table-header-cell.vue-DNMOHfek.d.mts → as-table-header-cell.vue-Dj_Tl7dZ.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-BWeFiZKk.mjs";
|
|
2
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
require("./as-
|
|
6
|
-
require("./as-cell-date-D0rowX5E.cjs");
|
|
7
|
-
require("./as-cell-json-DvHvQ6IL.cjs");
|
|
8
|
-
require("./as-cell-number-0_WrSCzu.cjs");
|
|
9
|
-
require("./as-cell-union-CFAI0utz.cjs");
|
|
10
|
-
require("./as-column-menu-CH9Htz0Q.cjs");
|
|
11
|
-
require("./as-config-dialog-BCvtSxi6.cjs");
|
|
12
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-Xtw2wE1X.cjs");
|
|
13
|
-
require("./as-filter-input--nr72iwX.cjs");
|
|
14
|
-
require("./as-table-cell-value-CuxRtFn9.cjs");
|
|
15
|
-
require("./as-table-header-cell-C3zeZUZo.cjs");
|
|
16
|
-
require("./as-preset-dialog-1Xl8DIiN.cjs");
|
|
17
|
-
require("./as-row-actions-C78cvaf3.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-CLsp2mAu.cjs");
|
|
3
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-Bh1tpG0X.cjs");
|
|
4
|
+
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
5
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-C6HAGzrj.cjs");
|
|
18
6
|
let vue = require("vue");
|
|
19
7
|
//#endregion
|
|
20
8
|
//#region src/components/as-table-root.vue
|
|
@@ -166,9 +154,9 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
166
154
|
* tableDef settle + URL hydration so the table fetches once.
|
|
167
155
|
*/
|
|
168
156
|
const urlQuery = (0, vue.useModel)(__props, "urlQuery");
|
|
169
|
-
const urlQueryActive =
|
|
157
|
+
const urlQueryActive = require_use_has_emit_listener.useHasEmitListener("onUpdate:urlQuery").value;
|
|
170
158
|
const urlQueryReady = (0, vue.ref)(!urlQueryActive);
|
|
171
|
-
const state =
|
|
159
|
+
const state = require_use_table.useTable(props.url, {
|
|
172
160
|
limit: props.limit,
|
|
173
161
|
rowValueFn: props.rowValueFn,
|
|
174
162
|
selectionPersistence: props.selectionPersistence,
|
|
@@ -209,8 +197,8 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
209
197
|
if (typeof q === "string" && q !== "") state.applyUrlQuery(q);
|
|
210
198
|
if (!urlQueryReady.value) urlQueryReady.value = true;
|
|
211
199
|
}, { immediate: true });
|
|
212
|
-
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event),
|
|
213
|
-
const navBridge =
|
|
200
|
+
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), require_use_has_emit_listener.useHasEmitListener("onMainAction"));
|
|
201
|
+
const navBridge = require_use_table_nav_bridge.useTableNavBridge(state);
|
|
214
202
|
function latchOpened(source) {
|
|
215
203
|
const latched = (0, vue.ref)(false);
|
|
216
204
|
(0, vue.watch)(source, (v) => {
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { i as useRegisterMainActionListener } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./as-
|
|
6
|
-
import "./as-cell-date-DPWBlhyM.mjs";
|
|
7
|
-
import "./as-cell-json-BynWIs1d.mjs";
|
|
8
|
-
import "./as-cell-number-Bc1C97Vg.mjs";
|
|
9
|
-
import "./as-cell-union-C1w3B38J.mjs";
|
|
10
|
-
import "./as-column-menu-DCfhorMP.mjs";
|
|
11
|
-
import "./as-config-dialog-BB6BDa1E.mjs";
|
|
12
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DL0mCEeX.mjs";
|
|
13
|
-
import "./as-filter-input-P1i0CW2-.mjs";
|
|
14
|
-
import "./as-table-cell-value-B1CiJYFn.mjs";
|
|
15
|
-
import "./as-table-header-cell-CBn_ioCe.mjs";
|
|
16
|
-
import "./as-preset-dialog-DXbqMVI1.mjs";
|
|
17
|
-
import "./as-row-actions-CpEMa5NU.mjs";
|
|
2
|
+
import { n as useTable } from "./use-table-CRsFMyJb.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-i8AjtjIt.mjs";
|
|
4
|
+
import { t as useHasEmitListener } from "./use-has-emit-listener-BTMDIv2e.mjs";
|
|
5
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-ClVKU1Dm.mjs";
|
|
18
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
19
7
|
//#endregion
|
|
20
8
|
//#region src/components/as-table-root.vue
|
package/dist/as-table-root.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_root = require("./as-table-root-
|
|
1
|
+
const require_as_table_root = require("./as-table-root-Cg2zkxR5.cjs");
|
|
2
2
|
module.exports = require_as_table_root.as_table_root_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-CYmnf5SH.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-Boq6pDr1.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table-root.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
1
|
+
import { t as as_table_root_default } from "./as-table-root-DpQUTbQ8.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-
|
|
1
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-BWeFiZKk.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";
|
|
@@ -2059,7 +2059,11 @@ interface UseAppPrefsReturn {
|
|
|
2059
2059
|
declare function useAppPrefs(opts: UseAppPrefsOptions): UseAppPrefsReturn;
|
|
2060
2060
|
//#endregion
|
|
2061
2061
|
//#region src/composables/use-table-component.d.ts
|
|
2062
|
-
/**
|
|
2062
|
+
/**
|
|
2063
|
+
* Resolve a single skin-slot component from the injected `controls` map,
|
|
2064
|
+
* falling back to the default. Safe to call outside a table context (e.g.
|
|
2065
|
+
* a default mounted standalone in tests) — the fallback is returned.
|
|
2066
|
+
*/
|
|
2063
2067
|
declare function useTableComponent<K extends keyof TAsTableControls>(key: K, fallback: Component$1): Component$1;
|
|
2064
2068
|
//#endregion
|
|
2065
2069
|
//#region src/composables/create-default-controls.d.ts
|
|
@@ -2071,6 +2075,11 @@ declare function useTableComponent<K extends keyof TAsTableControls>(key: K, fal
|
|
|
2071
2075
|
* const controls = { ...createDefaultControls(), filterDialog: MyFilterDialog }
|
|
2072
2076
|
* ```
|
|
2073
2077
|
*
|
|
2078
|
+
* `rowActions` is intentionally not seeded — the row-actions column
|
|
2079
|
+
* already falls back to the `types` map's `__actions` entry and then the
|
|
2080
|
+
* built-in renderer. Set `controls.rowActions` only to override explicitly
|
|
2081
|
+
* (it wins over the `types` entry).
|
|
2082
|
+
*
|
|
2074
2083
|
* `actionFormDialog` is intentionally not seeded — the table root
|
|
2075
2084
|
* lazy-mounts it only when an `@InputForm` action is detected. To override
|
|
2076
2085
|
* or eager-load, import from `@atscript/vue-table/as-action-form-dialog`
|
|
@@ -2246,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2246
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2247
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2248
2257
|
} & {
|
|
2249
|
-
|
|
2250
|
-
action: (
|
|
2258
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2259
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2251
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2252
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2253
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2254
2261
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2255
2262
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2256
2263
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2257
2264
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2258
2265
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2259
2266
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2267
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2268
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2260
2269
|
}>, {
|
|
2261
2270
|
queryOnMount: boolean;
|
|
2262
2271
|
selectionPersistence: SelectionPersistence;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-
|
|
1
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-BPFBxUS_.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, TDbActionInfo } from "@atscript/db-client";
|
|
@@ -2059,7 +2059,11 @@ interface UseAppPrefsReturn {
|
|
|
2059
2059
|
declare function useAppPrefs(opts: UseAppPrefsOptions): UseAppPrefsReturn;
|
|
2060
2060
|
//#endregion
|
|
2061
2061
|
//#region src/composables/use-table-component.d.ts
|
|
2062
|
-
/**
|
|
2062
|
+
/**
|
|
2063
|
+
* Resolve a single skin-slot component from the injected `controls` map,
|
|
2064
|
+
* falling back to the default. Safe to call outside a table context (e.g.
|
|
2065
|
+
* a default mounted standalone in tests) — the fallback is returned.
|
|
2066
|
+
*/
|
|
2063
2067
|
declare function useTableComponent<K extends keyof TAsTableControls>(key: K, fallback: Component$1): Component$1;
|
|
2064
2068
|
//#endregion
|
|
2065
2069
|
//#region src/composables/create-default-controls.d.ts
|
|
@@ -2071,6 +2075,11 @@ declare function useTableComponent<K extends keyof TAsTableControls>(key: K, fal
|
|
|
2071
2075
|
* const controls = { ...createDefaultControls(), filterDialog: MyFilterDialog }
|
|
2072
2076
|
* ```
|
|
2073
2077
|
*
|
|
2078
|
+
* `rowActions` is intentionally not seeded — the row-actions column
|
|
2079
|
+
* already falls back to the `types` map's `__actions` entry and then the
|
|
2080
|
+
* built-in renderer. Set `controls.rowActions` only to override explicitly
|
|
2081
|
+
* (it wins over the `types` entry).
|
|
2082
|
+
*
|
|
2074
2083
|
* `actionFormDialog` is intentionally not seeded — the table root
|
|
2075
2084
|
* lazy-mounts it only when an `@InputForm` action is detected. To override
|
|
2076
2085
|
* or eager-load, import from `@atscript/vue-table/as-action-form-dialog`
|
|
@@ -2246,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2246
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2247
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2248
2257
|
} & {
|
|
2249
|
-
|
|
2250
|
-
action: (
|
|
2258
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2259
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2251
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2252
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2253
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2254
2261
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2255
2262
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2256
2263
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2257
2264
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2258
2265
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2259
2266
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2267
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2268
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2260
2269
|
}>, {
|
|
2261
2270
|
queryOnMount: boolean;
|
|
2262
2271
|
selectionPersistence: SelectionPersistence;
|