@ghentcdh/ui 0.6.6 → 0.6.7

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/index.esm.js CHANGED
@@ -1,89 +1,89 @@
1
- import { defineComponent as p, openBlock as o, createElementBlock as i, unref as b, normalizeClass as w, createElementVNode as a, toDisplayString as v, createBlock as g, createCommentVNode as y, Fragment as x, renderList as $, mergeProps as P, computed as k, resolveComponent as X, withCtx as D, createTextVNode as T, ref as S, watch as Q, onMounted as pe, renderSlot as B, resolveDynamicComponent as ae, createVNode as C, withDirectives as W, vModelCheckbox as ye, normalizeStyle as le, getCurrentInstance as we, toHandlerKey as me, camelize as xe, mergeDefaults as Z, useModel as Y, normalizeProps as ee, guardReactiveProps as te, vModelSelect as ke, mergeModels as F, resolveDirective as fe, vModelText as $e, onBeforeUnmount as Ce, useSlots as be } from "vue";
1
+ import { defineComponent as p, openBlock as l, createElementBlock as c, unref as f, normalizeClass as y, createElementVNode as a, toDisplayString as h, createBlock as v, createCommentVNode as x, Fragment as k, renderList as L, mergeProps as V, computed as $, resolveComponent as oe, withCtx as C, createTextVNode as S, ref as N, watch as te, onMounted as xe, renderSlot as D, resolveDynamicComponent as ae, createVNode as B, withDirectives as I, vModelCheckbox as fe, normalizeStyle as se, getCurrentInstance as we, toHandlerKey as be, camelize as ke, mergeDefaults as U, useModel as H, normalizeProps as W, guardReactiveProps as Z, vModelSelect as $e, mergeModels as P, resolveDirective as he, vModelText as ie, onBeforeUnmount as Ce, vModelDynamic as Be, useSlots as pe } from "vue";
2
2
  import { RouterLink as _e } from "vue-router";
3
- import { v4 as ne } from "uuid";
4
- import { useApi as Le } from "@ghentcdh/tools-vue";
5
- import { ChevronDownIcon as Me, ChevronRightIcon as Be } from "@heroicons/vue/24/solid";
6
- import Pe from "@tiptap/starter-kit";
7
- import { useEditor as De, EditorContent as Ve } from "@tiptap/vue-3";
8
- import { Markdown as Ae } from "tiptap-markdown";
9
- const L = (...e) => `<svg
3
+ import { v4 as le } from "uuid";
4
+ import { apiNoAuth as Le, useApi as Me } from "@ghentcdh/tools-vue";
5
+ import { ChevronDownIcon as Pe, ChevronRightIcon as Ve } from "@heroicons/vue/24/solid";
6
+ import De from "@tiptap/starter-kit";
7
+ import { useEditor as Ae, EditorContent as Te } from "@tiptap/vue-3";
8
+ import { Markdown as ze } from "tiptap-markdown";
9
+ const M = (...e) => `<svg
10
10
  xmlns="http://www.w3.org/2000/svg"
11
11
  fill="none"
12
12
  viewBox="0 0 24 24"
13
13
  stroke-width="1.5"
14
14
  stroke="currentColor" >
