@fewangsit/wangsvue-fats 1.0.1-alpha.67 → 1.0.1-alpha.68

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 (49) hide show
  1. package/animation/index.es.js +29 -20
  2. package/approverinfo/index.es.js +50 -50
  3. package/assetinfo/index.es.js +8 -8
  4. package/assets/lottiejs/loading-page-dark.es.js +4 -0
  5. package/assets/lottiejs/loading-table-dark.es.js +4 -0
  6. package/assets/lottiejs/no-data-dark.es.js +4 -0
  7. package/buttoncopy/index.es.js +8 -8
  8. package/buttonscan/index.es.js +47 -47
  9. package/carousel/index.es.js +24 -24
  10. package/columnlist/index.es.js +142 -132
  11. package/config/defaultProps.es.js +14 -9
  12. package/datatable/index.d.ts +14 -0
  13. package/datatable/index.es.js +416 -410
  14. package/datepicker/index.es.js +22 -22
  15. package/daypicker/index.es.js +13 -13
  16. package/dialogbasictransferlog/index.es.js +25 -25
  17. package/dialogdamagelog/index.es.js +69 -66
  18. package/dialogform/index.es.js +11 -11
  19. package/dialogfulltransferlog/index.es.js +11 -11
  20. package/dialoglinkedasset/index.es.js +35 -35
  21. package/dialogprintqr/index.es.js +33 -35
  22. package/dialogselecttree/index.es.js +4 -4
  23. package/dialogselectuser/index.es.js +1 -1
  24. package/disposalreport/index.es.js +2 -2
  25. package/editor/index.es.js +51 -48
  26. package/fileupload/index.es.js +14 -14
  27. package/icon/index.es.js +27 -27
  28. package/imagecompressor/index.es.js +82 -82
  29. package/imageinputinfo/index.es.js +9 -9
  30. package/inputsearch/index.es.js +27 -27
  31. package/litedropdown/index.es.js +26 -26
  32. package/loading-page-dark-e0SrRAHc.js +4 -0
  33. package/loading-page-dark-mz8tLHZ3.js +1 -0
  34. package/loading-table-dark-BGh0tAPM.js +4 -0
  35. package/loading-table-dark-Cky7AB_C.js +1 -0
  36. package/multirow/index.es.js +11 -10
  37. package/no-data-dark-DERIJ8Ml.js +1 -0
  38. package/no-data-dark-nK4e4RAM.js +4 -0
  39. package/package.json +1 -1
  40. package/plugins/WangsVue.es.js +11 -9
  41. package/stats.html +1 -1
  42. package/steps/index.es.js +18 -16
  43. package/style.css +2 -2
  44. package/tagtype/index.es.js +13 -13
  45. package/transactionroles/index.es.js +4 -1
  46. package/treesearchinput/index.es.js +7 -7
  47. package/username/index.es.js +8 -8
  48. package/wangsvue-fats.esm.browser.js +18613 -18571
  49. package/wangsvue-fats.system.js +72 -72
