@stencitecnologia/front-kit 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,26 +1,25 @@
1
- import { computed as M, openBlock as R, createElementBlock as P, normalizeClass as So, toDisplayString as oo, createCommentVNode as q, createBlock as H, unref as T, mergeProps as Q, withCtx as X, renderSlot as G, createElementVNode as io, createVNode as mo, ref as po, onMounted as er, onBeforeUnmount as tr, normalizeStyle as Io, watch as sr, createTextVNode as Po, createSlots as Ho, Fragment as ur, Teleport as fr, withModifiers as gr } from "vue";
1
+ import { computed as M, openBlock as R, createElementBlock as P, normalizeClass as So, toDisplayString as oo, createCommentVNode as E, createBlock as H, unref as T, mergeProps as Q, renderSlot as G, createElementVNode as io, createVNode as mo, ref as po, onMounted as er, onBeforeUnmount as tr, normalizeStyle as Io, watch as sr, withCtx as Z, createTextVNode as Po, createSlots as Ho, Fragment as ur, Teleport as fr, withModifiers as gr } from "vue";
2
2
  import mr from "primevue/autocomplete";
3
- import pr from "primevue/button";
4
- import { FontAwesomeIcon as br } from "@fortawesome/vue-fontawesome";
5
- import hr from "primevue/chart";
3
+ import { FontAwesomeIcon as pr } from "@fortawesome/vue-fontawesome";
4
+ import br from "primevue/chart";
6
5
  import ar from "primevue/inputtext";
7
6
  import nr from "primevue/datepicker";
8
- import vr from "primevue/inputgroup";
9
- import kr from "primevue/inputgroupaddon";
10
- import yr from "primevue/popover";
11
- import $r from "primevue/inputmask";
7
+ import hr from "primevue/inputgroup";
8
+ import vr from "primevue/inputgroupaddon";
9
+ import kr from "primevue/popover";
10
+ import yr from "primevue/inputmask";
12
11
  import ir from "primevue/dialog";
13
- import Cr from "primevue/drawer";
14
- import xr from "primevue/multiselect";
15
- import wr from "primevue/panel";
16
- import Br from "primevue/radiobutton";
17
- import { RouterLink as Rr } from "vue-router";
18
- import Dr from "primevue/select";
19
- import Sr from "primevue/toggleswitch";
20
- import Mr from "primevue/textarea";
21
- import zr from "primevue/config";
22
- import { useToast as Yr } from "primevue/usetoast";
23
- const Vr = {
12
+ import $r from "primevue/drawer";
13
+ import Cr from "primevue/multiselect";
14
+ import xr from "primevue/panel";
15
+ import wr from "primevue/radiobutton";
16
+ import { RouterLink as Br } from "vue-router";
17
+ import Rr from "primevue/select";
18
+ import Dr from "primevue/toggleswitch";
19
+ import Sr from "primevue/textarea";
20
+ import Mr from "primevue/config";
21
+ import { useToast as zr } from "primevue/usetoast";
22
+ const Yr = {
24
23
  __name: "BaseAlert",
25
24
  props: {
26
25
  message: {
@@ -43,9 +42,9 @@ const Vr = {
43
42
  key: 0,
44
43
  class: So(["ui-alert", e.value]),
45
44
  role: "alert"
46
- }, oo(o.message), 3)) : q("", !0);
45
+ }, oo(o.message), 3)) : E("", !0);
47
46
  }
48
- }, Kf = {
47
+ }, Qf = {
49
48
  __name: "BaseAutoComplete",
50
49
  props: {
51
50
  modelValue: {
@@ -105,11 +104,12 @@ const Vr = {
105
104
  }
106
105
  },
107
106
  setup(o) {
108
- return (r, e) => (R(), H(T(br), Q({ icon: o.icon }, r.$attrs), null, 16, ["icon"]));
107
+ return (r, e) => (R(), H(T(pr), Q({ icon: o.icon }, r.$attrs), null, 16, ["icon"]));
109
108
  }
110
- }, Or = {
111
- key: 1,
112
- class: "pi pi-spin pi-spinner"
109
+ }, Vr = ["disabled", "type"], Or = {
110
+ key: 0,
111
+ class: "loading",
112
+ style: { color: "currentColor" }
113
113
  }, Lr = { key: 2 }, Fo = {
114
114
  __name: "BaseButton",
115
115
  props: {
@@ -162,22 +162,18 @@ const Vr = {
162
162
  "ui-btn-sm": r.size === "sm"
163
163
  }
164
164
  ]), t = M(() => r.disabled || r.loading);
165
- return (a, c) => (R(), H(T(pr), Q(a.$attrs, {
165
+ return (a, c) => (R(), P("button", Q(a.$attrs, {
166
166
  disabled: t.value,
167
167
  class: e.value,
168
168
  type: o.type
169
- }), {
170
- default: X(() => [
171
- o.icon && !o.loading ? (R(), H(Mo, {
172
- key: 0,
173
- icon: o.icon
174
- }, null, 8, ["icon"])) : q("", !0),
175
- o.loading ? (R(), P("span", Or)) : q("", !0),
176
- o.label ? (R(), P("span", Lr, oo(o.label), 1)) : q("", !0),
177
- G(a.$slots, "default")
178
- ]),
179
- _: 3
180
- }, 16, ["disabled", "class", "type"]));
169
+ }), [
170
+ o.loading ? (R(), P("span", Or)) : o.icon && !o.loading ? (R(), H(Mo, {
171
+ key: 1,
172
+ icon: o.icon
173
+ }, null, 8, ["icon"])) : E("", !0),
174
+ o.label ? (R(), P("span", Lr, oo(o.label), 1)) : E("", !0),
175
+ G(a.$slots, "default")
176
+ ], 16, Vr));
181
177
  }
