@wgalleti/primevue-components 1.14.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/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-Ap44AvJ1.js → components-DlhMmfWP.js} +1979 -1718
- 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/package.json +1 -1
- package/dist/components-Ap44AvJ1.js.map +0 -1
- package/dist/components-CVAdLw1K.cjs +0 -25
- package/dist/components-CVAdLw1K.cjs.map +0 -1
|
@@ -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
|
+
};
|