structra-ui 0.1.92 → 0.1.94

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.
@@ -13,34 +13,52 @@ import { Observable } from 'rxjs';
13
13
  /** Marcador de pacote publicado como `structra-ui`. */
14
14
  declare const STRUCTRA_UI: "structra-ui";
15
15
 
16
- declare enum ButtonVariant {
17
- Primary = "primary",
18
- Secondary = "secondary",
16
+ declare const ButtonVariant: {
17
+ readonly Primary: "primary";
18
+ readonly Secondary: "secondary";
19
19
  /** Texto/ícone sem caixa — navegação secundária, “link” com aparência de botão acessível. */
20
- Ghost = "ghost",
20
+ readonly Ghost: "ghost";
21
21
  /**
22
22
  * Hiperligação em estilo `<a>`: só texto sublinhado, fundo transparente; hover altera só a cor do texto.
23
23
  */
24
- Link = "link",
24
+ readonly Link: "link";
25
25
  /**
26
26
  * Ação destrutiva / apagar: tokens de erro do tema
27
27
  * (`--app-color-error*`), mesmo padrão em toda a lib.
28
28
  */
29
- Danger = "danger"
30
- }
31
- declare enum ButtonType {
32
- Button = "button",
33
- Submit = "submit",
34
- Reset = "reset"
35
- }
29
+ readonly Danger: "danger";
30
+ /** Estado de alerta: amarelo escuro, com contraste adequado para texto/ícone. */
31
+ readonly Warning: "warning";
32
+ /** Estado positivo: verde de sucesso, no mesmo padrão de hover e active. */
33
+ readonly Success: "success";
34
+ };
35
+ type ButtonVariant = (typeof ButtonVariant)[keyof typeof ButtonVariant];
36
+ declare const ButtonType: {
37
+ readonly Button: "button";
38
+ readonly Submit: "submit";
39
+ readonly Reset: "reset";
40
+ };
41
+ type ButtonType = (typeof ButtonType)[keyof typeof ButtonType];
36
42
  /** Tamanhos do design system: `md` coincide com os valores que o botão já usava antes desta propriedade. */
37
- declare enum ButtonSize {
38
- Sm = "sm",
39
- Md = "md",
40
- Lg = "lg",
43
+ declare const ButtonSize: {
44
+ readonly Sm: "sm";
45
+ readonly Md: "md";
46
+ readonly Lg: "lg";
41
47
  /** Maior que `lg` — ênfase / touch targets amplos (CTAs hero). */
42
- Xl = "xl"
43
- }
48
+ readonly Xl: "xl";
49
+ /** Escala extra para CTAs de maior destaque. */
50
+ readonly Xxl: "xxl";
51
+ };
52
+ type ButtonSize = (typeof ButtonSize)[keyof typeof ButtonSize];
53
+ /** Radius semântico do design system (sem valores numéricos livres no template). */
54
+ declare const ButtonRadius: {
55
+ readonly None: "none";
56
+ readonly Sm: "sm";
57
+ readonly Md: "md";
58
+ readonly Lg: "lg";
59
+ readonly Pill: "pill";
60
+ };
61
+ type ButtonRadius = (typeof ButtonRadius)[keyof typeof ButtonRadius];
44
62
  /**
45
63
  * Base do botão; **não** exposta no barrel público `buttons`. Use `ButtonComponent` (`app-button`).
46
64
  */
