@alfakit/vue 0.1.1 → 0.1.2

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/actions/ActionButton.js.map +1 -1
  3. package/dist/components/actions/ActionButton.vue.d.ts.map +1 -1
  4. package/dist/components/actions/ActionButton.vue_vue_type_script_setup_true_lang.js +160 -159
  5. package/dist/components/actions/ActionButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  6. package/dist/components/actions/ActionModal.js.map +1 -1
  7. package/dist/components/actions/ActionModal.vue.d.ts.map +1 -1
  8. package/dist/components/actions/ActionModal.vue_vue_type_script_setup_true_lang.js +214 -214
  9. package/dist/components/actions/ActionModal.vue_vue_type_script_setup_true_lang.js.map +1 -1
  10. package/dist/components/fields/ColorPickerField.js.map +1 -1
  11. package/dist/components/fields/ColorPickerField.vue.d.ts.map +1 -1
  12. package/dist/components/fields/ColorPickerField.vue_vue_type_script_setup_true_lang.js +1 -0
  13. package/dist/components/fields/ColorPickerField.vue_vue_type_script_setup_true_lang.js.map +1 -1
  14. package/dist/components/fields/ComboboxSelect.js.map +1 -1
  15. package/dist/components/fields/ComboboxSelect.vue.d.ts.map +1 -1
  16. package/dist/components/fields/ComboboxSelect.vue_vue_type_script_setup_true_lang.js +1 -1
  17. package/dist/components/fields/ComboboxSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  18. package/dist/components/fields/FileUploadField.js.map +1 -1
  19. package/dist/components/fields/FileUploadField.vue.d.ts.map +1 -1
  20. package/dist/components/fields/FileUploadField.vue_vue_type_script_setup_true_lang.js +183 -183
  21. package/dist/components/fields/FileUploadField.vue_vue_type_script_setup_true_lang.js.map +1 -1
  22. package/dist/components/fields/OneTimeCodeInputField.js.map +1 -1
  23. package/dist/components/fields/OneTimeCodeInputField.vue_vue_type_script_setup_true_lang.js +1 -2
  24. package/dist/components/fields/OneTimeCodeInputField.vue_vue_type_script_setup_true_lang.js.map +1 -1
  25. package/dist/components/fields/SelectField.js.map +1 -1
  26. package/dist/components/fields/SelectField.vue.d.ts.map +1 -1
  27. package/dist/components/fields/SelectField.vue_vue_type_script_setup_true_lang.js +2 -2
  28. package/dist/components/fields/SelectField.vue_vue_type_script_setup_true_lang.js.map +1 -1
  29. package/dist/components/fields/TableColumnHeaders.js.map +1 -1
  30. package/dist/components/fields/TableColumnHeaders.vue.d.ts.map +1 -1
  31. package/dist/components/fields/TableColumnHeaders.vue_vue_type_script_setup_true_lang.js +6 -3
  32. package/dist/components/fields/TableColumnHeaders.vue_vue_type_script_setup_true_lang.js.map +1 -1
  33. package/dist/components/file-manager/FileManagerView.js.map +1 -1
  34. package/dist/components/file-manager/FileManagerView.vue_vue_type_script_setup_true_lang.js +1 -1
  35. package/dist/components/file-manager/FileManagerView.vue_vue_type_script_setup_true_lang.js.map +1 -1
  36. package/dist/components/form/FormBlock.js.map +1 -1
  37. package/dist/components/form/FormBlock.vue.d.ts.map +1 -1
  38. package/dist/components/form/FormBlock.vue_vue_type_script_setup_true_lang.js +81 -77
  39. package/dist/components/form/FormBlock.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/components/form/form-context.js +25 -25
  41. package/dist/components/form/form-context.js.map +1 -1
  42. package/dist/components/layout/FusedGroupComponent.js.map +1 -1
  43. package/dist/components/layout/FusedGroupComponent.vue.d.ts.map +1 -1
  44. package/dist/components/layout/FusedGroupComponent.vue_vue_type_script_setup_true_lang.js +1 -0
  45. package/dist/components/layout/FusedGroupComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  46. package/dist/components/layout/TabsComponent.js.map +1 -1
  47. package/dist/components/layout/TabsComponent.vue.d.ts.map +1 -1
  48. package/dist/components/layout/TabsComponent.vue_vue_type_script_setup_true_lang.js +76 -55
  49. package/dist/components/layout/TabsComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  50. package/dist/components/notifications/NotificationsMenu.js.map +1 -1
  51. package/dist/components/notifications/NotificationsMenu.vue.d.ts.map +1 -1
  52. package/dist/components/notifications/NotificationsMenu.vue_vue_type_script_setup_true_lang.js +44 -42
  53. package/dist/components/notifications/NotificationsMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/components/panel/GlobalSearch.js.map +1 -1
  55. package/dist/components/panel/GlobalSearch.vue.d.ts.map +1 -1
  56. package/dist/components/panel/GlobalSearch.vue_vue_type_script_setup_true_lang.js +1 -0
  57. package/dist/components/panel/GlobalSearch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  58. package/dist/components/panel/ShortcutKeys.js.map +1 -1
  59. package/dist/components/panel/ShortcutKeys.vue.d.ts.map +1 -1
  60. package/dist/components/panel/ShortcutKeys.vue_vue_type_script_setup_true_lang.js +4 -1
  61. package/dist/components/panel/ShortcutKeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
  62. package/dist/components/panel/TenantMenu.js.map +1 -1
  63. package/dist/components/panel/TenantMenu.vue_vue_type_script_setup_true_lang.js +2 -2
  64. package/dist/components/panel/TenantMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  65. package/dist/components/table/GroupHeaderRow.js.map +1 -1
  66. package/dist/components/table/GroupHeaderRow.vue.d.ts.map +1 -1
  67. package/dist/components/table/GroupHeaderRow.vue_vue_type_script_setup_true_lang.js +55 -34
  68. package/dist/components/table/GroupHeaderRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  69. package/dist/components/table/SelectCell.js.map +1 -1
  70. package/dist/components/table/SelectCell.vue.d.ts.map +1 -1
  71. package/dist/components/table/SelectCell.vue_vue_type_script_setup_true_lang.js +24 -19
  72. package/dist/components/table/SelectCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  73. package/dist/components/table/TextInputCell.js.map +1 -1
  74. package/dist/components/table/TextInputCell.vue.d.ts.map +1 -1
  75. package/dist/components/table/TextInputCell.vue_vue_type_script_setup_true_lang.js +38 -33
  76. package/dist/components/table/TextInputCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  77. package/dist/components.css +347 -0
  78. package/dist/eject-manifest.json +2 -2
  79. package/dist/standalone/AlfakitToaster.js.map +1 -1
  80. package/dist/standalone/AlfakitToaster.vue.d.ts.map +1 -1
  81. package/dist/standalone/AlfakitToaster.vue_vue_type_script_setup_true_lang.js +23 -15
  82. package/dist/standalone/AlfakitToaster.vue_vue_type_script_setup_true_lang.js.map +1 -1
  83. package/dist/standalone.css +47 -0
  84. package/dist/starter-kit/widgets/SearchTrigger.js.map +1 -1
  85. package/dist/starter-kit/widgets/SearchTrigger.vue.d.ts.map +1 -1
  86. package/dist/starter-kit/widgets/SearchTrigger.vue_vue_type_script_setup_true_lang.js +1 -0
  87. package/dist/starter-kit/widgets/SearchTrigger.vue_vue_type_script_setup_true_lang.js.map +1 -1
  88. package/dist/starter-kit/widgets/TenantChooser.js.map +1 -1
  89. package/dist/starter-kit/widgets/TenantChooser.vue_vue_type_script_setup_true_lang.js +1 -1
  90. package/dist/starter-kit/widgets/TenantChooser.vue_vue_type_script_setup_true_lang.js.map +1 -1
  91. package/dist/themes.css +2 -334
  92. package/package.json +3 -3
  93. package/src/components/actions/ActionButton.vue +14 -6
  94. package/src/components/actions/ActionModal.vue +3 -1
  95. package/src/components/fields/ColorPickerField.vue +1 -0
  96. package/src/components/fields/ComboboxSelect.vue +1 -1
  97. package/src/components/fields/FileUploadField.vue +14 -11
  98. package/src/components/fields/OneTimeCodeInputField.vue +1 -1
  99. package/src/components/fields/SelectField.vue +4 -2
  100. package/src/components/fields/TableColumnHeaders.vue +6 -1
  101. package/src/components/file-manager/FileManagerView.vue +1 -1
  102. package/src/components/form/FormBlock.vue +24 -0
  103. package/src/components/form/form-context.ts +2 -2
  104. package/src/components/layout/FusedGroupComponent.vue +1 -0
  105. package/src/components/layout/TabsComponent.vue +61 -5
  106. package/src/components/notifications/NotificationsMenu.vue +11 -0
  107. package/src/components/panel/GlobalSearch.vue +1 -0
  108. package/src/components/panel/ShortcutKeys.vue +1 -0
  109. package/src/components/panel/TenantMenu.vue +2 -2
  110. package/src/components/table/GroupHeaderRow.vue +27 -0
  111. package/src/components/table/SelectCell.vue +5 -2
  112. package/src/components/table/TextInputCell.vue +11 -5
  113. package/src/standalone/AlfakitToaster.vue +12 -2
  114. package/src/starter-kit/widgets/SearchTrigger.vue +1 -0
  115. package/src/starter-kit/widgets/TenantChooser.vue +1 -1
