@atscript/vue-table 0.1.132 → 0.1.133
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 +42 -30
- package/dist/as-action-form-dialog.mjs +42 -30
- package/dist/{as-action-menu-content-4UfcabUe.mjs → as-action-menu-content-4D7CJNgr.mjs} +1 -1
- package/dist/{as-action-menu-content-C5qx9MPE.cjs → as-action-menu-content-DiS37BYK.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.vue-DL5N9mKR.d.mts → as-column-menu.vue-CZ8XqHl0.d.cts} +2 -2
- package/dist/{as-column-menu.vue-u_DNy3f-.d.cts → as-column-menu.vue-Cuelpv3p.d.mts} +2 -2
- package/dist/{as-config-dialog-BehfqIGd.mjs → as-config-dialog-BKsm8OHR.mjs} +30 -22
- package/dist/{as-config-dialog-BOYWPYYH.cjs → as-config-dialog-Bt8oP8qg.cjs} +29 -21
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-bpN4A-KN.mjs → as-confirm-dialog-BV01t7dn.mjs} +12 -9
- package/dist/{as-confirm-dialog-UwhDHysk.cjs → as-confirm-dialog-Cw7KErhz.cjs} +12 -9
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-Dh2Ylthb.cjs → as-filter-dialog-Bxii-mYH.cjs} +31 -23
- package/dist/{as-filter-dialog-D1qzq-8b.mjs → as-filter-dialog-Ckrl79kU.mjs} +32 -24
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-DirBmnbb.mjs → as-filter-field-C-IFnj8K.mjs} +4 -4
- package/dist/{as-filter-field-DRsDJdpx.cjs → as-filter-field-xBr6TtKo.cjs} +4 -4
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filters-DJEQj7_p.mjs +125 -0
- package/dist/as-filters-DuCk8nkk.cjs +130 -0
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.d.cts +1 -1
- package/dist/as-filters.d.mts +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/as-filters.vue-BG_ysCkC.d.mts +65 -0
- package/dist/as-filters.vue-DcxDnWAU.d.cts +65 -0
- package/dist/{as-preset-dialog-CDqCAR7N.mjs → as-preset-dialog-CCIacZ2C.mjs} +70 -20
- package/dist/{as-preset-dialog-DpM06jqR.cjs → as-preset-dialog-jZeyXJeJ.cjs} +74 -24
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-jUS_YDX8.cjs → as-preset-picker-4xXU1KQz.cjs} +45 -21
- package/dist/{as-preset-picker-CISaxEZ0.mjs → as-preset-picker-DGSqQl9A.mjs} +39 -15
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-Bm6Bzyno.cjs → as-row-actions-B_OHWIAt.cjs} +2 -2
- package/dist/{as-row-actions-xqJeAdQl.mjs → as-row-actions-pukI1JT7.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-BWUPzjRn.cjs → as-table-BejpMVid.cjs} +22 -4
- package/dist/{as-table-CDSG2yED.mjs → as-table-D5_bQ0p5.mjs} +22 -4
- package/dist/{as-table-actions-DMxeaczm.mjs → as-table-actions-DKYK_mTO.mjs} +57 -11
- package/dist/{as-table-actions-gV4lqqxc.cjs → as-table-actions-qb0gQz2D.cjs} +56 -10
- 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-B-cgiCXP.d.cts → as-table-actions.vue-CckRRsL6.d.cts} +2 -2
- package/dist/{as-table-actions.vue-ClMa0OD1.d.mts → as-table-actions.vue-DsqauvXR.d.mts} +2 -2
- package/dist/{as-table-base-BaTE3VSN.mjs → as-table-base-B0arhJI8.mjs} +141 -46
- package/dist/{as-table-base-RG2TEIgV.cjs → as-table-base-Dfw012G5.cjs} +141 -46
- package/dist/{as-table-header-cell-CIqlO6Lw.cjs → as-table-header-cell-Bb4ddLmQ.cjs} +1 -1
- package/dist/{as-table-header-cell-Bdhl5Lox.mjs → as-table-header-cell-q-c_QklI.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-BCszzxtU.d.mts → as-table-header-cell.vue-BjVOEFqz.d.mts} +1 -1
- package/dist/{as-table-header-cell.vue-BzTzfGRo.d.cts → as-table-header-cell.vue-qS1Xfc-U.d.cts} +1 -1
- package/dist/{as-table-root-BLReUbRH.mjs → as-table-root-Bpsrp0Vz.mjs} +5 -5
- package/dist/{as-table-root-DLJ_3Jf4.cjs → as-table-root-CUDO9ybm.cjs} +5 -5
- 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-QMT93qPk.d.mts → as-table-root.vue-BPU92_Ns.d.mts} +55 -12
- package/dist/{as-table-root.vue-D0T3n-Vm.d.cts → as-table-root.vue-szvjZsCn.d.cts} +55 -12
- package/dist/{as-table-status-DGTZlpyq.mjs → as-table-status-B9jlzPPV.mjs} +53 -37
- package/dist/{as-table-status-Du4WLF4k.cjs → as-table-status-BgDexT2x.cjs} +53 -37
- 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-Ds7MEp37.d.cts → as-table.vue-4WhMA8AM.d.mts} +27 -3
- package/dist/{as-table.vue-Ce5606ZO.d.mts → as-table.vue-_urybtQj.d.cts} +27 -3
- package/dist/{as-window-table-jD_y9yet.cjs → as-window-table-CXq6UuUx.cjs} +98 -19
- package/dist/{as-window-table-DWujiUQy.mjs → as-window-table-S1XWpDHQ.mjs} +98 -19
- 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-DfZF1Mux.d.mts → as-window-table.vue-CWsJvOkL.d.mts} +25 -2
- package/dist/{as-window-table.vue-Bhf9BK8E.d.cts → as-window-table.vue-h1bdyMv7.d.cts} +25 -2
- package/dist/error-message-CglODWl4.cjs +18 -0
- package/dist/error-message-hPSAu8Ug.mjs +13 -0
- package/dist/index.cjs +61 -29
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +62 -30
- package/dist/{types-CTMxE_zA.d.cts → types-BZ0HssRY.d.cts} +126 -4
- package/dist/{types-ByU4O0Yf.d.mts → types-CXz-4dPz.d.mts} +126 -4
- package/dist/{use-table-CyFcVtUN.mjs → use-table-Bk-jSxOM.mjs} +26 -11
- package/dist/{use-table-nvBq1dZ4.cjs → use-table-CdFFqaEx.cjs} +24 -9
- package/dist/{use-table-component-DO_kvKSf.cjs → use-table-component-DlLganVc.cjs} +1 -1
- package/dist/{use-table-component-K6xj1obF.mjs → use-table-component-KuzZxAP8.mjs} +1 -1
- package/dist/{use-table-nav-bridge-DeGeaQX-.mjs → use-table-nav-bridge-B9SSEajW.mjs} +1 -1
- package/dist/{use-table-nav-bridge-uOQUDooh.cjs → use-table-nav-bridge-CVUmTjDr.cjs} +1 -1
- package/dist/{use-table-state-Oi2ds4_a.cjs → use-table-state-D6dHOFrA.cjs} +329 -53
- package/dist/{use-table-state-BxX3SpeW.mjs → use-table-state-DLJbW753.mjs} +295 -55
- package/package.json +9 -9
- package/dist/as-filters-DCZTHjf5.cjs +0 -51
- package/dist/as-filters-beIud9sF.mjs +0 -46
- package/dist/as-filters.vue-DmECMd1v.d.mts +0 -10
- package/dist/as-filters.vue-fv-tRL2H.d.cts +0 -10
- package/dist/preset-aspect-display-IICxAlVo.mjs +0 -43
- package/dist/preset-aspect-display-TWwf6j1B.cjs +0 -72
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-D6dHOFrA.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");
|
|
@@ -17,11 +17,11 @@ const _hoisted_3 = {
|
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_4 = { class: "as-action-form-body" };
|
|
19
19
|
const _hoisted_5 = {
|
|
20
|
-
key:
|
|
20
|
+
key: 0,
|
|
21
21
|
class: "as-action-form-status"
|
|
22
22
|
};
|
|
23
23
|
const _hoisted_6 = {
|
|
24
|
-
key:
|
|
24
|
+
key: 1,
|
|
25
25
|
class: "as-action-form-error"
|
|
26
26
|
};
|
|
27
27
|
const _hoisted_7 = {
|
|
@@ -42,17 +42,25 @@ var as_action_form_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
42
42
|
if (!v) state.dismissActionForm();
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
+
const display = state.actionFormDisplay;
|
|
45
46
|
const def = (0, vue.ref)(null);
|
|
46
47
|
const formData = (0, vue.ref)(null);
|
|
47
48
|
const loading = (0, vue.ref)(false);
|
|
48
49
|
const error = (0, vue.ref)(null);
|
|
50
|
+
(0, vue.watch)(display, (next) => {
|
|
51
|
+
if (next !== null) return;
|
|
52
|
+
def.value = null;
|
|
53
|
+
formData.value = null;
|
|
54
|
+
error.value = null;
|
|
55
|
+
loading.value = false;
|
|
56
|
+
});
|
|
49
57
|
const resolvedTypes = formTypes ?? (0, _atscript_vue_form.createDefaultTypes)();
|
|
50
58
|
(0, vue.watch)(req, async (next) => {
|
|
59
|
+
if (next === null) return;
|
|
51
60
|
def.value = null;
|
|
52
61
|
formData.value = null;
|
|
53
62
|
error.value = null;
|
|
54
63
|
loading.value = false;
|
|
55
|
-
if (next === null) return;
|
|
56
64
|
if (!next.action.inputForm) {
|
|
57
65
|
error.value = "Action does not declare an input form.";
|
|
58
66
|
return;
|
|
@@ -77,7 +85,7 @@ var as_action_form_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
77
85
|
}, { immediate: true });
|
|
78
86
|
const formId = `as-action-form-${(0, vue.useId)()}`;
|
|
79
87
|
const view = (0, vue.computed)(() => {
|
|
80
|
-
const r =
|
|
88
|
+
const r = display.value;
|
|
81
89
|
if (!r) return null;
|
|
82
90
|
const d = def.value;
|
|
83
91
|
const ids = r.identifiers;
|
|
@@ -131,10 +139,13 @@ var as_action_form_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
131
139
|
return (_ctx, _cache) => {
|
|
132
140
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogRoot), {
|
|
133
141
|
open: open.value,
|
|
134
|
-
"onUpdate:open": _cache[
|
|
142
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event)
|
|
135
143
|
}, {
|
|
136
144
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogPortal), null, {
|
|
137
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogOverlay), { class: "as-action-form-overlay" }), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
145
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogOverlay), { class: "as-action-form-overlay" }), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
146
|
+
class: "as-action-form-content",
|
|
147
|
+
onAfterLeave: _cache[1] || (_cache[1] = ($event) => (0, vue.unref)(state).releaseActionForm())
|
|
148
|
+
}, {
|
|
138
149
|
default: (0, vue.withCtx)(() => [view.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [
|
|
139
150
|
(0, vue.createElementVNode)("header", _hoisted_1, [
|
|
140
151
|
(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogTitle), { class: "as-action-form-title" }, {
|
|
@@ -169,35 +180,36 @@ var as_action_form_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
169
180
|
class: "as-action-form-close",
|
|
170
181
|
"aria-label": "Close"
|
|
171
182
|
}, {
|
|
172
|
-
default: (0, vue.withCtx)(() => [..._cache[
|
|
183
|
+
default: (0, vue.withCtx)(() => [..._cache[3] || (_cache[3] = [(0, vue.createElementVNode)("span", {
|
|
173
184
|
class: "i-as-close",
|
|
174
185
|
"aria-hidden": "true"
|
|
175
186
|
}, null, -1)])]),
|
|
176
187
|
_: 1
|
|
177
188
|
})
|
|
178
189
|
]),
|
|
179
|
-
(0, vue.createElementVNode)("div", _hoisted_4, [
|
|
180
|
-
|
|
181
|
-
class: "as-action-form-description"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
190
|
+
(0, vue.createElementVNode)("div", _hoisted_4, [
|
|
191
|
+
(0, vue.createCommentVNode)(" Always rendered: Reka warns and leaves\n `aria-describedby=\"undefined\"` on the surface when the action\n declares no description, so the fallback copy is kept\n screen-reader-only. "),
|
|
192
|
+
(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogDescription), { class: (0, vue.normalizeClass)(view.value.description ? "as-action-form-description" : "sr-only") }, {
|
|
193
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(view.value.description || `Provide the input for ${view.value.title}.`), 1)]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["class"]),
|
|
196
|
+
loading.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_5, "Loading form…")) : error.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_6, (0, vue.toDisplayString)(error.value), 1)) : def.value && formData.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_atscript_vue_form.AsForm), {
|
|
197
|
+
key: 2,
|
|
198
|
+
id: formId,
|
|
199
|
+
def: def.value,
|
|
200
|
+
"form-data": formData.value,
|
|
201
|
+
types: (0, vue.unref)(resolvedTypes),
|
|
202
|
+
components: (0, vue.unref)(formComponents),
|
|
203
|
+
"hide-root-title": "",
|
|
204
|
+
"hide-submit": "",
|
|
205
|
+
onSubmit
|
|
206
|
+
}, null, 8, [
|
|
207
|
+
"def",
|
|
208
|
+
"form-data",
|
|
209
|
+
"types",
|
|
210
|
+
"components"
|
|
211
|
+
])) : (0, vue.createCommentVNode)("v-if", true)
|
|
212
|
+
]),
|
|
201
213
|
def.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("footer", _hoisted_7, [(0, vue.createElementVNode)("button", {
|
|
202
214
|
type: "button",
|
|
203
215
|
class: "as-action-form-cancel",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as intentToScope, a as useTableContext } from "./use-table-state-DLJbW753.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";
|
|
@@ -17,11 +17,11 @@ const _hoisted_3 = {
|
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_4 = { class: "as-action-form-body" };
|
|
19
19
|
const _hoisted_5 = {
|
|
20
|
-
key:
|
|
20
|
+
key: 0,
|
|
21
21
|
class: "as-action-form-status"
|
|
22
22
|
};
|
|
23
23
|
const _hoisted_6 = {
|
|
24
|
-
key:
|
|
24
|
+
key: 1,
|
|
25
25
|
class: "as-action-form-error"
|
|
26
26
|
};
|
|
27
27
|
const _hoisted_7 = {
|
|
@@ -42,17 +42,25 @@ var as_action_form_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
if (!v) state.dismissActionForm();
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
+
const display = state.actionFormDisplay;
|
|
45
46
|
const def = ref(null);
|
|
46
47
|
const formData = ref(null);
|
|
47
48
|
const loading = ref(false);
|
|
48
49
|
const error = ref(null);
|
|
50
|
+
watch(display, (next) => {
|
|
51
|
+
if (next !== null) return;
|
|
52
|
+
def.value = null;
|
|
53
|
+
formData.value = null;
|
|
54
|
+
error.value = null;
|
|
55
|
+
loading.value = false;
|
|
56
|
+
});
|
|
49
57
|
const resolvedTypes = formTypes ?? createDefaultTypes();
|
|
50
58
|
watch(req, async (next) => {
|
|
59
|
+
if (next === null) return;
|
|
51
60
|
def.value = null;
|
|
52
61
|
formData.value = null;
|
|
53
62
|
error.value = null;
|
|
54
63
|
loading.value = false;
|
|
55
|
-
if (next === null) return;
|
|
56
64
|
if (!next.action.inputForm) {
|
|
57
65
|
error.value = "Action does not declare an input form.";
|
|
58
66
|
return;
|
|
@@ -77,7 +85,7 @@ var as_action_form_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
77
85
|
}, { immediate: true });
|
|
78
86
|
const formId = `as-action-form-${useId()}`;
|
|
79
87
|
const view = computed(() => {
|
|
80
|
-
const r =
|
|
88
|
+
const r = display.value;
|
|
81
89
|
if (!r) return null;
|
|
82
90
|
const d = def.value;
|
|
83
91
|
const ids = r.identifiers;
|
|
@@ -131,10 +139,13 @@ var as_action_form_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
131
139
|
return (_ctx, _cache) => {
|
|
132
140
|
return openBlock(), createBlock(unref(DialogRoot), {
|
|
133
141
|
open: open.value,
|
|
134
|
-
"onUpdate:open": _cache[
|
|
142
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event)
|
|
135
143
|
}, {
|
|
136
144
|
default: withCtx(() => [createVNode(unref(DialogPortal), null, {
|
|
137
|
-
default: withCtx(() => [createVNode(unref(DialogOverlay), { class: "as-action-form-overlay" }), createVNode(unref(DialogContent), {
|
|
145
|
+
default: withCtx(() => [createVNode(unref(DialogOverlay), { class: "as-action-form-overlay" }), createVNode(unref(DialogContent), {
|
|
146
|
+
class: "as-action-form-content",
|
|
147
|
+
onAfterLeave: _cache[1] || (_cache[1] = ($event) => unref(state).releaseActionForm())
|
|
148
|
+
}, {
|
|
138
149
|
default: withCtx(() => [view.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
139
150
|
createElementVNode("header", _hoisted_1, [
|
|
140
151
|
createVNode(unref(DialogTitle), { class: "as-action-form-title" }, {
|
|
@@ -169,35 +180,36 @@ var as_action_form_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
169
180
|
class: "as-action-form-close",
|
|
170
181
|
"aria-label": "Close"
|
|
171
182
|
}, {
|
|
172
|
-
default: withCtx(() => [..._cache[
|
|
183
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createElementVNode("span", {
|
|
173
184
|
class: "i-as-close",
|
|
174
185
|
"aria-hidden": "true"
|
|
175
186
|
}, null, -1)])]),
|
|
176
187
|
_: 1
|
|
177
188
|
})
|
|
178
189
|
]),
|
|
179
|
-
createElementVNode("div", _hoisted_4, [
|
|
180
|
-
|
|
181
|
-
class: "as-action-form-description"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
190
|
+
createElementVNode("div", _hoisted_4, [
|
|
191
|
+
createCommentVNode(" Always rendered: Reka warns and leaves\n `aria-describedby=\"undefined\"` on the surface when the action\n declares no description, so the fallback copy is kept\n screen-reader-only. "),
|
|
192
|
+
createVNode(unref(DialogDescription), { class: normalizeClass(view.value.description ? "as-action-form-description" : "sr-only") }, {
|
|
193
|
+
default: withCtx(() => [createTextVNode(toDisplayString(view.value.description || `Provide the input for ${view.value.title}.`), 1)]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["class"]),
|
|
196
|
+
loading.value ? (openBlock(), createElementBlock("p", _hoisted_5, "Loading form…")) : error.value ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(error.value), 1)) : def.value && formData.value ? (openBlock(), createBlock(unref(AsForm), {
|
|
197
|
+
key: 2,
|
|
198
|
+
id: formId,
|
|
199
|
+
def: def.value,
|
|
200
|
+
"form-data": formData.value,
|
|
201
|
+
types: unref(resolvedTypes),
|
|
202
|
+
components: unref(formComponents),
|
|
203
|
+
"hide-root-title": "",
|
|
204
|
+
"hide-submit": "",
|
|
205
|
+
onSubmit
|
|
206
|
+
}, null, 8, [
|
|
207
|
+
"def",
|
|
208
|
+
"form-data",
|
|
209
|
+
"types",
|
|
210
|
+
"components"
|
|
211
|
+
])) : createCommentVNode("v-if", true)
|
|
212
|
+
]),
|
|
201
213
|
def.value ? (openBlock(), createElementBlock("footer", _hoisted_7, [createElementVNode("button", {
|
|
202
214
|
type: "button",
|
|
203
215
|
class: "as-action-form-cancel",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as isModClick, _ as ariaLabelFor, w as isPlainLeftClick, x as intentClass } from "./use-table-state-DLJbW753.mjs";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
3
|
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from "reka-ui";
|
|
4
4
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-CZ8XqHl0.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-Cuelpv3p.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-BZ0HssRY.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 { n as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-CXz-4dPz.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,9 +1,9 @@
|
|
|
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-DLJbW753.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-KuzZxAP8.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, sortersEqual } from "@atscript/ui-table";
|
|
6
|
-
import { DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, ListboxContent, ListboxFilter, ListboxItem, ListboxItemIndicator, ListboxRoot, TabsContent, TabsList, TabsRoot, TabsTrigger } from "reka-ui";
|
|
6
|
+
import { DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, ListboxContent, ListboxFilter, ListboxItem, ListboxItemIndicator, ListboxRoot, TabsContent, TabsList, TabsRoot, TabsTrigger } from "reka-ui";
|
|
7
7
|
//#region src/composables/use-dialog-tab-keyboard.ts
|
|
8
8
|
/**
|
|
9
9
|
* Cmd/Ctrl+digit tab switching for dialogs. Owns the keyboard-handler logic
|
|
@@ -556,19 +556,27 @@ var as_config_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
556
556
|
onKeydown: unref(onDialogKeydown)
|
|
557
557
|
}, {
|
|
558
558
|
default: withCtx(() => [
|
|
559
|
-
createElementVNode("div", _hoisted_1, [
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
"aria-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
559
|
+
createElementVNode("div", _hoisted_1, [
|
|
560
|
+
createVNode(unref(DialogTitle), { class: "as-config-dialog-title" }, {
|
|
561
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("Table Settings", -1)])]),
|
|
562
|
+
_: 1
|
|
563
|
+
}),
|
|
564
|
+
createCommentVNode(" Reka requires a description on every DialogContent — without it\n it logs a warning and leaves `aria-describedby=\"undefined\"` on\n the surface. The dialog has no visible sub-heading, so the copy\n is screen-reader-only. "),
|
|
565
|
+
createVNode(unref(DialogDescription), { class: "sr-only" }, {
|
|
566
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode(" Choose which columns are visible, which fields appear in the filter bar, and the sort order of the table. ", -1)])]),
|
|
567
|
+
_: 1
|
|
568
|
+
}),
|
|
569
|
+
createVNode(unref(DialogClose), {
|
|
570
|
+
class: "as-config-dialog-close",
|
|
571
|
+
"aria-label": "Close"
|
|
572
|
+
}, {
|
|
573
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createElementVNode("span", {
|
|
574
|
+
class: "i-as-close",
|
|
575
|
+
"aria-hidden": "true"
|
|
576
|
+
}, null, -1)])]),
|
|
577
|
+
_: 1
|
|
578
|
+
})
|
|
579
|
+
]),
|
|
572
580
|
createVNode(unref(TabsRoot), {
|
|
573
581
|
modelValue: activeTab.value,
|
|
574
582
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => activeTab.value = $event),
|
|
@@ -582,11 +590,11 @@ var as_config_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
582
590
|
class: "as-config-tab-trigger"
|
|
583
591
|
}, {
|
|
584
592
|
default: withCtx(() => [
|
|
585
|
-
_cache[
|
|
593
|
+
_cache[9] || (_cache[9] = createElementVNode("span", {
|
|
586
594
|
class: "as-config-tab-icon i-as-columns",
|
|
587
595
|
"aria-hidden": "true"
|
|
588
596
|
}, null, -1)),
|
|
589
|
-
_cache[
|
|
597
|
+
_cache[10] || (_cache[10] = createTextVNode(" Columns ", -1)),
|
|
590
598
|
createElementVNode("span", { class: normalizeClass(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "columns" }]) }, toDisplayString(columnsModel.value.length), 3)
|
|
591
599
|
]),
|
|
592
600
|
_: 1
|
|
@@ -596,11 +604,11 @@ var as_config_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
596
604
|
class: "as-config-tab-trigger"
|
|
597
605
|
}, {
|
|
598
606
|
default: withCtx(() => [
|
|
599
|
-
_cache[
|
|
607
|
+
_cache[11] || (_cache[11] = createElementVNode("span", {
|
|
600
608
|
class: "as-config-tab-icon i-as-filter",
|
|
601
609
|
"aria-hidden": "true"
|
|
602
610
|
}, null, -1)),
|
|
603
|
-
_cache[
|
|
611
|
+
_cache[12] || (_cache[12] = createTextVNode(" Filters ", -1)),
|
|
604
612
|
createElementVNode("span", { class: normalizeClass(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "filters" }]) }, toDisplayString(filtersModel.value.length), 3)
|
|
605
613
|
]),
|
|
606
614
|
_: 1
|
|
@@ -610,11 +618,11 @@ var as_config_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
610
618
|
class: "as-config-tab-trigger"
|
|
611
619
|
}, {
|
|
612
620
|
default: withCtx(() => [
|
|
613
|
-
_cache[
|
|
621
|
+
_cache[13] || (_cache[13] = createElementVNode("span", {
|
|
614
622
|
class: "as-config-tab-icon i-as-sorters",
|
|
615
623
|
"aria-hidden": "true"
|
|
616
624
|
}, null, -1)),
|
|
617
|
-
_cache[
|
|
625
|
+
_cache[14] || (_cache[14] = createTextVNode(" Sorters ", -1)),
|
|
618
626
|
createElementVNode("span", { class: normalizeClass(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "sorters" }]) }, toDisplayString(sortersModel.value.length), 3)
|
|
619
627
|
]),
|
|
620
628
|
_: 1
|
|
@@ -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-D6dHOFrA.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-DlLganVc.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");
|
|
@@ -556,19 +556,27 @@ var as_config_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
556
556
|
onKeydown: (0, vue.unref)(onDialogKeydown)
|
|
557
557
|
}, {
|
|
558
558
|
default: (0, vue.withCtx)(() => [
|
|
559
|
-
(0, vue.createElementVNode)("div", _hoisted_1, [
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
"aria-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
559
|
+
(0, vue.createElementVNode)("div", _hoisted_1, [
|
|
560
|
+
(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogTitle), { class: "as-config-dialog-title" }, {
|
|
561
|
+
default: (0, vue.withCtx)(() => [..._cache[6] || (_cache[6] = [(0, vue.createTextVNode)("Table Settings", -1)])]),
|
|
562
|
+
_: 1
|
|
563
|
+
}),
|
|
564
|
+
(0, vue.createCommentVNode)(" Reka requires a description on every DialogContent — without it\n it logs a warning and leaves `aria-describedby=\"undefined\"` on\n the surface. The dialog has no visible sub-heading, so the copy\n is screen-reader-only. "),
|
|
565
|
+
(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogDescription), { class: "sr-only" }, {
|
|
566
|
+
default: (0, vue.withCtx)(() => [..._cache[7] || (_cache[7] = [(0, vue.createTextVNode)(" Choose which columns are visible, which fields appear in the filter bar, and the sort order of the table. ", -1)])]),
|
|
567
|
+
_: 1
|
|
568
|
+
}),
|
|
569
|
+
(0, vue.createVNode)((0, vue.unref)(reka_ui.DialogClose), {
|
|
570
|
+
class: "as-config-dialog-close",
|
|
571
|
+
"aria-label": "Close"
|
|
572
|
+
}, {
|
|
573
|
+
default: (0, vue.withCtx)(() => [..._cache[8] || (_cache[8] = [(0, vue.createElementVNode)("span", {
|
|
574
|
+
class: "i-as-close",
|
|
575
|
+
"aria-hidden": "true"
|
|
576
|
+
}, null, -1)])]),
|
|
577
|
+
_: 1
|
|
578
|
+
})
|
|
579
|
+
]),
|
|
572
580
|
(0, vue.createVNode)((0, vue.unref)(reka_ui.TabsRoot), {
|
|
573
581
|
modelValue: activeTab.value,
|
|
574
582
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => activeTab.value = $event),
|
|
@@ -582,11 +590,11 @@ var as_config_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
582
590
|
class: "as-config-tab-trigger"
|
|
583
591
|
}, {
|
|
584
592
|
default: (0, vue.withCtx)(() => [
|
|
585
|
-
_cache[
|
|
593
|
+
_cache[9] || (_cache[9] = (0, vue.createElementVNode)("span", {
|
|
586
594
|
class: "as-config-tab-icon i-as-columns",
|
|
587
595
|
"aria-hidden": "true"
|
|
588
596
|
}, null, -1)),
|
|
589
|
-
_cache[
|
|
597
|
+
_cache[10] || (_cache[10] = (0, vue.createTextVNode)(" Columns ", -1)),
|
|
590
598
|
(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "columns" }]) }, (0, vue.toDisplayString)(columnsModel.value.length), 3)
|
|
591
599
|
]),
|
|
592
600
|
_: 1
|
|
@@ -596,11 +604,11 @@ var as_config_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
596
604
|
class: "as-config-tab-trigger"
|
|
597
605
|
}, {
|
|
598
606
|
default: (0, vue.withCtx)(() => [
|
|
599
|
-
_cache[
|
|
607
|
+
_cache[11] || (_cache[11] = (0, vue.createElementVNode)("span", {
|
|
600
608
|
class: "as-config-tab-icon i-as-filter",
|
|
601
609
|
"aria-hidden": "true"
|
|
602
610
|
}, null, -1)),
|
|
603
|
-
_cache[
|
|
611
|
+
_cache[12] || (_cache[12] = (0, vue.createTextVNode)(" Filters ", -1)),
|
|
604
612
|
(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "filters" }]) }, (0, vue.toDisplayString)(filtersModel.value.length), 3)
|
|
605
613
|
]),
|
|
606
614
|
_: 1
|
|
@@ -610,11 +618,11 @@ var as_config_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
610
618
|
class: "as-config-tab-trigger"
|
|
611
619
|
}, {
|
|
612
620
|
default: (0, vue.withCtx)(() => [
|
|
613
|
-
_cache[
|
|
621
|
+
_cache[13] || (_cache[13] = (0, vue.createElementVNode)("span", {
|
|
614
622
|
class: "as-config-tab-icon i-as-sorters",
|
|
615
623
|
"aria-hidden": "true"
|
|
616
624
|
}, null, -1)),
|
|
617
|
-
_cache[
|
|
625
|
+
_cache[14] || (_cache[14] = (0, vue.createTextVNode)(" Sorters ", -1)),
|
|
618
626
|
(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["as-config-tab-count", { "as-config-tab-count-active": activeTab.value === "sorters" }]) }, (0, vue.toDisplayString)(sortersModel.value.length), 3)
|
|
619
627
|
]),
|
|
620
628
|
_: 1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
1
|
+
const require_as_config_dialog = require("./as-config-dialog-Bt8oP8qg.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-BKsm8OHR.mjs";
|
|
2
2
|
export { as_config_dialog_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-DLJbW753.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
|
|
@@ -16,29 +16,32 @@ var as_confirm_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
if (!val) state.dismissPrompt();
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const req =
|
|
19
|
+
const req = state.confirmDisplay;
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
21
|
return openBlock(), createBlock(unref(AlertDialogRoot), {
|
|
22
22
|
open: isOpen.value,
|
|
23
|
-
"onUpdate:open": _cache[
|
|
23
|
+
"onUpdate:open": _cache[3] || (_cache[3] = ($event) => isOpen.value = $event)
|
|
24
24
|
}, {
|
|
25
25
|
default: withCtx(() => [createVNode(unref(AlertDialogPortal), null, {
|
|
26
|
-
default: withCtx(() => [createVNode(unref(AlertDialogOverlay), { class: "as-confirm-dialog-overlay" }), createVNode(unref(AlertDialogContent), {
|
|
26
|
+
default: withCtx(() => [createVNode(unref(AlertDialogOverlay), { class: "as-confirm-dialog-overlay" }), createVNode(unref(AlertDialogContent), {
|
|
27
|
+
class: "as-confirm-dialog-content",
|
|
28
|
+
onAfterLeave: _cache[2] || (_cache[2] = ($event) => unref(state).releaseConfirm())
|
|
29
|
+
}, {
|
|
27
30
|
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(AlertDialogTitle), { class: "as-confirm-dialog-title" }, {
|
|
28
|
-
default: withCtx(() => [..._cache[
|
|
31
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode("Confirmation", -1)])]),
|
|
29
32
|
_: 1
|
|
30
33
|
}), createVNode(unref(AlertDialogDescription), { class: "as-confirm-dialog-body" }, {
|
|
31
|
-
default: withCtx(() => [createTextVNode(toDisplayString(req
|
|
34
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(req)?.message), 1)]),
|
|
32
35
|
_: 1
|
|
33
36
|
})]), createElementVNode("div", _hoisted_2, [createElementVNode("button", {
|
|
34
37
|
type: "button",
|
|
35
38
|
class: "as-confirm-dialog-cancel",
|
|
36
39
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(state).dismissPrompt())
|
|
37
|
-
}, toDisplayString(req
|
|
40
|
+
}, toDisplayString(unref(req)?.cancelButton ?? "Cancel"), 1), createElementVNode("button", {
|
|
38
41
|
type: "button",
|
|
39
|
-
class: normalizeClass(["as-confirm-dialog-confirm", req
|
|
42
|
+
class: normalizeClass(["as-confirm-dialog-confirm", unref(req)?.scope ? `as-confirm-dialog-confirm-${unref(req).scope}` : void 0]),
|
|
40
43
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(state).acceptPrompt())
|
|
41
|
-
}, toDisplayString(req
|
|
44
|
+
}, toDisplayString(unref(req)?.confirmButton ?? "Confirm"), 3)])]),
|
|
42
45
|
_: 1
|
|
43
46
|
})]),
|
|
44
47
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-D6dHOFrA.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
|
|
@@ -16,29 +16,32 @@ var as_confirm_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16
16
|
if (!val) state.dismissPrompt();
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const req =
|
|
19
|
+
const req = state.confirmDisplay;
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
21
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AlertDialogRoot), {
|
|
22
22
|
open: isOpen.value,
|
|
23
|
-
"onUpdate:open": _cache[
|
|
23
|
+
"onUpdate:open": _cache[3] || (_cache[3] = ($event) => isOpen.value = $event)
|
|
24
24
|
}, {
|
|
25
25
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogPortal), null, {
|
|
26
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogOverlay), { class: "as-confirm-dialog-overlay" }), (0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogContent), {
|
|
26
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogOverlay), { class: "as-confirm-dialog-overlay" }), (0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogContent), {
|
|
27
|
+
class: "as-confirm-dialog-content",
|
|
28
|
+
onAfterLeave: _cache[2] || (_cache[2] = ($event) => (0, vue.unref)(state).releaseConfirm())
|
|
29
|
+
}, {
|
|
27
30
|
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1, [(0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogTitle), { class: "as-confirm-dialog-title" }, {
|
|
28
|
-
default: (0, vue.withCtx)(() => [..._cache[
|
|
31
|
+
default: (0, vue.withCtx)(() => [..._cache[4] || (_cache[4] = [(0, vue.createTextVNode)("Confirmation", -1)])]),
|
|
29
32
|
_: 1
|
|
30
33
|
}), (0, vue.createVNode)((0, vue.unref)(reka_ui.AlertDialogDescription), { class: "as-confirm-dialog-body" }, {
|
|
31
|
-
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(req
|
|
34
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(req)?.message), 1)]),
|
|
32
35
|
_: 1
|
|
33
36
|
})]), (0, vue.createElementVNode)("div", _hoisted_2, [(0, vue.createElementVNode)("button", {
|
|
34
37
|
type: "button",
|
|
35
38
|
class: "as-confirm-dialog-cancel",
|
|
36
39
|
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(state).dismissPrompt())
|
|
37
|
-
}, (0, vue.toDisplayString)(req
|
|
40
|
+
}, (0, vue.toDisplayString)((0, vue.unref)(req)?.cancelButton ?? "Cancel"), 1), (0, vue.createElementVNode)("button", {
|
|
38
41
|
type: "button",
|
|
39
|
-
class: (0, vue.normalizeClass)(["as-confirm-dialog-confirm", req
|
|
42
|
+
class: (0, vue.normalizeClass)(["as-confirm-dialog-confirm", (0, vue.unref)(req)?.scope ? `as-confirm-dialog-confirm-${(0, vue.unref)(req).scope}` : void 0]),
|
|
40
43
|
onClick: _cache[1] || (_cache[1] = ($event) => (0, vue.unref)(state).acceptPrompt())
|
|
41
|
-
}, (0, vue.toDisplayString)(req
|
|
44
|
+
}, (0, vue.toDisplayString)((0, vue.unref)(req)?.confirmButton ?? "Confirm"), 3)])]),
|
|
42
45
|
_: 1
|
|
43
46
|
})]),
|
|
44
47
|
_: 1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
1
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-Cw7KErhz.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-BV01t7dn.mjs";
|
|
2
2
|
export { as_confirm_dialog_default as default };
|