@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
|
@@ -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';
|
package/dist/types/manager.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ export interface CrudManagerConfig<T> {
|
|
|
40
40
|
rowActions?: RowAction<T>[];
|
|
41
41
|
/** Habilita seleção múltipla na tabela (checkbox + barra de ações em lote). */
|
|
42
42
|
selectionMode?: 'multiple';
|
|
43
|
+
/** Clique simples na linha (tabela) ou no card abre a edição — o mesmo caminho
|
|
44
|
+
* do duplo clique no card (respeita `canEdit`). Clique em botão, link, campo,
|
|
45
|
+
* checkbox de seleção, menu ou célula em edição não abre. Na tabela, Enter na
|
|
46
|
+
* linha focada também abre (linhas só são focáveis com seleção simples, isto é,
|
|
47
|
+
* `actionRail` ou `contextMenu` ligados e sem `selectionMode: 'multiple'`).
|
|
48
|
+
* Em `editMode: 'cell'` o clique fica com o editor da célula e não abre.
|
|
49
|
+
* Default: `false`. */
|
|
50
|
+
openOnRowClick?: boolean;
|
|
43
51
|
/** Ações aplicadas ao conjunto selecionado, exibidas na barra de lote. */
|
|
44
52
|
bulkActions?: BulkAction<T>[];
|
|
45
53
|
filterParams?: () => Record<string, unknown>;
|
package/package.json
CHANGED
package/skill/references/crud.md
CHANGED
|
@@ -16,6 +16,7 @@ const crud = useCrudManager<Produto>({
|
|
|
16
16
|
keyboardNav: true, // foco no 1º campo + Enter pula p/ próximo (estilo desktop)
|
|
17
17
|
editMode: 'cell', // edição inline por célula (default: 'dialog')
|
|
18
18
|
selectionMode: 'multiple', // seleção múltipla → habilita bulkActions
|
|
19
|
+
openOnRowClick: true, // clique simples na linha/card abre a edição (default: false)
|
|
19
20
|
// outros: pk, formColumns, searchDebounce, partialUpdate, refetchOnSave,
|
|
20
21
|
// canCreate/canEdit/canDelete, rowActions, bulkActions, filterParams,
|
|
21
22
|
// transformPayload, createDefaults, onAfterSave, onAfterDelete, labels.
|