@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.
Files changed (81) hide show
  1. package/dist/chunks/components/{inputs-FzFullAddress-Dj68efww.js → inputs-FzFullAddress-VTqqGmqm.js} +10 -10
  2. package/dist/chunks/components/{inputs-FzFullAddress-Dj68efww.js.map → inputs-FzFullAddress-VTqqGmqm.js.map} +1 -1
  3. package/dist/chunks/components/{inputs-FzMoneyField-Co9uqB9u.js → inputs-FzMoneyField-C8nCfRgx.js} +8 -8
  4. package/dist/chunks/components/{inputs-FzMoneyField-Co9uqB9u.js.map → inputs-FzMoneyField-C8nCfRgx.js.map} +1 -1
  5. package/dist/chunks/components/{inputs-FzNumberField-DG-uYIEA.js → inputs-FzNumberField-BoJ_kxJg.js} +2 -2
  6. package/dist/chunks/components/{inputs-FzNumberField-DG-uYIEA.js.map → inputs-FzNumberField-BoJ_kxJg.js.map} +1 -1
  7. package/dist/chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js +129 -0
  8. package/dist/chunks/components/inputs-datepicker-FzDatePicker-FDVslsba.js.map +1 -0
  9. package/dist/chunks/components/inputs-datepicker-FzDatePickerCalendar-TOO_5iVD.js +170 -0
  10. package/dist/chunks/components/inputs-datepicker-FzDatePickerCalendar-TOO_5iVD.js.map +1 -0
  11. package/dist/chunks/components/inputs-datepicker-FzDatePickerDaysView-0m1isZIx.js +82 -0
  12. package/dist/chunks/components/inputs-datepicker-FzDatePickerDaysView-0m1isZIx.js.map +1 -0
  13. package/dist/chunks/components/inputs-datepicker-FzDatePickerMonthsView-DfjKo8Y0.js +52 -0
  14. package/dist/chunks/components/inputs-datepicker-FzDatePickerMonthsView-DfjKo8Y0.js.map +1 -0
  15. package/dist/chunks/components/inputs-datepicker-FzDatePickerYearsView-BLqOg5T9.js +58 -0
  16. package/dist/chunks/components/inputs-datepicker-FzDatePickerYearsView-BLqOg5T9.js.map +1 -0
  17. package/dist/chunks/components/{layout-FzLoadingOverlay-CWKZxowb.js → layout-FzLoadingOverlay-DTejZcvu.js} +2 -2
  18. package/dist/chunks/components/{layout-FzLoadingOverlay-CWKZxowb.js.map → layout-FzLoadingOverlay-DTejZcvu.js.map} +1 -1
  19. package/dist/chunks/components/messages-FzConfirmDialog-C3KyhNp5.js +18 -0
  20. package/dist/chunks/components/messages-FzConfirmDialog-C3KyhNp5.js.map +1 -0
  21. package/dist/chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js +118 -0
  22. package/dist/chunks/components/messages-FzCustomConfirmDialog-MMylgbvn.js.map +1 -0
  23. package/dist/chunks/components/messages-FzFloatingNotify-DU8K95A2.js +96 -0
  24. package/dist/chunks/components/messages-FzFloatingNotify-DU8K95A2.js.map +1 -0
  25. package/dist/chunks/components/{modals-FzModalBase-DmsJR5qM.js → modals-FzModalBase-OltWGin-.js} +27 -24
  26. package/dist/chunks/components/modals-FzModalBase-OltWGin-.js.map +1 -0
  27. package/dist/chunks/composables/useDatePicker-DlPanUqu.js +78 -0
  28. package/dist/chunks/composables/useDatePicker-DlPanUqu.js.map +1 -0
  29. package/dist/chunks/index-CykPyQ3c.js +35 -0
  30. package/dist/chunks/index-CykPyQ3c.js.map +1 -0
  31. package/dist/chunks/utils/date-BCG-p19e.js +106 -0
  32. package/dist/chunks/utils/date-BCG-p19e.js.map +1 -0
  33. package/dist/chunks/utils/types-DV6li0y5.js.map +1 -1
  34. package/dist/components/index.d.ts +1 -0
  35. package/dist/components/index.d.ts.map +1 -1
  36. package/dist/components/index.js +15 -13
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/components/inputs/FzFullAddress.vue.d.ts.map +1 -1
  39. package/dist/components/inputs/datepicker/FzDatePicker.vue.d.ts +66 -0
  40. package/dist/components/inputs/datepicker/FzDatePicker.vue.d.ts.map +1 -0
  41. package/dist/components/inputs/datepicker/FzDatePickerCalendar.vue.d.ts +33 -0
  42. package/dist/components/inputs/datepicker/FzDatePickerCalendar.vue.d.ts.map +1 -0
  43. package/dist/components/inputs/datepicker/FzDatePickerDaysView.vue.d.ts +17 -0
  44. package/dist/components/inputs/datepicker/FzDatePickerDaysView.vue.d.ts.map +1 -0
  45. package/dist/components/inputs/datepicker/FzDatePickerMonthsView.vue.d.ts +13 -0
  46. package/dist/components/inputs/datepicker/FzDatePickerMonthsView.vue.d.ts.map +1 -0
  47. package/dist/components/inputs/datepicker/FzDatePickerYearsView.vue.d.ts +13 -0
  48. package/dist/components/inputs/datepicker/FzDatePickerYearsView.vue.d.ts.map +1 -0
  49. package/dist/components/messages/FzConfirmDialog.vue.d.ts.map +1 -1
  50. package/dist/components/messages/FzCustomConfirmDialog.vue.d.ts.map +1 -1
  51. package/dist/components/messages/FzFloatingNotify.vue.d.ts.map +1 -1
  52. package/dist/components/modals/FzModalBase.vue.d.ts +2 -0
  53. package/dist/components/modals/FzModalBase.vue.d.ts.map +1 -1
  54. package/dist/composables/index.d.ts +1 -0
  55. package/dist/composables/index.d.ts.map +1 -1
  56. package/dist/composables/index.js +6 -4
  57. package/dist/composables/index.js.map +1 -1
  58. package/dist/composables/useDatePicker.d.ts +30 -0
  59. package/dist/composables/useDatePicker.d.ts.map +1 -0
  60. package/dist/index.js +64 -60
  61. package/dist/index.js.map +1 -1
  62. package/dist/ui.css +1 -1
  63. package/dist/utils/date.d.ts +28 -0
  64. package/dist/utils/date.d.ts.map +1 -0
  65. package/dist/utils/index.d.ts +1 -0
  66. package/dist/utils/index.d.ts.map +1 -1
  67. package/dist/utils/index.js +19 -18
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/utils/notify.d.ts +1 -1
  70. package/dist/utils/types.d.ts +1 -0
  71. package/dist/utils/types.d.ts.map +1 -1
  72. package/package.json +1 -1
  73. package/dist/chunks/components/messages-FzConfirmDialog-vB2NQFVy.js +0 -18
  74. package/dist/chunks/components/messages-FzConfirmDialog-vB2NQFVy.js.map +0 -1
  75. package/dist/chunks/components/messages-FzCustomConfirmDialog-DF73kvKq.js +0 -107
  76. package/dist/chunks/components/messages-FzCustomConfirmDialog-DF73kvKq.js.map +0 -1
  77. package/dist/chunks/components/messages-FzFloatingNotify-CV5gLl9-.js +0 -96
  78. package/dist/chunks/components/messages-FzFloatingNotify-CV5gLl9-.js.map +0 -1
  79. package/dist/chunks/components/modals-FzModalBase-DmsJR5qM.js.map +0 -1
  80. package/dist/chunks/index-OarSr4I3.js +0 -33
  81. package/dist/chunks/index-OarSr4I3.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ interface Props {
2
+ monthNames: string[];
3
+ focusedYear: number;
4
+ selectedIso: string;
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ select: (month: number) => any;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onSelect?: ((month: number) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=FzDatePickerMonthsView.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FzDatePickerMonthsView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/datepicker/FzDatePickerMonthsView.vue"],"names":[],"mappings":"AA6EA,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AA4GD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,13 @@
1
+ interface Props {
2
+ yearList: number[];
3
+ focusedYear: number;
4
+ selectedIso: string;
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ select: (year: number) => any;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ onSelect?: ((year: number) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=FzDatePickerYearsView.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FzDatePickerYearsView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/datepicker/FzDatePickerYearsView.vue"],"names":[],"mappings":"AA6EA,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAuHD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FzConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzConfirmDialog.vue"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAuCpD,QAAA,MAAM,YAAY;2BAnCY,MAAM,WAAW,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC;0OAqChG,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"FzConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzConfirmDialog.vue"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAqCpD,QAAA,MAAM,YAAY;2BAjCY,MAAM,WAAW,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC;0OAmChG,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FzCustomConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzCustomConfirmDialog.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAsSpD,QAAA,MAAM,YAAY;2BAzRY,MAAM,WAAW,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC;0OA2RhG,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"FzCustomConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzCustomConfirmDialog.vue"],"names":[],"mappings":"AA8JA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAiUpD,QAAA,MAAM,YAAY;2BAnTY,MAAM,WAAW,MAAM,YAAY,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC;0OAqThG,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FzFloatingNotify.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzFloatingNotify.vue"],"names":[],"mappings":"AAkaA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"FzFloatingNotify.vue.d.ts","sourceRoot":"","sources":["../../../src/components/messages/FzFloatingNotify.vue"],"names":[],"mappings":"AAwaA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -11,6 +11,7 @@ interface Props {
11
11
  message?: string;
12
12
  maxWidth?: string | number;
13
13
  persistent?: boolean;
14
+ enterToConfirm?: boolean;
14
15
  actions?: ModalAction[];
15
16
  contentClass?: string;
16
17
  fullscreen?: boolean;
@@ -30,6 +31,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
30
31
  contentClass: string;
31
32
  title: string;
32
33
  message: string;
34
+ enterToConfirm: boolean;
33
35
  actions: ModalAction[];
34
36
  fullscreen: boolean;
35
37
  titleIcon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FzModalBase.vue.d.ts","sourceRoot":"","sources":["../../../src/components/modals/FzModalBase.vue"],"names":[],"mappings":"AAoLA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0SD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;gBAtTD,OAAO;cADT,MAAM,GAAG,MAAM;kBAGX,MAAM;WALb,MAAM;aACJ,MAAM;aAGN,WAAW,EAAE;gBAEV,OAAO;eACR,MAAM;6EAsTlB,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"}
1
+ {"version":3,"file":"FzModalBase.vue.d.ts","sourceRoot":"","sources":["../../../src/components/modals/FzModalBase.vue"],"names":[],"mappings":"AA0LA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,UAAU,KAAK;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgTD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;gBA7TD,OAAO;cADT,MAAM,GAAG,MAAM;kBAIX,MAAM;WANb,MAAM;aACJ,MAAM;oBAGC,OAAO;aACd,WAAW,EAAE;gBAEV,OAAO;eACR,MAAM;6EA4TlB,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"}
@@ -3,4 +3,5 @@ export { useGlobals } from './useGlobals';
3
3
  export { useBreakpoint } from './useBreakpoint';
4
4
  export { useLoading } from './useLoading';
5
5
  export { useNumericInput, NAVIGATION_KEYS, createNumericKeydownHandler } from './useNumericInput';
6
+ export { useDatePicker, type CalendarView, type UseDatePickerParams } from './useDatePicker';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -2,14 +2,16 @@ import { u as o } from "../chunks/composables/useFzDefaults-BAOcJYaF.js";
2
2
  import { u } from "../chunks/composables/useGlobals-AagqYKoP.js";
3
3
  import { u as t } from "../chunks/composables/useBreakpoint-DnFIVluv.js";
4
4
  import { u as p } from "../chunks/composables/useLoading-Cu1i2QIr.js";
5
- import { N as n, c as x, u as N } from "../chunks/composables/useNumericInput-DGw52-Ds.js";
5
+ import { N as x, c, u as i } from "../chunks/composables/useNumericInput-DGw52-Ds.js";
6
+ import { u as N } from "../chunks/composables/useDatePicker-DlPanUqu.js";
6
7
  export {
7
- n as NAVIGATION_KEYS,
8
- x as createNumericKeydownHandler,
8
+ x as NAVIGATION_KEYS,
9
+ c as createNumericKeydownHandler,
9
10
  t as useBreakpoint,
11
+ N as useDatePicker,
10
12
  o as useFzDefaults,
11
13
  u as useGlobals,
12
14
  p as useLoading,
13
- N as useNumericInput
15
+ i as useNumericInput
14
16
  };
15
17
  //# 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":";;;;;;"}
@@ -0,0 +1,30 @@
1
+ import { type Ref } from 'vue';
2
+ import { type DateLocale, type DayCell } from '@/utils/date';
3
+ export type CalendarView = 'days' | 'months' | 'years';
4
+ export interface UseDatePickerParams {
5
+ selected: Ref<string>;
6
+ min: Ref<string | null>;
7
+ max: Ref<string | null>;
8
+ locale: Ref<DateLocale>;
9
+ }
10
+ export declare function useDatePicker(params: UseDatePickerParams): {
11
+ activeView: Ref<CalendarView, CalendarView>;
12
+ focusedYear: Ref<number, number>;
13
+ focusedMonth: Ref<number, number>;
14
+ isDaysView: import("vue").ComputedRef<boolean>;
15
+ isMonthsView: import("vue").ComputedRef<boolean>;
16
+ isYearsView: import("vue").ComputedRef<boolean>;
17
+ monthNames: import("vue").ComputedRef<string[]>;
18
+ weekdayInitials: import("vue").ComputedRef<string[]>;
19
+ dayMatrix: import("vue").ComputedRef<(DayCell | null)[]>;
20
+ yearList: import("vue").ComputedRef<number[]>;
21
+ headerTitle: import("vue").ComputedRef<string>;
22
+ goPrev: () => void;
23
+ goNext: () => void;
24
+ drillFromTitle: () => void;
25
+ selectMonth: (month: number) => void;
26
+ selectYear: (year: number) => void;
27
+ isDisabled: (iso: string) => boolean;
28
+ reset: () => void;
29
+ };
30
+ //# sourceMappingURL=useDatePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDatePicker.d.ts","sourceRoot":"","sources":["../../src/composables/useDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO,EAQL,KAAK,UAAU,EAEf,KAAK,OAAO,EACb,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACxB,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACxB,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,mBAAmB;;;;;;;;;;;;kBA+CpC,IAAI;kBAUJ,IAAI;0BAUI,IAAI;yBAgBH,MAAM,KAAG,IAAI;uBAKf,MAAM,KAAG,IAAI;sBAKd,MAAM,KAAG,OAAO;iBAIvB,IAAI;EA4BvB"}
package/dist/index.js CHANGED
@@ -1,33 +1,35 @@
1
- import { c as s } from "./chunks/index-OarSr4I3.js";
2
- import { globalsPlugin as t } from "./plugins/index.js";
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 B, u as K } from "./chunks/utils/notify-CE_gbk11.js";
6
- import { l as U, u as Y } from "./chunks/utils/loading-dXhCGa6R.js";
7
- import { c as v, u as w } from "./chunks/utils/confirm-DiGEPjua.js";
8
- import { a as Z, c as j } from "./chunks/utils/api-N1Cju-89.js";
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 eo } from "./chunks/composables/useLoading-Cu1i2QIr.js";
14
- import { N as to, c as ao, u as io } from "./chunks/composables/useNumericInput-DGw52-Ds.js";
15
- import { F as fo, _ as mo } from "./chunks/components/FzConfigProvider-X6sXT-LE.js";
16
- import { VTooltip as i, VTextField as n, VSpacer as f, VSelect as m, 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 T } from "vuetify/components";
17
- import { _ as uo } from "./chunks/components/buttons-FzIconToolTip-D_cBN1TN.js";
18
- import { _ as Fo } from "./chunks/components/messages-FzConfirmDialog-vB2NQFVy.js";
19
- import { _ as co } from "./chunks/components/inputs-FzEmailField-CujT-RJo.js";
20
- import { _ as go } from "./chunks/components/inputs-FzPhoneField-B8Mk05Hd.js";
21
- import { _ as Co } from "./chunks/components/inputs-FzZipCodeField-B7fHUkXJ.js";
22
- import { _ as _o } from "./chunks/components/inputs-FzFullAddress-Dj68efww.js";
23
- import { F as Ao } from "./chunks/components/modals-FzModalBase-DmsJR5qM.js";
24
- import { F as yo } from "./chunks/components/messages-FzCustomConfirmDialog-DF73kvKq.js";
25
- import { F as Eo } from "./chunks/components/messages-FzFloatingNotify-CV5gLl9-.js";
26
- import { F as Do } from "./chunks/components/layout-FzLoadingOverlay-CWKZxowb.js";
27
- import { F as Po } from "./chunks/components/inputs-FzMoneyField-Co9uqB9u.js";
28
- import { F as Mo } from "./chunks/components/inputs-FzNumberField-DG-uYIEA.js";
29
- const L = {
30
- VAlert: T,
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: m,
43
- VSpacer: f,
44
- VTextField: n,
44
+ VSelect: n,
45
+ VSpacer: m,
46
+ VTextField: f,
45
47
  VTooltip: i
46
- }, _ = s;
48
+ }, T = t;
47
49
  function N(o) {
48
- Object.entries(_).forEach(([r, e]) => {
49
- o.component(r, e);
50
+ Object.entries(T).forEach(([e, r]) => {
51
+ o.component(e, r);
50
52
  });
51
53
  }
52
54
  function A(o) {
53
- o.use(t);
55
+ o.use(s);
54
56
  }
55
- function D(o) {
57
+ function E(o) {
56
58
  a(o), N(o), A(o);
57
59
  }
58
60
  export {
59
61
  q as API_TIMEOUT,
60
- fo as FZ_DEFAULTS_KEY,
61
- mo as FzConfigProvider,
62
- Fo as FzConfirmDialog,
63
- yo as FzCustomConfirmDialog,
64
- co as FzEmailField,
65
- Eo as FzFloatingNotify,
66
- _o as FzFullAddress,
67
- uo as FzIconToolTip,
68
- Do as FzLoadingOverlay,
69
- Ao as FzModalBase,
70
- Po as FzMoneyField,
71
- Mo as FzNumberField,
72
- go as FzPhoneField,
73
- Co as FzZipCodeField,
74
- to as NAVIGATION_KEYS,
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
- Z as api,
77
- _ as components,
78
- j as configureApi,
79
- v as confirm,
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
- t as globalsPlugin,
85
- U as loading,
86
- B as notify,
87
+ s as globalsPlugin,
88
+ R as loading,
89
+ k as notify,
87
90
  A as registerLibPlugins,
88
- L as requiredVuetifyComponents,
89
- D as setupLib,
91
+ P as requiredVuetifyComponents,
92
+ E as setupLib,
90
93
  oo as useBreakpoint,
91
- w as useConfirmStore,
94
+ v as useConfirmStore,
95
+ mo as useDatePicker,
92
96
  Q as useFzDefaults,
93
97
  X as useGlobals,
94
- eo as useLoading,
95
- Y as useLoadingRefs,
96
- K as useNotifyStore,
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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;"}
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-a32d1159] input{text-align:right}.modal-title[data-v-e2905dad]{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-45577764]{position:fixed;inset:0;background-color:#00000080;z-index:2400}.dialog-fade-enter-active[data-v-45577764],.dialog-fade-leave-active[data-v-45577764]{transition:opacity .2s ease}.dialog-fade-enter-from[data-v-45577764],.dialog-fade-leave-to[data-v-45577764]{opacity:0}.dialog-fade-enter-active .v-card[data-v-45577764],.dialog-fade-leave-active .v-card[data-v-45577764]{transition:transform .2s ease}.dialog-fade-enter-from .v-card[data-v-45577764],.dialog-fade-leave-to .v-card[data-v-45577764]{transform:scale(.9)}.floating-notify[data-v-b4d8014f]{position:fixed;top:20px;right:20px;min-width:300px;max-width:500px;z-index:9999;border-radius:4px;overflow:hidden}.floating-notify[data-v-b4d8014f] .v-alert--border{border-inline-start-width:0}.progress-track[data-v-b4d8014f]{height:3px}.progress-fill[data-v-b4d8014f]{height:100%;transition:width .1s linear}.slide-fade-enter-active[data-v-b4d8014f]{transition:all .3s ease-out}.slide-fade-leave-active[data-v-b4d8014f]{transition:all .3s ease-in}.slide-fade-enter-from[data-v-b4d8014f],.slide-fade-leave-to[data-v-b4d8014f]{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}
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,MAAM,CAAC;CACb;AAMD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AA0CrC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAU5E;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAE9C;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAYtD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAchF;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAQrE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAExD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAM1F;AAED,wBAAgB,QAAQ,IAAI,MAAM,CAIjC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAiBhF;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CAE1D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CAE/D;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAAE,CAQ7E"}
@@ -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"}
@@ -1,26 +1,27 @@
1
- import { n as f, u as m } from "../chunks/utils/notify-CE_gbk11.js";
2
- import { l as u, u as n } from "../chunks/utils/loading-dXhCGa6R.js";
3
- import { c, u as I } from "../chunks/utils/confirm-DiGEPjua.js";
4
- import { a as g, c as y } from "../chunks/utils/api-N1Cju-89.js";
5
- import { A as N, N as T } from "../chunks/utils/types-DV6li0y5.js";
6
- import { d as l, e as R } from "../chunks/utils/vuetify-check-DRI6ZYnO.js";
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
- N as API_TIMEOUT,
14
- T as NOTIFY_DURATION,
15
- g as api,
16
- y as configureApi,
17
- c as confirm,
18
- l as debugVuetifyInstances,
19
- R as ensureVuetify,
20
- u as loading,
21
- f as notify,
22
- I as useConfirmStore,
23
- n as useLoadingRefs,
24
- m as useNotifyStore
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -29,7 +29,7 @@ export declare const useNotifyStore: import("pinia").StoreDefinition<"notify", P
29
29
  pause: () => void;
30
30
  resume: () => void;
31
31
  cleanup: () => void;
32
- }, "show" | "hide" | "pause" | "resume" | "cleanup">>;
32
+ }, "show" | "pause" | "hide" | "resume" | "cleanup">>;
33
33
  export declare const notify: {
34
34
  show: (type: NotifyType, title: string, message?: string) => void;
35
35
  success: (title: string, message?: string) => void;
@@ -4,6 +4,7 @@ export interface ConfirmOptions {
4
4
  cancelText?: string;
5
5
  confirmColor?: string;
6
6
  cancelColor?: string;
7
+ enterToConfirm?: boolean;
7
8
  }
8
9
  export interface ConfirmComponentRef {
9
10
  confirmDialog: (title: string, message: string, options?: ConfirmOptions) => Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/F;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,eAAO,MAAM,WAAW,QAAQ,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,eAAe,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/F;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAElE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,eAAO,MAAM,WAAW,QAAQ,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,GAAG,eAAe,GAAG,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forizi-tecnologia/ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Forizi UI — Vue 3 + TypeScript + Vuetify 3 component library",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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-DF73kvKq.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-vB2NQFVy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages-FzConfirmDialog-vB2NQFVy.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,107 +0,0 @@
1
- import { defineComponent as F, ref as e, onMounted as M, onUnmounted as S, resolveComponent as a, createBlock as T, openBlock as f, Teleport as j, createVNode as n, Transition as E, withCtx as t, createElementBlock as O, createCommentVNode as b, withModifiers as R, createElementVNode as I, createTextVNode as s, toDisplayString as i } from "vue";
2
- import { u as w } from "../utils/confirm-DiGEPjua.js";
3
- import { _ as U } from "./inputs-FzMoneyField-Co9uqB9u.js";
4
- const Y = { class: "text-h6 font-weight-medium" }, q = /* @__PURE__ */ F({
5
- __name: "FzCustomConfirmDialog",
6
- setup(A, { expose: N }) {
7
- const c = e(!1), m = e(""), u = e(""), v = e(!0), _ = e(""), p = e(""), x = e("primary"), C = e("secondary");
8
- let l = null;
9
- const g = (h, r, o) => (m.value = h, u.value = r, v.value = o?.persistent ?? !0, _.value = o?.confirmText ?? "Sim", p.value = o?.cancelText ?? "Não", x.value = o?.confirmColor ?? "primary", C.value = o?.cancelColor ?? "secondary", c.value = !0, new Promise((d) => {
10
- l = d;
11
- }));
12
- M(() => {
13
- w().setConfirmRef({ confirmDialog: g });
14
- }), S(() => {
15
- w().setConfirmRef({ confirmDialog: () => Promise.resolve(!1) });
16
- });
17
- const D = () => {
18
- l && l(!0), c.value = !1;
19
- }, y = () => {
20
- l && l(!1), c.value = !1;
21
- }, P = () => {
22
- v.value || y();
23
- };
24
- return N({
25
- confirmDialog: g
26
- }), (h, r) => {
27
- const o = a("v-icon"), d = a("v-card-title"), V = a("v-card-text"), k = a("v-btn"), z = a("v-card-actions"), B = a("v-card");
28
- return f(), T(j, { to: "body" }, [
29
- n(E, { name: "dialog-fade" }, {
30
- default: t(() => [
31
- c.value ? (f(), O("div", {
32
- key: 0,
33
- class: "custom-dialog-overlay d-flex align-center justify-center pa-4",
34
- onClick: R(P, ["self"])
35
- }, [
36
- n(B, {
37
- class: "flex-grow-1",
38
- "max-width": "500",
39
- elevation: 12
40
- }, {
41
- default: t(() => [
42
- n(d, { class: "d-flex align-center ga-3 px-6 pb-4 pt-6" }, {
43
- default: t(() => [
44
- n(o, {
45
- color: "warning",
46
- size: "28"
47
- }, {
48
- default: t(() => [...r[0] || (r[0] = [
49
- s("mdi-help-circle", -1)
50
- ])]),
51
- _: 1
52
- }),
53
- I("span", Y, i(m.value), 1)
54
- ]),
55
- _: 1
56
- }),
57
- u.value ? (f(), T(V, {
58
- key: 0,
59
- class: "px-6 pb-4 text-body-2"
60
- }, {
61
- default: t(() => [
62
- s(i(u.value), 1)
63
- ]),
64
- _: 1
65
- })) : b("", !0),
66
- n(z, { class: "d-flex justify-end ga-2 px-6 pb-6 pt-2" }, {
67
- default: t(() => [
68
- n(k, {
69
- color: x.value,
70
- variant: "elevated",
71
- class: "text-none",
72
- onClick: D
73
- }, {
74
- default: t(() => [
75
- s(i(_.value), 1)
76
- ]),
77
- _: 1
78
- }, 8, ["color"]),
79
- n(k, {
80
- color: C.value,
81
- variant: "outlined",
82
- class: "text-none",
83
- onClick: y
84
- }, {
85
- default: t(() => [
86
- s(i(p.value), 1)
87
- ]),
88
- _: 1
89
- }, 8, ["color"])
90
- ]),
91
- _: 1
92
- })
93
- ]),
94
- _: 1
95
- })
96
- ])) : b("", !0)
97
- ]),
98
- _: 1
99
- })
100
- ]);
101
- };
102
- }
103
- }), K = /* @__PURE__ */ U(q, [["__scopeId", "data-v-45577764"]]);
104
- export {
105
- K as F
106
- };
107
- //# sourceMappingURL=messages-FzCustomConfirmDialog-DF73kvKq.js.map