structra-ui 0.1.86 → 0.1.89
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/fesm2022/structra-ui.mjs +22 -74
- package/fesm2022/structra-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/structra-ui.d.ts +11 -25
package/package.json
CHANGED
package/types/structra-ui.d.ts
CHANGED
|
@@ -33,11 +33,13 @@ declare enum ButtonType {
|
|
|
33
33
|
Submit = "submit",
|
|
34
34
|
Reset = "reset"
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
declare enum
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
/** 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",
|
|
41
|
+
/** Maior que `lg` — ênfase / touch targets amplos (CTAs hero). */
|
|
42
|
+
Xl = "xl"
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
45
|
* Base do botão; **não** exposta no barrel público `buttons`. Use `ButtonComponent` (`app-button`).
|
|
@@ -57,21 +59,8 @@ declare class BaseButtonComponent {
|
|
|
57
59
|
* `false`: largura só ao conteúdo (texto + padding).
|
|
58
60
|
*/
|
|
59
61
|
fullWidth: boolean;
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
* Ignorado com `fullWidth="true"` (mantém igual ao comportamento anterior).
|
|
63
|
-
*/
|
|
64
|
-
align: ButtonAlign | null;
|
|
65
|
-
/**
|
|
66
|
-
* Largura fixa em pixels do envoltório quando `fullWidth="false"`; `null`/≤0 não aplica estilo próprio de largura.
|
|
67
|
-
* Ignorado com `fullWidth="true"`.
|
|
68
|
-
*/
|
|
69
|
-
widthPx: number | null;
|
|
70
|
-
/**
|
|
71
|
-
* Altura fixa em pixels do envoltório; `null`/≤0 não aplica. Compatível com `fullWidth` true ou false.
|
|
72
|
-
* O `<button>` interior estica a 100% da altura da host.
|
|
73
|
-
*/
|
|
74
|
-
heightPx: number | null;
|
|
62
|
+
/** Escala tipográfica e de paddings/`min-height` do design system. `md` = aparência legada do botão. */
|
|
63
|
+
size: ButtonSize;
|
|
75
64
|
/** Placeholder de carregamento (skeleton no lugar do rótulo). */
|
|
76
65
|
loading: boolean;
|
|
77
66
|
/** Estilo visual base; pode ser estendido no SCSS do projeto. */
|
|
@@ -79,13 +68,10 @@ declare class BaseButtonComponent {
|
|
|
79
68
|
/** Alias de {@link variant} (nome comum em design systems). */
|
|
80
69
|
set appearance(value: ButtonVariant);
|
|
81
70
|
get hostClasses(): string;
|
|
82
|
-
/** Largura fixa apenas com `fullWidth="false"` (inline para sobrepor `fit-content` dos modos align). */
|
|
83
|
-
get hostWidth(): string | null;
|
|
84
|
-
get hostHeight(): string | null;
|
|
85
71
|
/** Foca o `<button>` nativo (o host do componente não é focável). */
|
|
86
72
|
focusNative(options?: FocusOptions): void;
|
|
87
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseButtonComponent, never>;
|
|
88
|
-
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; }; "
|
|
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>;
|
|
89
75
|
static ngAcceptInputType_disabled: unknown;
|
|
90
76
|
static ngAcceptInputType_readonly: unknown;
|
|
91
77
|
static ngAcceptInputType_fullWidth: unknown;
|
|
@@ -3367,5 +3353,5 @@ declare class AppBreadcrumbComponent {
|
|
|
3367
3353
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": true; }; }, {}, never, never, true, never>;
|
|
3368
3354
|
}
|
|
3369
3355
|
|
|
3370
|
-
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,
|
|
3356
|
+
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 };
|
|
3371
3357
|
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 };
|