15
15
  ${e.map(
16
- (n) => ` <path
16
+ (o) => ` <path
17
17
  stroke-linejoin="round"
18
18
  stroke-linecap="round"
19
- d="${n}"
19
+ d="${o}"
20
20
  />`
21
21
  ).join(`
22
22
  `)}
23
23
  </svg>`;
24
- var z = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(z || {});
25
- const ze = {
26
- Edit: L(
24
+ var F = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(F || {});
25
+ const Fe = {
26
+ Edit: M(
27
27
  "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
28
28
  ),
29
- Delete: L(
29
+ Delete: M(
30
30
  "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
31
31
  ),
32
- BarsArrowDown: L(
32
+ BarsArrowDown: M(
33
33
  "M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
34
34
  ),
35
- BarsArrowUp: L(
35
+ BarsArrowUp: M(
36
36
  "M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"
37
37
  ),
38
- Funnel: L(
38
+ Funnel: M(
39
39
  "M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"
40
40
  ),
41
- Close: L("M6 18 18 6M6 6l12 12"),
42
- Plus: L("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
43
- PaperClip: L(
41
+ Close: M("M6 18 18 6M6 6l12 12"),
42
+ Plus: M("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
43
+ PaperClip: M(
44
44
  "m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"
45
45
  ),
46
- Hamburger: L("M4 6h16M4 12h16M4 18h16"),
47
- ChevronDown: L(
46
+ Hamburger: M("M4 6h16M4 12h16M4 18h16"),
47
+ ChevronDown: M(
48
48
  "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"
49
49
  ),
50
- ChevronUp: L(
50
+ ChevronUp: M(
51
51
  "M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"
52
52
  ),
53
- Check: L("m4.5 12.75 6 6 9-13.5"),
54
- View: L(
53
+ Check: M("m4.5 12.75 6 6 9-13.5"),
54
+ View: M(
55
55
  "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z",
56
56
  "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
57
57
  ),
58
- Text: L(
58
+ Text: M(
59
59
  "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
60
60
  ),
61
- DblChevronLeft: L(
61
+ DblChevronLeft: M(
62
62
  "m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
63
63
  ),
64
- DblChevronRight: L("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
65
- }, Te = ["innerHTML"], I = /* @__PURE__ */ p({
64
+ DblChevronRight: M("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
65
+ }, Se = ["innerHTML"], j = /* @__PURE__ */ p({
66
66
  __name: "icon",
67
67
  props: {
68
68
  icon: {},
69
69
  size: {}
70
70
  },
71
71
  setup(e) {
72
- return (t, n) => (o(), i("div", {
73
- class: w([
72
+ return (t, o) => (l(), c("div", {
73
+ class: y([
74
74
  {
75
75
  "w-full h-full": !e.size,
76
76
  "w-2 h-2": e.size === "xs",
77
77
  "w-4 h-4": e.size === "sm"
78
78
  }
79
79
  ]),
80
- innerHTML: b(ze)[e.icon]
81
- }, null, 10, Te));
80
+ innerHTML: f(Fe)[e.icon]
81
+ }, null, 10, Se));
82
82
  }
83
- }), Se = { class: "dropdown dropdown-end" }, Ne = {
83
+ }), Ne = { class: "dropdown dropdown-end" }, Ke = {
84
84
  tabindex: "0",
85
85
  class: "menu dropdown-content bg-white z-1 mt-4 p-2 shadow-sm"
86
- }, Re = { class: "min-w-max flex-no-wrap text-black" }, ie = /* @__PURE__ */ p({
86
+ }, Re = { class: "min-w-max flex-no-wrap text-black" }, re = /* @__PURE__ */ p({
87
87
  __name: "sub-menu",
88
88
  props: {
89
89
  label: {},
@@ -94,29 +94,29 @@ const ze = {
94
94
  disableArrow: { type: Boolean }
95
95
  },
96
96
  setup(e) {
97
- return (t, n) => (o(), i("div", Se, [
97
+ return (t, o) => (l(), c("div", Ne, [
98
98
  a("div", {
99
99
  tabindex: "0",
100
100
  role: "button",
101
- class: w([e.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
101
+ class: y([e.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
102
102
  }, [
103
- a("span", null, v(e.label), 1),
104
- e.disableArrow ? y("", !0) : (o(), g(b(I), {
103
+ a("span", null, h(e.label), 1),
104
+ e.disableArrow ? x("", !0) : (l(), v(f(j), {
105
105
  key: 0,
106
- icon: b(z).ChevronDown,
106
+ icon: f(F).ChevronDown,
107
107
  size: "sm"
108
108
  }, null, 8, ["icon"]))
109
109
  ], 2),
110
- a("ul", Ne, [
110
+ a("ul", Ke, [
111
111
  a("li", Re, [
112
- (o(!0), i(x, null, $(e.items, (l) => (o(), g(he, P({
113
- key: l.label
114
- }, { ref_for: !0 }, l), null, 16))), 128))
112
+ (l(!0), c(k, null, L(e.items, (s) => (l(), v(ve, V({
113
+ key: s.label
114
+ }, { ref_for: !0 }, s), null, 16))), 128))
115
115
  ])
116
116
  ])
117
117
  ]));
118
118
  }
119
- }), J = "btn btn-ghost text-left justify-between min-w-max font-normal", he = /* @__PURE__ */ p({
119
+ }), ee = "btn btn-ghost text-left justify-between min-w-max font-normal", ve = /* @__PURE__ */ p({
120
120
  __name: "menu-item",
121
121
  props: {
122
122
  label: {},
@@ -125,89 +125,89 @@ const ze = {
125
125
  disabled: { type: Boolean, default: !1 }
126
126
  },
127
127
  setup(e) {
128
- const t = e, n = k(() => !t.disabled && t.action && "routerLink" in t.action), l = k(() => !t.disabled && t.action), s = k(() => t.items?.length), c = k(() => {
129
- const f = t.action;
130
- return f && "routerLink" in f && "params" in f ? {
131
- name: f.routerLink,
132
- params: f.params
128
+ const t = e, o = $(() => !t.disabled && t.action && "routerLink" in t.action), s = $(() => !t.disabled && t.action), n = $(() => t.items?.length), u = $(() => {
129
+ const m = t.action;
130
+ return m && "routerLink" in m && "params" in m ? {
131
+ name: m.routerLink,
132
+ params: m.params
133
133
  } : "";
134
- }), h = () => {
134
+ }), b = () => {
135
135
  t.action?.();
136
136
  };
137
- return (f, u) => {
138
- const d = X("RouterLink");
139
- return s.value ? (o(), g(ie, P({ key: 0 }, t, { "btn-class": J }), null, 16)) : n.value ? (o(), g(d, {
137
+ return (m, i) => {
138
+ const d = oe("RouterLink");
139
+ return n.value ? (l(), v(re, V({ key: 0 }, t, { "btn-class": ee }), null, 16)) : o.value ? (l(), v(d, {
140
140
  key: 1,
141
- to: c.value,
142
- class: w(J),
143
- onClick: h
141
+ to: u.value,
142
+ class: y(ee),
143
+ onClick: b
144
144
  }, {
145
- default: D(() => [
146
- T(v(e.label), 1)
145
+ default: C(() => [
146
+ S(h(e.label), 1)
147
147
  ]),
148
148
  _: 1
149
- }, 8, ["to"])) : l.value ? (o(), i("button", {
149
+ }, 8, ["to"])) : s.value ? (l(), c("button", {
150
150
  key: 2,
151
- class: w(J),
152
- onClick: h
153
- }, v(e.label), 1)) : (o(), i("div", {
151
+ class: y(ee),
152
+ onClick: b
153
+ }, h(e.label), 1)) : (l(), c("div", {
154
154
  key: 3,
155
- class: w([J, { "btn-disabled": e.disabled }])
156
- }, v(e.label), 3));
155
+ class: y([ee, { "btn-disabled": e.disabled }])
156
+ }, h(e.label), 3));
157
157
  };
158
158
  }
159
- }), Ke = { class: "navbar bg-base-100 shadow-sm" }, Fe = { class: "flex-1" }, Ie = {
159
+ }), Ie = { class: "navbar bg-base-100 shadow-sm" }, Ue = { class: "flex-1" }, qe = {
160
160
  key: 0,
161
161
  class: "breadcrumbs text-sm"
162
- }, Ue = { class: "flex grow justify-end px-2" }, He = { class: "flex items-stretch" }, Tn = /* @__PURE__ */ p({
162
+ }, je = { class: "flex grow justify-end px-2" }, He = { class: "flex items-stretch" }, qo = /* @__PURE__ */ p({
163
163
  __name: "menu",
164
164
  props: {
165
165
  menu: {},
166
166
  breadcrumbs: {}
167
167
  },
168
168
  setup(e) {
169
- return (t, n) => {
170
- const l = X("RouterLink");
171
- return o(), i("nav", Ke, [
172
- a("div", Fe, [
173
- e.breadcrumbs ? (o(), i("div", Ie, [
169
+ return (t, o) => {
170
+ const s = oe("RouterLink");
171
+ return l(), c("nav", Ie, [
172
+ a("div", Ue, [
173
+ e.breadcrumbs ? (l(), c("div", qe, [
174
174
  a("ul", null, [
175
- (o(!0), i(x, null, $(e.breadcrumbs, (s) => (o(), i("li", {
176
- key: s.label
175
+ (l(!0), c(k, null, L(e.breadcrumbs, (n) => (l(), c("li", {
176
+ key: n.label
177
177
  }, [
178
- s.routerLink ? (o(), g(l, {
178
+ n.routerLink ? (l(), v(s, {
179
179
  key: 0,
180
- to: { name: s.routerLink, params: s.params }
180
+ to: { name: n.routerLink, params: n.params }
181
181
  }, {
182
- default: D(() => [
183
- T(v(s.label), 1)
182
+ default: C(() => [
183
+ S(h(n.label), 1)
184
184
  ]),
185
185
  _: 2
186
- }, 1032, ["to"])) : (o(), i(x, { key: 1 }, [
187
- T(v(s.label), 1)
186
+ }, 1032, ["to"])) : (l(), c(k, { key: 1 }, [
187
+ S(h(n.label), 1)
188
188
  ], 64))
189
189
  ]))), 128))
190
190
  ])
191
- ])) : y("", !0)
191
+ ])) : x("", !0)
192
192
  ]),
193
- a("div", Ue, [
193
+ a("div", je, [
194
194
  a("div", He, [
195
- (o(!0), i(x, null, $(e.menu, (s) => (o(), g(he, P({
196
- key: s.label
197
- }, { ref_for: !0 }, s), null, 16))), 128))
195
+ (l(!0), c(k, null, L(e.menu, (n) => (l(), v(ve, V({
196
+ key: n.label
197
+ }, { ref_for: !0 }, n), null, 16))), 128))
198
198
  ])
199
199
  ])
200
200
  ]);
201
201
  };
202
202
  }
203
- }), Sn = /* @__PURE__ */ p({
203
+ }), jo = /* @__PURE__ */ p({
204
204
  __name: "dropdown",
205
205
  props: {
206
206
  items: {}
207
207
  },
208
208
  setup(e) {
209
- const t = S(!0);
210
- return (n, l) => (o(), g(ie, {
209
+ const t = N(!0);
210
+ return (o, s) => (l(), v(re, {
211
211
  items: e.items,
212
212
  label: "test",
213
213
  open: t.value,
@@ -215,7 +215,7 @@ const ze = {
215
215
  "disable-arrow": !0
216
216
  }, null, 8, ["items", "open"]));
217
217
  }
218
- }), je = { class: "font-bold" }, qe = { class: "pt-4" }, Oe = { class: "modal-action" }, Ee = /* @__PURE__ */ p({
218
+ }), Oe = { class: "font-bold" }, Ee = { class: "pt-4" }, We = { class: "modal-action" }, Ze = /* @__PURE__ */ p({
219
219
  __name: "modal",
220
220
  props: {
221
221
  modalTitle: {},
@@ -227,133 +227,133 @@ const ze = {
227
227
  width: { default: "sm" }
228
228
  },
229
229
  emits: ["closeModal"],
230
- setup(e, { expose: t, emit: n }) {
231
- const l = {
230
+ setup(e, { expose: t, emit: o }) {
231
+ const s = {
232
232
  xs: "max-w-xs w-[50VW]",
233
233
  sm: "max-w-sm w-[50VW]",
234
234
  lg: "max-w-2xl w-[80VW]",
235
235
  xl: "max-w-[80VW] w-[80VW]"
236
- }, s = e, c = `modal_${ne()}`, h = n, f = () => {
237
- document.getElementById(c)?.showModal();
238
- }, u = () => {
239
- document.getElementById(c)?.close(), h("closeModal");
236
+ }, n = e, u = `modal_${le()}`, b = o, m = () => {
237
+ document.getElementById(u)?.showModal();
238
+ }, i = () => {
239
+ document.getElementById(u)?.close(), b("closeModal");
240
240
  };
241
- return t({ closeModal: u, openModal: f }), Q(
242
- () => s.open,
243
- (d, r, V) => {
244
- s.open ? f() : u();
241
+ return t({ closeModal: i, openModal: m }), te(
242
+ () => n.open,
243
+ (d, r, A) => {
244
+ n.open ? m() : i();
245
245
  }
246
- ), pe(() => {
247
- s.open && f();
248
- }), (d, r) => (o(), i("dialog", {
249
- id: c,
246
+ ), xe(() => {
247
+ n.open && m();
248
+ }), (d, r) => (l(), c("dialog", {
249
+ id: u,
250
250
  class: "modal"
251
251
  }, [
252
252
  a("div", {
253
- class: w(["modal-box bg-white", l[e.width]])
253
+ class: y(["modal-box bg-white", s[e.width]])
254
254
  }, [
255
- e.disableClose ? y("", !0) : (o(), i("button", {
255
+ e.disableClose ? x("", !0) : (l(), c("button", {
256
256
  key: 0,
257
257
  type: "button",
258
258
  class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
259
- onClick: u
259
+ onClick: i
260
260
  }, " ✕ ")),
261
- a("h3", je, v(e.modalTitle), 1),
262
- a("div", qe, [
263
- B(d.$slots, "content")
261
+ a("h3", Oe, h(e.modalTitle), 1),
262
+ a("div", Ee, [
263
+ D(d.$slots, "content")
264
264
  ]),
265
- a("div", Oe, [
266
- B(d.$slots, "actions")
265
+ a("div", We, [
266
+ D(d.$slots, "actions")
267
267
  ])
268
268
  ], 2)
269
269
  ]));
270
270
  }
271
271
  });
272
- var re = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(re || {}), ve = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(ve || {}), j = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(j || {});
273
- const We = {
272
+ var ce = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(ce || {}), ge = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(ge || {}), G = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(G || {});
273
+ const Ge = {
274
274
  blank: "btn-ghost",
275
275
  primary: "btn-primary",
276
276
  secondary: "btn-soft btn-primary",
277
277
  error: "btn-error text-white"
278
- }, Ze = {
278
+ }, Je = {
279
279
  blank: "badge-ghost",
280
280
  primary: "badge-primary",
281
281
  secondary: "badge-soft badge-primary",
282
282
  error: "badge-error"
283
- }, Ge = {
283
+ }, Qe = {
284
284
  xs: "btn-xs",
285
285
  sm: "btn-sm",
286
286
  lg: "btn-sm",
287
287
  xl: "btn"
288
- }, Je = {
288
+ }, Xe = {
289
289
  xs: "badge-xs text-xxs",
290
290
  sm: "badge-sm text-xs",
291
291
  lg: "badge-sm text-xs",
292
292
  xl: "badge text-xs"
293
- }, q = /* @__PURE__ */ p({
293
+ }, J = /* @__PURE__ */ p({
294
294
  __name: "btn",
295
295
  props: {
296
296
  href: {},
297
297
  disabled: { type: Boolean, default: !1 },
298
- as: { default: ve.button },
298
+ as: { default: ge.button },
299
299
  icon: {},
300
- type: { default: re.button },
300
+ type: { default: ce.button },
301
301
  outline: { type: Boolean, default: !1 },
302
- color: { default: j.primary },
302
+ color: { default: G.primary },
303
303
  size: { default: "sm" },
304
304
  square: { type: Boolean, default: !1 }
305
305
  },
306
306
  emits: ["click"],
307
307
  setup(e, { emit: t }) {
308
- const n = e, l = t;
309
- return (s, c) => (o(), g(ae(e.as), P({
308
+ const o = e, s = t;
309
+ return (n, u) => (l(), v(ae(e.as), V({
310
310
  class: [
311
311
  "btn p-1 flex justify-center flex-nowrap",
312
- b(We)[e.color],
313
- b(Ge)[e.size],
312
+ f(Ge)[e.color],
313
+ f(Qe)[e.size],
314
314
  { "btn-outline": e.outline, "btn-square": e.square }
315
315
  ]
316
- }, n, {
317
- onClick: c[0] || (c[0] = (h) => l("click"))
316
+ }, o, {
317
+ onClick: u[0] || (u[0] = (b) => s("click"))
318
318
  }), {
319
- default: D(() => [
320
- e.icon ? (o(), g(b(I), {
319
+ default: C(() => [
320
+ e.icon ? (l(), v(f(j), {
321
321
  key: 0,
322
322
  icon: e.icon,
323
323
  size: e.size
324
- }, null, 8, ["icon", "size"])) : y("", !0),
325
- B(s.$slots, "default")
324
+ }, null, 8, ["icon", "size"])) : x("", !0),
325
+ D(n.$slots, "default")
326
326
  ]),
327
327
  _: 3
328
328
  }, 16, ["class"]));
329
329
  }
330
- }), Qe = ["type", "disabled"], Nn = /* @__PURE__ */ p({
330
+ }), Ye = ["type", "disabled"], Ho = /* @__PURE__ */ p({
331
331
  __name: "btn-badge",
332
332
  props: {
333
333
  icon: { default: void 0 },
334
- type: { default: re.button },
334
+ type: { default: ce.button },
335
335
  color: { default: void 0 },
336
336
  disabled: { type: Boolean, default: !1 },
337
337
  size: { default: "sm" }
338
338
  },
339
339
  emits: ["click"],
340
340
  setup(e, { emit: t }) {
341
- const n = t;
342
- return (l, s) => (o(), i("button", {
343
- class: w(["badge gap-1", b(Je)[e.size], b(Ze)[e.color]]),
341
+ const o = t;
342
+ return (s, n) => (l(), c("button", {
343
+ class: y(["badge gap-1", f(Xe)[e.size], f(Je)[e.color]]),
344
344
  type: e.type,
345
345
  disabled: e.disabled,
346
- onClick: s[0] || (s[0] = (c) => n("click"))
346
+ onClick: n[0] || (n[0] = (u) => o("click"))
347
347
  }, [
348
- B(l.$slots, "default"),
349
- e.icon ? (o(), g(b(I), {
348
+ D(s.$slots, "default"),
349
+ e.icon ? (l(), v(f(j), {
350
350
  key: 0,
351
351
  icon: e.icon,
352
352
  size: e.size
353
- }, null, 8, ["icon", "size"])) : y("", !0)
354
- ], 10, Qe));
353
+ }, null, 8, ["icon", "size"])) : x("", !0)
354
+ ], 10, Ye));
355
355
  }
356
- }), Xe = /* @__PURE__ */ p({
356
+ }), et = /* @__PURE__ */ p({
357
357
  __name: "confirmModal",
358
358
  props: {
359
359
  title: {},
@@ -363,33 +363,33 @@ const We = {
363
363
  },
364
364
  emits: ["closeModal"],
365
365
  setup(e, { emit: t }) {
366
- const n = t, l = (s) => {
367
- n("closeModal", { confirmed: s });
366
+ const o = t, s = (n) => {
367
+ o("closeModal", { confirmed: n });
368
368
  };
369
- return (s, c) => (o(), g(Ee, {
369
+ return (n, u) => (l(), v(Ze, {
370
370
  "modal-title": e.title,
371
371
  open: !0,
372
372
  "disable-close": !0
373
373
  }, {
374
- content: D(() => [
375
- T(v(e.message), 1)
374
+ content: C(() => [
375
+ S(h(e.message), 1)
376
376
  ]),
377
- actions: D(() => [
378
- C(b(q), {
379
- color: b(j).secondary,
377
+ actions: C(() => [
378
+ B(f(J), {
379
+ color: f(G).secondary,
380
380
  outline: !0,
381
- onClick: c[0] || (c[0] = (h) => l(!1))
381
+ onClick: u[0] || (u[0] = (b) => s(!1))
382
382
  }, {
383
- default: D(() => [
384
- T(v(e.cancelLabel), 1)
383
+ default: C(() => [
384
+ S(h(e.cancelLabel), 1)
385
385
  ]),
386
386
  _: 1
387
387
  }, 8, ["color"]),
388
- C(b(q), {
389
- onClick: c[1] || (c[1] = (h) => l(!0))
388
+ B(f(J), {
389
+ onClick: u[1] || (u[1] = (b) => s(!0))
390
390
  }, {
391
- default: D(() => [
392
- T(v(e.confirmLabel), 1)
391
+ default: C(() => [
392
+ S(h(e.confirmLabel), 1)
393
393
  ]),
394
394
  _: 1
395
395
  })
@@ -398,22 +398,22 @@ const We = {
398
398
  }, 8, ["modal-title"]));
399
399
  }
400
400
  });
401
- class ce {
401
+ class ue {
402
402
  constructor() {
403
- this.showModal = S(!1), this.modals = [];
403
+ this.showModal = N(!1), this.modals = [];
404
404
  }
405
405
  openModal(t) {
406
- const n = t.props.onClose, l = ne(), s = t;
407
- t.props.onClose = (c) => {
408
- n(c), this.closeModal(l);
409
- }, s.id = l, this.modals = [...this.modals, s], this.showModal.value = Date.now();
406
+ const o = t.props.onClose, s = le(), n = t;
407
+ t.props.onClose = (u) => {
408
+ o(u), this.closeModal(s);
409
+ }, n.id = s, this.modals = [...this.modals, n], this.showModal.value = Date.now();
410
410
  }
411
411
  closeModal(t) {
412
- this.modals = this.modals.filter((n) => n.id !== t), this.showModal.value = Date.now();
412
+ this.modals = this.modals.filter((o) => o.id !== t), this.showModal.value = Date.now();
413
413
  }
414
414
  static showConfirm(t) {
415
415
  this.getInstance().openModal({
416
- component: Xe,
416
+ component: et,
417
417
  props: t
418
418
  });
419
419
  }
@@ -421,7 +421,7 @@ class ce {
421
421
  this.getInstance().openModal(t);
422
422
  }
423
423
  static getInstance() {
424
- return this.instance || (this.instance = new ce()), this.instance;
424
+ return this.instance || (this.instance = new ue()), this.instance;
425
425
  }
426
426
  static closeAll() {
427
427
  this.instance.closeAll();
@@ -430,19 +430,19 @@ class ce {
430
430
  this.modals = [], this.showModal.value = !1;
431
431
  }
432
432
  }
433
- const Ye = /* @__PURE__ */ p({
433
+ const tt = /* @__PURE__ */ p({
434
434
  __name: "modalWrapper",
435
435
  setup(e) {
436
- const t = ce.getInstance(), n = k(() => t.showModal.value ? t.modals : []);
437
- return (l, s) => (o(!0), i(x, null, $(n.value, (c) => (o(), g(ae(c?.component), P({
438
- key: c.id,
436
+ const t = ue.getInstance(), o = $(() => t.showModal.value ? t.modals : []);
437
+ return (s, n) => (l(!0), c(k, null, L(o.value, (u) => (l(), v(ae(u?.component), V({
438
+ key: u.id,
439
439
  ref_for: !0
440
- }, c?.props, {
440
+ }, u?.props, {
441
441
  open: !0,
442
- onCloseModal: c?.props?.onClose
442
+ onCloseModal: u?.props?.onClose
443
443
  }), null, 16, ["onCloseModal"]))), 128));
444
444
  }
445
- }), et = /* @__PURE__ */ p({
445
+ }), ot = /* @__PURE__ */ p({
446
446
  __name: "notification-message",
447
447
  props: {
448
448
  message: {},
@@ -455,34 +455,34 @@ const Ye = /* @__PURE__ */ p({
455
455
  warning: "alert-warning",
456
456
  info: "alert-info"
457
457
  };
458
- return (n, l) => (o(), i("div", {
458
+ return (o, s) => (l(), c("div", {
459
459
  role: "alert",
460
- class: w(`alert ${t[e.type]} `)
460
+ class: y(`alert ${t[e.type]} `)
461
461
  }, [
462
- a("span", null, v(e.message), 1)
462
+ a("span", null, h(e.message), 1)
463
463
  ], 2));
464
464
  }
465
- }), tt = 5e3;
466
- class ue {
465
+ }), lt = 5e3;
466
+ class de {
467
467
  constructor() {
468
- this.notifications = S([]), this.addNotification = (t, n = "info") => {
469
- const l = {
470
- id: ne(),
471
- duration: tt,
468
+ this.notifications = N([]), this.addNotification = (t, o = "info") => {
469
+ const s = {
470
+ id: le(),
471
+ duration: lt,
472
472
  message: t,
473
- type: n
473
+ type: o
474
474
  };
475
- this.notifications.value.push(l), this.removeNotificationAfterDuration(l);
475
+ this.notifications.value.push(s), this.removeNotificationAfterDuration(s);
476
476
  }, this.removeNotificationAfterDuration = (t) => {
477
477
  setTimeout(() => {
478
478
  this.removeNotification(t.id);
479
479
  }, t.duration);
480
480
  }, this.removeNotification = (t) => {
481
- this.notifications.value = this.notifications.value.filter((n) => n.id !== t);
481
+ this.notifications.value = this.notifications.value.filter((o) => o.id !== t);
482
482
  };
483
483
  }
484
484
  static getInstance() {
485
- return this.instance || (this.instance = new ue()), this.instance;
485
+ return this.instance || (this.instance = new de()), this.instance;
486
486
  }
487
487
  static info(t) {
488
488
  this.getInstance().addNotification(t, "info");
@@ -500,17 +500,17 @@ class ue {
500
500
  this.getInstance().removeNotification(t);
501
501
  }
502
502
  }
503
- const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__ */ p({
503
+ const nt = { class: "toast toast-top toast-center z-[999]" }, st = /* @__PURE__ */ p({
504
504
  __name: "notifications",
505
505
  setup(e) {
506
- const t = ue.getInstance();
507
- return (n, l) => (o(), i("div", nt, [
508
- (o(!0), i(x, null, $(b(t).notifications.value, (s) => (o(), g(et, P({
509
- key: s.id
510
- }, { ref_for: !0 }, s), null, 16))), 128))
506
+ const t = de.getInstance();
507
+ return (o, s) => (l(), c("div", nt, [
508
+ (l(!0), c(k, null, L(f(t).notifications.value, (n) => (l(), v(ot, V({
509
+ key: n.id
510
+ }, { ref_for: !0 }, n), null, 16))), 128))
511
511
  ]));
512
512
  }
513
- }), st = { class: "flex h-screen flex-col" }, lt = { class: "shrink-0" }, at = { class: "navbar bg-primary text-primary-content w-full z-100" }, it = { class: "navbar-start" }, rt = { class: "navbar-center" }, ct = ["href"], ut = { class: "navbar-end" }, dt = { class: "drawer-content overflow-y-auto mb-2 mr-2 shadow-md" }, mt = { class: "drawer-side h-full shadow-md" }, ft = { class: "flex-grow overflow-y-auto" }, bt = { class: "bg-base-200 p-4" }, Rn = /* @__PURE__ */ p({
513
+ }), at = { class: "flex h-screen flex-col" }, it = { class: "shrink-0" }, rt = { class: "navbar bg-primary text-primary-content w-full z-100" }, ct = { class: "navbar-start" }, ut = { class: "navbar-center" }, dt = ["href"], mt = { class: "navbar-end" }, bt = { class: "drawer-content overflow-y-auto mb-2 mr-2 shadow-md" }, ft = { class: "drawer-side h-full shadow-md" }, ht = { class: "flex-grow overflow-y-auto" }, pt = { class: "bg-base-200 p-4" }, Oo = /* @__PURE__ */ p({
514
514
  __name: "shell.component",
515
515
  props: {
516
516
  title: {},
@@ -521,62 +521,62 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
521
521
  },
522
522
  emits: ["logout"],
523
523
  setup(e, { emit: t }) {
524
- const l = e, s = S(!1), c = () => {
525
- s.value = !s.value;
526
- }, h = t, f = k(() => l.user ? {
527
- label: l.user.name,
524
+ const s = e, n = N(!1), u = () => {
525
+ n.value = !n.value;
526
+ }, b = t, m = $(() => s.user ? {
527
+ label: s.user.name,
528
528
  items: [
529
529
  {
530
530
  label: "Logout",
531
531
  action: () => {
532
- h("logout");
532
+ b("logout");
533
533
  }
534
534
  }
535
535
  ]
536
536
  } : null);
537
- return (u, d) => (o(), i(x, null, [
538
- C(ot),
539
- C(b(Ye)),
540
- a("div", st, [
541
- a("header", lt, [
542
- a("nav", at, [
543
- a("div", it, [
537
+ return (i, d) => (l(), c(k, null, [
538
+ B(st),
539
+ B(f(tt)),
540
+ a("div", at, [
541
+ a("header", it, [
542
+ a("nav", rt, [
543
+ a("div", ct, [
544
544
  a("button", {
545
545
  "aria-label": "open sidebar",
546
546
  class: "btn btn-square btn-ghost p-1",
547
- onClick: c
547
+ onClick: u
548
548
  }, [
549
- C(b(I), {
550
- icon: b(z).Hamburger
549
+ B(f(j), {
550
+ icon: f(F).Hamburger
551
551
  }, null, 8, ["icon"])
552
552
  ])
553
553
  ]),
554
- a("div", rt, [
554
+ a("div", ut, [
555
555
  a("a", {
556
556
  class: "btn btn-ghost text-primary-content text-lg color-white",
557
- href: b("/")
558
- }, v(e.title), 9, ct)
557
+ href: f("/")
558
+ }, h(e.title), 9, dt)
559
559
  ]),
560
- a("div", ut, [
561
- f.value ? (o(), g(b(ie), P({ key: 0 }, f.value, { "btn-class": "" }), null, 16)) : y("", !0)
560
+ a("div", mt, [
561
+ m.value ? (l(), v(f(re), V({ key: 0 }, m.value, { "btn-class": "" }), null, 16)) : x("", !0)
562
562
  ])
563
563
  ])
564
564
  ]),
565
565
  a("div", {
566
- class: w(["drawer flex-1 overflow-hidden", { "drawer-open": s.value }])
566
+ class: y(["drawer flex-1 overflow-hidden", { "drawer-open": n.value }])
567
567
  }, [
568
- W(a("input", {
568
+ I(a("input", {
569
569
  id: "app-drawer",
570
- "onUpdate:modelValue": d[0] || (d[0] = (r) => s.value = r),
570
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
571
571
  type: "checkbox",
572
572
  class: "drawer-toggle"
573
573
  }, null, 512), [
574
- [ye, s.value]
574
+ [fe, n.value]
575
575
  ]),
576
- a("main", dt, [
577
- B(u.$slots, "default")
576
+ a("main", bt, [
577
+ D(i.$slots, "default")
578
578
  ]),
579
- a("div", mt, [
579
+ a("div", ft, [
580
580
  d[1] || (d[1] = a("label", {
581
581
  for: "app-drawer",
582
582
  "aria-label": "close sidebar",
@@ -584,30 +584,30 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
584
584
  }, null, -1)),
585
585
  a("div", {
586
586
  class: "menu bg-base-100 h-full flex flex-col justify-between",
587
- style: le({ width: e.widthSidebar + "px" })
587
+ style: se({ width: e.widthSidebar + "px" })
588
588
  }, [
589
- a("ul", ft, [
590
- (o(!0), i(x, null, $(e.menu, (r) => (o(), i("li", {
589
+ a("ul", ht, [
590
+ (l(!0), c(k, null, L(e.menu, (r) => (l(), c("li", {
591
591
  key: r.label
592
592
  }, [
593
- C(b(_e), {
593
+ B(f(_e), {
594
594
  to: { name: r.routerLink, params: r.params }
595
595
  }, {
596
- default: D(() => [
597
- T(v(r.label), 1)
596
+ default: C(() => [
597
+ S(h(r.label), 1)
598
598
  ]),
599
599
  _: 2
600
600
  }, 1032, ["to"])
601
601
  ]))), 128))
602
602
  ]),
603
- a("div", bt, " version: " + v(e.version), 1)
603
+ a("div", pt, " version: " + h(e.version), 1)
604
604
  ], 4)
605
605
  ])
606
606
  ], 2)
607
607
  ])
608
608
  ], 64));
609
609
  }
610
- }), O = /* @__PURE__ */ p({
610
+ }), Q = /* @__PURE__ */ p({
611
611
  __name: "pagination-button.component",
612
612
  props: {
613
613
  currentPage: {},
@@ -618,25 +618,25 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
618
618
  },
619
619
  emits: ["updatePage", "updatePageSize"],
620
620
  setup(e, { emit: t }) {
621
- const n = e, l = t, s = k(
622
- () => n.neverActive ? !1 : n.page === n.currentPage
623
- ), c = k(() => n.neverActive ? j.blank : s.value ? j.primary : j.secondary), h = () => {
624
- l("updatePage", n.page);
621
+ const o = e, s = t, n = $(
622
+ () => o.neverActive ? !1 : o.page === o.currentPage
623
+ ), u = $(() => o.neverActive ? G.blank : n.value ? G.primary : G.secondary), b = () => {
624
+ s("updatePage", o.page);
625
625
  };
626
- return (f, u) => (o(), g(b(q), {
626
+ return (m, i) => (l(), v(f(J), {
627
627
  disabled: e.disabled,
628
628
  square: !0,
629
629
  size: "xs",
630
- color: c.value,
631
- onClick: u[0] || (u[0] = (d) => h())
630
+ color: u.value,
631
+ onClick: i[0] || (i[0] = (d) => b())
632
632
  }, {
633
- default: D(() => [
634
- T(v(e.label), 1)
633
+ default: C(() => [
634
+ S(h(e.label), 1)
635
635
  ]),
636
636
  _: 1
637
637
  }, 8, ["disabled", "color"]));
638
638
  }
639
- }), ht = { class: "flex gap-2" }, vt = { class: "flex flex-1 justify-center items-center" }, gt = { class: "flex gap-1" }, pt = { class: "text-sm" }, E = 6, yt = /* @__PURE__ */ p({
639
+ }), vt = { class: "flex gap-2" }, gt = { class: "flex flex-1 justify-center items-center" }, yt = { class: "flex gap-1" }, xt = { class: "text-sm" }, X = 6, wt = /* @__PURE__ */ p({
640
640
  __name: "pagination.component",
641
641
  props: {
642
642
  totalItems: { type: Number, default: 0 },
@@ -645,48 +645,48 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
645
645
  },
646
646
  emits: ["updatePage", "updatePageSize"],
647
647
  setup(e, { emit: t }) {
648
- const n = e, l = t, s = k(() => {
649
- let r = Math.ceil(n.totalItems / n.itemsPerPage);
648
+ const o = e, s = t, n = $(() => {
649
+ let r = Math.ceil(o.totalItems / o.itemsPerPage);
650
650
  return r < 1 ? 1 : r;
651
- }), c = E / 2, h = k(() => {
652
- if (s.value <= E)
651
+ }), u = X / 2, b = $(() => {
652
+ if (n.value <= X)
653
653
  return {
654
654
  min: 1,
655
- max: s.value
655
+ max: n.value
656
656
  };
657
- let r = n.currentPage - c;
658
- r <= 1 ? r = 1 : r + E > s.value && (r = s.value - E);
659
- let V = r + E;
657
+ let r = o.currentPage - u;
658
+ r <= 1 ? r = 1 : r + X > n.value && (r = n.value - X);
659
+ let A = r + X;
660
660
  return {
661
661
  min: r,
662
- max: V
662
+ max: A
663
663
  };
664
- }), f = (r) => ({
664
+ }), m = (r) => ({
665
665
  label: "...",
666
666
  currentPage: r,
667
667
  page: -10,
668
668
  disabled: !0,
669
669
  neverActive: !0
670
- }), u = k(() => {
671
- let r = s.value;
670
+ }), i = $(() => {
671
+ let r = n.value;
672
672
  r < 1 && (r = 1);
673
- const V = n.currentPage, A = [], { min: N, max: U } = h.value;
674
- return Array.from({ length: r }, (M, R) => {
675
- const m = R + 1;
676
- m !== 1 && m !== r && (m > U || m < N) || (m === r && r > 1 && U < r && A.push(f(V)), A.push({
677
- label: `${m}`,
673
+ const A = o.currentPage, T = [], { min: R, max: E } = b.value;
674
+ return Array.from({ length: r }, (_, g) => {
675
+ const w = g + 1;
676
+ w !== 1 && w !== r && (w > E || w < R) || (w === r && r > 1 && E < r && T.push(m(A)), T.push({
677
+ label: `${w}`,
678
678
  totalPages: r,
679
- currentPage: V,
680
- page: m
681
- }), m === 1 && r > 1 && N > 1 && A.push(f(V)));
682
- }), A;
679
+ currentPage: A,
680
+ page: w
681
+ }), w === 1 && r > 1 && R > 1 && T.push(m(A)));
682
+ }), T;
683
683
  }), d = (r) => {
684
- l("updatePage", r);
684
+ s("updatePage", r);
685
685
  };
686
- return (r, V) => (o(), i("div", ht, [
687
- a("div", vt, [
688
- a("div", gt, [
689
- C(O, P(n, {
686
+ return (r, A) => (l(), c("div", vt, [
687
+ a("div", gt, [
688
+ a("div", yt, [
689
+ B(Q, V(o, {
690
690
  page: 1,
691
691
  label: "<<",
692
692
  "current-page": e.currentPage,
@@ -694,7 +694,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
694
694
  disabled: e.currentPage === 1,
695
695
  onUpdatePage: d
696
696
  }), null, 16, ["current-page", "disabled"]),
697
- C(O, P(n, {
697
+ B(Q, V(o, {
698
698
  page: e.currentPage - 1,
699
699
  label: "<",
700
700
  "current-page": e.currentPage,
@@ -702,37 +702,37 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
702
702
  disabled: e.currentPage === 1,
703
703
  onUpdatePage: d
704
704
  }), null, 16, ["page", "current-page", "disabled"]),
705
- (o(!0), i(x, null, $(u.value, (A) => (o(), g(O, P({
706
- key: A.page,
705
+ (l(!0), c(k, null, L(i.value, (T) => (l(), v(Q, V({
706
+ key: T.page,
707
707
  ref_for: !0
708
- }, A, { onUpdatePage: d }), null, 16))), 128)),
709
- C(O, P(n, {
708
+ }, T, { onUpdatePage: d }), null, 16))), 128)),
709
+ B(Q, V(o, {
710
710
  page: e.currentPage + 1,
711
711
  label: ">",
712
712
  "current-page": e.currentPage,
713
713
  "never-active": !0,
714
- disabled: n.currentPage === s.value,
714
+ disabled: o.currentPage === n.value,
715
715
  onUpdatePage: d
716
716
  }), null, 16, ["page", "current-page", "disabled"]),
717
- C(O, P(n, {
718
- page: s.value,
717
+ B(Q, V(o, {
718
+ page: n.value,
719
719
  label: ">>",
720
720
  "current-page": e.currentPage,
721
721
  "never-active": !0,
722
- disabled: n.currentPage === s.value,
722
+ disabled: o.currentPage === n.value,
723
723
  onUpdatePage: d
724
724
  }), null, 16, ["page", "current-page", "disabled"])
725
725
  ])
726
726
  ]),
727
- a("div", pt, " page " + v(e.currentPage) + " of " + v(s.value), 1)
727
+ a("div", xt, " page " + h(e.currentPage) + " of " + h(n.value), 1)
728
728
  ]));
729
729
  }
730
- }), de = (e, t) => {
731
- const n = e.__vccOpts || e;
732
- for (const [l, s] of t)
733
- n[l] = s;
734
- return n;
735
- }, wt = () => ({
730
+ }), me = (e, t) => {
731
+ const o = e.__vccOpts || e;
732
+ for (const [s, n] of t)
733
+ o[s] = n;
734
+ return o;
735
+ }, kt = () => ({
736
736
  data: {
737
737
  type: Object,
738
738
  required: !0
@@ -745,10 +745,10 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
745
745
  type: Object,
746
746
  required: !1
747
747
  }
748
- }), xt = p({
748
+ }), $t = p({
749
749
  name: "TextCell",
750
750
  props: {
751
- ...wt()
751
+ ...kt()
752
752
  },
753
753
  computed: {
754
754
  value() {
@@ -756,11 +756,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
756
756
  return e ? this.column.options?.format === "keyValue" ? e[this.column.options.key] : e : null;
757
757
  }
758
758
  }
759
- }), kt = xt;
760
- function $t(e, t, n, l, s, c) {
761
- return v(e.value) + " - value";
759
+ }), Ct = $t;
760
+ function Bt(e, t, o, s, n, u) {
761
+ return h(e.value) + " - value";
762
762
  }
763
- const Kn = /* @__PURE__ */ de(kt, [["render", $t]]), Ct = { class: "flex-grow pr-2" }, _t = { class: "h-4 w-4" }, Lt = /* @__PURE__ */ p({
763
+ const Eo = /* @__PURE__ */ me(Ct, [["render", Bt]]), _t = { class: "flex-grow pr-2" }, Lt = { class: "h-4 w-4" }, Mt = /* @__PURE__ */ p({
764
764
  __name: "sort.header",
765
765
  props: {
766
766
  column: {},
@@ -769,25 +769,25 @@ const Kn = /* @__PURE__ */ de(kt, [["render", $t]]), Ct = { class: "flex-grow pr
769
769
  },
770
770
  emits: ["sort"],
771
771
  setup(e, { emit: t }) {
772
- const n = e, l = k(
773
- () => n.sortDirection === "asc" ? z.BarsArrowUp : z.BarsArrowDown
774
- ), s = k(() => n.column.options?.sortId ?? n.column.id), c = () => {
775
- h("sort", s.value);
776
- }, h = t;
777
- return (f, u) => (o(), i("button", {
772
+ const o = e, s = $(
773
+ () => o.sortDirection === "asc" ? F.BarsArrowUp : F.BarsArrowDown
774
+ ), n = $(() => o.column.options?.sortId ?? o.column.id), u = () => {
775
+ b("sort", n.value);
776
+ }, b = t;
777
+ return (m, i) => (l(), c("button", {
778
778
  class: "flex items-center",
779
- onClick: c
779
+ onClick: u
780
780
  }, [
781
- a("span", Ct, v(e.column.label), 1),
782
- a("div", _t, [
783
- e.sortColumn === s.value ? (o(), g(b(I), {
781
+ a("span", _t, h(e.column.label), 1),
782
+ a("div", Lt, [
783
+ e.sortColumn === n.value ? (l(), v(f(j), {
784
784
  key: 0,
785
- icon: l.value
786
- }, null, 8, ["icon"])) : y("", !0)
785
+ icon: s.value
786
+ }, null, 8, ["icon"])) : x("", !0)
787
787
  ])
788
788
  ]));
789
789
  }
790
- }), Mt = { class: "table w-full" }, Bt = { key: 0 }, Pt = ["colspan"], Dt = { class: "flex gap-2" }, Fn = /* @__PURE__ */ p({
790
+ }), Pt = { class: "table w-full" }, Vt = { key: 0 }, Dt = ["colspan"], At = { class: "flex gap-2" }, Wo = /* @__PURE__ */ p({
791
791
  __name: "table.component",
792
792
  props: {
793
793
  loading: { type: Boolean },
@@ -799,133 +799,133 @@ const Kn = /* @__PURE__ */ de(kt, [["render", $t]]), Ct = { class: "flex-grow pr
799
799
  },
800
800
  emits: ["delete", "edit", "updatePage", "sort"],
801
801
  setup(e, { emit: t }) {
802
- const n = t, l = (f) => {
803
- n("edit", f);
804
- }, s = (f) => {
805
- n("delete", f);
806
- }, c = (f) => {
807
- n("updatePage", f);
808
- }, h = (f) => {
809
- n("sort", f);
802
+ const o = t, s = (m) => {
803
+ o("edit", m);
804
+ }, n = (m) => {
805
+ o("delete", m);
806
+ }, u = (m) => {
807
+ o("updatePage", m);
808
+ }, b = (m) => {
809
+ o("sort", m);
810
810
  };
811
- return (f, u) => (o(), i(x, null, [
812
- a("table", Mt, [
811
+ return (m, i) => (l(), c(k, null, [
812
+ a("table", Pt, [
813
813
  a("thead", null, [
814
814
  a("tr", null, [
815
- (o(!0), i(x, null, $(e.displayColumns, (d) => (o(), i("th", {
815
+ (l(!0), c(k, null, L(e.displayColumns, (d) => (l(), c("th", {
816
816
  key: d.scope
817
817
  }, [
818
- C(Lt, P({ column: d }, { ref_for: !0 }, e.sort, { onSort: h }), null, 16, ["column"])
818
+ B(Mt, V({ column: d }, { ref_for: !0 }, e.sort, { onSort: b }), null, 16, ["column"])
819
819
  ]))), 128)),
820
- u[0] || (u[0] = a("th", null, null, -1))
820
+ i[0] || (i[0] = a("th", null, null, -1))
821
821
  ])
822
822
  ]),
823
823
  a("tbody", null, [
824
- e.loading ? (o(), i("tr", Bt, [
824
+ e.loading ? (l(), c("tr", Vt, [
825
825
  a("td", {
826
826
  colspan: e.displayColumns.length + 1,
827
827
  class: "text-center"
828
- }, [...u[1] || (u[1] = [
828
+ }, [...i[1] || (i[1] = [
829
829
  a("span", { class: "loading loading-bars loading-xs" }, null, -1)
830
- ])], 8, Pt)
831
- ])) : y("", !0),
832
- (o(!0), i(x, null, $(e.data, (d) => (o(), i("tr", {
830
+ ])], 8, Dt)
831
+ ])) : x("", !0),
832
+ (l(!0), c(k, null, L(e.data, (d) => (l(), c("tr", {
833
833
  key: d.id
834
834
  }, [
835
- (o(!0), i(x, null, $(e.displayColumns, (r) => (o(), i("td", {
835
+ (l(!0), c(k, null, L(e.displayColumns, (r) => (l(), c("td", {
836
836
  key: r.scope
837
837
  }, [
838
- (o(), g(ae(r.component), P({ ref_for: !0 }, r, {
838
+ (l(), v(ae(r.component), V({ ref_for: !0 }, r, {
839
839
  data: d,
840
840
  column: r
841
841
  }), null, 16, ["data", "column"]))
842
842
  ]))), 128)),
843
843
  a("td", null, [
844
- a("span", Dt, [
845
- (o(!0), i(x, null, $(e.actions, (r) => (o(), g(q, {
844
+ a("span", At, [
845
+ (l(!0), c(k, null, L(e.actions, (r) => (l(), v(J, {
846
846
  key: r.label,
847
847
  icon: r.icon,
848
848
  outline: !0,
849
- onClick: (V) => r.action(d)
849
+ onClick: (A) => r.action(d)
850
850
  }, {
851
- default: D(() => [
852
- T(v(r.label), 1)
851
+ default: C(() => [
852
+ S(h(r.label), 1)
853
853
  ]),
854
854
  _: 2
855
855
  }, 1032, ["icon", "onClick"]))), 128)),
856
- C(q, {
857
- icon: b(z).Edit,
856
+ B(J, {
857
+ icon: f(F).Edit,
858
858
  outline: !0,
859
- onClick: (r) => l(d)
859
+ onClick: (r) => s(d)
860
860
  }, null, 8, ["icon", "onClick"]),
861
- C(q, {
862
- icon: b(z).Delete,
861
+ B(J, {
862
+ icon: f(F).Delete,
863
863
  outline: !0,
864
- onClick: (r) => s(d)
864
+ onClick: (r) => n(d)
865
865
  }, null, 8, ["icon", "onClick"])
866
866
  ])
867
867
  ])
868
868
  ]))), 128))
869
869
  ])
870
870
  ]),
871
- e.page ? (o(), g(yt, {
871
+ e.page ? (l(), v(wt, {
872
872
  key: 0,
873
873
  class: "border-gray-300 border-t pt-4 border-x-0 border-b-0",
874
874
  "total-items": e.page.count,
875
875
  "items-per-page": e.page.pageSize,
876
876
  "current-page": e.page.page,
877
- onUpdatePage: c
878
- }, null, 8, ["total-items", "items-per-page", "current-page"])) : y("", !0)
877
+ onUpdatePage: u
878
+ }, null, 8, ["total-items", "items-per-page", "current-page"])) : x("", !0)
879
879
  ], 64));
880
880
  }
881
- }), Vt = {}, At = { class: "card bg-base-100 shadow-sm" }, zt = { class: "card-body" }, Tt = {
881
+ }), Tt = {}, zt = { class: "card bg-base-100 shadow-sm" }, Ft = { class: "card-body" }, St = {
882
882
  key: 0,
883
883
  class: "card-title"
884
- }, St = {
884
+ }, Nt = {
885
885
  key: 1,
886
886
  class: "card-actions justify-end"
887
887
  };
888
- function Nt(e, t) {
889
- return o(), i("div", At, [
890
- a("div", zt, [
891
- e.$slots.title ? (o(), i("h2", Tt, [
892
- B(e.$slots, "title")
893
- ])) : y("", !0),
888
+ function Kt(e, t) {
889
+ return l(), c("div", zt, [
890
+ a("div", Ft, [
891
+ e.$slots.title ? (l(), c("h2", St, [
892
+ D(e.$slots, "title")
893
+ ])) : x("", !0),
894
894
  a("p", null, [
895
- B(e.$slots, "default"),
896
- B(e.$slots, "content")
895
+ D(e.$slots, "default"),
896
+ D(e.$slots, "content")
897
897
  ]),
898
- e.$slots.actions ? (o(), i("div", St, [
899
- B(e.$slots, "actions")
900
- ])) : y("", !0)
898
+ e.$slots.actions ? (l(), c("div", Nt, [
899
+ D(e.$slots, "actions")
900
+ ])) : x("", !0)
901
901
  ])
902
902
  ]);
903
903
  }
904
- const In = /* @__PURE__ */ de(Vt, [["render", Nt]]), Un = (e, t) => {
904
+ const Zo = /* @__PURE__ */ me(Tt, [["render", Kt]]), Go = (e, t) => {
905
905
  if (!e) return null;
906
- const n = (l) => {
907
- e.contains(l.target) || t();
906
+ const o = (s) => {
907
+ e.contains(s.target) || t();
908
908
  };
909
- return document.addEventListener("click", n), n;
910
- }, Hn = (e) => {
909
+ return document.addEventListener("click", o), o;
910
+ }, Jo = (e) => {
911
911
  document.removeEventListener("click", e);
912
- }, jn = {
912
+ }, Qo = {
913
913
  beforeMount(e, t) {
914
- e.clickOutsideEvent = function(n) {
915
- e === n.target || e.contains(n.target) || t.value(n);
914
+ e.clickOutsideEvent = function(o) {
915
+ e === o.target || e.contains(o.target) || t.value(o);
916
916
  }, document.addEventListener("click", e.clickOutsideEvent);
917
917
  },
918
918
  unmounted(e) {
919
919
  document.removeEventListener("click", e.clickOutsideEvent);
920
920
  }
921
921
  };
922
- function qn(e) {
922
+ function Xo(e) {
923
923
  const t = we();
924
924
  if (!t)
925
925
  return !1;
926
- const n = t.vnode.props;
927
- return n ? !!(n[me(e)] || // also try camelCase event handler (#2249)
928
- n[me(xe(e))]) : !1;
926
+ const o = t.vnode.props;
927
+ return o ? !!(o[be(e)] || // also try camelCase event handler (#2249)
928
+ o[be(ke(e))]) : !1;
929
929
  }
930
930
  const Rt = {
931
931
  group: {
@@ -951,6 +951,7 @@ const Rt = {
951
951
  label: "fieldset-legend",
952
952
  error: "",
953
953
  input: "input",
954
+ textarea: "input h-32",
954
955
  select: "select",
955
956
  description: "form-control--description label text-xs text-gray-500"
956
957
  },
@@ -958,8 +959,8 @@ const Rt = {
958
959
  root: "flex flex-row gap-x-2",
959
960
  item: "w-full"
960
961
  }
961
- }, G = () => ({
962
- id: ne(),
962
+ }, q = () => ({
963
+ id: le(),
963
964
  visible: !0,
964
965
  required: !1,
965
966
  enabled: !0,
@@ -967,15 +968,19 @@ const Rt = {
967
968
  isTouched: !1,
968
969
  hideLabel: !1,
969
970
  styles: Rt
970
- }), Kt = () => ({
971
- ...G(),
971
+ }), It = () => ({
972
+ ...q(),
972
973
  options: [],
973
974
  valueKey: "value",
974
975
  labelKey: "label"
975
- }), Ft = (e, t, n) => !!(e && n), It = (e, t, n, l) => t === void 0 || t !== void 0 && !e || !l && !n, Ut = { key: 0 }, oe = /* @__PURE__ */ p({
976
+ }), ye = (e, t, o) => !!(e && o), Ut = (e, t, o, s) => t === void 0 || t !== void 0 && !e || !s && !o, Yo = (e, t, o, s) => [
977
+ e?.control.input,
978
+ { "input-error": ye(o, t, s) }
979
+ ], qt = { key: 0 }, O = /* @__PURE__ */ p({
976
980
  __name: "ControlWrapper",
977
- props: /* @__PURE__ */ Z({
981
+ props: /* @__PURE__ */ U({
978
982
  id: {},
983
+ placeholder: {},
979
984
  description: {},
980
985
  errors: {},
981
986
  label: {},
@@ -986,38 +991,39 @@ const Rt = {
986
991
  isTouched: { type: Boolean },
987
992
  hideLabel: { type: Boolean },
988
993
  styles: {}
989
- }, G()),
994
+ }, q()),
990
995
  setup(e) {
991
- const t = e, n = k(() => !It(
996
+ const t = e, o = $(() => !Ut(
992
997
  t.visible,
993
998
  t.description,
994
999
  t.isFocused,
995
1000
  !0
996
- )), l = k(() => t.required), s = k(() => Ft(
1001
+ )), s = $(() => t.required), n = $(() => ye(
997
1002
  t.isTouched,
998
1003
  t.isFocused,
999
1004
  t.errors
1000
1005
  ));
1001
- return (c, h) => (o(), i("fieldset", {
1002
- class: w(e.styles.control.wrapper)
1006
+ return (u, b) => (l(), c("fieldset", {
1007
+ class: y(e.styles.control.wrapper)
1003
1008
  }, [
1004
- e.hideLabel ? y("", !0) : (o(), i("legend", {
1009
+ e.hideLabel ? x("", !0) : (l(), c("legend", {
1005
1010
  key: 0,
1006
- class: w(e.styles.control.label)
1011
+ class: y(e.styles.control.label)
1007
1012
  }, [
1008
- T(v(e.label) + " ", 1),
1009
- l.value ? (o(), i("span", Ut, "*")) : y("", !0)
1013
+ S(h(e.label) + " ", 1),
1014
+ s.value ? (l(), c("span", qt, "*")) : x("", !0)
1010
1015
  ], 2)),
1011
- B(c.$slots, "default"),
1016
+ D(u.$slots, "default"),
1012
1017
  a("p", {
1013
- class: w(["fieldset-label h-4", { "text-error": s.value }])
1014
- }, v(s.value ? e.errors : n.value ? e.description : null), 3)
1018
+ class: y(["fieldset-label h-4", { "text-error": n.value }])
1019
+ }, h(n.value ? e.errors : o.value ? e.description : null), 3)
1015
1020
  ], 2));
1016
1021
  }
1017
- }), Ht = ["disabled"], jt = ["value"], On = /* @__PURE__ */ p({
1022
+ }), jt = ["disabled"], Ht = ["value"], el = /* @__PURE__ */ p({
1018
1023
  __name: "SelectComponent",
1019
- props: /* @__PURE__ */ F(/* @__PURE__ */ Z({
1024
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1020
1025
  id: {},
1026
+ placeholder: {},
1021
1027
  description: {},
1022
1028
  errors: {},
1023
1029
  label: {},
@@ -1032,7 +1038,7 @@ const Rt = {
1032
1038
  valueKey: {},
1033
1039
  labelKey: {}
1034
1040
  }, {
1035
- ...G(),
1041
+ ...q(),
1036
1042
  options: [],
1037
1043
  valueKey: "value",
1038
1044
  labelKey: "label"
@@ -1040,46 +1046,47 @@ const Rt = {
1040
1046
  modelValue: {},
1041
1047
  modelModifiers: {}
1042
1048
  }),
1043
- emits: /* @__PURE__ */ F(["change", "focus", "blur"], ["update:modelValue"]),
1049
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1044
1050
  setup(e, { emit: t }) {
1045
- const n = e, l = t, s = Y(e, "modelValue"), c = (u) => {
1046
- l("change", u);
1047
- }, h = (u) => {
1048
- l("focus", u);
1049
- }, f = (u) => {
1050
- l("blur", u);
1051
+ const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
1052
+ s("change", i);
1053
+ }, b = (i) => {
1054
+ s("focus", i);
1055
+ }, m = (i) => {
1056
+ s("blur", i);
1051
1057
  };
1052
- return (u, d) => (o(), g(oe, ee(te(n)), {
1053
- default: D(() => [
1054
- W(a("select", {
1055
- "onUpdate:modelValue": d[0] || (d[0] = (r) => s.value = r),
1058
+ return (i, d) => (l(), v(O, W(Z(o)), {
1059
+ default: C(() => [
1060
+ I(a("select", {
1061
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
1056
1062
  disabled: !e.enabled,
1057
- class: w(["select select-bordered", e.styles.control.select]),
1058
- onChange: c,
1059
- onFocus: h,
1060
- onBlur: f
1063
+ class: y(["select select-bordered", e.styles.control.select]),
1064
+ onChange: u,
1065
+ onFocus: b,
1066
+ onBlur: m
1061
1067
  }, [
1062
- (o(!0), i(x, null, $(e.options, (r) => (o(), i("option", {
1068
+ (l(!0), c(k, null, L(e.options, (r) => (l(), c("option", {
1063
1069
  key: r[e.valueKey],
1064
1070
  value: r
1065
- }, v(r[e.labelKey]), 9, jt))), 128))
1066
- ], 42, Ht), [
1067
- [ke, s.value]
1071
+ }, h(r[e.labelKey]), 9, Ht))), 128))
1072
+ ], 42, jt), [
1073
+ [$e, n.value]
1068
1074
  ])
1069
1075
  ]),
1070
1076
  _: 1
1071
1077
  }, 16));
1072
1078
  }
1073
- }), qt = ["disabled"], Ot = {
1079
+ }), Ot = ["disabled"], Et = {
1074
1080
  key: 0,
1075
- class: /* @__PURE__ */ w([
1081
+ class: /* @__PURE__ */ y([
1076
1082
  `bg-base-100 w-52 shadow -mt-5
1077
1083
  absolute z-50`
1078
1084
  ])
1079
- }, Et = ["onClick", "onBlur"], En = /* @__PURE__ */ p({
1085
+ }, Wt = ["onClick", "onBlur"], tl = /* @__PURE__ */ p({
1080
1086
  __name: "AutoComplete",
1081
- props: /* @__PURE__ */ F(/* @__PURE__ */ Z({
1087
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1082
1088
  id: {},
1089
+ placeholder: {},
1083
1090
  description: {},
1084
1091
  errors: {},
1085
1092
  label: {},
@@ -1094,91 +1101,92 @@ const Rt = {
1094
1101
  options: {},
1095
1102
  valueKey: {},
1096
1103
  labelKey: {}
1097
- }, Kt()), {
1104
+ }, It()), {
1098
1105
  modelValue: {},
1099
1106
  modelModifiers: {}
1100
1107
  }),
1101
- emits: /* @__PURE__ */ F(["change", "focus", "blur"], ["update:modelValue"]),
1108
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1102
1109
  setup(e, { emit: t }) {
1103
- const n = e, l = t, s = Y(e, "modelValue"), c = S(""), h = (m) => {
1104
- l("change", m);
1105
- }, f = (m) => {
1106
- l("focus", m);
1107
- }, u = (m) => {
1108
- l("blur", m);
1109
- }, d = S(!1), r = S([]), V = (m) => {
1110
- d.value = !0, A(m);
1111
- }, A = (m) => {
1112
- s.value = m, h(m);
1113
- }, N = (m) => {
1114
- r.value?.length === m + 1 && (r.value = []);
1115
- }, U = Le(), M = (m) => m[n.valueKey], R = (m) => m?.[n.labelKey] ?? "";
1116
- return Q(
1117
- () => s.value,
1118
- (m) => {
1119
- m && !M(m) || (d.value = !0, r.value = [], c.value = R(m));
1110
+ const o = e, s = t, n = H(e, "modelValue"), u = N(""), b = (g) => {
1111
+ s("change", g);
1112
+ }, m = (g) => {
1113
+ s("focus", g);
1114
+ }, i = (g) => {
1115
+ s("blur", g);
1116
+ }, d = N(!1), r = N([]), A = (g) => {
1117
+ d.value = !0, T(g);
1118
+ }, T = (g) => {
1119
+ n.value = g, b(g);
1120
+ }, R = (g) => {
1121
+ r.value?.length === g + 1 && (r.value = []);
1122
+ }, E = (g) => g[o.valueKey], _ = (g) => g?.[o.labelKey] ?? "";
1123
+ return te(
1124
+ () => n.value,
1125
+ (g) => {
1126
+ g && !E(g) || (d.value = !0, r.value = [], u.value = _(g));
1120
1127
  },
1121
1128
  { immediate: !0 }
1122
- ), Q(
1123
- () => c.value,
1124
- (m) => {
1129
+ ), te(
1130
+ () => u.value,
1131
+ (g) => {
1125
1132
  if (d.value) {
1126
1133
  d.value = !1;
1127
1134
  return;
1128
1135
  }
1129
- if (A({ [n.labelKey]: m }), n.config) {
1130
- const { uri: _, skipAuth: H, dataField: K } = n.config;
1131
- U.get(`${_}${m}`, { skipAuth: H }).then((se) => {
1132
- r.value = se.data[K];
1136
+ if (T({ [o.labelKey]: g }), o.config) {
1137
+ const { uri: w, skipAuth: z, dataField: K } = o.config;
1138
+ (o.config.skipAuth ? Le : Me()).get(`${w}${g}`).then((ne) => {
1139
+ r.value = ne.data[K];
1133
1140
  });
1134
- } else n.options && (r.value = n.options.filter((_) => R(_).toLowerCase().includes(m)).slice(0, 10));
1141
+ } else o.options && (r.value = o.options.filter((w) => _(w).toLowerCase().includes(g)).slice(0, 10));
1135
1142
  }
1136
- ), (m, _) => {
1137
- const H = fe("click-outside");
1138
- return o(), g(oe, ee(te(n)), {
1139
- default: D(() => [
1140
- W(a("input", {
1141
- "onUpdate:modelValue": _[0] || (_[0] = (K) => c.value = K),
1143
+ ), (g, w) => {
1144
+ const z = he("click-outside");
1145
+ return l(), v(O, W(Z(o)), {
1146
+ default: C(() => [
1147
+ I(a("input", {
1148
+ "onUpdate:modelValue": w[0] || (w[0] = (K) => u.value = K),
1142
1149
  autocomplete: "off",
1143
1150
  type: "text",
1144
- class: w([e.styles.control.select]),
1151
+ class: y([e.styles.control.select]),
1145
1152
  disabled: !e.enabled,
1146
- onFocus: f,
1147
- onBlur: u
1148
- }, null, 42, qt), [
1149
- [$e, c.value]
1153
+ onFocus: m,
1154
+ onBlur: i
1155
+ }, null, 42, Ot), [
1156
+ [ie, u.value]
1150
1157
  ]),
1151
- W((o(), i("div", null, [
1152
- r.value?.length ? (o(), i("ul", Ot, [
1153
- (o(!0), i(x, null, $(r.value, (K, se) => (o(), i("li", {
1158
+ I((l(), c("div", null, [
1159
+ r.value?.length ? (l(), c("ul", Et, [
1160
+ (l(!0), c(k, null, L(r.value, (K, Y) => (l(), c("li", {
1154
1161
  key: K[e.valueKey]
1155
1162
  }, [
1156
1163
  a("button", {
1157
1164
  class: "w-full h-8 border-b-1 border-gray-200 border-x-0 border-t-0 px-4 py-2 text-left hover:bg-primary-content cursor-pointer",
1158
1165
  type: "button",
1159
- onClick: (ge) => V(K),
1160
- onBlur: (ge) => N(se)
1161
- }, v(R(K)), 41, Et)
1166
+ onClick: (ne) => A(K),
1167
+ onBlur: (ne) => R(Y)
1168
+ }, h(_(K)), 41, Wt)
1162
1169
  ]))), 128))
1163
- ])) : y("", !0)
1170
+ ])) : x("", !0)
1164
1171
  ])), [
1165
- [H, () => r.value = []]
1172
+ [z, () => r.value = []]
1166
1173
  ])
1167
1174
  ]),
1168
1175
  _: 1
1169
1176
  }, 16);
1170
1177
  };
1171
1178
  }
1172
- }), Wt = {
1179
+ }), Zt = {
1173
1180
  key: 0,
1174
- class: /* @__PURE__ */ w([
1181
+ class: /* @__PURE__ */ y([
1175
1182
  `bg-base-100 w-52 shadow -mt-5
1176
1183
  absolute z-50 p-0`
1177
1184
  ])
1178
- }, Zt = ["onClick"], Gt = { class: "w-4 mr-2" }, Wn = /* @__PURE__ */ p({
1185
+ }, Gt = ["onClick"], Jt = { class: "w-4 mr-2" }, ol = /* @__PURE__ */ p({
1179
1186
  __name: "MultiSelect",
1180
- props: /* @__PURE__ */ F(/* @__PURE__ */ Z({
1187
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1181
1188
  id: {},
1189
+ placeholder: {},
1182
1190
  description: {},
1183
1191
  errors: {},
1184
1192
  label: {},
@@ -1193,73 +1201,74 @@ const Rt = {
1193
1201
  valueKey: {},
1194
1202
  labelKey: {}
1195
1203
  }, {
1196
- ...G(),
1204
+ ...q(),
1197
1205
  valueKey: "value",
1198
1206
  labelKey: "label"
1199
1207
  }), {
1200
1208
  modelValue: {},
1201
1209
  modelModifiers: {}
1202
1210
  }),
1203
- emits: /* @__PURE__ */ F(["change", "focus", "blur"], ["update:modelValue"]),
1211
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1204
1212
  setup(e, { emit: t }) {
1205
- const n = e, l = t, s = Y(e, "modelValue");
1206
- let c = !1;
1207
- const h = (M) => {
1208
- l("change", M);
1209
- }, f = S(!1), u = () => {
1210
- f.value = !f.value, c = !0;
1213
+ const o = e, s = t, n = H(e, "modelValue");
1214
+ let u = !1;
1215
+ const b = (_) => {
1216
+ s("change", _);
1217
+ }, m = N(!1), i = () => {
1218
+ m.value = !m.value, u = !0;
1211
1219
  }, d = () => {
1212
- c || (f.value = !1), c = !1;
1213
- }, r = k(
1214
- () => s.value?.map((M) => N(M)) ?? []
1215
- ), V = (M) => r.value.includes(M), A = (M, R) => {
1216
- M.preventDefault();
1217
- let m = s.value ?? [];
1218
- const _ = N(R);
1219
- V(_) ? m = m.filter((K) => N(K) !== _) : m.push(R), s.value = m, h(m);
1220
- }, N = (M) => M[n.valueKey], U = (M) => M?.[n.labelKey] ?? "";
1221
- return (M, R) => {
1222
- const m = fe("click-outside");
1223
- return o(), g(oe, ee(te(n)), {
1224
- default: D(() => [
1220
+ u || (m.value = !1), u = !1;
1221
+ }, r = $(
1222
+ () => n.value?.map((_) => R(_)) ?? []
1223
+ ), A = (_) => r.value.includes(_), T = (_, g) => {
1224
+ _.preventDefault();
1225
+ let w = n.value ?? [];
1226
+ const z = R(g);
1227
+ A(z) ? w = w.filter((Y) => R(Y) !== z) : w.push(g), n.value = w, b(w);
1228
+ }, R = (_) => _[o.valueKey], E = (_) => _?.[o.labelKey] ?? "";
1229
+ return (_, g) => {
1230
+ const w = he("click-outside");
1231
+ return l(), v(O, W(Z(o)), {
1232
+ default: C(() => [
1225
1233
  a("button", {
1226
1234
  type: "button",
1227
- class: w([e.styles.control.select, "w-full truncate block"]),
1228
- onClick: u
1229
- }, v(s.value?.map?.((_) => U(_)).join(", ") ?? "Select value"), 3),
1230
- W((o(), i("div", null, [
1231
- f.value ? (o(), i("ul", Wt, [
1232
- (o(!0), i(x, null, $(e.options, (_) => (o(), i("li", {
1233
- key: _[e.valueKey]
1235
+ class: y([e.styles.control.select, "w-full truncate block"]),
1236
+ onClick: i
1237
+ }, h(n.value?.map?.((z) => E(z)).join(", ") ?? "Select value"), 3),
1238
+ I((l(), c("div", null, [
1239
+ m.value ? (l(), c("ul", Zt, [
1240
+ (l(!0), c(k, null, L(e.options, (z) => (l(), c("li", {
1241
+ key: z[e.valueKey]
1234
1242
  }, [
1235
1243
  a("button", {
1236
1244
  class: "w-full flex h-8 border-b-1 border-gray-200 border-x-0 border-t-0 p-2 text-left hover:bg-primary-content cursor-pointer",
1237
1245
  type: "button",
1238
- onClick: (H) => A(H, _)
1246
+ onClick: (K) => T(K, z)
1239
1247
  }, [
1240
- a("div", Gt, [
1241
- V(N(_)) ? (o(), g(b(I), {
1248
+ a("div", Jt, [
1249
+ A(R(z)) ? (l(), v(f(j), {
1242
1250
  key: 0,
1243
- icon: b(z).Check,
1251
+ icon: f(F).Check,
1244
1252
  size: "sm"
1245
- }, null, 8, ["icon"])) : y("", !0)
1253
+ }, null, 8, ["icon"])) : x("", !0)
1246
1254
  ]),
1247
- T(" " + v(U(_)), 1)
1248
- ], 8, Zt)
1255
+ S(" " + h(E(z)), 1)
1256
+ ], 8, Gt)
1249
1257
  ]))), 128))
1250
- ])) : y("", !0)
1258
+ ])) : x("", !0)
1251
1259
  ])), [
1252
- [m, () => d()]
1260
+ [w, () => d()]
1253
1261
  ])
1254
1262
  ]),
1255
1263
  _: 1
1256
1264
  }, 16);
1257
1265
  };
1258
1266
  }
1259
- }), Jt = { class: "card bg-base-100 border border-base-300" }, Qt = { class: "flex items-center gap-1 px-3 py-2 border-b border-base-300 bg-base-200" }, Xt = ["title", "onClick"], Yt = ["innerHTML"], en = { class: "card-body p-3" }, tn = /* @__PURE__ */ p({
1267
+ }), Qt = { class: "card bg-base-100 border border-base-300" }, Xt = { class: "flex items-center gap-1 px-3 py-2 border-b border-base-300 bg-base-200" }, Yt = ["title", "onClick"], eo = ["innerHTML"], to = { class: "card-body p-3" }, oo = /* @__PURE__ */ p({
1260
1268
  __name: "Markdown",
1261
- props: /* @__PURE__ */ F(/* @__PURE__ */ Z({
1269
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1262
1270
  id: {},
1271
+ placeholder: {},
1263
1272
  description: {},
1264
1273
  errors: {},
1265
1274
  label: {},
@@ -1272,7 +1281,7 @@ const Rt = {
1272
1281
  styles: {},
1273
1282
  actions: {}
1274
1283
  }, {
1275
- ...G(),
1284
+ ...q(),
1276
1285
  actions: () => [
1277
1286
  {
1278
1287
  label: "<strong>B</strong>",
@@ -1289,12 +1298,12 @@ const Rt = {
1289
1298
  modelValue: {},
1290
1299
  modelModifiers: {}
1291
1300
  }),
1292
- emits: /* @__PURE__ */ F(["update:modelValue"], ["update:modelValue"]),
1301
+ emits: /* @__PURE__ */ P(["update:modelValue"], ["update:modelValue"]),
1293
1302
  setup(e, { emit: t }) {
1294
- const n = e, l = t, s = Y(e, "modelValue"), c = De({
1295
- content: s.value ?? "",
1303
+ const o = e, s = t, n = H(e, "modelValue"), u = Ae({
1304
+ content: n.value ?? "",
1296
1305
  extensions: [
1297
- Pe.configure({
1306
+ De.configure({
1298
1307
  heading: !1,
1299
1308
  blockquote: !1,
1300
1309
  bulletList: !1,
@@ -1305,36 +1314,36 @@ const Rt = {
1305
1314
  horizontalRule: !1,
1306
1315
  hardBreak: !1
1307
1316
  }),
1308
- Ae.configure({
1317
+ ze.configure({
1309
1318
  html: !1,
1310
1319
  transformPastedText: !0
1311
1320
  // parse markdown on paste
1312
1321
  })
1313
1322
  ],
1314
- onUpdate({ editor: h }) {
1315
- l("update:modelValue", h.storage.markdown.getMarkdown());
1323
+ onUpdate({ editor: b }) {
1324
+ s("update:modelValue", b.storage.markdown.getMarkdown());
1316
1325
  }
1317
1326
  });
1318
1327
  return Ce(() => {
1319
- c.value?.destroy();
1320
- }), (h, f) => (o(), g(oe, ee(te(n)), {
1321
- default: D(() => [
1322
- a("div", Jt, [
1323
- a("div", Qt, [
1324
- (o(!0), i(x, null, $(e.actions, (u) => (o(), i("button", {
1325
- key: u.name,
1326
- class: w(["btn btn-sm btn-ghost", { "btn-active": b(c)?.isActive(u.name) }]),
1327
- title: u.label,
1328
- onClick: (d) => u.action(b(c))
1328
+ u.value?.destroy();
1329
+ }), (b, m) => (l(), v(O, W(Z(o)), {
1330
+ default: C(() => [
1331
+ a("div", Qt, [
1332
+ a("div", Xt, [
1333
+ (l(!0), c(k, null, L(e.actions, (i) => (l(), c("button", {
1334
+ key: i.name,
1335
+ class: y(["btn btn-sm btn-ghost", { "btn-active": f(u)?.isActive(i.name) }]),
1336
+ title: i.label,
1337
+ onClick: (d) => i.action(f(u))
1329
1338
  }, [
1330
1339
  a("span", {
1331
- innerHTML: u.label
1332
- }, null, 8, Yt)
1333
- ], 10, Xt))), 128))
1340
+ innerHTML: i.label
1341
+ }, null, 8, eo)
1342
+ ], 10, Yt))), 128))
1334
1343
  ]),
1335
- a("div", en, [
1336
- C(b(Ve), {
1337
- editor: b(c),
1344
+ a("div", to, [
1345
+ B(f(Te), {
1346
+ editor: f(u),
1338
1347
  class: "prose prose-sm max-w-none min-h-24"
1339
1348
  }, null, 8, ["editor"])
1340
1349
  ])
@@ -1343,73 +1352,286 @@ const Rt = {
1343
1352
  _: 1
1344
1353
  }, 16));
1345
1354
  }
1346
- }), Zn = /* @__PURE__ */ de(tn, [["__scopeId", "data-v-0d8fa163"]]), nn = { class: "grid grid-cols-[auto_1fr_auto] h-full overflow-hidden" }, on = {
1355
+ }), ll = /* @__PURE__ */ me(oo, [["__scopeId", "data-v-0d8fa163"]]), lo = { class: "flex items-center justify-center h-full" }, no = { class: "fieldset-label" }, so = ["disabled"], ao = { class: "font-bold text-gray-500 text-sm" }, nl = /* @__PURE__ */ p({
1356
+ __name: "Checkbox",
1357
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1358
+ id: {},
1359
+ placeholder: {},
1360
+ description: {},
1361
+ errors: {},
1362
+ label: {},
1363
+ visible: { type: Boolean },
1364
+ required: { type: Boolean },
1365
+ enabled: { type: Boolean },
1366
+ isFocused: { type: Boolean },
1367
+ isTouched: { type: Boolean },
1368
+ hideLabel: { type: Boolean },
1369
+ styles: {},
1370
+ options: {},
1371
+ valueKey: {},
1372
+ labelKey: {}
1373
+ }, {
1374
+ ...q()
1375
+ }), {
1376
+ modelValue: {},
1377
+ modelModifiers: {}
1378
+ }),
1379
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1380
+ setup(e, { emit: t }) {
1381
+ const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
1382
+ s("change", i);
1383
+ }, b = (i) => {
1384
+ s("focus", i);
1385
+ }, m = (i) => {
1386
+ s("blur", i);
1387
+ };
1388
+ return (i, d) => (l(), c("div", lo, [
1389
+ B(O, V(o, { "hide-label": !0 }), {
1390
+ default: C(() => [
1391
+ a("label", no, [
1392
+ I(a("input", {
1393
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
1394
+ type: "checkbox",
1395
+ class: y(["checkbox", e.styles.control.checkbox]),
1396
+ disabled: !e.enabled,
1397
+ onChange: u,
1398
+ onFocus: b,
1399
+ onBlur: m
1400
+ }, null, 42, so), [
1401
+ [fe, n.value]
1402
+ ]),
1403
+ a("span", ao, h(e.label), 1)
1404
+ ])
1405
+ ]),
1406
+ _: 1
1407
+ }, 16)
1408
+ ]));
1409
+ }
1410
+ }), io = ["type", "disabled", "autofocus", "placeholder"], sl = /* @__PURE__ */ p({
1411
+ __name: "Input",
1412
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1413
+ id: {},
1414
+ placeholder: {},
1415
+ description: {},
1416
+ errors: {},
1417
+ label: {},
1418
+ visible: { type: Boolean },
1419
+ required: { type: Boolean },
1420
+ enabled: { type: Boolean },
1421
+ isFocused: { type: Boolean },
1422
+ isTouched: { type: Boolean },
1423
+ hideLabel: { type: Boolean },
1424
+ styles: {},
1425
+ type: {}
1426
+ }, {
1427
+ ...q(),
1428
+ type: "text"
1429
+ }), {
1430
+ modelValue: {},
1431
+ modelModifiers: {}
1432
+ }),
1433
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1434
+ setup(e, { emit: t }) {
1435
+ const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
1436
+ s("change", i);
1437
+ }, b = (i) => {
1438
+ s("focus", i);
1439
+ }, m = (i) => {
1440
+ s("blur", i);
1441
+ };
1442
+ return (i, d) => (l(), v(O, W(Z(o)), {
1443
+ default: C(() => [
1444
+ I(a("input", {
1445
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
1446
+ autocomplete: "off",
1447
+ type: e.type,
1448
+ class: y([e.styles.control.input]),
1449
+ disabled: !e.enabled,
1450
+ autofocus: e.isFocused,
1451
+ placeholder: e.placeholder,
1452
+ onChange: u,
1453
+ onFocus: b,
1454
+ onBlur: m
1455
+ }, null, 42, io), [
1456
+ [Be, n.value]
1457
+ ])
1458
+ ]),
1459
+ _: 1
1460
+ }, 16));
1461
+ }
1462
+ }), ro = ["disabled", "step", "autofocus", "placeholder"], al = /* @__PURE__ */ p({
1463
+ __name: "InputNumber",
1464
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1465
+ id: {},
1466
+ placeholder: {},
1467
+ description: {},
1468
+ errors: {},
1469
+ label: {},
1470
+ visible: { type: Boolean },
1471
+ required: { type: Boolean },
1472
+ enabled: { type: Boolean },
1473
+ isFocused: { type: Boolean },
1474
+ isTouched: { type: Boolean },
1475
+ hideLabel: { type: Boolean },
1476
+ styles: {},
1477
+ steps: {}
1478
+ }, {
1479
+ ...q(),
1480
+ steps: 1
1481
+ }), {
1482
+ modelValue: {},
1483
+ modelModifiers: {}
1484
+ }),
1485
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1486
+ setup(e, { emit: t }) {
1487
+ const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
1488
+ s("change", i);
1489
+ }, b = (i) => {
1490
+ s("focus", i);
1491
+ }, m = (i) => {
1492
+ s("blur", i);
1493
+ };
1494
+ return (i, d) => (l(), v(O, W(Z(o)), {
1495
+ default: C(() => [
1496
+ I(a("input", {
1497
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
1498
+ autocomplete: "off",
1499
+ type: "number",
1500
+ class: y([e.styles.control.input]),
1501
+ disabled: !e.enabled,
1502
+ step: e.steps,
1503
+ autofocus: e.isFocused,
1504
+ placeholder: e.placeholder,
1505
+ onChange: u,
1506
+ onFocus: b,
1507
+ onBlur: m
1508
+ }, null, 42, ro), [
1509
+ [ie, n.value]
1510
+ ])
1511
+ ]),
1512
+ _: 1
1513
+ }, 16));
1514
+ }
1515
+ }), co = ["disabled", "rows", "autofocus", "placeholder"], il = /* @__PURE__ */ p({
1516
+ __name: "Textarea",
1517
+ props: /* @__PURE__ */ P(/* @__PURE__ */ U({
1518
+ id: {},
1519
+ placeholder: {},
1520
+ description: {},
1521
+ errors: {},
1522
+ label: {},
1523
+ visible: { type: Boolean },
1524
+ required: { type: Boolean },
1525
+ enabled: { type: Boolean },
1526
+ isFocused: { type: Boolean },
1527
+ isTouched: { type: Boolean },
1528
+ hideLabel: { type: Boolean },
1529
+ styles: {},
1530
+ rows: {}
1531
+ }, {
1532
+ ...q(),
1533
+ rows: 4
1534
+ }), {
1535
+ modelValue: {},
1536
+ modelModifiers: {}
1537
+ }),
1538
+ emits: /* @__PURE__ */ P(["change", "focus", "blur"], ["update:modelValue"]),
1539
+ setup(e, { emit: t }) {
1540
+ const o = e, s = t, n = H(e, "modelValue"), u = (i) => {
1541
+ s("change", i);
1542
+ }, b = (i) => {
1543
+ s("focus", i);
1544
+ }, m = (i) => {
1545
+ s("blur", i);
1546
+ };
1547
+ return (i, d) => (l(), v(O, W(Z(o)), {
1548
+ default: C(() => [
1549
+ I(a("textarea", {
1550
+ "onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
1551
+ autocomplete: "off",
1552
+ type: "text",
1553
+ class: y([e.styles.control.textarea]),
1554
+ disabled: !e.enabled,
1555
+ rows: e.rows,
1556
+ autofocus: e.isFocused,
1557
+ placeholder: e.placeholder,
1558
+ onChange: u,
1559
+ onFocus: b,
1560
+ onBlur: m
1561
+ }, null, 42, co), [
1562
+ [ie, n.value]
1563
+ ])
1564
+ ]),
1565
+ _: 1
1566
+ }, 16));
1567
+ }
1568
+ }), uo = { class: "grid grid-cols-[auto_1fr_auto] h-full overflow-hidden" }, mo = {
1347
1569
  id: "drawer-left",
1348
1570
  class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible"
1349
- }, sn = { class: "flex-1 overflow-y-auto bg-white" }, ln = { class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible" }, Gn = /* @__PURE__ */ p({
1571
+ }, bo = { class: "flex-1 overflow-y-auto bg-white" }, fo = { class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible" }, rl = /* @__PURE__ */ p({
1350
1572
  __name: "drawer",
1351
1573
  props: {
1352
1574
  widthLeft: { default: 200 },
1353
1575
  widthRight: { default: 200 }
1354
1576
  },
1355
1577
  setup(e) {
1356
- const t = S({ left: !0, right: !0 }), n = (l) => {
1357
- t.value[l] = !t.value[l];
1578
+ const t = N({ left: !0, right: !0 }), o = (s) => {
1579
+ t.value[s] = !t.value[s];
1358
1580
  };
1359
- return (l, s) => (o(), i("main", nn, [
1360
- a("aside", on, [
1581
+ return (s, n) => (l(), c("main", uo, [
1582
+ a("aside", mo, [
1361
1583
  a("div", {
1362
- class: w(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
1584
+ class: y(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
1363
1585
  }, [
1364
1586
  a("button", {
1365
1587
  class: "btn btn-ghost btn-circle",
1366
- onClick: s[0] || (s[0] = (c) => n("left"))
1588
+ onClick: n[0] || (n[0] = (u) => o("left"))
1367
1589
  }, [
1368
- C(b(I), {
1590
+ B(f(j), {
1369
1591
  size: "sm",
1370
- icon: t.value.left ? b(z).DblChevronLeft : b(z).DblChevronRight
1592
+ icon: t.value.left ? f(F).DblChevronLeft : f(F).DblChevronRight
1371
1593
  }, null, 8, ["icon"])
1372
1594
  ])
1373
1595
  ], 2),
1374
- t.value.left ? (o(), i("div", {
1596
+ t.value.left ? (l(), c("div", {
1375
1597
  key: 0,
1376
- style: le({ width: e.widthLeft + "px" }),
1598
+ style: se({ width: e.widthLeft + "px" }),
1377
1599
  class: "h-full overflow-y-auto p-4"
1378
1600
  }, [
1379
- B(l.$slots, "left-drawer")
1380
- ], 4)) : y("", !0)
1601
+ D(s.$slots, "left-drawer")
1602
+ ], 4)) : x("", !0)
1381
1603
  ]),
1382
- a("div", sn, [
1383
- B(l.$slots, "default")
1604
+ a("div", bo, [
1605
+ D(s.$slots, "default")
1384
1606
  ]),
1385
- a("aside", ln, [
1386
- t.value.right ? (o(), i("div", {
1607
+ a("aside", fo, [
1608
+ t.value.right ? (l(), c("div", {
1387
1609
  key: 0,
1388
- style: le({ width: e.widthRight + "px" }),
1610
+ style: se({ width: e.widthRight + "px" }),
1389
1611
  class: "h-full overflow-y-auto p-4"
1390
1612
  }, [
1391
- B(l.$slots, "right-drawer")
1392
- ], 4)) : y("", !0),
1613
+ D(s.$slots, "right-drawer")
1614
+ ], 4)) : x("", !0),
1393
1615
  a("div", {
1394
- class: w(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
1616
+ class: y(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
1395
1617
  }, [
1396
1618
  a("button", {
1397
1619
  class: "btn btn-ghost btn-circle",
1398
- onClick: s[1] || (s[1] = (c) => n("right"))
1620
+ onClick: n[1] || (n[1] = (u) => o("right"))
1399
1621
  }, [
1400
- C(b(I), {
1622
+ B(f(j), {
1401
1623
  size: "sm",
1402
- icon: t.value.right ? b(z).DblChevronRight : b(z).DblChevronLeft
1624
+ icon: t.value.right ? f(F).DblChevronRight : f(F).DblChevronLeft
1403
1625
  }, null, 8, ["icon"])
1404
1626
  ])
1405
1627
  ], 2)
1406
1628
  ])
1407
1629
  ]));
1408
1630
  }
1409
- }), an = { class: "ml-1" }, rn = { class: "truncate flex-1 min-w-0 text-left" }, cn = {
1631
+ }), ho = { class: "ml-1" }, po = { class: "truncate flex-1 min-w-0 text-left" }, vo = {
1410
1632
  key: 0,
1411
1633
  class: "badge badge-ghost badge-sm flex-shrink-0"
1412
- }, un = /* @__PURE__ */ p({
1634
+ }, go = /* @__PURE__ */ p({
1413
1635
  __name: "TreeItem",
1414
1636
  props: {
1415
1637
  active: {},
@@ -1419,59 +1641,59 @@ const Rt = {
1419
1641
  },
1420
1642
  emits: ["toggle", "select"],
1421
1643
  setup(e, { emit: t }) {
1422
- const n = e, l = t, s = k(() => n.active === n.node.id);
1423
- return (c, h) => {
1424
- const f = X("TreeItem", !0);
1425
- return o(), i("li", an, [
1644
+ const o = e, s = t, n = $(() => o.active === o.node.id);
1645
+ return (u, b) => {
1646
+ const m = oe("TreeItem", !0);
1647
+ return l(), c("li", ho, [
1426
1648
  a("div", {
1427
- class: w([
1649
+ class: y([
1428
1650
  `flex items-center gap-1 cursor-pointer rounded-md px-1 py-0.5
1429
1651
  hover:bg-gray-100`,
1430
- s.value ? "text-primary" : ""
1652
+ n.value ? "text-primary" : ""
1431
1653
  ])
1432
1654
  }, [
1433
- e.node.children?.length > 0 ? (o(), i("span", {
1655
+ e.node.children?.length > 0 ? (l(), c("span", {
1434
1656
  key: 0,
1435
1657
  class: "flex items-center justify-center",
1436
- onClick: h[0] || (h[0] = (u) => l("toggle", e.node))
1658
+ onClick: b[0] || (b[0] = (i) => s("toggle", e.node))
1437
1659
  }, [
1438
- e.node.children && e.isExpanded(e.node.id) ? (o(), g(b(Me), {
1660
+ e.node.children && e.isExpanded(e.node.id) ? (l(), v(f(Pe), {
1439
1661
  key: 0,
1440
1662
  class: "w-3 h-3"
1441
- })) : (o(), g(b(Be), {
1663
+ })) : (l(), v(f(Ve), {
1442
1664
  key: 1,
1443
1665
  class: "w-3 h-3"
1444
1666
  }))
1445
- ])) : y("", !0),
1667
+ ])) : x("", !0),
1446
1668
  a("div", {
1447
1669
  class: "flex items-center gap-2 w-full min-w-0",
1448
- onClick: h[1] || (h[1] = (u) => l("select", e.node))
1670
+ onClick: b[1] || (b[1] = (i) => s("select", e.node))
1449
1671
  }, [
1450
- a("div", rn, v(e.node.label), 1),
1451
- e.node.tag ? (o(), i("div", cn, v(e.node.tag), 1)) : y("", !0)
1672
+ a("div", po, h(e.node.label), 1),
1673
+ e.node.tag ? (l(), c("div", vo, h(e.node.tag), 1)) : x("", !0)
1452
1674
  ])
1453
1675
  ], 2),
1454
- e.node.children && e.isExpanded(e.node.id) ? (o(), i("ul", {
1676
+ e.node.children && e.isExpanded(e.node.id) ? (l(), c("ul", {
1455
1677
  key: 0,
1456
- class: w([
1678
+ class: y([
1457
1679
  "ml-4 border-l pl-2",
1458
- { "border-gray-200": !s.value, "border-primary": s.value }
1680
+ { "border-gray-200": !n.value, "border-primary": n.value }
1459
1681
  ])
1460
1682
  }, [
1461
- (o(!0), i(x, null, $(e.node.children, (u) => (o(), g(f, {
1462
- key: u.id,
1463
- node: u,
1683
+ (l(!0), c(k, null, L(e.node.children, (i) => (l(), v(m, {
1684
+ key: i.id,
1685
+ node: i,
1464
1686
  expanded: e.expanded,
1465
1687
  active: e.active,
1466
1688
  "is-expanded": e.isExpanded,
1467
- onToggle: h[2] || (h[2] = (d) => l("toggle", d)),
1468
- onSelect: h[3] || (h[3] = (d) => l("select", d))
1689
+ onToggle: b[2] || (b[2] = (d) => s("toggle", d)),
1690
+ onSelect: b[3] || (b[3] = (d) => s("select", d))
1469
1691
  }, null, 8, ["node", "expanded", "active", "is-expanded"]))), 128))
1470
- ], 2)) : y("", !0)
1692
+ ], 2)) : x("", !0)
1471
1693
  ]);
1472
1694
  };
1473
1695
  }
1474
- }), dn = { class: "select-none text-sm" }, Jn = /* @__PURE__ */ p({
1696
+ }), yo = { class: "select-none text-sm" }, cl = /* @__PURE__ */ p({
1475
1697
  __name: "TreeView",
1476
1698
  props: {
1477
1699
  data: {},
@@ -1479,80 +1701,80 @@ const Rt = {
1479
1701
  },
1480
1702
  emits: ["select"],
1481
1703
  setup(e, { emit: t }) {
1482
- const n = e, l = t, s = S(/* @__PURE__ */ new Set()), c = (u) => {
1483
- const d = u.id;
1484
- if (!u.children || u.children.length === 0) {
1485
- l("select", u);
1704
+ const o = e, s = t, n = N(/* @__PURE__ */ new Set()), u = (i) => {
1705
+ const d = i.id;
1706
+ if (!i.children || i.children.length === 0) {
1707
+ s("select", i);
1486
1708
  return;
1487
1709
  }
1488
- s.value.has(d) ? s.value.delete(d) : s.value.add(d);
1489
- }, h = (u) => {
1490
- l("select", u), s.value.add(u.id);
1491
- }, f = (u) => s.value.has(u);
1492
- return (u, d) => (o(), i("ul", dn, [
1493
- (o(!0), i(x, null, $(n.data, (r) => (o(), g(un, {
1710
+ n.value.has(d) ? n.value.delete(d) : n.value.add(d);
1711
+ }, b = (i) => {
1712
+ s("select", i), n.value.add(i.id);
1713
+ }, m = (i) => n.value.has(i);
1714
+ return (i, d) => (l(), c("ul", yo, [
1715
+ (l(!0), c(k, null, L(o.data, (r) => (l(), v(go, {
1494
1716
  key: r.id,
1495
1717
  node: r,
1496
- expanded: s.value,
1718
+ expanded: n.value,
1497
1719
  active: e.active,
1498
- "is-expanded": f,
1499
- onToggle: c,
1500
- onSelect: h
1720
+ "is-expanded": m,
1721
+ onToggle: u,
1722
+ onSelect: b
1501
1723
  }, null, 8, ["node", "expanded", "active"]))), 128))
1502
1724
  ]));
1503
1725
  }
1504
- }), mn = {
1726
+ }), xo = {
1505
1727
  key: 0,
1506
1728
  class: "flex items-center justify-center h-20"
1507
- }, Qn = /* @__PURE__ */ p({
1729
+ }, ul = /* @__PURE__ */ p({
1508
1730
  __name: "loading",
1509
1731
  props: {
1510
1732
  loading: { type: Boolean }
1511
1733
  },
1512
1734
  setup(e) {
1513
- return (t, n) => e.loading ? (o(), i("div", mn, [...n[0] || (n[0] = [
1735
+ return (t, o) => e.loading ? (l(), c("div", xo, [...o[0] || (o[0] = [
1514
1736
  a("span", { class: "loading loading-bars loading-md text-primary" }, null, -1)
1515
- ])])) : y("", !0);
1737
+ ])])) : x("", !0);
1516
1738
  }
1517
- }), fn = { class: "collapse collapse-arrow bg-white w-full border border-gray-300" }, bn = ["checked"], hn = { class: "collapse-title text-gray-500 text-xs font-medium" }, vn = {
1739
+ }), wo = { class: "collapse collapse-arrow bg-white w-full border border-gray-300" }, ko = ["checked"], $o = { class: "collapse-title text-gray-500 text-xs font-medium" }, Co = {
1518
1740
  key: 0,
1519
1741
  class: "list bg-base-100"
1520
- }, Xn = /* @__PURE__ */ p({
1742
+ }, dl = /* @__PURE__ */ p({
1521
1743
  __name: "Collapse",
1522
1744
  props: {
1523
1745
  title: {},
1524
1746
  opened: { type: Boolean, default: !0 }
1525
1747
  },
1526
1748
  setup(e) {
1527
- const t = be(), n = e, l = S(n.opened);
1528
- return Q(
1529
- () => n.opened,
1749
+ const t = pe(), o = e, s = N(o.opened);
1750
+ return te(
1751
+ () => o.opened,
1530
1752
  () => {
1531
1753
  },
1532
1754
  { immediate: !0 }
1533
- ), (s, c) => (o(), i("div", fn, [
1755
+ ), (n, u) => (l(), c("div", wo, [
1534
1756
  a("input", {
1535
1757
  type: "checkbox",
1536
- checked: l.value
1537
- }, null, 8, bn),
1538
- a("div", hn, v(e.title), 1),
1758
+ checked: s.value
1759
+ }, null, 8, ko),
1760
+ a("div", $o, h(e.title), 1),
1539
1761
  a("div", {
1540
- class: w(["collapse-content", b(t).list ? "p-0" : ""])
1762
+ class: y(["collapse-content", f(t).list ? "p-0" : ""])
1541
1763
  }, [
1542
- B(s.$slots, "default"),
1543
- b(t).list ? (o(), i("ul", vn, [
1544
- B(s.$slots, "list")
1545
- ])) : y("", !0)
1764
+ D(n.$slots, "default"),
1765
+ f(t).list ? (l(), c("ul", Co, [
1766
+ D(n.$slots, "list")
1767
+ ])) : x("", !0)
1546
1768
  ], 2)
1547
1769
  ]));
1548
1770
  }
1549
- }), gn = { class: "list-row" }, pn = { class: "list-col-grow" }, yn = {
1771
+ }), Bo = { class: "list-row" }, _o = { class: "list-col-grow" }, Lo = {
1550
1772
  key: 0,
1551
1773
  class: "text-xs text-gray-600"
1552
- }, wn = ["href"], xn = { key: 1 }, kn = {
1774
+ }, Mo = ["href"], Po = { key: 1 }, Vo = {
1553
1775
  key: 0,
1554
1776
  class: "text-xs text-gray-500"
1555
- }, $n = ["href"], Cn = { key: 1 }, _n = { class: "list-col-wrap text-xs text-gray-500" }, Yn = /* @__PURE__ */ p({
1777
+ }, Do = ["href"], Ao = { key: 1 }, To = { class: "list-col-wrap text-xs text-gray-500" }, ml = /* @__PURE__ */ p({
1556
1778
  __name: "CollapseRow",
1557
1779
  props: {
1558
1780
  title: {},
@@ -1562,75 +1784,80 @@ const Rt = {
1562
1784
  descriptionLink: {}
1563
1785
  },
1564
1786
  setup(e) {
1565
- return be(), (t, n) => {
1566
- const l = X("ng-content");
1567
- return o(), i("li", gn, [
1568
- a("div", pn, [
1569
- a("div", null, v(e.title), 1),
1570
- e.description || e.descriptionLink ? (o(), i("div", yn, [
1571
- e.descriptionLink ? (o(), i("a", {
1787
+ return pe(), (t, o) => {
1788
+ const s = oe("ng-content");
1789
+ return l(), c("li", Bo, [
1790
+ a("div", _o, [
1791
+ a("div", null, h(e.title), 1),
1792
+ e.description || e.descriptionLink ? (l(), c("div", Lo, [
1793
+ e.descriptionLink ? (l(), c("a", {
1572
1794
  key: 0,
1573
1795
  href: e.descriptionLink,
1574
1796
  target: "_blank"
1575
- }, v(e.description ?? e.descriptionLink), 9, wn)) : (o(), i("span", xn, v(e.description), 1))
1576
- ])) : y("", !0)
1797
+ }, h(e.description ?? e.descriptionLink), 9, Mo)) : (l(), c("span", Po, h(e.description), 1))
1798
+ ])) : x("", !0)
1577
1799
  ]),
1578
- e.label ? (o(), i("div", kn, [
1579
- e.labelLink ? (o(), i("a", {
1800
+ e.label ? (l(), c("div", Vo, [
1801
+ e.labelLink ? (l(), c("a", {
1580
1802
  key: 0,
1581
1803
  href: e.labelLink,
1582
1804
  target: "_blank"
1583
- }, v(e.label), 9, $n)) : (o(), i("span", Cn, v(e.label), 1))
1584
- ])) : y("", !0),
1585
- a("p", _n, [
1586
- C(l)
1805
+ }, h(e.label), 9, Do)) : (l(), c("span", Ao, h(e.label), 1))
1806
+ ])) : x("", !0),
1807
+ a("p", To, [
1808
+ B(s)
1587
1809
  ])
1588
1810
  ]);
1589
1811
  };
1590
1812
  }
1591
1813
  });
1592
1814
  export {
1593
- En as Autocomplete,
1594
- Je as BadgeSize,
1595
- q as Btn,
1596
- Nn as BtnBadge,
1597
- Ge as ButtonSize,
1598
- In as Card,
1599
- jn as ClickOutside,
1600
- Xn as Collapse,
1601
- Yn as CollapseRow,
1602
- j as Color,
1603
- Xe as ConfirmModal,
1604
- oe as ControlWrapper,
1605
- Kt as DefaultAutoCompleteProperties,
1606
- G as DefaultControlProperties,
1607
- Gn as Drawer,
1608
- Sn as Dropdown,
1609
- I as Icon,
1610
- z as IconEnum,
1611
- ze as IconMap,
1612
- Qn as Loading,
1613
- Zn as Markdown,
1614
- Tn as Menu,
1615
- Ee as Modal,
1616
- ce as ModalService,
1617
- Ye as ModalWrapper,
1618
- Wn as MultiSelect,
1619
- et as NotificationMessage,
1620
- ue as NotificationService,
1621
- ot as Notifications,
1622
- yt as PaginationComponent,
1623
- On as SelectComponent,
1624
- Rn as ShellComponent,
1625
- ie as SubMenu,
1626
- Fn as Table,
1627
- Fn as TableComponent,
1628
- Kn as TextCell,
1629
- Jn as TreeView,
1630
- Un as addClickOutsideEventListener,
1631
- qn as hasCustomEventListener,
1632
- It as isDescriptionHidden,
1815
+ tl as Autocomplete,
1816
+ Xe as BadgeSize,
1817
+ J as Btn,
1818
+ Ho as BtnBadge,
1819
+ Qe as ButtonSize,
1820
+ Zo as Card,
1821
+ nl as Checkbox,
1822
+ Qo as ClickOutside,
1823
+ dl as Collapse,
1824
+ ml as CollapseRow,
1825
+ G as Color,
1826
+ et as ConfirmModal,
1827
+ O as ControlWrapper,
1828
+ It as DefaultAutoCompleteProperties,
1829
+ q as DefaultControlProperties,
1830
+ rl as Drawer,
1831
+ jo as Dropdown,
1832
+ j as Icon,
1833
+ F as IconEnum,
1834
+ Fe as IconMap,
1835
+ sl as Input,
1836
+ al as InputNumber,
1837
+ ul as Loading,
1838
+ ll as Markdown,
1839
+ qo as Menu,
1840
+ Ze as Modal,
1841
+ ue as ModalService,
1842
+ tt as ModalWrapper,
1843
+ ol as MultiSelect,
1844
+ ot as NotificationMessage,
1845
+ de as NotificationService,
1846
+ st as Notifications,
1847
+ wt as PaginationComponent,
1848
+ el as SelectComponent,
1849
+ Oo as ShellComponent,
1850
+ re as SubMenu,
1851
+ Wo as Table,
1852
+ Wo as TableComponent,
1853
+ Eo as TextCell,
1854
+ il as Textarea,
1855
+ cl as TreeView,
1856
+ Go as addClickOutsideEventListener,
1857
+ Xo as hasCustomEventListener,
1858
+ Yo as inputClasses,
1859
+ Ut as isDescriptionHidden,
1633
1860
  Rt as myStyles,
1634
- Hn as removeClickOutsideEventListener,
1635
- Ft as showErrors
1861
+ Jo as removeClickOutsideEventListener,
1862
+ ye as showErrors
1636
1863
  };