@c3labsbr/vuetify-elements 1.2.5 → 1.3.1

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 (108) hide show
  1. package/dist/components/atoms/CInput/CInput.vue.d.ts +336 -0
  2. package/dist/components/atoms/CInput/CInput.vue.d.ts.map +1 -0
  3. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +266 -0
  4. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -0
  5. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +335 -0
  6. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -0
  7. package/dist/components/atoms/CInput/CInputText.vue.d.ts +266 -0
  8. package/dist/components/atoms/CInput/CInputText.vue.d.ts.map +1 -0
  9. package/dist/components/atoms/CInput/props.d.ts +181 -0
  10. package/dist/components/atoms/CInput/props.d.ts.map +1 -0
  11. package/dist/components/atoms/CInput/select-props.d.ts +53 -0
  12. package/dist/components/atoms/CInput/select-props.d.ts.map +1 -0
  13. package/dist/components/atoms/CircularLoading.vue.d.ts +3 -0
  14. package/dist/components/atoms/CircularLoading.vue.d.ts.map +1 -0
  15. package/dist/components/atoms/FormCardTitle.vue.d.ts +15 -0
  16. package/dist/components/atoms/FormCardTitle.vue.d.ts.map +1 -0
  17. package/dist/components/molecules/ActionBtn.vue.d.ts +24 -1
  18. package/dist/components/molecules/ActionBtn.vue.d.ts.map +1 -1
  19. package/dist/components/molecules/AdjustColumnsDialog.vue.d.ts +3 -3
  20. package/dist/components/molecules/AdjustColumnsDialog.vue.d.ts.map +1 -1
  21. package/dist/components/molecules/FormTitle.vue.d.ts +34 -0
  22. package/dist/components/molecules/FormTitle.vue.d.ts.map +1 -0
  23. package/dist/components/organisms/FormActionsButtons.vue.d.ts +24 -0
  24. package/dist/components/organisms/FormActionsButtons.vue.d.ts.map +1 -0
  25. package/dist/components/organisms/FormButtonOptionsField.vue.d.ts +20 -0
  26. package/dist/components/organisms/FormButtonOptionsField.vue.d.ts.map +1 -0
  27. package/dist/components/organisms/FormFields.vue.d.ts +47 -0
  28. package/dist/components/organisms/FormFields.vue.d.ts.map +1 -0
  29. package/dist/components/organisms/GenericHeaderActions.vue.d.ts +1 -1
  30. package/dist/components/organisms/GenericHeaderActions.vue.d.ts.map +1 -1
  31. package/dist/components/organisms/GenericItemActions.vue.d.ts +1 -1
  32. package/dist/components/organisms/GenericItemActions.vue.d.ts.map +1 -1
  33. package/dist/components/organisms/GenericTableHeader.vue.d.ts +4 -3
  34. package/dist/components/organisms/GenericTableHeader.vue.d.ts.map +1 -1
  35. package/dist/components/organisms/GenericTablePagination.vue.d.ts +3 -3
  36. package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
  37. package/dist/components/organisms/TableCell.vue.d.ts +1 -1
  38. package/dist/components/organisms/TableCell.vue.d.ts.map +1 -1
  39. package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts +28 -0
  40. package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts.map +1 -0
  41. package/dist/components/organisms/TableColumnFilterMenu.vue.d.ts +1 -1
  42. package/dist/components/organisms/TableColumnFilterMenu.vue.d.ts.map +1 -1
  43. package/dist/components/organisms/TableHeader.vue.d.ts +9 -4
  44. package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
  45. package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts +2 -0
  46. package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts.map +1 -0
  47. package/dist/components/organisms/__tests__/GenericHeaderActions.spec.d.ts.map +1 -0
  48. package/dist/components/organisms/__tests__/GenericItemActions.spec.d.ts.map +1 -0
  49. package/dist/components/organisms/__tests__/GenericTableHeader.spec.d.ts.map +1 -0
  50. package/dist/components/templates/GenericForm.vue.d.ts +159 -0
  51. package/dist/components/templates/GenericForm.vue.d.ts.map +1 -0
  52. package/dist/components/templates/GenericFormFlat.vue.d.ts +149 -0
  53. package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -0
  54. package/dist/components/templates/GenericTable.vue.d.ts +8 -7
  55. package/dist/components/templates/GenericTable.vue.d.ts.map +1 -1
  56. package/dist/components/templates/form-props.d.ts +102 -0
  57. package/dist/components/templates/form-props.d.ts.map +1 -0
  58. package/dist/composables/useAutoTableResize.d.ts +24 -0
  59. package/dist/composables/useAutoTableResize.d.ts.map +1 -0
  60. package/dist/helpers/__tests__/currency-formatters.spec.d.ts +2 -0
  61. package/dist/helpers/__tests__/currency-formatters.spec.d.ts.map +1 -0
  62. package/dist/helpers/__tests__/format-hour.spec.d.ts +2 -0
  63. package/dist/helpers/__tests__/format-hour.spec.d.ts.map +1 -0
  64. package/dist/helpers/__tests__/formatters.spec.d.ts.map +1 -0
  65. package/dist/helpers/__tests__/masks.spec.d.ts.map +1 -0
  66. package/dist/helpers/currency-formatters.d.ts +31 -0
  67. package/dist/helpers/currency-formatters.d.ts.map +1 -0
  68. package/dist/helpers/exceptions.d.ts +6 -0
  69. package/dist/helpers/exceptions.d.ts.map +1 -0
  70. package/dist/helpers/format-hour.d.ts +2 -0
  71. package/dist/helpers/format-hour.d.ts.map +1 -0
  72. package/dist/helpers/formatters.d.ts +22 -35
  73. package/dist/helpers/formatters.d.ts.map +1 -1
  74. package/dist/helpers/masks.d.ts.map +1 -1
  75. package/dist/helpers/string-utils.d.ts +7 -0
  76. package/dist/helpers/string-utils.d.ts.map +1 -0
  77. package/dist/helpers/toastify.d.ts +17 -0
  78. package/dist/helpers/toastify.d.ts.map +1 -0
  79. package/dist/helpers/useFieldHelpers.d.ts +11 -0
  80. package/dist/helpers/useFieldHelpers.d.ts.map +1 -0
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/infra/i18n/en_us/words.json.d.ts +8 -1
  84. package/dist/infra/i18n/interfaces.d.ts +7 -0
  85. package/dist/infra/i18n/interfaces.d.ts.map +1 -1
  86. package/dist/infra/i18n/pt_br/words.json.d.ts +8 -1
  87. package/dist/interfaces/genericForm.d.ts +72 -0
  88. package/dist/interfaces/genericForm.d.ts.map +1 -0
  89. package/dist/interfaces/{app.d.ts → genericTable.d.ts} +3 -1
  90. package/dist/interfaces/genericTable.d.ts.map +1 -0
  91. package/dist/plugin.d.ts.map +1 -1
  92. package/dist/utils/export.d.ts +1 -1
  93. package/dist/utils/export.d.ts.map +1 -1
  94. package/dist/vuetify-elements.cjs.js +4 -4
  95. package/dist/vuetify-elements.css +1 -1
  96. package/dist/vuetify-elements.es.js +5766 -4522
  97. package/package.json +8 -3
  98. package/dist/components/organisms/GenericHeaderActions.spec.d.ts.map +0 -1
  99. package/dist/components/organisms/GenericItemActions.spec.d.ts.map +0 -1
  100. package/dist/components/organisms/GenericTableHeader.spec.d.ts.map +0 -1
  101. package/dist/helpers/formatters.spec.d.ts.map +0 -1
  102. package/dist/helpers/masks.spec.d.ts.map +0 -1
  103. package/dist/interfaces/app.d.ts.map +0 -1
  104. /package/dist/components/organisms/{GenericHeaderActions.spec.d.ts → __tests__/GenericHeaderActions.spec.d.ts} +0 -0
  105. /package/dist/components/organisms/{GenericItemActions.spec.d.ts → __tests__/GenericItemActions.spec.d.ts} +0 -0
  106. /package/dist/components/organisms/{GenericTableHeader.spec.d.ts → __tests__/GenericTableHeader.spec.d.ts} +0 -0
  107. /package/dist/helpers/{formatters.spec.d.ts → __tests__/formatters.spec.d.ts} +0 -0
  108. /package/dist/helpers/{masks.spec.d.ts → __tests__/masks.spec.d.ts} +0 -0
