@wgalleti/primevue-components 1.13.0 → 1.15.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/WCrudView.vue.d.ts +36 -34
- package/dist/components/index.d.ts +1 -0
- package/dist/components/ui/WCalendarGrid.vue.d.ts +74 -0
- package/dist/components-BzGcHXo6.cjs +25 -0
- package/dist/components-BzGcHXo6.cjs.map +1 -0
- package/dist/{components-DVWfgtJE.js → components-DlhMmfWP.js} +1850 -1511
- package/dist/components-DlhMmfWP.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -26
- package/dist/primevue-components.css +1 -1
- package/dist/types/calendar.d.ts +39 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/manager.d.ts +8 -0
- package/package.json +1 -1
- package/skill/references/crud.md +1 -0
- package/dist/components-BizOBEVG.cjs +0 -25
- package/dist/components-BizOBEVG.cjs.map +0 -1
- package/dist/components-DVWfgtJE.js.map +0 -1
|
@@ -68,57 +68,57 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
68
68
|
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {
|
|
69
69
|
selected: any[];
|
|
70
70
|
crud: CrudManagerReturn<any>;
|
|
71
|
-
},
|
|
71
|
+
}, __VLS_65: {}, __VLS_95: {}, __VLS_104: {}, __VLS_157: {}, __VLS_177: `column-${string}`, __VLS_178: {
|
|
72
72
|
data: any;
|
|
73
73
|
value: any;
|
|
74
|
-
},
|
|
74
|
+
}, __VLS_214: {
|
|
75
75
|
data: any;
|
|
76
76
|
crud: CrudManagerReturn<any>;
|
|
77
|
-
},
|
|
77
|
+
}, __VLS_217: {
|
|
78
78
|
data: any;
|
|
79
|
-
},
|
|
79
|
+
}, __VLS_237: {}, __VLS_267: {}, __VLS_276: {}, __VLS_306: {}, __VLS_308: {
|
|
80
80
|
data: any;
|
|
81
81
|
crud: CrudManagerReturn<any>;
|
|
82
82
|
columns: ColumnDef[];
|
|
83
83
|
index: number;
|
|
84
|
-
},
|
|
84
|
+
}, __VLS_311: `column-${string}`, __VLS_312: {
|
|
85
85
|
data: any;
|
|
86
86
|
value: any;
|
|
87
|
-
},
|
|
87
|
+
}, __VLS_326: {
|
|
88
88
|
data: any;
|
|
89
89
|
crud: CrudManagerReturn<any>;
|
|
90
|
-
},
|
|
90
|
+
}, __VLS_349: {
|
|
91
91
|
selected: Record<string, unknown> | null;
|
|
92
92
|
crud: CrudManagerReturn<any>;
|
|
93
|
-
},
|
|
93
|
+
}, __VLS_372: {
|
|
94
94
|
crud: CrudManagerReturn<any>;
|
|
95
95
|
dialogWidth: string;
|
|
96
|
-
},
|
|
96
|
+
}, __VLS_386: `field-${string}`, __VLS_387: {
|
|
97
97
|
field: FieldDef;
|
|
98
98
|
formData: Record<string, unknown>;
|
|
99
99
|
isEditing: boolean;
|
|
100
100
|
fieldId: string;
|
|
101
101
|
setFormField: (f: string, v: unknown) => void;
|
|
102
|
-
},
|
|
102
|
+
}, __VLS_391: `image-${string}`, __VLS_392: {
|
|
103
103
|
field: FieldDef;
|
|
104
104
|
formData: Record<string, unknown>;
|
|
105
|
-
},
|
|
105
|
+
}, __VLS_395: {
|
|
106
106
|
formData: Record<string, unknown>;
|
|
107
107
|
isEditing: boolean;
|
|
108
|
-
},
|
|
108
|
+
}, __VLS_398: {
|
|
109
109
|
formData: Record<string, unknown>;
|
|
110
110
|
isEditing: boolean;
|
|
111
|
-
},
|
|
111
|
+
}, __VLS_406: {
|
|
112
112
|
item: Record<string, unknown> | null;
|
|
113
113
|
};
|
|
114
114
|
type __VLS_Slots = {} & {
|
|
115
|
-
[K in NonNullable<typeof
|
|
115
|
+
[K in NonNullable<typeof __VLS_177>]?: (props: typeof __VLS_178) => any;
|
|
116
116
|
} & {
|
|
117
|
-
[K in NonNullable<typeof
|
|
117
|
+
[K in NonNullable<typeof __VLS_311>]?: (props: typeof __VLS_312) => any;
|
|
118
118
|
} & {
|
|
119
|
-
[K in NonNullable<typeof
|
|
119
|
+
[K in NonNullable<typeof __VLS_386>]?: (props: typeof __VLS_387) => any;
|
|
120
120
|
} & {
|
|
121
|
-
[K in NonNullable<typeof
|
|
121
|
+
[K in NonNullable<typeof __VLS_391>]?: (props: typeof __VLS_392) => any;
|
|
122
122
|
} & {
|
|
123
123
|
'header-actions'?: (props: typeof __VLS_1) => any;
|
|
124
124
|
} & {
|
|
@@ -126,48 +126,50 @@ type __VLS_Slots = {} & {
|
|
|
126
126
|
} & {
|
|
127
127
|
'bulk-actions'?: (props: typeof __VLS_12) => any;
|
|
128
128
|
} & {
|
|
129
|
-
'toolbar-start'?: (props: typeof
|
|
129
|
+
'toolbar-start'?: (props: typeof __VLS_65) => any;
|
|
130
130
|
} & {
|
|
131
|
-
'toolbar-filters'?: (props: typeof
|
|
131
|
+
'toolbar-filters'?: (props: typeof __VLS_95) => any;
|
|
132
132
|
} & {
|
|
133
|
-
'toolbar-actions'?: (props: typeof
|
|
133
|
+
'toolbar-actions'?: (props: typeof __VLS_104) => any;
|
|
134
134
|
} & {
|
|
135
|
-
empty?: (props: typeof
|
|
135
|
+
empty?: (props: typeof __VLS_157) => any;
|
|
136
136
|
} & {
|
|
137
|
-
'row-actions'?: (props: typeof
|
|
137
|
+
'row-actions'?: (props: typeof __VLS_214) => any;
|
|
138
138
|
} & {
|
|
139
|
-
expansion?: (props: typeof
|
|
139
|
+
expansion?: (props: typeof __VLS_217) => any;
|
|
140
140
|
} & {
|
|
141
|
-
'toolbar-start'?: (props: typeof
|
|
141
|
+
'toolbar-start'?: (props: typeof __VLS_237) => any;
|
|
142
142
|
} & {
|
|
143
|
-
'toolbar-filters'?: (props: typeof
|
|
143
|
+
'toolbar-filters'?: (props: typeof __VLS_267) => any;
|
|
144
144
|
} & {
|
|
145
|
-
'toolbar-actions'?: (props: typeof
|
|
145
|
+
'toolbar-actions'?: (props: typeof __VLS_276) => any;
|
|
146
146
|
} & {
|
|
147
|
-
empty?: (props: typeof
|
|
147
|
+
empty?: (props: typeof __VLS_306) => any;
|
|
148
148
|
} & {
|
|
149
|
-
card?: (props: typeof
|
|
149
|
+
card?: (props: typeof __VLS_308) => any;
|
|
150
150
|
} & {
|
|
151
|
-
'row-actions'?: (props: typeof
|
|
151
|
+
'row-actions'?: (props: typeof __VLS_326) => any;
|
|
152
152
|
} & {
|
|
153
|
-
'rail-actions'?: (props: typeof
|
|
153
|
+
'rail-actions'?: (props: typeof __VLS_349) => any;
|
|
154
154
|
} & {
|
|
155
|
-
'form-dialog'?: (props: typeof
|
|
155
|
+
'form-dialog'?: (props: typeof __VLS_372) => any;
|
|
156
156
|
} & {
|
|
157
|
-
'after-fields'?: (props: typeof
|
|
157
|
+
'after-fields'?: (props: typeof __VLS_395) => any;
|
|
158
158
|
} & {
|
|
159
|
-
aside?: (props: typeof
|
|
159
|
+
aside?: (props: typeof __VLS_398) => any;
|
|
160
160
|
} & {
|
|
161
|
-
'delete-message'?: (props: typeof
|
|
161
|
+
'delete-message'?: (props: typeof __VLS_406) => any;
|
|
162
162
|
};
|
|
163
163
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
164
164
|
scrollToRow: typeof scrollToRow;
|
|
165
165
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
166
|
+
"row-click": (data: Record<string, unknown>) => any;
|
|
166
167
|
"row-expand": (data: unknown) => any;
|
|
167
168
|
"row-collapse": (data: unknown) => any;
|
|
168
169
|
print: (data: Record<string, unknown>) => any;
|
|
169
170
|
"update:selectedRow": (value: Record<string, unknown> | null) => any;
|
|
170
171
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
172
|
+
"onRow-click"?: ((data: Record<string, unknown>) => any) | undefined;
|
|
171
173
|
"onRow-expand"?: ((data: unknown) => any) | undefined;
|
|
172
174
|
"onRow-collapse"?: ((data: unknown) => any) | undefined;
|
|
173
175
|
onPrint?: ((data: Record<string, unknown>) => any) | undefined;
|
|
@@ -43,4 +43,5 @@ export { default as WFlipCard } from './ui/WFlipCard.vue';
|
|
|
43
43
|
export { default as WTabBar } from './ui/WTabBar.vue';
|
|
44
44
|
export { default as WTabNav } from './ui/WTabNav.vue';
|
|
45
45
|
export { default as WTabViewport } from './ui/WTabViewport.vue';
|
|
46
|
+
export { default as WCalendarGrid } from './ui/WCalendarGrid.vue';
|
|
46
47
|
export { default as WKanbanBoard } from './ui/WKanbanBoard.vue';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CalendarEvent, CalendarMoveEvent } from '../../types/calendar';
|
|
2
|
+
/**
|
|
3
|
+
* Grade de horário controlada (um ou vários dias lado a lado), no desenho dos calendários de
|
|
4
|
+
* mesa: régua de horas, linha do "agora", eventos coloridos por categoria e divididos em
|
|
5
|
+
* faixas quando se sobrepõem. Clique num horário vazio emite `create`; arrastar um evento
|
|
6
|
+
* `draggable` emite `move`. A grade NUNCA muta `events` — o consumidor grava e devolve.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
/** Dias exibidos, na ordem, em `YYYY-MM-DD`. Um dia = visão de dia. */
|
|
10
|
+
days: string[];
|
|
11
|
+
events: CalendarEvent[];
|
|
12
|
+
/** Evento realçado (ex.: aberto num painel ao lado). */
|
|
13
|
+
selectedId?: string | number | null;
|
|
14
|
+
/** Clique no vazio emite `create` e mostra a prévia do horário ao passar o mouse. */
|
|
15
|
+
creatable?: boolean;
|
|
16
|
+
/** Primeira e última hora visíveis; abre mais se houver evento fora delas. */
|
|
17
|
+
startHour?: number;
|
|
18
|
+
endHour?: number;
|
|
19
|
+
/** Passo do clique de criação e do arraste, em minutos. */
|
|
20
|
+
createStep?: number;
|
|
21
|
+
moveStep?: number;
|
|
22
|
+
/** Altura mínima desenhada de um evento curto, em minutos (o título precisa caber). */
|
|
23
|
+
minEventMinutes?: number;
|
|
24
|
+
/** Cabeçalho do dia clicável (emite `day-click`) quando há mais de um dia. */
|
|
25
|
+
dayClickable?: boolean;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Slots = {
|
|
29
|
+
/** Conteúdo do evento. `short` é verdadeiro quando só cabe uma linha. */
|
|
30
|
+
event?(props: {
|
|
31
|
+
event: CalendarEvent;
|
|
32
|
+
short: boolean;
|
|
33
|
+
time: string;
|
|
34
|
+
}): unknown;
|
|
35
|
+
/** Cabeçalho do dia. */
|
|
36
|
+
'day-header'?(props: {
|
|
37
|
+
day: string;
|
|
38
|
+
count: number;
|
|
39
|
+
today: boolean;
|
|
40
|
+
}): unknown;
|
|
41
|
+
};
|
|
42
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
select: (event: CalendarEvent<Record<string, unknown>>) => any;
|
|
44
|
+
create: (payload: {
|
|
45
|
+
start: string;
|
|
46
|
+
}) => any;
|
|
47
|
+
move: (payload: CalendarMoveEvent<Record<string, unknown>>) => any;
|
|
48
|
+
"day-click": (day: string) => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
50
|
+
onSelect?: ((event: CalendarEvent<Record<string, unknown>>) => any) | undefined;
|
|
51
|
+
onCreate?: ((payload: {
|
|
52
|
+
start: string;
|
|
53
|
+
}) => any) | undefined;
|
|
54
|
+
onMove?: ((payload: CalendarMoveEvent<Record<string, unknown>>) => any) | undefined;
|
|
55
|
+
"onDay-click"?: ((day: string) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
loading: boolean;
|
|
58
|
+
selectedId: string | number | null;
|
|
59
|
+
creatable: boolean;
|
|
60
|
+
startHour: number;
|
|
61
|
+
endHour: number;
|
|
62
|
+
createStep: number;
|
|
63
|
+
moveStep: number;
|
|
64
|
+
minEventMinutes: number;
|
|
65
|
+
dayClickable: boolean;
|
|
66
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
67
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|