@@ -8,7 +8,7 @@ const g = {
8
8
  class: "flex flex-col gap-3",
9
9
  "data-ts-name": "disposalreport"
10
10
  }, x = {
11
- class: "text-general-800 font-bold text-base leading-[21.86px] tracking-[0.02em]",
11
+ class: "text-general-800 dark:text-general-200 font-bold text-base leading-[21.86px] tracking-[0.02em]",
12
12
  "data-ts-section": "pagetitle"
13
13
  }, v = /* @__PURE__ */ r({
14
14
  __name: "DisposalReport",
@@ -19,7 +19,7 @@ const g = {
19
19
  },
20
20
  setup(h) {
21
21
  const { t } = _();
22
- return (s, D) => (n(), a(d, null, {
22
+ return (s, k) => (n(), a(d, null, {
23
23
  content: p(() => [
24
24
  o("div", g, [
25
25
  o("h2", x, l(e(f)() === "Basic" ? e(t)("Report Disposal") : e(t)("Asset Disposal")), 1),
@@ -1,4 +1,4 @@
1
- import { defineComponent as De, mergeModels as ve, inject as Oe, useModel as ge, onMounted as je, reactive as Ke, shallowRef as x, ref as R, computed as X, watch as be, resolveDirective as We, createElementBlock as E, openBlock as f, Fragment as Y, createVNode as c, withCtx as v, createElementVNode as d, normalizeClass as _, createCommentVNode as U, createBlock as D, renderList as he, mergeProps as ze, unref as s, createTextVNode as Ge, toDisplayString as ye, withDirectives as qe, nextTick as Je } from "vue";
1
+ import { defineComponent as De, mergeModels as ve, inject as Oe, useModel as ge, onMounted as je, reactive as Ke, shallowRef as x, ref as R, computed as X, watch as be, resolveDirective as We, createElementBlock as E, openBlock as f, Fragment as Y, createVNode as c, withCtx as v, createElementVNode as d, normalizeClass as _, createCommentVNode as U, createBlock as D, renderList as he, mergeProps as ze, unref as r, createTextVNode as Ge, toDisplayString as ye, withDirectives as qe, nextTick as Je } from "vue";
2
2
  import { u as Qe } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
3
  import { B as Xe } from "../vendor/@tiptap/extension-bold/dist/index.es.js";
4
4
  import { B as Ye } from "../vendor/@tiptap/extension-bullet-list/dist/index.es.js";
@@ -10,8 +10,8 @@ import { H as ot } from "../vendor/@tiptap/extension-history/dist/index.es.js";
10
10
  import { I as lt } from "../vendor/@tiptap/extension-image/dist/index.es.js";
11
11
  import { I as nt } from "../vendor/@tiptap/extension-italic/dist/index.es.js";
12
12
  import { L as it } from "../vendor/@tiptap/extension-link/dist/index.es.js";
13
- import { L as st } from "../vendor/@tiptap/extension-list-item/dist/index.es.js";
14
- import { M as rt } from "../vendor/@tiptap/extension-mention/dist/index.es.js";
13
+ import { L as rt } from "../vendor/@tiptap/extension-list-item/dist/index.es.js";
14
+ import { M as st } from "../vendor/@tiptap/extension-mention/dist/index.es.js";
15
15
  import { O as dt } from "../vendor/@tiptap/extension-ordered-list/dist/index.es.js";
16
16
  import { P as ct } from "../vendor/@tiptap/extension-paragraph/dist/index.es.js";
17
17
  import { P as ut } from "../vendor/@tiptap/extension-placeholder/dist/index.es.js";
@@ -53,19 +53,19 @@ const It = ke.create({
53
53
  }
54
54
  ];
55
55
  },
56
- renderHTML({ HTMLAttributes: r }) {
57
- return ["codeSnippet", Ce(r)];
56
+ renderHTML({ HTMLAttributes: s }) {
57
+ return ["codeSnippet", Ce(s)];
58
58
  },
59
59
  addNodeView() {
60
60
  return _e(bt);
61
61
  },
62
62
  addCommands() {
63
63
  return {
64
- insertCodeSnippet: () => ({ commands: r }) => r.insertContent({
64
+ insertCodeSnippet: () => ({ commands: s }) => s.insertContent({
65
65
  type: "codeSnippet",
66
66
  attrs: { code: "" }
67
67
  }),
68
- deleteCodeSnippet: () => ({ commands: r }) => r.deleteSelection()
68
+ deleteCodeSnippet: () => ({ commands: s }) => s.deleteSelection()
69
69
  };
70
70
  }
71
71
  }), Bt = ke.create({
@@ -89,30 +89,30 @@ const It = ke.create({
89
89
  }
90
90
  ];
91
91
  },
92
- renderHTML({ HTMLAttributes: r }) {
93
- return ["mentionSection", Ce(r)];
92
+ renderHTML({ HTMLAttributes: s }) {
93
+ return ["mentionSection", Ce(s)];
94
94
  },
95
95
  addNodeView() {
96
96
  return _e(ht);
97
97
  },
98
98
  addCommands() {
99
99
  return {
100
- insertMentionSection: (r) => ({ commands: g }) => g.insertContent({
100
+ insertMentionSection: (s) => ({ commands: g }) => g.insertContent({
101
101
  type: "mentionSection",
102
102
  attrs: {
103
- title: r,
103
+ title: s,
104
104
  bodyText: null
105
105
  }
106
106
  }),
107
- deleteMentionSection: () => ({ commands: r }) => r.deleteSelection()
107
+ deleteMentionSection: () => ({ commands: s }) => s.deleteSelection()
108
108
  };
109
109
  }
110
110
  }), Ht = () => ({
111
111
  render: () => {
112
- let r, g;
112
+ let s, g;
113
113
  return {
114
114
  onStart(m) {
115
- r = new ft(xt, {
115
+ s = new ft(xt, {
116
116
  props: {
117
117
  items: m.items,
118
118
  command: m.command
@@ -121,7 +121,7 @@ const It = ke.create({
121
121
  }), m.clientRect && (g = yt("body", {
122
122
  getReferenceClientRect: m.clientRect,
123
123
  appendTo: () => document.body,
124
- content: r.element,
124
+ content: s.element,
125
125
  showOnCreate: !0,
126
126
  interactive: !0,
127
127
  trigger: "manual",
@@ -129,15 +129,15 @@ const It = ke.create({
129
129
  }));
130
130
  },
131
131
  onUpdate(m) {
132
- r.updateProps(m), m.clientRect && g[0].setProps({
132
+ s.updateProps(m), m.clientRect && g[0].setProps({
133
133
  getReferenceClientRect: m.clientRect
134
134
  });
135
135
  },
136
136
  onKeyDown(m) {
137
- return m.event.key === "Escape" ? (g[0].hide(), !0) : r.ref.onKeyDown(m.event);
137
+ return m.event.key === "Escape" ? (g[0].hide(), !0) : s.ref.onKeyDown(m.event);
138
138
  },
139
139
  onExit() {
140
- g[0].destroy(), r.destroy();
140
+ g[0].destroy(), s.destroy();
141
141
  }
142
142
  };
143
143
  }
@@ -196,10 +196,10 @@ const It = ke.create({
196
196
  mentionedListModifiers: {}
197
197
  }),
198
198
  emits: /* @__PURE__ */ ve(["update:modelValue", "postImageLocal", "deleteImageLocal", "blur", "focus", "update:mentionedList"], ["update:modelValue", "update:mentionedList"]),
199
- setup(r, { expose: g, emit: m }) {
200
- const we = Oe("preset", {}).menu, l = r, V = m;
201
- ge(r, "modelValue");
202
- const Se = ge(r, "mentionedList");
199
+ setup(s, { expose: g, emit: m }) {
200
+ const we = Oe("preset", {}).menu, l = s, V = m;
201
+ ge(s, "modelValue");
202
+ const Se = ge(s, "mentionedList");
203
203
  je(() => {
204
204
  l.useValidator && (Object.assign(
205
205
  b,
@@ -259,7 +259,7 @@ const It = ke.create({
259
259
  editable: l.editorState === "editable",
260
260
  extensions: [
261
261
  ut.configure({
262
- emptyEditorClass: "is-editor-empty !text-general-200 !font-light",
262
+ emptyEditorClass: "is-editor-empty !text-general-200 dark:!text-general-600 !font-light",
263
263
  placeholder: Ae.value,
264
264
  includeChildren: !1
265
265
  }),
@@ -309,7 +309,7 @@ const It = ke.create({
309
309
  class: "list-disc px-3 py-1"
310
310
  }
311
311
  }),
312
- st,
312
+ rt,
313
313
  // Marks
314
314
  Xe,
315
315
  nt,
@@ -325,9 +325,9 @@ const It = ke.create({
325
325
  openOnClick: !1
326
326
  }),
327
327
  ot,
328
- rt.configure({
328
+ st.configure({
329
329
  HTMLAttributes: {
330
- class: "bg-primary-200 text-primary-800 rounded-[50px] px-1"
330
+ class: "bg-primary-200 dark:bg-primary-300 text-primary-800 dark:text-primary-800 rounded-[50px] px-1"
331
331
  },
332
332
  suggestion: {
333
333
  items({ query: t }) {
@@ -344,7 +344,7 @@ const It = ke.create({
344
344
  tt
345
345
  ]
346
346
  }), Le = X(() => {
347
- var S, y, A, L, I, B, H, F, W, re, de, ce, ue, me, pe, fe;
347
+ var S, y, A, L, I, B, H, F, W, se, de, ce, ue, me, pe, fe;
348
348
  if (!a.value) return [];
349
349
  const {
350
350
  toggleBold: t,
@@ -424,7 +424,7 @@ const It = ke.create({
424
424
  },
425
425
  {
426
426
  icon: "code-line",
427
- active: (re = a.value) == null ? void 0 : re.isActive("code"),
427
+ active: (se = a.value) == null ? void 0 : se.isActive("code"),
428
428
  tooltipText: "Inline Code | Ctrl + E",
429
429
  onClick: () => {
430
430
  e(), u();
@@ -586,7 +586,7 @@ const It = ke.create({
586
586
  /* @__PURE__ */ new Set([...P.value, t])
587
587
  )), T.value && ((i = a.value) == null || i.commands.setImage({ src: T.value }), P.value = Array.from(
588
588
  /* @__PURE__ */ new Set([...P.value, T.value])
589
- )), T.value = void 0, se();
589
+ )), T.value = void 0, re();
590
590
  }, ne = () => {
591
591
  var t;
592
592
  N.value && N.value.title === "localImage" && V("deleteImageLocal", N.value), (t = a.value) == null || t.commands.deleteSelection();
@@ -611,7 +611,7 @@ const It = ke.create({
611
611
  var n, o;
612
612
  const { insertCodeSnippet: t, deleteCodeSnippet: e } = (n = a.value) == null ? void 0 : n.commands;
613
613
  return (o = a.value) != null && o.isActive("codeSnippet") ? e() : t(), !1;
614
- }, se = () => {
614
+ }, re = () => {
615
615
  a.value.commands.createParagraphNear();
616
616
  }, Ee = (t) => {
617
617
  var e;
@@ -651,11 +651,12 @@ const It = ke.create({
651
651
  ref_key: "root",
652
652
  ref: ae,
653
653
  class: _([
654
- "rounded-b text-grayscale-900 w-full",
654
+ "rounded-b text-grayscale-900 dark:text-grayscale-100 w-full",
655
655
  "[&:has(:focus)]:border-general-200 border-general-100",
656
656
  `${t.borderLess || t.editorState === "readonly" ? "border-none" : "border-[0.5px]"}`,
657
657
  // Inline Code
658
658
  "[&_code]:bg-primary-100",
659
+ // TODO: Dark mode
659
660
  "[&_code]:rounded-md",
660
661
  "[&_code]:p-[0.25em_0.3em]",
661
662
  "[&_code]:text-[0.85rem]",
@@ -667,7 +668,7 @@ const It = ke.create({
667
668
  l.editorState === "editable" ? (f(), E("div", {
668
669
  key: 0,
669
670
  class: _([
670
- "border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50",
671
+ "border-b-[0.5px] border-inherit px-3 py-1 flex gap-1 bg-general-50 dark:bg-grayscale-800",
671
672
  `${l.toolbarWrapperClass}`
672
673
  ]),
673
674
  "data-wv-section": "toolbar"
@@ -677,11 +678,12 @@ const It = ke.create({
677
678
  class: [{ "!bg-primary-50 ": o.active }, o.class]
678
679
  }), null, 16, ["class"]))), 128))
679
680
  ], 2)) : U("", !0),
680
- k.value ? U("", !0) : (f(), D(s(gt), {
681
+ k.value ? U("", !0) : (f(), D(r(gt), {
681
682
  key: 1,
682
683
  class: _([
683
684
  `${l.editorState === "editable" ? "px-3 py-2" : ""} [&_*]:outline-none`,
684
685
  "[&_.is-editor-empty:first-child::before]:text-general-200",
686
+ "dark:[&_.is-editor-empty:first-child::before]:text-general-600",
685
687
  "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
686
688
  "[&_.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]",
687
689
  "[&_.is-editor-empty:first-child::before]:font-normal",
@@ -705,10 +707,10 @@ const It = ke.create({
705
707
  "[&_*:has(code)]:my-[0.25rem]",
706
708
  `${l.contentWrapperClass}`
707
709
  ]),
708
- editor: s(a),
710
+ editor: r(a),
709
711
  spellcheck: "false"
710
712
  }, null, 8, ["class", "editor"])),
711
- c(s(kt), {
713
+ c(r(kt), {
712
714
  ref_key: "headingMenu",
713
715
  ref: te,
714
716
  model: Me.value,
@@ -719,11 +721,12 @@ const It = ke.create({
719
721
  return [
720
722
  d("a", {
721
723
  class: _([
722
- ...(i = s(we)) == null ? void 0 : i.action.class,
724
+ ...(i = r(we)) == null ? void 0 : i.action.class,
723
725
  o.class,
724
726
  "flex items-center !justify-between h-[30px]",
725
727
  {
726
- "bg-primary-50": ((u = s(a)) == null ? void 0 : u.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((p = s(a)) == null ? void 0 : p.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((C = s(a)) == null ? void 0 : C.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((w = s(a)) == null ? void 0 : w.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((h = s(a)) == null ? void 0 : h.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((S = s(a)) == null ? void 0 : S.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((y = s(a)) == null ? void 0 : y.isActive("paragraph")) && o.label === "Paragraf"
728
+ // TODO: Dark mode
729
+ "bg-primary-50": ((u = r(a)) == null ? void 0 : u.isActive("heading", { level: 1 })) && o.label === "Heading 1" || ((p = r(a)) == null ? void 0 : p.isActive("heading", { level: 2 })) && o.label === "Heading 2" || ((C = r(a)) == null ? void 0 : C.isActive("heading", { level: 3 })) && o.label === "Heading 3" || ((w = r(a)) == null ? void 0 : w.isActive("heading", { level: 4 })) && o.label === "Heading 4" || ((h = r(a)) == null ? void 0 : h.isActive("heading", { level: 5 })) && o.label === "Heading 5" || ((S = r(a)) == null ? void 0 : S.isActive("heading", { level: 6 })) && o.label === "Heading 6" || ((y = r(a)) == null ? void 0 : y.isActive("paragraph")) && o.label === "Paragraf"
727
730
  }
728
731
  ]),
729
732
  title: o.label,
@@ -739,12 +742,12 @@ const It = ke.create({
739
742
  }),
740
743
  _: 1
741
744
  }, 8, ["model"]),
742
- s(a) && l.editorState === "editable" ? (f(), D(s(Z), {
745
+ r(a) && l.editorState === "editable" ? (f(), D(r(Z), {
743
746
  key: 2,
744
- editor: s(a),
747
+ editor: r(a),
745
748
  "should-show": () => {
746
749
  var o, i;
747
- return ((o = s(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((i = s(a)) == null ? void 0 : i.isActive("mentionSection"));
750
+ return ((o = r(a)) == null ? void 0 : o.isActive("codeSnippet")) || ((i = r(a)) == null ? void 0 : i.isActive("mentionSection"));
748
751
  },
749
752
  "tippy-options": { placement: "top", zIndex: 9 },
750
753
  class: "-mt-1.5 shadow-panel",
@@ -753,7 +756,7 @@ const It = ke.create({
753
756
  default: v(() => [
754
757
  d("div", Nt, [
755
758
  c(M, {
756
- onClick: se,
759
+ onClick: re,
757
760
  icon: "close",
758
761
  severity: "secondary",
759
762
  text: "",
@@ -763,12 +766,12 @@ const It = ke.create({
763
766
  ]),
764
767
  _: 1
765
768
  }, 8, ["editor", "should-show"])) : U("", !0),
766
- s(a) && !O.value && l.editorState === "editable" ? (f(), D(s(Z), {
769
+ r(a) && !O.value && l.editorState === "editable" ? (f(), D(r(Z), {
767
770
  key: 3,
768
- editor: s(a),
771
+ editor: r(a),
769
772
  "should-show": () => {
770
773
  var o;
771
- return (o = s(a)) == null ? void 0 : o.isActive("link");
774
+ return (o = r(a)) == null ? void 0 : o.isActive("link");
772
775
  },
773
776
  "tippy-options": { placement: "bottom", zIndex: 9 },
774
777
  class: "-mt-1.5 shadow-panel",
@@ -871,12 +874,12 @@ const It = ke.create({
871
874
  ]),
872
875
  _: 1
873
876
  }, 8, ["visible"]),
874
- s(a) && l.editorState === "editable" ? (f(), D(s(Z), {
877
+ r(a) && l.editorState === "editable" ? (f(), D(r(Z), {
875
878
  key: 4,
876
- editor: s(a),
879
+ editor: r(a),
877
880
  "should-show": () => {
878
881
  var o;
879
- return !!((o = s(a)) != null && o.isActive("image"));
882
+ return !!((o = r(a)) != null && o.isActive("image"));
880
883
  },
881
884
  "tippy-options": { placement: "top", zIndex: 9 },
882
885
  class: "-mt-1.5 shadow-panel",
@@ -943,7 +946,7 @@ const It = ke.create({
943
946
  "use-validator": ""
944
947
  }, null, 8, ["value"]),
945
948
  c(ee, {
946
- label: (i = s(a)) != null && i.isActive("link") ? "Simpan" : "Tambahkan",
949
+ label: (i = r(a)) != null && i.isActive("link") ? "Simpan" : "Tambahkan",
947
950
  class: "w-max ml-auto",
948
951
  severity: "secondary",
949
952
  type: "submit"
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, mergeModels as $, useModel as G, inject as Y, shallowRef as y, ref as z, reactive as H, computed as Z, onMounted as J, watch as x, createBlock as A, openBlock as f, unref as m, mergeProps as g, withCtx as M, createTextVNode as h, toDisplayString as B, createElementVNode as N, normalizeClass as k, createVNode as w, createCommentVNode as S, createElementBlock as F, withModifiers as Q, normalizeProps as W, Fragment as C } from "vue";
1
+ import { defineComponent as D, mergeModels as $, useModel as G, inject as Y, shallowRef as g, ref as z, reactive as H, computed as Z, onMounted as J, watch as x, createBlock as A, openBlock as f, unref as m, mergeProps as y, withCtx as M, createTextVNode as h, toDisplayString as k, createElementVNode as N, normalizeClass as B, createVNode as w, createCommentVNode as S, createElementBlock as F, withModifiers as Q, normalizeProps as W, Fragment as C } from "vue";
2
2
  import { u as X } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
3
  import { u as ee } from "../utils/baseToast.util.es.js";
4
4
  import { s as ae } from "../vendor/primevue/fileupload/fileupload.esm.es.js";
@@ -6,7 +6,7 @@ import { _ as le } from "../fieldwrapper/index.es.js";
6
6
  import { _ as se } from "../inputtext/index.es.js";
7
7
  import { _ as ie } from "../button/index.es.js";
8
8
  import { _ as oe } from "../validatormessage/index.es.js";
9
- const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 1048576, ye = /* @__PURE__ */ D({
9
+ const te = { class: "'!mt-0 font-light text-xs text-general-500 dark:text-general-100'" }, re = 1048576, ge = /* @__PURE__ */ D({
10
10
  __name: "FileUpload",
11
11
  props: /* @__PURE__ */ $({
12
12
  accept: {},
@@ -35,7 +35,7 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
35
35
  }),
36
36
  emits: /* @__PURE__ */ $(["select", "update:modelValue", "upload", "error"], ["update:modelValue"]),
37
37
  setup(T, { emit: R }) {
38
- const V = ee(), r = G(T, "modelValue"), a = T, _ = R, { fileupload: c = {} } = Y("preset", {}), i = y(), t = y(), o = y(), E = z(), n = H({ value: void 0 }), q = Z(() => !!n.errorMessage || (u.value ? u.value.length > 0 : !1)), d = y(!1);
38
+ const V = ee(), r = G(T, "modelValue"), a = T, _ = R, { fileupload: c = {} } = Y("preset", {}), i = g(), t = g(), o = g(), E = z(), n = H({ value: void 0 }), q = Z(() => !!n.errorMessage || (u.value ? u.value.length > 0 : !1)), d = g(!1);
39
39
  J(() => {
40
40
  a.useValidator && Object.assign(
41
41
  n,
@@ -99,7 +99,7 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
99
99
  }), o.value = void 0, i.value = void 0;
100
100
  } else
101
101
  t.value = void 0;
102
- }), (e, l) => (f(), A(m(ae), g(a, {
102
+ }), (e, l) => (f(), A(m(ae), y(a, {
103
103
  ref_key: "fileUpload",
104
104
  ref: E,
105
105
  "file-limit": e.multiple ? void 0 : 1,
@@ -109,9 +109,9 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
109
109
  }), {
110
110
  header: M(({ files: s, chooseCallback: p, clearCallback: v }) => [
111
111
  N("div", {
112
- class: k([{ "grid-cols-[auto,max-content]": a.withUpload }, "grid gap-3 items-end"])
112
+ class: B([{ "grid-cols-[auto,max-content]": a.withUpload }, "grid gap-3 items-end"])
113
113
  }, [
114
- w(le, g(m(c).wrapper, {
114
+ w(le, y(m(c).wrapper, {
115
115
  "error-messages": u.value,
116
116
  label: a.label,
117
117
  mandatory: a.mandatory
@@ -133,21 +133,21 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
133
133
  }, 1032, ["disabled", "input-class", "invalid", "model-value", "placeholder", "onClick", "onKeydown"]),
134
134
  a.fileExtensions || a.fileRequirements || n.errorMessage || t.value || a.validatorMessage ? (f(), F("div", {
135
135
  key: 0,
136
- class: k([{
136
+ class: B([{
137
137
  "justify-between": n.errorMessage || t.value,
138
138
  "justify-end": (!n.errorMessage || !t.value) && a.validatorMessage
139
139
  }, "flex w-full"])
140
140
  }, [
141
141
  w(oe, {
142
- class: k(a.validatorMessageClass),
142
+ class: B(a.validatorMessageClass),
143
143
  message: t.value ?? n.errorMessage
144
144
  }, null, 8, ["class", "message"]),
145
- a.fileExtensions || a.fileRequirements ? (f(), F("div", W(g({ key: 0 }, m(c).requirements)), [
145
+ a.fileExtensions || a.fileRequirements ? (f(), F("div", W(y({ key: 0 }, m(c).requirements)), [
146
146
  N("small", te, [
147
147
  e.fileRequirements ? (f(), F(C, { key: 0 }, [
148
- h(B(e.fileRequirements), 1)
148
+ h(k(e.fileRequirements), 1)
149
149
  ], 64)) : (f(), F(C, { key: 1 }, [
150
- h(B(a.maxFileSize ? `${a.fileExtensions}. max file ${Math.round(a.maxFileSize / re)} MB` : `${a.fileExtensions} file`), 1)
150
+ h(k(a.maxFileSize ? `${a.fileExtensions}. max file ${Math.round(a.maxFileSize / re)} MB` : `${a.fileExtensions} file`), 1)
151
151
  ], 64))
152
152
  ])
153
153
  ], 16)) : S("", !0)
@@ -155,7 +155,7 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
155
155
  ]),
156
156
  _: 2
157
157
  }, 1040, ["error-messages", "label", "mandatory"]),
158
- a.withUpload ? (f(), A(ie, g({ key: 0 }, m(c).buttonupload({ props: a }), {
158
+ a.withUpload ? (f(), A(ie, y({ key: 0 }, m(c).buttonupload({ props: a }), {
159
159
  disabled: a.disabled || d.value || !o.value,
160
160
  label: a.uploadLabel,
161
161
  onClick: (b) => O(s, v),
@@ -165,12 +165,12 @@ const te = { class: "'!mt-0 font-light text-xs text-general-500'" }, re = 104857
165
165
  ], 2)
166
166
  ]),
167
167
  content: M(({ messages: s }) => [
168
- h(B(P(s)), 1)
168
+ h(k(P(s)), 1)
169
169
  ]),
170
170
  _: 1
171
171
  }, 16, ["file-limit"]));
172
172
  }
173
173
  });
174
174
  export {
175
- ye as _
175
+ ge as _
176
176
  };
package/icon/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as c, computed as d, resolveDirective as v, createElementBlock as t, openBlock as o, Fragment as f, withDirectives as i, createCommentVNode as n, mergeProps as l } from "vue";
2
- const $ = /* @__PURE__ */ c({
1
+ import { defineComponent as c, computed as d, resolveDirective as f, createElementBlock as t, openBlock as r, Fragment as v, withDirectives as i, createCommentVNode as n, mergeProps as a } from "vue";
2
+ const g = /* @__PURE__ */ c({
3
3
  __name: "Icon",
4
4
  props: {
5
5
  icon: {},
@@ -9,65 +9,65 @@ const $ = /* @__PURE__ */ c({
9
9
  class: { default: void 0 }
10
10
  },
11
11
  setup(u) {
12
- const a = u, p = (() => {
13
- switch (a.severity) {
12
+ const l = u, p = (() => {
13
+ switch (l.severity) {
14
14
  case "primary":
15
- return "text-primary-500";
15
+ return "text-primary-500 dark:text-primary-300";
16
16
  case "success":
17
- return "text-success-500";
17
+ return "text-success-500 dark:text-success-300";
18
18
  case "warning":
19
- return "text-warning-500";
19
+ return "text-warning-500 dark:text-warning-300";
20
20
  case "danger":
21
- return "text-danger-500";
21
+ return "text-danger-500 dark:text-danger-300";
22
22
  case "info":
23
- return "text-info-500";
23
+ return "text-info-500 dark:text-info-300";
24
24
  default:
25
- return "inherit";
25
+ return "inherit dark:inherit";
26
26
  }
27
- })(), s = d(() => [
27
+ })(), o = d(() => [
28
28
  "icon",
29
- `ic-${a.icon}`,
29
+ `ic-${l.icon}`,
30
30
  p,
31
31
  "cursor-pointer !shrink-0"
32
32
  ]);
33
33
  return (e, m) => {
34
- const r = v("tooltip");
35
- return o(), t(f, null, [
36
- e.tooltipPos === "top" ? i((o(), t("i", l({ key: 0 }, e.$attrs, {
37
- class: [...s.value, e.$props.class]
34
+ const s = f("tooltip");
35
+ return r(), t(v, null, [
36
+ e.tooltipPos === "top" ? i((r(), t("i", a({ key: 0 }, e.$attrs, {
37
+ class: [...o.value, e.$props.class]
38
38
  }), null, 16)), [
39
39
  [
40
- r,
40
+ s,
41
41
  e.info,
42
42
  void 0,
43
43
  { top: !0 }
44
44
  ]
45
45
  ]) : n("", !0),
46
- e.tooltipPos === "bottom" ? i((o(), t("i", l({ key: 1 }, e.$attrs, {
47
- class: [...s.value, e.$props.class]
46
+ e.tooltipPos === "bottom" ? i((r(), t("i", a({ key: 1 }, e.$attrs, {
47
+ class: [...o.value, e.$props.class]
48
48
  }), null, 16)), [
49
49
  [
50
- r,
50
+ s,
51
51
  e.info,
52
52
  void 0,
53
53
  { bottom: !0 }
54
54
  ]
55
55
  ]) : n("", !0),
56
- e.tooltipPos === "right" ? i((o(), t("i", l({ key: 2 }, e.$attrs, {
57
- class: [...s.value, e.$props.class]
56
+ e.tooltipPos === "right" ? i((r(), t("i", a({ key: 2 }, e.$attrs, {
57
+ class: [...o.value, e.$props.class]
58
58
  }), null, 16)), [
59
59
  [
60
- r,
60
+ s,
61
61
  e.info,
62
62
  void 0,
63
63
  { right: !0 }
64
64
  ]
65
65
  ]) : n("", !0),
66
- e.tooltipPos === "left" ? i((o(), t("i", l({ key: 3 }, e.$attrs, {
67
- class: [...s.value, e.$props.class]
66
+ e.tooltipPos === "left" ? i((r(), t("i", a({ key: 3 }, e.$attrs, {
67
+ class: [...o.value, e.$props.class]
68
68
  }), null, 16)), [
69
69
  [
70
- r,
70
+ s,
71
71
  e.info,
72
72
  void 0,
73
73
  { left: !0 }
@@ -78,5 +78,5 @@ const $ = /* @__PURE__ */ c({
78
78
  }
79
79
  });
80
80
  export {
81
- $ as _
81
+ g as _
82
82
  };