182
178
  }, Tr = {
183
179
  key: 0,
@@ -191,7 +187,7 @@ const Vr = {
191
187
  }, jr = { class: "ui-card-content" }, Ir = {
192
188
  key: 1,
193
189
  class: "ui-card-footer"
194
- }, Hr = { class: "ui-card-footer-content" }, o0 = {
190
+ }, Hr = { class: "ui-card-footer-content" }, Kf = {
195
191
  __name: "BaseCard",
196
192
  props: {
197
193
  title: {
@@ -229,11 +225,11 @@ const Vr = {
229
225
  class: So(t.value)
230
226
  }, [
231
227
  e.value ? (R(), P("header", Tr, [
232
- o.title ? (R(), P("div", Wr, oo(o.title), 1)) : q("", !0),
233
- o.subtitle ? (R(), P("div", Fr, oo(o.subtitle), 1)) : q("", !0)
234
- ])) : q("", !0),
228
+ o.title ? (R(), P("div", Wr, oo(o.title), 1)) : E("", !0),
229
+ o.subtitle ? (R(), P("div", Fr, oo(o.subtitle), 1)) : E("", !0)
230
+ ])) : E("", !0),
235
231
  io("div", jr, [
236
- mo(Vr, {
232
+ mo(Yr, {
237
233
  message: o.alertMessage,
238
234
  variant: o.alertVariant
239
235
  }, null, 8, ["message", "variant"]),
@@ -243,10 +239,10 @@ const Vr = {
243
239
  io("div", Hr, [
244
240
  G(a.$slots, "footer")
245
241
  ])
246
- ])) : q("", !0)
242
+ ])) : E("", !0)
247
243
  ], 2));
248
244
  }
249
- }, r0 = {
245
+ }, o0 = {
250
246
  __name: "BaseChart",
251
247
  props: {
252
248
  type: {
@@ -337,7 +333,7 @@ const Vr = {
337
333
  a.value = !0;
338
334
  }), tr(() => {
339
335
  a.value = !1, t.value?.chart && t.value.chart.destroy();
340
- }), (B, k) => a.value ? (R(), H(T(hr), {
336
+ }), (B, k) => a.value ? (R(), H(T(br), {
341
337
  key: 0,
342
338
  ref_key: "chartRef",
343
339
  ref: t,
@@ -345,9 +341,9 @@ const Vr = {
345
341
  data: l.value,
346
342
  options: $.value,
347
343
  style: Io({ height: m.value, width: "100%" })
348
- }, null, 8, ["type", "data", "options", "style"])) : q("", !0);
344
+ }, null, 8, ["type", "data", "options", "style"])) : E("", !0);
349
345
  }
