@wgalleti/primevue-components 1.17.0 → 1.18.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.
Files changed (54) hide show
  1. package/dist/components/crud/WCrudView.vue.d.ts +84 -39
  2. package/dist/components/ui/WCheckList.vue.d.ts +1 -1
  3. package/dist/components/ui/WMapSelect.vue.d.ts +1 -1
  4. package/dist/components-fZZryWQK.cjs +25 -0
  5. package/dist/components-fZZryWQK.cjs.map +1 -0
  6. package/dist/{components-B2_5tJ39.js → components-uhfTVtlE.js} +2126 -2078
  7. package/dist/components-uhfTVtlE.js.map +1 -0
  8. package/dist/components.cjs +1 -1
  9. package/dist/components.js +1 -2
  10. package/dist/{composables-BnvruxBD.cjs → composables-B5lQK7vG.cjs} +2 -2
  11. package/dist/composables-B5lQK7vG.cjs.map +1 -0
  12. package/dist/{composables-DSKGBKCD.js → composables-BYOQ7IBQ.js} +77 -90
  13. package/dist/composables-BYOQ7IBQ.js.map +1 -0
  14. package/dist/composables.cjs +1 -1
  15. package/dist/composables.js +2 -2
  16. package/dist/connect.cjs +1 -1
  17. package/dist/connect.cjs.map +1 -1
  18. package/dist/connect.js +3 -5
  19. package/dist/connect.js.map +1 -1
  20. package/dist/index.cjs +1 -1
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +25 -29
  24. package/dist/index.js.map +1 -1
  25. package/dist/{labels-CXBhCk2N.js → labels-Dgz3NmZ4.js} +2 -3
  26. package/dist/labels-Dgz3NmZ4.js.map +1 -0
  27. package/dist/labels-DiFDhFhQ.cjs.map +1 -1
  28. package/dist/primevue-components.css +1 -1
  29. package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
  30. package/dist/{routeTabs-D6m8PuP6.js → routeTabs-C86S8jNU.js} +2 -3
  31. package/dist/routeTabs-C86S8jNU.js.map +1 -0
  32. package/dist/types/crudGroup.d.ts +11 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types.cjs +1 -1
  35. package/dist/types.js +3 -3
  36. package/dist/useFormKeyboardNav-P-sZq9cy.cjs +3 -0
  37. package/dist/useFormKeyboardNav-P-sZq9cy.cjs.map +1 -0
  38. package/dist/{useFormKeyboardNav-DuQrZphr.js → useFormKeyboardNav-wVvZqL_0.js} +16 -33
  39. package/dist/useFormKeyboardNav-wVvZqL_0.js.map +1 -0
  40. package/dist/vite.cjs.map +1 -1
  41. package/dist/vite.js +1 -2
  42. package/dist/vite.js.map +1 -1
  43. package/package.json +6 -5
  44. package/skill/references/crud.md +2 -0
  45. package/dist/components-B2_5tJ39.js.map +0 -1
  46. package/dist/components-CT7QtoAm.cjs +0 -25
  47. package/dist/components-CT7QtoAm.cjs.map +0 -1
  48. package/dist/composables-BnvruxBD.cjs.map +0 -1
  49. package/dist/composables-DSKGBKCD.js.map +0 -1
  50. package/dist/labels-CXBhCk2N.js.map +0 -1
  51. package/dist/routeTabs-D6m8PuP6.js.map +0 -1
  52. package/dist/useFormKeyboardNav-5Y2oB60G.cjs +0 -3
  53. package/dist/useFormKeyboardNav-5Y2oB60G.cjs.map +0 -1
  54. package/dist/useFormKeyboardNav-DuQrZphr.js.map +0 -1