@@ -1,6 +1,4 @@
1
- import { JSXComponent } from 'vuetify';
2
- import { FilterType, IHeader } from '../../interfaces/app';
3
- type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
1
+ import { FilterType, IconValue, IHeader } from '../../interfaces/genericTable';
4
2
  type __VLS_Props = {
5
3
  columns: Array<IHeader>;
6
4
  isSorted: (column: any) => boolean;
@@ -8,7 +6,14 @@ type __VLS_Props = {
8
6
  toggleSort: (column: any) => void;
9
7
  filterFn?: (filters: Array<FilterType>) => void;
10
8
  };
11
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
9
+ type __VLS_PublicProps = {
10
+ "sortedHeaders"?: IHeader[];
11
+ } & __VLS_Props;
12
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:sortedHeaders": (value: IHeader[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
15
+ "onUpdate:sortedHeaders"?: (value: IHeader[]) => any;
16
+ }, {}, {}>;
12
17
  export default _default;
13
18
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
19
  type __VLS_TypePropsToOption<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/TableHeader.vue"],"names":[],"mappings":"AAgDA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG3D,KAAK,SAAS,GACV,MAAM,GACN,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,GAC5C,YAAY,CAAC;AAEjB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;IACnC,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,SAAS,CAAC;IACxC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG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;AAsGhB,wBAOG;AAEH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GenericDataTable.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericDataTable.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/GenericDataTable.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericHeaderActions.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/GenericHeaderActions.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericItemActions.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/GenericItemActions.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericTableHeader.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/GenericTableHeader.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,159 @@
