@1doc/1ds-vue 2.13.0 → 2.14.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/CHANGELOG.md +19 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +44 -3
- package/dist/index.mjs +7771 -7499
- package/dist/index.umd.js +4 -4
- package/package.json +2 -2
- package/src/index.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -889,6 +889,12 @@ export interface ButtonProps {
|
|
|
889
889
|
form?: string;
|
|
890
890
|
autoFocus?: boolean;
|
|
891
891
|
tabIndex?: number;
|
|
892
|
+
/** Botão que navega: vira `<a>` com a mesma aparência. Desabilitado, volta a ser `<button>`. */
|
|
893
|
+
href?: string;
|
|
894
|
+
/** Destino do link. `_blank` ganha `rel="noopener noreferrer"`. */
|
|
895
|
+
target?: string;
|
|
896
|
+
/** Relação do link. Sobrescreve o padrão do `target`. */
|
|
897
|
+
rel?: string;
|
|
892
898
|
}
|
|
893
899
|
|
|
894
900
|
export interface CalendarEvent {
|
|
@@ -1403,6 +1409,27 @@ export interface ContainerProps {
|
|
|
1403
1409
|
children?: any;
|
|
1404
1410
|
}
|
|
1405
1411
|
|
|
1412
|
+
export interface CounterProps {
|
|
1413
|
+
/** Valor final. Aceita número ou texto numérico ("1284", "22.31"). */
|
|
1414
|
+
value: number | string;
|
|
1415
|
+
/** De onde a contagem começa ao montar. @default 0 */
|
|
1416
|
+
from?: number;
|
|
1417
|
+
/** Duração da contagem, em milissegundos. @default 1000 */
|
|
1418
|
+
duration?: number;
|
|
1419
|
+
/** Casas decimais. Sem a prop, as do `value`. */
|
|
1420
|
+
decimals?: number;
|
|
1421
|
+
/** Idioma do formato do número. @default 'pt-BR' */
|
|
1422
|
+
locale?: string;
|
|
1423
|
+
/** Texto antes do número ("R$ "). */
|
|
1424
|
+
prefix?: string;
|
|
1425
|
+
/** Texto depois do número ("%", " páginas"). */
|
|
1426
|
+
suffix?: string;
|
|
1427
|
+
/** Mostra o valor final direto, sem contar. @default false */
|
|
1428
|
+
disableAnimation?: boolean;
|
|
1429
|
+
/** Classes CSS adicionais. */
|
|
1430
|
+
className?: string;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1406
1433
|
export interface DataTableColumn {
|
|
1407
1434
|
key: string;
|
|
1408
1435
|
label: string;
|
|
@@ -1648,6 +1675,12 @@ export interface DropdownItem {
|
|
|
1648
1675
|
disabled?: boolean;
|
|
1649
1676
|
danger?: boolean;
|
|
1650
1677
|
dividerAfter?: boolean;
|
|
1678
|
+
/** Item que navega: vira `<a>` (Ctrl+clique e nova aba funcionam). Desabilitado, volta a ser botão. */
|
|
1679
|
+
href?: string;
|
|
1680
|
+
/** Destino do link. `_blank` ganha `rel="noopener noreferrer"`. */
|
|
1681
|
+
target?: string;
|
|
1682
|
+
/** Relação do link. Sobrescreve o padrão do `target`. */
|
|
1683
|
+
rel?: string;
|
|
1651
1684
|
}
|
|
1652
1685
|
|
|
1653
1686
|
export interface DropdownProps {
|
|
@@ -2107,6 +2140,8 @@ export interface ListItemProps {
|
|
|
2107
2140
|
start?: any;
|
|
2108
2141
|
/** Conteúdo no fim da linha (badge, seta, valor). No Vue, slot `end`. */
|
|
2109
2142
|
end?: any;
|
|
2143
|
+
/** Controles da linha (menu ⋮, botão), fora do elemento clicável. Só com o `li`. No Vue, slot `actions`. */
|
|
2144
|
+
actions?: any;
|
|
2110
2145
|
/** Chamado no clique da linha (ou em Enter/Espaço no `as="div"`). */
|
|
2111
2146
|
onClick?: (event: any) => void;
|
|
2112
2147
|
/** Classes CSS adicionais, no elemento interativo. */
|
|
@@ -2991,8 +3026,8 @@ export type StackTag =
|
|
|
2991
3026
|
export type StackOverflow = "visible" | "hidden" | "auto" | "scroll";
|
|
2992
3027
|
|
|
2993
3028
|
export interface StatCardProps {
|
|
2994
|
-
/** O número ou medida em destaque. */
|
|
2995
|
-
value?:
|
|
3029
|
+
/** O número ou medida em destaque. Texto, número ou nó (um `Counter`); no Vue, slot `value`. */
|
|
3030
|
+
value?: any;
|
|
2996
3031
|
/** O que o número significa. */
|
|
2997
3032
|
label?: string;
|
|
2998
3033
|
/** Ícone Font Awesome como objeto importado. */
|
|
@@ -3025,7 +3060,7 @@ export interface StatCardProps {
|
|
|
3025
3060
|
* @default 'bottom'
|
|
3026
3061
|
*/
|
|
3027
3062
|
labelPosition?: "bottom" | "top";
|
|
3028
|
-
/** Segunda medida,
|
|
3063
|
+
/** Segunda medida, no tamanho da principal, à direita dela. 0 aparece; vazio e ausente não. */
|
|
3029
3064
|
secondaryValue?: string | number;
|
|
3030
3065
|
/** O que a segunda medida significa. */
|
|
3031
3066
|
secondaryLabel?: string;
|
|
@@ -3033,6 +3068,10 @@ export interface StatCardProps {
|
|
|
3033
3068
|
size?: "md" | "sm";
|
|
3034
3069
|
/** Cor do número principal. @default 'default' */
|
|
3035
3070
|
valueTone?: "default" | "primary" | "positive" | "negative" | "info";
|
|
3071
|
+
/** Cor da segunda medida. Mesmas opções de `valueTone`. @default 'default' */
|
|
3072
|
+
secondaryTone?: "default" | "primary" | "positive" | "negative" | "info";
|
|
3073
|
+
/** Carregando: números viram Skeleton, a variação some, `aria-busy` no cartão. @default false */
|
|
3074
|
+
loading?: boolean;
|
|
3036
3075
|
/**
|
|
3037
3076
|
* Texto de ajuda: mostra o ⓘ ao lado do rótulo, com um Tooltip escuro. É um
|
|
3038
3077
|
* botão focável dentro do cartão; com `onClick` no cartão, evite.
|
|
@@ -3790,6 +3829,7 @@ export declare const Combobox: ComponentWithProps<ComboboxProps>;
|
|
|
3790
3829
|
export declare const ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
|
|
3791
3830
|
export declare const ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
|
|
3792
3831
|
export declare const Container: ComponentWithProps<ContainerProps>;
|
|
3832
|
+
export declare const Counter: ComponentWithProps<CounterProps>;
|
|
3793
3833
|
export declare const DataTable: ComponentWithProps<DataTableProps>;
|
|
3794
3834
|
export declare const DatePicker: ComponentWithProps<DatePickerProps>;
|
|
3795
3835
|
export declare const DescriptionList: ComponentWithProps<DescriptionListProps>;
|
|
@@ -3886,6 +3926,7 @@ declare module '@vue/runtime-core' {
|
|
|
3886
3926
|
ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
|
|
3887
3927
|
ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
|
|
3888
3928
|
Container: ComponentWithProps<ContainerProps>;
|
|
3929
|
+
Counter: ComponentWithProps<CounterProps>;
|
|
3889
3930
|
DataTable: ComponentWithProps<DataTableProps>;
|
|
3890
3931
|
DatePicker: ComponentWithProps<DatePickerProps>;
|
|
3891
3932
|
DescriptionList: ComponentWithProps<DescriptionListProps>;
|