@1doc/1ds-vue 2.12.2 → 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/dist/index.d.ts CHANGED
@@ -847,6 +847,14 @@ export interface BreadcrumbProps {
847
847
  ariaLabel?: string;
848
848
  items: BreadcrumbItem[];
849
849
  separator?: string;
850
+ /**
851
+ * Mantém a trilha numa linha só. Quando não cabe, a página atual (último item)
852
+ * encolhe primeiro, com reticências, até uma largura mínima; só então os
853
+ * níveis anteriores encolhem. O rótulo inteiro fica no `title` de cada item.
854
+ * Use em barras de altura fixa (subheader) e quando o último nível é um texto
855
+ * longo, como o assunto de um processo. @default false
856
+ */
857
+ truncate?: boolean;
850
858
  className?: string;
851
859
  }
852
860
 
@@ -881,6 +889,12 @@ export interface ButtonProps {
881
889
  form?: string;
882
890
  autoFocus?: boolean;
883
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;
884
898
  }
885
899
 
886
900
  export interface CalendarEvent {
@@ -1395,6 +1409,27 @@ export interface ContainerProps {
1395
1409
  children?: any;
1396
1410
  }
1397
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
+
1398
1433
  export interface DataTableColumn {
1399
1434
  key: string;
1400
1435
  label: string;
@@ -1640,6 +1675,12 @@ export interface DropdownItem {
1640
1675
  disabled?: boolean;
1641
1676
  danger?: boolean;
1642
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;
1643
1684
  }
1644
1685
 
1645
1686
  export interface DropdownProps {
@@ -2099,6 +2140,8 @@ export interface ListItemProps {
2099
2140
  start?: any;
2100
2141
  /** Conteúdo no fim da linha (badge, seta, valor). No Vue, slot `end`. */
2101
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;
2102
2145
  /** Chamado no clique da linha (ou em Enter/Espaço no `as="div"`). */
2103
2146
  onClick?: (event: any) => void;
2104
2147
  /** Classes CSS adicionais, no elemento interativo. */
@@ -2983,8 +3026,8 @@ export type StackTag =
2983
3026
  export type StackOverflow = "visible" | "hidden" | "auto" | "scroll";
2984
3027
 
2985
3028
  export interface StatCardProps {
2986
- /** O número ou medida em destaque. */
2987
- value?: string | number;
3029
+ /** O número ou medida em destaque. Texto, número ou nó (um `Counter`); no Vue, slot `value`. */
3030
+ value?: any;
2988
3031
  /** O que o número significa. */
2989
3032
  label?: string;
2990
3033
  /** Ícone Font Awesome como objeto importado. */
@@ -3017,7 +3060,7 @@ export interface StatCardProps {
3017
3060
  * @default 'bottom'
3018
3061
  */
3019
3062
  labelPosition?: "bottom" | "top";
3020
- /** Segunda medida, menor, à direita da principal. 0 aparece; vazio e ausente não. */
3063
+ /** Segunda medida, no tamanho da principal, à direita dela. 0 aparece; vazio e ausente não. */
3021
3064
  secondaryValue?: string | number;
3022
3065
  /** O que a segunda medida significa. */
3023
3066
  secondaryLabel?: string;
@@ -3025,6 +3068,10 @@ export interface StatCardProps {
3025
3068
  size?: "md" | "sm";
3026
3069
  /** Cor do número principal. @default 'default' */
3027
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;
3028
3075
  /**
3029
3076
  * Texto de ajuda: mostra o ⓘ ao lado do rótulo, com um Tooltip escuro. É um
3030
3077
  * botão focável dentro do cartão; com `onClick` no cartão, evite.
@@ -3782,6 +3829,7 @@ export declare const Combobox: ComponentWithProps<ComboboxProps>;
3782
3829
  export declare const ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
3783
3830
  export declare const ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
3784
3831
  export declare const Container: ComponentWithProps<ContainerProps>;
3832
+ export declare const Counter: ComponentWithProps<CounterProps>;
3785
3833
  export declare const DataTable: ComponentWithProps<DataTableProps>;
3786
3834
  export declare const DatePicker: ComponentWithProps<DatePickerProps>;
3787
3835
  export declare const DescriptionList: ComponentWithProps<DescriptionListProps>;
@@ -3878,6 +3926,7 @@ declare module '@vue/runtime-core' {
3878
3926
  ConfirmAIAction: ComponentWithProps<ConfirmAIActionProps>;
3879
3927
  ConfirmDialog: ComponentWithProps<ConfirmDialogProps>;
3880
3928
  Container: ComponentWithProps<ContainerProps>;
3929
+ Counter: ComponentWithProps<CounterProps>;
3881
3930
  DataTable: ComponentWithProps<DataTableProps>;
3882
3931
  DatePicker: ComponentWithProps<DatePickerProps>;
3883
3932
  DescriptionList: ComponentWithProps<DescriptionListProps>;