@forizi-tecnologia/ui 0.0.7 → 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-CcADw89-.js → messages-FzCustomConfirmDialog-MMylgbvn.js} +18 -18
- 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-CBZ5Ea3Z.js → modals-FzModalBase-OltWGin-.js} +2 -2
- package/dist/chunks/components/{modals-FzModalBase-CBZ5Ea3Z.js.map → modals-FzModalBase-OltWGin-.js.map} +1 -1
- 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/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/FzFloatingNotify.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/package.json +1 -1
- package/dist/chunks/components/messages-FzConfirmDialog-BvnTIYZm.js +0 -18
- package/dist/chunks/components/messages-FzConfirmDialog-BvnTIYZm.js.map +0 -1
- package/dist/chunks/components/messages-FzCustomConfirmDialog-CcADw89-.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/index-B-0CLj_d.js +0 -33
- package/dist/chunks/index-B-0CLj_d.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { globalsPlugin as
|
|
1
|
+
import { c as t } from "./chunks/index-CykPyQ3c.js";
|
|
2
|
+
import { globalsPlugin as s } from "./plugins/index.js";
|
|
3
3
|
import { e as a } from "./chunks/utils/vuetify-check-DRI6ZYnO.js";
|
|
4
4
|
import { d as S } from "./chunks/utils/vuetify-check-DRI6ZYnO.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { l as
|
|
7
|
-
import { c as
|
|
8
|
-
import { a as
|
|
5
|
+
import { n as k, u as B } from "./chunks/utils/notify-CE_gbk11.js";
|
|
6
|
+
import { l as R, u as U } from "./chunks/utils/loading-dXhCGa6R.js";
|
|
7
|
+
import { c as h, u as v } from "./chunks/utils/confirm-DiGEPjua.js";
|
|
8
|
+
import { a as G, c as Z } from "./chunks/utils/api-N1Cju-89.js";
|
|
9
9
|
import { A as q, N as H } from "./chunks/utils/types-DV6li0y5.js";
|
|
10
10
|
import { u as Q } from "./chunks/composables/useFzDefaults-BAOcJYaF.js";
|
|
11
11
|
import { u as X } from "./chunks/composables/useGlobals-AagqYKoP.js";
|
|
12
12
|
import { u as oo } from "./chunks/composables/useBreakpoint-DnFIVluv.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { N as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { _ as Fo } from "./chunks/components/
|
|
19
|
-
import { _ as co } from "./chunks/components/
|
|
20
|
-
import { _ as go } from "./chunks/components/inputs-
|
|
21
|
-
import { _ as Co } from "./chunks/components/inputs-
|
|
22
|
-
import { _ as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { F as
|
|
26
|
-
import { F as
|
|
27
|
-
import { F as
|
|
28
|
-
import { F as Mo } from "./chunks/components/
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
import { u as ro } from "./chunks/composables/useLoading-Cu1i2QIr.js";
|
|
14
|
+
import { N as so, c as ao, u as io } from "./chunks/composables/useNumericInput-DGw52-Ds.js";
|
|
15
|
+
import { u as mo } from "./chunks/composables/useDatePicker-DlPanUqu.js";
|
|
16
|
+
import { F as po, _ as uo } from "./chunks/components/FzConfigProvider-X6sXT-LE.js";
|
|
17
|
+
import { VTooltip as i, VTextField as f, VSpacer as m, VSelect as n, VRow as p, VProgressCircular as u, VMenu as l, VIcon as F, VDialog as x, VCol as c, VCardTitle as d, VCardText as V, VCardActions as g, VCard as z, VBtn as C, VAlert as _ } from "vuetify/components";
|
|
18
|
+
import { _ as Fo } from "./chunks/components/buttons-FzIconToolTip-D_cBN1TN.js";
|
|
19
|
+
import { _ as co } from "./chunks/components/messages-FzConfirmDialog-C3KyhNp5.js";
|
|
20
|
+
import { _ as go } from "./chunks/components/inputs-FzEmailField-CujT-RJo.js";
|
|
21
|
+
import { _ as Co } from "./chunks/components/inputs-FzPhoneField-B8Mk05Hd.js";
|
|
22
|
+
import { _ as To } from "./chunks/components/inputs-FzZipCodeField-B7fHUkXJ.js";
|
|
23
|
+
import { _ as Ao } from "./chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js";
|
|
24
|
+
import { _ as yo } from "./chunks/components/inputs-FzFullAddress-VTqqGmqm.js";
|
|
25
|
+
import { F as Do } from "./chunks/components/modals-FzModalBase-OltWGin-.js";
|
|
26
|
+
import { F as Eo } from "./chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js";
|
|
27
|
+
import { F as Oo } from "./chunks/components/messages-FzFloatingNotify-DU8K95A2.js";
|
|
28
|
+
import { F as Mo } from "./chunks/components/layout-FzLoadingOverlay-DTejZcvu.js";
|
|
29
|
+
import { F as Bo } from "./chunks/components/inputs-FzMoneyField-C8nCfRgx.js";
|
|
30
|
+
import { F as Ro } from "./chunks/components/inputs-FzNumberField-BoJ_kxJg.js";
|
|
31
|
+
const P = {
|
|
32
|
+
VAlert: _,
|
|
31
33
|
VBtn: C,
|
|
32
34
|
VCard: z,
|
|
33
35
|
VCardActions: g,
|
|
@@ -39,61 +41,63 @@ const L = {
|
|
|
39
41
|
VMenu: l,
|
|
40
42
|
VProgressCircular: u,
|
|
41
43
|
VRow: p,
|
|
42
|
-
VSelect:
|
|
43
|
-
VSpacer:
|
|
44
|
-
VTextField:
|
|
44
|
+
VSelect: n,
|
|
45
|
+
VSpacer: m,
|
|
46
|
+
VTextField: f,
|
|
45
47
|
VTooltip: i
|
|
46
|
-
},
|
|
48
|
+
}, T = t;
|
|
47
49
|
function N(o) {
|
|
48
|
-
Object.entries(
|
|
49
|
-
o.component(
|
|
50
|
+
Object.entries(T).forEach(([e, r]) => {
|
|
51
|
+
o.component(e, r);
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
54
|
function A(o) {
|
|
53
|
-
o.use(
|
|
55
|
+
o.use(s);
|
|
54
56
|
}
|
|
55
|
-
function
|
|
57
|
+
function E(o) {
|
|
56
58
|
a(o), N(o), A(o);
|
|
57
59
|
}
|
|
58
60
|
export {
|
|
59
61
|
q as API_TIMEOUT,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
Co as
|
|
74
|
-
|
|
62
|
+
po as FZ_DEFAULTS_KEY,
|
|
63
|
+
uo as FzConfigProvider,
|
|
64
|
+
co as FzConfirmDialog,
|
|
65
|
+
Eo as FzCustomConfirmDialog,
|
|
66
|
+
Ao as FzDatePicker,
|
|
67
|
+
go as FzEmailField,
|
|
68
|
+
Oo as FzFloatingNotify,
|
|
69
|
+
yo as FzFullAddress,
|
|
70
|
+
Fo as FzIconToolTip,
|
|
71
|
+
Mo as FzLoadingOverlay,
|
|
72
|
+
Do as FzModalBase,
|
|
73
|
+
Bo as FzMoneyField,
|
|
74
|
+
Ro as FzNumberField,
|
|
75
|
+
Co as FzPhoneField,
|
|
76
|
+
To as FzZipCodeField,
|
|
77
|
+
so as NAVIGATION_KEYS,
|
|
75
78
|
H as NOTIFY_DURATION,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
G as api,
|
|
80
|
+
T as components,
|
|
81
|
+
Z as configureApi,
|
|
82
|
+
h as confirm,
|
|
80
83
|
ao as createNumericKeydownHandler,
|
|
81
84
|
S as debugVuetifyInstances,
|
|
82
85
|
N as default,
|
|
83
86
|
a as ensureVuetify,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
s as globalsPlugin,
|
|
88
|
+
R as loading,
|
|
89
|
+
k as notify,
|
|
87
90
|
A as registerLibPlugins,
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
P as requiredVuetifyComponents,
|
|
92
|
+
E as setupLib,
|
|
90
93
|
oo as useBreakpoint,
|
|
91
|
-
|
|
94
|
+
v as useConfirmStore,
|
|
95
|
+
mo as useDatePicker,
|
|
92
96
|
Q as useFzDefaults,
|
|
93
97
|
X as useGlobals,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
ro as useLoading,
|
|
99
|
+
U as useLoadingRefs,
|
|
100
|
+
B as useNotifyStore,
|
|
97
101
|
io as useNumericInput
|
|
98
102
|
};
|
|
99
103
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/vuetifyComponents.ts","../src/index.ts"],"sourcesContent":["/**\n * Vuetify components required by this library.\n *\n * Use this when configuring Vuetify in the consumer project to\n * register only the components this library needs, avoiding a\n * full import of `vuetify/components`.\n *\n * @example\n * // consumer's vuetify.ts\n * import { requiredVuetifyComponents } from '@forizi/ui'\n * import { ... } from 'vuetify/components' // your own components\n *\n * export default createVuetify({\n * components: {\n * ...requiredVuetifyComponents,\n * // ...your other components\n * },\n * })\n */\nimport type { Component } from 'vue';\nimport {\n VAlert,\n VBtn,\n VCard,\n VCardActions,\n VCardText,\n VCardTitle,\n VCol,\n VDialog,\n VIcon,\n VMenu,\n VProgressCircular,\n VRow,\n VSelect,\n VSpacer,\n VTextField,\n VTooltip,\n} from 'vuetify/components';\n\nexport const requiredVuetifyComponents: Record<string, Component> = {\n VAlert,\n VBtn,\n VCard,\n VCardActions,\n VCardText,\n VCardTitle,\n VCol,\n VDialog,\n VIcon,\n VMenu,\n VProgressCircular,\n VRow,\n VSelect,\n VSpacer,\n VTextField,\n VTooltip,\n};\n","import type { App } from 'vue';\nimport * as componentExports from './components';\nimport { globalsPlugin } from './plugins';\nimport { ensureVuetify } from './utils/vuetify-check';\n\nexport const components = componentExports;\n\nexport * from './components';\n\nexport * from './utils';\n\nexport * from './composables';\n\nexport * from './constants';\n\nexport type { FzDefaults } from './types/FzDefaults';\n\nexport { globalsPlugin } from './plugins';\n\nexport { requiredVuetifyComponents } from './vuetifyComponents';\n\nexport default function registerLibComponents(app: App) {\n Object.entries(components).forEach(([name, component]) => {\n app.component(name, component);\n });\n}\n\nexport function registerLibPlugins(app: App) {\n app.use(globalsPlugin);\n}\n\nexport function setupLib(app: App) {\n ensureVuetify(app);\n\n registerLibComponents(app);\n registerLibPlugins(app);\n}\n"],"names":["requiredVuetifyComponents","VAlert","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCol","VDialog","VIcon","VMenu","VProgressCircular","VRow","VSelect","VSpacer","VTextField","VTooltip","components","componentExports","registerLibComponents","app","name","component","registerLibPlugins","globalsPlugin","setupLib","ensureVuetify"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/vuetifyComponents.ts","../src/index.ts"],"sourcesContent":["/**\n * Vuetify components required by this library.\n *\n * Use this when configuring Vuetify in the consumer project to\n * register only the components this library needs, avoiding a\n * full import of `vuetify/components`.\n *\n * @example\n * // consumer's vuetify.ts\n * import { requiredVuetifyComponents } from '@forizi/ui'\n * import { ... } from 'vuetify/components' // your own components\n *\n * export default createVuetify({\n * components: {\n * ...requiredVuetifyComponents,\n * // ...your other components\n * },\n * })\n */\nimport type { Component } from 'vue';\nimport {\n VAlert,\n VBtn,\n VCard,\n VCardActions,\n VCardText,\n VCardTitle,\n VCol,\n VDialog,\n VIcon,\n VMenu,\n VProgressCircular,\n VRow,\n VSelect,\n VSpacer,\n VTextField,\n VTooltip,\n} from 'vuetify/components';\n\nexport const requiredVuetifyComponents: Record<string, Component> = {\n VAlert,\n VBtn,\n VCard,\n VCardActions,\n VCardText,\n VCardTitle,\n VCol,\n VDialog,\n VIcon,\n VMenu,\n VProgressCircular,\n VRow,\n VSelect,\n VSpacer,\n VTextField,\n VTooltip,\n};\n","import type { App } from 'vue';\nimport * as componentExports from './components';\nimport { globalsPlugin } from './plugins';\nimport { ensureVuetify } from './utils/vuetify-check';\n\nexport const components = componentExports;\n\nexport * from './components';\n\nexport * from './utils';\n\nexport * from './composables';\n\nexport * from './constants';\n\nexport type { FzDefaults } from './types/FzDefaults';\n\nexport { globalsPlugin } from './plugins';\n\nexport { requiredVuetifyComponents } from './vuetifyComponents';\n\nexport default function registerLibComponents(app: App) {\n Object.entries(components).forEach(([name, component]) => {\n app.component(name, component);\n });\n}\n\nexport function registerLibPlugins(app: App) {\n app.use(globalsPlugin);\n}\n\nexport function setupLib(app: App) {\n ensureVuetify(app);\n\n registerLibComponents(app);\n registerLibPlugins(app);\n}\n"],"names":["requiredVuetifyComponents","VAlert","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCol","VDialog","VIcon","VMenu","VProgressCircular","VRow","VSelect","VSpacer","VTextField","VTooltip","components","componentExports","registerLibComponents","app","name","component","registerLibPlugins","globalsPlugin","setupLib","ensureVuetify"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCO,MAAMA,IAAuD;AAAA,EAClE,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AACF,GCnDaC,IAAaC;AAgB1B,SAAwBC,EAAsBC,GAAU;AACtD,SAAO,QAAQH,CAAU,EAAE,QAAQ,CAAC,CAACI,GAAMC,CAAS,MAAM;AACxD,IAAAF,EAAI,UAAUC,GAAMC,CAAS;AAAA,EAC/B,CAAC;AACH;AAEO,SAASC,EAAmBH,GAAU;AAC3C,EAAAA,EAAI,IAAII,CAAa;AACvB;AAEO,SAASC,EAASL,GAAU;AACjC,EAAAM,EAAcN,CAAG,GAEjBD,EAAsBC,CAAG,GACzBG,EAAmBH,CAAG;AACxB;"}
|
package/dist/ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-77615cf8] input{text-align:right}.modal-title[data-v-90ba442f]{word-break:break-word;white-space:normal}.v-overlay-container .v-menu>.v-overlay__content,.v-overlay-container .v-select__content,.v-overlay-container .v-autocomplete__content{z-index:2500}.custom-dialog-overlay[data-v-e7ebc1b2]{position:fixed;inset:0;background-color:#00000080;z-index:2400}.dialog-fade-enter-active[data-v-e7ebc1b2],.dialog-fade-leave-active[data-v-e7ebc1b2]{transition:opacity .2s ease}.dialog-fade-enter-from[data-v-e7ebc1b2],.dialog-fade-leave-to[data-v-e7ebc1b2]{opacity:0}.dialog-fade-enter-active .v-card[data-v-e7ebc1b2],.dialog-fade-leave-active .v-card[data-v-e7ebc1b2]{transition:transform .2s ease}.dialog-fade-enter-from .v-card[data-v-e7ebc1b2],.dialog-fade-leave-to .v-card[data-v-e7ebc1b2]{transform:scale(.9)}.floating-notify[data-v-c2162be0]{position:fixed;top:20px;right:20px;min-width:300px;max-width:500px;z-index:9999;border-radius:4px;overflow:hidden}.floating-notify[data-v-c2162be0] .v-alert--border{border-inline-start-width:0}.progress-track[data-v-c2162be0]{height:3px}.progress-fill[data-v-c2162be0]{height:100%;transition:width .1s linear}.slide-fade-enter-active[data-v-c2162be0]{transition:all .3s ease-out}.slide-fade-leave-active[data-v-c2162be0]{transition:all .3s ease-in}.slide-fade-enter-from[data-v-c2162be0],.slide-fade-leave-to[data-v-c2162be0]{transform:translate(100%);opacity:0}.loading-overlay[data-v-7110b861]{position:fixed;inset:0;background-color:#000000b3;z-index:9998}.fade-enter-active[data-v-7110b861],.fade-leave-active[data-v-7110b861]{transition:opacity .2s ease}.fade-enter-from[data-v-7110b861],.fade-leave-to[data-v-7110b861]{opacity:0}.fade-delayed-enter-active[data-v-7110b861]{transition:opacity .3s ease .1s}.fade-delayed-leave-active[data-v-7110b861]{transition:opacity .2s ease}.fade-delayed-enter-from[data-v-7110b861],.fade-delayed-leave-to[data-v-7110b861]{opacity:0}[data-v-c53749c6] input{text-align:right}[data-v-c53749c6] input[type=number]::-webkit-inner-spin-button,[data-v-c53749c6] input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}[data-v-c53749c6] input[type=number]{-moz-appearance:textfield;appearance:textfield}.fz-dp-weekdays[data-v-09e938b9],.fz-dp-days[data-v-09e938b9]{display:grid;grid-template-columns:repeat(7,1fr)}.fz-dp-days[data-v-09e938b9]{grid-auto-rows:1fr}.fz-dp-months[data-v-2810a62f]{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:8px}.fz-dp-months[data-v-2810a62f] .v-btn{width:100%;height:100%}.fz-dp-years[data-v-5d0ac3af]{scroll-snap-type:y proximity}.fz-dp-year-item[data-v-5d0ac3af]{scroll-snap-align:center}.fz-dp-trigger[data-v-35f33e79]{cursor:pointer}.fz-dp-content[data-v-35f33e79]{flex:1 1 0;min-height:0}.fz-dp-fade-enter-active[data-v-35f33e79],.fz-dp-fade-leave-active[data-v-35f33e79]{transition:opacity .15s ease}.fz-dp-fade-enter-from[data-v-35f33e79],.fz-dp-fade-leave-to[data-v-35f33e79]{opacity:0}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type DateFormat = 'dd/mm/yyyy' | 'yyyy-mm-dd';
|
|
2
|
+
export type DateLocale = 'pt-BR' | 'en';
|
|
3
|
+
export interface DateParts {
|
|
4
|
+
day: number;
|
|
5
|
+
month: number;
|
|
6
|
+
year: number;
|
|
7
|
+
}
|
|
8
|
+
export interface DayCell {
|
|
9
|
+
day: number;
|
|
10
|
+
iso: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DEFAULT_MIN_YEAR = 1900;
|
|
13
|
+
export declare const DEFAULT_MAX_YEAR = 2100;
|
|
14
|
+
export declare function isLeapYear(year: number): boolean;
|
|
15
|
+
export declare function daysInMonth(year: number, month: number): number;
|
|
16
|
+
export declare function isRealDate(day: number, month: number, year: number): boolean;
|
|
17
|
+
export declare function toIso(parts: DateParts): string;
|
|
18
|
+
export declare function parseIso(iso: string): DateParts | null;
|
|
19
|
+
export declare function parseDisplay(value: string, format: DateFormat): DateParts | null;
|
|
20
|
+
export declare function formatDisplay(iso: string, format: DateFormat): string;
|
|
21
|
+
export declare function maskForFormat(format: DateFormat): string;
|
|
22
|
+
export declare function isWithinRange(iso: string, min: string | null, max: string | null): boolean;
|
|
23
|
+
export declare function todayIso(): string;
|
|
24
|
+
export declare function buildMonthMatrix(year: number, month: number): (DayCell | null)[];
|
|
25
|
+
export declare function getMonthNames(locale: DateLocale): string[];
|
|
26
|
+
export declare function getWeekdayInitials(locale: DateLocale): string[];
|
|
27
|
+
export declare function getYearRange(min: string | null, max: string | null): number[];
|
|
28
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,M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AE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAAE,CAQ7E"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { loading, useLoadingRefs } from './loading';
|
|
|
3
3
|
export { confirm, useConfirmStore } from './confirm';
|
|
4
4
|
export { default as api, configureApi } from './api';
|
|
5
5
|
export * from './types';
|
|
6
|
+
export type { DateFormat, DateLocale, DateParts, DayCell } from './date';
|
|
6
7
|
export { ensureVuetify, debugVuetifyInstances } from './vuetify-check';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,cAAc,SAAS,CAAC;AAExB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { l as
|
|
3
|
-
import { c, u as
|
|
4
|
-
import { a as
|
|
5
|
-
import { A as
|
|
6
|
-
import { d as
|
|
1
|
+
import { n as m, u as p } from "../chunks/utils/notify-CE_gbk11.js";
|
|
2
|
+
import { l as n, u as x } from "../chunks/utils/loading-dXhCGa6R.js";
|
|
3
|
+
import { c as I, u as d } from "../chunks/utils/confirm-DiGEPjua.js";
|
|
4
|
+
import { a as y, c as A } from "../chunks/utils/api-N1Cju-89.js";
|
|
5
|
+
import { A as T, N as O } from "../chunks/utils/types-DV6li0y5.js";
|
|
6
|
+
import { d as R, e as S } from "../chunks/utils/vuetify-check-DRI6ZYnO.js";
|
|
7
7
|
import "../chunks/composables/useFzDefaults-BAOcJYaF.js";
|
|
8
8
|
import "../chunks/composables/useGlobals-AagqYKoP.js";
|
|
9
9
|
import "../chunks/composables/useBreakpoint-DnFIVluv.js";
|
|
10
10
|
import "../chunks/composables/useLoading-Cu1i2QIr.js";
|
|
11
11
|
import "../chunks/composables/useNumericInput-DGw52-Ds.js";
|
|
12
|
+
import "../chunks/composables/useDatePicker-DlPanUqu.js";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
T as API_TIMEOUT,
|
|
15
|
+
O as NOTIFY_DURATION,
|
|
16
|
+
y as api,
|
|
17
|
+
A as configureApi,
|
|
18
|
+
I as confirm,
|
|
19
|
+
R as debugVuetifyInstances,
|
|
20
|
+
S as ensureVuetify,
|
|
21
|
+
n as loading,
|
|
22
|
+
m as notify,
|
|
23
|
+
d as useConfirmStore,
|
|
24
|
+
x as useLoadingRefs,
|
|
25
|
+
p as useNotifyStore
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, ref as t, createBlock as a, openBlock as f } from "vue";
|
|
2
|
-
import { F as m } from "./messages-FzCustomConfirmDialog-CcADw89-.js";
|
|
3
|
-
const p = /* @__PURE__ */ l({
|
|
4
|
-
__name: "FzConfirmDialog",
|
|
5
|
-
setup(c, { expose: n }) {
|
|
6
|
-
const o = t(null);
|
|
7
|
-
return n({
|
|
8
|
-
confirmDialog: (e, r, i) => o.value ? o.value.confirmDialog(e, r, i) : Promise.resolve(!1)
|
|
9
|
-
}), (e, r) => (f(), a(m, {
|
|
10
|
-
ref_key: "customDialogRef",
|
|
11
|
-
ref: o
|
|
12
|
-
}, null, 512));
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
p as _
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=messages-FzConfirmDialog-BvnTIYZm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages-FzConfirmDialog-BvnTIYZm.js","sources":["../../../src/components/messages/FzConfirmDialog.vue"],"sourcesContent":["<template>\n <FzCustomConfirmDialog ref=\"customDialogRef\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport FzCustomConfirmDialog from './FzCustomConfirmDialog.vue';\nimport type { ConfirmOptions } from '@/utils/types';\n\nconst customDialogRef = ref<InstanceType<typeof FzCustomConfirmDialog> | null>(null);\n\nconst confirmDialog = (title: string, message: string, options?: ConfirmOptions): Promise<boolean> => {\n if (!customDialogRef.value) return Promise.resolve(false);\n\n return customDialogRef.value.confirmDialog(title, message, options);\n};\n\ndefineExpose({\n confirmDialog,\n});\n</script>\n"],"names":["customDialogRef","ref","__expose","title","message","options","_createBlock","FzCustomConfirmDialog"],"mappings":";;;;;AASA,UAAMA,IAAkBC,EAAuD,IAAI;AAQnF,WAAAC,EAAa;AAAA,MACX,eAPoB,CAACC,GAAeC,GAAiBC,MAChDL,EAAgB,QAEdA,EAAgB,MAAM,cAAcG,GAAOC,GAASC,CAAO,IAF/B,QAAQ,QAAQ,EAAK;AAAA,IAMxD,CACD,mBAlBCC,EAA+CC,GAAA;AAAA,eAApB;AAAA,MAAJ,KAAIP;AAAA,IAAA;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages-FzCustomConfirmDialog-CcADw89-.js","sources":["../../../src/components/messages/FzCustomConfirmDialog.vue"],"sourcesContent":["<template>\n <Teleport to=\"body\">\n <Transition name=\"dialog-fade\">\n <div\n v-if=\"isOpen\"\n class=\"custom-dialog-overlay d-flex align-center justify-center pa-4\"\n @click.self=\"handleOverlayClick\"\n >\n <v-card class=\"flex-grow-1\" max-width=\"500\" :elevation=\"12\">\n <v-card-title class=\"d-flex align-center ga-3 px-6 pb-4 pt-6\">\n <v-icon color=\"warning\" size=\"28\">mdi-help-circle</v-icon>\n <span class=\"text-h6 font-weight-medium\">{{ currentTitle }}</span>\n </v-card-title>\n\n <v-card-text v-if=\"currentMessage\" class=\"px-6 pb-4 text-body-2\">\n {{ currentMessage }}\n </v-card-text>\n\n <v-card-actions class=\"d-flex justify-end ga-2 px-6 pb-6 pt-2\">\n <v-btn :color=\"confirmColor\" variant=\"elevated\" class=\"text-none\" @click=\"handleYes\">\n {{ confirmText }}\n </v-btn>\n <v-btn :color=\"cancelColor\" variant=\"outlined\" class=\"text-none\" @click=\"handleNo\">\n {{ cancelText }}\n </v-btn>\n </v-card-actions>\n </v-card>\n </div>\n </Transition>\n </Teleport>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch, onMounted, onUnmounted } from 'vue';\nimport type { ConfirmOptions } from '@/utils/types';\nimport { useConfirmStore } from '@/utils/confirm';\n\nconst isOpen = ref(false);\nconst currentTitle = ref('');\nconst currentMessage = ref('');\nconst isPersistent = ref(true);\nconst enterToConfirm = ref(false);\nconst confirmText = ref('');\nconst cancelText = ref('');\nconst confirmColor = ref('primary');\nconst cancelColor = ref('secondary');\nlet resolvePromise: ((value: boolean) => void) | null = null;\n\nconst confirmDialog = (title: string, message: string, options?: ConfirmOptions): Promise<boolean> => {\n currentTitle.value = title;\n currentMessage.value = message;\n isPersistent.value = options?.persistent ?? true;\n enterToConfirm.value = options?.enterToConfirm ?? false;\n confirmText.value = options?.confirmText ?? 'Sim';\n cancelText.value = options?.cancelText ?? 'Não';\n confirmColor.value = options?.confirmColor ?? 'primary';\n cancelColor.value = options?.cancelColor ?? 'secondary';\n isOpen.value = true;\n\n return new Promise((resolve) => {\n resolvePromise = resolve;\n });\n};\n\nonMounted(() => {\n useConfirmStore().setConfirmRef({ confirmDialog });\n});\n\nonUnmounted(() => {\n useConfirmStore().setConfirmRef({ confirmDialog: () => Promise.resolve(false) });\n document.removeEventListener('keydown', handleKeydown);\n});\n\nconst handleYes = () => {\n if (resolvePromise) resolvePromise(true);\n\n isOpen.value = false;\n};\n\nconst handleNo = () => {\n if (resolvePromise) resolvePromise(false);\n\n isOpen.value = false;\n};\n\nconst handleOverlayClick = () => {\n if (isPersistent.value) return;\n\n handleNo();\n};\n\nconst handleKeydown = (event: KeyboardEvent) => {\n if (event.key === 'Enter' && enterToConfirm.value) {\n event.preventDefault();\n handleYes();\n\n return;\n }\n\n if (event.key === 'Escape') {\n if (isPersistent.value) return;\n\n event.preventDefault();\n handleNo();\n }\n};\n\nwatch(isOpen, (open) => {\n if (open) {\n document.addEventListener('keydown', handleKeydown);\n } else {\n document.removeEventListener('keydown', handleKeydown);\n }\n});\n\ndefineExpose({\n confirmDialog,\n});\n</script>\n\n<style scoped>\n.custom-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 2400;\n}\n\n.dialog-fade-enter-active,\n.dialog-fade-leave-active {\n transition: opacity 0.2s ease;\n}\n\n.dialog-fade-enter-from,\n.dialog-fade-leave-to {\n opacity: 0;\n}\n\n.dialog-fade-enter-active .v-card,\n.dialog-fade-leave-active .v-card {\n transition: transform 0.2s ease;\n}\n\n.dialog-fade-enter-from .v-card {\n transform: scale(0.9);\n}\n\n.dialog-fade-leave-to .v-card {\n transform: scale(0.9);\n}\n</style>\n"],"names":["isOpen","ref","currentTitle","currentMessage","isPersistent","enterToConfirm","confirmText","cancelText","confirmColor","cancelColor","resolvePromise","confirmDialog","title","message","options","resolve","onMounted","useConfirmStore","onUnmounted","handleKeydown","handleYes","handleNo","handleOverlayClick","event","watch","open","__expose","_createBlock","_Teleport","_createVNode","_Transition","_createElementBlock","_component_v_card","_component_v_card_title","_component_v_icon","_cache","_createElementVNode","_hoisted_1","_toDisplayString","_component_v_card_text","_component_v_card_actions","_component_v_btn"],"mappings":";;;;;;AAqCA,UAAMA,IAASC,EAAI,EAAK,GAClBC,IAAeD,EAAI,EAAE,GACrBE,IAAiBF,EAAI,EAAE,GACvBG,IAAeH,EAAI,EAAI,GACvBI,IAAiBJ,EAAI,EAAK,GAC1BK,IAAcL,EAAI,EAAE,GACpBM,IAAaN,EAAI,EAAE,GACnBO,IAAeP,EAAI,SAAS,GAC5BQ,IAAcR,EAAI,WAAW;AACnC,QAAIS,IAAoD;AAExD,UAAMC,IAAgB,CAACC,GAAeC,GAAiBC,OACrDZ,EAAa,QAAQU,GACrBT,EAAe,QAAQU,GACvBT,EAAa,QAAQU,GAAS,cAAc,IAC5CT,EAAe,QAAQS,GAAS,kBAAkB,IAClDR,EAAY,QAAQQ,GAAS,eAAe,OAC5CP,EAAW,QAAQO,GAAS,cAAc,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x, createBlock as B, openBlock as k, Transition as I, withCtx as S, createElementBlock as R, createCommentVNode as V, unref as s, normalizeStyle as p, createVNode as q, createElementVNode as b } from "vue";
|
|
2
|
-
import { useTheme as z } from "vuetify";
|
|
3
|
-
import { u as G } from "../utils/notify-CE_gbk11.js";
|
|
4
|
-
import { N as h } from "../utils/types-DV6li0y5.js";
|
|
5
|
-
import { _ as L } from "./inputs-FzMoneyField-Co9uqB9u.js";
|
|
6
|
-
const O = 350, H = "#1E1E1E", K = /* @__PURE__ */ T({
|
|
7
|
-
__name: "FzFloatingNotify",
|
|
8
|
-
setup(M) {
|
|
9
|
-
const d = z(), e = G(), v = E(null), n = E(100), F = a(() => d.global.name.value === "dark"), y = {
|
|
10
|
-
success: "#4CAF50",
|
|
11
|
-
error: "#F44336",
|
|
12
|
-
warning: "#FF9800",
|
|
13
|
-
info: "#2196F3"
|
|
14
|
-
}, _ = a(() => {
|
|
15
|
-
try {
|
|
16
|
-
const t = d.global.current.value.colors?.[e.type];
|
|
17
|
-
if (typeof t == "string" && t.startsWith("#")) return t;
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
return y[e.type] || y.info;
|
|
21
|
-
}), l = {
|
|
22
|
-
success: "#E8F5E9",
|
|
23
|
-
error: "#FFEBEE",
|
|
24
|
-
warning: "#FFF3E0",
|
|
25
|
-
info: "#E3F2FD"
|
|
26
|
-
}, w = a(() => ({
|
|
27
|
-
backgroundColor: F.value ? H : l[e.type] || l.info,
|
|
28
|
-
borderInlineStart: `4px solid ${_.value}`
|
|
29
|
-
})), C = a(() => F.value ? "rgba(255, 255, 255, 0.05)" : l[e.type] || l.info), N = a(() => _.value);
|
|
30
|
-
function i() {
|
|
31
|
-
if (!e.isVisible) return;
|
|
32
|
-
const r = Date.now() >= g && (v.value?.matches(":hover") ?? !1);
|
|
33
|
-
if (r && !o) {
|
|
34
|
-
o = !0, u += Date.now() - c, e.pause(), requestAnimationFrame(i);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (!r && o && (o = !1, c = Date.now(), e.resume()), o) {
|
|
38
|
-
requestAnimationFrame(i);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const t = Date.now() - c, f = u + t, m = h - f;
|
|
42
|
-
if (m <= 0) {
|
|
43
|
-
n.value = 0;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
n.value = m / h * 100, requestAnimationFrame(i);
|
|
47
|
-
}
|
|
48
|
-
let u = 0, c = 0, g = 0, o = !1;
|
|
49
|
-
return A(() => e.isVisible, (r) => {
|
|
50
|
-
if (r) {
|
|
51
|
-
u = 0, c = Date.now(), g = Date.now() + O, o = !1, n.value = 100, requestAnimationFrame(i);
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
o = !1, n.value = 100;
|
|
55
|
-
}), D(() => {
|
|
56
|
-
e.cleanup();
|
|
57
|
-
}), (r, t) => {
|
|
58
|
-
const f = x("v-alert");
|
|
59
|
-
return k(), B(I, { name: "slide-fade" }, {
|
|
60
|
-
default: S(() => [
|
|
61
|
-
s(e).isVisible ? (k(), R("div", {
|
|
62
|
-
key: 0,
|
|
63
|
-
ref_key: "notificationRef",
|
|
64
|
-
ref: v,
|
|
65
|
-
class: "floating-notify elevation-6",
|
|
66
|
-
style: p(w.value)
|
|
67
|
-
}, [
|
|
68
|
-
q(f, {
|
|
69
|
-
type: s(e).type,
|
|
70
|
-
title: s(e).title,
|
|
71
|
-
text: s(e).message,
|
|
72
|
-
variant: "text",
|
|
73
|
-
closable: "",
|
|
74
|
-
class: "floating-notify-alert",
|
|
75
|
-
"onClick:close": t[0] || (t[0] = (m) => s(e).hide())
|
|
76
|
-
}, null, 8, ["type", "title", "text"]),
|
|
77
|
-
b("div", {
|
|
78
|
-
class: "progress-track",
|
|
79
|
-
style: p({ backgroundColor: C.value })
|
|
80
|
-
}, [
|
|
81
|
-
b("div", {
|
|
82
|
-
class: "progress-fill",
|
|
83
|
-
style: p({ width: n.value + "%", backgroundColor: N.value })
|
|
84
|
-
}, null, 4)
|
|
85
|
-
], 4)
|
|
86
|
-
], 4)) : V("", !0)
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
}), j = /* @__PURE__ */ L(K, [["__scopeId", "data-v-b4d8014f"]]);
|
|
93
|
-
export {
|
|
94
|
-
j as F
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=messages-FzFloatingNotify-CV5gLl9-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages-FzFloatingNotify-CV5gLl9-.js","sources":["../../../src/components/messages/FzFloatingNotify.vue"],"sourcesContent":["<template>\n <Transition name=\"slide-fade\">\n <div\n v-if=\"store.isVisible\"\n ref=\"notificationRef\"\n class=\"floating-notify elevation-6\"\n :style=\"wrapperStyle\"\n >\n <v-alert\n :type=\"store.type\"\n :title=\"store.title\"\n :text=\"store.message\"\n variant=\"text\"\n closable\n class=\"floating-notify-alert\"\n @click:close=\"store.hide()\"\n />\n\n <div\n class=\"progress-track\"\n :style=\"{ backgroundColor: trackBg }\"\n >\n <div\n class=\"progress-fill\"\n :style=\"{ width: progress + '%', backgroundColor: fillColor }\"\n />\n </div>\n </div>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, onUnmounted } from 'vue';\nimport { useTheme } from 'vuetify';\nimport { useNotifyStore } from '@/utils/notify';\nimport { NOTIFY_DURATION } from '@/utils/types';\n\nconst theme = useTheme();\nconst store = useNotifyStore();\n\nconst notificationRef = ref<HTMLElement | null>(null);\nconst progress = ref(100);\nconst ENTER_TRANSITION_MS = 350;\n\nconst isDark = computed(() => theme.global.name.value === 'dark');\n\nconst FALLBACK: Record<string, string> = {\n success: '#4CAF50', error: '#F44336', warning: '#FF9800', info: '#2196F3',\n};\n\nconst themeTypeColor = computed(() => {\n try {\n const colors = theme.global.current.value.colors;\n const hex = colors?.[store.type];\n\n if (typeof hex === 'string' && hex.startsWith('#')) return hex;\n } catch {\n // theme not accessible\n }\n\n return FALLBACK[store.type] || FALLBACK.info;\n});\n\nconst LIGHT_BG: Record<string, string> = {\n success: '#E8F5E9', error: '#FFEBEE', warning: '#FFF3E0', info: '#E3F2FD',\n};\nconst DARK_BG = '#1E1E1E';\n\nconst wrapperStyle = computed(() => ({\n backgroundColor: isDark.value ? DARK_BG : LIGHT_BG[store.type] || LIGHT_BG.info,\n borderInlineStart: `4px solid ${themeTypeColor.value}`,\n}));\n\nconst trackBg = computed(() => {\n if (isDark.value) return 'rgba(255, 255, 255, 0.05)';\n\n return LIGHT_BG[store.type] || LIGHT_BG.info;\n});\n\nconst fillColor = computed(() => themeTypeColor.value);\n\nfunction updateProgress() {\n if (!store.isVisible) return;\n\n const hovered = Date.now() >= enterTransitionEndTime && (notificationRef.value?.matches(':hover') ?? false);\n\n if (hovered && !isHovered) {\n isHovered = true;\n totalElapsedMs += Date.now() - intervalStartTime;\n\n store.pause();\n\n requestAnimationFrame(updateProgress);\n\n return;\n }\n\n if (!hovered && isHovered) {\n isHovered = false;\n intervalStartTime = Date.now();\n\n store.resume();\n }\n\n if (isHovered) {\n requestAnimationFrame(updateProgress);\n\n return;\n }\n\n const elapsed = Date.now() - intervalStartTime;\n const totalElapsed = totalElapsedMs + elapsed;\n const remaining = NOTIFY_DURATION - totalElapsed;\n\n if (remaining <= 0) {\n progress.value = 0;\n\n return;\n }\n\n progress.value = (remaining / NOTIFY_DURATION) * 100;\n\n requestAnimationFrame(updateProgress);\n}\n\nlet totalElapsedMs = 0;\nlet intervalStartTime = 0;\nlet enterTransitionEndTime = 0;\nlet isHovered = false;\n\nwatch(() => store.isVisible, (visible) => {\n if (visible) {\n totalElapsedMs = 0;\n intervalStartTime = Date.now();\n enterTransitionEndTime = Date.now() + ENTER_TRANSITION_MS;\n isHovered = false;\n progress.value = 100;\n\n requestAnimationFrame(updateProgress);\n\n return;\n }\n\n isHovered = false;\n progress.value = 100;\n});\n\nonUnmounted(() => {\n store.cleanup();\n});\n</script>\n\n<style scoped>\n.floating-notify {\n position: fixed;\n top: 20px;\n right: 20px;\n min-width: 300px;\n max-width: 500px;\n z-index: 9999;\n border-radius: 4px;\n overflow: hidden;\n}\n\n.floating-notify :deep(.v-alert--border) {\n border-inline-start-width: 0;\n}\n\n.progress-track {\n height: 3px;\n}\n\n.progress-fill {\n height: 100%;\n transition: width 100ms linear;\n}\n\n.slide-fade-enter-active {\n transition: all 0.3s ease-out;\n}\n\n.slide-fade-leave-active {\n transition: all 0.3s ease-in;\n}\n\n.slide-fade-enter-from {\n transform: translateX(100%);\n opacity: 0;\n}\n\n.slide-fade-leave-to {\n transform: translateX(100%);\n opacity: 0;\n}\n</style>\n"],"names":["ENTER_TRANSITION_MS","DARK_BG","theme","useTheme","store","useNotifyStore","notificationRef","ref","progress","isDark","computed","FALLBACK","themeTypeColor","hex","LIGHT_BG","wrapperStyle","trackBg","fillColor","updateProgress","hovered","enterTransitionEndTime","isHovered","totalElapsedMs","intervalStartTime","elapsed","totalElapsed","remaining","NOTIFY_DURATION","watch","visible","onUnmounted","_createBlock","_Transition","_unref","_createElementBlock","_createVNode","_component_v_alert","_cache","$event","_createElementVNode","_normalizeStyle"],"mappings":";;;;;AA0CA,MAAMA,IAAsB,KAwBtBC,IAAU;;;AA7BhB,UAAMC,IAAQC,EAAA,GACRC,IAAQC,EAAA,GAERC,IAAkBC,EAAwB,IAAI,GAC9CC,IAAWD,EAAI,GAAG,GAGlBE,IAASC,EAAS,MAAMR,EAAM,OAAO,KAAK,UAAU,MAAM,GAE1DS,IAAmC;AAAA,MACvC,SAAS;AAAA,MAAW,OAAO;AAAA,MAAW,SAAS;AAAA,MAAW,MAAM;AAAA,IAAA,GAG5DC,IAAiBF,EAAS,MAAM;AACpC,UAAI;AAEF,cAAMG,IADSX,EAAM,OAAO,QAAQ,MAAM,SACrBE,EAAM,IAAI;AAE/B,YAAI,OAAOS,KAAQ,YAAYA,EAAI,WAAW,GA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,CAACyB,MAAY;AACxC,UAAIA,GAAS;AACX,QAAAP,IAAiB,GACjBC,IAAoB,KAAK,IAAA,GACzBH,IAAyB,KAAK,QAAQpB,GACtCqB,IAAY,IACZb,EAAS,QAAQ,KAEjB,sBAAsBU,CAAc;AAEpC;AAAA,MACF;AAEA,MAAAG,IAAY,IACZb,EAAS,QAAQ;AAAA,IACnB,CAAC,GAEDsB,EAAY,MAAM;AAChB,MAAA1B,EAAM,QAAA;AAAA,IACR,CAAC;;kBApJC2B,EA2BaC,GAAA,EA3BD,MAAK,gBAAY;AAAA,mBAC3B,MAyBM;AAAA,UAxBEC,EAAA7B,CAAA,EAAM,kBADd8B,EAyBM,OAAA;AAAA;qBAvBA;AAAA,YAAJ,KAAI5B;AAAA,YACJ,OAAM;AAAA,YACL,SAAOS,EAAA,KAAY;AAAA,UAAA;YAEpBoB,EAQEC,GAAA;AAAA,cAPC,MAAMH,EAAA7B,CAAA,EAAM;AAAA,cACZ,OAAO6B,EAAA7B,CAAA,EAAM;AAAA,cACb,MAAM6B,EAAA7B,CAAA,EAAM;AAAA,cACb,SAAQ;AAAA,cACR,UAAA;AAAA,cACA,OAAM;AAAA,cACL,iBAAWiC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEL,EAAA7B,CAAA,EAAM,KAAA;AAAA,YAAI;YAG1BmC,EAQM,OAAA;AAAA,cAPJ,OAAM;AAAA,cACL,4BAA0BvB,EAAA,OAAO;AAAA,YAAA;cAElCuB,EAGE,OAAA;AAAA,gBAFA,OAAM;AAAA,gBACL,OAAKC,EAAA,EAAA,OAAWhC,EAAA,QAAQ,KAAA,iBAAyBS,EAAA,MAAA,CAAS;AAAA,cAAA;;;;;;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
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-CBZ5Ea3Z.js";
|
|
4
|
-
import { _ as i } from "./components/messages-FzConfirmDialog-BvnTIYZm.js";
|
|
5
|
-
import { F as a } from "./components/messages-FzCustomConfirmDialog-CcADw89-.js";
|
|
6
|
-
import { F as s } from "./components/messages-FzFloatingNotify-CV5gLl9-.js";
|
|
7
|
-
import { F as f } from "./components/layout-FzLoadingOverlay-CWKZxowb.js";
|
|
8
|
-
import { F as t } from "./components/inputs-FzMoneyField-Co9uqB9u.js";
|
|
9
|
-
import { _ as F } from "./components/inputs-FzEmailField-CujT-RJo.js";
|
|
10
|
-
import { F as e } from "./components/inputs-FzNumberField-DG-uYIEA.js";
|
|
11
|
-
import { _ } from "./components/inputs-FzPhoneField-B8Mk05Hd.js";
|
|
12
|
-
import { _ as n } from "./components/inputs-FzZipCodeField-B7fHUkXJ.js";
|
|
13
|
-
import { _ as p } from "./components/inputs-FzFullAddress-Dj68efww.js";
|
|
14
|
-
const P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
|
-
__proto__: null,
|
|
16
|
-
FzConfigProvider: o,
|
|
17
|
-
FzConfirmDialog: i,
|
|
18
|
-
FzCustomConfirmDialog: a,
|
|
19
|
-
FzEmailField: F,
|
|
20
|
-
FzFloatingNotify: s,
|
|
21
|
-
FzFullAddress: p,
|
|
22
|
-
FzIconToolTip: m,
|
|
23
|
-
FzLoadingOverlay: f,
|
|
24
|
-
FzModalBase: r,
|
|
25
|
-
FzMoneyField: t,
|
|
26
|
-
FzNumberField: e,
|
|
27
|
-
FzPhoneField: _,
|
|
28
|
-
FzZipCodeField: n
|
|
29
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
30
|
-
export {
|
|
31
|
-
P as c
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=index-B-0CLj_d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-B-0CLj_d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|