1
+ import { IField } from '../../interfaces/genericForm';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ custom?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{
12
+ isDialogVisible: {
13
+ type: BooleanConstructor;
14
+ required: boolean;
15
+ default: boolean;
16
+ };
17
+ fields: {
18
+ type: () => IField[];
19
+ required: boolean;
20
+ default: () => any[];
21
+ };
22
+ title: {
23
+ type: StringConstructor;
24
+ required: boolean;
25
+ };
26
+ subtitle: {
27
+ type: StringConstructor;
28
+ required: boolean;
29
+ default: string;
30
+ };
31
+ initialData: {
32
+ type: () => import('./form-props').IInitialData;
33
+ required: boolean;
34
+ default: () => {};
35
+ };
36
+ minWidth: {
37
+ type: StringConstructor;
38
+ required: boolean;
39
+ default: string;
40
+ };
41
+ width: {
42
+ type: StringConstructor;
43
+ required: boolean;
44
+ default: string;
45
+ };
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ required: boolean;
49
+ default: boolean;
50
+ };
51
+ noActionButtons: {
52
+ type: BooleanConstructor;
53
+ required: boolean;
54
+ default: boolean;
55
+ };
56
+ loading: {
57
+ type: BooleanConstructor;
58
+ required: boolean;
59
+ default: boolean;
60
+ };
61
+ addBtnText: {
62
+ type: StringConstructor;
63
+ required: boolean;
64
+ default: any;
65
+ };
66
+ notClearOnClose: {
67
+ type: BooleanConstructor;
68
+ required: boolean;
69
+ default: boolean;
70
+ };
71
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
72
+ "update:isDialogVisible": (value: boolean) => void;
73
+ submit: (data: any) => void;
74
+ cancel: () => void;
75
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
+ isDialogVisible: {
77
+ type: BooleanConstructor;
78
+ required: boolean;
79
+ default: boolean;
80
+ };
81
+ fields: {
82
+ type: () => IField[];
83
+ required: boolean;
84
+ default: () => any[];
85
+ };
86
+ title: {
87
+ type: StringConstructor;
88
+ required: boolean;
89
+ };
90
+ subtitle: {
91
+ type: StringConstructor;
92
+ required: boolean;
93
+ default: string;
94
+ };
95
+ initialData: {
96
+ type: () => import('./form-props').IInitialData;
97
+ required: boolean;
98
+ default: () => {};
99
+ };
100
+ minWidth: {
101
+ type: StringConstructor;
102
+ required: boolean;
103
+ default: string;
104
+ };
105
+ width: {
106
+ type: StringConstructor;
107
+ required: boolean;
108
+ default: string;
109
+ };
110
+ disabled: {
111
+ type: BooleanConstructor;
112
+ required: boolean;
113
+ default: boolean;
114
+ };
115
+ noActionButtons: {
116
+ type: BooleanConstructor;
117
+ required: boolean;
118
+ default: boolean;
119
+ };
120
+ loading: {
121
+ type: BooleanConstructor;
122
+ required: boolean;
123
+ default: boolean;
124
+ };
125
+ addBtnText: {
126
+ type: StringConstructor;
127
+ required: boolean;
128
+ default: any;
129
+ };
130
+ notClearOnClose: {
131
+ type: BooleanConstructor;
132
+ required: boolean;
133
+ default: boolean;
134
+ };
135
+ }>> & {
136
+ onSubmit?: (data: any) => any;
137
+ onCancel?: () => any;
138
+ "onUpdate:isDialogVisible"?: (value: boolean) => any;
139
+ }, {
140
+ loading: boolean;
141
+ disabled: boolean;
142
+ minWidth: string;
143
+ width: string;
144
+ subtitle: string;
145
+ addBtnText: string;
146
+ fields: IField[];
147
+ noActionButtons: boolean;
148
+ isDialogVisible: boolean;
149
+ initialData: {};
150
+ notClearOnClose: boolean;
151
+ }, {}>;
152
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
153
+ export default _default;
154
+ type __VLS_WithTemplateSlots<T, S> = T & {
155
+ new (): {
156
+ $slots: S;
157
+ };
158
+ };
159
+ //# sourceMappingURL=GenericForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericForm.vue"],"names":[],"mappings":"AAoDA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAgCtD,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;wBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,149 @@
1
+ import { IField } from '../../interfaces/genericForm';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ hideCancelButton: BooleanConstructor;
4
+ noActionButtons: BooleanConstructor;
5
+ isDialogVisible: {
6
+ type: BooleanConstructor;
7
+ required: boolean;
8
+ default: boolean;
9
+ };
10
+ fields: {
11
+ type: () => IField[];
12
+ required: boolean;
13
+ default: () => any[];
14
+ };
15
+ title: {
16
+ type: StringConstructor;
17
+ required: boolean;
18
+ };
19
+ subtitle: {
20
+ type: StringConstructor;
21
+ required: boolean;
22
+ default: string;
23
+ };
24
+ initialData: {
25
+ type: () => import('./form-props').IInitialData;
26
+ required: boolean;
27
+ default: () => {};
28
+ };
29
+ minWidth: {
30
+ type: StringConstructor;
31
+ required: boolean;
32
+ default: string;
33
+ };
34
+ width: {
35
+ type: StringConstructor;
36
+ required: boolean;
37
+ default: string;
38
+ };
39
+ disabled: {
40
+ type: BooleanConstructor;
41
+ required: boolean;
42
+ default: boolean;
43
+ };
44
+ loading: {
45
+ type: BooleanConstructor;
46
+ required: boolean;
47
+ default: boolean;
48
+ };
49
+ addBtnText: {
50
+ type: StringConstructor;
51
+ required: boolean;
52
+ default: any;
53
+ };
54
+ notClearOnClose: {
55
+ type: BooleanConstructor;
56
+ required: boolean;
57
+ default: boolean;
58
+ };
59
+ modelValue: {
60
+ type: import('vue').PropType<any>;
61
+ };
62
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
+ cancel: (...args: any[]) => void;
64
+ submit: (...args: any[]) => void;
65
+ updateField: (...args: any[]) => void;
66
+ updateSearch: (...args: any[]) => void;
67
+ "update:modelValue": (value: any) => void;
68
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
69
+ hideCancelButton: BooleanConstructor;
70
+ noActionButtons: BooleanConstructor;
71
+ isDialogVisible: {
72
+ type: BooleanConstructor;
73
+ required: boolean;
74
+ default: boolean;
75
+ };
76
+ fields: {
77
+ type: () => IField[];
78
+ required: boolean;
79
+ default: () => any[];
80
+ };
81
+ title: {
82
+ type: StringConstructor;
83
+ required: boolean;
84
+ };
85
+ subtitle: {
86
+ type: StringConstructor;
87
+ required: boolean;
88
+ default: string;
89
+ };
90
+ initialData: {
91
+ type: () => import('./form-props').IInitialData;
92
+ required: boolean;
93
+ default: () => {};
94
+ };
95
+ minWidth: {
96
+ type: StringConstructor;
97
+ required: boolean;
98
+ default: string;
99
+ };
100
+ width: {
101
+ type: StringConstructor;
102
+ required: boolean;
103
+ default: string;
104
+ };
105
+ disabled: {
106
+ type: BooleanConstructor;
107
+ required: boolean;
108
+ default: boolean;
109
+ };
110
+ loading: {
111
+ type: BooleanConstructor;
112
+ required: boolean;
113
+ default: boolean;
114
+ };
115
+ addBtnText: {
116
+ type: StringConstructor;
117
+ required: boolean;
118
+ default: any;
119
+ };
120
+ notClearOnClose: {
121
+ type: BooleanConstructor;
122
+ required: boolean;
123
+ default: boolean;
124
+ };
125
+ modelValue: {
126
+ type: import('vue').PropType<any>;
127
+ };
128
+ }>> & {
129
+ "onUpdate:modelValue"?: (value: any) => any;
130
+ onSubmit?: (...args: any[]) => any;
131
+ onCancel?: (...args: any[]) => any;
132
+ onUpdateField?: (...args: any[]) => any;
133
+ onUpdateSearch?: (...args: any[]) => any;
134
+ }, {
135
+ loading: boolean;
136
+ disabled: boolean;
137
+ minWidth: string;
138
+ width: string;
139
+ subtitle: string;
140
+ hideCancelButton: boolean;
141
+ addBtnText: string;
142
+ fields: IField[];
143
+ noActionButtons: boolean;
144
+ isDialogVisible: boolean;
145
+ initialData: {};
146
+ notClearOnClose: boolean;
147
+ }, {}>;
148
+ export default _default;
149
+ //# sourceMappingURL=GenericFormFlat.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFormFlat.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericFormFlat.vue"],"names":[],"mappings":"AA+GA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoQtD,wBAiBG"}
@@ -1,10 +1,11 @@
1
- import { IPagination, IHeader, FilterType } from '../../interfaces/app';
1
+ import { IPagination, IHeader, FilterType } from '../../interfaces/genericTable';
2
2
  type __VLS_Props = {
3
3
  keyWord: string;
4
4
  noItemsText: any;
5
5
  hideCreate?: boolean;
6
6
  hideSearch?: boolean;
7
7
  hideHeader?: boolean;
8
+ hideSortHeader?: boolean;
8
9
  loading?: boolean;
9
10
  filterFn?: (filters: Array<FilterType>) => void;
10
11
  variant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
@@ -34,12 +35,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOp
34
35
  "update:headers": (value: IHeader[]) => void;
35
36
  "update:items": (value: any) => void;
36
37
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
37
- "onUpdate:options"?: ((...args: any[]) => any) | undefined;
38
- "onUpdate:pagination"?: ((value: IPagination) => any) | undefined;
39
- onCreateItem?: ((...args: any[]) => any) | undefined;
40
- "onUpdate:search"?: ((...args: any[]) => any) | undefined;
41
- "onUpdate:headers"?: ((value: IHeader[]) => any) | undefined;
42
- "onUpdate:items"?: ((value: any) => any) | undefined;
38
+ "onUpdate:options"?: (...args: any[]) => any;
39
+ "onUpdate:pagination"?: (value: IPagination) => any;
40
+ onCreateItem?: (...args: any[]) => any;
41
+ "onUpdate:search"?: (...args: any[]) => any;
42
+ "onUpdate:headers"?: (value: IHeader[]) => any;
43
+ "onUpdate:items"?: (value: any) => any;
43
44
  }, {}, {}>;