@@ -61,6 +79,8 @@ declare class BaseButtonComponent {
61
79
  fullWidth: boolean;
62
80
  /** Escala tipográfica e de paddings/`min-height` do design system. `md` = aparência legada do botão. */
63
81
  size: ButtonSize;
82
+ /** Arredondamento semântico do botão (design system). */
83
+ radius: ButtonRadius;
64
84
  /** Placeholder de carregamento (skeleton no lugar do rótulo). */
65
85
  loading: boolean;
66
86
  /** Estilo visual base; pode ser estendido no SCSS do projeto. */
@@ -71,7 +91,7 @@ declare class BaseButtonComponent {
71
91
  /** Foca o `<button>` nativo (o host do componente não é focável). */
72
92
  focusNative(options?: FocusOptions): void;
73
93
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseButtonComponent, never>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseButtonComponent, "app-base-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseButtonComponent, "app-base-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "size": { "alias": "size"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
75
95
  static ngAcceptInputType_disabled: unknown;
76
96
  static ngAcceptInputType_readonly: unknown;
77
97
  static ngAcceptInputType_fullWidth: unknown;
@@ -1407,8 +1427,6 @@ declare class ImagePreviewPanelComponent implements OnChanges, OnDestroy {
1407
1427
  objectFit: 'cover' | 'contain';
1408
1428
  readonly remove: EventEmitter<void>;
1409
1429
  readonly change: EventEmitter<void>;
1410
- readonly ButtonType: typeof ButtonType;
1411
- readonly ButtonVariant: typeof ButtonVariant;
1412
1430
  /** Mensagem reutilizada: falha de carga, tipo não suportado, etc. */
1413
1431
  readonly previewUnavailableMessage = "N\u00E3o foi poss\u00EDvel abrir a pr\u00E9-visualiza\u00E7\u00E3o.";
1414
1432
  /** `blob:` a revogar ao trocar ou destruir. */
@@ -1416,6 +1434,8 @@ declare class ImagePreviewPanelComponent implements OnChanges, OnDestroy {
1416
1434
  /** Só `image` local ou `imageUrl` remota. */
1417
1435
  displaySrc: string | null;
1418
1436
  imageLoadError: boolean;
1437
+ /** Remote URL só entra como "imagem visível" após evento de load. */
1438
+ imageLoaded: boolean;
1419
1439
  /** PDF a partir de `File` (URL sanitizada). */
1420
1440
  safePdfUrl: SafeResourceUrl | null;
1421
1441
  pdfLoadError: boolean;
@@ -1443,26 +1463,29 @@ declare class ImagePreviewPanelComponent implements OnChanges, OnDestroy {
1443
1463
  }
1444
1464
 
1445
1465
  /** Espaçamento entre itens da linha ou da pilha dentro de uma coluna. */
1446
- declare enum FormLayoutGap {
1447
- Xs = "xs",
1448
- Sm = "sm",
1449
- Md = "md",
1450
- Lg = "lg"
1451
- }
1466
+ declare const FormLayoutGap: {
1467
+ readonly Xs: "xs";
1468
+ readonly Sm: "sm";
1469
+ readonly Md: "md";
1470
+ readonly Lg: "lg";
1471
+ };
1472
+ type FormLayoutGap = (typeof FormLayoutGap)[keyof typeof FormLayoutGap];
1452
1473
  /** Alinhamento no eixo cruzado (itens da linha). */
1453
- declare enum FormRowAlign {
1454
- Start = "start",
1455
- Center = "center",
1456
- End = "end",
1457
- Stretch = "stretch"
1458
- }
1474
+ declare const FormRowAlign: {
1475
+ readonly Start: "start";
1476
+ readonly Center: "center";
1477
+ readonly End: "end";
1478
+ readonly Stretch: "stretch";
1479
+ };
1480
+ type FormRowAlign = (typeof FormRowAlign)[keyof typeof FormRowAlign];
1459
1481
  /** Distribuição no eixo principal. */
1460
- declare enum FormRowJustify {
1461
- Start = "start",
1462
- Center = "center",
1463
- End = "end",
1464
- Between = "between"
1465
- }
1482
+ declare const FormRowJustify: {
1483
+ readonly Start: "start";
1484
+ readonly Center: "center";
1485
+ readonly End: "end";
1486
+ readonly Between: "between";
1487
+ };
1488
+ type FormRowJustify = (typeof FormRowJustify)[keyof typeof FormRowJustify];
1466
1489
  /** Variante visual do grupo. */
1467
1490
  declare enum FormGroupVariant {
1468
1491
  Default = "default",
@@ -1500,12 +1523,13 @@ declare enum LayoutStackItemAlign {
1500
1523
  End = "end"
1501
1524
  }
1502
1525
  /** Alinhamento em `app-form-actions` (barra de ações de formulário). */
1503
- declare enum FormActionsAlign {
1504
- Start = "start",
1505
- Center = "center",
1506
- End = "end",
1507
- SpaceBetween = "space-between"
1508
- }
1526
+ declare const FormActionsAlign: {
1527
+ readonly Start: "start";
1528
+ readonly Center: "center";
1529
+ readonly End: "end";
1530
+ readonly SpaceBetween: "space-between";
1531
+ };
1532
+ type FormActionsAlign = (typeof FormActionsAlign)[keyof typeof FormActionsAlign];
1509
1533
 
1510
1534
  /**
1511
1535
  * Faixa flexível com projeção de conteúdo.
@@ -2580,8 +2604,6 @@ interface ConfirmDialogData {
2580
2604
  declare class ConfirmDialogComponent implements AfterViewInit {
2581
2605
  readonly ref: DialogRef<boolean, ConfirmDialogComponent>;
2582
2606
  readonly data: ConfirmDialogData;
2583
- readonly ButtonType: typeof ButtonType;
2584
- readonly ButtonVariant: typeof ButtonVariant;
2585
2607
  readonly titleId: string;
2586
2608
  readonly descId: string;
2587
2609
  private cancelBtn?;
@@ -3357,5 +3379,5 @@ declare class AppBreadcrumbComponent {
3357
3379
  static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": true; }; }, {}, never, never, true, never>;
3358
3380
  }
3359
3381
 
3360
- export { ADAPTIVE_DATA_VIEW_MOBILE_QUERY, APP_SIDEBAR_LABEL_REVEAL_LAG_MS, APP_SIDEBAR_LAYOUT_DURATION_MS, APP_SIDEBAR_NAV_REVEAL_TOTAL_MS, APP_THEME_IDS, ActionMenuComponent, AdaptiveDataViewComponent, AnchoredOverlayComponent, AppBreadcrumbComponent, AppDialogComponent, AppLibLightBlockScrollStrategy, AppShellComponent, AppShellSidebarTemplateDirective, AppShellSidebarToggleComponent, AppSidebarComponent, AppSidebarToolbarDirective, AppTheme, AppThemeService, AppTopbarComponent, AppUserMenuComponent, BR_ESTADOS_NOME_SIGLA, BaseFieldComponent, BaseFieldDirective, BooleanFieldDirective, ButtonComponent, ButtonSize, ButtonType, ButtonVariant, CardListComponent, CepFieldComponent, CheckboxFieldComponent, ConfirmDialogComponent, ConfirmDialogService, ContextMenuComponent, CpfCnpjFieldComponent, DashboardSectionComponent, DataCardComponent, DataGridComponent, DataListComponent, DataToolbarComponent, DateFieldComponent, DecimalFieldComponent, DetailsFieldComponent, DetailsViewComponent, DialogFooterDirective, DividerComponent, DrawerComponent, DrawerSide, DrawerSize, DropdownBaseComponent, DropdownMenuComponent, DropdownMultiOptionFieldBase, DropdownOptionFieldBase, DropdownSearchFieldComponent, EmptyStateComponent, FILE_PREVIEW_UNAVAILABLE_MESSAGE, FileUploadFieldComponent, FormActionsAlign, FormActionsComponent, FormColComponent, FormGroupComponent, FormGroupVariant, FormLayoutGap, FormRowAlign, FormRowComponent, FormRowJustify, FormSectionComponent, FormTabComponent, FormTabsComponent, ImagePreviewPanelComponent, InputMaskFieldComponent, IntegerFieldComponent, LAYOUT_STACK_SIDE_BY_SIDE, LAYOUT_STACK_STACKED, LayoutStackAlign, LayoutStackComponent, LayoutStackDirection, LayoutStackItemAlign, LibDialogSize, ListItemComponent, LoadingDialogComponent, LoadingDialogService, MaskedTextFieldBase, MenuDividerComponent, MenuDropdownPlacement, MenuGroupComponent, MenuListComponent, MultiselectFieldComponent, NgControlFieldDirective, OverlayPlacement, PDF_IFRAME_VIEWER_HASH, PasswordFieldComponent, PhoneFieldComponent, PopoverBodyTemplateDirective, PopoverComponent, PopoverFooterTemplateDirective, PopoverTriggerDirective, STRUCTRA_UI, SelectFieldComponent, SkeletonBlockComponent, SkeletonCardComponent, SkeletonFieldShellComponent, SkeletonListComponent, SkeletonTableComponent, SkeletonTextComponent, StatCardComponent, StatusBadgeComponent, SwitchFieldComponent, TableEmptyStateComponent, TableToolbarComponent, TextFieldComponent, TextareaFieldComponent, ToastHostComponent, ToastService, TooltipComponent, TooltipPanelTemplateDirective, ValidationSummaryComponent, anchoredOverlayPositions, appendPdfIframeViewerParams, applyPickedCalendarDate, buildDecimalBrDisplay, buildDecimalBrParseString, buildEmptyStateOverlayHtml, caretIndexFromIntegerDigitCount, caretIndexFromSemantic, cepMaskCompleteValidator, cpfCnpjMaskCompleteValidator, escapeHtml, extractDecimalBrParts, fileIsLikelyImage, fileMatchesAccept, fixedDigitsMaskCompleteValidator, formatAcceptForDisplay, formatDateTimePtBr, formatDecimalBr, formatFileSizeBytes, formatIntegerThousandsBr, formatMaskDigits, formatUiFieldDateValue, getFilePreviewKind, libDialogPanelClasses, mapEstadosToOptions, maskDigitCount, normalizeFormDateValue, parseDecimalBr, parseIntegerString, parseUiFieldDateValue, phoneBrMaskCompleteValidator, resolveControlAtPath, sanitizeDecimalBrInput, sanitizeIntegerDigits, sectionHasVisibleInvalid, semanticCaretAt, semanticIntegerDigitCountLeft, stripToDigits, subscribeMarkForCheckOnInvalidUiRefresh, subtreeHasVisibleInvalid };
3382
+ export { ADAPTIVE_DATA_VIEW_MOBILE_QUERY, APP_SIDEBAR_LABEL_REVEAL_LAG_MS, APP_SIDEBAR_LAYOUT_DURATION_MS, APP_SIDEBAR_NAV_REVEAL_TOTAL_MS, APP_THEME_IDS, ActionMenuComponent, AdaptiveDataViewComponent, AnchoredOverlayComponent, AppBreadcrumbComponent, AppDialogComponent, AppLibLightBlockScrollStrategy, AppShellComponent, AppShellSidebarTemplateDirective, AppShellSidebarToggleComponent, AppSidebarComponent, AppSidebarToolbarDirective, AppTheme, AppThemeService, AppTopbarComponent, AppUserMenuComponent, BR_ESTADOS_NOME_SIGLA, BaseFieldComponent, BaseFieldDirective, BooleanFieldDirective, ButtonComponent, ButtonRadius, ButtonSize, ButtonType, ButtonVariant, CardListComponent, CepFieldComponent, CheckboxFieldComponent, ConfirmDialogComponent, ConfirmDialogService, ContextMenuComponent, CpfCnpjFieldComponent, DashboardSectionComponent, DataCardComponent, DataGridComponent, DataListComponent, DataToolbarComponent, DateFieldComponent, DecimalFieldComponent, DetailsFieldComponent, DetailsViewComponent, DialogFooterDirective, DividerComponent, DrawerComponent, DrawerSide, DrawerSize, DropdownBaseComponent, DropdownMenuComponent, DropdownMultiOptionFieldBase, DropdownOptionFieldBase, DropdownSearchFieldComponent, EmptyStateComponent, FILE_PREVIEW_UNAVAILABLE_MESSAGE, FileUploadFieldComponent, FormActionsAlign, FormActionsComponent, FormColComponent, FormGroupComponent, FormGroupVariant, FormLayoutGap, FormRowAlign, FormRowComponent, FormRowJustify, FormSectionComponent, FormTabComponent, FormTabsComponent, ImagePreviewPanelComponent, InputMaskFieldComponent, IntegerFieldComponent, LAYOUT_STACK_SIDE_BY_SIDE, LAYOUT_STACK_STACKED, LayoutStackAlign, LayoutStackComponent, LayoutStackDirection, LayoutStackItemAlign, LibDialogSize, ListItemComponent, LoadingDialogComponent, LoadingDialogService, MaskedTextFieldBase, MenuDividerComponent, MenuDropdownPlacement, MenuGroupComponent, MenuListComponent, MultiselectFieldComponent, NgControlFieldDirective, OverlayPlacement, PDF_IFRAME_VIEWER_HASH, PasswordFieldComponent, PhoneFieldComponent, PopoverBodyTemplateDirective, PopoverComponent, PopoverFooterTemplateDirective, PopoverTriggerDirective, STRUCTRA_UI, SelectFieldComponent, SkeletonBlockComponent, SkeletonCardComponent, SkeletonFieldShellComponent, SkeletonListComponent, SkeletonTableComponent, SkeletonTextComponent, StatCardComponent, StatusBadgeComponent, SwitchFieldComponent, TableEmptyStateComponent, TableToolbarComponent, TextFieldComponent, TextareaFieldComponent, ToastHostComponent, ToastService, TooltipComponent, TooltipPanelTemplateDirective, ValidationSummaryComponent, anchoredOverlayPositions, appendPdfIframeViewerParams, applyPickedCalendarDate, buildDecimalBrDisplay, buildDecimalBrParseString, buildEmptyStateOverlayHtml, caretIndexFromIntegerDigitCount, caretIndexFromSemantic, cepMaskCompleteValidator, cpfCnpjMaskCompleteValidator, escapeHtml, extractDecimalBrParts, fileIsLikelyImage, fileMatchesAccept, fixedDigitsMaskCompleteValidator, formatAcceptForDisplay, formatDateTimePtBr, formatDecimalBr, formatFileSizeBytes, formatIntegerThousandsBr, formatMaskDigits, formatUiFieldDateValue, getFilePreviewKind, libDialogPanelClasses, mapEstadosToOptions, maskDigitCount, normalizeFormDateValue, parseDecimalBr, parseIntegerString, parseUiFieldDateValue, phoneBrMaskCompleteValidator, resolveControlAtPath, sanitizeDecimalBrInput, sanitizeIntegerDigits, sectionHasVisibleInvalid, semanticCaretAt, semanticIntegerDigitCountLeft, stripToDigits, subscribeMarkForCheckOnInvalidUiRefresh, subtreeHasVisibleInvalid };
3361
3383
  export type { AdaptiveDataViewMode, AppThemeId, AppThemeOption, BreadcrumbItem, CardItemView, CardListDataMode, CardListMapFn, ConfirmDialogData, ConfirmDialogVariant, DataGridColumn, DataGridPaginationChangeEvent, DetailsViewItem, DropdownListBindings, DropdownSearchPageRequested, FieldCommonInputs, FilePreviewKind, FormTabsVariant, LoadingDialogData, MenuItemAction, MenuItemDivider, MenuItemGroup, MenuItemKind, MenuItemSubmenu, MenuLeafItem, MenuNodeItem, SelectPageRequested, SkeletonFieldShellVariant, StatCardDeltaTone, StatusBadgeSize, StatusBadgeVariant, ToastInstance, ToastShowOptions, ToastType, ToastVerticalPosition, UiSelectOption, ValidationSummaryItem, ValidationSummaryVariant };