@@ -1,35 +1,35 @@
1
1
  import { useActionRunner as e, useDirection as t, usePanel as n, useT as r } from "../../context.js";
2
2
  import { cn as i } from "../../lib/utils.js";
3
- import { useStore as a } from "../../composables/use-store.js";
4
- import { colorClass as o, iconBackgroundColorClasses as s, outlineButtonColorClasses as c, solidButtonColorClasses as l } from "../../lib/colors.js";
5
- import u from "../../lib/Icon.js";
6
- import d from "../ui/Button2.js";
7
- import f from "../ui/Spinner.js";
8
- import p from "./ActionList.js";
9
- import { provideForm as ee } from "../form/form-context.js";
10
- import m from "../schema/SchemaRenderer.js";
11
- import { showToast as te } from "../notifications/flash-toasts.js";
12
- import h from "../panel/Slot.js";
13
- import ne from "../ui/Dialog.js";
14
- import re from "../ui/DialogContent.js";
15
- import g from "../ui/DialogDescription.js";
16
- import ie from "../ui/DialogHeader.js";
17
- import ae from "../ui/DialogTitle.js";
18
- import oe from "../ui/Sheet.js";
19
- import se from "../ui/SheetContent.js";
20
- import _ from "../ui/SheetDescription.js";
21
- import ce from "../ui/SheetHeader.js";
22
- import le from "../ui/SheetTitle.js";
23
- import ue from "../ui/DialogFooter.js";
24
- import de from "../ui/SheetFooter.js";
25
- import v from "./ActionModalPassword.js";
26
- import { FormStore as fe, PASSWORD_CONFIRMATION_INPUT as pe, actionFormComponent as me, actionFormParams as he, confirmModalClose as ge, guardModalUnload as _e, isModalSubmitVisible as ve, modalFooterAlignment as ye, nestedActionContext as be, scheduleAutofocus as xe, slideOverSide as Se, wizardProgressStore as Ce } from "@alfakit/core";
27
- import { computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, defineComponent as E, nextTick as D, normalizeClass as O, onMounted as we, onScopeDispose as k, openBlock as A, ref as Te, toDisplayString as j, unref as M, useId as Ee, watch as N, withCtx as P, withModifiers as F } from "vue";
3
+ import { useStore as ee } from "../../composables/use-store.js";
4
+ import { colorClass as a, iconBackgroundColorClasses as o, outlineButtonColorClasses as s, solidButtonColorClasses as c } from "../../lib/colors.js";
5
+ import l from "../../lib/Icon.js";
6
+ import u from "../ui/Button2.js";
7
+ import d from "../ui/Spinner.js";
8
+ import f from "./ActionList.js";
9
+ import { provideForm as te } from "../form/form-context.js";
10
+ import p from "../schema/SchemaRenderer.js";
11
+ import { showToast as ne } from "../notifications/flash-toasts.js";
12
+ import m from "../panel/Slot.js";
13
+ import re from "../ui/Dialog.js";
14
+ import ie from "../ui/DialogContent.js";
15
+ import h from "../ui/DialogDescription.js";
16
+ import ae from "../ui/DialogHeader.js";
17
+ import oe from "../ui/DialogTitle.js";
18
+ import se from "../ui/Sheet.js";
19
+ import ce from "../ui/SheetContent.js";
20
+ import g from "../ui/SheetDescription.js";
21
+ import le from "../ui/SheetHeader.js";
22
+ import ue from "../ui/SheetTitle.js";
23
+ import de from "../ui/DialogFooter.js";
24
+ import fe from "../ui/SheetFooter.js";
25
+ import _ from "./ActionModalPassword.js";
26
+ import { FormStore as pe, PASSWORD_CONFIRMATION_INPUT as me, actionFormComponent as he, actionFormParams as ge, confirmModalClose as _e, formIdPrefix as ve, guardModalUnload as ye, isModalSubmitVisible as be, modalFooterAlignment as xe, nestedActionContext as Se, scheduleAutofocus as Ce, slideOverSide as we, wizardProgressStore as Te } from "@alfakit/core";
27
+ import { computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, nextTick as E, normalizeClass as D, onMounted as Ee, onScopeDispose as O, openBlock as k, ref as De, toDisplayString as A, unref as j, useId as Oe, watch as M, withCtx as N, withModifiers as P } from "vue";
28
28
  //#region src/components/actions/ActionModal.vue?vue&type=script&setup=true&lang.ts
