@wgalleti/primevue-components 0.23.0 → 0.26.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/crud/WCrudSubview.vue.d.ts +11 -9
- package/dist/components/crud/WEditableTable.vue.d.ts +11 -8
- package/dist/components/form/WFormRenderer.vue.d.ts +5 -0
- package/dist/components/ui/WMapSelect.vue.d.ts +11 -1
- package/dist/components/ui/WTabNav.vue.d.ts +6 -3
- package/dist/{components-CTrZPRAb.js → components-B2qPV7fZ.js} +2002 -1937
- package/dist/components-B2qPV7fZ.js.map +1 -0
- package/dist/components-C20vwrj8.cjs +25 -0
- package/dist/components-C20vwrj8.cjs.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-B-LVf35N.js → composables-D5lRsZJQ.js} +104 -142
- package/dist/composables-D5lRsZJQ.js.map +1 -0
- package/dist/composables-DuOYSFox.cjs +2 -0
- package/dist/composables-DuOYSFox.cjs.map +1 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/primevue-components.css +1 -1
- package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
- package/dist/routeTabs-D6m8PuP6.js.map +1 -1
- package/dist/types/routeTabs.d.ts +7 -0
- package/dist/{useFormKeyboardNav-Brgrjxu-.js → useFormKeyboardNav-DGbCVk4F.js} +64 -21
- package/dist/useFormKeyboardNav-DGbCVk4F.js.map +1 -0
- package/dist/{useFormKeyboardNav-HoSmQwuv.cjs → useFormKeyboardNav-pw3m7oX4.cjs} +3 -3
- package/dist/useFormKeyboardNav-pw3m7oX4.cjs.map +1 -0
- package/dist/utils/formRecord.d.ts +6 -1
- package/package.json +1 -1
- package/dist/components-BmYmMVLq.cjs +0 -25
- package/dist/components-BmYmMVLq.cjs.map +0 -1
- package/dist/components-CTrZPRAb.js.map +0 -1
- package/dist/composables-B-LVf35N.js.map +0 -1
- package/dist/composables-BqRASiBc.cjs +0 -2
- package/dist/composables-BqRASiBc.cjs.map +0 -1
- package/dist/useFormKeyboardNav-Brgrjxu-.js.map +0 -1
- package/dist/useFormKeyboardNav-HoSmQwuv.cjs.map +0 -1
|
@@ -19,30 +19,32 @@ type __VLS_Props = {
|
|
|
19
19
|
footerLabel?: string;
|
|
20
20
|
rowKey?: string;
|
|
21
21
|
};
|
|
22
|
-
declare var __VLS_1: {},
|
|
22
|
+
declare var __VLS_1: {}, __VLS_13: {}, __VLS_18: string, __VLS_19: any, __VLS_22: {
|
|
23
23
|
row: EditableRow;
|
|
24
24
|
index: number;
|
|
25
|
-
},
|
|
25
|
+
}, __VLS_25: {}, __VLS_39: string, __VLS_40: any, __VLS_43: {
|
|
26
26
|
formData: Record<string, unknown>;
|
|
27
27
|
isEditing: boolean;
|
|
28
|
-
},
|
|
28
|
+
}, __VLS_46: {
|
|
29
29
|
saving: boolean;
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
};
|
|
32
32
|
type __VLS_Slots = {} & {
|
|
33
|
-
[K in NonNullable<typeof
|
|
33
|
+
[K in NonNullable<typeof __VLS_18>]?: (props: typeof __VLS_19) => any;
|
|
34
34
|
} & {
|
|
35
|
-
[K in NonNullable<typeof
|
|
35
|
+
[K in NonNullable<typeof __VLS_39>]?: (props: typeof __VLS_40) => any;
|
|
36
36
|
} & {
|
|
37
37
|
'toolbar-actions'?: (props: typeof __VLS_1) => any;
|
|
38
38
|
} & {
|
|
39
|
-
|
|
39
|
+
'toolbar-extra'?: (props: typeof __VLS_13) => any;
|
|
40
40
|
} & {
|
|
41
|
-
|
|
41
|
+
expansion?: (props: typeof __VLS_22) => any;
|
|
42
42
|
} & {
|
|
43
|
-
|
|
43
|
+
empty?: (props: typeof __VLS_25) => any;
|
|
44
44
|
} & {
|
|
45
|
-
'
|
|
45
|
+
'after-fields'?: (props: typeof __VLS_43) => any;
|
|
46
|
+
} & {
|
|
47
|
+
'form-footer'?: (props: typeof __VLS_46) => any;
|
|
46
48
|
};
|
|
47
49
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
48
50
|
disabled: boolean;
|
|
@@ -18,7 +18,8 @@ type __VLS_Props = {
|
|
|
18
18
|
columns?: EditableColumnDef[];
|
|
19
19
|
/** Liga a coluna de expansão e o slot `#expansion`. */
|
|
20
20
|
expandable?: boolean;
|
|
21
|
-
/** Rótulo do botão de adicionar. Omitido = sem botão (só
|
|
21
|
+
/** Rótulo do botão de adicionar. Omitido = sem botão (só os slots `#toolbar`
|
|
22
|
+
* e `#toolbar-extra`). */
|
|
22
23
|
addLabel?: string;
|
|
23
24
|
/** Liga a coluna da lixeira. **Manda sozinha** na remoção: `disabled` trava as
|
|
24
25
|
* células, não a linha (tabela de leitura de onde ainda se remove é caso real —
|
|
@@ -32,28 +33,30 @@ type __VLS_Props = {
|
|
|
32
33
|
/** Campo usado como `key` das linhas. Sem ele, a chave é o índice. */
|
|
33
34
|
rowKey?: string;
|
|
34
35
|
};
|
|
35
|
-
declare var __VLS_1: {}, __VLS_3: {},
|
|
36
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_8: `cell-${string}`, __VLS_9: {
|
|
36
37
|
row: EditableRow;
|
|
37
38
|
index: number;
|
|
38
39
|
value: unknown;
|
|
39
40
|
column: EditableColumnDef;
|
|
40
|
-
},
|
|
41
|
+
}, __VLS_32: {
|
|
41
42
|
row: EditableRow;
|
|
42
43
|
index: number;
|
|
43
|
-
},
|
|
44
|
+
}, __VLS_35: `footer-${string}`, __VLS_36: {
|
|
44
45
|
rows: EditableRow[];
|
|
45
46
|
column: EditableColumnDef;
|
|
46
47
|
};
|
|
47
48
|
type __VLS_Slots = {} & {
|
|
48
|
-
[K in NonNullable<typeof
|
|
49
|
+
[K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
|
|
49
50
|
} & {
|
|
50
|
-
[K in NonNullable<typeof
|
|
51
|
+
[K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
|
|
51
52
|
} & {
|
|
52
53
|
toolbar?: (props: typeof __VLS_1) => any;
|
|
53
54
|
} & {
|
|
54
|
-
|
|
55
|
+
'toolbar-extra'?: (props: typeof __VLS_3) => any;
|
|
55
56
|
} & {
|
|
56
|
-
|
|
57
|
+
empty?: (props: typeof __VLS_5) => any;
|
|
58
|
+
} & {
|
|
59
|
+
expansion?: (props: typeof __VLS_32) => any;
|
|
57
60
|
};
|
|
58
61
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
62
|
"update:modelValue": (rows: EditableRow[]) => any;
|
|
@@ -12,6 +12,11 @@ interface ChipEntry {
|
|
|
12
12
|
key: string;
|
|
13
13
|
label: string;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Só campos visíveis: um `validate` de campo oculto barraria o save sem ter onde
|
|
17
|
+
* mostrar o erro (o campo não está na tela). O erro de campo que ficou oculto é
|
|
18
|
+
* limpo para não reaparecer se ele voltar.
|
|
19
|
+
*/
|
|
15
20
|
declare function validateAll(): string[];
|
|
16
21
|
declare function clearErrors(): void;
|
|
17
22
|
declare var __VLS_2: `field-${string}`, __VLS_3: {
|
|
@@ -38,7 +38,9 @@ type __VLS_Props = {
|
|
|
38
38
|
/** Zoom máximo do tile layer (o World_Imagery vai até 19). */
|
|
39
39
|
maxZoom?: number;
|
|
40
40
|
searchPlaceholder?: string;
|
|
41
|
-
/** Rótulo do rodapé, à esquerda da área somada.
|
|
41
|
+
/** Rótulo do rodapé, à esquerda da área somada. `''` esconde o rodapé inteiro
|
|
42
|
+
* — mapa de escolha única, onde somar área não diz nada, não precisa da barra.
|
|
43
|
+
* Um `#footer` próprio continua valendo, com ou sem rótulo. */
|
|
42
44
|
areaLabel?: string;
|
|
43
45
|
/** Unidade da área, no rodapé e no tooltip do polígono. */
|
|
44
46
|
areaSuffix?: string;
|
|
@@ -57,6 +59,11 @@ type __VLS_Props = {
|
|
|
57
59
|
collapseLabel?: string;
|
|
58
60
|
/** `layout="sobreposto"`: rótulo acessível do botão que reabre o painel. */
|
|
59
61
|
expandLabel?: string;
|
|
62
|
+
/** Painel recolhido (`v-model:collapsed`). Omitido, o estado é interno — o
|
|
63
|
+
* padrão. Passe quando a tela precisar decidir por contexto (ex.: uma camada
|
|
64
|
+
* em que a lista atrapalha mais do que ajuda); o botão continua funcionando
|
|
65
|
+
* e devolve a troca pelo `update:collapsed`. */
|
|
66
|
+
collapsed?: boolean;
|
|
60
67
|
/** Selo sobre o mapa (canto superior direito). `''` esconde. */
|
|
61
68
|
badgeLabel?: string;
|
|
62
69
|
emptyMessage?: string;
|
|
@@ -215,11 +222,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
215
222
|
"feature-click": (feature: MapSelectFeature) => any;
|
|
216
223
|
"feature-enter": (feature: MapSelectFeature) => any;
|
|
217
224
|
"feature-leave": () => any;
|
|
225
|
+
"update:collapsed": (collapsed: boolean) => any;
|
|
218
226
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
219
227
|
"onUpdate:modelValue"?: ((ids: MapSelectId[]) => any) | undefined;
|
|
220
228
|
"onFeature-click"?: ((feature: MapSelectFeature) => any) | undefined;
|
|
221
229
|
"onFeature-enter"?: ((feature: MapSelectFeature) => any) | undefined;
|
|
222
230
|
"onFeature-leave"?: (() => any) | undefined;
|
|
231
|
+
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
223
232
|
}>, {
|
|
224
233
|
modelValue: MapSelectId[];
|
|
225
234
|
disabled: boolean;
|
|
@@ -241,6 +250,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
241
250
|
clearLabel: string;
|
|
242
251
|
collapseLabel: string;
|
|
243
252
|
expandLabel: string;
|
|
253
|
+
collapsed: boolean;
|
|
244
254
|
badgeLabel: string;
|
|
245
255
|
mapErrorMessage: string;
|
|
246
256
|
tooltips: MapSelectTooltips;
|
|
@@ -2,9 +2,12 @@ import { RouteTab, RouteTabsApi } from '../../types/routeTabs';
|
|
|
2
2
|
/**
|
|
3
3
|
* Barra da navegação por abas (estilo browser/ERP) — o par do WTabViewport.
|
|
4
4
|
* Não confundir com o WTabBar (abas de seção DENTRO de uma tela): esta barra
|
|
5
|
-
* lista rotas abertas, fecha (X, botão do meio) e oferece menu
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* lista rotas abertas, fecha (X, botão do meio) e oferece o mesmo menu por
|
|
6
|
+
* botão direito ou pelo `⋮` da aba: recarregar/fechar outras/fechar todas.
|
|
7
|
+
* Abas com `group` ganham uma cor por grupo (fixa via `RouteTabMeta.color` ou
|
|
8
|
+
* derivada do nome), só em acentos — ícone, fio da ativa, ponto do rótulo —
|
|
9
|
+
* para o texto seguir neutro. Overflow rola na horizontal e a aba ativa se
|
|
10
|
+
* mantém à vista. Todo o estado vem do `useRouteTabs` via prop.
|
|
8
11
|
*/
|
|
9
12
|
type __VLS_Props = {
|
|
10
13
|
/** Instância retornada por `useRouteTabs` — o dono do estado. */
|