structra-ui 0.1.13 → 0.1.16
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 +12 -1
- package/app/_utils/date-pt-br.utils.d.ts +0 -24
- package/app/_utils/decimal-br.utils.d.ts +0 -52
- package/app/_utils/estados-br.data.d.ts +0 -10
- package/app/_utils/integer-br.utils.d.ts +0 -17
- package/app/_utils/integer-value.utils.d.ts +0 -5
- package/app/_utils/scroll/body-scroll-lock.util.d.ts +0 -44
- package/app/app-shell/_models/breadcrumb-item.model.d.ts +0 -13
- package/app/app-shell/app-shell-sidebar-template.directive.d.ts +0 -19
- package/app/app-shell/app-shell.component.d.ts +0 -41
- package/app/app-shell/breadcrumb/breadcrumb.component.d.ts +0 -10
- package/app/app-shell/index.d.ts +0 -19
- package/app/app-shell/sidebar/app-sidebar-toolbar.directive.d.ts +0 -14
- package/app/app-shell/sidebar/shell-sidebar-toggle.component.d.ts +0 -19
- package/app/app-shell/sidebar/sidebar.component.d.ts +0 -36
- package/app/app-shell/sidebar-reveal.constants.d.ts +0 -8
- package/app/app-shell/topbar/topbar.component.d.ts +0 -8
- package/app/app-shell/user-menu/user-menu.component.d.ts +0 -25
- package/app/buttons/base-button/base-button.component.d.ts +0 -43
- package/app/buttons/index.d.ts +0 -1
- package/app/data-display/_models/card-item-view.model.d.ts +0 -8
- package/app/data-display/_models/data-display.models.d.ts +0 -11
- package/app/data-display/_models/data-grid-column.model.d.ts +0 -13
- package/app/data-display/_models/index.d.ts +0 -2
- package/app/data-display/adaptive-data-view/adaptive-data-view.component.d.ts +0 -53
- package/app/data-display/card-list/card-list.component.d.ts +0 -70
- package/app/data-display/dashboard-section/dashboard-section.component.d.ts +0 -12
- package/app/data-display/data-card/data-card.component.d.ts +0 -16
- package/app/data-display/data-grid/data-grid-actions-cell-renderer.component.d.ts +0 -21
- package/app/data-display/data-grid/data-grid.component.d.ts +0 -76
- package/app/data-display/data-list/data-list.component.d.ts +0 -18
- package/app/data-display/data-toolbar/data-toolbar.component.d.ts +0 -6
- package/app/data-display/details-field/details-field.component.d.ts +0 -10
- package/app/data-display/details-view/details-view.component.d.ts +0 -26
- package/app/data-display/empty-state/empty-state-overlay.util.d.ts +0 -5
- package/app/data-display/empty-state/empty-state.component.d.ts +0 -13
- package/app/data-display/index.d.ts +0 -20
- package/app/data-display/list-item/list-item.component.d.ts +0 -22
- package/app/data-display/stat-card/stat-card.component.d.ts +0 -23
- package/app/data-display/status-badge/status-badge.component.d.ts +0 -17
- package/app/data-display/table-empty-state/table-empty-state.component.d.ts +0 -14
- package/app/data-display/table-toolbar/table-toolbar.component.d.ts +0 -11
- package/app/dialogs/_models/lib-dialog-size.model.d.ts +0 -6
- package/app/dialogs/_utils/app-lib-light-block-scroll-strategy.d.ts +0 -12
- package/app/dialogs/_utils/lib-dialog-panel-classes.d.ts +0 -3
- package/app/dialogs/app-dialog/app-dialog.component.d.ts +0 -71
- package/app/dialogs/app-dialog/dialog-footer.directive.d.ts +0 -6
- package/app/dialogs/confirm-dialog/confirm-dialog-data.model.d.ts +0 -13
- package/app/dialogs/confirm-dialog/confirm-dialog.component.d.ts +0 -20
- package/app/dialogs/confirm-dialog/confirm-dialog.service.d.ts +0 -17
- package/app/dialogs/index.d.ts +0 -14
- package/app/dialogs/loading-dialog/loading-dialog-data.model.d.ts +0 -7
- package/app/dialogs/loading-dialog/loading-dialog.component.d.ts +0 -9
- package/app/dialogs/loading-dialog/loading-dialog.service.d.ts +0 -15
- package/app/dialogs/toast/toast-host.component.d.ts +0 -13
- package/app/dialogs/toast/toast.models.d.ts +0 -26
- package/app/dialogs/toast/toast.service.d.ts +0 -17
- package/app/fields/checkbox-fields/_base/boolean-field.directive.d.ts +0 -42
- package/app/fields/checkbox-fields/checkbox-field/checkbox-field.component.d.ts +0 -8
- package/app/fields/checkbox-fields/index.d.ts +0 -3
- package/app/fields/checkbox-fields/switch-field/switch-field.component.d.ts +0 -8
- package/app/fields/dropdown-fields/_base/dropdown-base/dropdown-base.component.d.ts +0 -62
- package/app/fields/dropdown-fields/_base/dropdown-multi-option-field.base.d.ts +0 -40
- package/app/fields/dropdown-fields/_base/dropdown-option-field.base.d.ts +0 -47
- package/app/fields/dropdown-fields/_base/dropdown-trigger-blur.util.d.ts +0 -18
- package/app/fields/dropdown-fields/_models/dropdown-list-bindings.model.d.ts +0 -13
- package/app/fields/dropdown-fields/_models/dropdown-search-page-requested.model.d.ts +0 -7
- package/app/fields/dropdown-fields/_models/index.d.ts +0 -4
- package/app/fields/dropdown-fields/_models/select-option.model.d.ts +0 -5
- package/app/fields/dropdown-fields/_models/select-pagination.model.d.ts +0 -6
- package/app/fields/dropdown-fields/dropdown-search-field/dropdown-search-field.component.d.ts +0 -84
- package/app/fields/dropdown-fields/index.d.ts +0 -7
- package/app/fields/dropdown-fields/multiselect-field/multiselect-field.component.d.ts +0 -49
- package/app/fields/dropdown-fields/select-field/select-field.component.d.ts +0 -54
- package/app/fields/input-fields/_base/base-field.component.d.ts +0 -60
- package/app/fields/input-fields/_base/base-field.directive.d.ts +0 -102
- package/app/fields/input-fields/_base/masked-text-field.base.d.ts +0 -34
- package/app/fields/input-fields/_base/ng-control-field.directive.d.ts +0 -43
- package/app/fields/input-fields/_models/field-common-inputs.model.d.ts +0 -49
- package/app/fields/input-fields/_models/index.d.ts +0 -1
- package/app/fields/input-fields/_utils/mask-complete.validators.d.ts +0 -18
- package/app/fields/input-fields/_utils/mask-format.utils.d.ts +0 -13
- package/app/fields/input-fields/cep-field/cep-field.component.d.ts +0 -12
- package/app/fields/input-fields/cpf-cnpj-field/cpf-cnpj-field.component.d.ts +0 -20
- package/app/fields/input-fields/date-field/date-field.component.d.ts +0 -30
- package/app/fields/input-fields/decimal-field/decimal-field.component.d.ts +0 -17
- package/app/fields/input-fields/index.d.ts +0 -22
- package/app/fields/input-fields/input-mask-field/input-mask-field.component.d.ts +0 -16
- package/app/fields/input-fields/integer-field/integer-field.component.d.ts +0 -17
- package/app/fields/input-fields/password-field/password-field.component.d.ts +0 -30
- package/app/fields/input-fields/phone-field/phone-field.component.d.ts +0 -22
- package/app/fields/input-fields/text-field/text-field.component.d.ts +0 -16
- package/app/fields/input-fields/textarea-field/textarea-field.component.d.ts +0 -31
- package/app/form-layout/_models/form-layout.model.d.ts +0 -41
- package/app/form-layout/_models/form-tabs.model.d.ts +0 -1
- package/app/form-layout/_models/index.d.ts +0 -3
- package/app/form-layout/_models/validation-summary.model.d.ts +0 -8
- package/app/form-layout/form-actions/form-actions.component.d.ts +0 -21
- package/app/form-layout/form-col/form-col.component.d.ts +0 -25
- package/app/form-layout/form-group/form-group.component.d.ts +0 -125
- package/app/form-layout/form-group/form-path.utils.d.ts +0 -16
- package/app/form-layout/form-group/form-root-invalid-ui-refresh.util.d.ts +0 -8
- package/app/form-layout/form-row/form-row.component.d.ts +0 -14
- package/app/form-layout/form-section/form-section.component.d.ts +0 -13
- package/app/form-layout/form-tab/form-tab.component.d.ts +0 -32
- package/app/form-layout/form-tabs/form-tabs.component.d.ts +0 -44
- package/app/form-layout/index.d.ts +0 -14
- package/app/form-layout/layout-stack/layout-stack.component.d.ts +0 -25
- package/app/form-layout/validation-summary/validation-summary.component.d.ts +0 -105
- package/app/loading/skeleton-loading/index.d.ts +0 -6
- package/app/loading/skeleton-loading/skeleton-block/skeleton-block.component.d.ts +0 -15
- package/app/loading/skeleton-loading/skeleton-card/skeleton-card.component.d.ts +0 -10
- package/app/loading/skeleton-loading/skeleton-field-shell/skeleton-field-shell.component.d.ts +0 -21
- package/app/loading/skeleton-loading/skeleton-list/skeleton-list.component.d.ts +0 -17
- package/app/loading/skeleton-loading/skeleton-table/skeleton-table.component.d.ts +0 -16
- package/app/loading/skeleton-loading/skeleton-text/skeleton-text.component.d.ts +0 -17
- package/app/menus/_models/drawer-side.model.d.ts +0 -6
- package/app/menus/_models/drawer-size.model.d.ts +0 -6
- package/app/menus/_models/menu-dropdown-placement.model.d.ts +0 -10
- package/app/menus/_models/menu-item.model.d.ts +0 -47
- package/app/menus/_utils/menu-connected-positions.util.d.ts +0 -4
- package/app/menus/_utils/menu-rows.util.d.ts +0 -22
- package/app/menus/_utils/submenu-connected-positions.util.d.ts +0 -5
- package/app/menus/action-menu/action-menu.component.d.ts +0 -24
- package/app/menus/context-menu/context-menu.component.d.ts +0 -32
- package/app/menus/drawer/drawer.component.d.ts +0 -38
- package/app/menus/dropdown-menu/dropdown-menu.component.d.ts +0 -33
- package/app/menus/index.d.ts +0 -11
- package/app/menus/menu-divider/menu-divider.component.d.ts +0 -8
- package/app/menus/menu-group/menu-group.component.d.ts +0 -13
- package/app/menus/menu-list/menu-list.component.d.ts +0 -77
- package/app/overlay/_models/overlay-placement.model.d.ts +0 -9
- package/app/overlay/_utils/anchored-overlay-positions.util.d.ts +0 -9
- package/app/overlay/anchored-overlay/anchored-overlay.component.d.ts +0 -51
- package/app/overlay/index.d.ts +0 -20
- package/app/overlay/popover/popover-body-template.directive.d.ts +0 -7
- package/app/overlay/popover/popover-footer-template.directive.d.ts +0 -7
- package/app/overlay/popover/popover-trigger.directive.d.ts +0 -6
- package/app/overlay/popover/popover.component.d.ts +0 -38
- package/app/overlay/tooltip/tooltip-panel-template.directive.d.ts +0 -10
- package/app/overlay/tooltip/tooltip.component.d.ts +0 -40
- package/app/theme/app-theme.service.d.ts +0 -25
- package/app/theme/index.d.ts +0 -1
- package/structra-public-api.d.ts +0 -17
- package/structra-version.d.ts +0 -2
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, DestroyRef, EventEmitter, Injector } from '@angular/core';
|
|
2
|
-
import type { MenuNodeItem } from '../../../menus/_models/menu-item.model';
|
|
3
|
-
import { AbstractControl, ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Diretiva base abstrata: CVA, valor interno, disabled, touched e inputs comuns.
|
|
7
|
-
* Sem UI; os campos concretos envolvem o input com `BaseFieldComponent`.
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
|
|
10
|
-
protected readonly cdr: ChangeDetectorRef;
|
|
11
|
-
protected readonly injector: Injector;
|
|
12
|
-
protected readonly destroyRef: DestroyRef;
|
|
13
|
-
private formGroupDir;
|
|
14
|
-
private ngFormDir;
|
|
15
|
-
/** Identificador estável para a11y quando `id` não é informado */
|
|
16
|
-
protected readonly autoId: string;
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
label: string;
|
|
20
|
-
placeholder: string;
|
|
21
|
-
errorMessage: string;
|
|
22
|
-
/** Se `true`, exibe o parágrafo de erro; por defeito `false` (só estado inválido na borda/label). */
|
|
23
|
-
showErrorMessage: boolean;
|
|
24
|
-
required: boolean;
|
|
25
|
-
/** Se `true` e `required`, exibe o asterisco no label (`BaseFieldComponent`); por defeito `false`. */
|
|
26
|
-
showRequiredMark: boolean;
|
|
27
|
-
readonly: boolean;
|
|
28
|
-
/** Exibe ícone à esquerda (classes Font Awesome, ex.: `fa-solid fa-user`). */
|
|
29
|
-
showPrefixIcon: boolean;
|
|
30
|
-
prefixIcon: string;
|
|
31
|
-
/** Alias de {@link prefixIcon} (API alinhada a “ícone à esquerda”). */
|
|
32
|
-
set iconLeft(value: string);
|
|
33
|
-
/** Exibe botão à direita para limpar o valor quando houver texto. */
|
|
34
|
-
clearable: boolean;
|
|
35
|
-
clearAriaLabel: string;
|
|
36
|
-
/**
|
|
37
|
-
* Se `true`, o navegador pode exibir sugestões de preenchimento automático.
|
|
38
|
-
* Padrão `false` (`autocomplete="off"` em todos os campos).
|
|
39
|
-
*/
|
|
40
|
-
autocomplete: boolean;
|
|
41
|
-
/** Placeholder de carregamento no `app-base-field` (skeleton). */
|
|
42
|
-
loading: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Mostra botão «…» no sufixo que abre menu de ações (dropdown com os itens em {@link contextMenuItems}).
|
|
45
|
-
* Por defeito `false`.
|
|
46
|
-
*/
|
|
47
|
-
mostrarMenuContexto: boolean;
|
|
48
|
-
/** Itens do menu de contexto (rótulos, divisores, grupos); só o botão é mostrado se a lista não for vazia. */
|
|
49
|
-
contextMenuItems: readonly MenuNodeItem<string>[];
|
|
50
|
-
/** `id` do menu (acessibilidade); por defeito `{id do campo}-ctx`. */
|
|
51
|
-
contextMenuId: string;
|
|
52
|
-
readonly contextMenuSelect: EventEmitter<string>;
|
|
53
|
-
protected internalValue: T | null;
|
|
54
|
-
protected disabled: boolean;
|
|
55
|
-
private onChange;
|
|
56
|
-
private onTouched;
|
|
57
|
-
get controlId(): string;
|
|
58
|
-
/** Valor do atributo HTML `autocomplete` derivado de {@link autocomplete}. */
|
|
59
|
-
get autocompleteAttr(): 'on' | 'off';
|
|
60
|
-
/**
|
|
61
|
-
* Mensagem exibida quando inválido: `errorMessage` se preenchido;
|
|
62
|
-
* senão, se obrigatório, o padrão "Campo obrigatório".
|
|
63
|
-
* Campos não obrigatórios não exibem mensagem de erro da lib.
|
|
64
|
-
*/
|
|
65
|
-
getErrorMessage(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Obrigatório efetivo para UI: {@link required} ou `Validators.required` no `FormControl`.
|
|
68
|
-
* Usado no asterisco do label e no atributo HTML `required`.
|
|
69
|
-
*/
|
|
70
|
-
get requiredEffective(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* `true` se `[required]="true"` **ou** o control tiver `Validators.required`.
|
|
73
|
-
*/
|
|
74
|
-
protected isEffectiveRequired(control: AbstractControl | null | undefined): boolean;
|
|
75
|
-
/** Sobrescrito em campos com `NgControl` para ler o `FormControl`. */
|
|
76
|
-
protected resolveControlForRequired(): AbstractControl | null | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Estado visual de erro (borda/label): obrigatório efetivo + control inválido +
|
|
79
|
-
* só após interação com o valor (`dirty`) ou envio do formulário (`submitted`).
|
|
80
|
-
* Não usar `touched` sozinho: blur/tab marca touched sem alterar o valor e não deve mostrar erro.
|
|
81
|
-
*/
|
|
82
|
-
protected controlInvalidUi(control: AbstractControl | null | undefined): boolean;
|
|
83
|
-
/** Reactive: `FormGroupDirective` no `<form [formGroup]>`; template-driven: `NgForm`. */
|
|
84
|
-
protected isParentFormSubmitted(): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Campos OnPush precisam reavaliar `baseInvalid` após o submit do form
|
|
87
|
-
* (mudança de `submitted` não passa por `statusChanges`).
|
|
88
|
-
*/
|
|
89
|
-
protected registerFormSubmitRecheck(): void;
|
|
90
|
-
writeValue(value: T | null): void;
|
|
91
|
-
/** Sincroniza exibição/DOM após writeValue ou reset do form. */
|
|
92
|
-
protected afterWriteValue(_value: T | null): void;
|
|
93
|
-
registerOnChange(fn: (value: T | null) => void): void;
|
|
94
|
-
registerOnTouched(fn: () => void): void;
|
|
95
|
-
setDisabledState(isDisabled: boolean): void;
|
|
96
|
-
protected emitModelValue(value: T | null): void;
|
|
97
|
-
protected notifyTouched(): void;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFieldDirective<any>, never>;
|
|
99
|
-
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, false, never>;
|
|
100
|
-
static ngAcceptInputType_loading: unknown;
|
|
101
|
-
static ngAcceptInputType_mostrarMenuContexto: unknown;
|
|
102
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { NgControlFieldDirective } from './ng-control-field.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Campo de texto com máscara visual; valor do modelo = **apenas dígitos** (string), sem máscara.
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class MaskedTextFieldBase extends NgControlFieldDirective<string | null> {
|
|
7
|
-
/** Padrão com `#` para cada dígito (ex.: `#####-###`). Subclasses podem sobrescrever {@link pattern}. */
|
|
8
|
-
maskPattern: string;
|
|
9
|
-
inputText: string;
|
|
10
|
-
/** Preenchido (só dígitos) para o label flutuante; actualizado com o texto mascarado. */
|
|
11
|
-
filledUi: boolean;
|
|
12
|
-
/** Padrão efetivo (permite CEP/telefone fixarem máscaras em subclasses). */
|
|
13
|
-
protected get pattern(): string;
|
|
14
|
-
/**
|
|
15
|
-
* Padrão de formatação para o valor digitado (só dígitos).
|
|
16
|
-
* Sobrescrever para máscara dinâmica (ex.: CPF até 11 dígitos, CNPJ depois).
|
|
17
|
-
*/
|
|
18
|
-
protected maskPatternFromDigits(digitsOnly: string): string;
|
|
19
|
-
protected refreshMaskFilledUi(): void;
|
|
20
|
-
protected afterWriteValue(value: string | null): void;
|
|
21
|
-
/**
|
|
22
|
-
* Dígitos abaixo do tamanho da máscara actual (fixa ou dinâmica, ex. CPF/CNPJ), com valor parcial.
|
|
23
|
-
* Aplica-se também sem obrigatório: máscara incompleta deve mostrar erro na UI (alinhado a `maskIncomplete`).
|
|
24
|
-
* Mesma regra temporal que {@link BaseFieldDirective.controlInvalidUi}: `dirty` ou submit (não só `touched`).
|
|
25
|
-
*/
|
|
26
|
-
protected isMaskIncompleteForUi(): boolean;
|
|
27
|
-
get baseInvalid(): boolean;
|
|
28
|
-
getErrorMessage(): string;
|
|
29
|
-
protected onMaskedInput(event: Event): void;
|
|
30
|
-
protected onMaskedBlur(): void;
|
|
31
|
-
protected onMaskedClear(): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaskedTextFieldBase, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskedTextFieldBase, never, never, { "maskPattern": { "alias": "maskPattern"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DoCheck, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, NgControl } from '@angular/forms';
|
|
3
|
-
import { BaseFieldDirective } from './base-field.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Campos com `NgControl` + CVA: injeta o control e expõe estado de erro/a11y comuns.
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class NgControlFieldDirective<T> extends BaseFieldDirective<T> implements OnInit, OnChanges, DoCheck {
|
|
9
|
-
protected ngControl: NgControl | null;
|
|
10
|
-
/** `FormGroupDirective.submitted` muda com `resetForm()` sem `ngSubmit` — OnPush precisa disto para a borda/erro. */
|
|
11
|
-
private lastParentSubmitted;
|
|
12
|
-
/**
|
|
13
|
-
* Texto do label flutuante em `app-base-field` (`label` ou `placeholder`).
|
|
14
|
-
* Mantido em campo (não getter) para reduzir trabalho por ciclo de deteção.
|
|
15
|
-
*/
|
|
16
|
-
floatLabelCaption: string;
|
|
17
|
-
/** Cache para o template (evita `getErrorMessage()` / getters a cada CD). */
|
|
18
|
-
uiErrorMessage: string;
|
|
19
|
-
uiRequiredEffective: boolean;
|
|
20
|
-
uiInvalid: boolean;
|
|
21
|
-
uiAriaDescribedBy: string | null;
|
|
22
|
-
protected resolveControlForRequired(): AbstractControl | null | undefined;
|
|
23
|
-
ngOnChanges(_changes: SimpleChanges): void;
|
|
24
|
-
private refreshFloatLabelCaption;
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
ngDoCheck(): void;
|
|
27
|
-
writeValue(value: T | null): void;
|
|
28
|
-
/**
|
|
29
|
-
* Após propagar o valor ao `FormControl`, reavalia já `uiInvalid` / a11y.
|
|
30
|
-
* Só confiar em `valueChanges` pode deixar o estado visual desfasado (ex.: select após escolha).
|
|
31
|
-
*/
|
|
32
|
-
protected emitModelValue(value: T | null): void;
|
|
33
|
-
protected registerFormSubmitRecheck(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Actualiza caches usados no template após mudança de valor/estado do control
|
|
36
|
-
* ou de inputs que afectam mensagem / obrigatório.
|
|
37
|
-
*/
|
|
38
|
-
protected syncControlUi(): void;
|
|
39
|
-
get baseInvalid(): boolean;
|
|
40
|
-
get errorElementId(): string;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgControlFieldDirective<any>, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlFieldDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
43
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { MenuNodeItem } from '../../../menus/_models/menu-item.model';
|
|
2
|
-
/**
|
|
3
|
-
* Contrato documental de entradas visuais comuns (campos com `BaseFieldDirective`).
|
|
4
|
-
* Nem todos os membros existem em todos os componentes; use como referência de API.
|
|
5
|
-
*
|
|
6
|
-
* **Aliases estáveis:** `iconLeft` → `prefixIcon` (mesmo valor).
|
|
7
|
-
*/
|
|
8
|
-
export interface FieldCommonInputs {
|
|
9
|
-
label: string;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
/** Mensagem de erro sob o campo; vazia usa o texto padrão quando inválido. */
|
|
12
|
-
errorMessage: string;
|
|
13
|
-
/** Por defeito `false` na `BaseFieldDirective`. */
|
|
14
|
-
showErrorMessage?: boolean;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
readonly: boolean;
|
|
17
|
-
required: boolean;
|
|
18
|
-
/** Asterisco no label quando obrigatório; padrão `false` na `BaseFieldDirective`. */
|
|
19
|
-
showRequiredMark?: boolean;
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
/** Ícone Font Awesome à esquerda; use com `showPrefixIcon`. */
|
|
23
|
-
showPrefixIcon?: boolean;
|
|
24
|
-
prefixIcon?: string;
|
|
25
|
-
/** Alias de `prefixIcon`. */
|
|
26
|
-
iconLeft?: string;
|
|
27
|
-
clearable?: boolean;
|
|
28
|
-
clearAriaLabel?: string;
|
|
29
|
-
/** `true` = sugestões do navegador; padrão nos componentes é `false`. */
|
|
30
|
-
autocomplete?: boolean;
|
|
31
|
-
/** Skeleton no `app-base-field` enquanto dados externos carregam. */
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
/** Botão «…» no sufixo com menu de ações; padrão `false` na `BaseFieldDirective`. */
|
|
34
|
-
mostrarMenuContexto?: boolean;
|
|
35
|
-
/** Itens do menu do sufixo; só mostra o botão se a lista tiver entradas. */
|
|
36
|
-
contextMenuItems?: readonly MenuNodeItem<string>[];
|
|
37
|
-
/** `id` ARIA do menu do sufixo; por defeito `{id do campo}-ctx`. */
|
|
38
|
-
contextMenuId?: string;
|
|
39
|
-
/** Texto: limite de caracteres (padrão no componente). */
|
|
40
|
-
maxLength?: number;
|
|
41
|
-
/** Inteiro/decimal: valor máximo numérico (padrão no componente). */
|
|
42
|
-
max?: number;
|
|
43
|
-
/** Data: formatação com hh:mm e hora atual ao escolher no calendário. */
|
|
44
|
-
showTimeHours?: boolean;
|
|
45
|
-
/** Data: limite inferior do calendário. */
|
|
46
|
-
minDate?: Date | null;
|
|
47
|
-
/** Data: limite superior do calendário. */
|
|
48
|
-
maxDate?: Date | null;
|
|
49
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { FieldCommonInputs } from './field-common-inputs.model';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* Validação alinhada às máscaras dinâmicas CPF/CNPJ: só dígitos; 11 ou 14 completos.
|
|
4
|
-
* Vazio fica para `Validators.required`; com dígitos a menos devolve `maskIncomplete`.
|
|
5
|
-
*/
|
|
6
|
-
export declare function cpfCnpjMaskCompleteValidator(): ValidatorFn;
|
|
7
|
-
/**
|
|
8
|
-
* Telefone BR só dígitos (DDD + número): 10 fixo ou 11 celular, conforme {@link landline}.
|
|
9
|
-
* Usar com `app-phone-field` para que `FormControl.invalid` e ícones de grupo/aba coincidam com a UI.
|
|
10
|
-
*/
|
|
11
|
-
export declare function phoneBrMaskCompleteValidator(landline: boolean): ValidatorFn;
|
|
12
|
-
/**
|
|
13
|
-
* Máscara com número fixo de dígitos (valor do modelo só dígitos, como CEP/telefone).
|
|
14
|
-
* Valor vazio: `null` (delega em `Validators.required`); com dígitos a menos: `maskIncomplete`.
|
|
15
|
-
*/
|
|
16
|
-
export declare function fixedDigitsMaskCompleteValidator(expectedDigits: number): ValidatorFn;
|
|
17
|
-
/** CEP brasileiro (`app-cep-field`): 8 dígitos. Usar com `Validators.required`. */
|
|
18
|
-
export declare function cepMaskCompleteValidator(): ValidatorFn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Máscara com `#` como placeholder de um dígito (0–9); restantes caracteres são literais.
|
|
3
|
-
* Ex.: `#####-###` (CEP), `(##) #####-####` (celular BR 11 dígitos).
|
|
4
|
-
*/
|
|
5
|
-
/** Remove tudo que não é dígito. */
|
|
6
|
-
export declare function stripToDigits(s: string): string;
|
|
7
|
-
/** Conta quantos `#` existem no padrão (= número máximo de dígitos). */
|
|
8
|
-
export declare function maskDigitCount(pattern: string): number;
|
|
9
|
-
/**
|
|
10
|
-
* Formata apenas dígitos segundo o padrão. Não adiciona literais à direita sem dígitos
|
|
11
|
-
* correspondentes (ex.: não fica "12345-" com 5 dígitos).
|
|
12
|
-
*/
|
|
13
|
-
export declare function formatMaskDigits(digitsOnly: string, pattern: string): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MaskedTextFieldBase } from '../_base/masked-text-field.base';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** CEP brasileiro (8 dígitos). Valor do modelo: só dígitos, ex. `01310100`. */
|
|
4
|
-
export declare class CepFieldComponent extends MaskedTextFieldBase {
|
|
5
|
-
get hostInvalidClass(): boolean;
|
|
6
|
-
maskPattern: string;
|
|
7
|
-
onNativeInput(event: Event): void;
|
|
8
|
-
onBlur(): void;
|
|
9
|
-
onClear(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CepFieldComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CepFieldComponent, "app-cep-field", never, { "maskPattern": { "alias": "maskPattern"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MaskedTextFieldBase } from '../_base/masked-text-field.base';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* CPF (11 dígitos) ou CNPJ (14 dígitos) no mesmo campo.
|
|
5
|
-
* Até 11 dígitos: `###.###.###-##`; a partir do 12º: `##.###.###/####-##`.
|
|
6
|
-
* Valor do modelo: só dígitos, ex. `12345678901` ou `12345678000190`.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CpfCnpjFieldComponent extends MaskedTextFieldBase {
|
|
9
|
-
private static readonly CPF_MASK;
|
|
10
|
-
private static readonly CNPJ_MASK;
|
|
11
|
-
get hostInvalidClass(): boolean;
|
|
12
|
-
/** Ignorado: a máscara é definida dinamicamente por {@link maskPatternFromDigits}. */
|
|
13
|
-
maskPattern: string;
|
|
14
|
-
protected maskPatternFromDigits(digitsOnly: string): string;
|
|
15
|
-
onNativeInput(event: Event): void;
|
|
16
|
-
onBlur(): void;
|
|
17
|
-
onClear(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CpfCnpjFieldComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpfCnpjFieldComponent, "app-cpf-cnpj-field", never, { "maskPattern": { "alias": "maskPattern"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
20
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { MatDatepicker } from '@angular/material/datepicker';
|
|
3
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DateFieldComponent extends NgControlFieldDirective<string | null> implements OnChanges {
|
|
6
|
-
picker?: MatDatepicker<Date>;
|
|
7
|
-
/**
|
|
8
|
-
* Se `true`, a formatação inclui hh:mm (24h) e, ao escolher no calendário,
|
|
9
|
-
* usa a hora actual local no momento da selecção.
|
|
10
|
-
*/
|
|
11
|
-
showTimeHours: boolean;
|
|
12
|
-
minDate: Date | null;
|
|
13
|
-
maxDate: Date | null;
|
|
14
|
-
innerDate: Date | null;
|
|
15
|
-
filledUi: boolean;
|
|
16
|
-
/** Texto da data no span (evita getter no template). */
|
|
17
|
-
displayTextUi: string;
|
|
18
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
-
private refreshFilledUi;
|
|
20
|
-
private refreshDateDisplay;
|
|
21
|
-
protected afterWriteValue(value: string | null): void;
|
|
22
|
-
openPicker(): void;
|
|
23
|
-
onGhostInputKeydown(ev: KeyboardEvent): void;
|
|
24
|
-
onPickedDate(next: Date | null): void;
|
|
25
|
-
onBlur(): void;
|
|
26
|
-
onClear(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateFieldComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateFieldComponent, "app-date-field", never, { "showTimeHours": { "alias": "showTimeHours"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
29
|
-
static ngAcceptInputType_showTimeHours: unknown;
|
|
30
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DecimalFieldComponent extends NgControlFieldDirective<number | null> {
|
|
4
|
-
/** Valor máximo permitido (inclusive), com até 2 casas decimais. */
|
|
5
|
-
max: number;
|
|
6
|
-
inputText: string;
|
|
7
|
-
filledUi: boolean;
|
|
8
|
-
private refreshFilledUi;
|
|
9
|
-
protected afterWriteValue(value: number | null): void;
|
|
10
|
-
onBeforeInput(event: Event): void;
|
|
11
|
-
onNativeInput(event: Event): void;
|
|
12
|
-
onBlur(): void;
|
|
13
|
-
onClear(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalFieldComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DecimalFieldComponent, "app-decimal-field", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
16
|
-
static ngAcceptInputType_max: unknown;
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { BaseFieldDirective } from './_base/base-field.directive';
|
|
2
|
-
export { BaseFieldComponent } from './_base/base-field.component';
|
|
3
|
-
export { NgControlFieldDirective } from './_base/ng-control-field.directive';
|
|
4
|
-
export { TextFieldComponent } from './text-field/text-field.component';
|
|
5
|
-
export { PasswordFieldComponent } from './password-field/password-field.component';
|
|
6
|
-
export { TextareaFieldComponent } from './textarea-field/textarea-field.component';
|
|
7
|
-
export { IntegerFieldComponent } from './integer-field/integer-field.component';
|
|
8
|
-
export { DecimalFieldComponent } from './decimal-field/decimal-field.component';
|
|
9
|
-
export { DateFieldComponent } from './date-field/date-field.component';
|
|
10
|
-
export { InputMaskFieldComponent } from './input-mask-field/input-mask-field.component';
|
|
11
|
-
export { CepFieldComponent } from './cep-field/cep-field.component';
|
|
12
|
-
export { PhoneFieldComponent } from './phone-field/phone-field.component';
|
|
13
|
-
export { CpfCnpjFieldComponent } from './cpf-cnpj-field/cpf-cnpj-field.component';
|
|
14
|
-
export { MaskedTextFieldBase } from './_base/masked-text-field.base';
|
|
15
|
-
export { stripToDigits, maskDigitCount, formatMaskDigits, } from './_utils/mask-format.utils';
|
|
16
|
-
export { cepMaskCompleteValidator, cpfCnpjMaskCompleteValidator, fixedDigitsMaskCompleteValidator, phoneBrMaskCompleteValidator, } from './_utils/mask-complete.validators';
|
|
17
|
-
export type { FieldCommonInputs } from './_models';
|
|
18
|
-
export { BR_ESTADOS_NOME_SIGLA, mapEstadosToOptions, } from '../../_utils/estados-br.data';
|
|
19
|
-
export { sanitizeIntegerDigits, parseIntegerString, } from '../../_utils/integer-value.utils';
|
|
20
|
-
export { formatIntegerThousandsBr, semanticIntegerDigitCountLeft, caretIndexFromIntegerDigitCount, } from '../../_utils/integer-br.utils';
|
|
21
|
-
export { sanitizeDecimalBrInput, parseDecimalBr, formatDecimalBr, extractDecimalBrParts, buildDecimalBrDisplay, buildDecimalBrParseString, semanticCaretAt, caretIndexFromSemantic, } from '../../_utils/decimal-br.utils';
|
|
22
|
-
export { formatDateTimePtBr, formatUiFieldDateValue, parseUiFieldDateValue, normalizeFormDateValue, applyPickedCalendarDate, } from '../../_utils/date-pt-br.utils';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MaskedTextFieldBase } from '../_base/masked-text-field.base';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Campo de texto com máscara configurável (`#` = dígito).
|
|
5
|
-
* Valor do formulário: apenas dígitos, sem máscara.
|
|
6
|
-
*/
|
|
7
|
-
export declare class InputMaskFieldComponent extends MaskedTextFieldBase {
|
|
8
|
-
get hostInvalidClass(): boolean;
|
|
9
|
-
/** Ex.: `#####-###`, `(##) #####-####`. */
|
|
10
|
-
maskPattern: string;
|
|
11
|
-
onNativeInput(event: Event): void;
|
|
12
|
-
onBlur(): void;
|
|
13
|
-
onClear(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskFieldComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMaskFieldComponent, "app-input-mask-field", never, { "maskPattern": { "alias": "maskPattern"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IntegerFieldComponent extends NgControlFieldDirective<number | null> {
|
|
4
|
-
/** Valor máximo permitido (inclusive). */
|
|
5
|
-
max: number;
|
|
6
|
-
inputText: string;
|
|
7
|
-
filledUi: boolean;
|
|
8
|
-
private refreshFilledUi;
|
|
9
|
-
protected afterWriteValue(value: number | null): void;
|
|
10
|
-
onBeforeInput(event: Event): void;
|
|
11
|
-
onNativeInput(event: Event): void;
|
|
12
|
-
onBlur(): void;
|
|
13
|
-
onClear(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IntegerFieldComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IntegerFieldComponent, "app-integer-field", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
16
|
-
static ngAcceptInputType_max: unknown;
|
|
17
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PasswordFieldComponent extends NgControlFieldDirective<string | null> implements OnInit {
|
|
5
|
-
get hostInvalidClass(): boolean;
|
|
6
|
-
/** Por defeito `false`: o botão de limpar compete com o toggle de visibilidade. */
|
|
7
|
-
clearable: boolean;
|
|
8
|
-
maxLength: number;
|
|
9
|
-
/** Atributo HTML `autocomplete` (senha actual vs. nova senha). */
|
|
10
|
-
autoComplete: 'off' | 'current-password' | 'new-password';
|
|
11
|
-
/** `false` = caracteres ocultos (ícone olho aberto para revelar). */
|
|
12
|
-
passwordVisible: boolean;
|
|
13
|
-
inputText: string;
|
|
14
|
-
filledUi: boolean;
|
|
15
|
-
inputTypeUi: 'password' | 'text';
|
|
16
|
-
toggleAriaLabelUi: string;
|
|
17
|
-
toggleIconClassUi: string;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
private refreshFilledUi;
|
|
20
|
-
private refreshPasswordToggleUi;
|
|
21
|
-
protected afterWriteValue(value: string | null): void;
|
|
22
|
-
onNativeInput(event: Event): void;
|
|
23
|
-
onBlur(): void;
|
|
24
|
-
onClear(): void;
|
|
25
|
-
togglePasswordVisible(ev: Event): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordFieldComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordFieldComponent, "app-password-field", never, { "clearable": { "alias": "clearable"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
28
|
-
static ngAcceptInputType_clearable: unknown;
|
|
29
|
-
static ngAcceptInputType_maxLength: unknown;
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MaskedTextFieldBase } from '../_base/masked-text-field.base';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Telefone BR: celular 11 dígitos `(##) #####-####` ou fixo 10 `(##) ####-####`.
|
|
5
|
-
* Valor do modelo: só dígitos (DDD + número), ex. `11999999999` ou `1133334444`.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PhoneFieldComponent extends MaskedTextFieldBase {
|
|
8
|
-
get hostInvalidClass(): boolean;
|
|
9
|
-
/** Se `true`, máscara de fixo (10 dígitos). Se `false`, celular (11). */
|
|
10
|
-
landline: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Máscara manual (com `#`). Se vazio, usa celular ou fixo conforme {@link landline}.
|
|
13
|
-
*/
|
|
14
|
-
maskPattern: string;
|
|
15
|
-
protected get pattern(): string;
|
|
16
|
-
onNativeInput(event: Event): void;
|
|
17
|
-
onBlur(): void;
|
|
18
|
-
onClear(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneFieldComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneFieldComponent, "app-phone-field", never, { "landline": { "alias": "landline"; "required": false; }; "maskPattern": { "alias": "maskPattern"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
21
|
-
static ngAcceptInputType_landline: unknown;
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TextFieldComponent extends NgControlFieldDirective<string | null> {
|
|
4
|
-
/** Limite de caracteres no valor do campo. */
|
|
5
|
-
maxLength: number;
|
|
6
|
-
inputText: string;
|
|
7
|
-
filledUi: boolean;
|
|
8
|
-
private refreshFilledUi;
|
|
9
|
-
protected afterWriteValue(value: string | null): void;
|
|
10
|
-
onNativeInput(event: Event): void;
|
|
11
|
-
onBlur(): void;
|
|
12
|
-
onClear(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "app-text-field", never, { "maxLength": { "alias": "maxLength"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
15
|
-
static ngAcceptInputType_maxLength: unknown;
|
|
16
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgControlFieldDirective } from '../_base/ng-control-field.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TextareaFieldComponent extends NgControlFieldDirective<string | null> implements OnChanges, OnInit {
|
|
5
|
-
get hostInvalidClass(): boolean;
|
|
6
|
-
/** Limite de caracteres no valor do campo. `0` = sem limite explícito no DOM. */
|
|
7
|
-
maxLength: number;
|
|
8
|
-
rows: number;
|
|
9
|
-
/**
|
|
10
|
-
* Limite de altura em linhas (mesma lógica de `rows`). Por omissão igual a {@link rows}.
|
|
11
|
-
* O campo não é redimensionável pelo usuário (`resize: none`).
|
|
12
|
-
*/
|
|
13
|
-
maxResizeRows: number;
|
|
14
|
-
inputText: string;
|
|
15
|
-
filledUi: boolean;
|
|
16
|
-
/** Altura CSS (evita getter chamado a cada CD). */
|
|
17
|
-
textareaMaxHeightCss: string;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
-
private updateTextareaHeight;
|
|
21
|
-
private refreshFilledUi;
|
|
22
|
-
protected afterWriteValue(value: string | null): void;
|
|
23
|
-
onNativeInput(event: Event): void;
|
|
24
|
-
onBlur(): void;
|
|
25
|
-
onClear(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "app-textarea-field", never, { "maxLength": { "alias": "maxLength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxResizeRows": { "alias": "maxResizeRows"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
|
|
28
|
-
static ngAcceptInputType_maxLength: unknown;
|
|
29
|
-
static ngAcceptInputType_rows: unknown;
|
|
30
|
-
static ngAcceptInputType_maxResizeRows: unknown;
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** Espaçamento horizontal/vertical entre itens da linha. */
|
|
2
|
-
export declare enum FormRowGap {
|
|
3
|
-
Xs = "xs",
|
|
4
|
-
Sm = "sm",
|
|
5
|
-
Md = "md",
|
|
6
|
-
Lg = "lg"
|
|
7
|
-
}
|
|
8
|
-
/** Alinhamento no eixo cruzado (itens da linha). */
|
|
9
|
-
export declare enum FormRowAlign {
|
|
10
|
-
Start = "start",
|
|
11
|
-
Center = "center",
|
|
12
|
-
End = "end",
|
|
13
|
-
Stretch = "stretch"
|
|
14
|
-
}
|
|
15
|
-
/** Distribuição no eixo principal. */
|
|
16
|
-
export declare enum FormRowJustify {
|
|
17
|
-
Start = "start",
|
|
18
|
-
Center = "center",
|
|
19
|
-
End = "end",
|
|
20
|
-
Between = "between"
|
|
21
|
-
}
|
|
22
|
-
/** Variante visual do grupo. */
|
|
23
|
-
export declare enum FormGroupVariant {
|
|
24
|
-
Default = "default",
|
|
25
|
-
Outlined = "outlined",
|
|
26
|
-
Subtle = "subtle"
|
|
27
|
-
}
|
|
28
|
-
/** Alinhamento horizontal no eixo principal (`justify-content`) em `app-layout-stack`. */
|
|
29
|
-
export declare enum LayoutStackAlign {
|
|
30
|
-
Start = "start",
|
|
31
|
-
Center = "center",
|
|
32
|
-
End = "end",
|
|
33
|
-
SpaceBetween = "space-between"
|
|
34
|
-
}
|
|
35
|
-
/** Alinhamento em `app-form-actions` (barra de ações de formulário). */
|
|
36
|
-
export declare enum FormActionsAlign {
|
|
37
|
-
Start = "start",
|
|
38
|
-
Center = "center",
|
|
39
|
-
End = "end",
|
|
40
|
-
SpaceBetween = "space-between"
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FormTabsVariant = 'default' | 'pill';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { LayoutStackAlign, FormActionsAlign, FormGroupVariant, FormRowAlign, FormRowGap, FormRowJustify, } from './form-layout.model';
|
|
2
|
-
export type { ValidationSummaryItem, ValidationSummaryVariant, } from './validation-summary.model';
|
|
3
|
-
export type { FormTabsVariant } from './form-tabs.model';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Variante visual do resumo de validação. */
|
|
2
|
-
export type ValidationSummaryVariant = 'error' | 'warning' | 'info';
|
|
3
|
-
/** Item do resumo: mensagem e destino opcional para foco / scroll / destaque. */
|
|
4
|
-
export interface ValidationSummaryItem {
|
|
5
|
-
message: string;
|
|
6
|
-
/** `id` HTML do controle focável (ex.: o mesmo `[id]` dos campos da lib). */
|
|
7
|
-
fieldId?: string;
|
|
8
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FormActionsAlign, LayoutStackAlign } from '../_models/form-layout.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** Barra de ações de formulário (Salvar, Cancelar, Adicionar, …). Projeção de conteúdo. */
|
|
4
|
-
export declare class FormActionsComponent {
|
|
5
|
-
align: FormActionsAlign;
|
|
6
|
-
stackOnMobile: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Por omissão `true`: os botões repartem a largura da faixa (um botão ≈ 100%; vários repartem por igual).
|
|
9
|
-
* Use `false` para faixa compacta (largura intrínseca, ex.: várias ações alinhadas à direita).
|
|
10
|
-
*/
|
|
11
|
-
fill: boolean;
|
|
12
|
-
divider: boolean;
|
|
13
|
-
/** `FormActionsAlign` e `LayoutStackAlign` partilham os mesmos valores; delegação ao `app-layout-stack`. */
|
|
14
|
-
get layoutAlign(): LayoutStackAlign;
|
|
15
|
-
get hostClass(): string;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormActionsComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormActionsComponent, "app-form-actions", never, { "align": { "alias": "align"; "required": false; }; "stackOnMobile": { "alias": "stackOnMobile"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
18
|
-
static ngAcceptInputType_stackOnMobile: unknown;
|
|
19
|
-
static ngAcceptInputType_fill: unknown;
|
|
20
|
-
static ngAcceptInputType_divider: unknown;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Coluna no sistema de 12 trilhos da {@link FormRowComponent}.
|
|
4
|
-
* Em viewports menores que `sm`, usa `xs` (por defeito largura total).
|
|
5
|
-
*/
|
|
6
|
-
export declare class FormColComponent {
|
|
7
|
-
/** Colunas ocupadas em < `sm` (por defeito 12 = linha inteira). */
|
|
8
|
-
xs: number;
|
|
9
|
-
sm?: number;
|
|
10
|
-
md?: number;
|
|
11
|
-
lg?: number;
|
|
12
|
-
xl?: number;
|
|
13
|
-
order?: number;
|
|
14
|
-
/** Quando `true`, a coluna pode crescer para ocupar espaço livre na linha (flex futuro / composição). */
|
|
15
|
-
grow: boolean;
|
|
16
|
-
get hostClass(): string;
|
|
17
|
-
get hostVars(): string;
|
|
18
|
-
private clampSpan;
|
|
19
|
-
private normalizeOptionalSpan;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormColComponent, never>;
|
|
21
|
-
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>;
|
|
22
|
-
static ngAcceptInputType_xs: unknown;
|
|
23
|
-
static ngAcceptInputType_order: unknown;
|
|
24
|
-
static ngAcceptInputType_grow: unknown;
|
|
25
|
-
}
|