@wgalleti/primevue-components 2.0.1 → 2.1.0
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/components/charts/WChart.vue.d.ts +1 -1
- package/dist/components/crud/WCrudView.vue.d.ts +19 -18
- package/dist/components/crud/WEditableTable.vue.d.ts +31 -18
- package/dist/components/form/WAutoCompleteFK.vue.d.ts +2 -2
- package/dist/components/form/WDatePicker.vue.d.ts +1 -1
- package/dist/components/form/WDateRange.vue.d.ts +1 -1
- package/dist/components/form/WFileUpload.vue.d.ts +1 -1
- package/dist/components/form/WFormRenderer.vue.d.ts +4 -4
- package/dist/components/form/WImageCropper.vue.d.ts +2 -2
- package/dist/components/form/WMoneyInput.vue.d.ts +4 -0
- package/dist/components/form/WTreeSelect.vue.d.ts +3 -3
- package/dist/components/index.d.ts +7 -0
- package/dist/components/ui/WAvatar.vue.d.ts +1 -1
- package/dist/components/ui/WButton.vue.d.ts +45 -0
- package/dist/components/ui/WEmptyState.vue.d.ts +1 -1
- package/dist/components/ui/WGroupedSelectList.vue.d.ts +20 -5
- package/dist/components/ui/WKpiGrid.vue.d.ts +1 -1
- package/dist/components/ui/WMapSelect.vue.d.ts +2 -2
- package/dist/components/ui/WMenu.vue.d.ts +28 -0
- package/dist/components/ui/WNotice.vue.d.ts +32 -0
- package/dist/components/ui/WPermissionMatrix.vue.d.ts +64 -0
- package/dist/components/ui/WPopover.vue.d.ts +20 -0
- package/dist/components/ui/WProgress.vue.d.ts +16 -0
- package/dist/components/ui/WSectionAccordion.vue.d.ts +1 -1
- package/dist/components/ui/WSegmented.vue.d.ts +36 -0
- package/dist/components/ui/WSkeleton.vue.d.ts +14 -3
- package/dist/components/ui/WStatusTag.vue.d.ts +9 -1
- package/dist/components/ui/WStepFlow.vue.d.ts +1 -1
- package/dist/components-BCUytrby.cjs +25 -0
- package/dist/components-BCUytrby.cjs.map +1 -0
- package/dist/components-C5P3npLC.js +10293 -0
- package/dist/components-C5P3npLC.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-B2_3FVLB.js → composables-DbmYTwL7.js} +3 -2
- package/dist/composables-DbmYTwL7.js.map +1 -0
- package/dist/composables-rF6oNCGV.cjs +2 -0
- package/dist/composables-rF6oNCGV.cjs.map +1 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/connect.cjs +1 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.js +1 -1
- package/dist/connect.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +29 -28
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
- package/dist/routeTabs-C86S8jNU.js.map +1 -1
- package/dist/types/action.d.ts +12 -0
- package/dist/types/button.d.ts +10 -0
- package/dist/types/field.d.ts +31 -3
- package/dist/types/index.d.ts +3 -1
- package/dist/types/manager.d.ts +5 -2
- package/dist/types/permissionMatrix.d.ts +9 -0
- package/dist/types/plugin.d.ts +7 -0
- package/dist/utils/tabOverlay.d.ts +20 -0
- package/dist/utils/warnOnce.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components-BrB2KsHr.js +0 -9399
- package/dist/components-BrB2KsHr.js.map +0 -1
- package/dist/components-DfgWnHbO.cjs +0 -25
- package/dist/components-DfgWnHbO.cjs.map +0 -1
- package/dist/composables-B2_3FVLB.js.map +0 -1
- package/dist/composables-qoAinVWS.cjs +0 -2
- package/dist/composables-qoAinVWS.cjs.map +0 -1
|
@@ -31,9 +31,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
31
31
|
onSelect?: ((event: ChartSelectEvent) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
emptyMessage: string;
|
|
34
|
-
empty: boolean;
|
|
35
34
|
loading: boolean;
|
|
36
35
|
height: string;
|
|
36
|
+
empty: boolean;
|
|
37
37
|
print: boolean;
|
|
38
38
|
renderer: "canvas" | "svg";
|
|
39
39
|
clickable: boolean;
|
|
@@ -26,6 +26,7 @@ type __VLS_Props = {
|
|
|
26
26
|
expandable?: boolean;
|
|
27
27
|
viewToggle?: boolean;
|
|
28
28
|
defaultView?: 'table' | 'cards';
|
|
29
|
+
/** Quantas colunas visíveis entram no card (a primeira é o título). Sem valor, todas. */
|
|
29
30
|
cardFields?: number;
|
|
30
31
|
/**
|
|
31
32
|
* Quando a largura FORÇA os cards. `auto` (default) segue a largura da área da
|
|
@@ -132,44 +133,44 @@ declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {
|
|
|
132
133
|
crud: CrudManagerReturn<any>;
|
|
133
134
|
columns: ColumnDef[];
|
|
134
135
|
index: number;
|
|
135
|
-
},
|
|
136
|
+
}, __VLS_376: `column-${string}`, __VLS_377: {
|
|
136
137
|
data: Record<string, unknown>;
|
|
137
138
|
value: unknown;
|
|
138
|
-
},
|
|
139
|
+
}, __VLS_391: {
|
|
139
140
|
data: Record<string, unknown>;
|
|
140
141
|
crud: CrudManagerReturn<any>;
|
|
141
|
-
},
|
|
142
|
+
}, __VLS_414: {
|
|
142
143
|
selected: Record<string, unknown> | null;
|
|
143
144
|
crud: CrudManagerReturn<any>;
|
|
144
|
-
},
|
|
145
|
+
}, __VLS_437: {
|
|
145
146
|
crud: CrudManagerReturn<any>;
|
|
146
147
|
dialogWidth: string;
|
|
147
|
-
},
|
|
148
|
+
}, __VLS_451: `field-${string}`, __VLS_452: {
|
|
148
149
|
field: FieldDef;
|
|
149
150
|
formData: Record<string, unknown>;
|
|
150
151
|
isEditing: boolean;
|
|
151
152
|
fieldId: string;
|
|
152
153
|
setFormField: (f: string, v: unknown) => void;
|
|
153
|
-
},
|
|
154
|
+
}, __VLS_456: `image-${string}`, __VLS_457: {
|
|
154
155
|
field: FieldDef;
|
|
155
156
|
formData: Record<string, unknown>;
|
|
156
|
-
},
|
|
157
|
+
}, __VLS_460: {
|
|
157
158
|
formData: Record<string, unknown>;
|
|
158
159
|
isEditing: boolean;
|
|
159
|
-
},
|
|
160
|
+
}, __VLS_463: {
|
|
160
161
|
formData: Record<string, unknown>;
|
|
161
162
|
isEditing: boolean;
|
|
162
|
-
},
|
|
163
|
+
}, __VLS_471: {
|
|
163
164
|
item: Record<string, unknown> | null;
|
|
164
165
|
};
|
|
165
166
|
type __VLS_Slots = {} & {
|
|
166
167
|
[K in NonNullable<typeof __VLS_207>]?: (props: typeof __VLS_208) => any;
|
|
167
168
|
} & {
|
|
168
|
-
[K in NonNullable<typeof
|
|
169
|
+
[K in NonNullable<typeof __VLS_376>]?: (props: typeof __VLS_377) => any;
|
|
169
170
|
} & {
|
|
170
|
-
[K in NonNullable<typeof
|
|
171
|
+
[K in NonNullable<typeof __VLS_451>]?: (props: typeof __VLS_452) => any;
|
|
171
172
|
} & {
|
|
172
|
-
[K in NonNullable<typeof
|
|
173
|
+
[K in NonNullable<typeof __VLS_456>]?: (props: typeof __VLS_457) => any;
|
|
173
174
|
} & {
|
|
174
175
|
'header-actions'?: (props: typeof __VLS_1) => any;
|
|
175
176
|
} & {
|
|
@@ -207,17 +208,17 @@ type __VLS_Slots = {} & {
|
|
|
207
208
|
} & {
|
|
208
209
|
card?: (props: typeof __VLS_366) => any;
|
|
209
210
|
} & {
|
|
210
|
-
'row-actions'?: (props: typeof
|
|
211
|
+
'row-actions'?: (props: typeof __VLS_391) => any;
|
|
211
212
|
} & {
|
|
212
|
-
'rail-actions'?: (props: typeof
|
|
213
|
+
'rail-actions'?: (props: typeof __VLS_414) => any;
|
|
213
214
|
} & {
|
|
214
|
-
'form-dialog'?: (props: typeof
|
|
215
|
+
'form-dialog'?: (props: typeof __VLS_437) => any;
|
|
215
216
|
} & {
|
|
216
|
-
'after-fields'?: (props: typeof
|
|
217
|
+
'after-fields'?: (props: typeof __VLS_460) => any;
|
|
217
218
|
} & {
|
|
218
|
-
aside?: (props: typeof
|
|
219
|
+
aside?: (props: typeof __VLS_463) => any;
|
|
219
220
|
} & {
|
|
220
|
-
'delete-message'?: (props: typeof
|
|
221
|
+
'delete-message'?: (props: typeof __VLS_471) => any;
|
|
221
222
|
};
|
|
222
223
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
223
224
|
scrollToRow: typeof scrollToRow;
|
|
@@ -12,11 +12,11 @@ import { EditableColumnDef, EditableRow } from '../../types/editableTable';
|
|
|
12
12
|
* A subtabela de insumos do design é este mesmo componente dentro do slot
|
|
13
13
|
* `#expansion` — não existe componente separado para "tabela filha".
|
|
14
14
|
*
|
|
15
|
-
* **
|
|
16
|
-
* card**, uma linha por card, como o `WCrudView` já faz com a listagem.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* **Janela abaixo de 840px, ou componente mais estreito que o piso da grade: a
|
|
16
|
+
* tabela vira card**, uma linha por card, como o `WCrudView` já faz com a listagem.
|
|
17
|
+
* A régua de 840 é a da janela; o piso é medido no PRÓPRIO componente (com a barra
|
|
18
|
+
* lateral ou num diálogo a janela é larga, mas a tabela só cabe se o piso couber).
|
|
19
|
+
* E vira sem tela paralela: a marcação é a
|
|
20
20
|
* MESMA — o `<table>` troca de display e cada `<tbody>` (que já era uma linha)
|
|
21
21
|
* vira o card. É isso que mantém os slots `#cell-*`, os editores e a expansão
|
|
22
22
|
* funcionando iguais nas duas larguras; duplicar a árvore para o tablet daria
|
|
@@ -47,58 +47,71 @@ type __VLS_Props = {
|
|
|
47
47
|
/** Campo usado como `key` das linhas. Sem ele, a chave é o índice. */
|
|
48
48
|
rowKey?: string;
|
|
49
49
|
/**
|
|
50
|
-
* Quando a tabela vira card. `auto` (default) segue a
|
|
51
|
-
*
|
|
52
|
-
* for maior; tabela acima. `never` mantém a tabela em qualquer largura (planilha
|
|
50
|
+
* Quando a tabela vira card. `auto` (default) segue a janela (card abaixo de
|
|
51
|
+
* 840px) e o piso da grade medido no próprio componente; tabela nos demais casos. `never` mantém a tabela em qualquer largura (planilha
|
|
53
52
|
* que só faz sentido em grade, rola na horizontal); `always` é para vitrine e teste.
|
|
54
53
|
*/
|
|
55
54
|
cardMode?: 'auto' | 'never' | 'always';
|
|
56
55
|
/** Rótulo do abridor da expansão no card — lá não existe coluna de seta. */
|
|
57
56
|
expansionLabel?: string;
|
|
57
|
+
/** Liga a coluna de seleção (checkbox por linha e "marcar todos" no cabeçalho), sobre os
|
|
58
|
+
* dados em memória; as chaves (`rowKey`) vão em `v-model:selected`. Não mexe nas linhas. */
|
|
59
|
+
selectable?: boolean;
|
|
60
|
+
/** Diz se a linha pode ser marcada; default todas. A já marcada continua desmarcável. */
|
|
61
|
+
isRowSelectable?: (row: EditableRow, index: number) => boolean;
|
|
58
62
|
};
|
|
59
|
-
|
|
63
|
+
type __VLS_ModelProps = {
|
|
64
|
+
/** Chaves (`rowKey`) das linhas marcadas. Chave que não está nas linhas fica intacta. */
|
|
65
|
+
'selected'?: (string | number)[];
|
|
66
|
+
};
|
|
67
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
68
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_12: {}, __VLS_22: `cell-${string}`, __VLS_23: {
|
|
60
69
|
row: EditableRow;
|
|
61
70
|
index: number;
|
|
62
71
|
value: unknown;
|
|
63
72
|
column: EditableColumnDef;
|
|
64
|
-
},
|
|
73
|
+
}, __VLS_53: {
|
|
65
74
|
row: EditableRow;
|
|
66
75
|
index: number;
|
|
67
|
-
},
|
|
76
|
+
}, __VLS_56: `footer-${string}`, __VLS_57: {
|
|
68
77
|
rows: EditableRow[];
|
|
69
78
|
column: EditableColumnDef;
|
|
70
79
|
};
|
|
71
80
|
type __VLS_Slots = {} & {
|
|
72
|
-
[K in NonNullable<typeof
|
|
81
|
+
[K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23) => any;
|
|
73
82
|
} & {
|
|
74
|
-
[K in NonNullable<typeof
|
|
83
|
+
[K in NonNullable<typeof __VLS_56>]?: (props: typeof __VLS_57) => any;
|
|
75
84
|
} & {
|
|
76
85
|
toolbar?: (props: typeof __VLS_1) => any;
|
|
77
86
|
} & {
|
|
78
87
|
'toolbar-extra'?: (props: typeof __VLS_3) => any;
|
|
79
88
|
} & {
|
|
80
|
-
empty?: (props: typeof
|
|
89
|
+
empty?: (props: typeof __VLS_12) => any;
|
|
81
90
|
} & {
|
|
82
|
-
expansion?: (props: typeof
|
|
91
|
+
expansion?: (props: typeof __VLS_53) => any;
|
|
83
92
|
};
|
|
84
|
-
declare const __VLS_base: import('vue').DefineComponent<
|
|
93
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
94
|
add: () => any;
|
|
86
95
|
"update:modelValue": (rows: EditableRow[]) => any;
|
|
87
96
|
remove: (row: EditableRow, index: number) => any;
|
|
88
|
-
|
|
97
|
+
"update:selected": (value: (string | number)[]) => any;
|
|
98
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
89
99
|
onAdd?: (() => any) | undefined;
|
|
90
100
|
"onUpdate:modelValue"?: ((rows: EditableRow[]) => any) | undefined;
|
|
91
101
|
onRemove?: ((row: EditableRow, index: number) => any) | undefined;
|
|
102
|
+
"onUpdate:selected"?: ((value: (string | number)[]) => any) | undefined;
|
|
92
103
|
}>, {
|
|
104
|
+
disabled: boolean;
|
|
93
105
|
emptyMessage: string;
|
|
94
106
|
modelValue: EditableRow[];
|
|
95
|
-
disabled: boolean;
|
|
96
107
|
columns: EditableColumnDef[];
|
|
97
108
|
removable: boolean;
|
|
98
109
|
expandable: boolean;
|
|
99
110
|
cardMode: "auto" | "never" | "always";
|
|
100
111
|
footerLabel: string;
|
|
101
112
|
expansionLabel: string;
|
|
113
|
+
selectable: boolean;
|
|
114
|
+
isRowSelectable: (row: EditableRow, index: number) => boolean;
|
|
102
115
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
103
116
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
104
117
|
declare const _default: typeof __VLS_export;
|
|
@@ -45,7 +45,7 @@ type __VLS_Props = {
|
|
|
45
45
|
canDelete?: boolean;
|
|
46
46
|
/** Quando a lista (com os filtros/cascata atuais) tem **um** registro só, ele já
|
|
47
47
|
* entra selecionado — ao montar sem valor e ao preencher a cascata. Só no modo
|
|
48
|
-
* simples; limpar o campo não redispara. `false`
|
|
48
|
+
* simples; limpar o campo não redispara. Default `false` (opt-in). */
|
|
49
49
|
autoSelectSingle?: boolean;
|
|
50
50
|
crudFields?: FieldDef[];
|
|
51
51
|
crudColumns?: ColumnDef[];
|
|
@@ -71,12 +71,12 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
71
71
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
72
|
"onUpdate:modelValue"?: ((value: Record<string, unknown> | Record<string, unknown>[] | null) => any) | undefined;
|
|
73
73
|
}>, {
|
|
74
|
+
disabled: boolean;
|
|
74
75
|
multiple: boolean;
|
|
75
76
|
maxChips: number;
|
|
76
77
|
optionLabel: string;
|
|
77
78
|
optionValue: string;
|
|
78
79
|
placeholder: string;
|
|
79
|
-
disabled: boolean;
|
|
80
80
|
showClear: boolean;
|
|
81
81
|
forceSelection: boolean;
|
|
82
82
|
minLength: number;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
32
32
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
33
|
"onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
modelValue: string | Date | null;
|
|
36
35
|
disabled: boolean;
|
|
36
|
+
modelValue: string | Date | null;
|
|
37
37
|
showClear: boolean;
|
|
38
38
|
invalid: boolean;
|
|
39
39
|
valueFormat: DateValueFormat;
|
|
@@ -17,9 +17,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((value: Date[] | null) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
+
disabled: boolean;
|
|
20
21
|
modelValue: Date[] | null;
|
|
21
22
|
placeholder: string;
|
|
22
|
-
disabled: boolean;
|
|
23
23
|
showButtonBar: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -23,9 +23,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
23
23
|
onError?: ((message: string) => any) | undefined;
|
|
24
24
|
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
+
disabled: boolean;
|
|
26
27
|
modelValue: File | File[] | null;
|
|
27
28
|
multiple: boolean;
|
|
28
|
-
disabled: boolean;
|
|
29
29
|
accept: string;
|
|
30
30
|
maxSize: number;
|
|
31
31
|
chooseLabel: string;
|
|
@@ -30,12 +30,12 @@ declare var __VLS_2: `field-${string}`, __VLS_3: {
|
|
|
30
30
|
}, __VLS_27: `image-${string}`, __VLS_28: {
|
|
31
31
|
field: FieldDef;
|
|
32
32
|
formData: Record<string, unknown>;
|
|
33
|
-
},
|
|
33
|
+
}, __VLS_164: `chips-trigger-${string}`, __VLS_165: {
|
|
34
34
|
field: FieldDef;
|
|
35
35
|
formData: Record<string, unknown>;
|
|
36
36
|
disabled: boolean;
|
|
37
37
|
setFormField: (f: string, v: unknown) => void;
|
|
38
|
-
},
|
|
38
|
+
}, __VLS_168: `chips-summary-${string}`, __VLS_169: {
|
|
39
39
|
field: FieldDef;
|
|
40
40
|
formData: Record<string, unknown>;
|
|
41
41
|
items: ChipEntry[];
|
|
@@ -45,9 +45,9 @@ type __VLS_Slots = {} & {
|
|
|
45
45
|
} & {
|
|
46
46
|
[K in NonNullable<typeof __VLS_27>]?: (props: typeof __VLS_28) => any;
|
|
47
47
|
} & {
|
|
48
|
-
[K in NonNullable<typeof
|
|
48
|
+
[K in NonNullable<typeof __VLS_164>]?: (props: typeof __VLS_165) => any;
|
|
49
49
|
} & {
|
|
50
|
-
[K in NonNullable<typeof
|
|
50
|
+
[K in NonNullable<typeof __VLS_168>]?: (props: typeof __VLS_169) => any;
|
|
51
51
|
};
|
|
52
52
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
53
53
|
validateAll: typeof validateAll;
|
|
@@ -31,10 +31,10 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
31
31
|
onError?: ((message: string) => any) | undefined;
|
|
32
32
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
modelValue: File | string | null;
|
|
35
|
-
accept: string;
|
|
36
34
|
height: number;
|
|
37
35
|
width: number;
|
|
36
|
+
modelValue: File | string | null;
|
|
37
|
+
accept: string;
|
|
38
38
|
maxSize: number;
|
|
39
39
|
aspectRatio: number;
|
|
40
40
|
circular: boolean;
|
|
@@ -11,6 +11,10 @@ type __VLS_Props = {
|
|
|
11
11
|
suffix?: string;
|
|
12
12
|
/** Display locale for grouping/decimal separators (default: 'pt-BR'). */
|
|
13
13
|
locale?: string;
|
|
14
|
+
/** Piso do valor (inclusive): ao sair do campo, abaixo dele vira ele. */
|
|
15
|
+
min?: number;
|
|
16
|
+
/** Teto do valor (inclusive): ao sair do campo, acima dele vira ele (ex.: 100 no modo %). */
|
|
17
|
+
max?: number;
|
|
14
18
|
disabled?: boolean;
|
|
15
19
|
placeholder?: string;
|
|
16
20
|
invalid?: boolean;
|
|
@@ -97,13 +97,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
97
97
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
98
98
|
"onUpdate:modelValue"?: ((ids: TreeSelectId[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
|
-
|
|
100
|
+
disabled: boolean;
|
|
101
101
|
emptyMessage: string;
|
|
102
|
+
filter: boolean;
|
|
103
|
+
loading: boolean;
|
|
102
104
|
modelValue: TreeSelectId[];
|
|
103
105
|
optionLabel: string;
|
|
104
106
|
optionValue: string;
|
|
105
|
-
disabled: boolean;
|
|
106
|
-
loading: boolean;
|
|
107
107
|
options: TreeSelectOption[];
|
|
108
108
|
filterPlaceholder: string;
|
|
109
109
|
filterFields: string[];
|
|
@@ -27,6 +27,9 @@ export { default as WSectionPanel } from './ui/WSectionPanel.vue';
|
|
|
27
27
|
export { default as WFormSection } from './ui/WFormSection.vue';
|
|
28
28
|
export { default as WActionBar } from './ui/WActionBar.vue';
|
|
29
29
|
export { default as WProgressFlow } from './ui/WProgressFlow.vue';
|
|
30
|
+
export { default as WProgress } from './ui/WProgress.vue';
|
|
31
|
+
export { default as WNotice } from './ui/WNotice.vue';
|
|
32
|
+
export { default as WSegmented } from './ui/WSegmented.vue';
|
|
30
33
|
export { default as WStepFlow } from './ui/WStepFlow.vue';
|
|
31
34
|
export { default as WStepSection } from './ui/WStepSection.vue';
|
|
32
35
|
export { default as WAvatar } from './ui/WAvatar.vue';
|
|
@@ -34,11 +37,15 @@ export { default as WCheckList } from './ui/WCheckList.vue';
|
|
|
34
37
|
export { default as WInlineCell } from './ui/WInlineCell.vue';
|
|
35
38
|
export { default as WAttentionList } from './ui/WAttentionList.vue';
|
|
36
39
|
export { default as WGroupedSelectList } from './ui/WGroupedSelectList.vue';
|
|
40
|
+
export { default as WPermissionMatrix } from './ui/WPermissionMatrix.vue';
|
|
37
41
|
export { default as WMapSelect } from './ui/WMapSelect.vue';
|
|
38
42
|
export { default as WMarkdownView } from './ui/WMarkdownView.vue';
|
|
39
43
|
export { default as WMarkdownEditor } from './form/WMarkdownEditor.vue';
|
|
40
44
|
export { default as WMarkdownToc } from './ui/WMarkdownToc.vue';
|
|
41
45
|
export { default as WDialog } from './ui/WDialog.vue';
|
|
46
|
+
export { default as WButton } from './ui/WButton.vue';
|
|
47
|
+
export { default as WPopover } from './ui/WPopover.vue';
|
|
48
|
+
export { default as WMenu } from './ui/WMenu.vue';
|
|
42
49
|
export { default as WFlipCard } from './ui/WFlipCard.vue';
|
|
43
50
|
export { default as WCommandPalette } from './ui/WCommandPalette.vue';
|
|
44
51
|
export { default as WSkeleton } from './ui/WSkeleton.vue';
|
|
@@ -10,8 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
size?: 'sm' | 'md';
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: "sm" | "md";
|
|
14
13
|
name: string | null;
|
|
14
|
+
size: "sm" | "md";
|
|
15
15
|
src: string | null;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
import { ButtonSize, ButtonVariant } from '../../types/button';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
variant?: ButtonVariant;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
/** Ícone PrimeIcons (`pi pi-check`). */
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconPos?: 'left' | 'right' | 'top' | 'bottom';
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Mostra o spinner, bloqueia o clique e marca `aria-busy`; a largura não muda. */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Só o ícone (redondo): exige `ariaLabel`. */
|
|
14
|
+
iconOnly?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** Destino: o botão vira RouterLink (exige vue-router). */
|
|
17
|
+
to?: RouteLocationRaw;
|
|
18
|
+
/** Link comum: o botão vira `<a href>` com a mesma aparência (`tel:`, `mailto:`, arquivo). */
|
|
19
|
+
href?: string;
|
|
20
|
+
/** Com `href`: baixa em vez de navegar; string = nome do arquivo salvo. */
|
|
21
|
+
download?: boolean | string;
|
|
22
|
+
/** Com `href`: alvo do link (`_blank` ganha `rel="noopener noreferrer"`). */
|
|
23
|
+
target?: string;
|
|
24
|
+
type?: 'button' | 'submit' | 'reset';
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = {
|
|
27
|
+
/** Substitui o conteúdo inteiro (ícone + rótulo). */
|
|
28
|
+
default?: () => unknown;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
variant: ButtonVariant;
|
|
33
|
+
size: ButtonSize;
|
|
34
|
+
iconPos: "left" | "right" | "top" | "bottom";
|
|
35
|
+
loading: boolean;
|
|
36
|
+
type: "button" | "submit" | "reset";
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -19,8 +19,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
20
|
onAction?: (() => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
compact: boolean;
|
|
23
22
|
icon: string;
|
|
23
|
+
compact: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnDef } from '../../types/column';
|
|
2
2
|
import { GroupedSelectKey } from '../../types/groupedSelectList';
|
|
3
3
|
/**
|
|
4
|
-
* Tabela agrupada com seleção múltipla: grupos recolhíveis, checkbox de grupo em três estados,
|
|
4
|
+
* Tabela agrupada com seleção múltipla (ou única, `selectionMode="single"` + `v-model`): grupos recolhíveis, checkbox de grupo em três estados,
|
|
5
5
|
* linhas que podem não ser selecionáveis (com o motivo num badge) e a ação "selecionar todos os
|
|
6
6
|
* resultados". O componente nunca filtra: `items` já é o resultado. As chaves de `selection` que
|
|
7
7
|
* não estão em `items` ficam intactas e não são contadas — podá-las é papel de quem chama.
|
|
@@ -23,6 +23,11 @@ type __VLS_Props = {
|
|
|
23
23
|
isSelectable?: (item: Record<string, unknown>) => boolean;
|
|
24
24
|
/** Texto do badge nas linhas não selecionáveis. */
|
|
25
25
|
disabledReason?: (item: Record<string, unknown>) => string | null | undefined;
|
|
26
|
+
/** Linha fixa: não muda em nenhum sentido — nem pelo clique, nem por "selecionar todos" ou
|
|
27
|
+
* "limpar" (do grupo ou geral). Fica como está em `selection`, com cadeado e `aria-disabled`. */
|
|
28
|
+
isLocked?: (item: Record<string, unknown>) => boolean;
|
|
29
|
+
/** Dica da linha fixa (badge ao lado do cadeado e `title`), ex.: "Sempre ativo para o dono". */
|
|
30
|
+
lockedReason?: (item: Record<string, unknown>) => string | null | undefined;
|
|
26
31
|
/** Com linhas já na tela elas continuam visíveis, com uma barra de carregamento; o placeholder só aparece sem linhas. */
|
|
27
32
|
loading?: boolean;
|
|
28
33
|
emptyMessage?: string;
|
|
@@ -30,10 +35,15 @@ type __VLS_Props = {
|
|
|
30
35
|
clearSelectionLabel?: string;
|
|
31
36
|
/** false remove o botão de recolher dos grupos. */
|
|
32
37
|
collapsible?: boolean;
|
|
38
|
+
/** `single`: rádio por linha, sem checkbox de grupo nem "selecionar todos", e a escolha
|
|
39
|
+
* vai no `v-model` (uma chave ou `null`). Default `multiple` (`v-model:selection`). */
|
|
40
|
+
selectionMode?: 'single' | 'multiple';
|
|
33
41
|
};
|
|
34
42
|
type __VLS_ModelProps = {
|
|
35
43
|
/** Chaves das linhas selecionadas (v-model:selection). Sem v-model do pai o estado é local. */
|
|
36
44
|
'selection'?: GroupedSelectKey[];
|
|
45
|
+
/** Chave da linha escolhida no modo `single` (`v-model`). */
|
|
46
|
+
modelValue?: GroupedSelectKey | null;
|
|
37
47
|
/** Chaves dos grupos recolhidos (v-model:collapsed). */
|
|
38
48
|
'collapsed'?: string[];
|
|
39
49
|
};
|
|
@@ -52,15 +62,15 @@ declare var __VLS_1: {}, __VLS_3: {}, __VLS_12: {
|
|
|
52
62
|
selectedCount: number;
|
|
53
63
|
selectableCount: number;
|
|
54
64
|
collapsed: boolean;
|
|
55
|
-
},
|
|
65
|
+
}, __VLS_31: `column-${string}`, __VLS_32: {
|
|
56
66
|
data: Record<string, unknown>;
|
|
57
67
|
column: ColumnDef;
|
|
58
68
|
value: unknown;
|
|
59
|
-
},
|
|
69
|
+
}, __VLS_44: {
|
|
60
70
|
data: Record<string, unknown>;
|
|
61
71
|
};
|
|
62
72
|
type __VLS_Slots = {} & {
|
|
63
|
-
[K in NonNullable<typeof
|
|
73
|
+
[K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any;
|
|
64
74
|
} & {
|
|
65
75
|
summary?: (props: typeof __VLS_1) => any;
|
|
66
76
|
} & {
|
|
@@ -70,22 +80,27 @@ type __VLS_Slots = {} & {
|
|
|
70
80
|
} & {
|
|
71
81
|
'group-meta'?: (props: typeof __VLS_14) => any;
|
|
72
82
|
} & {
|
|
73
|
-
'row-actions'?: (props: typeof
|
|
83
|
+
'row-actions'?: (props: typeof __VLS_44) => any;
|
|
74
84
|
};
|
|
75
85
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
86
|
+
"update:modelValue": (value: GroupedSelectKey | null) => any;
|
|
76
87
|
"update:selection": (value: GroupedSelectKey[]) => any;
|
|
77
88
|
"update:collapsed": (value: string[]) => any;
|
|
78
89
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
90
|
+
"onUpdate:modelValue"?: ((value: GroupedSelectKey | null) => any) | undefined;
|
|
79
91
|
"onUpdate:selection"?: ((value: GroupedSelectKey[]) => any) | undefined;
|
|
80
92
|
"onUpdate:collapsed"?: ((value: string[]) => any) | undefined;
|
|
81
93
|
}>, {
|
|
82
94
|
emptyMessage: string;
|
|
83
95
|
loading: boolean;
|
|
84
96
|
dataKey: string;
|
|
97
|
+
selectionMode: "single" | "multiple";
|
|
85
98
|
groupLabel: (groupKey: string, items: Record<string, unknown>[]) => string;
|
|
86
99
|
selectable: boolean;
|
|
87
100
|
isSelectable: (item: Record<string, unknown>) => boolean;
|
|
88
101
|
disabledReason: (item: Record<string, unknown>) => string | null | undefined;
|
|
102
|
+
isLocked: (item: Record<string, unknown>) => boolean;
|
|
103
|
+
lockedReason: (item: Record<string, unknown>) => string | null | undefined;
|
|
89
104
|
selectAllLabel: string;
|
|
90
105
|
clearSelectionLabel: string;
|
|
91
106
|
collapsible: boolean;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
36
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
37
|
"onItem-click"?: ((event: KpiItemClickEvent) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
|
-
columns: 2 | 3 | 4 | 5 | 6 | "auto";
|
|
40
39
|
items: KpiItem[];
|
|
40
|
+
columns: 2 | 3 | 4 | 5 | 6 | "auto";
|
|
41
41
|
dense: boolean;
|
|
42
42
|
ledger: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -230,11 +230,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
230
230
|
"onFeature-enter"?: ((feature: MapSelectFeature) => any) | undefined;
|
|
231
231
|
"onFeature-leave"?: (() => any) | undefined;
|
|
232
232
|
}>, {
|
|
233
|
+
disabled: boolean;
|
|
233
234
|
searchPlaceholder: string;
|
|
234
235
|
emptyMessage: string;
|
|
235
|
-
modelValue: MapSelectId[];
|
|
236
|
-
disabled: boolean;
|
|
237
236
|
height: string;
|
|
237
|
+
modelValue: MapSelectId[];
|
|
238
238
|
readonly: boolean;
|
|
239
239
|
selectionMode: MapSelectSelectionMode;
|
|
240
240
|
collapsed: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MenuItem } from 'primevue/menuitem';
|
|
2
|
+
import { MenuMode } from '../../types/button';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
items: MenuItem[];
|
|
5
|
+
mode?: MenuMode;
|
|
6
|
+
};
|
|
7
|
+
declare function toggle(event: Event, target?: unknown): void;
|
|
8
|
+
declare function show(event: Event, target?: unknown): void;
|
|
9
|
+
declare function hide(): void;
|
|
10
|
+
declare var __VLS_11: string, __VLS_12: any;
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
+
toggle: typeof toggle;
|
|
16
|
+
show: typeof show;
|
|
17
|
+
hide: typeof hide;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
mode: MenuMode;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aviso em linha (substitui `Message`). só `danger` anuncia na hora (`role="alert"`);
|
|
3
|
+
* `warn`, `info` e `success` esperam a vez (`role="status"`). `closable` emite `close`: quem dispensa
|
|
4
|
+
* o aviso é o consumidor.
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
severity?: 'info' | 'warn' | 'danger' | 'success';
|
|
8
|
+
title?: string;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
/** Rótulo do botão de fechar. */
|
|
11
|
+
closeLabel?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {
|
|
14
|
+
default?: () => unknown;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
close: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
severity: "info" | "warn" | "danger" | "success";
|
|
22
|
+
closable: boolean;
|
|
23
|
+
closeLabel: string;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|