350
- }, Ar = { class: "ui-currency" }, e0 = {
346
+ }, Ar = { class: "ui-currency" }, r0 = {
351
347
  __name: "BaseCurrency",
352
348
  props: {
353
349
  modelValue: {
@@ -435,7 +431,7 @@ const Vr = {
435
431
  get: () => e.modelValue,
436
432
  set: (c) => t("update:modelValue", c)
437
433
  });
438
- return (c, i) => (R(), H(T($r), Q({
434
+ return (c, i) => (R(), H(T(yr), Q({
439
435
  modelValue: a.value,
440
436
  "onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
441
437
  mask: o.mask,
@@ -449,7 +445,7 @@ const Vr = {
449
445
  ]
450
446
  }, c.$attrs), null, 16, ["modelValue", "mask", "slot-char", "auto-clear", "disabled", "readonly", "class"]));
451
447
  }
452
- }, t0 = {
448
+ }, e0 = {
453
449
  __name: "BaseDate",
454
450
  props: {
455
451
  modelValue: {
@@ -593,8 +589,8 @@ const Vr = {
593
589
  u instanceof Date && C(u);
594
590
  },
595
591
  { immediate: !0 }
596
- ), (u, s) => (R(), H(T(vr), { class: "ui-inputgroup" }, {
597
- default: X(() => [
592
+ ), (u, s) => (R(), H(T(hr), { class: "ui-inputgroup" }, {
593
+ default: Z(() => [
598
594
  (R(), H(Nr, Q({
599
595
  key: l.value,
600
596
  modelValue: S.value,
@@ -604,8 +600,8 @@ const Vr = {
604
600
  disabled: o.disabled,
605
601
  invalid: o.invalid
606
602
  }, u.$attrs, { onBlur: A }), null, 16, ["modelValue", "mask", "placeholder", "disabled", "invalid"])),
607
- mo(T(kr), { class: "ui-inputgroup-addon" }, {
608
- default: X(() => [
603
+ mo(T(vr), { class: "ui-inputgroup-addon" }, {
604
+ default: Z(() => [
609
605
  o.showClear ? (R(), H(Fo, {
610
606
  key: 0,
611
607
  type: "button",
@@ -614,11 +610,11 @@ const Vr = {
614
610
  "aria-label": "Limpar data",
615
611
  onClick: V
616
612
  }, {
617
- default: X(() => [...s[2] || (s[2] = [
613
+ default: Z(() => [...s[2] || (s[2] = [
618
614
  Po(" Limpar ", -1)
619
615
  ])]),
620
616
  _: 1
621
- }, 8, ["disabled"])) : q("", !0),
617
+ }, 8, ["disabled"])) : E("", !0),
622
618
  o.showToday ? (R(), H(Fo, {
623
619
  key: 1,
624
620
  type: "button",
@@ -627,11 +623,11 @@ const Vr = {
627
623
  "aria-label": "Selecionar hoje",
628
624
  onClick: O
629
625
  }, {
630
- default: X(() => [...s[3] || (s[3] = [
626
+ default: Z(() => [...s[3] || (s[3] = [
631
627
  Po(" Hoje ", -1)
632
628
  ])]),
633
629
  _: 1
634
- }, 8, ["disabled"])) : q("", !0),
630
+ }, 8, ["disabled"])) : E("", !0),
635
631
  mo(Fo, {
636
632
  type: "button",
637
633
  variant: "ghost",
@@ -639,23 +635,23 @@ const Vr = {
639
635
  "aria-label": "Abrir calendário",
640
636
  onClick: j
641
637
  }, {
642
- default: X(() => [
638
+ default: Z(() => [
643
639
  o.calendarIcon ? (R(), H(Mo, {
644
640
  key: 0,
645
641
  class: "text-lg",
646
642
  icon: o.calendarIcon
647
- }, null, 8, ["icon"])) : q("", !0)
643
+ }, null, 8, ["icon"])) : E("", !0)
648
644
  ]),
649
645
  _: 1
650
646
  }, 8, ["disabled"])
651
647
  ]),
652
648
  _: 1
653
649
  }),
654
- mo(T(yr), {
650
+ mo(T(kr), {
655
651
  ref_key: "popoverRef",
656
652
  ref: c
657
653
  }, {
658
- default: X(() => [
654
+ default: Z(() => [
659
655
  mo(T(nr), {
660
656
  modelValue: m.value,
661
657
  "onUpdate:modelValue": [
@@ -674,7 +670,7 @@ const Vr = {
674
670
  _: 1
675
671
  }));
676
672
  }
677
- }, a0 = {
673
+ }, t0 = {
678
674
  __name: "BaseDatePicker",
679
675
  props: {
680
676
  modelValue: {
@@ -780,36 +776,36 @@ const Vr = {
780
776
  onHide: l,
781
777
  onShow: b
782
778
  }, Ho({
783
- default: X(() => [
779
+ default: Z(() => [
784
780
  m.value && !$.$slots.default ? (R(), P("div", Pr, [
785
781
  o.icon ? (R(), H(Mo, {
786
782
  key: 0,
787
783
  icon: o.icon,
788
784
  class: "ui-dialog-icon"
789
- }, null, 8, ["icon"])) : q("", !0),
790
- o.content ? (R(), P("p", qr, oo(o.content), 1)) : q("", !0)
791
- ])) : q("", !0),
785
+ }, null, 8, ["icon"])) : E("", !0),
786
+ o.content ? (R(), P("p", qr, oo(o.content), 1)) : E("", !0)
787
+ ])) : E("", !0),
792
788
  G($.$slots, "default", {}, void 0, !0)
793
789
  ]),
794
790
  _: 2
795
791
  }, [
796
792
  $.$slots.header ? {
797
793
  name: "header",
798
- fn: X(() => [
794
+ fn: Z(() => [
799
795
  G($.$slots, "header", {}, void 0, !0)
800
796
  ]),
801
797
  key: "0"
802
798
  } : void 0,
803
799
  $.$slots.footer ? {
804
800
  name: "footer",
805
- fn: X(() => [
801
+ fn: Z(() => [
806
802
  G($.$slots, "footer", {}, void 0, !0)
807
803
  ]),
808
804
  key: "1"
809
805
  } : void 0
810
806
  ]), 1032, ["visible", "header", "closable", "dismissable-mask", "close-on-escape", "style"]));
811
807
  }
812
- }, n0 = /* @__PURE__ */ Ao(Er, [["__scopeId", "data-v-d952cadc"]]), Ur = { class: "ui-drawer-content" }, i0 = /* @__PURE__ */ Object.assign({
808
+ }, a0 = /* @__PURE__ */ Ao(Er, [["__scopeId", "data-v-d952cadc"]]), Ur = { class: "ui-drawer-content" }, n0 = /* @__PURE__ */ Object.assign({
813
809
  inheritAttrs: !1
814
810
  }, {
815
811
  __name: "BaseDrawer",
@@ -849,9 +845,9 @@ const Vr = {
849
845
  class: "ui-drawer-backdrop",
850
846
  role: "presentation",
851
847
  onClick: i
852
- })) : q("", !0)
848
+ })) : E("", !0)
853
849
  ])),
854
- mo(T(Cr), Q(l.$attrs, {
850
+ mo(T($r), Q(l.$attrs, {
855
851
  modal: o.modal,
856
852
  dismissable: o.dismissable,
857
853
  header: o.title,
@@ -861,7 +857,7 @@ const Vr = {
861
857
  class: "ui-drawer",
862
858
  "onUpdate:visible": m
863
859
  }), {
864
- default: X(() => [
860
+ default: Z(() => [
865
861
  io("div", Ur, [
866
862
  G(l.$slots, "default")
867
863
  ])
@@ -910,21 +906,21 @@ const Vr = {
910
906
  ]),
911
907
  io("div", Gr, [
912
908
  io("h3", Jr, oo(o.title), 1),
913
- t.value ? (R(), P("p", Qr, oo(o.description), 1)) : q("", !0),
909
+ t.value ? (R(), P("p", Qr, oo(o.description), 1)) : E("", !0),
914
910
  io("div", Kr, [
915
911
  G(a.$slots, "default", {}, void 0, !0)
916
912
  ])
917
913
  ])
918
914
  ]));
919
915
  }
920
- }, d0 = /* @__PURE__ */ Ao(oe, [["__scopeId", "data-v-91327e2b"]]), re = { class: "ui-field" }, ee = ["for"], te = { class: "ui-control" }, ae = {
916
+ }, i0 = /* @__PURE__ */ Ao(oe, [["__scopeId", "data-v-91327e2b"]]), re = { class: "ui-field" }, ee = ["for"], te = { class: "ui-control" }, ae = {
921
917
  key: 1,
922
918
  class: "ui-error",
923
919
  role: "alert"
924
920
  }, ne = {
925
921
  key: 2,
926
922
  class: "ui-help"
927
- }, l0 = {
923
+ }, d0 = {
928
924
  __name: "BaseField",
929
925
  props: {
930
926
  label: {
@@ -951,14 +947,14 @@ const Vr = {
951
947
  key: 0,
952
948
  class: "ui-label",
953
949
  for: o.forId
954
- }, oo(o.label), 9, ee)) : q("", !0),
950
+ }, oo(o.label), 9, ee)) : E("", !0),
955
951
  io("div", te, [
956
952
  G(c.$slots, "default")
957
953
  ]),
958
- t.value ? (R(), P("small", ae, oo(o.error), 1)) : a.value ? (R(), P("small", ne, oo(o.help), 1)) : q("", !0)
954
+ t.value ? (R(), P("small", ae, oo(o.error), 1)) : a.value ? (R(), P("small", ne, oo(o.help), 1)) : E("", !0)
959
955
  ]));
960
956
  }
961
- }, c0 = {
957
+ }, l0 = {
962
958
  __name: "BaseInputText",
963
959
  props: {
964
960
  modelValue: {
@@ -995,7 +991,7 @@ const Vr = {
995
991
  ]
996
992
  }, c.$attrs), null, 16, ["modelValue", "disabled", "readonly", "class"]));
997
993
  }
998
- }, s0 = {
994
+ }, c0 = {
999
995
  __name: "BaseModal",
1000
996
  props: {
1001
997
  modelValue: {
@@ -1050,28 +1046,28 @@ const Vr = {
1050
1046
  onHide: m,
1051
1047
  onShow: l
1052
1048
  }, Ho({
1053
- default: X(() => [
1049
+ default: Z(() => [
1054
1050
  G(b.$slots, "default")
1055
1051
  ]),
1056
1052
  _: 2
1057
1053
  }, [
1058
1054
  b.$slots.header ? {
1059
1055
  name: "header",
1060
- fn: X(() => [
1056
+ fn: Z(() => [
1061
1057
  G(b.$slots, "header")
1062
1058
  ]),
1063
1059
  key: "0"
1064
1060
  } : void 0,
1065
1061
  b.$slots.footer ? {
1066
1062
  name: "footer",
1067
- fn: X(() => [
1063
+ fn: Z(() => [
1068
1064
  G(b.$slots, "footer")
1069
1065
  ]),
1070
1066
  key: "1"
1071
1067
  } : void 0
1072
1068
  ]), 1032, ["visible", "header", "closable", "dismissable-mask", "close-on-escape", "style"]));
1073
1069
  }
1074
- }, u0 = {
1070
+ }, s0 = {
1075
1071
  __name: "BaseMultiSelect",
1076
1072
  props: {
1077
1073
  modelValue: {
@@ -1117,7 +1113,7 @@ const Vr = {
1117
1113
  get: () => e.modelValue,
1118
1114
  set: (c) => t("update:modelValue", c)
1119
1115
  });
1120
- return (c, i) => (R(), H(T(xr), Q({
1116
+ return (c, i) => (R(), H(T(Cr), Q({
1121
1117
  modelValue: a.value,
1122
1118
  "onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
1123
1119
  fluid: "",
@@ -1157,34 +1153,34 @@ const Vr = {
1157
1153
  "ui-panel": !0,
1158
1154
  [`ui-panel--${r.variant}`]: !!r.variant
1159
1155
  }));
1160
- return (t, a) => (R(), H(T(wr), {
1156
+ return (t, a) => (R(), H(T(xr), {
1161
1157
  header: o.header,
1162
1158
  toggleable: o.toggleable,
1163
1159
  collapsed: o.collapsed,
1164
1160
  class: So(e.value)
1165
1161
  }, Ho({
1166
- default: X(() => [
1162
+ default: Z(() => [
1167
1163
  G(t.$slots, "default", {}, void 0, !0)
1168
1164
  ]),
1169
1165
  _: 2
1170
1166
  }, [
1171
1167
  t.$slots.header ? {
1172
1168
  name: "header",
1173
- fn: X(() => [
1169
+ fn: Z(() => [
1174
1170
  G(t.$slots, "header", {}, void 0, !0)
1175
1171
  ]),
1176
1172
  key: "0"
1177
1173
  } : void 0,
1178
1174
  t.$slots.icons ? {
1179
1175
  name: "icons",
1180
- fn: X(() => [
1176
+ fn: Z(() => [
1181
1177
  G(t.$slots, "icons", {}, void 0, !0)
1182
1178
  ]),
1183
1179
  key: "1"
1184
1180
  } : void 0
1185
1181
  ]), 1032, ["header", "toggleable", "collapsed", "class"]));
1186
1182
  }
1187
- }, f0 = /* @__PURE__ */ Ao(ie, [["__scopeId", "data-v-cc034b6b"]]), g0 = {
1183
+ }, u0 = /* @__PURE__ */ Ao(ie, [["__scopeId", "data-v-cc034b6b"]]), f0 = {
1188
1184
  __name: "BaseRadioButton",
1189
1185
  props: {
1190
1186
  modelValue: {
@@ -1218,7 +1214,7 @@ const Vr = {
1218
1214
  get: () => e.modelValue,
1219
1215
  set: (c) => t("update:modelValue", c)
1220
1216
  });
1221
- return (c, i) => (R(), H(T(Br), Q({
1217
+ return (c, i) => (R(), H(T(wr), Q({
1222
1218
  modelValue: a.value,
1223
1219
  "onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
1224
1220
  value: o.value,
@@ -1228,7 +1224,7 @@ const Vr = {
1228
1224
  class: [{ "p-invalid": o.invalid }]
1229
1225
  }, c.$attrs), null, 16, ["modelValue", "value", "name", "input-id", "disabled", "class"]));
1230
1226
  }
1231
- }, m0 = {
1227
+ }, g0 = {
1232
1228
  __name: "BaseRouterLink",
1233
1229
  props: {
1234
1230
  to: {
@@ -1259,13 +1255,13 @@ const Vr = {
1259
1255
  "ui-btn-disabled": e.value
1260
1256
  }
1261
1257
  ]);
1262
- return (a, c) => (R(), H(T(Rr), {
1258
+ return (a, c) => (R(), H(T(Br), {
1263
1259
  to: e.value ? void 0 : o.to,
1264
1260
  class: So(t.value),
1265
1261
  "aria-disabled": e.value,
1266
1262
  onClick: c[0] || (c[0] = gr((i) => e.value && i.preventDefault(), ["prevent"]))
1267
1263
  }, {
1268
- default: X(() => [
1264
+ default: Z(() => [
1269
1265
  G(a.$slots, "default")
1270
1266
  ]),
1271
1267
  _: 3
@@ -1274,7 +1270,7 @@ const Vr = {
1274
1270
  }, de = { class: "ui-section-divider" }, le = {
1275
1271
  key: 0,
1276
1272
  class: "ui-section-divider__label"
1277
- }, p0 = {
1273
+ }, m0 = {
1278
1274
  __name: "BaseSectionDivider",
1279
1275
  props: {
1280
1276
  label: {
@@ -1285,11 +1281,11 @@ const Vr = {
1285
1281
  setup(o) {
1286
1282
  const r = o, e = M(() => !!r.label);
1287
1283
  return (t, a) => (R(), P("div", de, [
1288
- e.value ? (R(), P("span", le, oo(o.label), 1)) : q("", !0),
1284
+ e.value ? (R(), P("span", le, oo(o.label), 1)) : E("", !0),
1289
1285
  a[0] || (a[0] = io("div", { class: "ui-section-divider__line" }, null, -1))
1290
1286
  ]));
1291
1287
  }
1292
- }, b0 = {
1288
+ }, p0 = {
1293
1289
  __name: "BaseSelect",
1294
1290
  props: {
1295
1291
  modelValue: {
@@ -1338,7 +1334,7 @@ const Vr = {
1338
1334
  e.optionEmpty,
1339
1335
  ...e.options
1340
1336
  ] : e.options);
1341
- return (i, m) => (R(), H(T(Dr), Q({
1337
+ return (i, m) => (R(), H(T(Rr), Q({
1342
1338
  modelValue: a.value,
1343
1339
  "onUpdate:modelValue": m[0] || (m[0] = (l) => a.value = l),
1344
1340
  options: c.value,
@@ -1353,7 +1349,7 @@ const Vr = {
1353
1349
  ]
1354
1350
  }, i.$attrs), null, 16, ["modelValue", "options", "option-label", "option-value", "placeholder", "disabled", "loading", "class"]));
1355
1351
  }
1356
- }, h0 = {
1352
+ }, b0 = {
1357
1353
  __name: "BaseSwitch",
1358
1354
  props: {
1359
1355
  modelValue: {
@@ -1381,7 +1377,7 @@ const Vr = {
1381
1377
  e.disabled || e.loading || t("update:modelValue", i);
1382
1378
  }
1383
1379
  }), c = M(() => e.disabled || e.loading);
1384
- return (i, m) => (R(), H(T(Sr), {
1380
+ return (i, m) => (R(), H(T(Dr), {
1385
1381
  modelValue: a.value,
1386
1382
  "onUpdate:modelValue": m[0] || (m[0] = (l) => a.value = l),
1387
1383
  "input-id": o.inputId,
@@ -1389,7 +1385,7 @@ const Vr = {
1389
1385
  class: "base-switch"
1390
1386
  }, null, 8, ["modelValue", "input-id", "disabled"]));
1391
1387
  }
1392
- }, v0 = {
1388
+ }, h0 = {
1393
1389
  __name: "BaseTextarea",
1394
1390
  props: {
1395
1391
  modelValue: {
@@ -1423,7 +1419,7 @@ const Vr = {
1423
1419
  get: () => e.modelValue,
1424
1420
  set: (c) => t("update:modelValue", c)
1425
1421
  });
1426
- return (c, i) => (R(), H(T(Mr), Q({
1422
+ return (c, i) => (R(), H(T(Sr), Q({
1427
1423
  modelValue: a.value,
1428
1424
  "onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
1429
1425
  rows: o.rows,
@@ -1436,7 +1432,7 @@ const Vr = {
1436
1432
  ]
1437
1433
  }, c.$attrs), null, 16, ["modelValue", "rows", "auto-resize", "disabled", "readonly", "class"]));
1438
1434
  }
1439
- }, k0 = {
1435
+ }, v0 = {
1440
1436
  mounted(o) {
1441
1437
  const r = () => {
1442
1438
  typeof o?.focus == "function" && o.focus();
@@ -1554,8 +1550,8 @@ const Vu = {
1554
1550
  firstDayOfWeek: 1,
1555
1551
  dateFormat: "dd/mm/yy"
1556
1552
  };
1557
- function y0(o) {
1558
- o.use(zr, {
1553
+ function k0(o) {
1554
+ o.use(Mr, {
1559
1555
  locale: Vu,
1560
1556
  ripple: !0,
1561
1557
  theme: {
@@ -1570,8 +1566,8 @@ function y0(o) {
1570
1566
  }
1571
1567
  });
1572
1568
  }
1573
- function $0() {
1574
- const o = Yr();
1569
+ function y0() {
1570
+ const o = zr();
1575
1571
  return { success: (t, a = "Sucesso") => {
1576
1572
  o.add({
1577
1573
  severity: "success",
@@ -1588,7 +1584,7 @@ function $0() {
1588
1584
  });
1589
1585
  } };
1590
1586
  }
1591
- function C0(o, r) {
1587
+ function $0(o, r) {
1592
1588
  function e(t) {
1593
1589
  o.value && (o.value.contains(t.target) || r(t));
1594
1590
  }
@@ -1692,11 +1688,11 @@ function dr() {
1692
1688
  }, n.valueOf = function() {
1693
1689
  return this.$d.getTime();
1694
1690
  }, n.startOf = function(d, h) {
1695
- var g = this, w = !!S.u(h) || h, D = S.p(d), Y = function(ro, Z) {
1696
- var K = S.w(g.$u ? Date.UTC(g.$y, Z, ro) : new Date(g.$y, Z, ro), g);
1691
+ var g = this, w = !!S.u(h) || h, D = S.p(d), Y = function(ro, X) {
1692
+ var K = S.w(g.$u ? Date.UTC(g.$y, X, ro) : new Date(g.$y, X, ro), g);
1697
1693
  return w ? K : K.endOf(b);
1698
- }, I = function(ro, Z) {
1699
- return S.w(g.toDate()[ro].apply(g.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), g);
1694
+ }, I = function(ro, X) {
1695
+ return S.w(g.toDate()[ro].apply(g.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), g);
1700
1696
  }, N = this.$W, _ = this.$M, J = this.$D, lo = "set" + (this.$u ? "UTC" : "");
1701
1697
  switch (D) {
1702
1698
  case z:
@@ -1749,15 +1745,15 @@ function dr() {
1749
1745
  }, n.format = function(d) {
1750
1746
  var h = this, g = this.$locale();
1751
1747
  if (!this.isValid()) return g.invalidDate || p;
1752
- var w = d || "YYYY-MM-DDTHH:mm:ssZ", D = S.z(this), Y = this.$H, I = this.$m, N = this.$M, _ = g.weekdays, J = g.months, lo = g.meridiem, ao = function(Z, K, no, co) {
1753
- return Z && (Z[K] || Z(h, w)) || no[K].slice(0, co);
1754
- }, go = function(Z) {
1755
- return S.s(Y % 12 || 12, Z, "0");
1756
- }, ro = lo || function(Z, K, no) {
1757
- var co = Z < 12 ? "AM" : "PM";
1748
+ var w = d || "YYYY-MM-DDTHH:mm:ssZ", D = S.z(this), Y = this.$H, I = this.$m, N = this.$M, _ = g.weekdays, J = g.months, lo = g.meridiem, ao = function(X, K, no, co) {
1749
+ return X && (X[K] || X(h, w)) || no[K].slice(0, co);
1750
+ }, go = function(X) {
1751
+ return S.s(Y % 12 || 12, X, "0");
1752
+ }, ro = lo || function(X, K, no) {
1753
+ var co = X < 12 ? "AM" : "PM";
1758
1754
  return no ? co.toLowerCase() : co;
1759
1755
  };
1760
- return w.replace(v, (function(Z, K) {
1756
+ return w.replace(v, (function(X, K) {
1761
1757
  return K || (function(no) {
1762
1758
  switch (no) {
1763
1759
  case "YY":
@@ -1810,7 +1806,7 @@ function dr() {
1810
1806
  return D;
1811
1807
  }
1812
1808
  return null;
1813
- })(Z) || D.replace(":", "");
1809
+ })(X) || D.replace(":", "");
1814
1810
  }));
1815
1811
  }, n.utcOffset = function() {
1816
1812
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -1998,10 +1994,10 @@ function ju() {
1998
1994
  S && (u = A[2]), l = this.$locale(), !O && u && (l = C.Ls[u]), this.$d = (function(h, g, w, D) {
1999
1995
  try {
2000
1996
  if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * h);
2001
- var Y = p(g)(h), I = Y.year, N = Y.month, _ = Y.day, J = Y.hours, lo = Y.minutes, ao = Y.seconds, go = Y.milliseconds, ro = Y.zone, Z = Y.week, K = /* @__PURE__ */ new Date(), no = _ || (I || N ? 1 : K.getDate()), co = I || K.getFullYear(), ko = 0;
1997
+ var Y = p(g)(h), I = Y.year, N = Y.month, _ = Y.day, J = Y.hours, lo = Y.minutes, ao = Y.seconds, go = Y.milliseconds, ro = Y.zone, X = Y.week, K = /* @__PURE__ */ new Date(), no = _ || (I || N ? 1 : K.getDate()), co = I || K.getFullYear(), ko = 0;
2002
1998
  I && !N || (ko = N > 0 ? N - 1 : K.getMonth());
2003
1999
  var yo, Oo = J || 0, Lo = lo || 0, To = ao || 0, Wo = go || 0;
2004
- return ro ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo + 60 * ro.offset * 1e3)) : w ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo)) : (yo = new Date(co, ko, no, Oo, Lo, To, Wo), Z && (yo = D(yo).week(Z).toDate()), yo);
2000
+ return ro ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo + 60 * ro.offset * 1e3)) : w ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo)) : (yo = new Date(co, ko, no, Oo, Lo, To, Wo), X && (yo = D(yo).week(X).toDate()), yo);
2005
2001
  } catch {
2006
2002
  return /* @__PURE__ */ new Date("");
2007
2003
  }
@@ -2221,34 +2217,34 @@ function Ko(o) {
2221
2217
  const r = to(o);
2222
2218
  return r ? r.startOf("day").toDate() : null;
2223
2219
  }
2224
- function x0() {
2220
+ function C0() {
2225
2221
  return eo().startOf("day").toDate();
2226
2222
  }
2227
- function w0(o, r = "YYYY-MM-DD") {
2223
+ function x0(o, r = "YYYY-MM-DD") {
2228
2224
  const e = to(o);
2229
2225
  return e ? e.format(r) : "";
2230
2226
  }
2231
- function B0(o, r = "YYYY-MM-DD HH:mm:ss") {
2227
+ function w0(o, r = "YYYY-MM-DD HH:mm:ss") {
2232
2228
  const e = to(o);
2233
2229
  return e ? e.format(r) : "";
2234
2230
  }
2235
- function R0(o, r = "DD/MM/YYYY") {
2231
+ function B0(o, r = "DD/MM/YYYY") {
2236
2232
  const e = to(o);
2237
2233
  return e ? e.format(r) : "";
2238
2234
  }
2239
- function D0(o, r = "DD/MM/YYYY HH:mm") {
2235
+ function R0(o, r = "DD/MM/YYYY HH:mm") {
2240
2236
  const e = to(o);
2241
2237
  return e ? e.format(r) : "";
2242
2238
  }
2243
- function S0(o, r = "HH:mm") {
2239
+ function D0(o, r = "HH:mm") {
2244
2240
  const e = to(o);
2245
2241
  return e ? e.format(r) : "";
2246
2242
  }
2247
- function M0(o, r = "ddd") {
2243
+ function S0(o, r = "ddd") {
2248
2244
  const e = to(o);
2249
2245
  return e ? e.format(r).toUpperCase() : "";
2250
2246
  }
2251
- function z0(o, r = "dddd, DD[ de ]MMMM[ de ]YYYY") {
2247
+ function M0(o, r = "dddd, DD[ de ]MMMM[ de ]YYYY") {
2252
2248
  const e = to(o);
2253
2249
  return e ? e.format(r) : "";
2254
2250
  }
@@ -2260,29 +2256,29 @@ function Yo(o, r, e = "day") {
2260
2256
  const t = to(o);
2261
2257
  return !t || typeof r != "number" || Number.isNaN(r) ? null : t.add(r, e).toDate();
2262
2258
  }
2263
- function Y0(o, r) {
2259
+ function z0(o, r) {
2264
2260
  return Yo(o, r, "day");
2265
2261
  }
2266
- function V0(o, r) {
2262
+ function Y0(o, r) {
2267
2263
  return Yo(o, r, "month");
2268
2264
  }
2269
- function O0(o, r) {
2265
+ function V0(o, r) {
2270
2266
  return Yo(o, r, "year");
2271
2267
  }
2272
- function L0(o, r) {
2268
+ function O0(o, r) {
2273
2269
  return Yo(o, r, "minute");
2274
2270
  }
2275
- function T0(o) {
2271
+ function L0(o) {
2276
2272
  return o == null ? "" : String(o).toLowerCase().trim().split(/\s+/).map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
2277
2273
  }
2278
2274
  function so(o) {
2279
2275
  return o == null ? "" : String(o).replace(/\D/g, "");
2280
2276
  }
2281
- const W0 = (o) => {
2277
+ const T0 = (o) => {
2282
2278
  if (!o) return "-";
2283
2279
  const r = o.replace(/\D/g, "");
2284
2280
  return r.length === 11 ? r.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, "$1.$2.$3-$4") : r.length === 14 ? r.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, "$1.$2.$3/$4-$5") : o;
2285
- }, F0 = (o, r = 2) => o == null ? "-" : Number(o).toLocaleString("pt-BR", {
2281
+ }, W0 = (o, r = 2) => o == null ? "-" : Number(o).toLocaleString("pt-BR", {
2286
2282
  minimumFractionDigits: r,
2287
2283
  maximumFractionDigits: r
2288
2284
  });
@@ -2290,7 +2286,7 @@ function of(o) {
2290
2286
  const r = so(o);
2291
2287
  return r.length !== 8 ? o : r.replace(/(\d{5})(\d{3})/, "$1-$2");
2292
2288
  }
2293
- function j0(o) {
2289
+ function F0(o) {
2294
2290
  if (o == null) return "";
2295
2291
  const {
2296
2292
  postalCode: r,
@@ -2302,12 +2298,12 @@ function j0(o) {
2302
2298
  } = o, m = [c, i].filter(Boolean).join(" "), l = [a, " - ", t, e].filter(Boolean).join(" "), b = r ? of(r) : null;
2303
2299
  return [m, " - ", l, " - ", b].filter(Boolean).join(" ").replace(/\s-\s$/, "");
2304
2300
  }
2305
- function I0(o) {
2301
+ function j0(o) {
2306
2302
  if (o == null) return "";
2307
2303
  const { name: r, state: e, record: t } = o;
2308
2304
  return [r, e, t].filter(Boolean).join(" ");
2309
2305
  }
2310
- function H0(o) {
2306
+ function I0(o) {
2311
2307
  const r = so(o);
2312
2308
  if (!r) return "";
2313
2309
  const e = r.startsWith("55") && r.length > 11 ? r.slice(2) : r;
@@ -2473,7 +2469,7 @@ function uo() {
2473
2469
  r[e] = arguments[e];
2474
2470
  return (t) => (t = T(t), !bo(t) || r.every((a) => (a.lastIndex = 0, a.test(t))));
2475
2471
  }
2476
- var E = /* @__PURE__ */ Object.freeze({
2472
+ var q = /* @__PURE__ */ Object.freeze({
2477
2473
  __proto__: null,
2478
2474
  forEach: nf,
2479
2475
  len: No,
@@ -2638,113 +2634,113 @@ function Mf(o) {
2638
2634
  return !c || Sf(c) ? !1 : t.test(a);
2639
2635
  });
2640
2636
  }
2641
- const fo = (o) => (r) => !E.req(r) || o(r), A0 = E.withMessage("Campo obrigatório.", pf), N0 = E.withMessage("E-mail inválido.", (o) => E.req(o) ? cf.$validator(String(o).trim()) : !0), P0 = E.withMessage(
2637
+ const fo = (o) => (r) => !q.req(r) || o(r), H0 = q.withMessage("Campo obrigatório.", pf), A0 = q.withMessage("E-mail inválido.", (o) => q.req(o) ? cf.$validator(String(o).trim()) : !0), N0 = q.withMessage(
2642
2638
  "Informe nome e sobrenome.",
2643
2639
  fo(Mf)
2644
- ), q0 = E.withMessage(
2640
+ ), P0 = q.withMessage(
2645
2641
  "Informe apenas números.",
2646
2642
  fo(Rf)
2647
- ), E0 = E.withMessage(
2643
+ ), q0 = q.withMessage(
2648
2644
  "CEP inválido.",
2649
2645
  fo(Bf)
2650
- ), U0 = E.withMessage("CNPJ inválido.", fo(kf)), _0 = E.withMessage("CPF inválido.", fo(yf)), X0 = E.withMessage(
2646
+ ), E0 = q.withMessage("CNPJ inválido.", fo(kf)), U0 = q.withMessage("CPF inválido.", fo(yf)), _0 = q.withMessage(
2651
2647
  "Nº celular inválido.",
2652
2648
  fo((o) => xf(so(o)))
2653
- ), Z0 = E.withMessage(
2649
+ ), X0 = q.withMessage(
2654
2650
  "Nº telefone inválido.",
2655
2651
  fo((o) => wf(so(o)))
2656
- ), G0 = E.withMessage(
2652
+ ), Z0 = q.withMessage(
2657
2653
  "Data inválida.",
2658
2654
  (o) => o == null || o === "" ? !0 : o instanceof Date ? rr(o) : rr(zo(o))
2659
- ), J0 = E.withMessage(
2655
+ ), G0 = q.withMessage(
2660
2656
  "Data não pode ser maior que hoje.",
2661
2657
  fo((o) => !$f(zo(o)))
2662
- ), Q0 = E.withMessage(
2658
+ ), J0 = q.withMessage(
2663
2659
  "Intervalo de datas inválido.",
2664
2660
  (o) => o == null ? !0 : Cf(o)
2665
2661
  );
2666
- function K0(o, r) {
2667
- return E.withMessage(
2662
+ function Q0(o, r) {
2663
+ return q.withMessage(
2668
2664
  r || `Informe no máximo ${o} caracteres.`,
2669
- (e) => E.req(e) ? uf(o).$validator(String(e)) : !0
2665
+ (e) => q.req(e) ? uf(o).$validator(String(e)) : !0
2670
2666
  );
2671
2667
  }
2672
- function og(o, r) {
2673
- return E.withMessage(
2668
+ function K0(o, r) {
2669
+ return q.withMessage(
2674
2670
  r || `Informe no mínimo ${o} caracteres.`,
2675
- (e) => E.req(e) ? gf(o).$validator(String(e)) : !0
2671
+ (e) => q.req(e) ? gf(o).$validator(String(e)) : !0
2676
2672
  );
2677
2673
  }
2678
- function rg(o, r) {
2679
- return E.withMessage(
2674
+ function og(o, r) {
2675
+ return q.withMessage(
2680
2676
  r || `Valor mínimo é ${o}.`,
2681
- (e) => E.req(e) ? vf(o).$validator(Number(e)) : !0
2677
+ (e) => q.req(e) ? vf(o).$validator(Number(e)) : !0
2682
2678
  );
2683
2679
  }
2684
2680
  export {
2685
- Vr as BaseAlert,
2686
- Kf as BaseAutoComplete,
2681
+ Yr as BaseAlert,
2682
+ Qf as BaseAutoComplete,
2687
2683
  Fo as BaseButton,
2688
- o0 as BaseCard,
2689
- r0 as BaseChart,
2690
- e0 as BaseCurrency,
2691
- t0 as BaseDate,
2692
- a0 as BaseDatePicker,
2693
- n0 as BaseDialog,
2694
- i0 as BaseDrawer,
2695
- d0 as BaseEmpty,
2696
- l0 as BaseField,
2684
+ Kf as BaseCard,
2685
+ o0 as BaseChart,
2686
+ r0 as BaseCurrency,
2687
+ e0 as BaseDate,
2688
+ t0 as BaseDatePicker,
2689
+ a0 as BaseDialog,
2690
+ n0 as BaseDrawer,
2691
+ i0 as BaseEmpty,
2692
+ d0 as BaseField,
2697
2693
  Nr as BaseInputMask,
2698
- c0 as BaseInputText,
2699
- s0 as BaseModal,
2700
- u0 as BaseMultiSelect,
2701
- f0 as BasePanel,
2702
- g0 as BaseRadioButton,
2703
- m0 as BaseRouterLink,
2704
- p0 as BaseSectionDivider,
2705
- b0 as BaseSelect,
2706
- h0 as BaseSwitch,
2707
- v0 as BaseTextarea,
2694
+ l0 as BaseInputText,
2695
+ c0 as BaseModal,
2696
+ s0 as BaseMultiSelect,
2697
+ u0 as BasePanel,
2698
+ f0 as BaseRadioButton,
2699
+ g0 as BaseRouterLink,
2700
+ m0 as BaseSectionDivider,
2701
+ p0 as BaseSelect,
2702
+ b0 as BaseSwitch,
2703
+ h0 as BaseTextarea,
2708
2704
  Mo as FaIcon,
2709
2705
  Yo as add,
2710
- Y0 as addDays,
2711
- L0 as addMinutes,
2712
- V0 as addMonths,
2713
- O0 as addYears,
2714
- j0 as formatAddress,
2715
- I0 as formatCouncil,
2716
- R0 as formatDate,
2717
- D0 as formatDateTime,
2718
- B0 as formatDateTimeToApi,
2719
- w0 as formatDateToApi,
2720
- W0 as formatDocument,
2721
- z0 as formatFullDate,
2722
- F0 as formatNumber,
2723
- H0 as formatPhone,
2724
- S0 as formatTime,
2725
- M0 as formatWeekday,
2706
+ z0 as addDays,
2707
+ O0 as addMinutes,
2708
+ Y0 as addMonths,
2709
+ V0 as addYears,
2710
+ F0 as formatAddress,
2711
+ j0 as formatCouncil,
2712
+ B0 as formatDate,
2713
+ R0 as formatDateTime,
2714
+ w0 as formatDateTimeToApi,
2715
+ x0 as formatDateToApi,
2716
+ T0 as formatDocument,
2717
+ M0 as formatFullDate,
2718
+ W0 as formatNumber,
2719
+ I0 as formatPhone,
2720
+ D0 as formatTime,
2721
+ S0 as formatWeekday,
2726
2722
  so as onlyNumber,
2727
- y0 as setupPrimeVue,
2723
+ k0 as setupPrimeVue,
2728
2724
  Ko as startOfDay,
2729
- T0 as toCamelCaseWords,
2725
+ L0 as toCamelCaseWords,
2730
2726
  zo as toDate,
2731
- x0 as today,
2732
- $0 as useAppToast,
2733
- C0 as useClickOutside,
2734
- k0 as vFocus,
2735
- X0 as validCellphone,
2736
- U0 as validCnpj,
2737
- _0 as validCpf,
2738
- G0 as validDate,
2739
- Q0 as validDateRange,
2740
- N0 as validEmail,
2741
- P0 as validFullName,
2742
- K0 as validMaxLength,
2743
- og as validMinLength,
2744
- rg as validMinValue,
2745
- J0 as validNotFutureDate,
2746
- q0 as validOnlyNumbers,
2747
- Z0 as validPhone,
2748
- E0 as validPostalCode,
2749
- A0 as validRequired
2727
+ C0 as today,
2728
+ y0 as useAppToast,
2729
+ $0 as useClickOutside,
2730
+ v0 as vFocus,
2731
+ _0 as validCellphone,
2732
+ E0 as validCnpj,
2733
+ U0 as validCpf,
2734
+ Z0 as validDate,
2735
+ J0 as validDateRange,
2736
+ A0 as validEmail,
2737
+ N0 as validFullName,
2738
+ Q0 as validMaxLength,
2739
+ K0 as validMinLength,
2740
+ og as validMinValue,
2741
+ G0 as validNotFutureDate,
2742
+ P0 as validOnlyNumbers,
2743
+ X0 as validPhone,
2744
+ q0 as validPostalCode,
2745
+ H0 as validRequired
2750
2746
  };