@atscript/vue-table 0.1.142 → 0.1.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-miQYVP7x.mjs → as-action-menu-content-DoZnQP0I.mjs} +37 -25
- package/dist/{as-action-menu-content-BaNFBYn3.cjs → as-action-menu-content-FQ2miGid.cjs} +36 -24
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-Ca3wSDxw.d.mts → as-column-menu.vue-ByTECTbX.d.cts} +2 -2
- package/dist/{as-column-menu.vue-Co7FtiEM.d.cts → as-column-menu.vue-TChT482i.d.mts} +2 -2
- package/dist/{as-config-dialog-CVSOrS9O.cjs → as-config-dialog-CpW1Qemf.cjs} +2 -2
- package/dist/{as-config-dialog-Di02V3bs.mjs → as-config-dialog-ObHtungs.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-fCwo1ty9.cjs → as-confirm-dialog-D3Vu1Rb_.cjs} +1 -1
- package/dist/{as-confirm-dialog-C9Qat2rG.mjs → as-confirm-dialog-zg7jmS3u.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-DYpbsNDx.cjs → as-filter-dialog-C4EyRr2_.cjs} +7 -7
- package/dist/{as-filter-dialog-DdtrTT5w.mjs → as-filter-dialog-CWy0mjZl.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-4-qFRsJx.cjs → as-filter-field-BQ9UlV0y.cjs} +3 -3
- package/dist/{as-filter-field-DEQVodKG.mjs → as-filter-field-CW1_GHZT.mjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-Dd_j6_6G.mjs → as-filters-BLFSS_VP.mjs} +4 -4
- package/dist/{as-filters-C6ZkLrf4.cjs → as-filters-DUfFkXAo.cjs} +4 -4
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-SYA-6lGR.cjs → as-preset-dialog-BlXqTZiT.cjs} +1 -1
- package/dist/{as-preset-dialog-Bap48oUv.mjs → as-preset-dialog-CI2Hw8vi.mjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-BdKTZa95.cjs → as-preset-picker-CVgyZBG7.cjs} +1 -1
- package/dist/{as-preset-picker-NBrvsE6s.mjs → as-preset-picker-CbZDGPaf.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-residual-filter-CZ-Bytdj.cjs → as-residual-filter-C8n7kdGW.cjs} +1 -1
- package/dist/{as-residual-filter-BFnbI3h3.mjs → as-residual-filter-CUTouIn5.mjs} +1 -1
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-C3xHkX53.cjs → as-row-actions-DfUL9sYB.cjs} +21 -38
- package/dist/{as-row-actions-KeoHo9Ex.mjs → as-row-actions-ed1P6GEJ.mjs} +22 -39
- package/dist/as-row-actions.cjs +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.mjs +1 -1
- package/dist/{as-row-actions.vue-nmaDuxBT.d.mts → as-row-actions.vue-Ba3VO9W-.d.cts} +1 -1
- package/dist/{as-row-actions.vue-D3_z3ytk.d.cts → as-row-actions.vue-CKOnE0eb.d.mts} +1 -1
- package/dist/{as-select-cell-KD_ns8DS.mjs → as-select-cell-BMptU5sQ.mjs} +4 -4
- package/dist/{as-select-cell-XnzNuW2v.cjs → as-select-cell-DwMfqBMV.cjs} +4 -4
- package/dist/{as-table-ay1yel3u.cjs → as-table-BjKzKB0a.cjs} +3 -3
- package/dist/{as-table-NHqyekNd.mjs → as-table-DGWfzV4w.mjs} +3 -3
- package/dist/{as-table-actions-BpEFcsgh.mjs → as-table-actions-DQco4pGu.mjs} +16 -29
- package/dist/{as-table-actions-UQmFtRdJ.cjs → as-table-actions-DplblFlK.cjs} +15 -28
- 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-BG3JVaBQ.d.mts → as-table-actions.vue-CxHr8Oox.d.mts} +2 -2
- package/dist/{as-table-actions.vue-DcuzNZoC.d.cts → as-table-actions.vue-KSNe1uxh.d.cts} +2 -2
- package/dist/{as-table-base-umzg4PBR.cjs → as-table-base-CNAn-vpa.cjs} +2 -2
- package/dist/{as-table-base-89DkDZ-1.mjs → as-table-base-lfyjPgsO.mjs} +2 -2
- package/dist/{as-table-header-cell-f3YpgJX1.cjs → as-table-header-cell-BwaOPYwI.cjs} +1 -1
- package/dist/{as-table-header-cell-DU3ws2x9.mjs → as-table-header-cell-Csv1KQDa.mjs} +1 -1
- 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-5VGRc23o.d.mts → as-table-header-cell.vue-DU5h-2C_.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-XR90UlHO.d.cts → as-table-header-cell.vue-KkANwimG.d.mts} +2 -2
- package/dist/{as-table-root-47hiBEnq.mjs → as-table-root-BreMYhnv.mjs} +4 -4
- package/dist/{as-table-root-DDeGktcl.cjs → as-table-root-DXewWV9h.cjs} +4 -4
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-yZ7ZcwdT.d.cts → as-table-root.vue-CXaFNCMi.d.cts} +3 -3
- package/dist/{as-table-root.vue-BGx453_Q.d.mts → as-table-root.vue-DTos5nn3.d.mts} +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-wdFf4hMW.d.mts → as-table.vue-BBb5Tmts.d.cts} +2 -2
- package/dist/{as-table.vue-CwI5Z0y5.d.cts → as-table.vue-DVVC5219.d.mts} +2 -2
- package/dist/{as-window-table-hOYLNhX3.cjs → as-window-table-Bj1dXOS6.cjs} +3 -3
- package/dist/{as-window-table-C312T_bc.mjs → as-window-table-JOTOi_Nm.mjs} +3 -3
- 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-D6UDA6td.d.cts → as-window-table.vue-fnBNP4dW.d.mts} +2 -2
- package/dist/{as-window-table.vue-Deg1mj3t.d.mts → as-window-table.vue-hk-Ea173.d.cts} +2 -2
- package/dist/index.cjs +19 -18
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +19 -19
- package/dist/{types-BU7J-a1r.d.mts → types-BEZ4_erB.d.mts} +86 -11
- package/dist/{types-D4dK49sA.d.cts → types-D1NxhrpW.d.cts} +86 -11
- package/dist/{use-table-DlqGHjPh.mjs → use-table-BTsNGBVx.mjs} +1 -1
- package/dist/{use-table-yZNJTfRq.cjs → use-table-W0KmaJ6L.cjs} +1 -1
- package/dist/{use-table-column-handlers-0myVzrZR.mjs → use-table-column-handlers-BitvioH4.mjs} +1 -1
- package/dist/{use-table-column-handlers-BHMCo_HR.cjs → use-table-column-handlers-DksXpbON.cjs} +1 -1
- package/dist/{use-table-component-IziAm0vk.cjs → use-table-component-BvAC82_c.cjs} +1 -1
- package/dist/{use-table-component-TLwFq4rx.mjs → use-table-component-DRMXTk9M.mjs} +1 -1
- package/dist/{use-table-nav-bridge-CkQqimdS.mjs → use-table-nav-bridge-Bw0NFDSf.mjs} +1 -1
- package/dist/{use-table-nav-bridge-QU4jKhqx.cjs → use-table-nav-bridge-CPI1tql6.cjs} +1 -1
- package/dist/{use-table-state-BiklfjP0.cjs → use-table-state-Ddr2UZzB.cjs} +298 -88
- package/dist/{use-table-state-Cq-3tbVr.mjs → use-table-state-DuY-Mf8e.mjs} +271 -85
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
3
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
1
|
+
import { E as intentClass, M as triggerAction, N as triggerBindings, T as extractIdentifier, a as useTableContext, v as resolveRowActions, w as createNavigateGestures, y as rowActionHref } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-DoZnQP0I.mjs";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, resolveDynamicComponent, 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
|
|
6
6
|
const _hoisted_1 = {
|
|
@@ -55,35 +55,29 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
}
|
|
56
56
|
const view = computed(() => {
|
|
57
57
|
const explicit = props.actions;
|
|
58
|
-
const
|
|
59
|
-
const policy = state.rowActionsPolicy.value;
|
|
60
|
-
const filtered = explicit ? {
|
|
58
|
+
const resolved = explicit ? {
|
|
61
59
|
default: void 0,
|
|
62
60
|
others: explicit,
|
|
63
|
-
rows: []
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, props.row));
|
|
69
|
-
const extra = explicit ? [] : policy.extra(props.row);
|
|
70
|
-
const total = (filtered.default ? 1 : 0) + filtered.others.length + filtered.rows.length + extra.length;
|
|
71
|
-
const single = total === 1 ? filtered.default ?? filtered.others[0] ?? filtered.rows[0] ?? extra[0] : void 0;
|
|
61
|
+
rows: [],
|
|
62
|
+
extra: []
|
|
63
|
+
} : resolveRowActions(state, props.row);
|
|
64
|
+
const total = (resolved.default ? 1 : 0) + resolved.others.length + resolved.rows.length + resolved.extra.length;
|
|
65
|
+
const single = total === 1 ? resolved.default ?? resolved.others[0] ?? resolved.rows[0] ?? resolved.extra[0] : void 0;
|
|
72
66
|
const singleHref = single ? hrefFor(single) : void 0;
|
|
73
67
|
return {
|
|
74
68
|
total,
|
|
75
|
-
default:
|
|
69
|
+
default: resolved.default,
|
|
76
70
|
single,
|
|
71
|
+
trigger: single ? triggerBindings(single, singleHref) : void 0,
|
|
77
72
|
singleLabelOnly: !!single && !single.icon,
|
|
78
73
|
singleIntentClass: single ? intentClass("as-row-actions", single) : void 0,
|
|
79
|
-
singleIsDefault: !!single && single ===
|
|
74
|
+
singleIsDefault: !!single && single === resolved.default,
|
|
80
75
|
singleHref,
|
|
81
|
-
singleAsLink: singleHref !== void 0 && !single?.promptText,
|
|
82
76
|
menuGroups: [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
extra
|
|
77
|
+
resolved.default ? [resolved.default] : [],
|
|
78
|
+
resolved.others,
|
|
79
|
+
resolved.rows,
|
|
80
|
+
resolved.extra
|
|
87
81
|
]
|
|
88
82
|
};
|
|
89
83
|
});
|
|
@@ -95,30 +89,19 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
95
89
|
}
|
|
96
90
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = createNavigateGestures(state, promptCtx, hrefFor);
|
|
97
91
|
return (_ctx, _cache) => {
|
|
98
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" table-layout: fixed needs a placeholder cell so column widths line up. "), view.value.total === 0 ? (openBlock(), createElementBlock("td", _hoisted_1)) : view.value.single ? (openBlock(), createElementBlock("td", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(view.value.
|
|
99
|
-
|
|
100
|
-
type: view.value.singleAsLink ? void 0 : "button",
|
|
101
|
-
class: normalizeClass(["as-row-actions-btn", [view.value.singleLabelOnly ? "as-row-actions-btn-labelled" : void 0, view.value.singleIntentClass]]),
|
|
92
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" table-layout: fixed needs a placeholder cell so column widths line up. "), view.value.total === 0 ? (openBlock(), createElementBlock("td", _hoisted_1)) : view.value.single && view.value.trigger ? (openBlock(), createElementBlock("td", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(view.value.trigger.tag), mergeProps(view.value.trigger.attrs, {
|
|
93
|
+
class: ["as-row-actions-btn", [view.value.singleLabelOnly ? "as-row-actions-btn-labelled" : void 0, view.value.singleIntentClass]],
|
|
102
94
|
"data-default": view.value.singleIsDefault || void 0,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
onAuxclick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(onTriggerAuxClick)(view.value.single, view.value.singleHref, view.value.singleAsLink, $event), ["stop"]))
|
|
107
|
-
}, {
|
|
95
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(onTriggerClick)(view.value.single, view.value.singleHref, $event), ["stop"])),
|
|
96
|
+
onAuxclick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(onTriggerAuxClick)(view.value.single, view.value.singleHref, $event), ["stop"]))
|
|
97
|
+
}), {
|
|
108
98
|
default: withCtx(() => [view.value.single.icon ? (openBlock(), createElementBlock("span", {
|
|
109
99
|
key: 0,
|
|
110
100
|
class: normalizeClass(["as-row-actions-btn-icon", view.value.single.icon]),
|
|
111
101
|
"aria-hidden": "true"
|
|
112
102
|
}, null, 2)) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(view.value.single.label || view.value.single.name), 1))]),
|
|
113
103
|
_: 1
|
|
114
|
-
},
|
|
115
|
-
"href",
|
|
116
|
-
"type",
|
|
117
|
-
"class",
|
|
118
|
-
"data-default",
|
|
119
|
-
"aria-label",
|
|
120
|
-
"title"
|
|
121
|
-
]))])) : (openBlock(), createElementBlock("td", _hoisted_4, [createVNode(unref(DropdownMenuRoot), { modal: false }, {
|
|
104
|
+
}, 16, ["class", "data-default"]))])) : (openBlock(), createElementBlock("td", _hoisted_4, [createVNode(unref(DropdownMenuRoot), { modal: false }, {
|
|
122
105
|
default: withCtx(() => [createVNode(unref(DropdownMenuTrigger), { "as-child": "" }, {
|
|
123
106
|
default: withCtx(() => [createElementVNode("button", {
|
|
124
107
|
type: "button",
|
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-DfUL9sYB.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-Ba3VO9W-.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-CKOnE0eb.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-ed1P6GEJ.mjs";
|
|
2
2
|
export { as_row_actions_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as toggleRowAt, h as onSelectControlKeydown, o as useTableContextOptional } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
4
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
1
|
+
import { g as toggleRowAt, h as onSelectControlKeydown, o as useTableContextOptional } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Csv1KQDa.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-ed1P6GEJ.mjs";
|
|
5
5
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-DoH8Mieo.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
3
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
4
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-BvAC82_c.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BwaOPYwI.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-DfUL9sYB.cjs");
|
|
5
5
|
const require_as_table_cell_value = require("./as-table-cell-value-COyZnwUj.cjs");
|
|
6
6
|
let _atscript_ui = require("@atscript/ui");
|
|
7
7
|
let vue = require("vue");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.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-DksXpbON.cjs");
|
|
5
|
+
const require_as_table_base = require("./as-table-base-CNAn-vpa.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" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-DuY-Mf8e.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 { n as useRowActionsColumn, 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-BitvioH4.mjs";
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-lfyjPgsO.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" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
3
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
1
|
+
import { C as collectIdentifiers, E as intentClass, M as triggerAction, N as triggerBindings, S as ariaLabelFor, a as useTableContext, b as applyRowsGate, v as resolveRowActions, w as createNavigateGestures, y as rowActionHref } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-DoZnQP0I.mjs";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, 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
|
|
6
6
|
const _hoisted_1 = {
|
|
@@ -50,7 +50,7 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
return {
|
|
51
51
|
...r,
|
|
52
52
|
defaultHref,
|
|
53
|
-
|
|
53
|
+
defaultTrigger: r.defaultAction ? triggerBindings(r.defaultAction, defaultHref) : void 0
|
|
54
54
|
};
|
|
55
55
|
});
|
|
56
56
|
function resolveBuckets() {
|
|
@@ -67,18 +67,12 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
});
|
|
68
68
|
if (effectiveLevel === "row") {
|
|
69
69
|
const source = explicit === "auto" && selectedCount === 1 ? state.selectedRows.value[0] : state.getActiveRow();
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
default: state.actions.default.row,
|
|
73
|
-
others: state.actions.others.row,
|
|
74
|
-
rows: explicit === "auto" && selectedCount === 1 ? state.actions.rows : []
|
|
75
|
-
}, source));
|
|
76
|
-
const row = source;
|
|
77
|
-
const extra = policy.extra(row);
|
|
70
|
+
const row = state.rowOf(source);
|
|
71
|
+
const resolved = resolveRowActions(state, row, { withRows: explicit === "auto" && selectedCount === 1 });
|
|
78
72
|
return collapseSingle({
|
|
79
|
-
defaultAction:
|
|
80
|
-
otherActions: extra.length > 0 ? [...
|
|
81
|
-
trailingRowActions:
|
|
73
|
+
defaultAction: resolved.default,
|
|
74
|
+
otherActions: resolved.extra.length > 0 ? [...resolved.others, ...resolved.extra] : resolved.others,
|
|
75
|
+
trailingRowActions: resolved.rows,
|
|
82
76
|
level: "row",
|
|
83
77
|
ids: collectIdentifiers(state, [source], pid),
|
|
84
78
|
row
|
|
@@ -88,7 +82,7 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
88
82
|
default: state.actions.default.rows,
|
|
89
83
|
others: state.actions.others.rows,
|
|
90
84
|
rows: []
|
|
91
|
-
}, state.
|
|
85
|
+
}, state.selectedRowObjects.value);
|
|
92
86
|
return collapseSingle({
|
|
93
87
|
defaultAction: filtered.default,
|
|
94
88
|
otherActions: filtered.others,
|
|
@@ -158,30 +152,23 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
158
152
|
level: resolved.value.level,
|
|
159
153
|
ids: resolved.value.ids,
|
|
160
154
|
invoke: invokeWith
|
|
161
|
-
}, () => [resolved.value.defaultAction ? (openBlock(), createBlock(resolveDynamicComponent(resolved.value.
|
|
162
|
-
|
|
163
|
-
href: resolved.value.defaultAsLink ? resolved.value.defaultHref : void 0,
|
|
164
|
-
type: resolved.value.defaultAsLink ? void 0 : "button",
|
|
165
|
-
class: normalizeClass(["as-table-actions-btn", unref(intentClass)("as-table-actions", resolved.value.defaultAction)]),
|
|
155
|
+
}, () => [resolved.value.defaultAction && resolved.value.defaultTrigger ? (openBlock(), createBlock(resolveDynamicComponent(resolved.value.defaultTrigger.tag), mergeProps({ key: 0 }, resolved.value.defaultTrigger.attrs, {
|
|
156
|
+
class: ["as-table-actions-btn", unref(intentClass)("as-table-actions", resolved.value.defaultAction)],
|
|
166
157
|
"data-default": "",
|
|
167
158
|
"aria-label": triggerLabel(resolved.value.defaultAction),
|
|
168
|
-
title: unref(ariaLabelFor)(resolved.value.defaultAction),
|
|
169
159
|
"aria-busy": isRunning(resolved.value.defaultAction) ? "true" : void 0,
|
|
170
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(onTriggerClick)(resolved.value.defaultAction, resolved.value.defaultHref,
|
|
171
|
-
onAuxclick: _cache[1] || (_cache[1] = ($event) => unref(onTriggerAuxClick)(resolved.value.defaultAction, resolved.value.defaultHref,
|
|
172
|
-
}, {
|
|
160
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(onTriggerClick)(resolved.value.defaultAction, resolved.value.defaultHref, $event)),
|
|
161
|
+
onAuxclick: _cache[1] || (_cache[1] = ($event) => unref(onTriggerAuxClick)(resolved.value.defaultAction, resolved.value.defaultHref, $event))
|
|
162
|
+
}), {
|
|
173
163
|
default: withCtx(() => [renderSlot(_ctx.$slots, "button", { action: resolved.value.defaultAction }, () => [resolved.value.defaultAction.icon ? (openBlock(), createElementBlock("span", {
|
|
174
164
|
key: 0,
|
|
175
165
|
class: normalizeClass(["as-table-actions-btn-icon", resolved.value.defaultAction.icon]),
|
|
176
166
|
"aria-hidden": "true"
|
|
177
167
|
}, null, 2)) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_2, toDisplayString(resolved.value.defaultAction.label || resolved.value.defaultAction.name), 1)])]),
|
|
178
168
|
_: 3
|
|
179
|
-
},
|
|
180
|
-
"href",
|
|
181
|
-
"type",
|
|
169
|
+
}, 16, [
|
|
182
170
|
"class",
|
|
183
171
|
"aria-label",
|
|
184
|
-
"title",
|
|
185
172
|
"aria-busy"
|
|
186
173
|
])) : createCommentVNode("v-if", true), resolved.value.otherActions.length > 0 || resolved.value.trailingRowActions.length > 0 ? (openBlock(), createBlock(unref(DropdownMenuRoot), {
|
|
187
174
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-FQ2miGid.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
|
|
@@ -50,7 +50,7 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
50
50
|
return {
|
|
51
51
|
...r,
|
|
52
52
|
defaultHref,
|
|
53
|
-
|
|
53
|
+
defaultTrigger: r.defaultAction ? require_use_table_state.triggerBindings(r.defaultAction, defaultHref) : void 0
|
|
54
54
|
};
|
|
55
55
|
});
|
|
56
56
|
function resolveBuckets() {
|
|
@@ -67,18 +67,12 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
67
67
|
});
|
|
68
68
|
if (effectiveLevel === "row") {
|
|
69
69
|
const source = explicit === "auto" && selectedCount === 1 ? state.selectedRows.value[0] : state.getActiveRow();
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
default: state.actions.default.row,
|
|
73
|
-
others: state.actions.others.row,
|
|
74
|
-
rows: explicit === "auto" && selectedCount === 1 ? state.actions.rows : []
|
|
75
|
-
}, source));
|
|
76
|
-
const row = source;
|
|
77
|
-
const extra = policy.extra(row);
|
|
70
|
+
const row = state.rowOf(source);
|
|
71
|
+
const resolved = require_use_table_state.resolveRowActions(state, row, { withRows: explicit === "auto" && selectedCount === 1 });
|
|
78
72
|
return collapseSingle({
|
|
79
|
-
defaultAction:
|
|
80
|
-
otherActions: extra.length > 0 ? [...
|
|
81
|
-
trailingRowActions:
|
|
73
|
+
defaultAction: resolved.default,
|
|
74
|
+
otherActions: resolved.extra.length > 0 ? [...resolved.others, ...resolved.extra] : resolved.others,
|
|
75
|
+
trailingRowActions: resolved.rows,
|
|
82
76
|
level: "row",
|
|
83
77
|
ids: require_use_table_state.collectIdentifiers(state, [source], pid),
|
|
84
78
|
row
|
|
@@ -88,7 +82,7 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
88
82
|
default: state.actions.default.rows,
|
|
89
83
|
others: state.actions.others.rows,
|
|
90
84
|
rows: []
|
|
91
|
-
}, state.
|
|
85
|
+
}, state.selectedRowObjects.value);
|
|
92
86
|
return collapseSingle({
|
|
93
87
|
defaultAction: filtered.default,
|
|
94
88
|
otherActions: filtered.others,
|
|
@@ -158,30 +152,23 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
158
152
|
level: resolved.value.level,
|
|
159
153
|
ids: resolved.value.ids,
|
|
160
154
|
invoke: invokeWith
|
|
161
|
-
}, () => [resolved.value.defaultAction ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(resolved.value.
|
|
162
|
-
|
|
163
|
-
href: resolved.value.defaultAsLink ? resolved.value.defaultHref : void 0,
|
|
164
|
-
type: resolved.value.defaultAsLink ? void 0 : "button",
|
|
165
|
-
class: (0, vue.normalizeClass)(["as-table-actions-btn", (0, vue.unref)(require_use_table_state.intentClass)("as-table-actions", resolved.value.defaultAction)]),
|
|
155
|
+
}, () => [resolved.value.defaultAction && resolved.value.defaultTrigger ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(resolved.value.defaultTrigger.tag), (0, vue.mergeProps)({ key: 0 }, resolved.value.defaultTrigger.attrs, {
|
|
156
|
+
class: ["as-table-actions-btn", (0, vue.unref)(require_use_table_state.intentClass)("as-table-actions", resolved.value.defaultAction)],
|
|
166
157
|
"data-default": "",
|
|
167
158
|
"aria-label": triggerLabel(resolved.value.defaultAction),
|
|
168
|
-
title: (0, vue.unref)(require_use_table_state.ariaLabelFor)(resolved.value.defaultAction),
|
|
169
159
|
"aria-busy": isRunning(resolved.value.defaultAction) ? "true" : void 0,
|
|
170
|
-
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(onTriggerClick)(resolved.value.defaultAction, resolved.value.defaultHref,
|
|
171
|
-
onAuxclick: _cache[1] || (_cache[1] = ($event) => (0, vue.unref)(onTriggerAuxClick)(resolved.value.defaultAction, resolved.value.defaultHref,
|
|
172
|
-
}, {
|
|
160
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(onTriggerClick)(resolved.value.defaultAction, resolved.value.defaultHref, $event)),
|
|
161
|
+
onAuxclick: _cache[1] || (_cache[1] = ($event) => (0, vue.unref)(onTriggerAuxClick)(resolved.value.defaultAction, resolved.value.defaultHref, $event))
|
|
162
|
+
}), {
|
|
173
163
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "button", { action: resolved.value.defaultAction }, () => [resolved.value.defaultAction.icon ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
174
164
|
key: 0,
|
|
175
165
|
class: (0, vue.normalizeClass)(["as-table-actions-btn-icon", resolved.value.defaultAction.icon]),
|
|
176
166
|
"aria-hidden": "true"
|
|
177
167
|
}, null, 2)) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createElementVNode)("span", _hoisted_2, (0, vue.toDisplayString)(resolved.value.defaultAction.label || resolved.value.defaultAction.name), 1)])]),
|
|
178
168
|
_: 3
|
|
179
|
-
},
|
|
180
|
-
"href",
|
|
181
|
-
"type",
|
|
169
|
+
}, 16, [
|
|
182
170
|
"class",
|
|
183
171
|
"aria-label",
|
|
184
|
-
"title",
|
|
185
172
|
"aria-busy"
|
|
186
173
|
])) : (0, vue.createCommentVNode)("v-if", true), resolved.value.otherActions.length > 0 || resolved.value.trailingRowActions.length > 0 ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DropdownMenuRoot), {
|
|
187
174
|
key: 1,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
1
|
+
const require_as_table_actions = require("./as-table-actions-DplblFlK.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-KSNe1uxh.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-CxHr8Oox.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-DQco4pGu.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as TVueTableActionInfo } from "./types-BEZ4_erB.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 { O as TVueTableActionInfo } from "./types-D1NxhrpW.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
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
-
const require_as_select_cell = require("./as-select-cell-
|
|
3
|
+
const require_as_select_cell = require("./as-select-cell-DwMfqBMV.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,6 +1,6 @@
|
|
|
1
|
-
import { _ as toSelectAllState, o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { _ as toSelectAllState, o as useTableContextOptional } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
|
-
import { i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-
|
|
3
|
+
import { i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-BMptU5sQ.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,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-BvAC82_c.cjs");
|
|
2
2
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
2
2
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { isFilled } from "@atscript/ui-table";
|
|
@@ -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-BwaOPYwI.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-DU5h-2C_.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-KkANwimG.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-Csv1KQDa.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-5VGRc23o.d.mts → as-table-header-cell.vue-DU5h-2C_.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-D1NxhrpW.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-XR90UlHO.d.cts → as-table-header-cell.vue-KkANwimG.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-BEZ4_erB.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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-
|
|
2
|
-
import { n as finalizeTableState, r as useTable } from "./use-table-
|
|
3
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
1
|
+
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { n as finalizeTableState, r as useTable } from "./use-table-BTsNGBVx.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-Bw0NFDSf.mjs";
|
|
4
4
|
import { t as useHasEmitListener } from "./use-has-emit-listener-DrBbsLHQ.mjs";
|
|
5
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
5
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-zg7jmS3u.mjs";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
7
7
|
import { DEV } from "@atscript/ui-table";
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table = require("./use-table-
|
|
3
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-W0KmaJ6L.cjs");
|
|
3
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-CPI1tql6.cjs");
|
|
4
4
|
const require_use_has_emit_listener = require("./use-has-emit-listener-BaGFZDyM.cjs");
|
|
5
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
5
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-D3Vu1Rb_.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
8
8
|
//#endregion
|
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-DXewWV9h.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-CXaFNCMi.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-DTos5nn3.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-BreMYhnv.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { A as TableNavBridge, D as TAsTableControls, E as TAsCellTypeComponents, O as TVueTableActionInfo, _ as RowActionsConfig, a as ConfirmOptions, d as NavKeyOptions, f as PresetConfig, k as TableActionsState, m as ReactiveTableState, o as DroppedFieldsReport, t as ActionResult } from "./types-D1NxhrpW.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 * as _atscript_ui0 from "@atscript/ui";
|
|
@@ -2571,11 +2571,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2571
2571
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2572
2572
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2573
2573
|
} & {
|
|
2574
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2574
2575
|
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2575
2576
|
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
2576
2577
|
"fields-dropped": (report: DroppedFieldsReport) => any;
|
|
2577
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2578
2578
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2579
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2579
2580
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2580
2581
|
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
2581
2582
|
"onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
|
|
@@ -2586,7 +2587,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2586
2587
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2587
2588
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2588
2589
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2589
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2590
2590
|
}>, {
|
|
2591
2591
|
localSort: boolean;
|
|
2592
2592
|
queryOnMount: boolean;
|