@@ -52,73 +52,106 @@ type __VLS_Props = {
52
52
  /** Chave de persistência do estado de coluna (visibilidade) em localStorage.
53
53
  * Opt-in: quando definida, exibe o seletor de colunas e persiste o que foi ocultado. */
54
54
  persistState?: string;
55
+ /** Agrupa as linhas sob cabeçalhos recolhíveis, na tabela e nos cards: nome do campo ou
56
+ * função que dá a chave do grupo. Os grupos seguem a ordem da primeira aparição em
57
+ * `crud.items`; para ordenar, use `transformItems` ou a ordenação da API. A lista é lazy:
58
+ * agrupa o que veio na página, então um grupo pode continuar na página seguinte. */
59
+ groupBy?: string | ((item: Record<string, unknown>) => string);
60
+ /** Rótulo do grupo; default a própria chave ("Sem grupo" quando vazia). */
61
+ groupLabel?: (groupKey: string, items: Record<string, unknown>[]) => string;
55
62
  };
56
63
  /**
57
64
  * Rola a tabela até a linha cujo pk é `value` — o par do `v-model:selectedRow`
58
65
  * para o sentido "de fora para dentro" (selecionou no mapa/gráfico, a linha
59
66
  * aparece). Só alcança a página atual: linha em outra página não é buscada — é
60
67
  * do consumidor decidir o que fazer nesse caso (a lista é lazy). Com linhas de
61
- * expansão abertas o índice DOM diverge do índice do item; aí não rola.
68
+ * expansão abertas o índice DOM diverge do índice do item; aí não rola. Linha em
69
+ * grupo recolhido: abre o grupo antes de rolar.
62
70
  */
63
71
  declare function scrollToRow(value: unknown): void;
64
72
  type __VLS_ModelProps = {
65
73
  'selectedRow'?: Record<string, unknown> | null;
74
+ 'collapsedGroups'?: string[];
66
75
  };
67
76
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
68
77
  declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {
69
78
  selected: any[];
70
79
  crud: CrudManagerReturn<any>;
71
- }, __VLS_65: {}, __VLS_95: {}, __VLS_104: {}, __VLS_157: {}, __VLS_177: `column-${string}`, __VLS_178: {
80
+ }, __VLS_66: {}, __VLS_96: {}, __VLS_105: {}, __VLS_172: {}, __VLS_175: {
81
+ groupKey: string;
82
+ label: string;
83
+ items: Record<string, unknown>[];
84
+ count: number;
85
+ collapsed: boolean;
86
+ }, __VLS_177: {
87
+ groupKey: string;
88
+ label: string;
89
+ items: Record<string, unknown>[];
90
+ count: number;
91
+ collapsed: boolean;
92
+ }, __VLS_202: `column-${string}`, __VLS_203: {
72
93
  data: any;
73
94
  value: any;
74
- }, __VLS_214: {
95
+ }, __VLS_239: {
75
96
  data: any;
76
97
  crud: CrudManagerReturn<any>;
77
- }, __VLS_217: {
78
- data: any;
79
- }, __VLS_237: {}, __VLS_267: {}, __VLS_276: {}, __VLS_306: {}, __VLS_308: {
98
+ }, __VLS_242: {
80
99
  data: any;
100
+ }, __VLS_262: {}, __VLS_292: {}, __VLS_301: {}, __VLS_345: {}, __VLS_347: {
101
+ groupKey: string;
102
+ label: string;
103
+ items: Record<string, unknown>[];
104
+ count: number;
105
+ collapsed: boolean;
106
+ }, __VLS_349: {
107
+ groupKey: string;
108
+ label: string;
109
+ items: Record<string, unknown>[];
110
+ count: number;
111
+ collapsed: boolean;
112
+ }, __VLS_356: {
113
+ data: Record<string, unknown>;
81
114
  crud: CrudManagerReturn<any>;
82
115
  columns: ColumnDef[];
83
116
  index: number;
84
- }, __VLS_311: `column-${string}`, __VLS_312: {
85
- data: any;
86
- value: any;
87
- }, __VLS_326: {
88
- data: any;
117
+ }, __VLS_359: `column-${string}`, __VLS_360: {
118
+ data: Record<string, unknown>;
119
+ value: unknown;
120
+ }, __VLS_374: {
121
+ data: Record<string, unknown>;
89
122
  crud: CrudManagerReturn<any>;
90
- }, __VLS_349: {
123
+ }, __VLS_397: {
91
124
  selected: Record<string, unknown> | null;
92
125
  crud: CrudManagerReturn<any>;
93
- }, __VLS_372: {
126
+ }, __VLS_420: {
94
127
  crud: CrudManagerReturn<any>;
95
128
  dialogWidth: string;
96
- }, __VLS_386: `field-${string}`, __VLS_387: {
129
+ }, __VLS_434: `field-${string}`, __VLS_435: {
97
130
  field: FieldDef;
98
131
  formData: Record<string, unknown>;
99
132
  isEditing: boolean;
100
133
  fieldId: string;
101
134
  setFormField: (f: string, v: unknown) => void;
102
- }, __VLS_391: `image-${string}`, __VLS_392: {
135
+ }, __VLS_439: `image-${string}`, __VLS_440: {
103
136
  field: FieldDef;
104
137
  formData: Record<string, unknown>;
105
- }, __VLS_395: {
138
+ }, __VLS_443: {
106
139
  formData: Record<string, unknown>;
107
140
  isEditing: boolean;
108
- }, __VLS_398: {
141
+ }, __VLS_446: {
109
142
  formData: Record<string, unknown>;
110
143
  isEditing: boolean;
111
- }, __VLS_406: {
144
+ }, __VLS_454: {
112
145
  item: Record<string, unknown> | null;
113
146
  };
