structra-ui 0.1.79 → 0.1.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "structra-ui",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "Biblioteca de componentes Angular da StructraLab (UI reutilizável).",
5
5
  "homepage": "https://structralab.com/",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@ 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 BaseButtonVariant {
16
+ declare enum ButtonVariant {
17
17
  Primary = "primary",
18
18
  Secondary = "secondary",
19
19
  /** Texto/ícone sem caixa — navegação secundária, “link” com aparência de botão acessível. */
@@ -24,7 +24,7 @@ declare enum BaseButtonVariant {
24
24
  */
25
25
  Danger = "danger"
26
26
  }
27
- declare enum BaseButtonType {
27
+ declare enum ButtonType {
28
28
  Button = "button",
29
29
  Submit = "submit",
30
30
  Reset = "reset"
@@ -35,7 +35,7 @@ declare enum BaseButtonType {
35
35
  declare class BaseButtonComponent {
36
36
  private nativeBtn?;
37
37
  /** `submit` envia o `<form>` ancestral; use `button` para ações sem submit. */
38
- type: BaseButtonType;
38
+ type: ButtonType;
39
39
  disabled: boolean;
40
40
  /**
41
41
  * Não interage (como `disabled`), mas com aparência em cinza (tema somente leitura),
@@ -50,9 +50,9 @@ declare class BaseButtonComponent {
50
50
  /** Placeholder de carregamento (skeleton no lugar do rótulo). */
51
51
  loading: boolean;
52
52
  /** Estilo visual base; pode ser estendido no SCSS do projeto. */
53
- variant: BaseButtonVariant;
53
+ variant: ButtonVariant;
54
54
  /** Alias de {@link variant} (nome comum em design systems). */
55
- set appearance(value: BaseButtonVariant);
55
+ set appearance(value: ButtonVariant);
56
56
  get hostClasses(): string;
57
57
  /** Foca o `<button>` nativo (o host do componente não é focável). */
58
58
  focusNative(options?: FocusOptions): void;
@@ -1389,8 +1389,8 @@ declare class ImagePreviewPanelComponent implements OnChanges, OnDestroy {
1389
1389
  objectFit: 'cover' | 'contain';
1390
1390
  readonly remove: EventEmitter<void>;
1391
1391
  readonly change: EventEmitter<void>;
1392
- readonly BaseButtonType: typeof BaseButtonType;
1393
- readonly BaseButtonVariant: typeof BaseButtonVariant;
1392
+ readonly ButtonType: typeof ButtonType;
1393
+ readonly ButtonVariant: typeof ButtonVariant;
1394
1394
  /** Mensagem reutilizada: falha de carga, tipo não suportado, etc. */
1395
1395
  readonly previewUnavailableMessage = "N\u00E3o foi poss\u00EDvel abrir a pr\u00E9-visualiza\u00E7\u00E3o.";
1396
1396
  /** `blob:` a revogar ao trocar ou destruir. */
@@ -1519,7 +1519,10 @@ declare class LayoutStackComponent {
1519
1519
  * filhos em pilha, largura total, mesmo com `direction="row"`. Desative para manter fila no telemóvel.
1520
1520
  */
1521
1521
  stackOnMobile: boolean;
1522
- /** Linha separadora acima da faixa. Nome explícito para evitar colisão com o esquema DOM em templates aninhados. */
1522
+ /**
1523
+ * Linha separadora acima da faixa — renderiza {@link DividerComponent} (`app-divider`)
1524
+ * com `[tightTop]="true"` (sem `margin-top` extra; o `gap` do contentor já separa o bloco anterior).
1525
+ */
1523
1526
  stackDivider: boolean;
1524
1527
  /**
1525
1528
  * Quando `true` (por defeito), em **`Row`** os filhos repartem a **largura** (`flex: 1`).
@@ -1535,6 +1538,25 @@ declare class LayoutStackComponent {
1535
1538
  static ngAcceptInputType_stackFill: unknown;
1536
1539
  }
1537
1540
 
1541
+ /**
1542
+ * Linha separadora horizontal — mesmos tokens que `[divider]` em `app-form-actions`
1543
+ * e `[stackDivider]` em `app-layout-stack`.
1544
+ *
1545
+ * `tightTop`: sem `margin-top` extra (útil quando o `gap` do pai já separa o bloco anterior).
1546
+ */
1547
+ declare class DividerComponent {
1548
+ /**
1549
+ * Omite o `margin-top` de 0.25rem — alinhado ao antigo divisor interno de `app-layout-stack`
1550
+ * (evita duplicar respiro com o `gap` da secção em que a stack está).
1551
+ */
1552
+ tightTop: boolean;
1553
+ readonly hostClass = "ui-divider";
1554
+ get tightTopClass(): boolean;
1555
+ static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
1556
+ static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "app-divider", never, { "tightTop": { "alias": "tightTop"; "required": false; }; }, {}, never, never, true, never>;
1557
+ static ngAcceptInputType_tightTop: unknown;
1558
+ }
1559
+
1538
1560
  /** Barra de ações de formulário (Salvar, Cancelar, Adicionar, …). Projeção de conteúdo. */
1539
1561
  declare class FormActionsComponent {
1540
1562
  align: FormActionsAlign;
@@ -2540,8 +2562,8 @@ interface ConfirmDialogData {
2540
2562
  declare class ConfirmDialogComponent implements AfterViewInit {
2541
2563
  readonly ref: DialogRef<boolean, ConfirmDialogComponent>;
2542
2564
  readonly data: ConfirmDialogData;
2543
- readonly BaseButtonType: typeof BaseButtonType;
2544
- readonly BaseButtonVariant: typeof BaseButtonVariant;
2565
+ readonly ButtonType: typeof ButtonType;
2566
+ readonly ButtonVariant: typeof ButtonVariant;
2545
2567
  readonly titleId: string;
2546
2568
  readonly descId: string;
2547
2569
  private cancelBtn?;
@@ -3317,5 +3339,5 @@ declare class AppBreadcrumbComponent {
3317
3339
  static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": true; }; }, {}, never, never, true, never>;
3318
3340
  }
3319
3341
 
3320
- 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, BaseButtonType, BaseButtonVariant, BaseFieldComponent, BaseFieldDirective, BooleanFieldDirective, ButtonComponent, CardListComponent, CepFieldComponent, CheckboxFieldComponent, ConfirmDialogComponent, ConfirmDialogService, ContextMenuComponent, CpfCnpjFieldComponent, DashboardSectionComponent, DataCardComponent, DataGridComponent, DataListComponent, DataToolbarComponent, DateFieldComponent, DecimalFieldComponent, DetailsFieldComponent, DetailsViewComponent, DialogFooterDirective, 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 };
3342
+ 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, 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 };
3321
3343
  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 };