@wgalleti/primevue-components 0.30.0 → 0.31.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/README.md +5 -5
- package/dist/components/index.d.ts +2 -0
- package/dist/components/ui/WSectionAccordion.vue.d.ts +36 -0
- package/dist/components/ui/WSectionPanel.vue.d.ts +40 -0
- package/dist/{components-BQLHmQIB.cjs → components-BK9LPrAs.cjs} +6 -6
- package/dist/components-BK9LPrAs.cjs.map +1 -0
- package/dist/{components-B5nXaYtT.js → components-BNyzL6pd.js} +342 -256
- package/dist/components-BNyzL6pd.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.d.ts +3 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/utils/sectionAccordion.d.ts +15 -0
- package/package.json +1 -1
- package/skill/references/setup.md +3 -3
- package/dist/components-B5nXaYtT.js.map +0 -1
- package/dist/components-BQLHmQIB.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -5,10 +5,10 @@ Biblioteca de componentes Vue 3 + PrimeVue 4 para padronizar componentes reutili
|
|
|
5
5
|
## Instalação
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
#
|
|
9
|
-
yarn add
|
|
8
|
+
# Pacote público no npm — fixe versão exata (sem ^), o mesmo número em todos os projetos
|
|
9
|
+
yarn add @wgalleti/primevue-components@<versão> --exact
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Desenvolvimento local da própria suíte
|
|
12
12
|
cd wPrimeVueComponents && yarn link
|
|
13
13
|
cd seu-projeto && yarn link @wgalleti/primevue-components
|
|
14
14
|
```
|
|
@@ -18,10 +18,10 @@ cd seu-projeto && yarn link @wgalleti/primevue-components
|
|
|
18
18
|
Certifique-se de ter instalado no seu projeto:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
yarn add vue@^3.4 primevue@^4.
|
|
21
|
+
yarn add vue@^3.4 primevue@^4.2 dayjs@^1.11 vue-router
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Se o projeto usar a camada Axios
|
|
24
|
+
Se o projeto usar a camada Axios padrão (o data provider default), instale também `axios@^1.0`.
|
|
25
25
|
|
|
26
26
|
## Setup
|
|
27
27
|
|
|
@@ -20,7 +20,9 @@ export { default as WDetailHeader } from './ui/WDetailHeader.vue';
|
|
|
20
20
|
export { default as WInfoCard } from './ui/WInfoCard.vue';
|
|
21
21
|
export { default as WKpiCard } from './ui/WKpiCard.vue';
|
|
22
22
|
export { default as WKpiGrid } from './ui/WKpiGrid.vue';
|
|
23
|
+
export { default as WSectionAccordion } from './ui/WSectionAccordion.vue';
|
|
23
24
|
export { default as WSectionHeader } from './ui/WSectionHeader.vue';
|
|
25
|
+
export { default as WSectionPanel } from './ui/WSectionPanel.vue';
|
|
24
26
|
export { default as WFormSection } from './ui/WFormSection.vue';
|
|
25
27
|
export { default as WActionBar } from './ui/WActionBar.vue';
|
|
26
28
|
export { default as WProgressFlow } from './ui/WProgressFlow.vue';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* As seções de um editor master-detail como painéis de um acordeão único: uma
|
|
3
|
+
* moldura só, sem blocos "flutuando". Diferente do WStepFlow, aqui não há ordem
|
|
4
|
+
* nem etapa ativa — cada seção abre e fecha por conta própria e várias ficam
|
|
5
|
+
* abertas ao mesmo tempo (o padrão é TODAS abertas; o usuário recolhe o que não
|
|
6
|
+
* interessa no momento).
|
|
7
|
+
*
|
|
8
|
+
* O `v-model` é a lista de `value` das seções abertas. Sem `v-model` o
|
|
9
|
+
* componente é dono do próprio estado, começando com tudo aberto.
|
|
10
|
+
*/
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
/** `value` das seções abertas (`v-model`). Omitido = estado interno, tudo aberto. */
|
|
13
|
+
modelValue?: string[];
|
|
14
|
+
/** Trava o clique no cabeçalho de todas as seções. */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_1: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_1) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (open: string[]) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((open: string[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
modelValue: string[];
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
4
|
+
/** Identificador da seção — é o que o `v-model` do acordeão carrega. */
|
|
5
|
+
value: string;
|
|
6
|
+
title: string;
|
|
7
|
+
/** Frase abaixo do título: o que a seção é e o que acontece com ela. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Ícone PrimeIcons do tile à esquerda (ex.: `pi pi-list`). */
|
|
10
|
+
icon?: string;
|
|
11
|
+
/** Badge de contagem à direita (registros da seção). */
|
|
12
|
+
count?: number | string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
/** Identificador da seção — é o que o `v-model` do acordeão carrega. */
|
|
16
|
+
value: string;
|
|
17
|
+
title: string;
|
|
18
|
+
/** Frase abaixo do título: o que a seção é e o que acontece com ela. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Ícone PrimeIcons do tile à esquerda (ex.: `pi pi-list`). */
|
|
21
|
+
icon?: string;
|
|
22
|
+
/** Badge de contagem à direita (registros da seção). */
|
|
23
|
+
count?: number | string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}> & Readonly<{}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
28
|
+
icon?: (props: {}) => any;
|
|
29
|
+
} & {
|
|
30
|
+
actions?: (props: {
|
|
31
|
+
open: boolean;
|
|
32
|
+
}) => any;
|
|
33
|
+
} & {
|
|
34
|
+
default?: (props: {}) => any;
|
|
35
|
+
}>;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|