114
147
  type __VLS_Slots = {} & {
115
- [K in NonNullable<typeof __VLS_177>]?: (props: typeof __VLS_178) => any;
148
+ [K in NonNullable<typeof __VLS_202>]?: (props: typeof __VLS_203) => any;
116
149
  } & {
117
- [K in NonNullable<typeof __VLS_311>]?: (props: typeof __VLS_312) => any;
150
+ [K in NonNullable<typeof __VLS_359>]?: (props: typeof __VLS_360) => any;
118
151
  } & {
119
- [K in NonNullable<typeof __VLS_386>]?: (props: typeof __VLS_387) => any;
152
+ [K in NonNullable<typeof __VLS_434>]?: (props: typeof __VLS_435) => any;
120
153
  } & {
121
- [K in NonNullable<typeof __VLS_391>]?: (props: typeof __VLS_392) => any;
154
+ [K in NonNullable<typeof __VLS_439>]?: (props: typeof __VLS_440) => any;
122
155
  } & {
123
156
  'header-actions'?: (props: typeof __VLS_1) => any;
124
157
  } & {
@@ -126,39 +159,47 @@ type __VLS_Slots = {} & {
126
159
  } & {
127
160
  'bulk-actions'?: (props: typeof __VLS_12) => any;
128
161
  } & {
129
- 'toolbar-start'?: (props: typeof __VLS_65) => any;
162
+ 'toolbar-start'?: (props: typeof __VLS_66) => any;
163
+ } & {
164
+ 'toolbar-filters'?: (props: typeof __VLS_96) => any;
165
+ } & {
166
+ 'toolbar-actions'?: (props: typeof __VLS_105) => any;
167
+ } & {
168
+ empty?: (props: typeof __VLS_172) => any;
169
+ } & {
170
+ 'group-header'?: (props: typeof __VLS_175) => any;
130
171
  } & {
131
- 'toolbar-filters'?: (props: typeof __VLS_95) => any;
172
+ 'group-meta'?: (props: typeof __VLS_177) => any;
132
173
  } & {
133
- 'toolbar-actions'?: (props: typeof __VLS_104) => any;
174
+ 'row-actions'?: (props: typeof __VLS_239) => any;
134
175
  } & {
135
- empty?: (props: typeof __VLS_157) => any;
176
+ expansion?: (props: typeof __VLS_242) => any;
136
177
  } & {
137
- 'row-actions'?: (props: typeof __VLS_214) => any;
178
+ 'toolbar-start'?: (props: typeof __VLS_262) => any;
138
179
  } & {
139
- expansion?: (props: typeof __VLS_217) => any;
180
+ 'toolbar-filters'?: (props: typeof __VLS_292) => any;
140
181
  } & {
141
- 'toolbar-start'?: (props: typeof __VLS_237) => any;
182
+ 'toolbar-actions'?: (props: typeof __VLS_301) => any;
142
183
  } & {
143
- 'toolbar-filters'?: (props: typeof __VLS_267) => any;
184
+ empty?: (props: typeof __VLS_345) => any;
144
185
  } & {
145
- 'toolbar-actions'?: (props: typeof __VLS_276) => any;
186
+ 'group-header'?: (props: typeof __VLS_347) => any;
146
187
  } & {
147
- empty?: (props: typeof __VLS_306) => any;
188
+ 'group-meta'?: (props: typeof __VLS_349) => any;
148
189
  } & {
149
- card?: (props: typeof __VLS_308) => any;
190
+ card?: (props: typeof __VLS_356) => any;
150
191
  } & {
151
- 'row-actions'?: (props: typeof __VLS_326) => any;
192
+ 'row-actions'?: (props: typeof __VLS_374) => any;
152
193
  } & {
153
- 'rail-actions'?: (props: typeof __VLS_349) => any;
194
+ 'rail-actions'?: (props: typeof __VLS_397) => any;
154
195
  } & {
155
- 'form-dialog'?: (props: typeof __VLS_372) => any;
196
+ 'form-dialog'?: (props: typeof __VLS_420) => any;
156
197
  } & {
157
- 'after-fields'?: (props: typeof __VLS_395) => any;
198
+ 'after-fields'?: (props: typeof __VLS_443) => any;
158
199
  } & {
159
- aside?: (props: typeof __VLS_398) => any;
200
+ aside?: (props: typeof __VLS_446) => any;
160
201
  } & {
161
- 'delete-message'?: (props: typeof __VLS_406) => any;
202
+ 'delete-message'?: (props: typeof __VLS_454) => any;
162
203
  };
163
204
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
164
205
  scrollToRow: typeof scrollToRow;
@@ -168,12 +209,14 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
168
209
  "row-collapse": (data: unknown) => any;
169
210
  print: (data: Record<string, unknown>) => any;
170
211
  "update:selectedRow": (value: Record<string, unknown> | null) => any;
212
+ "update:collapsedGroups": (value: string[]) => any;
171
213
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
172
214
  "onRow-click"?: ((data: Record<string, unknown>) => any) | undefined;
173
215
  "onRow-expand"?: ((data: unknown) => any) | undefined;
174
216
  "onRow-collapse"?: ((data: unknown) => any) | undefined;
175
217
  onPrint?: ((data: Record<string, unknown>) => any) | undefined;
176
218
  "onUpdate:selectedRow"?: ((value: Record<string, unknown> | null) => any) | undefined;
219
+ "onUpdate:collapsedGroups"?: ((value: string[]) => any) | undefined;
177
220
  }>, {
178
221
  dialogWidth: string;
179
222
  showHeader: boolean;
@@ -196,6 +239,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
196
239
  csvFilename: string;
197
240
  csvScope: "all" | "page";
198
241
  csvPageSize: number;
242
+ groupBy: string | ((item: Record<string, unknown>) => string);
243
+ groupLabel: (groupKey: string, items: Record<string, unknown>[]) => string;
199
244
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
200
245
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
201
246
  declare const _default: typeof __VLS_export;
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
19
19
  };
20
20
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
21
  emptyMessage: string;
22
- showCount: boolean;
23
22
  items: CheckListItem[];
23
+ showCount: 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;
@@ -237,8 +237,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
237
237
  height: string;
238
238
  readonly: boolean;
239
239
  selectionMode: MapSelectSelectionMode;
240
- features: MapSelectFeature[];
241
240
  collapsed: boolean;
241
+ features: MapSelectFeature[];
242
242
  scopeGeometry: MapSelectGeometry | null;
243
243
  tileUrl: string;
244
244
  tileAttribution: string;