structra-ui 0.1.42 → 0.1.44

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.42",
3
+ "version": "0.1.44",
4
4
  "description": "Biblioteca de componentes Angular da StructraLab (UI reutilizável).",
5
5
  "homepage": "https://structralab.com/",
6
6
  "license": "MIT",
@@ -895,7 +895,6 @@ declare class DropdownBaseComponent {
895
895
  */
896
896
  readonly panelThemeNgClass: i0.Signal<{
897
897
  [x: string]: boolean;
898
- 'app-library-theme': boolean;
899
898
  }>;
900
899
  open: boolean;
901
900
  readonly openChange: EventEmitter<boolean>;
@@ -1222,8 +1221,8 @@ interface DropdownListBindings<T = unknown> {
1222
1221
  compareWith: (a: unknown, b: unknown) => boolean;
1223
1222
  }
1224
1223
 
1225
- /** Espaçamento horizontal/vertical entre itens da linha. */
1226
- declare enum FormRowGap {
1224
+ /** Espaçamento entre itens da linha ou da pilha dentro de uma coluna. */
1225
+ declare enum FormLayoutGap {
1227
1226
  Xs = "xs",
1228
1227
  Sm = "sm",
1229
1228
  Md = "md",
@@ -1310,7 +1309,8 @@ declare class FormActionsComponent {
1310
1309
 
1311
1310
  /**
1312
1311
  * Coluna no sistema de 12 trilhos da {@link FormRowComponent}.
1313
- * Em viewports menores que `sm`, usa `xs` (por defeito largura total).
1312
+ * Breakpoints (min-width): sm 40rem, md 48rem, lg 64rem, xl 80rem.
1313
+ * Valores omitidos (ex.: só `xs` e `md`) propagam-se a partir do maior definido — ex.: `md` preenche `sm` quando `sm` não está definido.
1314
1314
  */
1315
1315
  declare class FormColComponent {
1316
1316
  /** Colunas ocupadas em &lt; `sm` (por defeito 12 = linha inteira). */
@@ -1320,14 +1320,25 @@ declare class FormColComponent {
1320
1320
  lg?: number;
1321
1321
  xl?: number;
1322
1322
  order?: number;
1323
- /** Quando `true`, a coluna pode crescer para ocupar espaço livre na linha (flex futuro / composição). */
1323
+ /** Quando `true`, a coluna preenche o espaço horizontal restante na grelha (`auto / -1`). */
1324
1324
  grow: boolean;
1325
+ /** Espaço entre elementos projectados na mesma coluna (pilha vertical). */
1326
+ gap: FormLayoutGap;
1327
+ align: FormRowAlign;
1328
+ /** No eixo vertical da pilha (`justify-content`). */
1329
+ justify: FormRowJustify;
1325
1330
  get hostClass(): string;
1326
1331
  get hostVars(): string;
1332
+ /**
1333
+ * Cada patamar herda do próximo **maior** explicitamente definido quando o intermédio falta
1334
+ * (ex.: só `xs` + `md` → `sm` usa `md`, evitando faixa 40–48rem presa em `xs`).
1335
+ */
1336
+ private resolvedSpans;
1337
+ private optionalSpan;
1338
+ private firstDefined;
1327
1339
  private clampSpan;
1328
- private normalizeOptionalSpan;
1329
1340
  static ɵfac: i0.ɵɵFactoryDeclaration<FormColComponent, never>;
1330
- static ɵcmp: i0.ɵɵComponentDeclaration<FormColComponent, "app-form-col", never, { "xs": { "alias": "xs"; "required": false; }; "sm": { "alias": "sm"; "required": false; }; "md": { "alias": "md"; "required": false; }; "lg": { "alias": "lg"; "required": false; }; "xl": { "alias": "xl"; "required": false; }; "order": { "alias": "order"; "required": false; }; "grow": { "alias": "grow"; "required": false; }; }, {}, never, ["*"], true, never>;
1341
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormColComponent, "app-form-col", never, { "xs": { "alias": "xs"; "required": false; }; "sm": { "alias": "sm"; "required": false; }; "md": { "alias": "md"; "required": false; }; "lg": { "alias": "lg"; "required": false; }; "xl": { "alias": "xl"; "required": false; }; "order": { "alias": "order"; "required": false; }; "grow": { "alias": "grow"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; }, {}, never, ["*"], true, never>;
1331
1342
  static ngAcceptInputType_xs: unknown;
1332
1343
  static ngAcceptInputType_order: unknown;
1333
1344
  static ngAcceptInputType_grow: unknown;
@@ -1457,14 +1468,17 @@ declare class FormGroupComponent implements OnChanges, OnInit, DoCheck {
1457
1468
  }
1458
1469
 
1459
1470
  declare class FormRowComponent {
1460
- gap: FormRowGap;
1471
+ gap: FormLayoutGap;
1461
1472
  align: FormRowAlign;
1462
1473
  justify: FormRowJustify;
1474
+ /** Filhos sem `app-form-col` ocupam a linha inteira; `app-form-col` com `[grow]` preenche o espaço restante na grelha. */
1475
+ grow: boolean;
1463
1476
  wrap: boolean;
1464
1477
  stackOnMobile: boolean;
1465
1478
  get hostClass(): string;
1466
1479
  static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
1467
- static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "app-form-row", never, { "gap": { "alias": "gap"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "stackOnMobile": { "alias": "stackOnMobile"; "required": false; }; }, {}, never, ["*"], true, never>;
1480
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "app-form-row", never, { "gap": { "alias": "gap"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "grow": { "alias": "grow"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "stackOnMobile": { "alias": "stackOnMobile"; "required": false; }; }, {}, never, ["*"], true, never>;
1481
+ static ngAcceptInputType_grow: unknown;
1468
1482
  static ngAcceptInputType_wrap: unknown;
1469
1483
  static ngAcceptInputType_stackOnMobile: unknown;
1470
1484
  }
@@ -2258,15 +2272,26 @@ interface AppThemeOption {
2258
2272
  readonly label: string;
2259
2273
  }
2260
2274
  /**
2261
- * Estado global do tema da library: classe CSS `theme-*` em conjunto com `.app-library-theme`.
2262
- * Os tokens `--app-color-*` são definidos em `src/app/_theme/`; paletas em `_theme-palettes.scss`.
2275
+ * Estado global do tema da library: **sempre** `.app-library-theme` + `theme-*` juntos.
2276
+ * Os tokens de paleta em `_theme-palettes.scss` usam o selector `.app-library-theme.theme-*`.
2263
2277
  */
2264
2278
  declare class AppThemeService {
2265
2279
  private readonly activeId;
2266
2280
  /** Identificador do tema activo (`blue`, `green`, …). */
2267
2281
  readonly activeThemeId: i0.Signal<"blue" | "green" | "purple" | "orange" | "white" | "gray" | "sepia" | "black">;
2268
- /** Classe CSS do tema (ex.: `theme-green`) para `[ngClass]` no host tematizado. */
2282
+ /**
2283
+ * Classes separadas (ex.: CDK `panelClass` — uma string com espaço quebra `classList.add`).
2284
+ */
2285
+ readonly themeClassList: i0.Signal<readonly [string, string]>;
2286
+ /**
2287
+ * As duas classes numa string — útil para `[class]`, `[ngClass]` com string, ou hosts HTML.
2288
+ * Ex.: `<div [ngClass]="libTheme.themeClass()">` aplica paleta completa no consumidor.
2289
+ */
2269
2290
  readonly themeClass: i0.Signal<string>;
2291
+ /** Mapa para `[ngClass]` com chaves dinâmicas (painéis overlay). */
2292
+ readonly themeClassMap: i0.Signal<{
2293
+ [x: string]: boolean;
2294
+ }>;
2270
2295
  /** Lista fixa de temas suportados pela library. */
2271
2296
  readonly themeOptions: readonly AppThemeOption[];
2272
2297
  setTheme(id: AppThemeId): void;
@@ -2430,7 +2455,6 @@ declare class ContextMenuComponent<T = string> implements OnDestroy {
2430
2455
  private readonly generatedId;
2431
2456
  readonly panelThemeNgClass: i0.Signal<{
2432
2457
  [x: string]: boolean;
2433
- 'app-library-theme': boolean;
2434
2458
  }>;
2435
2459
  get resolvedMenuId(): string;
2436
2460
  ngOnDestroy(): void;
@@ -2547,7 +2571,6 @@ declare class MenuListComponent<T = string> implements OnChanges {
2547
2571
  readonly submenuPositions: _angular_cdk_overlay.ConnectedPosition[];
2548
2572
  readonly panelThemeNgClass: i0.Signal<{
2549
2573
  [x: string]: boolean;
2550
- 'app-library-theme': boolean;
2551
2574
  }>;
2552
2575
  overlayPanelClasses(): string[];
2553
2576
  onNestedItemSelect(id: T): void;
@@ -2658,7 +2681,6 @@ declare class AnchoredOverlayComponent {
2658
2681
  readonly overlayPanelClasses: i0.Signal<string[]>;
2659
2682
  readonly panelThemeNgClass: i0.Signal<{
2660
2683
  [x: string]: boolean;
2661
- 'app-library-theme': boolean;
2662
2684
  }>;
2663
2685
  readonly defaultScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
2664
2686
  get effectiveScrollStrategy(): ScrollStrategy;
@@ -2979,5 +3001,5 @@ declare class AppBreadcrumbComponent {
2979
3001
  static ɵcmp: i0.ɵɵComponentDeclaration<AppBreadcrumbComponent, "app-breadcrumb", never, { "items": { "alias": "items"; "required": true; }; }, {}, never, never, true, never>;
2980
3002
  }
2981
3003
 
2982
- 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, FormRowAlign, FormRowComponent, FormRowGap, FormRowJustify, FormSectionComponent, FormTabComponent, FormTabsComponent, InputMaskFieldComponent, IntegerFieldComponent, LayoutStackAlign, LayoutStackComponent, 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 };
3004
+ 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, LayoutStackAlign, LayoutStackComponent, 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 };
2983
3005
  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 };