@forizi-tecnologia/ui 0.0.6 → 0.0.8
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/chunks/components/{inputs-FzFullAddress-Dj68efww.js → inputs-FzFullAddress-VTqqGmqm.js} +10 -10
- package/dist/chunks/components/{inputs-FzFullAddress-Dj68efww.js.map → inputs-FzFullAddress-VTqqGmqm.js.map} +1 -1
- package/dist/chunks/components/{inputs-FzMoneyField-Co9uqB9u.js → inputs-FzMoneyField-C8nCfRgx.js} +8 -8
- package/dist/chunks/components/{inputs-FzMoneyField-Co9uqB9u.js.map → inputs-FzMoneyField-C8nCfRgx.js.map} +1 -1
- package/dist/chunks/components/{inputs-FzNumberField-DG-uYIEA.js → inputs-FzNumberField-BoJ_kxJg.js} +2 -2
- package/dist/chunks/components/{inputs-FzNumberField-DG-uYIEA.js.map → inputs-FzNumberField-BoJ_kxJg.js.map} +1 -1
- package/dist/chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js +129 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js.map +1 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerCalendar-TOO_5iVD.js +170 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerCalendar-TOO_5iVD.js.map +1 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerDaysView-0m1isZIx.js +82 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerDaysView-0m1isZIx.js.map +1 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerMonthsView-DfjKo8Y0.js +52 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerMonthsView-DfjKo8Y0.js.map +1 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerYearsView-BLqOg5T9.js +58 -0
- package/dist/chunks/components/inputs-datepicker-FzDatePickerYearsView-BLqOg5T9.js.map +1 -0
- package/dist/chunks/components/{layout-FzLoadingOverlay-CWKZxowb.js → layout-FzLoadingOverlay-DTejZcvu.js} +2 -2
- package/dist/chunks/components/{layout-FzLoadingOverlay-CWKZxowb.js.map → layout-FzLoadingOverlay-DTejZcvu.js.map} +1 -1
- package/dist/chunks/components/messages-FzConfirmDialog-C3KyhNp5.js +18 -0
- package/dist/chunks/components/messages-FzConfirmDialog-C3KyhNp5.js.map +1 -0
- package/dist/chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js +118 -0
- package/dist/chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js.map +1 -0
- package/dist/chunks/components/messages-FzFloatingNotify-DU8K95A2.js +96 -0
- package/dist/chunks/components/messages-FzFloatingNotify-DU8K95A2.js.map +1 -0
- package/dist/chunks/components/{modals-FzModalBase-DmsJR5qM.js → modals-FzModalBase-OltWGin-.js} +27 -24
- package/dist/chunks/components/modals-FzModalBase-OltWGin-.js.map +1 -0
- package/dist/chunks/composables/useDatePicker-DlPanUqu.js +78 -0
- package/dist/chunks/composables/useDatePicker-DlPanUqu.js.map +1 -0
- package/dist/chunks/index-CykPyQ3c.js +35 -0
- package/dist/chunks/index-CykPyQ3c.js.map +1 -0
- package/dist/chunks/utils/date-BCG-p19e.js +106 -0
- package/dist/chunks/utils/date-BCG-p19e.js.map +1 -0
- package/dist/chunks/utils/types-DV6li0y5.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +15 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/FzFullAddress.vue.d.ts.map +1 -1
- package/dist/components/inputs/datepicker/FzDatePicker.vue.d.ts +66 -0
- package/dist/components/inputs/datepicker/FzDatePicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/datepicker/FzDatePickerCalendar.vue.d.ts +33 -0
- package/dist/components/inputs/datepicker/FzDatePickerCalendar.vue.d.ts.map +1 -0
- package/dist/components/inputs/datepicker/FzDatePickerDaysView.vue.d.ts +17 -0
- package/dist/components/inputs/datepicker/FzDatePickerDaysView.vue.d.ts.map +1 -0
- package/dist/components/inputs/datepicker/FzDatePickerMonthsView.vue.d.ts +13 -0
- package/dist/components/inputs/datepicker/FzDatePickerMonthsView.vue.d.ts.map +1 -0
- package/dist/components/inputs/datepicker/FzDatePickerYearsView.vue.d.ts +13 -0
- package/dist/components/inputs/datepicker/FzDatePickerYearsView.vue.d.ts.map +1 -0
- package/dist/components/messages/FzConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/messages/FzCustomConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/messages/FzFloatingNotify.vue.d.ts.map +1 -1
- package/dist/components/modals/FzModalBase.vue.d.ts +2 -0
- package/dist/components/modals/FzModalBase.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/index.js +6 -4
- package/dist/composables/index.js.map +1 -1
- package/dist/composables/useDatePicker.d.ts +30 -0
- package/dist/composables/useDatePicker.d.ts.map +1 -0
- package/dist/index.js +64 -60
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/date.d.ts +28 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +19 -18
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/notify.d.ts +1 -1
- package/dist/utils/types.d.ts +1 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/components/messages-FzConfirmDialog-vB2NQFVy.js +0 -18
- package/dist/chunks/components/messages-FzConfirmDialog-vB2NQFVy.js.map +0 -1
- package/dist/chunks/components/messages-FzCustomConfirmDialog-DF73kvKq.js +0 -107
- package/dist/chunks/components/messages-FzCustomConfirmDialog-DF73kvKq.js.map +0 -1
- package/dist/chunks/components/messages-FzFloatingNotify-CV5gLl9-.js +0 -96
- package/dist/chunks/components/messages-FzFloatingNotify-CV5gLl9-.js.map +0 -1
- package/dist/chunks/components/modals-FzModalBase-DmsJR5qM.js.map +0 -1
- package/dist/chunks/index-OarSr4I3.js +0 -33
- package/dist/chunks/index-OarSr4I3.js.map +0 -1
package/dist/chunks/components/{modals-FzModalBase-DmsJR5qM.js → modals-FzModalBase-OltWGin-.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as F, computed as
|
|
1
|
+
import { defineComponent as F, computed as m, resolveComponent as a, createBlock as s, openBlock as c, withCtx as r, createVNode as u, createCommentVNode as _, createElementVNode as z, createTextVNode as p, toDisplayString as d, renderSlot as P, createElementBlock as M, Fragment as O, renderList as S } from "vue";
|
|
2
2
|
import { useTheme as W } from "vuetify";
|
|
3
|
-
import { _ as L } from "./inputs-FzMoneyField-
|
|
3
|
+
import { _ as L } from "./inputs-FzMoneyField-C8nCfRgx.js";
|
|
4
4
|
const R = /* @__PURE__ */ F({
|
|
5
5
|
__name: "FzModalBase",
|
|
6
6
|
props: {
|
|
@@ -9,6 +9,7 @@ const R = /* @__PURE__ */ F({
|
|
|
9
9
|
message: { default: "" },
|
|
10
10
|
maxWidth: { default: 500 },
|
|
11
11
|
persistent: { type: Boolean, default: !0 },
|
|
12
|
+
enterToConfirm: { type: Boolean, default: !1 },
|
|
12
13
|
actions: { default: () => [] },
|
|
13
14
|
contentClass: { default: void 0 },
|
|
14
15
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -16,10 +17,10 @@ const R = /* @__PURE__ */ F({
|
|
|
16
17
|
},
|
|
17
18
|
emits: ["update:modelValue"],
|
|
18
19
|
setup(t, { emit: g }) {
|
|
19
|
-
const n = t, x = g, h = W(), v =
|
|
20
|
+
const n = t, x = g, h = W(), v = m({
|
|
20
21
|
get: () => n.modelValue,
|
|
21
22
|
set: (e) => x("update:modelValue", e)
|
|
22
|
-
}),
|
|
23
|
+
}), y = m(() => `v-theme--${h.global.name.value}`), C = m(() => n.contentClass ? `${y.value} ${n.contentClass}` : y.value);
|
|
23
24
|
function V() {
|
|
24
25
|
return n.actions.find((e) => e.color === "secondary" || e.color === "error");
|
|
25
26
|
}
|
|
@@ -34,29 +35,31 @@ const R = /* @__PURE__ */ F({
|
|
|
34
35
|
function A(e) {
|
|
35
36
|
return !e || e === "primary" ? "elevated" : e === "secondary" || e === "error" ? "outlined" : "text";
|
|
36
37
|
}
|
|
37
|
-
async function
|
|
38
|
+
async function f(e) {
|
|
38
39
|
e.handler && await e.handler();
|
|
39
40
|
}
|
|
40
41
|
function E(e) {
|
|
41
42
|
if (n.actions.length !== 0) {
|
|
42
43
|
if (e.key === "Escape") {
|
|
44
|
+
if (n.persistent) return;
|
|
43
45
|
const l = V();
|
|
44
46
|
if (!l) return;
|
|
45
|
-
e.preventDefault(), e.stopPropagation(),
|
|
47
|
+
e.preventDefault(), e.stopPropagation(), f(l);
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
50
|
if (e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.altKey) {
|
|
51
|
+
if (!n.enterToConfirm) return;
|
|
49
52
|
const l = e.target;
|
|
50
53
|
if (B(l)) return;
|
|
51
54
|
const i = k();
|
|
52
55
|
if (!i) return;
|
|
53
|
-
e.preventDefault(), e.stopPropagation(),
|
|
56
|
+
e.preventDefault(), e.stopPropagation(), f(i);
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
return (e, l) => {
|
|
58
|
-
const i = a("v-icon"),
|
|
59
|
-
return c(), s(
|
|
61
|
+
const i = a("v-icon"), T = a("v-card-title"), b = a("v-card-text"), w = a("v-spacer"), D = a("v-btn"), I = a("v-card-actions"), K = a("v-card"), N = a("v-dialog");
|
|
62
|
+
return c(), s(N, {
|
|
60
63
|
modelValue: v.value,
|
|
61
64
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => v.value = o),
|
|
62
65
|
"max-width": t.maxWidth,
|
|
@@ -68,9 +71,9 @@ const R = /* @__PURE__ */ F({
|
|
|
68
71
|
onKeydown: E
|
|
69
72
|
}, {
|
|
70
73
|
default: r(() => [
|
|
71
|
-
|
|
74
|
+
u(K, null, {
|
|
72
75
|
default: r(() => [
|
|
73
|
-
t.title ? (c(), s(
|
|
76
|
+
t.title ? (c(), s(T, {
|
|
74
77
|
key: 0,
|
|
75
78
|
class: "text-h5 d-flex align-center px-6 pt-6 modal-title"
|
|
76
79
|
}, {
|
|
@@ -80,36 +83,36 @@ const R = /* @__PURE__ */ F({
|
|
|
80
83
|
class: "mr-2"
|
|
81
84
|
}, {
|
|
82
85
|
default: r(() => [
|
|
83
|
-
p(
|
|
86
|
+
p(d(t.titleIcon), 1)
|
|
84
87
|
]),
|
|
85
88
|
_: 1
|
|
86
|
-
})) :
|
|
87
|
-
z("span", null,
|
|
89
|
+
})) : _("", !0),
|
|
90
|
+
z("span", null, d(t.title), 1)
|
|
88
91
|
]),
|
|
89
92
|
_: 1
|
|
90
|
-
})) :
|
|
91
|
-
|
|
93
|
+
})) : _("", !0),
|
|
94
|
+
u(b, { class: "px-6 pt-4" }, {
|
|
92
95
|
default: r(() => [
|
|
93
96
|
P(e.$slots, "default", {}, () => [
|
|
94
|
-
p(
|
|
97
|
+
p(d(t.message), 1)
|
|
95
98
|
], !0)
|
|
96
99
|
]),
|
|
97
100
|
_: 3
|
|
98
101
|
}),
|
|
99
|
-
|
|
102
|
+
u(I, null, {
|
|
100
103
|
default: r(() => [
|
|
101
|
-
|
|
102
|
-
(c(!0), M(O, null, S(t.actions, (o, $) => (c(), s(
|
|
104
|
+
u(w),
|
|
105
|
+
(c(!0), M(O, null, S(t.actions, (o, $) => (c(), s(D, {
|
|
103
106
|
key: $,
|
|
104
107
|
color: o.color || "primary",
|
|
105
108
|
"prepend-icon": o.icon,
|
|
106
109
|
variant: o.variant || A(o.color),
|
|
107
110
|
type: "button",
|
|
108
111
|
class: "text-none",
|
|
109
|
-
onClick: (U) =>
|
|
112
|
+
onClick: (U) => f(o)
|
|
110
113
|
}, {
|
|
111
114
|
default: r(() => [
|
|
112
|
-
p(
|
|
115
|
+
p(d(o.text), 1)
|
|
113
116
|
]),
|
|
114
117
|
_: 2
|
|
115
118
|
}, 1032, ["color", "prepend-icon", "variant", "onClick"]))), 128))
|
|
@@ -124,8 +127,8 @@ const R = /* @__PURE__ */ F({
|
|
|
124
127
|
}, 8, ["modelValue", "max-width", "persistent", "content-class", "fullscreen"]);
|
|
125
128
|
};
|
|
126
129
|
}
|
|
127
|
-
}), G = /* @__PURE__ */ L(R, [["__scopeId", "data-v-
|
|
130
|
+
}), G = /* @__PURE__ */ L(R, [["__scopeId", "data-v-90ba442f"]]);
|
|
128
131
|
export {
|
|
129
132
|
G as F
|
|
130
133
|
};
|
|
131
|
-
//# sourceMappingURL=modals-FzModalBase-
|
|
134
|
+
//# sourceMappingURL=modals-FzModalBase-OltWGin-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modals-FzModalBase-OltWGin-.js","sources":["../../../src/components/modals/FzModalBase.vue"],"sourcesContent":["<template>\n <v-dialog\n v-model=\"isOpen\"\n :max-width=\"maxWidth\"\n :persistent=\"persistent\"\n :content-class=\"dialogContentClass\"\n :fullscreen=\"fullscreen\"\n scrollable\n :z-index=\"2400\"\n @keydown=\"onDialogKeydown\"\n >\n <v-card>\n <v-card-title\n v-if=\"title\"\n class=\"text-h5 d-flex align-center px-6 pt-6 modal-title\"\n >\n <v-icon v-if=\"titleIcon\" class=\"mr-2\">{{ titleIcon }}</v-icon>\n <span>{{ title }}</span>\n </v-card-title>\n\n <v-card-text class=\"px-6 pt-4\">\n <slot>\n {{ message }}\n </slot>\n </v-card-text>\n\n <v-card-actions>\n <v-spacer />\n <v-btn\n v-for=\"(action, index) in actions\"\n :key=\"index\"\n :color=\"action.color || 'primary'\"\n :prepend-icon=\"action.icon\"\n :variant=\"action.variant || getDefaultVariant(action.color)\"\n type=\"button\"\n class=\"text-none\"\n @click=\"handleAction(action)\"\n >\n {{ action.text }}\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { useTheme } from 'vuetify';\n\nexport interface ModalAction {\n text: string;\n icon?: string;\n color?: string;\n variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';\n handler?: () => void | Promise<void>;\n}\n\ninterface Props {\n modelValue: boolean;\n title?: string;\n message?: string;\n maxWidth?: string | number;\n persistent?: boolean;\n enterToConfirm?: boolean;\n actions?: ModalAction[];\n contentClass?: string;\n fullscreen?: boolean;\n titleIcon?: string;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: undefined,\n message: '',\n maxWidth: 500,\n persistent: true,\n enterToConfirm: false,\n actions: () => [],\n contentClass: undefined,\n fullscreen: false,\n titleIcon: undefined,\n});\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: boolean];\n}>();\n\nconst theme = useTheme();\n\nconst isOpen = computed({\n get: () => props.modelValue,\n set: (val) => emit('update:modelValue', val),\n});\n\nconst dialogThemeClass = computed(() => `v-theme--${theme.global.name.value}`);\n\nconst dialogContentClass = computed(() => {\n if (!props.contentClass) return dialogThemeClass.value;\n\n return `${dialogThemeClass.value} ${props.contentClass}`;\n});\n\nfunction findCancelAction(): ModalAction | undefined {\n return props.actions.find((a) => a.color === 'secondary' || a.color === 'error');\n}\n\nfunction findPrimaryAction(): ModalAction | undefined {\n return props.actions.find(\n (a) => a.color === 'primary' || (!a.color && props.actions.indexOf(a) === props.actions.length - 1),\n );\n}\n\nfunction isInteractiveElement(target: HTMLElement): boolean {\n return target.tagName === 'TEXTAREA';\n}\n\nfunction getDefaultVariant(color?: string): 'elevated' | 'outlined' | 'text' {\n if (!color || color === 'primary') return 'elevated';\n\n if (color === 'secondary' || color === 'error') return 'outlined';\n\n return 'text';\n}\n\nasync function handleAction(action: ModalAction): Promise<void> {\n if (!action.handler) return;\n\n await action.handler();\n}\n\nfunction onDialogKeydown(e: KeyboardEvent): void {\n if (props.actions.length === 0) return;\n\n if (e.key === 'Escape') {\n if (props.persistent) return;\n\n const cancelAction = findCancelAction();\n\n if (!cancelAction) return;\n\n e.preventDefault();\n e.stopPropagation();\n handleAction(cancelAction);\n\n return;\n }\n\n if (e.key === 'Enter' && !e.shiftKey && !e.ctrlKey && !e.altKey) {\n if (!props.enterToConfirm) return;\n\n const target = e.target as HTMLElement;\n\n if (isInteractiveElement(target)) return;\n\n const primaryAction = findPrimaryAction();\n\n if (!primaryAction) return;\n\n e.preventDefault();\n e.stopPropagation();\n handleAction(primaryAction);\n }\n}\n\n</script>\n\n<style scoped>\n.modal-title {\n word-break: break-word;\n white-space: normal;\n}\n</style>\n\n<!-- Vuetify renders overlays as siblings at root; adjust z-index so v-select/v-menu popups inside this dialog appear above the dialog overlay -->\n<style>\n.v-overlay-container .v-menu > .v-overlay__content,\n.v-overlay-container .v-select__content,\n.v-overlay-container .v-autocomplete__content {\n z-index: 2500;\n}\n</style>\n"],"names":["props","__props","emit","__emit","theme","useTheme","isOpen","computed","val","dialogThemeClass","dialogContentClass","findCancelAction","a","findPrimaryAction","isInteractiveElement","target","getDefaultVariant","color","handleAction","action","onDialogKeydown","cancelAction","primaryAction","_createBlock","_component_v_dialog","$event","_createVNode","_component_v_card","_component_v_card_title","_component_v_icon","_createElementVNode","_component_v_card_text","_renderSlot","_ctx","_component_v_card_actions","_component_v_spacer","_openBlock","_createElementBlock","_Fragment","_renderList","index","_component_v_btn","_createTextVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;AAsEA,UAAMA,IAAQC,GAYRC,IAAOC,GAIPC,IAAQC,EAAA,GAERC,IAASC,EAAS;AAAA,MACtB,KAAK,MAAMP,EAAM;AAAA,MACjB,KAAK,CAACQ,MAAQN,EAAK,qBAAqBM,CAAG;AAAA,IAAA,CAC5C,GAEKC,IAAmBF,EAAS,MAAM,YAAYH,EAAM,OAAO,KAAK,KAAK,EAAE,GAEvEM,IAAqBH,EAAS,MAC7BP,EAAM,eAEJ,GAAGS,EAAiB,KAAK,IAAIT,EAAM,YAAY,KAFtBS,EAAiB,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 @@
|
|
|
1
|
+
import { ref as f, computed as n } from "vue";
|
|
2
|
+
import { b as v, a as x, g as W, c as j, d as B, e as F, i as L } from "../utils/date-BCG-p19e.js";
|
|
3
|
+
function C(Y) {
|
|
4
|
+
const { selected: d, min: m, max: h, locale: c } = Y, y = v(d.value) ?? v(x()), t = f("days"), a = f(y.year), u = f(y.month), o = n(() => t.value === "days"), g = n(() => t.value === "months"), I = n(() => t.value === "years"), M = n(() => W(c.value)), N = n(() => j(c.value)), V = n(() => B(a.value, u.value)), p = n(() => F(m.value, h.value)), $ = n(() => {
|
|
5
|
+
const e = M.value[u.value - 1];
|
|
6
|
+
return c.value === "en" ? `${e} ${a.value}` : `${e} de ${a.value}`;
|
|
7
|
+
}), b = n(() => o.value ? $.value : String(a.value));
|
|
8
|
+
function l(e) {
|
|
9
|
+
const s = p.value, i = s[0], r = s[s.length - 1];
|
|
10
|
+
return e < i ? i : e > r ? r : e;
|
|
11
|
+
}
|
|
12
|
+
function w(e) {
|
|
13
|
+
const s = u.value - 1 + e, i = Math.floor(s / 12), r = (s % 12 + 12) % 12;
|
|
14
|
+
a.value = l(a.value + i), u.value = r + 1;
|
|
15
|
+
}
|
|
16
|
+
function k() {
|
|
17
|
+
if (o.value) {
|
|
18
|
+
w(-1);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
a.value = l(a.value - 1);
|
|
22
|
+
}
|
|
23
|
+
function D() {
|
|
24
|
+
if (o.value) {
|
|
25
|
+
w(1);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
a.value = l(a.value + 1);
|
|
29
|
+
}
|
|
30
|
+
function T() {
|
|
31
|
+
if (o.value) {
|
|
32
|
+
t.value = "months";
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (g.value) {
|
|
36
|
+
t.value = "years";
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
t.value = "months";
|
|
40
|
+
}
|
|
41
|
+
function z(e) {
|
|
42
|
+
u.value = e, t.value = "days";
|
|
43
|
+
}
|
|
44
|
+
function P(e) {
|
|
45
|
+
a.value = l(e), t.value = "months";
|
|
46
|
+
}
|
|
47
|
+
function R(e) {
|
|
48
|
+
return !L(e, m.value, h.value);
|
|
49
|
+
}
|
|
50
|
+
function S() {
|
|
51
|
+
const e = v(d.value) ?? v(x());
|
|
52
|
+
a.value = e.year, u.value = e.month, t.value = "days";
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
activeView: t,
|
|
56
|
+
focusedYear: a,
|
|
57
|
+
focusedMonth: u,
|
|
58
|
+
isDaysView: o,
|
|
59
|
+
isMonthsView: g,
|
|
60
|
+
isYearsView: I,
|
|
61
|
+
monthNames: M,
|
|
62
|
+
weekdayInitials: N,
|
|
63
|
+
dayMatrix: V,
|
|
64
|
+
yearList: p,
|
|
65
|
+
headerTitle: b,
|
|
66
|
+
goPrev: k,
|
|
67
|
+
goNext: D,
|
|
68
|
+
drillFromTitle: T,
|
|
69
|
+
selectMonth: z,
|
|
70
|
+
selectYear: P,
|
|
71
|
+
isDisabled: R,
|
|
72
|
+
reset: S
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
C as u
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=useDatePicker-DlPanUqu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDatePicker-DlPanUqu.js","sources":["../../../src/composables/useDatePicker.ts"],"sourcesContent":["import { ref, computed, type Ref } from 'vue';\nimport {\n buildMonthMatrix,\n getMonthNames,\n getWeekdayInitials,\n getYearRange,\n isWithinRange,\n parseIso,\n todayIso,\n type DateLocale,\n type DateParts,\n type DayCell,\n} from '@/utils/date';\n\nexport type CalendarView = 'days' | 'months' | 'years';\n\nexport interface UseDatePickerParams {\n selected: Ref<string>;\n min: Ref<string | null>;\n max: Ref<string | null>;\n locale: Ref<DateLocale>;\n}\n\nexport function useDatePicker(params: UseDatePickerParams) {\n const { selected, min, max, locale } = params;\n\n const initial = parseIso(selected.value) ?? (parseIso(todayIso()) as DateParts);\n\n const activeView = ref<CalendarView>('days');\n const focusedYear = ref(initial.year);\n const focusedMonth = ref(initial.month);\n\n const isDaysView = computed(() => activeView.value === 'days');\n const isMonthsView = computed(() => activeView.value === 'months');\n const isYearsView = computed(() => activeView.value === 'years');\n\n const monthNames = computed(() => getMonthNames(locale.value));\n const weekdayInitials = computed(() => getWeekdayInitials(locale.value));\n const dayMatrix = computed<(DayCell | null)[]>(() => buildMonthMatrix(focusedYear.value, focusedMonth.value));\n const yearList = computed(() => getYearRange(min.value, max.value));\n\n const daysTitle = computed(() => {\n const monthName = monthNames.value[focusedMonth.value - 1];\n\n return locale.value === 'en' ? `${monthName} ${focusedYear.value}` : `${monthName} de ${focusedYear.value}`;\n });\n\n const headerTitle = computed(() => (isDaysView.value ? daysTitle.value : String(focusedYear.value)));\n\n function clampYear(year: number): number {\n const years = yearList.value;\n const lower = years[0];\n const upper = years[years.length - 1];\n\n if (year < lower) return lower;\n\n if (year > upper) return upper;\n\n return year;\n }\n\n function adjustMonth(delta: number): void {\n const zeroBased = focusedMonth.value - 1 + delta;\n const yearShift = Math.floor(zeroBased / 12);\n const normalizedMonth = ((zeroBased % 12) + 12) % 12;\n\n focusedYear.value = clampYear(focusedYear.value + yearShift);\n focusedMonth.value = normalizedMonth + 1;\n }\n\n function goPrev(): void {\n if (isDaysView.value) {\n adjustMonth(-1);\n\n return;\n }\n\n focusedYear.value = clampYear(focusedYear.value - 1);\n }\n\n function goNext(): void {\n if (isDaysView.value) {\n adjustMonth(1);\n\n return;\n }\n\n focusedYear.value = clampYear(focusedYear.value + 1);\n }\n\n function drillFromTitle(): void {\n if (isDaysView.value) {\n activeView.value = 'months';\n\n return;\n }\n\n if (isMonthsView.value) {\n activeView.value = 'years';\n\n return;\n }\n\n activeView.value = 'months';\n }\n\n function selectMonth(month: number): void {\n focusedMonth.value = month;\n activeView.value = 'days';\n }\n\n function selectYear(year: number): void {\n focusedYear.value = clampYear(year);\n activeView.value = 'months';\n }\n\n function isDisabled(iso: string): boolean {\n return !isWithinRange(iso, min.value, max.value);\n }\n\n function reset(): void {\n const parts = (parseIso(selected.value) ?? parseIso(todayIso())) as DateParts;\n\n focusedYear.value = parts.year;\n focusedMonth.value = parts.month;\n activeView.value = 'days';\n }\n\n return {\n activeView,\n focusedYear,\n focusedMonth,\n isDaysView,\n isMonthsView,\n isYearsView,\n monthNames,\n weekdayInitials,\n dayMatrix,\n yearList,\n headerTitle,\n goPrev,\n goNext,\n drillFromTitle,\n selectMonth,\n selectYear,\n isDisabled,\n reset,\n };\n}\n"],"names":["useDatePicker","params","selected","min","max","locale","initial","parseIso","todayIso","activeView","ref","focusedYear","focusedMonth","isDaysView","computed","isMonthsView","isYearsView","monthNames","getMonthNames","weekdayInitials","getWeekdayInitials","dayMatrix","buildMonthMatrix","yearList","getYearRange","daysTitle","monthName","headerTitle","clampYear","year","years","lower","upper","adjustMonth","delta","zeroBased","yearShift","normalizedMonth","goPrev","goNext","drillFromTitle","selectMonth","month","selectYear","isDisabled","iso","isWithinRange","reset","parts"],"mappings":";;AAuBO,SAASA,EAAcC,GAA6B;AACzD,QAAM,EAAE,UAAAC,GAAU,KAAAC,GAAK,KAAAC,GAAK,QAAAC,MAAWJ,GAEjCK,IAAUC,EAASL,EAAS,KAAK,KAAMK,EAASC,GAAU,GAE1DC,IAAaC,EAAkB,MAAM,GACrCC,IAAcD,EAAIJ,EAAQ,IAAI,GAC9BM,IAAeF,EAAIJ,EAAQ,KAAK,GAEhCO,IAAaC,EAAS,MAAML,EAAW,UAAU,MAAM,GACvDM,IAAeD,EAAS,MAAML,EAAW,UAAU,QAAQ,GAC3DO,IAAcF,EAAS,MAAML,EAAW,UAAU,OAAO,GAEzDQ,IAAaH,EAAS,MAAMI,EAAcb,EAAO,KAAK,CAAC,GACvDc,IAAkBL,EAAS,MAAMM,EAAmBf,EAAO,KAAK,CAAC,GACjEgB,IAAYP,EAA6B,MAAMQ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ACF;AAEA,QAAIM,EAAa,OAAO;AACtB,MAAAN,EAAW,QAAQ;AAEnB;AAAA,IACF;AAEA,IAAAA,EAAW,QAAQ;AAAA,EACrB;AAEA,WAASgC,EAAYC,GAAqB;AACxC,IAAA9B,EAAa,QAAQ8B,GACrBjC,EAAW,QAAQ;AAAA,EACrB;AAEA,WAASkC,EAAWd,GAAoB;AACtC,IAAAlB,EAAY,QAAQiB,EAAUC,CAAI,GAClCpB,EAAW,QAAQ;AAAA,EACrB;AAEA,WAASmC,EAAWC,GAAsB;AACxC,WAAO,CAACC,EAAcD,GAAK1C,EAAI,OAAOC,EAAI,KAAK;AAAA,EACjD;AAEA,WAAS2C,IAAc;AACrB,UAAMC,IAASzC,EAASL,EAAS,KAAK,KAAKK,EAASC,GAAU;AAE9D,IAAAG,EAAY,QAAQqC,EAAM,MAC1BpC,EAAa,QAAQoC,EAAM,OAC3BvC,EAAW,QAAQ;AAAA,EACrB;AAEA,SAAO;AAAA,IACL,YAAAA;AAAA,IACA,aAAAE;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAE;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAE;AAAA,IACA,WAAAE;AAAA,IACA,UAAAE;AAAA,IACA,aAAAI;AAAA,IACA,QAAAW;AAAA,IACA,QAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAE;AAAA,IACA,YAAAC;AAAA,IACA,OAAAG;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { _ as o } from "./components/FzConfigProvider-X6sXT-LE.js";
|
|
2
|
+
import { _ as m } from "./components/buttons-FzIconToolTip-D_cBN1TN.js";
|
|
3
|
+
import { F as r } from "./components/modals-FzModalBase-OltWGin-.js";
|
|
4
|
+
import { _ as i } from "./components/messages-FzConfirmDialog-C3KyhNp5.js";
|
|
5
|
+
import { F as a } from "./components/messages-FzCustomConfirmDialog-MMylgbvn.js";
|
|
6
|
+
import { F as s } from "./components/messages-FzFloatingNotify-DU8K95A2.js";
|
|
7
|
+
import { F as f } from "./components/layout-FzLoadingOverlay-DTejZcvu.js";
|
|
8
|
+
import { F as t } from "./components/inputs-FzMoneyField-C8nCfRgx.js";
|
|
9
|
+
import { _ } from "./components/inputs-FzEmailField-CujT-RJo.js";
|
|
10
|
+
import { F as e } from "./components/inputs-FzNumberField-BoJ_kxJg.js";
|
|
11
|
+
import { _ as F } from "./components/inputs-FzPhoneField-B8Mk05Hd.js";
|
|
12
|
+
import { _ as n } from "./components/inputs-FzZipCodeField-B7fHUkXJ.js";
|
|
13
|
+
import { _ as p } from "./components/inputs-datepicker-FzDatePicker-FDVslsba.js";
|
|
14
|
+
import { _ as l } from "./components/inputs-FzFullAddress-VTqqGmqm.js";
|
|
15
|
+
const T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
FzConfigProvider: o,
|
|
18
|
+
FzConfirmDialog: i,
|
|
19
|
+
FzCustomConfirmDialog: a,
|
|
20
|
+
FzDatePicker: p,
|
|
21
|
+
FzEmailField: _,
|
|
22
|
+
FzFloatingNotify: s,
|
|
23
|
+
FzFullAddress: l,
|
|
24
|
+
FzIconToolTip: m,
|
|
25
|
+
FzLoadingOverlay: f,
|
|
26
|
+
FzModalBase: r,
|
|
27
|
+
FzMoneyField: t,
|
|
28
|
+
FzNumberField: e,
|
|
29
|
+
FzPhoneField: F,
|
|
30
|
+
FzZipCodeField: n
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
|
+
export {
|
|
33
|
+
T as c
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index-CykPyQ3c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CykPyQ3c.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const b = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], A = 42, N = 1900, h = 2100, M = {
|
|
2
|
+
"pt-BR": [
|
|
3
|
+
"Janeiro",
|
|
4
|
+
"Fevereiro",
|
|
5
|
+
"Março",
|
|
6
|
+
"Abril",
|
|
7
|
+
"Maio",
|
|
8
|
+
"Junho",
|
|
9
|
+
"Julho",
|
|
10
|
+
"Agosto",
|
|
11
|
+
"Setembro",
|
|
12
|
+
"Outubro",
|
|
13
|
+
"Novembro",
|
|
14
|
+
"Dezembro"
|
|
15
|
+
],
|
|
16
|
+
en: [
|
|
17
|
+
"January",
|
|
18
|
+
"February",
|
|
19
|
+
"March",
|
|
20
|
+
"April",
|
|
21
|
+
"May",
|
|
22
|
+
"June",
|
|
23
|
+
"July",
|
|
24
|
+
"August",
|
|
25
|
+
"September",
|
|
26
|
+
"October",
|
|
27
|
+
"November",
|
|
28
|
+
"December"
|
|
29
|
+
]
|
|
30
|
+
}, D = {
|
|
31
|
+
"pt-BR": ["D", "S", "T", "Q", "Q", "S", "S"],
|
|
32
|
+
en: ["S", "M", "T", "W", "T", "F", "S"]
|
|
33
|
+
};
|
|
34
|
+
function o(t, n) {
|
|
35
|
+
return String(t).padStart(n, "0");
|
|
36
|
+
}
|
|
37
|
+
function I(t) {
|
|
38
|
+
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
|
|
39
|
+
}
|
|
40
|
+
function m(t, n) {
|
|
41
|
+
return n === 2 && I(t) ? 29 : b[n - 1];
|
|
42
|
+
}
|
|
43
|
+
function y(t, n, r) {
|
|
44
|
+
return !(!Number.isInteger(t) || !Number.isInteger(n) || !Number.isInteger(r) || n < 1 || n > 12 || r < 1 || r > 9999 || t < 1 || t > m(r, n));
|
|
45
|
+
}
|
|
46
|
+
function f(t) {
|
|
47
|
+
return `${o(t.year, 4)}-${o(t.month, 2)}-${o(t.day, 2)}`;
|
|
48
|
+
}
|
|
49
|
+
function s(t) {
|
|
50
|
+
const n = /^(\d{4})-(\d{2})-(\d{2})$/.exec(t);
|
|
51
|
+
if (!n) return null;
|
|
52
|
+
const r = Number(n[1]), e = Number(n[2]), u = Number(n[3]);
|
|
53
|
+
return y(u, e, r) ? { day: u, month: e, year: r } : null;
|
|
54
|
+
}
|
|
55
|
+
function p(t, n) {
|
|
56
|
+
if (n === "yyyy-mm-dd") return s(t);
|
|
57
|
+
const r = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);
|
|
58
|
+
if (!r) return null;
|
|
59
|
+
const e = Number(r[1]), u = Number(r[2]), a = Number(r[3]);
|
|
60
|
+
return y(e, u, a) ? { day: e, month: u, year: a } : null;
|
|
61
|
+
}
|
|
62
|
+
function _(t, n) {
|
|
63
|
+
const r = s(t);
|
|
64
|
+
return r ? n === "yyyy-mm-dd" ? f(r) : `${o(r.day, 2)}/${o(r.month, 2)}/${o(r.year, 4)}` : "";
|
|
65
|
+
}
|
|
66
|
+
function E(t) {
|
|
67
|
+
return t === "yyyy-mm-dd" ? "####-##-##" : "##/##/####";
|
|
68
|
+
}
|
|
69
|
+
function Y(t, n, r) {
|
|
70
|
+
return !(n && t < n || r && t > r);
|
|
71
|
+
}
|
|
72
|
+
function F() {
|
|
73
|
+
const t = /* @__PURE__ */ new Date();
|
|
74
|
+
return f({ day: t.getDate(), month: t.getMonth() + 1, year: t.getFullYear() });
|
|
75
|
+
}
|
|
76
|
+
function L(t, n) {
|
|
77
|
+
const r = new Date(t, n - 1, 1).getDay(), e = m(t, n), u = Array.from({ length: r }, () => null), a = Array.from({ length: e }, (S, g) => {
|
|
78
|
+
const l = g + 1;
|
|
79
|
+
return { day: l, iso: f({ day: l, month: n, year: t }) };
|
|
80
|
+
}), i = [...u, ...a], c = Math.max(0, A - i.length), d = Array.from({ length: c }, () => null);
|
|
81
|
+
return [...i, ...d];
|
|
82
|
+
}
|
|
83
|
+
function R(t) {
|
|
84
|
+
return [...M[t]];
|
|
85
|
+
}
|
|
86
|
+
function T(t) {
|
|
87
|
+
return [...D[t]];
|
|
88
|
+
}
|
|
89
|
+
function $(t, n) {
|
|
90
|
+
const r = s(t ?? "")?.year ?? N, e = s(n ?? "")?.year ?? h, u = Math.min(r, e), a = Math.max(r, e);
|
|
91
|
+
return Array.from({ length: a - u + 1 }, (i, c) => u + c);
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
F as a,
|
|
95
|
+
s as b,
|
|
96
|
+
T as c,
|
|
97
|
+
L as d,
|
|
98
|
+
$ as e,
|
|
99
|
+
_ as f,
|
|
100
|
+
R as g,
|
|
101
|
+
Y as i,
|
|
102
|
+
E as m,
|
|
103
|
+
p,
|
|
104
|
+
f as t
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=date-BCG-p19e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-BCG-p19e.js","sources":["../../../src/utils/date.ts"],"sourcesContent":["export type DateFormat = 'dd/mm/yyyy' | 'yyyy-mm-dd';\n\nexport type DateLocale = 'pt-BR' | 'en';\n\nexport interface DateParts {\n day: number;\n month: number;\n year: number;\n}\n\nexport interface DayCell {\n day: number;\n iso: string;\n}\n\nconst DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\nconst CALENDAR_CELLS = 42;\n\nexport const DEFAULT_MIN_YEAR = 1900;\n\nexport const DEFAULT_MAX_YEAR = 2100;\n\nconst MONTH_NAMES: Record<DateLocale, string[]> = {\n 'pt-BR': [\n 'Janeiro',\n 'Fevereiro',\n 'Março',\n 'Abril',\n 'Maio',\n 'Junho',\n 'Julho',\n 'Agosto',\n 'Setembro',\n 'Outubro',\n 'Novembro',\n 'Dezembro',\n ],\n en: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n};\n\nconst WEEKDAY_INITIALS: Record<DateLocale, string[]> = {\n 'pt-BR': ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],\n en: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n};\n\nfunction pad(value: number, length: number): string {\n return String(value).padStart(length, '0');\n}\n\nexport function isLeapYear(year: number): boolean {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n}\n\nexport function daysInMonth(year: number, month: number): number {\n if (month === 2 && isLeapYear(year)) return 29;\n\n return DAYS_IN_MONTH[month - 1];\n}\n\nexport function isRealDate(day: number, month: number, year: number): boolean {\n if (!Number.isInteger(day) || !Number.isInteger(month) || !Number.isInteger(year)) return false;\n\n if (month < 1 || month > 12) return false;\n\n if (year < 1 || year > 9999) return false;\n\n if (day < 1 || day > daysInMonth(year, month)) return false;\n\n return true;\n}\n\nexport function toIso(parts: DateParts): string {\n return `${pad(parts.year, 4)}-${pad(parts.month, 2)}-${pad(parts.day, 2)}`;\n}\n\nexport function parseIso(iso: string): DateParts | null {\n const match = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(iso);\n\n if (!match) return null;\n\n const year = Number(match[1]);\n const month = Number(match[2]);\n const day = Number(match[3]);\n\n if (!isRealDate(day, month, year)) return null;\n\n return { day, month, year };\n}\n\nexport function parseDisplay(value: string, format: DateFormat): DateParts | null {\n if (format === 'yyyy-mm-dd') return parseIso(value);\n\n const match = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(value);\n\n if (!match) return null;\n\n const day = Number(match[1]);\n const month = Number(match[2]);\n const year = Number(match[3]);\n\n if (!isRealDate(day, month, year)) return null;\n\n return { day, month, year };\n}\n\nexport function formatDisplay(iso: string, format: DateFormat): string {\n const parts = parseIso(iso);\n\n if (!parts) return '';\n\n if (format === 'yyyy-mm-dd') return toIso(parts);\n\n return `${pad(parts.day, 2)}/${pad(parts.month, 2)}/${pad(parts.year, 4)}`;\n}\n\nexport function maskForFormat(format: DateFormat): string {\n return format === 'yyyy-mm-dd' ? '####-##-##' : '##/##/####';\n}\n\nexport function isWithinRange(iso: string, min: string | null, max: string | null): boolean {\n if (min && iso < min) return false;\n\n if (max && iso > max) return false;\n\n return true;\n}\n\nexport function todayIso(): string {\n const now = new Date();\n\n return toIso({ day: now.getDate(), month: now.getMonth() + 1, year: now.getFullYear() });\n}\n\nexport function buildMonthMatrix(year: number, month: number): (DayCell | null)[] {\n const firstWeekday = new Date(year, month - 1, 1).getDay();\n const total = daysInMonth(year, month);\n\n const leading: (DayCell | null)[] = Array.from({ length: firstWeekday }, () => null);\n\n const days: (DayCell | null)[] = Array.from({ length: total }, (_unused, index) => {\n const day = index + 1;\n\n return { day, iso: toIso({ day, month, year }) };\n });\n\n const cells = [...leading, ...days];\n const trailingLength = Math.max(0, CALENDAR_CELLS - cells.length);\n const trailing: (DayCell | null)[] = Array.from({ length: trailingLength }, () => null);\n\n return [...cells, ...trailing];\n}\n\nexport function getMonthNames(locale: DateLocale): string[] {\n return [...MONTH_NAMES[locale]];\n}\n\nexport function getWeekdayInitials(locale: DateLocale): string[] {\n return [...WEEKDAY_INITIALS[locale]];\n}\n\nexport function getYearRange(min: string | null, max: string | null): number[] {\n const minYear = parseIso(min ?? '')?.year ?? DEFAULT_MIN_YEAR;\n const maxYear = parseIso(max ?? '')?.year ?? DEFAULT_MAX_YEAR;\n\n const start = Math.min(minYear, maxYear);\n const end = Math.max(minYear, maxYear);\n\n return Array.from({ length: end - start + 1 }, (_unused, index) => start + index);\n}\n"],"names":["DAYS_IN_MONTH","CALENDAR_CELLS","DEFAULT_MIN_YEAR","DEFAULT_MAX_YEAR","MONTH_NAMES","WEEKDAY_INITIALS","pad","value","length","isLeapYear","year","daysInMonth","month","isRealDate","day","toIso","parts","parseIso","iso","match","parseDisplay","format","formatDisplay","maskForFormat","isWithinRange","min","max","todayIso","now","buildMonthMatrix","firstWeekday","total","leading","days","_unused","index","cells","trailingLength","trailing","getMonthNames","locale","getWeekdayInitials","getYearRange","minYear","maxYear","start","end"],"mappings":"AAeA,MAAMA,IAAgB,CAAC,IAAI,IAAI,IA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E,IAAMD,IAAQ,EAAA,GAAK,CAACX,GAASC,MAAUU,IAAQV,CAAK;AAClF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-DV6li0y5.js","sources":["../../../src/utils/types.ts"],"sourcesContent":["export interface ConfirmOptions {\n persistent?: boolean;\n confirmText?: string;\n cancelText?: string;\n confirmColor?: string;\n cancelColor?: string;\n}\n\nexport interface ConfirmComponentRef {\n confirmDialog: (title: string, message: string, options?: ConfirmOptions) => Promise<boolean>;\n}\n\nexport type NotifyType = 'success' | 'error' | 'warning' | 'info';\n\nexport interface NotifyOptions {\n type: NotifyType;\n title: string;\n message?: string;\n duration?: number;\n}\n\nexport const NOTIFY_DURATION = 3000;\n\nexport const API_TIMEOUT = 30000;\n\nexport type TextFieldVariant = 'outlined' | 'filled' | 'plain' | 'solo' | 'solo-filled' | 'solo-inverted' | 'underlined';\n"],"names":["NOTIFY_DURATION","API_TIMEOUT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types-DV6li0y5.js","sources":["../../../src/utils/types.ts"],"sourcesContent":["export interface ConfirmOptions {\n persistent?: boolean;\n confirmText?: string;\n cancelText?: string;\n confirmColor?: string;\n cancelColor?: string;\n enterToConfirm?: boolean;\n}\n\nexport interface ConfirmComponentRef {\n confirmDialog: (title: string, message: string, options?: ConfirmOptions) => Promise<boolean>;\n}\n\nexport type NotifyType = 'success' | 'error' | 'warning' | 'info';\n\nexport interface NotifyOptions {\n type: NotifyType;\n title: string;\n message?: string;\n duration?: number;\n}\n\nexport const NOTIFY_DURATION = 3000;\n\nexport const API_TIMEOUT = 30000;\n\nexport type TextFieldVariant = 'outlined' | 'filled' | 'plain' | 'solo' | 'solo-filled' | 'solo-inverted' | 'underlined';\n"],"names":["NOTIFY_DURATION","API_TIMEOUT"],"mappings":"AAsBO,MAAMA,IAAkB,KAElBC,IAAc;"}
|
|
@@ -10,5 +10,6 @@ export { default as FzEmailField } from './inputs/FzEmailField.vue';
|
|
|
10
10
|
export { default as FzNumberField } from './inputs/FzNumberField.vue';
|
|
11
11
|
export { default as FzPhoneField } from './inputs/FzPhoneField.vue';
|
|
12
12
|
export { default as FzZipCodeField, type ZipCodeResponse } from './inputs/FzZipCodeField.vue';
|
|
13
|
+
export { default as FzDatePicker } from './inputs/datepicker/FzDatePicker.vue';
|
|
13
14
|
export { default as FzFullAddress, type Address, type AddressLabels } from './inputs/FzFullAddress.vue';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAExF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAExF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { _ as e } from "../chunks/components/FzConfigProvider-X6sXT-LE.js";
|
|
2
2
|
import { _ as a } from "../chunks/components/buttons-FzIconToolTip-D_cBN1TN.js";
|
|
3
|
-
import { F as f } from "../chunks/components/modals-FzModalBase-
|
|
4
|
-
import { _ as s } from "../chunks/components/messages-FzConfirmDialog-
|
|
5
|
-
import { F as p } from "../chunks/components/messages-FzCustomConfirmDialog-
|
|
6
|
-
import { F as x } from "../chunks/components/messages-FzFloatingNotify-
|
|
7
|
-
import { F as d } from "../chunks/components/layout-FzLoadingOverlay-
|
|
8
|
-
import { F as _ } from "../chunks/components/inputs-FzMoneyField-
|
|
3
|
+
import { F as f } from "../chunks/components/modals-FzModalBase-OltWGin-.js";
|
|
4
|
+
import { _ as s } from "../chunks/components/messages-FzConfirmDialog-C3KyhNp5.js";
|
|
5
|
+
import { F as p } from "../chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js";
|
|
6
|
+
import { F as x } from "../chunks/components/messages-FzFloatingNotify-DU8K95A2.js";
|
|
7
|
+
import { F as d } from "../chunks/components/layout-FzLoadingOverlay-DTejZcvu.js";
|
|
8
|
+
import { F as _ } from "../chunks/components/inputs-FzMoneyField-C8nCfRgx.js";
|
|
9
9
|
import { _ as C } from "../chunks/components/inputs-FzEmailField-CujT-RJo.js";
|
|
10
|
-
import { F as y } from "../chunks/components/inputs-FzNumberField-
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
10
|
+
import { F as y } from "../chunks/components/inputs-FzNumberField-BoJ_kxJg.js";
|
|
11
|
+
import { _ as P } from "../chunks/components/inputs-FzPhoneField-B8Mk05Hd.js";
|
|
12
|
+
import { _ as v } from "../chunks/components/inputs-FzZipCodeField-B7fHUkXJ.js";
|
|
13
|
+
import { _ as N } from "../chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js";
|
|
14
|
+
import { _ as b } from "../chunks/components/inputs-FzFullAddress-VTqqGmqm.js";
|
|
14
15
|
export {
|
|
15
16
|
e as FzConfigProvider,
|
|
16
17
|
s as FzConfirmDialog,
|
|
17
18
|
p as FzCustomConfirmDialog,
|
|
19
|
+
N as FzDatePicker,
|
|
18
20
|
C as FzEmailField,
|
|
19
21
|
x as FzFloatingNotify,
|
|
20
|
-
|
|
22
|
+
b as FzFullAddress,
|
|
21
23
|
a as FzIconToolTip,
|
|
22
24
|
d as FzLoadingOverlay,
|
|
23
25
|
f as FzModalBase,
|
|
24
26
|
_ as FzMoneyField,
|
|
25
27
|
y as FzNumberField,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
P as FzPhoneField,
|
|
29
|
+
v as FzZipCodeField
|
|
28
30
|
};
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FzFullAddress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/FzFullAddress.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FzFullAddress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/FzFullAddress.vue"],"names":[],"mappings":"AAuMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAItD,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B;AAuYD,QAAA,MAAM,YAAY;;;;;cA3YL,OAAO;gBADL,OAAO,CAAC,OAAO,CAAC;aAInB,gBAAgB;YADjB,aAAa;oBADL,OAAO;6EA8YxB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type DateFormat, type DateLocale } from '@/utils/date';
|
|
2
|
+
import type { TextFieldVariant } from '@/utils/types';
|
|
3
|
+
type ValidationRule = (value: string) => boolean | string;
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
format?: DateFormat;
|
|
7
|
+
locale?: DateLocale;
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
rules?: ValidationRule[];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
hint?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
validateOnBlur?: boolean;
|
|
15
|
+
requiredMessage?: string;
|
|
16
|
+
invalidMessage?: string;
|
|
17
|
+
variant?: TextFieldVariant;
|
|
18
|
+
min?: string | null;
|
|
19
|
+
max?: string | null;
|
|
20
|
+
icon?: string;
|
|
21
|
+
todayLabel?: string;
|
|
22
|
+
width?: string | number;
|
|
23
|
+
height?: string | number;
|
|
24
|
+
}
|
|
25
|
+
declare var __VLS_11: {}, __VLS_22: {};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
prepend?: (props: typeof __VLS_11) => any;
|
|
28
|
+
} & {
|
|
29
|
+
append?: (props: typeof __VLS_22) => any;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
"update:modelValue": (value: string) => any;
|
|
33
|
+
isValid: (value: boolean) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
36
|
+
onIsValid?: ((value: boolean) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
icon: string;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
modelValue: string;
|
|
41
|
+
height: string | number;
|
|
42
|
+
width: string | number;
|
|
43
|
+
label: string;
|
|
44
|
+
variant: TextFieldVariant;
|
|
45
|
+
required: boolean;
|
|
46
|
+
rules: ValidationRule[];
|
|
47
|
+
hint: string;
|
|
48
|
+
locale: DateLocale;
|
|
49
|
+
max: string | null;
|
|
50
|
+
min: string | null;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
validateOnBlur: boolean;
|
|
53
|
+
requiredMessage: string;
|
|
54
|
+
invalidMessage: string;
|
|
55
|
+
todayLabel: string;
|
|
56
|
+
format: DateFormat;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=FzDatePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FzDatePicker.vue.d.ts","sourceRoot":"","sources":["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C,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;UApSP,MAAM;cATF,OAAO;gBANL,MAAM;YAkBV,MAAM,GAAG,MAAM;WADhB,MAAM,GAAG,MAAM;WAdf,MAAM;aASJ,gBAAgB;cAJf,OAAO;WAHV,cAAc,EAAE;UAEjB,MAAM;YALJ,UAAU;SAYb,MAAM,GAAG,IAAI;SADb,MAAM,GAAG,IAAI;iBATL,MAAM;oBAKH,OAAO;qBACN,MAAM;oBACP,MAAM;gBAKV,MAAM;YAfV,UAAU;6EAsTnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DateLocale } from '@/utils/date';
|
|
2
|
+
interface Props {
|
|
3
|
+
open: boolean;
|
|
4
|
+
selected?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
min?: string | null;
|
|
8
|
+
max?: string | null;
|
|
9
|
+
locale?: DateLocale;
|
|
10
|
+
width?: string | number;
|
|
11
|
+
height?: string | number;
|
|
12
|
+
todayLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
select: (iso: string) => any;
|
|
16
|
+
"update:open": (value: boolean) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onSelect?: ((iso: string) => any) | undefined;
|
|
19
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
icon: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
height: string | number;
|
|
24
|
+
width: string | number;
|
|
25
|
+
locale: DateLocale;
|
|
26
|
+
max: string | null;
|
|
27
|
+
min: string | null;
|
|
28
|
+
selected: string;
|
|
29
|
+
todayLabel: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
//# sourceMappingURL=FzDatePickerCalendar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FzDatePickerCalendar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/datepicker/FzDatePickerCalendar.vue"],"names":[],"mappings":"AAyKA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAKzD,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAkZD,QAAA,MAAM,YAAY;;;;;;;UA1ZT,MAAM;cACF,OAAO;YAKT,MAAM,GAAG,MAAM;WADhB,MAAM,GAAG,MAAM;YADd,UAAU;SADb,MAAM,GAAG,IAAI;SADb,MAAM,GAAG,IAAI;cAHR,MAAM;gBAQJ,MAAM;6EAuZnB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DayCell } from '@/utils/date';
|
|
2
|
+
interface Props {
|
|
3
|
+
weekdayInitials: string[];
|
|
4
|
+
dayMatrix: (DayCell | null)[];
|
|
5
|
+
selectedIso: string;
|
|
6
|
+
todayIso: string;
|
|
7
|
+
todayLabel: string;
|
|
8
|
+
isDisabled: (iso: string) => boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
select: (iso: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
onSelect?: ((iso: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=FzDatePickerDaysView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FzDatePickerDaysView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/datepicker/FzDatePickerDaysView.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,UAAU,KAAK;IACb,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACtC;AAoLD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|