44
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
46
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"GenericTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/templates/GenericTable.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAgB7E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EACN,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,UAAU,GACV,OAAO,GACP,SAAS,CAAC;CACb,CAAC;AAsBF,KAAK,iBAAiB,GAAG;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE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A;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC;AACF,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,102 @@
1
+ import { IField } from './../../interfaces/genericForm';
2
+ export interface IInitialData {
3
+ [key: string]: any;
4
+ }
5
+ export declare const formProps: {
6
+ props: {
7
+ isDialogVisible: {
8
+ type: BooleanConstructor;
9
+ required: boolean;
10
+ default: boolean;
11
+ };
12
+ /**
13
+ * Define the array of fields to be rendered in the form
14
+ */
15
+ fields: {
16
+ type: () => IField[];
17
+ required: boolean;
18
+ default: () => any[];
19
+ };
20
+ /**
21
+ * Define the title of the form
22
+ */
23
+ title: {
24
+ type: StringConstructor;
25
+ required: boolean;
26
+ };
27
+ /**
28
+ * Define the subtitle of the form
29
+ */
30
+ subtitle: {
31
+ type: StringConstructor;
32
+ required: boolean;
33
+ default: string;
34
+ };
35
+ /**
36
+ * Define the initial data to populate the form fields
37
+ *
38
+ */
39
+ initialData: {
40
+ type: () => IInitialData;
41
+ required: boolean;
42
+ default: () => {};
43
+ };
44
+ /**
45
+ * Define the minimum width of the form
46
+ */
47
+ minWidth: {
48
+ type: StringConstructor;
49
+ required: boolean;
50
+ default: string;
51
+ };
52
+ /**
53
+ * Define the width of the form
54
+ */
55
+ width: {
56
+ type: StringConstructor;
57
+ required: boolean;
58
+ default: string;
59
+ };
60
+ /**
61
+ * Define if the form is disabled
62
+ */
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ required: boolean;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * Define if action buttons are hidden
70
+ */
71
+ noActionButtons: {
72
+ type: BooleanConstructor;
73
+ required: boolean;
74
+ default: boolean;
75
+ };
76
+ /**
77
+ * Define if the form is in loading state
78
+ */
79
+ loading: {
80
+ type: BooleanConstructor;
81
+ required: boolean;
82
+ default: boolean;
83
+ };
84
+ /**
85
+ * Define the text for the add button
86
+ */
87
+ addBtnText: {
88
+ type: StringConstructor;
89
+ required: boolean;
90
+ default: any;
91
+ };
92
+ /**
93
+ * Define if the form should not clear on close
94
+ */
95
+ notClearOnClose: {
96
+ type: BooleanConstructor;
97
+ required: boolean;
98
+ default: boolean;
99
+ };
100
+ };
101
+ };
102
+ //# sourceMappingURL=form-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-props.d.ts","sourceRoot":"","sources":["../../../src/components/templates/form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,SAAS;;;;;;;QAOlB;;WAEG;;kBAEc,MAAM,MAAM,EAAE;;;;QAI/B;;WAEG;;;;;QAKH;;WAEG;;;;;;QAMH;;;WAGG;;kBAEe,MAAM,YAAY;;;;QAIpC;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;QAMH;;WAEG;;;;;;;CAON,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Ref } from 'vue';
2
+ interface UseAutoTableResizeOptions {
3
+ tableRef: Ref<any>;
4
+ props: {
5
+ disableScroll?: boolean;
6
+ items: any[];
7
+ headers: Array<{
8
+ value: string;
9
+ isVisible: boolean;
10
+ }>;
11
+ };
12
+ pagination: Ref<{
13
+ pageSize: number;
14
+ page: number;
15
+ }>;
16
+ maxHeightVH?: number;
17
+ hysteresis?: number;
18
+ }
19
+ export declare function useAutoTableResize({ tableRef, props, pagination, maxHeightVH, hysteresis, }: UseAutoTableResizeOptions): {
20
+ tableHeight: Ref<string>;
21
+ tableHideOverflow: Ref<boolean>;
22
+ };
23
+ export {};
24
+ //# sourceMappingURL=useAutoTableResize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoTableResize.d.ts","sourceRoot":"","sources":["../../src/composables/useAutoTableResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,GAAG,EACT,MAAM,KAAK,CAAC;AAEb,UAAU,yBAAyB;IACjC,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB,KAAK,EAAE;QACL,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,KAAK,EAAE,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;KACvD,CAAC;IACF,UAAU,EAAE,GAAG,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,UAAU,EACV,WAAgB,EAChB,UAAc,GACf,EAAE,yBAAyB;;;EAiH3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=currency-formatters.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-formatters.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/currency-formatters.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=format-hour.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-hour.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/format-hour.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/formatters.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"masks.spec.d.ts","sourceRoot":"","sources":["../../../src/helpers/__tests__/masks.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Format a value to Brazilian currency with the symbol R$.
3
+ * @param value - The numeric value to be formatted.
4
+ * @returns The formatted currency string with the symbol R$.
5
+ */
6
+ export declare const formatCurrency: (value: string | number) => string;
7
+ /**
8
+ * Format a value to Brazilian currency without the symbol R$.
9
+ * @param value - The numeric value to be formatted.
10
+ * @returns The formatted currency string without the symbol R$.
11
+ */
12
+ export declare const formatBrl: (value: string | number) => string;
13
+ /**
14
+ * Format a value for input (with 2 decimal places and without the symbol R$).
15
+ * @param value - The numeric value to be formatted.
16
+ * @returns The formatted input string.
17
+ */
18
+ export declare const formatBrlToInput: (value: string | number) => string;
19
+ /**
20
+ * Format a value with 5 decimal places (ex: 0,00000).
21
+ * @param value - The numeric value to be formatted.
22
+ * @returns The formatted string with 5 decimal places.
23
+ */
24
+ export declare const formatBrlToInputFiveDecimalPlaces: (value: string | number) => string;
25
+ /**
26
+ * Format a weight (in kg) with two decimal places.
27
+ * @param value - The weight value to be formatted.
28
+ * @returns The formatted weight string.
29
+ */
30
+ export declare const formatWeight: (value: string) => string;
31
+ //# sourceMappingURL=currency-formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-formatters.d.ts","sourceRoot":"","sources":["../../src/helpers/currency-formatters.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,MAUvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,MAGlD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,MAGzD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAC5C,OAAO,MAAM,GAAG,MAAM,KACrB,MAWF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAG5C,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare function handleErrorMessage(error: any, errorVariable?: Record<string, any> | Array<{
2
+ model: string;
3
+ error: string;
4
+ }>): void;
5
+ export { handleErrorMessage, };
6
+ //# sourceMappingURL=exceptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exceptions.d.ts","sourceRoot":"","sources":["../../src/helpers/exceptions.ts"],"names":[],"mappings":"AA8EA,iBAAS,kBAAkB,CACzB,KAAK,EAAE,GAAG,EACV,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAC5E,IAAI,CAoCN;AAmLD,OAAO,EACL,kBAAkB,GAUnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const formatHour: (value: string) => string;
2
+ //# sourceMappingURL=format-hour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-hour.d.ts","sourceRoot":"","sources":["../../src/helpers/format-hour.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAO1C,CAAC"}