29
- var De = ["data-alfakit-modal"], Oe = { class: "flex flex-col gap-1.5" }, ke = ["innerHTML"], Ae = { class: "flex-1 overflow-y-auto p-4" }, je = { class: "flex flex-col gap-6" }, Me = ["id"], Ne = ["data-alfakit-modal"], Pe = { class: "flex flex-col gap-1.5" }, Fe = ["innerHTML"], Ie = {
29
+ var ke = ["data-alfakit-modal"], Ae = { class: "flex flex-col gap-1.5" }, je = ["innerHTML"], Me = { class: "flex-1 overflow-y-auto p-4" }, Ne = { class: "flex flex-col gap-6" }, Pe = ["id"], Fe = ["data-alfakit-modal"], Ie = { class: "flex flex-col gap-1.5" }, Le = ["innerHTML"], Re = {
30
30
  key: 0,
31
31
  class: "flex flex-col gap-6"
32
- }, Le = ["id"], Re = { class: "sr-only" }, I = /*@__PURE__*/ E({
32
+ }, ze = ["id"], F = /*@__PURE__*/ T({
33
33
  __name: "ActionModal",
34
34
  props: {
35
35
  modal: {},
@@ -38,8 +38,8 @@ var De = ["data-alfakit-modal"], Oe = { class: "flex flex-col gap-1.5" }, ke = [
38
38
  default: !1
39
39
  }
40
40
  },
41
- setup(E) {
42
- let I = {
41
+ setup(T) {
42
+ let F = {
43
43
  "3xs": "sm:max-w-3xs",
44
44
  "2xs": "sm:max-w-2xs",
45
45
  xs: "sm:max-w-xs",
@@ -66,192 +66,193 @@ var De = ["data-alfakit-modal"], Oe = { class: "flex flex-col gap-1.5" }, ke = [
66
66
  "screen-2xl": "sm:max-w-(--breakpoint-2xl)",
67
67
  full: "sm:max-w-[calc(100%-2rem)]",
68
68
  screen: "sm:max-w-[calc(100%-2rem)] h-[calc(100%-2rem)]"
69
- }, ze = {
69
+ }, Be = {
70
70
  start: "sm:justify-start",
71
71
  center: "sm:justify-center",
72
72
  end: "sm:justify-end",
73
73
  between: "sm:justify-between"
74
- }, L = E, R = e(), z = n(), Be = t(), B = r(), V = L.modal.action, H = L.modal.context, U = y(() => L.modal.modal), W = U.value.form ? new fe(U.value.form, {
75
- token: H.token,
76
- component: me(V, H),
77
- record: H.record ?? null,
78
- refreshUrl: z.value.endpoints.schemaRefresh,
79
- optionsUrl: z.value.endpoints.schemaOptions,
80
- validateUrl: z.value.endpoints.schemaValidate,
81
- onNotifications: (e) => e.forEach((e) => te(e)),
82
- params: he(H)
74
+ }, I = T, L = e(), R = n(), Ve = t(), z = r(), B = I.modal.action, V = I.modal.context, H = v(() => I.modal.modal), U = H.value.form ? new pe(H.value.form, {
75
+ token: V.token,
76
+ component: he(B, V),
77
+ idPrefix: ve(he(B, V)),
78
+ record: V.record ?? null,
79
+ refreshUrl: R.value.endpoints.schemaRefresh,
80
+ optionsUrl: R.value.endpoints.schemaOptions,
81
+ validateUrl: R.value.endpoints.schemaValidate,
82
+ onNotifications: (e) => e.forEach((e) => ne(e)),
83
+ params: ge(V)
83
84
  }) : null;
84
- W && ee(W);
85
- let G = W ? a(W.store) : null;
86
- N(() => L.modal.errors, (e) => W?.setErrors(e), { immediate: !0 }), k(() => W?.destroy()), W && k(R.registerModalForm(V, H, W));
87
- let Ve = y(() => U.value.windowAttributes?.class), He = y(() => {
88
- let { class: e, ...t } = U.value.windowAttributes ?? {};
85
+ U && te(U);
86
+ let W = U ? ee(U.store) : null;
87
+ M(() => I.modal.errors, (e) => U?.setErrors(e), { immediate: !0 }), O(() => U?.destroy()), U && O(L.registerModalForm(B, V, U));
88
+ let G = v(() => H.value.windowAttributes?.class), He = v(() => {
89
+ let { class: e, ...t } = H.value.windowAttributes ?? {};
89
90
  return t;
90
- }), K = Ee(), Ue = (e, t) => {
91
+ }), K = Oe(), Ue = (e, t) => {
91
92
  for (let [n, r] of Object.entries(t)) r != null && r !== !1 && (n === "class" ? e.classList.add(...String(r).split(/\s+/).filter(Boolean)) : e.setAttribute(n, r === !0 ? "" : String(r)));
92
93
  }, We = () => {
93
- if (L.hidden || typeof document > "u") return;
94
+ if (I.hidden || typeof document > "u") return;
94
95
  let e = document.querySelector(`[data-alfakit-modal="${K}"]`)?.closest("[role=\"dialog\"]"), t = e?.previousElementSibling;
95
- e && Ue(e, He.value), t?.getAttribute("data-slot")?.endsWith("-overlay") && U.value.overlayAttributes && Ue(t, U.value.overlayAttributes);
96
+ e && Ue(e, He.value), t?.getAttribute("data-slot")?.endsWith("-overlay") && H.value.overlayAttributes && Ue(t, H.value.overlayAttributes);
96
97
  };
97
- we(() => void D(We)), N(() => L.hidden, () => void D(We), { flush: "post" });
98
- let Ge = y(() => ze[ye(U.value)]), Ke = y(() => ye(U.value) === "end" ? "sm:me-auto" : void 0), qe = y(() => Se(U.value.slideOverPosition, Be.value)), Je = W ? a(Ce(W)) : null, q = y(() => ve(U.value, Je?.value)), J = Te(""), Ye = y(() => L.modal.errors[pe]?.[0]), Xe = be(H, V), Ze = (e) => {
99
- let t = W?.state.values ?? {}, n = {
100
- ...U.value.passwordConfirmation ? { password: J.value } : {},
98
+ Ee(() => void E(We)), M(() => I.hidden, () => void E(We), { flush: "post" });
99
+ let Ge = v(() => Be[xe(H.value)]), Ke = v(() => xe(H.value) === "end" ? "sm:me-auto" : void 0), qe = v(() => we(H.value.slideOverPosition, Ve.value)), Je = U ? ee(Te(U)) : null, q = v(() => be(H.value, Je?.value)), J = De(""), Ye = v(() => I.modal.errors[me]?.[0]), Xe = Se(V, B), Ze = (e) => {
100
+ let t = U?.state.values ?? {}, n = {
101
+ ...H.value.passwordConfirmation ? { password: J.value } : {},
101
102
  ...e ? { createAnother: !0 } : {}
102
103
  };
103
- Object.keys(n).length > 0 ? R.execute(V, H, t, n) : R.execute(V, H, t);
104
+ Object.keys(n).length > 0 ? L.execute(B, V, t, n) : L.execute(B, V, t);
104
105
  }, Y = () => Ze(!1), X = () => Ze(!0);
105
- N(() => U.value.form, (e, t) => {
106
- e && e !== t && W?.fill(e);
107
- }), N(() => L.modal.refocus, (e, t, n) => {
108
- let r = U.value.form?.components;
109
- e && r && n(xe(() => document.getElementById(`action-form-${V.name}`), r));
106
+ M(() => H.value.form, (e, t) => {
107
+ e && e !== t && U?.fill(e);
108
+ }), M(() => I.modal.refocus, (e, t, n) => {
109
+ let r = H.value.form?.components;
110
+ e && r && n(Ce(() => document.getElementById(`action-form-${B.name}`), r));
110
111
  });
111
- let Qe = () => R.cancelModal(V.name), $e = B("unsaved_changes_close", {}, "You have unsaved changes. Close anyway?"), Z = () => {
112
- ge(U.value, W, $e) && Qe();
112
+ let Qe = () => L.cancelModal(B.name), $e = z("unsaved_changes_close", {}, "You have unsaved changes. Close anyway?"), Z = () => {
113
+ _e(H.value, U, $e) && Qe();
113
114
  };
114
- k(_e(U.value, W, $e));
115
- let et = y(() => U.value.cancelColor ? o(c, U.value.cancelColor) : ""), tt = y(() => U.value.createAnotherColor ? o(c, U.value.createAnotherColor) : ""), Q = y(() => U.value.heading ?? V.label ?? B("actions", {}, "Actions")), nt = (e) => {
116
- !e && !L.modal.processing && Z();
117
- }, $ = y(() => !!(U.value.submitLabel || U.value.cancelLabel || U.value.extraFooterActions?.length)), rt = y(() => !!(U.value.content || W || U.value.contentFooter || U.value.passwordConfirmation));
118
- return (e, t) => U.value.slideOver ? (A(), b(oe, {
115
+ O(ye(H.value, U, $e));
116
+ let et = v(() => H.value.cancelColor ? a(s, H.value.cancelColor) : ""), tt = v(() => H.value.createAnotherColor ? a(s, H.value.createAnotherColor) : ""), Q = v(() => H.value.heading ?? B.label ?? z("actions", {}, "Actions")), nt = (e) => {
117
+ !e && !I.modal.processing && Z();
118
+ }, $ = v(() => !!(H.value.submitLabel || H.value.cancelLabel || H.value.extraFooterActions?.length)), rt = v(() => !!(H.value.content || U || H.value.contentFooter || H.value.passwordConfirmation));
119
+ return (e, t) => H.value.slideOver ? (k(), y(se, {
119
120
  key: 0,
120
- open: !L.hidden,
121
- modal: !U.value.clickThrough,
121
+ open: !I.hidden,
122
+ modal: !H.value.clickThrough,
122
123
  "onUpdate:open": nt
123
124
  }, {
124
- default: P(() => [T(se, {
125
+ default: N(() => [w(ce, {
125
126
  side: qe.value,
126
- class: O(M(i)("flex w-full flex-col gap-0 p-0", I[U.value.width] ?? "sm:max-w-md", Ve.value)),
127
- "show-close-button": U.value.closeButton,
128
- onInteractOutside: t[1] ||= (e) => !U.value.closeByClickingAway && e.preventDefault(),
129
- onEscapeKeyDown: t[2] ||= (e) => !U.value.closeByEscaping && e.preventDefault()
127
+ class: D(j(i)("flex w-full flex-col gap-0 p-0", F[H.value.width] ?? "sm:max-w-md", G.value)),
128
+ "show-close-button": H.value.closeButton,
129
+ onInteractOutside: t[1] ||= (e) => !H.value.closeByClickingAway && e.preventDefault(),
130
+ onEscapeKeyDown: t[2] ||= (e) => !H.value.closeByEscaping && e.preventDefault()
130
131
  }, {
131
- default: P(() => [
132
- C("span", {
133
- "data-alfakit-modal": M(K),
132
+ default: N(() => [
133
+ S("span", {
134
+ "data-alfakit-modal": j(K),
134
135
  hidden: ""
135
- }, null, 8, De),
136
- T(ce, { class: "border-b" }, {
137
- default: P(() => [C("div", { class: O(M(i)("flex gap-4", U.value.alignment === "center" && "flex-col items-center text-center")) }, [U.value.icon ? (A(), S("div", {
136
+ }, null, 8, ke),
137
+ w(le, { class: "border-b" }, {
138
+ default: N(() => [S("div", { class: D(j(i)("flex gap-4", H.value.alignment === "center" && "flex-col items-center text-center")) }, [H.value.icon ? (k(), x("div", {
138
139
  key: 0,
139
- class: O(M(i)("flex size-10 shrink-0 items-center justify-center rounded-full", M(o)(M(s), U.value.iconColor, "primary")))
140
- }, [T(M(u), {
141
- name: U.value.icon,
140
+ class: D(j(i)("flex size-10 shrink-0 items-center justify-center rounded-full", j(a)(j(o), H.value.iconColor, "primary")))
141
+ }, [w(j(l), {
142
+ name: H.value.icon,
142
143
  class: "size-5"
143
- }, null, 8, ["name"])], 2)) : x("", !0), C("div", Oe, [T(le, { class: O(M(i)(!U.value.heading && "sr-only")) }, {
144
- default: P(() => [w(j(Q.value), 1)]),
144
+ }, null, 8, ["name"])], 2)) : b("", !0), S("div", Ae, [w(ue, { class: D(j(i)(!H.value.heading && "sr-only")) }, {
145
+ default: N(() => [C(A(Q.value), 1)]),
145
146
  _: 1
146
- }, 8, ["class"]), U.value.description ? (A(), b(_, { key: 0 }, {
147
- default: P(() => [C("span", { innerHTML: U.value.description }, null, 8, ke)]),
147
+ }, 8, ["class"]), H.value.description ? (k(), y(g, { key: 0 }, {
148
+ default: N(() => [S("span", { innerHTML: H.value.description }, null, 8, je)]),
148
149
  _: 1
149
- })) : (A(), b(_, {
150
+ })) : (k(), y(g, {
150
151
  key: 1,
151
152
  class: "sr-only"
152
153
  }, {
153
- default: P(() => [w(j(Q.value), 1)]),
154
+ default: N(() => [C(A(Q.value), 1)]),
154
155
  _: 1
155
156
  }))])], 2)]),
156
157
  _: 1
157
158
  }),
158
- C("div", Ae, [C("div", je, [
159
- U.value.content ? (A(), b(m, {
159
+ S("div", Me, [S("div", Ne, [
160
+ H.value.content ? (k(), y(p, {
160
161
  key: 0,
161
- components: U.value.content
162
- }, null, 8, ["components"])) : x("", !0),
163
- M(W) && M(G) ? (A(), b(h, {
162
+ components: H.value.content
163
+ }, null, 8, ["components"])) : b("", !0),
164
+ j(U) && j(W) ? (k(), y(m, {
164
165
  key: 1,
165
166
  name: "modal.schema.before",
166
- data: { action: M(V).name }
167
- }, null, 8, ["data"])) : x("", !0),
168
- M(W) && M(G) ? (A(), S("form", {
167
+ data: { action: j(B).name }
168
+ }, null, 8, ["data"])) : b("", !0),
169
+ j(U) && j(W) ? (k(), x("form", {
169
170
  key: 2,
170
- id: `action-form-${M(V).name}`,
171
- onSubmit: F(Y, ["prevent"])
172
- }, [T(m, {
173
- components: M(G).components,
174
- columns: M(G).columns
175
- }, null, 8, ["components", "columns"])], 40, Me)) : x("", !0),
176
- M(W) && M(G) ? (A(), b(h, {
171
+ id: `action-form-${j(B).name}`,
172
+ onSubmit: P(Y, ["prevent"])
173
+ }, [w(p, {
174
+ components: j(W).components,
175
+ columns: j(W).columns
176
+ }, null, 8, ["components", "columns"])], 40, Pe)) : b("", !0),
177
+ j(U) && j(W) ? (k(), y(m, {
177
178
  key: 3,
178
179
  name: "modal.schema.after",
179
- data: { action: M(V).name }
180
- }, null, 8, ["data"])) : x("", !0),
181
- U.value.contentFooter ? (A(), b(m, {
180
+ data: { action: j(B).name }
181
+ }, null, 8, ["data"])) : b("", !0),
182
+ H.value.contentFooter ? (k(), y(p, {
182
183
  key: 4,
183
- components: U.value.contentFooter
184
- }, null, 8, ["components"])) : x("", !0),
185
- U.value.passwordConfirmation ? (A(), b(v, {
184
+ components: H.value.contentFooter
185
+ }, null, 8, ["components"])) : b("", !0),
186
+ H.value.passwordConfirmation ? (k(), y(_, {
186
187
  key: 5,
187
188
  modelValue: J.value,
188
189
  "onUpdate:modelValue": t[0] ||= (e) => J.value = e,
189
190
  error: Ye.value,
190
191
  onSubmit: Y
191
- }, null, 8, ["modelValue", "error"])) : x("", !0)
192
+ }, null, 8, ["modelValue", "error"])) : b("", !0)
192
193
  ])]),
193
- $.value ? (A(), b(de, {
194
+ $.value ? (k(), y(fe, {
194
195
  key: 0,
195
- class: O(M(i)("border-t", U.value.stickyFooter && "bg-background sticky bottom-0"))
196
+ class: D(j(i)("border-t", H.value.stickyFooter && "bg-background sticky bottom-0"))
196
197
  }, {
197
- default: P(() => [C("div", { class: O(M(i)("flex w-full flex-col-reverse gap-2 sm:flex-row sm:items-center", Ge.value)) }, [
198
- U.value.extraFooterActions ? (A(), b(p, {
198
+ default: N(() => [S("div", { class: D(j(i)("flex w-full flex-col-reverse gap-2 sm:flex-row sm:items-center", Ge.value)) }, [
199
+ H.value.extraFooterActions ? (k(), y(f, {
199
200
  key: 0,
200
- actions: U.value.extraFooterActions,
201
- context: M(Xe),
202
- class: O(Ke.value)
201
+ actions: H.value.extraFooterActions,
202
+ context: j(Xe),
203
+ class: D(Ke.value)
203
204
  }, null, 8, [
204
205
  "actions",
205
206
  "context",
206
207
  "class"
207
- ])) : x("", !0),
208
- U.value.cancelLabel ? (A(), b(d, {
208
+ ])) : b("", !0),
209
+ H.value.cancelLabel ? (k(), y(u, {
209
210
  key: 1,
210
211
  type: "button",
211
212
  variant: "outline",
212
- class: O(et.value),
213
- disabled: L.modal.processing,
213
+ class: D(et.value),
214
+ disabled: I.modal.processing,
214
215
  onClick: Z
215
216
  }, {
216
- default: P(() => [w(j(U.value.cancelLabel), 1)]),
217
+ default: N(() => [C(A(H.value.cancelLabel), 1)]),
217
218
  _: 1
218
- }, 8, ["class", "disabled"])) : x("", !0),
219
- U.value.createAnotherLabel && U.value.submitLabel && q.value ? (A(), b(d, {
219
+ }, 8, ["class", "disabled"])) : b("", !0),
220
+ H.value.createAnotherLabel && H.value.submitLabel && q.value ? (k(), y(u, {
220
221
  key: 2,
221
222
  type: "button",
222
223
  variant: "outline",
223
224
  "data-slot": "create-another",
224
- class: O(tt.value),
225
- disabled: L.modal.processing,
225
+ class: D(tt.value),
226
+ disabled: I.modal.processing,
226
227
  onClick: X
227
228
  }, {
228
- default: P(() => [U.value.createAnotherIcon ? (A(), b(M(u), {
229
+ default: N(() => [H.value.createAnotherIcon ? (k(), y(j(l), {
229
230
  key: 0,
230
- name: U.value.createAnotherIcon
231
- }, null, 8, ["name"])) : x("", !0), w(j(U.value.createAnotherLabel), 1)]),
231
+ name: H.value.createAnotherIcon
232
+ }, null, 8, ["name"])) : b("", !0), C(A(H.value.createAnotherLabel), 1)]),
232
233
  _: 1
233
- }, 8, ["class", "disabled"])) : x("", !0),
234
- U.value.submitLabel && q.value ? (A(), b(d, {
234
+ }, 8, ["class", "disabled"])) : b("", !0),
235
+ H.value.submitLabel && q.value ? (k(), y(u, {
235
236
  key: 3,
236
237
  type: "button",
237
- class: O(M(o)(M(l), U.value.submitColor, "primary")),
238
- disabled: L.modal.processing,
239
- autofocus: U.value.autofocus && !M(W),
238
+ class: D(j(a)(j(c), H.value.submitColor, "primary")),
239
+ disabled: I.modal.processing,
240
+ autofocus: H.value.autofocus && !j(U),
240
241
  onClick: Y
241
242
  }, {
242
- default: P(() => [L.modal.processing ? (A(), b(f, { key: 0 })) : U.value.submitIcon ? (A(), b(M(u), {
243
+ default: N(() => [I.modal.processing ? (k(), y(d, { key: 0 })) : H.value.submitIcon ? (k(), y(j(l), {
243
244
  key: 1,
244
- name: U.value.submitIcon
245
- }, null, 8, ["name"])) : x("", !0), w(" " + j(U.value.submitLabel), 1)]),
245
+ name: H.value.submitIcon
246
+ }, null, 8, ["name"])) : b("", !0), C(" " + A(H.value.submitLabel), 1)]),
246
247
  _: 1
247
248
  }, 8, [
248
249
  "class",
249
250
  "disabled",
250
251
  "autofocus"
251
- ])) : x("", !0)
252
+ ])) : b("", !0)
252
253
  ], 2)]),
253
254
  _: 1
254
- }, 8, ["class"])) : x("", !0)
255
+ }, 8, ["class"])) : b("", !0)
255
256
  ]),
256
257
  _: 1
257
258
  }, 8, [
@@ -260,143 +261,142 @@ var De = ["data-alfakit-modal"], Oe = { class: "flex flex-col gap-1.5" }, ke = [
260
261
  "show-close-button"
261
262
  ])]),
262
263
  _: 1
263
- }, 8, ["open", "modal"])) : (A(), b(ne, {
264
+ }, 8, ["open", "modal"])) : (k(), y(re, {
264
265
  key: 1,
265
- open: !L.hidden,
266
- modal: !U.value.clickThrough,
266
+ open: !I.hidden,
267
+ modal: !H.value.clickThrough,
267
268
  "onUpdate:open": nt
268
269
  }, {
269
- default: P(() => [T(re, {
270
- class: O(M(i)("max-h-[calc(100vh-2rem)] overflow-y-auto", I[U.value.width] ?? "sm:max-w-lg", Ve.value)),
271
- "show-close-button": U.value.closeButton,
272
- onInteractOutside: t[4] ||= (e) => !U.value.closeByClickingAway && e.preventDefault(),
273
- onEscapeKeyDown: t[5] ||= (e) => !U.value.closeByEscaping && e.preventDefault()
270
+ default: N(() => [w(ie, {
271
+ class: D(j(i)("max-h-[calc(100vh-2rem)] overflow-y-auto", F[H.value.width] ?? "sm:max-w-lg", G.value)),
272
+ "show-close-button": H.value.closeButton,
273
+ onInteractOutside: t[4] ||= (e) => !H.value.closeByClickingAway && e.preventDefault(),
274
+ onEscapeKeyDown: t[5] ||= (e) => !H.value.closeByEscaping && e.preventDefault()
274
275
  }, {
275
- default: P(() => [
276
- C("span", {
277
- "data-alfakit-modal": M(K),
276
+ default: N(() => [
277
+ S("span", {
278
+ "data-alfakit-modal": j(K),
278
279
  hidden: ""
279
- }, null, 8, Ne),
280
- T(ie, { class: O(M(i)(U.value.stickyHeader && "bg-background sticky -top-6 z-10 -mx-6 -mt-6 rounded-t-lg border-b px-6 pt-6 pb-4")) }, {
281
- default: P(() => [C("div", { class: O(M(i)("flex gap-4", U.value.alignment === "center" && "flex-col items-center text-center")) }, [U.value.icon ? (A(), S("div", {
280
+ }, null, 8, Fe),
281
+ w(ae, { class: D(j(i)(H.value.stickyHeader && "bg-background sticky -top-6 z-10 -mx-6 -mt-6 rounded-t-lg border-b px-6 pt-6 pb-4")) }, {
282
+ default: N(() => [S("div", { class: D(j(i)("flex gap-4", H.value.alignment === "center" && "flex-col items-center text-center")) }, [H.value.icon ? (k(), x("div", {
282
283
  key: 0,
283
- class: O(M(i)("flex size-10 shrink-0 items-center justify-center rounded-full", M(o)(M(s), U.value.iconColor, "primary")))
284
- }, [T(M(u), {
285
- name: U.value.icon,
284
+ class: D(j(i)("flex size-10 shrink-0 items-center justify-center rounded-full", j(a)(j(o), H.value.iconColor, "primary")))
285
+ }, [w(j(l), {
286
+ name: H.value.icon,
286
287
  class: "size-5"
287
- }, null, 8, ["name"])], 2)) : x("", !0), C("div", Pe, [T(ae, { class: O(M(i)(!U.value.heading && "sr-only")) }, {
288
- default: P(() => [w(j(Q.value), 1)]),
288
+ }, null, 8, ["name"])], 2)) : b("", !0), S("div", Ie, [w(oe, { class: D(j(i)(!H.value.heading && "sr-only")) }, {
289
+ default: N(() => [C(A(Q.value), 1)]),
289
290
  _: 1
290
- }, 8, ["class"]), U.value.description ? (A(), b(g, { key: 0 }, {
291
- default: P(() => [C("span", { innerHTML: U.value.description }, null, 8, Fe)]),
291
+ }, 8, ["class"]), H.value.description ? (k(), y(h, { key: 0 }, {
292
+ default: N(() => [S("span", { innerHTML: H.value.description }, null, 8, Le)]),
292
293
  _: 1
293
- })) : (A(), b(g, {
294
+ })) : (k(), y(h, {
294
295
  key: 1,
295
296
  class: "sr-only"
296
297
  }, {
297
- default: P(() => [w(j(Q.value), 1)]),
298
+ default: N(() => [C(A(Q.value), 1)]),
298
299
  _: 1
299
300
  }))])], 2)]),
300
301
  _: 1
301
302
  }, 8, ["class"]),
302
- rt.value ? (A(), S("div", Ie, [
303
- U.value.content ? (A(), b(m, {
303
+ rt.value ? (k(), x("div", Re, [
304
+ H.value.content ? (k(), y(p, {
304
305
  key: 0,
305
- components: U.value.content
306
- }, null, 8, ["components"])) : x("", !0),
307
- M(W) && M(G) ? (A(), b(h, {
306
+ components: H.value.content
307
+ }, null, 8, ["components"])) : b("", !0),
308
+ j(U) && j(W) ? (k(), y(m, {
308
309
  key: 1,
309
310
  name: "modal.schema.before",
310
- data: { action: M(V).name }
311
- }, null, 8, ["data"])) : x("", !0),
312
- M(W) && M(G) ? (A(), S("form", {
311
+ data: { action: j(B).name }
312
+ }, null, 8, ["data"])) : b("", !0),
313
+ j(U) && j(W) ? (k(), x("form", {
313
314
  key: 2,
314
- id: `action-form-${M(V).name}`,
315
- onSubmit: F(Y, ["prevent"])
316
- }, [T(m, {
317
- components: M(G).components,
318
- columns: M(G).columns
319
- }, null, 8, ["components", "columns"])], 40, Le)) : x("", !0),
320
- M(W) && M(G) ? (A(), b(h, {
315
+ id: `action-form-${j(B).name}`,
316
+ onSubmit: P(Y, ["prevent"])
317
+ }, [w(p, {
318
+ components: j(W).components,
319
+ columns: j(W).columns
320
+ }, null, 8, ["components", "columns"])], 40, ze)) : b("", !0),
321
+ j(U) && j(W) ? (k(), y(m, {
321
322
  key: 3,
322
323
  name: "modal.schema.after",
323
- data: { action: M(V).name }
324
- }, null, 8, ["data"])) : x("", !0),
325
- U.value.contentFooter ? (A(), b(m, {
324
+ data: { action: j(B).name }
325
+ }, null, 8, ["data"])) : b("", !0),
326
+ H.value.contentFooter ? (k(), y(p, {
326
327
  key: 4,
327
- components: U.value.contentFooter
328
- }, null, 8, ["components"])) : x("", !0),
329
- U.value.passwordConfirmation ? (A(), b(v, {
328
+ components: H.value.contentFooter
329
+ }, null, 8, ["components"])) : b("", !0),
330
+ H.value.passwordConfirmation ? (k(), y(_, {
330
331
  key: 5,
331
332
  modelValue: J.value,
332
333
  "onUpdate:modelValue": t[3] ||= (e) => J.value = e,
333
334
  error: Ye.value,
334
335
  onSubmit: Y
335
- }, null, 8, ["modelValue", "error"])) : x("", !0)
336
- ])) : x("", !0),
337
- $.value ? (A(), b(ue, {
336
+ }, null, 8, ["modelValue", "error"])) : b("", !0)
337
+ ])) : b("", !0),
338
+ $.value ? (k(), y(de, {
338
339
  key: 1,
339
- class: O(M(i)(U.value.stickyFooter && "bg-background sticky bottom-0 -mx-6 -mb-6 rounded-b-lg border-t px-6 py-4"))
340
+ class: D(j(i)(H.value.stickyFooter && "bg-background sticky bottom-0 -mx-6 -mb-6 rounded-b-lg border-t px-6 py-4"))
340
341
  }, {
341
- default: P(() => [C("div", { class: O(M(i)("flex w-full flex-col-reverse gap-2 sm:flex-row sm:items-center", Ge.value)) }, [
342
- U.value.extraFooterActions ? (A(), b(p, {
342
+ default: N(() => [S("div", { class: D(j(i)("flex w-full flex-col-reverse gap-2 sm:flex-row sm:items-center", Ge.value)) }, [
343
+ H.value.extraFooterActions ? (k(), y(f, {
343
344
  key: 0,
344
- actions: U.value.extraFooterActions,
345
- context: M(Xe),
346
- class: O(Ke.value)
345
+ actions: H.value.extraFooterActions,
346
+ context: j(Xe),
347
+ class: D(Ke.value)
347
348
  }, null, 8, [
348
349
  "actions",
349
350
  "context",
350
351
  "class"
351
- ])) : x("", !0),
352
- U.value.cancelLabel ? (A(), b(d, {
352
+ ])) : b("", !0),
353
+ H.value.cancelLabel ? (k(), y(u, {
353
354
  key: 1,
354
355
  type: "button",
355
356
  variant: "outline",
356
- class: O(et.value),
357
- disabled: L.modal.processing,
357
+ class: D(et.value),
358
+ disabled: I.modal.processing,
358
359
  onClick: Z
359
360
  }, {
360
- default: P(() => [w(j(U.value.cancelLabel), 1)]),
361
+ default: N(() => [C(A(H.value.cancelLabel), 1)]),
361
362
  _: 1
362
- }, 8, ["class", "disabled"])) : x("", !0),
363
- U.value.createAnotherLabel && U.value.submitLabel && q.value ? (A(), b(d, {
363
+ }, 8, ["class", "disabled"])) : b("", !0),
364
+ H.value.createAnotherLabel && H.value.submitLabel && q.value ? (k(), y(u, {
364
365
  key: 2,
365
366
  type: "button",
366
367
  variant: "outline",
367
368
  "data-slot": "create-another",
368
- class: O(tt.value),
369
- disabled: L.modal.processing,
369
+ class: D(tt.value),
370
+ disabled: I.modal.processing,
370
371
  onClick: X
371
372
  }, {
372
- default: P(() => [U.value.createAnotherIcon ? (A(), b(M(u), {
373
+ default: N(() => [H.value.createAnotherIcon ? (k(), y(j(l), {
373
374
  key: 0,
374
- name: U.value.createAnotherIcon
375
- }, null, 8, ["name"])) : x("", !0), w(j(U.value.createAnotherLabel), 1)]),
375
+ name: H.value.createAnotherIcon
376
+ }, null, 8, ["name"])) : b("", !0), C(A(H.value.createAnotherLabel), 1)]),
376
377
  _: 1
377
- }, 8, ["class", "disabled"])) : x("", !0),
378
- U.value.submitLabel && q.value ? (A(), b(d, {
378
+ }, 8, ["class", "disabled"])) : b("", !0),
379
+ H.value.submitLabel && q.value ? (k(), y(u, {
379
380
  key: 3,
380
381
  type: "button",
381
- class: O(M(o)(M(l), U.value.submitColor, "primary")),
382
- disabled: L.modal.processing,
383
- autofocus: U.value.autofocus && !M(W),
382
+ class: D(j(a)(j(c), H.value.submitColor, "primary")),
383
+ disabled: I.modal.processing,
384
+ autofocus: H.value.autofocus && !j(U),
384
385
  onClick: Y
385
386
  }, {
386
- default: P(() => [L.modal.processing ? (A(), b(f, { key: 0 })) : U.value.submitIcon ? (A(), b(M(u), {
387
+ default: N(() => [I.modal.processing ? (k(), y(d, { key: 0 })) : H.value.submitIcon ? (k(), y(j(l), {
387
388
  key: 1,
388
- name: U.value.submitIcon
389
- }, null, 8, ["name"])) : x("", !0), w(" " + j(U.value.submitLabel), 1)]),
389
+ name: H.value.submitIcon
390
+ }, null, 8, ["name"])) : b("", !0), C(" " + A(H.value.submitLabel), 1)]),
390
391
  _: 1
391
392
  }, 8, [
392
393
  "class",
393
394
  "disabled",
394
395
  "autofocus"
395
- ])) : x("", !0)
396
+ ])) : b("", !0)
396
397
  ], 2)]),
397
398
  _: 1
398
- }, 8, ["class"])) : x("", !0),
399
- C("span", Re, j(M(B)("close", {}, "Close")), 1)
399
+ }, 8, ["class"])) : b("", !0)
400
400
  ]),
401
401
  _: 1
402
402
  }, 8, ["class", "show-close-button"])]),
@@ -405,6 +405,6 @@ var De = ["data-alfakit-modal"], Oe = { class: "flex flex-col gap-1.5" }, ke = [
405
405
  }
406
406
  });
407
407
  //#endregion
408
- export { I as default };
408
+ export { F as default };
409
409
 
410
410
  //# sourceMappingURL=ActionModal.vue_vue_type_script_setup_true_lang.js.map