structra-ui 0.1.49 → 0.1.51

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.49",
3
+ "version": "0.1.51",
4
4
  "description": "Biblioteca de componentes Angular da StructraLab (UI reutilizável).",
5
5
  "homepage": "https://structralab.com/",
6
6
  "license": "MIT",
@@ -23,6 +23,9 @@ declare enum BaseButtonType {
23
23
  Submit = "submit",
24
24
  Reset = "reset"
25
25
  }
26
+ /**
27
+ * Base do botão; **não** exposta no barrel público `buttons`. Use `ButtonComponent` (`app-button`).
28
+ */
26
29
  declare class BaseButtonComponent {
27
30
  private nativeBtn?;
28
31
  /** `submit` envia o `<form>` ancestral; use `button` para ações sem submit. */
@@ -55,6 +58,15 @@ declare class BaseButtonComponent {
55
58
  static ngAcceptInputType_loading: unknown;
56
59
  }
57
60
 
61
+ /**
62
+ * Botão público da library (`app-button`). Comportamento e API iguais a {@link BaseButtonComponent};
63
+ * use sempre este componente em templates — a base permanece interna ao pacote.
64
+ */
65
+ declare class ButtonComponent extends BaseButtonComponent {
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "app-button", never, {}, {}, never, ["*"], true, never>;
68
+ }
69
+
58
70
  /**
59
71
  * Itens de menu partilhados por dropdown, context menu, action-menu e campos (`mostrarMenuContexto`).
60
72
  * Discriminação por `kind` para renderização e navegação por teclado.
@@ -135,8 +147,8 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
135
147
  clearable: boolean;
136
148
  clearAriaLabel: string;
137
149
  /**
138
- * Se `true`, o navegador pode exibir sugestões de preenchimento automático.
139
- * Padrão `false` (`autocomplete="off"` em todos os campos).
150
+ * Se `true`, o atributo HTML fica `autocomplete="on"` (sugestões do browser).
151
+ * `false` `autocomplete="off"`. Padrão `true`.
140
152
  */
141
153
  autocomplete: boolean;
142
154
  /** Placeholder de carregamento no `app-base-field` (skeleton). */
@@ -198,6 +210,7 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
198
210
  protected notifyTouched(): void;
199
211
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseFieldDirective<any>, never>;
200
212
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFieldDirective<any>, never, never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showRequiredMark": { "alias": "showRequiredMark"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showPrefixIcon": { "alias": "showPrefixIcon"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "mostrarMenuContexto": { "alias": "mostrarMenuContexto"; "required": false; }; "contextMenuItems": { "alias": "contextMenuItems"; "required": false; }; "contextMenuId": { "alias": "contextMenuId"; "required": false; }; }, { "contextMenuSelect": "contextMenuSelect"; }, never, never, true, never>;
213
+ static ngAcceptInputType_autocomplete: unknown;
201
214
  static ngAcceptInputType_loading: unknown;
202
215
  static ngAcceptInputType_mostrarMenuContexto: unknown;
203
216
  }
@@ -415,7 +428,10 @@ declare class PasswordFieldComponent extends NgControlFieldDirective<string | nu
415
428
  /** Por defeito `false`: o botão de limpar compete com o toggle de visibilidade. */
416
429
  clearable: boolean;
417
430
  maxLength: number;
418
- /** Atributo HTML `autocomplete` (senha actual vs. nova senha). */
431
+ /**
432
+ * Com o input `autocomplete` da base a `true`, define o atributo HTML
433
+ * (`current-password` / `new-password`). Com `autocomplete` a `false`, aplica-se `off`.
434
+ */
419
435
  autoComplete: 'off' | 'current-password' | 'new-password';
420
436
  /** `false` = caracteres ocultos (ícone olho aberto para revelar). */
421
437
  passwordVisible: boolean;
