@wgalleti/primevue-components 2.0.1 → 2.2.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/charts/WChart.vue.d.ts +1 -1
- package/dist/components/crud/WCrudView.vue.d.ts +19 -18
- package/dist/components/crud/WEditableTable.vue.d.ts +31 -18
- package/dist/components/form/WAutoCompleteFK.vue.d.ts +2 -2
- package/dist/components/form/WDatePicker.vue.d.ts +1 -1
- package/dist/components/form/WDateRange.vue.d.ts +1 -1
- package/dist/components/form/WFileUpload.vue.d.ts +1 -1
- package/dist/components/form/WFormRenderer.vue.d.ts +4 -4
- package/dist/components/form/WImageCropper.vue.d.ts +2 -2
- package/dist/components/form/WMoneyInput.vue.d.ts +4 -0
- package/dist/components/form/WTreeSelect.vue.d.ts +3 -3
- package/dist/components/index.d.ts +7 -0
- package/dist/components/ui/WAvatar.vue.d.ts +1 -1
- package/dist/components/ui/WButton.vue.d.ts +45 -0
- package/dist/components/ui/WEmptyState.vue.d.ts +1 -1
- package/dist/components/ui/WGroupedSelectList.vue.d.ts +20 -5
- package/dist/components/ui/WKpiGrid.vue.d.ts +1 -1
- package/dist/components/ui/WMapSelect.vue.d.ts +2 -2
- package/dist/components/ui/WMenu.vue.d.ts +28 -0
- package/dist/components/ui/WNotice.vue.d.ts +32 -0
- package/dist/components/ui/WPermissionMatrix.vue.d.ts +64 -0
- package/dist/components/ui/WPopover.vue.d.ts +20 -0
- package/dist/components/ui/WProgress.vue.d.ts +16 -0
- package/dist/components/ui/WSectionAccordion.vue.d.ts +1 -1
- package/dist/components/ui/WSegmented.vue.d.ts +36 -0
- package/dist/components/ui/WSkeleton.vue.d.ts +14 -3
- package/dist/components/ui/WStatusTag.vue.d.ts +9 -1
- package/dist/components/ui/WStepFlow.vue.d.ts +1 -1
- package/dist/components-64mrDK9F.cjs +25 -0
- package/dist/components-64mrDK9F.cjs.map +1 -0
- package/dist/components-DhBXIjIY.js +10299 -0
- package/dist/components-DhBXIjIY.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-B2_3FVLB.js → composables-DbmYTwL7.js} +3 -2
- package/dist/composables-DbmYTwL7.js.map +1 -0
- package/dist/composables-rF6oNCGV.cjs +2 -0
- package/dist/composables-rF6oNCGV.cjs.map +1 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/connect.cjs +1 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.js +1 -1
- package/dist/connect.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +29 -28
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
- package/dist/routeTabs-C86S8jNU.js.map +1 -1
- package/dist/types/action.d.ts +12 -0
- package/dist/types/button.d.ts +10 -0
- package/dist/types/field.d.ts +31 -3
- package/dist/types/index.d.ts +3 -1
- package/dist/types/manager.d.ts +5 -2
- package/dist/types/permissionMatrix.d.ts +9 -0
- package/dist/types/plugin.d.ts +7 -0
- package/dist/utils/tabOverlay.d.ts +20 -0
- package/dist/utils/warnOnce.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components-BrB2KsHr.js +0 -9399
- package/dist/components-BrB2KsHr.js.map +0 -1
- package/dist/components-DfgWnHbO.cjs +0 -25
- package/dist/components-DfgWnHbO.cjs.map +0 -1
- package/dist/composables-B2_3FVLB.js.map +0 -1
- package/dist/composables-qoAinVWS.cjs +0 -2
- package/dist/composables-qoAinVWS.cjs.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { PermissionOperation, PermissionRow, PermissionValue } from '../../types/permissionMatrix';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rows: PermissionRow[];
|
|
4
|
+
/** Colunas, na ordem. Linha que não tem a operação: `isAvailable`. */
|
|
5
|
+
operations: PermissionOperation[];
|
|
6
|
+
/** Campo que identifica a linha (chave no valor). */
|
|
7
|
+
rowKey?: string;
|
|
8
|
+
/** Campo (ou função) com o nome da linha. */
|
|
9
|
+
rowLabel?: string | ((row: PermissionRow) => string);
|
|
10
|
+
/** Campo (ou função) que agrupa as linhas; a ordem dos grupos é a da primeira aparição. */
|
|
11
|
+
groupBy?: string | ((row: PermissionRow) => string);
|
|
12
|
+
/** Rótulo do grupo; default a própria chave. */
|
|
13
|
+
groupLabel?: (groupKey: string, rows: PermissionRow[]) => string;
|
|
14
|
+
/** A linha tem esta operação? Default todas. Célula sem operação fica vazia. */
|
|
15
|
+
isAvailable?: (row: PermissionRow, operation: string) => boolean;
|
|
16
|
+
/** Célula fixa: não muda pelo clique nem por nenhum "marcar tudo". */
|
|
17
|
+
isLocked?: (row: PermissionRow, operation: string) => boolean;
|
|
18
|
+
/** Motivo da célula fixa: `title` e uma linha de apoio sob o nome da linha. */
|
|
19
|
+
lockedReason?: (row: PermissionRow, operation: string) => string | null | undefined;
|
|
20
|
+
/** Trava a matriz inteira (leitura). */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Cabeçalho da coluna dos nomes. */
|
|
23
|
+
rowHeader?: string;
|
|
24
|
+
/** Rótulo da coluna "marcar a linha toda". */
|
|
25
|
+
allLabel?: string;
|
|
26
|
+
emptyMessage?: string;
|
|
27
|
+
/** `auto` vira card abaixo de 840px da largura do componente; `never`/`always` fixam. */
|
|
28
|
+
cardMode?: 'auto' | 'never' | 'always';
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Slots = {
|
|
31
|
+
/** Substitui a mensagem sem linhas. */
|
|
32
|
+
empty?: () => unknown;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_ModelProps = {
|
|
35
|
+
/** id da linha → operações marcadas. Sem v-model do pai o estado é local. */
|
|
36
|
+
modelValue?: PermissionValue;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
39
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:modelValue": (value: PermissionValue) => any;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((value: PermissionValue) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
emptyMessage: string;
|
|
46
|
+
cardMode: "auto" | "never" | "always";
|
|
47
|
+
groupBy: string | ((row: PermissionRow) => string);
|
|
48
|
+
groupLabel: (groupKey: string, rows: PermissionRow[]) => string;
|
|
49
|
+
rowKey: string;
|
|
50
|
+
isLocked: (row: PermissionRow, operation: string) => boolean;
|
|
51
|
+
lockedReason: (row: PermissionRow, operation: string) => string | null | undefined;
|
|
52
|
+
rowLabel: string | ((row: PermissionRow) => string);
|
|
53
|
+
isAvailable: (row: PermissionRow, operation: string) => boolean;
|
|
54
|
+
rowHeader: string;
|
|
55
|
+
allLabel: string;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare function toggle(event: Event, target?: unknown): void;
|
|
2
|
+
declare function show(event: Event, target?: unknown): void;
|
|
3
|
+
declare function hide(): void;
|
|
4
|
+
declare var __VLS_11: string, __VLS_12: any;
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {
|
|
9
|
+
toggle: typeof toggle;
|
|
10
|
+
show: typeof show;
|
|
11
|
+
hide: typeof hide;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progresso de carregamento (substitui `ProgressBar`). Sem `value` é indeterminado. Não é meta:
|
|
3
|
+
* "realizado contra meta" é o `WMeter`. `strip` é o filete fino, para o topo de card ou tabela.
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** 0 a 100. Ausente: indeterminado. */
|
|
7
|
+
value?: number;
|
|
8
|
+
/** Texto do leitor de tela e legenda da barra `bar`. */
|
|
9
|
+
label?: string;
|
|
10
|
+
size?: 'bar' | 'strip';
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
size: "bar" | "strip";
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((open: string[]) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
modelValue: string[];
|
|
27
26
|
disabled: boolean;
|
|
27
|
+
modelValue: string[];
|
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface SegmentedOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: unknown;
|
|
4
|
+
icon?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Grupo de opções lado a lado (substitui `SelectButton` e `ToggleButton`). `multiple` aceita
|
|
8
|
+
* várias; com uma opção só vira alternador (`aria-pressed`): o modelo é boolean, ou o valor da
|
|
9
|
+
* opção / `null`. Sem alternativa vazia no modo simples: sempre há uma opção marcada.
|
|
10
|
+
*/
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
options: SegmentedOption[];
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
size?: 'sm' | 'md';
|
|
15
|
+
/** Nome acessível do grupo (ou do alternador, se o rótulo da opção não bastar). */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Largura total do contêiner, com as opções dividindo-a por igual. */
|
|
19
|
+
fluid?: boolean;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_ModelProps = {
|
|
22
|
+
modelValue?: unknown;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
25
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: unknown) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
size: "sm" | "md";
|
|
32
|
+
multiple: boolean;
|
|
33
|
+
fluid: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -3,14 +3,25 @@
|
|
|
3
3
|
* `useDelayedLoading` para só aparecer em carregamento lento. Tamanhos por token `--w-skeleton-*`.
|
|
4
4
|
*/
|
|
5
5
|
type __VLS_Props = {
|
|
6
|
-
/** `rows`: n linhas de tabela; `card`: bloco de card; `text`: n linhas de parágrafo
|
|
7
|
-
|
|
6
|
+
/** `rows`: n linhas de tabela; `card`: bloco de card; `text`: n linhas de parágrafo;
|
|
7
|
+
* `block`: um retângulo só (figura de painel, área de gráfico). */
|
|
8
|
+
variant?: 'rows' | 'card' | 'text' | 'block';
|
|
8
9
|
/** Quantidade de linhas (`rows` e `text`). */
|
|
9
10
|
count?: number;
|
|
11
|
+
/** Altura nomeada (`block`; no `card` vira altura mínima): sm 3rem, md 6rem (KPI), lg a do
|
|
12
|
+
* gráfico. Tokens `--w-skeleton-block-*`. `block` sem `size` nem `height` = md. */
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
/** Altura própria, sempre por token (`'var(--w-chart-h)'`); vence `size`. */
|
|
15
|
+
height?: string;
|
|
16
|
+
/** Largura própria, sempre por token; omitida ocupa a linha. */
|
|
17
|
+
width?: string;
|
|
10
18
|
};
|
|
11
19
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
-
variant: "rows" | "card" | "text";
|
|
20
|
+
variant: "rows" | "card" | "text" | "block";
|
|
21
|
+
size: "sm" | "md" | "lg";
|
|
13
22
|
count: number;
|
|
23
|
+
height: string;
|
|
24
|
+
width: string;
|
|
14
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
26
|
declare const _default: typeof __VLS_export;
|
|
16
27
|
export default _default;
|
|
@@ -5,7 +5,15 @@ export interface StatusMapping {
|
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
value: string;
|
|
7
7
|
map?: Record<string, StatusMapping>;
|
|
8
|
+
/** Mostra o botão de remover (substitui o `Chip` removível) e emite `remove`. */
|
|
9
|
+
removable?: boolean;
|
|
8
10
|
};
|
|
9
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
remove: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onRemove?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
removable: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
18
|
declare const _default: typeof __VLS_export;
|
|
11
19
|
export default _default;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
36
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
37
|
"onUpdate:modelValue"?: ((step: number) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
|
-
modelValue: number;
|
|
40
39
|
disabled: boolean;
|
|
40
|
+
modelValue: number;
|
|
41
41
|
orientation: StepFlowOrientation;
|
|
42
42
|
labels: StepFlowLabels;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|