@wgalleti/primevue-components 0.31.0 → 0.32.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/components/charts/WChart.vue.d.ts +1 -1
- package/dist/components/crud/WCrudView.vue.d.ts +22 -22
- package/dist/components/crud/WEditableTable.vue.d.ts +1 -1
- package/dist/components/form/WAutoCompleteFK.vue.d.ts +3 -1
- package/dist/components/form/WTreeSelect.vue.d.ts +1 -1
- package/dist/components/ui/WMapSelect.vue.d.ts +2 -2
- package/dist/components-CwXJtumP.cjs +25 -0
- package/dist/components-CwXJtumP.cjs.map +1 -0
- package/dist/{components-BNyzL6pd.js → components-SHgQLpCj.js} +1296 -1187
- package/dist/components-SHgQLpCj.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-DxLadKgY.cjs → composables-B3Czzje1.cjs} +2 -2
- package/dist/{composables-DxLadKgY.cjs.map → composables-B3Czzje1.cjs.map} +1 -1
- package/dist/{composables-CTH72sG4.js → composables-wG25Sz-z.js} +2 -2
- package/dist/{composables-CTH72sG4.js.map → composables-wG25Sz-z.js.map} +1 -1
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/primevue-components.css +1 -1
- package/dist/types/column.d.ts +3 -3
- package/dist/types/field.d.ts +31 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{useFormKeyboardNav-DAtl5tBF.cjs → useFormKeyboardNav-CzKY9ZV2.cjs} +2 -2
- package/dist/useFormKeyboardNav-CzKY9ZV2.cjs.map +1 -0
- package/dist/{useFormKeyboardNav-Yj2HeWy5.js → useFormKeyboardNav-DuxPdAeK.js} +5 -2
- package/dist/useFormKeyboardNav-DuxPdAeK.js.map +1 -0
- package/package.json +1 -1
- package/skill/SKILL.md +1 -0
- package/skill/references/crud.md +16 -4
- package/dist/components-BK9LPrAs.cjs +0 -25
- package/dist/components-BK9LPrAs.cjs.map +0 -1
- package/dist/components-BNyzL6pd.js.map +0 -1
- package/dist/useFormKeyboardNav-DAtl5tBF.cjs.map +0 -1
- package/dist/useFormKeyboardNav-Yj2HeWy5.js.map +0 -1
|
@@ -21,10 +21,10 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
unavailable?: (props: typeof __VLS_3) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
+
emptyMessage: string;
|
|
24
25
|
loading: boolean;
|
|
25
26
|
height: string;
|
|
26
27
|
empty: boolean;
|
|
27
|
-
emptyMessage: string;
|
|
28
28
|
print: boolean;
|
|
29
29
|
renderer: "canvas" | "svg";
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -51,10 +51,10 @@ type __VLS_ModelProps = {
|
|
|
51
51
|
'selectedRow'?: Record<string, unknown> | null;
|
|
52
52
|
};
|
|
53
53
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
54
|
-
declare var __VLS_1: {}, __VLS_10: {},
|
|
54
|
+
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {
|
|
55
55
|
selected: any[];
|
|
56
56
|
crud: CrudManagerReturn<any>;
|
|
57
|
-
},
|
|
57
|
+
}, __VLS_64: {}, __VLS_94: {}, __VLS_103: {}, __VLS_156: {}, __VLS_176: `column-${string}`, __VLS_177: {
|
|
58
58
|
data: any;
|
|
59
59
|
value: any;
|
|
60
60
|
}, __VLS_213: {
|
|
@@ -62,48 +62,48 @@ declare var __VLS_1: {}, __VLS_10: {}, __VLS_47: {
|
|
|
62
62
|
crud: CrudManagerReturn<any>;
|
|
63
63
|
}, __VLS_216: {
|
|
64
64
|
data: any;
|
|
65
|
-
}, __VLS_236: {},
|
|
65
|
+
}, __VLS_236: {}, __VLS_266: {}, __VLS_275: {}, __VLS_305: {}, __VLS_307: {
|
|
66
66
|
data: any;
|
|
67
67
|
crud: CrudManagerReturn<any>;
|
|
68
68
|
columns: ColumnDef[];
|
|
69
69
|
index: number;
|
|
70
|
-
},
|
|
70
|
+
}, __VLS_310: `column-${string}`, __VLS_311: {
|
|
71
71
|
data: any;
|
|
72
72
|
value: any;
|
|
73
|
-
},
|
|
73
|
+
}, __VLS_325: {
|
|
74
74
|
data: any;
|
|
75
75
|
crud: CrudManagerReturn<any>;
|
|
76
|
-
},
|
|
76
|
+
}, __VLS_348: {
|
|
77
77
|
selected: Record<string, unknown> | null;
|
|
78
78
|
crud: CrudManagerReturn<any>;
|
|
79
|
-
},
|
|
79
|
+
}, __VLS_371: {
|
|
80
80
|
crud: CrudManagerReturn<any>;
|
|
81
81
|
dialogWidth: string;
|
|
82
|
-
},
|
|
82
|
+
}, __VLS_385: `field-${string}`, __VLS_386: {
|
|
83
83
|
field: FieldDef;
|
|
84
84
|
formData: Record<string, unknown>;
|
|
85
85
|
isEditing: boolean;
|
|
86
86
|
fieldId: string;
|
|
87
87
|
setFormField: (f: string, v: unknown) => void;
|
|
88
|
-
},
|
|
88
|
+
}, __VLS_394: {
|
|
89
89
|
item: Record<string, unknown> | null;
|
|
90
90
|
};
|
|
91
91
|
type __VLS_Slots = {} & {
|
|
92
92
|
[K in NonNullable<typeof __VLS_176>]?: (props: typeof __VLS_177) => any;
|
|
93
93
|
} & {
|
|
94
|
-
[K in NonNullable<typeof
|
|
94
|
+
[K in NonNullable<typeof __VLS_310>]?: (props: typeof __VLS_311) => any;
|
|
95
95
|
} & {
|
|
96
|
-
[K in NonNullable<typeof
|
|
96
|
+
[K in NonNullable<typeof __VLS_385>]?: (props: typeof __VLS_386) => any;
|
|
97
97
|
} & {
|
|
98
98
|
'header-actions'?: (props: typeof __VLS_1) => any;
|
|
99
99
|
} & {
|
|
100
100
|
'before-table'?: (props: typeof __VLS_10) => any;
|
|
101
101
|
} & {
|
|
102
|
-
'bulk-actions'?: (props: typeof
|
|
102
|
+
'bulk-actions'?: (props: typeof __VLS_12) => any;
|
|
103
103
|
} & {
|
|
104
|
-
'toolbar-start'?: (props: typeof
|
|
104
|
+
'toolbar-start'?: (props: typeof __VLS_64) => any;
|
|
105
105
|
} & {
|
|
106
|
-
'toolbar-filters'?: (props: typeof
|
|
106
|
+
'toolbar-filters'?: (props: typeof __VLS_94) => any;
|
|
107
107
|
} & {
|
|
108
108
|
'toolbar-actions'?: (props: typeof __VLS_103) => any;
|
|
109
109
|
} & {
|
|
@@ -115,21 +115,21 @@ type __VLS_Slots = {} & {
|
|
|
115
115
|
} & {
|
|
116
116
|
'toolbar-start'?: (props: typeof __VLS_236) => any;
|
|
117
117
|
} & {
|
|
118
|
-
'toolbar-filters'?: (props: typeof
|
|
118
|
+
'toolbar-filters'?: (props: typeof __VLS_266) => any;
|
|
119
119
|
} & {
|
|
120
|
-
'toolbar-actions'?: (props: typeof
|
|
120
|
+
'toolbar-actions'?: (props: typeof __VLS_275) => any;
|
|
121
121
|
} & {
|
|
122
|
-
empty?: (props: typeof
|
|
122
|
+
empty?: (props: typeof __VLS_305) => any;
|
|
123
123
|
} & {
|
|
124
|
-
card?: (props: typeof
|
|
124
|
+
card?: (props: typeof __VLS_307) => any;
|
|
125
125
|
} & {
|
|
126
|
-
'row-actions'?: (props: typeof
|
|
126
|
+
'row-actions'?: (props: typeof __VLS_325) => any;
|
|
127
127
|
} & {
|
|
128
|
-
'rail-actions'?: (props: typeof
|
|
128
|
+
'rail-actions'?: (props: typeof __VLS_348) => any;
|
|
129
129
|
} & {
|
|
130
|
-
'form-dialog'?: (props: typeof
|
|
130
|
+
'form-dialog'?: (props: typeof __VLS_371) => any;
|
|
131
131
|
} & {
|
|
132
|
-
'delete-message'?: (props: typeof
|
|
132
|
+
'delete-message'?: (props: typeof __VLS_394) => any;
|
|
133
133
|
};
|
|
134
134
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
135
135
|
scrollToRow: typeof scrollToRow;
|
|
@@ -86,11 +86,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
86
86
|
"onUpdate:modelValue"?: ((rows: EditableRow[]) => any) | undefined;
|
|
87
87
|
onRemove?: ((row: EditableRow, index: number) => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
|
+
emptyMessage: string;
|
|
89
90
|
modelValue: EditableRow[];
|
|
90
91
|
disabled: boolean;
|
|
91
92
|
columns: EditableColumnDef[];
|
|
92
93
|
removable: boolean;
|
|
93
|
-
emptyMessage: string;
|
|
94
94
|
expandable: boolean;
|
|
95
95
|
footerLabel: string;
|
|
96
96
|
cardMode: "auto" | "never" | "always";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldDef, FieldSubRowsFetch } from '../../types/field';
|
|
1
|
+
import { FieldDef, FieldSubRowsFetch, FkCrudConfig } from '../../types/field';
|
|
2
2
|
import { ColumnDef } from '../../types/column';
|
|
3
3
|
interface ColumnMeta {
|
|
4
4
|
field: string;
|
|
@@ -49,6 +49,8 @@ type __VLS_Props = {
|
|
|
49
49
|
autoSelectSingle?: boolean;
|
|
50
50
|
crudFields?: FieldDef[];
|
|
51
51
|
crudColumns?: ColumnDef[];
|
|
52
|
+
/** A configuração de CRUD da entidade (a mesma da tela dela) — ver `FieldDef.crud`. */
|
|
53
|
+
crud?: FkCrudConfig;
|
|
52
54
|
/** Sub-linhas do grid do modal: recebe as linhas da página e devolve o mapa
|
|
53
55
|
* `id → sub-linhas` + as colunas (dinâmicas) do mini-grid. Linha com entrada
|
|
54
56
|
* no mapa abre expandida — ex.: lote (linha) com suas análises (sub-linhas). */
|
|
@@ -98,6 +98,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
98
98
|
"onUpdate:modelValue"?: ((ids: TreeSelectId[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
filter: boolean;
|
|
101
|
+
emptyMessage: string;
|
|
101
102
|
modelValue: TreeSelectId[];
|
|
102
103
|
optionLabel: string;
|
|
103
104
|
optionValue: string;
|
|
@@ -106,7 +107,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
106
107
|
options: TreeSelectOption[];
|
|
107
108
|
filterPlaceholder: string;
|
|
108
109
|
filterFields: string[];
|
|
109
|
-
emptyMessage: string;
|
|
110
110
|
showCount: boolean;
|
|
111
111
|
filterEmptyMessage: string;
|
|
112
112
|
showToggleAll: boolean;
|
|
@@ -230,18 +230,18 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
230
230
|
"onFeature-leave"?: (() => any) | undefined;
|
|
231
231
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
232
232
|
}>, {
|
|
233
|
+
searchPlaceholder: string;
|
|
234
|
+
emptyMessage: string;
|
|
233
235
|
modelValue: MapSelectId[];
|
|
234
236
|
disabled: boolean;
|
|
235
237
|
height: string;
|
|
236
238
|
readonly: boolean;
|
|
237
239
|
selectionMode: MapSelectSelectionMode;
|
|
238
|
-
emptyMessage: string;
|
|
239
240
|
features: MapSelectFeature[];
|
|
240
241
|
scopeGeometry: MapSelectGeometry | null;
|
|
241
242
|
tileUrl: string;
|
|
242
243
|
tileAttribution: string;
|
|
243
244
|
maxZoom: number;
|
|
244
|
-
searchPlaceholder: string;
|
|
245
245
|
areaLabel: string;
|
|
246
246
|
areaSuffix: string;
|
|
247
247
|
areaDecimals: number;
|