@atscript/vue-table 0.1.143 → 0.1.145
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-BL4xy2-d.d.mts} +2 -2
- package/dist/{as-table-actions.vue-DcuzNZoC.d.cts → as-table-actions.vue-DgMw3xJn.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-pYZ4eGni.d.cts → as-table.vue-Cn1CXJ1Y.d.mts} +3 -3
- package/dist/{as-table.vue-BgcFEBxt.d.mts → as-table.vue-EfLWpNy3.d.cts} +3 -3
- 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-6RsX1T1D.d.cts → as-window-table.vue-DCd8FtpC.d.cts} +2 -2
- package/dist/{as-window-table.vue-DZ23YTmK.d.mts → as-window-table.vue-DN5hed6Y.d.mts} +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,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
let _atscript_ui = require("@atscript/ui");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_db_client = require("@atscript/db-client");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as intentToScope, a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { META_LABEL, UI_FORM_SUBMIT_TEXT, createFormData, createFormDef, getFieldMeta } from "@atscript/ui";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, useId, watch, withCtx } from "vue";
|
|
4
4
|
import { formatIdentifier } from "@atscript/db-client";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
1
|
+
import { A as isModClick, E as intentClass, O as isActionDisabled, S as ariaLabelFor, j as isPlainLeftClick, k as isLinkTrigger, x as ariaDisabled } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
3
|
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from "reka-ui";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/internal/as-action-menu-item.vue
|
|
@@ -27,7 +27,7 @@ var as_action_menu_item_default = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
setup(__props, { emit: __emit }) {
|
|
28
28
|
const props = __props;
|
|
29
29
|
const emit = __emit;
|
|
30
|
-
const asLink = computed(() => props.
|
|
30
|
+
const asLink = computed(() => isLinkTrigger(props.action, props.href));
|
|
31
31
|
let pointer = null;
|
|
32
32
|
function onPointerdown(e) {
|
|
33
33
|
pointer = {
|
|
@@ -47,6 +47,10 @@ var as_action_menu_item_default = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
function onSelect(e) {
|
|
48
48
|
const p = pointer;
|
|
49
49
|
pointer = null;
|
|
50
|
+
if (isActionDisabled(props.action)) {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
50
54
|
if (p && props.href !== void 0) {
|
|
51
55
|
if (asLink.value && p.nonPlain) return;
|
|
52
56
|
if (!asLink.value && p.newTabChord) {
|
|
@@ -64,30 +68,38 @@ var as_action_menu_item_default = /* @__PURE__ */ defineComponent({
|
|
|
64
68
|
emit("newtab");
|
|
65
69
|
}
|
|
66
70
|
return (_ctx, _cache) => {
|
|
67
|
-
return openBlock(),
|
|
68
|
-
as
|
|
69
|
-
|
|
70
|
-
class: normalizeClass([`${__props.prefix}-menu-item`, unref(intentClass)(__props.prefix, __props.action)]),
|
|
71
|
-
"data-default": props.default || void 0,
|
|
72
|
-
"aria-label": unref(ariaLabelFor)(__props.action),
|
|
73
|
-
onSelect,
|
|
74
|
-
onPointerdown,
|
|
75
|
-
onClick,
|
|
76
|
-
onAuxclick
|
|
71
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n `as-child` + our own element (not `:as`): reka's item binds its OWN\n `aria-disabled` (from its `disabled` prop, unused here) after the\n forwarded attrs, which would erase ours; on the as-child path the child's\n attributes win the merge.\n "), createVNode(unref(DropdownMenuItem), {
|
|
72
|
+
"as-child": "",
|
|
73
|
+
onSelect
|
|
77
74
|
}, {
|
|
78
|
-
default: withCtx(() => [
|
|
79
|
-
|
|
80
|
-
class: normalizeClass([`${__props.prefix}-menu-item
|
|
81
|
-
"
|
|
82
|
-
|
|
75
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(asLink.value ? "a" : "div"), {
|
|
76
|
+
href: asLink.value ? __props.href : void 0,
|
|
77
|
+
class: normalizeClass([`${__props.prefix}-menu-item`, unref(intentClass)(__props.prefix, __props.action)]),
|
|
78
|
+
"data-default": props.default || void 0,
|
|
79
|
+
"aria-label": unref(ariaLabelFor)(__props.action),
|
|
80
|
+
"aria-disabled": unref(ariaDisabled)(__props.action),
|
|
81
|
+
onPointerdown,
|
|
82
|
+
onClick,
|
|
83
|
+
onAuxclick
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { action: __props.action }, () => [__props.action.icon ? (openBlock(), createElementBlock("span", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: normalizeClass([`${__props.prefix}-menu-item-icon`, __props.action.icon]),
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
}, null, 2)) : createCommentVNode("v-if", true), createElementVNode("span", { class: normalizeClass(`${__props.prefix}-menu-item-label`) }, [createTextVNode(toDisplayString(__props.action.label || __props.action.name), 1), __props.action.disabledReason ? (openBlock(), createElementBlock("span", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: normalizeClass(`${__props.prefix}-menu-item-reason`)
|
|
92
|
+
}, toDisplayString(__props.action.disabledReason), 3)) : createCommentVNode("v-if", true)], 2)])]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 40, [
|
|
95
|
+
"href",
|
|
96
|
+
"class",
|
|
97
|
+
"data-default",
|
|
98
|
+
"aria-label",
|
|
99
|
+
"aria-disabled"
|
|
100
|
+
]))]),
|
|
83
101
|
_: 3
|
|
84
|
-
},
|
|
85
|
-
"as",
|
|
86
|
-
"href",
|
|
87
|
-
"class",
|
|
88
|
-
"data-default",
|
|
89
|
-
"aria-label"
|
|
90
|
-
]);
|
|
102
|
+
})], 2112);
|
|
91
103
|
};
|
|
92
104
|
}
|
|
93
105
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let reka_ui = require("reka-ui");
|
|
4
4
|
//#endregion
|
|
@@ -27,7 +27,7 @@ var as_action_menu_item_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
27
27
|
setup(__props, { emit: __emit }) {
|
|
28
28
|
const props = __props;
|
|
29
29
|
const emit = __emit;
|
|
30
|
-
const asLink = (0, vue.computed)(() => props.
|
|
30
|
+
const asLink = (0, vue.computed)(() => require_use_table_state.isLinkTrigger(props.action, props.href));
|
|
31
31
|
let pointer = null;
|
|
32
32
|
function onPointerdown(e) {
|
|
33
33
|
pointer = {
|
|
@@ -47,6 +47,10 @@ var as_action_menu_item_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
47
47
|
function onSelect(e) {
|
|
48
48
|
const p = pointer;
|
|
49
49
|
pointer = null;
|
|
50
|
+
if (require_use_table_state.isActionDisabled(props.action)) {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
50
54
|
if (p && props.href !== void 0) {
|
|
51
55
|
if (asLink.value && p.nonPlain) return;
|
|
52
56
|
if (!asLink.value && p.newTabChord) {
|
|
@@ -64,30 +68,38 @@ var as_action_menu_item_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
64
68
|
emit("newtab");
|
|
65
69
|
}
|
|
66
70
|
return (_ctx, _cache) => {
|
|
67
|
-
return (0, vue.openBlock)(), (0, vue.
|
|
68
|
-
as
|
|
69
|
-
|
|
70
|
-
class: (0, vue.normalizeClass)([`${__props.prefix}-menu-item`, (0, vue.unref)(require_use_table_state.intentClass)(__props.prefix, __props.action)]),
|
|
71
|
-
"data-default": props.default || void 0,
|
|
72
|
-
"aria-label": (0, vue.unref)(require_use_table_state.ariaLabelFor)(__props.action),
|
|
73
|
-
onSelect,
|
|
74
|
-
onPointerdown,
|
|
75
|
-
onClick,
|
|
76
|
-
onAuxclick
|
|
71
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createCommentVNode)("\n `as-child` + our own element (not `:as`): reka's item binds its OWN\n `aria-disabled` (from its `disabled` prop, unused here) after the\n forwarded attrs, which would erase ours; on the as-child path the child's\n attributes win the merge.\n "), (0, vue.createVNode)((0, vue.unref)(reka_ui.DropdownMenuItem), {
|
|
72
|
+
"as-child": "",
|
|
73
|
+
onSelect
|
|
77
74
|
}, {
|
|
78
|
-
default: (0, vue.withCtx)(() => [(0, vue.
|
|
79
|
-
|
|
80
|
-
class: (0, vue.normalizeClass)([`${__props.prefix}-menu-item
|
|
81
|
-
"
|
|
82
|
-
|
|
75
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(asLink.value ? "a" : "div"), {
|
|
76
|
+
href: asLink.value ? __props.href : void 0,
|
|
77
|
+
class: (0, vue.normalizeClass)([`${__props.prefix}-menu-item`, (0, vue.unref)(require_use_table_state.intentClass)(__props.prefix, __props.action)]),
|
|
78
|
+
"data-default": props.default || void 0,
|
|
79
|
+
"aria-label": (0, vue.unref)(require_use_table_state.ariaLabelFor)(__props.action),
|
|
80
|
+
"aria-disabled": (0, vue.unref)(require_use_table_state.ariaDisabled)(__props.action),
|
|
81
|
+
onPointerdown,
|
|
82
|
+
onClick,
|
|
83
|
+
onAuxclick
|
|
84
|
+
}, {
|
|
85
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { action: __props.action }, () => [__props.action.icon ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: (0, vue.normalizeClass)([`${__props.prefix}-menu-item-icon`, __props.action.icon]),
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
}, null, 2)) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(`${__props.prefix}-menu-item-label`) }, [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.action.label || __props.action.name), 1), __props.action.disabledReason ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: (0, vue.normalizeClass)(`${__props.prefix}-menu-item-reason`)
|
|
92
|
+
}, (0, vue.toDisplayString)(__props.action.disabledReason), 3)) : (0, vue.createCommentVNode)("v-if", true)], 2)])]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 40, [
|
|
95
|
+
"href",
|
|
96
|
+
"class",
|
|
97
|
+
"data-default",
|
|
98
|
+
"aria-label",
|
|
99
|
+
"aria-disabled"
|
|
100
|
+
]))]),
|
|
83
101
|
_: 3
|
|
84
|
-
},
|
|
85
|
-
"as",
|
|
86
|
-
"href",
|
|
87
|
-
"class",
|
|
88
|
-
"data-default",
|
|
89
|
-
"aria-label"
|
|
90
|
-
]);
|
|
102
|
+
})], 2112);
|
|
91
103
|
};
|
|
92
104
|
}
|
|
93
105
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-ByTECTbX.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-TChT482i.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-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-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-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-column-menu.vue.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
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
3
|
const require_use_seed_on_open = require("./use-seed-on-open-Dg9I89fU.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
3
3
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DO3A1kIb.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, nextTick, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useModel, vModelText, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
5
5
|
import { arraysEqual, isColumnFilterable, sortersEqual } from "@atscript/ui-table";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
1
|
+
const require_as_config_dialog = require("./as-config-dialog-CpW1Qemf.cjs");
|
|
2
2
|
module.exports = require_as_config_dialog.as_config_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
1
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-ObHtungs.mjs";
|
|
2
2
|
export { as_config_dialog_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let reka_ui = require("reka-ui");
|
|
4
4
|
//#region src/components/defaults/as-confirm-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { computed, createBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
import { AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogRoot, AlertDialogTitle } from "reka-ui";
|
|
4
4
|
//#region src/components/defaults/as-confirm-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
1
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-D3Vu1Rb_.cjs");
|
|
2
2
|
module.exports = require_as_confirm_dialog.as_confirm_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
1
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-zg7jmS3u.mjs";
|
|
2
2
|
export { as_confirm_dialog_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
4
|
-
const require_use_table_component = require("./use-table-component-
|
|
5
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
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
|
+
const require_use_table_component = require("./use-table-component-BvAC82_c.cjs");
|
|
5
|
+
const require_as_config_dialog = require("./as-config-dialog-CpW1Qemf.cjs");
|
|
6
6
|
const require_use_seed_on_open = require("./use-seed-on-open-Dg9I89fU.cjs");
|
|
7
7
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
8
|
-
const require_as_window_table = require("./as-window-table-
|
|
9
|
-
const require_as_filters = require("./as-filters-
|
|
8
|
+
const require_as_window_table = require("./as-window-table-Bj1dXOS6.cjs");
|
|
9
|
+
const require_as_filters = require("./as-filters-DUfFkXAo.cjs");
|
|
10
10
|
let _atscript_ui = require("@atscript/ui");
|
|
11
11
|
let vue = require("vue");
|
|
12
12
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as useTableContext, r as provideTableContext, t as createStaticTableState } from "./use-table-state-
|
|
2
|
-
import { r as useTable } from "./use-table-
|
|
3
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
4
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
5
|
-
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-
|
|
1
|
+
import { a as useTableContext, r as provideTableContext, t as createStaticTableState } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { r as useTable } from "./use-table-BTsNGBVx.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-Bw0NFDSf.mjs";
|
|
4
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
5
|
+
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-ObHtungs.mjs";
|
|
6
6
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DO3A1kIb.mjs";
|
|
7
7
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
8
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
9
|
-
import { t as as_filters_default } from "./as-filters-
|
|
8
|
+
import { t as as_window_table_default } from "./as-window-table-JOTOi_Nm.mjs";
|
|
9
|
+
import { t as as_filters_default } from "./as-filters-BLFSS_VP.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 { columnDefaultCondition, columnFilterConditions, columnFilterType, conditionLabel, dateShortcuts, filledFilterCount, formatFilterCondition, isColumnFilterable, 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-C4EyRr2_.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-CWy0mjZl.mjs";
|
|
2
2
|
export { as_filter_dialog_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table = require("./use-table-
|
|
3
|
-
const require_as_table_base = require("./as-table-base-
|
|
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_as_table_base = require("./as-table-base-CNAn-vpa.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");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
2
|
-
import { r as useTable } from "./use-table-
|
|
3
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { r as useTable } from "./use-table-BTsNGBVx.mjs";
|
|
3
|
+
import { t as as_table_base_default } from "./as-table-base-lfyjPgsO.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, debounce, formatFilterCondition, isFilled, isSimpleEq, parseColumnFilterInput } from "@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-BQ9UlV0y.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-CW1_GHZT.mjs";
|
|
2
2
|
export { as_filter_field_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
4
|
-
import { t as as_residual_filter_default } from "./as-residual-filter-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-DRMXTk9M.mjs";
|
|
3
|
+
import { t as as_filter_field_default } from "./as-filter-field-CW1_GHZT.mjs";
|
|
4
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-CUTouIn5.mjs";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
6
6
|
import { filterExprKey } from "@atscript/ui-table";
|
|
7
7
|
import { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from "reka-ui";
|
|
@@ -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_filter_field = require("./as-filter-field-
|
|
4
|
-
const require_as_residual_filter = require("./as-residual-filter-
|
|
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_filter_field = require("./as-filter-field-BQ9UlV0y.cjs");
|
|
4
|
+
const require_as_residual_filter = require("./as-residual-filter-C8n7kdGW.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
7
7
|
let reka_ui = require("reka-ui");
|
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-DUfFkXAo.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-BLFSS_VP.mjs";
|
|
2
2
|
export { as_filters_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
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_seed_on_open = require("./use-seed-on-open-Dg9I89fU.cjs");
|
|
3
3
|
const require_error_message = require("./error-message-CfKpn_5w.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext, d as ASPECT_LABELS, f as ownerNameOf, p as readPresetLabel, u as ASPECT_ICONS } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, d as ASPECT_LABELS, f as ownerNameOf, p as readPresetLabel, u as ASPECT_ICONS } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DO3A1kIb.mjs";
|
|
3
3
|
import { t as errorMessage } from "./error-message-gNEXnnbb.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, nextTick, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
1
|
+
const require_as_preset_dialog = require("./as-preset-dialog-BlXqTZiT.cjs");
|
|
2
2
|
module.exports = require_as_preset_dialog.as_preset_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
1
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-CI2Hw8vi.mjs";
|
|
2
2
|
export { as_preset_dialog_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
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_error_message = require("./error-message-CfKpn_5w.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext, d as ASPECT_LABELS, f as ownerNameOf, p as readPresetLabel, u as ASPECT_ICONS } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, d as ASPECT_LABELS, f as ownerNameOf, p as readPresetLabel, u as ASPECT_ICONS } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { t as errorMessage } from "./error-message-gNEXnnbb.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, nextTick, normalizeClass, onScopeDispose, openBlock, ref, renderList, shallowRef, toDisplayString, unref, vModelCheckbox, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { isSystemPresetId } from "@atscript/ui-table";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
1
|
+
const require_as_preset_picker = require("./as-preset-picker-CVgyZBG7.cjs");
|
|
2
2
|
module.exports = require_as_preset_picker.as_preset_picker_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
1
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CbZDGPaf.mjs";
|
|
2
2
|
export { as_preset_picker_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-Ddr2UZzB.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
4
|
//#region src/components/defaults/as-residual-filter.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DuY-Mf8e.mjs";
|
|
2
2
|
import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString, unref } from "vue";
|
|
3
3
|
import { formatFilterExpr } from "@atscript/ui-table";
|
|
4
4
|
//#region src/components/defaults/as-residual-filter.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_residual_filter = require("./as-residual-filter-
|
|
1
|
+
const require_as_residual_filter = require("./as-residual-filter-C8n7kdGW.cjs");
|
|
2
2
|
module.exports = require_as_residual_filter.as_residual_filter_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_residual_filter_default } from "./as-residual-filter-
|
|
1
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-CUTouIn5.mjs";
|
|
2
2
|
export { as_residual_filter_default as default };
|
|
@@ -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/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -55,35 +55,29 @@ var as_row_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
55
55
|
}
|
|
56
56
|
const view = (0, vue.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
|
+
} : require_use_table_state.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 ? require_use_table_state.triggerBindings(single, singleHref) : void 0,
|
|
77
72
|
singleLabelOnly: !!single && !single.icon,
|
|
78
73
|
singleIntentClass: single ? require_use_table_state.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__ */ (0, vue.defineComponent)({
|
|
|
95
89
|
}
|
|
96
90
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = require_use_table_state.createNavigateGestures(state, promptCtx, hrefFor);
|
|
97
91
|
return (_ctx, _cache) => {
|
|
98
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createCommentVNode)(" table-layout: fixed needs a placeholder cell so column widths line up. "), view.value.total === 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_1)) : view.value.single ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_2, [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(view.value.
|
|
99
|
-
|
|
100
|
-
type: view.value.singleAsLink ? void 0 : "button",
|
|
101
|
-
class: (0, vue.normalizeClass)(["as-row-actions-btn", [view.value.singleLabelOnly ? "as-row-actions-btn-labelled" : void 0, view.value.singleIntentClass]]),
|
|
92
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createCommentVNode)(" table-layout: fixed needs a placeholder cell so column widths line up. "), view.value.total === 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_1)) : view.value.single && view.value.trigger ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_2, [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(view.value.trigger.tag), (0, vue.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] = (0, vue.withModifiers)(($event) => (0, vue.unref)(onTriggerAuxClick)(view.value.single, view.value.singleHref, view.value.singleAsLink, $event), ["stop"]))
|
|
107
|
-
}, {
|
|
95
|
+
onClick: _cache[0] || (_cache[0] = (0, vue.withModifiers)(($event) => (0, vue.unref)(onTriggerClick)(view.value.single, view.value.singleHref, $event), ["stop"])),
|
|
96
|
+
onAuxclick: _cache[1] || (_cache[1] = (0, vue.withModifiers)(($event) => (0, vue.unref)(onTriggerAuxClick)(view.value.single, view.value.singleHref, $event), ["stop"]))
|
|
97
|
+
}), {
|
|
108
98
|
default: (0, vue.withCtx)(() => [view.value.single.icon ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
109
99
|
key: 0,
|
|
110
100
|
class: (0, vue.normalizeClass)(["as-row-actions-btn-icon", view.value.single.icon]),
|
|
111
101
|
"aria-hidden": "true"
|
|
112
102
|
}, null, 2)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3, (0, vue.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
|
-
]))])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_4, [(0, vue.createVNode)((0, vue.unref)(reka_ui.DropdownMenuRoot), { modal: false }, {
|
|
104
|
+
}, 16, ["class", "data-default"]))])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_4, [(0, vue.createVNode)((0, vue.unref)(reka_ui.DropdownMenuRoot), { modal: false }, {
|
|
122
105
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DropdownMenuTrigger), { "as-child": "" }, {
|
|
123
106
|
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("button", {
|
|
124
107
|
type: "button",
|