@wgalleti/primevue-components 0.6.0 → 0.7.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.
- package/dist/WProgressFlow.vue_vue_type_script_setup_true_lang-B70Uk-1x.cjs +12 -0
- package/dist/WProgressFlow.vue_vue_type_script_setup_true_lang-B70Uk-1x.cjs.map +1 -0
- package/dist/WProgressFlow.vue_vue_type_script_setup_true_lang-BVlG1in1.js +3024 -0
- package/dist/WProgressFlow.vue_vue_type_script_setup_true_lang-BVlG1in1.js.map +1 -0
- package/dist/components/crud/WCrudColumnRenderer.vue.d.ts +1 -1
- package/dist/components/crud/WCrudFormDialog.vue.d.ts +7 -11
- package/dist/components/crud/WCrudView.vue.d.ts +7 -2
- package/dist/components/form/WAutoCompleteFK.vue.d.ts +2 -1
- package/dist/components/form/WFormRenderer.vue.d.ts +1 -1
- package/dist/components/form/WImageCropper.vue.d.ts +57 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/ui/WKpiGrid.vue.d.ts +1 -1
- package/dist/components.cjs +2 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.d.ts +2 -0
- package/dist/components.js +23 -0
- package/dist/components.js.map +1 -0
- package/dist/composables/useCrudManager.d.ts +1 -1
- package/dist/composables.cjs +2 -0
- package/dist/composables.cjs.map +1 -0
- package/dist/composables.d.ts +2 -0
- package/dist/composables.js +12 -0
- package/dist/composables.js.map +1 -0
- package/dist/index.cjs +1 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +122 -3541
- package/dist/index.js.map +1 -1
- package/dist/plugin-BKa0eSEM.js +7 -0
- package/dist/plugin-BKa0eSEM.js.map +1 -0
- package/dist/plugin-D1YvyKXX.cjs +2 -0
- package/dist/plugin-D1YvyKXX.cjs.map +1 -0
- package/dist/primevue-components.css +1 -1
- package/dist/types/action.d.ts +19 -0
- package/dist/types/column.d.ts +30 -0
- package/dist/types/componentMeta.d.ts +33 -0
- package/dist/types/field.d.ts +95 -0
- package/dist/types/index.d.ts +11 -14
- package/dist/types/kpi.d.ts +13 -0
- package/dist/types/labels.d.ts +17 -0
- package/dist/types/manager.d.ts +93 -0
- package/dist/types/plugin.d.ts +24 -2
- package/dist/types.cjs +2 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +23 -0
- package/dist/types.js.map +1 -0
- package/dist/useApi-B692TOWz.js +383 -0
- package/dist/useApi-B692TOWz.js.map +1 -0
- package/dist/useApi-BIlKLud-.cjs +2 -0
- package/dist/useApi-BIlKLud-.cjs.map +1 -0
- package/dist/useApiError-BEbEk2Kq.cjs +3 -0
- package/dist/useApiError-BEbEk2Kq.cjs.map +1 -0
- package/dist/useApiError-C7rPzGrF.js +375 -0
- package/dist/useApiError-C7rPzGrF.js.map +1 -0
- package/dist/utils/csv.d.ts +1 -1
- package/dist/utils/fieldMapper.d.ts +2 -1
- package/package.json +49 -12
- package/dist/types/components/crud/WCrudColumnRenderer.vue.d.ts +0 -8
- package/dist/types/components/crud/WCrudFormDialog.vue.d.ts +0 -52
- package/dist/types/components/crud/WCrudView.vue.d.ts +0 -127
- package/dist/types/components/form/WAutoCompleteFK.vue.d.ts +0 -54
- package/dist/types/components/form/WFormRenderer.vue.d.ts +0 -44
- package/dist/types/components/form/WMoneyInput.vue.d.ts +0 -28
- package/dist/types/components/form/WTransferList.vue.d.ts +0 -25
- package/dist/types/components/index.d.ts +0 -18
- package/dist/types/components/ui/WActionBar.vue.d.ts +0 -25
- package/dist/types/components/ui/WDetailHeader.vue.d.ts +0 -24
- package/dist/types/components/ui/WEmptyState.vue.d.ts +0 -13
- package/dist/types/components/ui/WFormSection.vue.d.ts +0 -19
- package/dist/types/components/ui/WInfoCard.vue.d.ts +0 -11
- package/dist/types/components/ui/WKpiCard.vue.d.ts +0 -32
- package/dist/types/components/ui/WKpiGrid.vue.d.ts +0 -31
- package/dist/types/components/ui/WPageHeader.vue.d.ts +0 -22
- package/dist/types/components/ui/WProgressFlow.vue.d.ts +0 -28
- package/dist/types/components/ui/WSectionHeader.vue.d.ts +0 -22
- package/dist/types/components/ui/WStatusTag.vue.d.ts +0 -10
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/useApi.d.ts +0 -2
- package/dist/types/composables/useApiError.d.ts +0 -4
- package/dist/types/composables/useAppConfirm.d.ts +0 -4
- package/dist/types/composables/useAppToast.d.ts +0 -6
- package/dist/types/composables/useCrudManager.d.ts +0 -2
- package/dist/types/composables/useFormatters.d.ts +0 -19
- package/dist/types/crud.d.ts +0 -221
- package/dist/types/data-providers/axiosDataProvider.d.ts +0 -3
- package/dist/types/data-providers/index.d.ts +0 -2
- package/dist/types/data-providers/supabaseDataProvider.d.ts +0 -54
- package/dist/types/types/api.d.ts +0 -60
- package/dist/types/types/crud.d.ts +0 -221
- package/dist/types/types/dataProvider.d.ts +0 -28
- package/dist/types/types/index.d.ts +0 -6
- package/dist/types/types/plugin.d.ts +0 -24
- package/dist/types/utils/cep.d.ts +0 -14
- package/dist/types/utils/csv.d.ts +0 -13
- package/dist/types/utils/dates.d.ts +0 -5
- package/dist/types/utils/fieldMapper.d.ts +0 -20
- package/dist/types/utils/masks.d.ts +0 -8
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { FieldDef } from '@/types/crud';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
title: string;
|
|
5
|
-
fields: FieldDef[];
|
|
6
|
-
formData: Record<string, unknown>;
|
|
7
|
-
isEditing: boolean;
|
|
8
|
-
saving: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
width?: string;
|
|
11
|
-
/** Nº de colunas do grid do form (repassado ao WFormRenderer; default 2). */
|
|
12
|
-
formColumns?: number;
|
|
13
|
-
};
|
|
14
|
-
declare var __VLS_20: `field-${string}`, __VLS_21: {
|
|
15
|
-
field: FieldDef;
|
|
16
|
-
formData: Record<string, unknown>;
|
|
17
|
-
isEditing: boolean;
|
|
18
|
-
setFormField: (f: string, v: unknown) => void;
|
|
19
|
-
}, __VLS_24: `image-${string}`, __VLS_25: {
|
|
20
|
-
field: FieldDef;
|
|
21
|
-
formData: Record<string, unknown>;
|
|
22
|
-
}, __VLS_27: {
|
|
23
|
-
saving: boolean;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
};
|
|
26
|
-
type __VLS_Slots = {} & {
|
|
27
|
-
[K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any;
|
|
28
|
-
} & {
|
|
29
|
-
[K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
|
|
30
|
-
} & {
|
|
31
|
-
footer?: (props: typeof __VLS_27) => any;
|
|
32
|
-
};
|
|
33
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
-
"update:visible": (value: boolean) => any;
|
|
35
|
-
"update:field": (field: string, value: unknown) => any;
|
|
36
|
-
save: () => any;
|
|
37
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
39
|
-
"onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
|
|
40
|
-
onSave?: (() => any) | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
width: string;
|
|
44
|
-
formColumns: number;
|
|
45
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
47
|
-
export default _default;
|
|
48
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
-
new (): {
|
|
50
|
-
$slots: S;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { CrudManagerReturn, KpiItem } from '@/types/crud';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
crud: CrudManagerReturn<any>;
|
|
4
|
-
title: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
showSearch?: boolean;
|
|
7
|
-
showHeader?: boolean;
|
|
8
|
-
dialogWidth?: string;
|
|
9
|
-
/** Nº de colunas do grid do form dialog (default: `formColumns` da config
|
|
10
|
-
* do useCrudManager, senão 2). */
|
|
11
|
-
formColumns?: number;
|
|
12
|
-
autoInit?: boolean;
|
|
13
|
-
showKpi?: boolean;
|
|
14
|
-
kpiIcon?: string;
|
|
15
|
-
kpiLabel?: string;
|
|
16
|
-
extraKpis?: KpiItem[];
|
|
17
|
-
expandable?: boolean;
|
|
18
|
-
viewToggle?: boolean;
|
|
19
|
-
defaultView?: 'table' | 'cards';
|
|
20
|
-
cardFields?: number;
|
|
21
|
-
actionRail?: boolean;
|
|
22
|
-
contextMenu?: boolean;
|
|
23
|
-
showPrint?: boolean;
|
|
24
|
-
exportCsv?: boolean;
|
|
25
|
-
csvFilename?: string;
|
|
26
|
-
csvScope?: 'all' | 'page';
|
|
27
|
-
csvPageSize?: number;
|
|
28
|
-
};
|
|
29
|
-
declare var __VLS_1: {}, __VLS_11: {}, __VLS_43: {}, __VLS_45: {}, __VLS_47: {}, __VLS_81: {}, __VLS_92: `column-${string}`, __VLS_93: {
|
|
30
|
-
data: any;
|
|
31
|
-
value: any;
|
|
32
|
-
}, __VLS_110: {
|
|
33
|
-
data: any;
|
|
34
|
-
crud: CrudManagerReturn<any>;
|
|
35
|
-
}, __VLS_112: {
|
|
36
|
-
data: any;
|
|
37
|
-
}, __VLS_130: {}, __VLS_132: {}, __VLS_134: {}, __VLS_168: {}, __VLS_171: `column-${string}`, __VLS_172: {
|
|
38
|
-
data: any;
|
|
39
|
-
value: any;
|
|
40
|
-
}, __VLS_185: {
|
|
41
|
-
data: any;
|
|
42
|
-
crud: CrudManagerReturn<any>;
|
|
43
|
-
}, __VLS_211: {
|
|
44
|
-
selected: Record<string, unknown> | null;
|
|
45
|
-
crud: CrudManagerReturn<any>;
|
|
46
|
-
}, __VLS_235: {
|
|
47
|
-
crud: CrudManagerReturn<any>;
|
|
48
|
-
dialogWidth: string;
|
|
49
|
-
}, __VLS_247: `field-${string}`, __VLS_248: {
|
|
50
|
-
field: import("@/types/crud").FieldDef;
|
|
51
|
-
formData: Record<string, unknown>;
|
|
52
|
-
isEditing: boolean;
|
|
53
|
-
setFormField: (f: string, v: unknown) => void;
|
|
54
|
-
};
|
|
55
|
-
type __VLS_Slots = {} & {
|
|
56
|
-
[K in NonNullable<typeof __VLS_92>]?: (props: typeof __VLS_93) => any;
|
|
57
|
-
} & {
|
|
58
|
-
[K in NonNullable<typeof __VLS_171>]?: (props: typeof __VLS_172) => any;
|
|
59
|
-
} & {
|
|
60
|
-
[K in NonNullable<typeof __VLS_247>]?: (props: typeof __VLS_248) => any;
|
|
61
|
-
} & {
|
|
62
|
-
'header-actions'?: (props: typeof __VLS_1) => any;
|
|
63
|
-
} & {
|
|
64
|
-
'before-table'?: (props: typeof __VLS_11) => any;
|
|
65
|
-
} & {
|
|
66
|
-
'toolbar-start'?: (props: typeof __VLS_43) => any;
|
|
67
|
-
} & {
|
|
68
|
-
'toolbar-filters'?: (props: typeof __VLS_45) => any;
|
|
69
|
-
} & {
|
|
70
|
-
'toolbar-actions'?: (props: typeof __VLS_47) => any;
|
|
71
|
-
} & {
|
|
72
|
-
empty?: (props: typeof __VLS_81) => any;
|
|
73
|
-
} & {
|
|
74
|
-
'row-actions'?: (props: typeof __VLS_110) => any;
|
|
75
|
-
} & {
|
|
76
|
-
expansion?: (props: typeof __VLS_112) => any;
|
|
77
|
-
} & {
|
|
78
|
-
'toolbar-start'?: (props: typeof __VLS_130) => any;
|
|
79
|
-
} & {
|
|
80
|
-
'toolbar-filters'?: (props: typeof __VLS_132) => any;
|
|
81
|
-
} & {
|
|
82
|
-
'toolbar-actions'?: (props: typeof __VLS_134) => any;
|
|
83
|
-
} & {
|
|
84
|
-
empty?: (props: typeof __VLS_168) => any;
|
|
85
|
-
} & {
|
|
86
|
-
'row-actions'?: (props: typeof __VLS_185) => any;
|
|
87
|
-
} & {
|
|
88
|
-
'rail-actions'?: (props: typeof __VLS_211) => any;
|
|
89
|
-
} & {
|
|
90
|
-
'form-dialog'?: (props: typeof __VLS_235) => any;
|
|
91
|
-
};
|
|
92
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
93
|
-
"row-expand": (data: unknown) => any;
|
|
94
|
-
"row-collapse": (data: unknown) => any;
|
|
95
|
-
print: (data: Record<string, unknown>) => any;
|
|
96
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
97
|
-
"onRow-expand"?: ((data: unknown) => any) | undefined;
|
|
98
|
-
"onRow-collapse"?: ((data: unknown) => any) | undefined;
|
|
99
|
-
onPrint?: ((data: Record<string, unknown>) => any) | undefined;
|
|
100
|
-
}>, {
|
|
101
|
-
dialogWidth: string;
|
|
102
|
-
contextMenu: boolean;
|
|
103
|
-
showHeader: boolean;
|
|
104
|
-
showSearch: boolean;
|
|
105
|
-
autoInit: boolean;
|
|
106
|
-
showKpi: boolean;
|
|
107
|
-
kpiIcon: string;
|
|
108
|
-
kpiLabel: string;
|
|
109
|
-
extraKpis: KpiItem[];
|
|
110
|
-
expandable: boolean;
|
|
111
|
-
viewToggle: boolean;
|
|
112
|
-
defaultView: "table" | "cards";
|
|
113
|
-
cardFields: number;
|
|
114
|
-
actionRail: boolean;
|
|
115
|
-
showPrint: boolean;
|
|
116
|
-
exportCsv: boolean;
|
|
117
|
-
csvFilename: string;
|
|
118
|
-
csvScope: "all" | "page";
|
|
119
|
-
csvPageSize: number;
|
|
120
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
121
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
122
|
-
export default _default;
|
|
123
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
124
|
-
new (): {
|
|
125
|
-
$slots: S;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { FieldDef, ColumnDef } from '@/types/crud';
|
|
2
|
-
interface ColumnMeta {
|
|
3
|
-
field: string;
|
|
4
|
-
header: string;
|
|
5
|
-
}
|
|
6
|
-
/** Filtro em cascata já resolvido (nome do parâmetro + valor atual). */
|
|
7
|
-
interface DrilldownFilter {
|
|
8
|
-
field: string;
|
|
9
|
-
value: unknown;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
}
|
|
12
|
-
type __VLS_Props = {
|
|
13
|
-
modelValue: string | number | Record<string, unknown> | null;
|
|
14
|
-
endpoint: string;
|
|
15
|
-
endpointParams?: Record<string, string | number | boolean>;
|
|
16
|
-
/** Filtro(s) em cascata resolvido(s): aplicado(s) como parâmetro na busca. Com
|
|
17
|
-
* `required` (default true), a busca só ocorre quando o valor estiver preenchido. */
|
|
18
|
-
drilldown?: DrilldownFilter | DrilldownFilter[];
|
|
19
|
-
optionLabel?: string;
|
|
20
|
-
optionValue?: string;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
/** Placeholder exibido enquanto uma cascata obrigatória não estiver preenchida. */
|
|
23
|
-
blockedPlaceholder?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
showClear?: boolean;
|
|
26
|
-
forceSelection?: boolean;
|
|
27
|
-
columns?: ColumnMeta[];
|
|
28
|
-
minLength?: number;
|
|
29
|
-
dialogHeader?: string;
|
|
30
|
-
canCreate?: boolean;
|
|
31
|
-
canEdit?: boolean;
|
|
32
|
-
canDelete?: boolean;
|
|
33
|
-
crudFields?: FieldDef[];
|
|
34
|
-
crudColumns?: ColumnDef[];
|
|
35
|
-
dialogWidth?: string;
|
|
36
|
-
};
|
|
37
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
-
"update:modelValue": (value: Record<string, unknown> | null) => any;
|
|
39
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
|
-
"onUpdate:modelValue"?: ((value: Record<string, unknown> | null) => any) | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
placeholder: string;
|
|
43
|
-
optionLabel: string;
|
|
44
|
-
optionValue: string;
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
showClear: boolean;
|
|
47
|
-
forceSelection: boolean;
|
|
48
|
-
minLength: number;
|
|
49
|
-
canCreate: boolean;
|
|
50
|
-
canEdit: boolean;
|
|
51
|
-
canDelete: boolean;
|
|
52
|
-
dialogWidth: string;
|
|
53
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
|
-
export default _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { FieldDef } from '@/types/crud';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
fields: FieldDef[];
|
|
4
|
-
formData: Record<string, unknown>;
|
|
5
|
-
isEditing: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/** Nº de colunas do grid (default 2). Campos ocupam frações via `colSpan`;
|
|
8
|
-
* grupos podem sobrepor via `fieldGroup.columns`. */
|
|
9
|
-
columns?: number;
|
|
10
|
-
};
|
|
11
|
-
declare function validateAll(): string[];
|
|
12
|
-
declare function clearErrors(): void;
|
|
13
|
-
declare var __VLS_2: `field-${string}`, __VLS_3: {
|
|
14
|
-
field: FieldDef;
|
|
15
|
-
formData: Record<string, unknown>;
|
|
16
|
-
isEditing: boolean;
|
|
17
|
-
setFormField: (f: string, v: unknown) => void;
|
|
18
|
-
}, __VLS_30: `image-${string}`, __VLS_31: {
|
|
19
|
-
field: FieldDef;
|
|
20
|
-
formData: Record<string, unknown>;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_Slots = {} & {
|
|
23
|
-
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
24
|
-
} & {
|
|
25
|
-
[K in NonNullable<typeof __VLS_30>]?: (props: typeof __VLS_31) => any;
|
|
26
|
-
};
|
|
27
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
28
|
-
validateAll: typeof validateAll;
|
|
29
|
-
clearErrors: typeof clearErrors;
|
|
30
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
"update:field": (field: string, value: unknown) => any;
|
|
32
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
-
"onUpdate:field"?: ((field: string, value: unknown) => any) | undefined;
|
|
34
|
-
}>, {
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
columns: number;
|
|
37
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
-
export default _default;
|
|
40
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
-
new (): {
|
|
42
|
-
$slots: S;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
/** Numeric model — the real value sent to the API (e.g. 1234.56). */
|
|
3
|
-
modelValue: number | null;
|
|
4
|
-
/** Fixed decimal places (default: 2). */
|
|
5
|
-
decimals?: number;
|
|
6
|
-
/** Show a "R$" prefix. Ignored when `prefix` is set. */
|
|
7
|
-
currency?: boolean;
|
|
8
|
-
/** Custom leading addon (overrides `currency`). */
|
|
9
|
-
prefix?: string;
|
|
10
|
-
/** Trailing addon. */
|
|
11
|
-
suffix?: string;
|
|
12
|
-
/** Display locale for grouping/decimal separators (default: 'pt-BR'). */
|
|
13
|
-
locale?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
invalid?: boolean;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
"update:modelValue": (value: number | null) => any;
|
|
20
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
currency: boolean;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
decimals: number;
|
|
26
|
-
locale: string;
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type Id = string | number;
|
|
2
|
-
type Item = Record<string, unknown>;
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/** Full pool of available records. */
|
|
5
|
-
source: Item[];
|
|
6
|
-
/** Currently selected ids (v-model:selected). */
|
|
7
|
-
selected: Id[];
|
|
8
|
-
/** Field used as the record id (default: 'id'). */
|
|
9
|
-
trackBy?: string;
|
|
10
|
-
/** Field used for the visible label (default: 'nome'). */
|
|
11
|
-
optionLabel?: string;
|
|
12
|
-
/** Fields to match when searching (default: [optionLabel]). */
|
|
13
|
-
searchFields?: string[];
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
"update:selected": (ids: Id[]) => any;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
"onUpdate:selected"?: ((ids: Id[]) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
optionLabel: string;
|
|
22
|
-
selected: Id[];
|
|
23
|
-
trackBy: string;
|
|
24
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { default as WCrudView } from './crud/WCrudView.vue';
|
|
2
|
-
export { default as WCrudFormDialog } from './crud/WCrudFormDialog.vue';
|
|
3
|
-
export { default as WCrudColumnRenderer } from './crud/WCrudColumnRenderer.vue';
|
|
4
|
-
export { default as WAutoCompleteFK } from './form/WAutoCompleteFK.vue';
|
|
5
|
-
export { default as WFormRenderer } from './form/WFormRenderer.vue';
|
|
6
|
-
export { default as WMoneyInput } from './form/WMoneyInput.vue';
|
|
7
|
-
export { default as WTransferList } from './form/WTransferList.vue';
|
|
8
|
-
export { default as WStatusTag } from './ui/WStatusTag.vue';
|
|
9
|
-
export { default as WPageHeader } from './ui/WPageHeader.vue';
|
|
10
|
-
export { default as WEmptyState } from './ui/WEmptyState.vue';
|
|
11
|
-
export { default as WDetailHeader } from './ui/WDetailHeader.vue';
|
|
12
|
-
export { default as WInfoCard } from './ui/WInfoCard.vue';
|
|
13
|
-
export { default as WKpiCard } from './ui/WKpiCard.vue';
|
|
14
|
-
export { default as WKpiGrid } from './ui/WKpiGrid.vue';
|
|
15
|
-
export { default as WSectionHeader } from './ui/WSectionHeader.vue';
|
|
16
|
-
export { default as WFormSection } from './ui/WFormSection.vue';
|
|
17
|
-
export { default as WActionBar } from './ui/WActionBar.vue';
|
|
18
|
-
export { default as WProgressFlow } from './ui/WProgressFlow.vue';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
align?: 'between' | 'start' | 'end';
|
|
3
|
-
stackOnMobile?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
6
|
-
type __VLS_Slots = {} & {
|
|
7
|
-
primary?: (props: typeof __VLS_1) => any;
|
|
8
|
-
} & {
|
|
9
|
-
default?: (props: typeof __VLS_3) => any;
|
|
10
|
-
} & {
|
|
11
|
-
filters?: (props: typeof __VLS_5) => any;
|
|
12
|
-
} & {
|
|
13
|
-
secondary?: (props: typeof __VLS_7) => any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
align: "between" | "start" | "end";
|
|
17
|
-
stackOnMobile: boolean;
|
|
18
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
-
export default _default;
|
|
21
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
-
new (): {
|
|
23
|
-
$slots: S;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
backRoute?: string;
|
|
6
|
-
backTo?: string | Record<string, unknown>;
|
|
7
|
-
status?: string;
|
|
8
|
-
statusMap?: Record<string, {
|
|
9
|
-
label: string;
|
|
10
|
-
severity: string;
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
declare var __VLS_12: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
actions?: (props: typeof __VLS_12) => any;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
icon: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
actionLabel?: string;
|
|
6
|
-
actionIcon?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
action: () => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onAction?: (() => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
variant?: 'default' | 'muted' | 'outlined';
|
|
5
|
-
};
|
|
6
|
-
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
actions?: (props: typeof __VLS_1) => any;
|
|
9
|
-
} & {
|
|
10
|
-
default?: (props: typeof __VLS_3) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface InfoField {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string | number | null | undefined;
|
|
4
|
-
format?: 'currency' | 'date' | 'datetime' | 'number' | 'text';
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
title?: string;
|
|
8
|
-
fields: InfoField[];
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string | number;
|
|
4
|
-
icon?: string;
|
|
5
|
-
hint?: string;
|
|
6
|
-
severity?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
7
|
-
trend?: {
|
|
8
|
-
value: string;
|
|
9
|
-
direction?: 'up' | 'down' | 'neutral';
|
|
10
|
-
};
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare var __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {}, __VLS_25: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
icon?: (props: typeof __VLS_17) => any;
|
|
16
|
-
} & {
|
|
17
|
-
trend?: (props: typeof __VLS_19) => any;
|
|
18
|
-
} & {
|
|
19
|
-
value?: (props: typeof __VLS_21) => any;
|
|
20
|
-
} & {
|
|
21
|
-
hint?: (props: typeof __VLS_23) => any;
|
|
22
|
-
} & {
|
|
23
|
-
footer?: (props: typeof __VLS_25) => any;
|
|
24
|
-
};
|
|
25
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
|
-
export default _default;
|
|
28
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { KpiItem } from '@/types/crud';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
items?: KpiItem[];
|
|
4
|
-
/**
|
|
5
|
-
* Número fixo de colunas (2–6) ou 'auto' para preencher a largura com quantos
|
|
6
|
-
* KPIs couberem (responsivo, sem overflow). Use 'auto' em dashboards que devem
|
|
7
|
-
* aproveitar o máximo da tela.
|
|
8
|
-
*/
|
|
9
|
-
columns?: 2 | 3 | 4 | 5 | 6 | 'auto';
|
|
10
|
-
dense?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare var __VLS_1: {
|
|
13
|
-
key: number;
|
|
14
|
-
item: KpiItem;
|
|
15
|
-
index: number;
|
|
16
|
-
};
|
|
17
|
-
type __VLS_Slots = {} & {
|
|
18
|
-
item?: (props: typeof __VLS_1) => any;
|
|
19
|
-
};
|
|
20
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
-
columns: 2 | 3 | 4 | 5 | 6 | "auto";
|
|
22
|
-
items: KpiItem[];
|
|
23
|
-
dense: boolean;
|
|
24
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
actionLabel?: string;
|
|
5
|
-
actionIcon?: string;
|
|
6
|
-
};
|
|
7
|
-
declare var __VLS_1: {};
|
|
8
|
-
type __VLS_Slots = {} & {
|
|
9
|
-
actions?: (props: typeof __VLS_1) => any;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
action: () => any;
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
onAction?: (() => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
interface ProgressStep {
|
|
2
|
-
key: string;
|
|
3
|
-
label: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
steps: ProgressStep[];
|
|
8
|
-
currentStep: string;
|
|
9
|
-
orientation?: 'horizontal' | 'vertical';
|
|
10
|
-
};
|
|
11
|
-
declare var __VLS_1: {
|
|
12
|
-
step: ProgressStep;
|
|
13
|
-
index: number;
|
|
14
|
-
state: string;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_Slots = {} & {
|
|
17
|
-
step?: (props: typeof __VLS_1) => any;
|
|
18
|
-
};
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
orientation: "horizontal" | "vertical";
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
compact?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
8
|
-
type __VLS_Slots = {} & {
|
|
9
|
-
icon?: (props: typeof __VLS_1) => any;
|
|
10
|
-
} & {
|
|
11
|
-
meta?: (props: typeof __VLS_3) => any;
|
|
12
|
-
} & {
|
|
13
|
-
actions?: (props: typeof __VLS_5) => any;
|
|
14
|
-
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface StatusMapping {
|
|
2
|
-
label: string;
|
|
3
|
-
severity: string;
|
|
4
|
-
}
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
value: string;
|
|
7
|
-
map?: Record<string, StatusMapping>;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { useCrudManager } from './useCrudManager';
|
|
2
|
-
export { useApi } from './useApi';
|
|
3
|
-
export { useAppToast } from './useAppToast';
|
|
4
|
-
export { useAppConfirm } from './useAppConfirm';
|
|
5
|
-
export { useApiError, extractApiError } from './useApiError';
|
|
6
|
-
export { useFormatters } from './useFormatters';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { parseDate, toDateString, toDateTimeString } from '@/utils/dates';
|
|
2
|
-
import { formatCpf, formatCnpj, formatCpfCnpj, formatTelefone, validateCpf, validateCnpj, validateCpfCnpj } from '@/utils/masks';
|
|
3
|
-
export declare function useFormatters(): {
|
|
4
|
-
formatCurrency: (value: number | null | undefined) => string;
|
|
5
|
-
formatNumber: (value: number | null | undefined, decimals?: number) => string;
|
|
6
|
-
formatDate: (value: string | Date | null | undefined, format?: string) => string;
|
|
7
|
-
formatDateTime: (value: string | Date | null | undefined) => string;
|
|
8
|
-
formatPercent: (value: number | null | undefined) => string;
|
|
9
|
-
formatCpf: typeof formatCpf;
|
|
10
|
-
formatCnpj: typeof formatCnpj;
|
|
11
|
-
formatCpfCnpj: typeof formatCpfCnpj;
|
|
12
|
-
formatTelefone: typeof formatTelefone;
|
|
13
|
-
validateCpf: typeof validateCpf;
|
|
14
|
-
validateCnpj: typeof validateCnpj;
|
|
15
|
-
validateCpfCnpj: typeof validateCpfCnpj;
|
|
16
|
-
parseDate: typeof parseDate;
|
|
17
|
-
toDateString: typeof toDateString;
|
|
18
|
-
toDateTimeString: typeof toDateTimeString;
|
|
19
|
-
};
|