@@ -684,7 +700,7 @@ interface FieldCommonInputs {
684
700
  iconLeft?: string;
685
701
  clearable?: boolean;
686
702
  clearAriaLabel?: string;
687
- /** `true` = sugestões do navegador; padrão nos componentes é `false`. */
703
+ /** `true` = `autocomplete="on"`; `false` = desliga; padrão na base é `true`. */
688
704
  autocomplete?: boolean;
689
705
  /** Skeleton no `app-base-field` enquanto dados externos carregam. */
690
706
  loading?: boolean;
@@ -2314,7 +2330,18 @@ declare class ConfirmDialogService {
2314
2330
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
2315
2331
  }
2316
2332
 
2317
- declare const APP_THEME_IDS: readonly ["blue", "green", "purple", "orange", "white", "gray", "sepia", "black"];
2333
+ /** Identificadores de paleta suportados pela library (uso em `AppThemeService.setTheme`). */
2334
+ declare enum AppTheme {
2335
+ Blue = "blue",
2336
+ Green = "green",
2337
+ Purple = "purple",
2338
+ Orange = "orange",
2339
+ White = "white",
2340
+ Gray = "gray",
2341
+ Sepia = "sepia",
2342
+ Black = "black"
2343
+ }
2344
+ declare const APP_THEME_IDS: readonly [AppTheme.Blue, AppTheme.Green, AppTheme.Purple, AppTheme.Orange, AppTheme.White, AppTheme.Gray, AppTheme.Sepia, AppTheme.Black];
2318
2345
  type AppThemeId = (typeof APP_THEME_IDS)[number];
2319
2346
  /** Opção de tema para UI (selector, documentação). */
2320
2347
  interface AppThemeOption {
@@ -2328,16 +2355,16 @@ interface AppThemeOption {
2328
2355
  declare class AppThemeService {
2329
2356
  private readonly activeId;
2330
2357
  /** Identificador do tema activo (`blue`, `green`, …). */
2331
- readonly activeThemeId: i0.Signal<"blue" | "green" | "purple" | "orange" | "white" | "gray" | "sepia" | "black">;
2358
+ readonly activeThemeId: i0.Signal<AppTheme>;
2332
2359
  /**
2333
2360
  * Classes separadas (ex.: CDK `panelClass` — uma string com espaço quebra `classList.add`).
2334
2361
  */
2335
2362
  readonly themeClassList: i0.Signal<readonly [string, string]>;
2336
2363
  /**
2337
2364
  * As duas classes numa string — útil para `[class]`, `[ngClass]` com string, ou hosts HTML.
2338
- * Ex.: `<div [ngClass]="libTheme.themeClass()">` aplica paleta completa no consumidor.
2365
+ * Ex.: `<div [ngClass]="libTheme.getTheme()">` aplica paleta completa no consumidor.
2339
2366
  */
2340
- readonly themeClass: i0.Signal<string>;
2367
+ readonly getTheme: i0.Signal<string>;
2341
2368
  /** Mapa para `[ngClass]` com chaves dinâmicas (painéis overlay). */
2342
2369
  readonly themeClassMap: i0.Signal<{
2343
2370
  [x: string]: boolean;
@@ -3051,5 +3078,5 @@ declare class AppBreadcrumbComponent {
3051
3078
  static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": true; }; }, {}, never, never, true, never>;
3052
3079
  }
3053
3080
 
3054
- 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, AppThemeService, AppTopbarComponent, AppUserMenuComponent, BR_ESTADOS_NOME_SIGLA, BaseButtonComponent, BaseButtonType, BaseButtonVariant, BaseFieldComponent, BaseFieldDirective, BooleanFieldDirective, 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, FormActionsAlign, FormActionsComponent, FormColComponent, FormGroupComponent, FormGroupVariant, FormLayoutGap, FormRowAlign, FormRowComponent, FormRowJustify, FormSectionComponent, FormTabComponent, FormTabsComponent, 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, 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, applyPickedCalendarDate, buildDecimalBrDisplay, buildDecimalBrParseString, buildEmptyStateOverlayHtml, caretIndexFromIntegerDigitCount, caretIndexFromSemantic, cepMaskCompleteValidator, cpfCnpjMaskCompleteValidator, escapeHtml, extractDecimalBrParts, fixedDigitsMaskCompleteValidator, formatDateTimePtBr, formatDecimalBr, formatIntegerThousandsBr, formatMaskDigits, formatUiFieldDateValue, libDialogPanelClasses, mapEstadosToOptions, maskDigitCount, normalizeFormDateValue, parseDecimalBr, parseIntegerString, parseUiFieldDateValue, phoneBrMaskCompleteValidator, resolveControlAtPath, sanitizeDecimalBrInput, sanitizeIntegerDigits, sectionHasVisibleInvalid, semanticCaretAt, semanticIntegerDigitCountLeft, stripToDigits, subscribeMarkForCheckOnInvalidUiRefresh, subtreeHasVisibleInvalid };
3081
+ 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, FormActionsAlign, FormActionsComponent, FormColComponent, FormGroupComponent, FormGroupVariant, FormLayoutGap, FormRowAlign, FormRowComponent, FormRowJustify, FormSectionComponent, FormTabComponent, FormTabsComponent, 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, 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, applyPickedCalendarDate, buildDecimalBrDisplay, buildDecimalBrParseString, buildEmptyStateOverlayHtml, caretIndexFromIntegerDigitCount, caretIndexFromSemantic, cepMaskCompleteValidator, cpfCnpjMaskCompleteValidator, escapeHtml, extractDecimalBrParts, fixedDigitsMaskCompleteValidator, formatDateTimePtBr, formatDecimalBr, formatIntegerThousandsBr, formatMaskDigits, formatUiFieldDateValue, libDialogPanelClasses, mapEstadosToOptions, maskDigitCount, normalizeFormDateValue, parseDecimalBr, parseIntegerString, parseUiFieldDateValue, phoneBrMaskCompleteValidator, resolveControlAtPath, sanitizeDecimalBrInput, sanitizeIntegerDigits, sectionHasVisibleInvalid, semanticCaretAt, semanticIntegerDigitCountLeft, stripToDigits, subscribeMarkForCheckOnInvalidUiRefresh, subtreeHasVisibleInvalid };
3055
3082
  export type { AdaptiveDataViewMode, AppThemeId, AppThemeOption, BreadcrumbItem, CardItemView, CardListDataMode, CardListMapFn, ConfirmDialogData, ConfirmDialogVariant, DataGridColumn, DataGridPaginationChangeEvent, DetailsViewItem, DropdownListBindings, DropdownSearchPageRequested, FieldCommonInputs, FormTabsVariant, LoadingDialogData, MenuItemAction, MenuItemDivider, MenuItemGroup, MenuItemKind, MenuItemSubmenu, MenuLeafItem, MenuNodeItem, SelectPageRequested, SkeletonFieldShellVariant, StatCardDeltaTone, StatusBadgeSize, StatusBadgeVariant, ToastInstance, ToastShowOptions, ToastType, ToastVerticalPosition, UiSelectOption, ValidationSummaryItem, ValidationSummaryVariant };