@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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado visual de um evento do WCalendarGrid. A cor do evento é categoria (`accent`);
|
|
3
|
+
* o estado vai por forma e ícone, nunca por cor de categoria:
|
|
4
|
+
* - `done`: realizado (esmaecido, ícone de check)
|
|
5
|
+
* - `missed`: não aconteceu (hachura de perigo, ícone de proibido)
|
|
6
|
+
* - `canceled`: cancelado (contorno, título riscado)
|
|
7
|
+
* - `attention`: pede ação (contorno de alerta, ícone de exclamação)
|
|
8
|
+
*/
|
|
9
|
+
export type CalendarEventState = 'done' | 'missed' | 'canceled' | 'attention';
|
|
10
|
+
/** Um evento do WCalendarGrid. Os eventos pertencem ao consumidor — a grade não os muta. */
|
|
11
|
+
export interface CalendarEvent<T = Record<string, unknown>> {
|
|
12
|
+
/** Identificador estável (key e `selectedId`). */
|
|
13
|
+
id: string | number;
|
|
14
|
+
/** Início em ISO 8601 (com ou sem fuso) ou Date. */
|
|
15
|
+
start: string | Date;
|
|
16
|
+
/** Duração em minutos. Padrão: 30. */
|
|
17
|
+
minutes?: number;
|
|
18
|
+
/** Linha principal (quem/o quê). */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Complemento depois do horário (ex.: vaga, sala). */
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
/** Classe de ícone (ex.: `pi pi-phone`). */
|
|
23
|
+
icon?: string;
|
|
24
|
+
/** Cor de categoria — qualquer valor CSS, de preferência token (`var(--viz-1)`). */
|
|
25
|
+
accent?: string;
|
|
26
|
+
state?: CalendarEventState;
|
|
27
|
+
/** Arrastável para outro horário (emite `move`). Padrão: false. */
|
|
28
|
+
draggable?: boolean;
|
|
29
|
+
/** Rótulo acessível; sem ele, título + horário. */
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
/** Carga livre do consumidor, devolvida nos eventos. */
|
|
32
|
+
data?: T;
|
|
33
|
+
}
|
|
34
|
+
/** Payload do emit `move` do WCalendarGrid. */
|
|
35
|
+
export interface CalendarMoveEvent<T = Record<string, unknown>> {
|
|
36
|
+
event: CalendarEvent<T>;
|
|
37
|
+
/** Novo início em ISO 8601 com o fuso local (`2026-10-29T14:30:00-03:00`). */
|
|
38
|
+
start: string;
|
|
39
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type { CheckListItem, CheckListLevel } from './checkList';
|
|
|
6
6
|
export type { FlipCardLabels, FlipCardSlotProps } from './flipCard';
|
|
7
7
|
export type { AttentionItem, AttentionItemClickEvent, AttentionSeverity } from './attentionList';
|
|
8
8
|
export type { GroupedSelectGroupScope, GroupedSelectKey } from './groupedSelectList';
|
|
9
|
+
export type { CalendarEvent, CalendarEventState, CalendarMoveEvent } from './calendar';
|
|
9
10
|
export type { KanbanColumn, KanbanMoveEvent } from './kanban';
|
|
10
11
|
export type { MarkdownHeading, MarkdownRenderResult } from './markdown';
|
|
11
12
|
export type { TabItem } from './tabs';
|