structra-ui 0.1.94 → 0.1.96
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 +40 -11
- package/fesm2022/structra-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/structra-ui.d.ts +14 -5
package/package.json
CHANGED
package/types/structra-ui.d.ts
CHANGED
|
@@ -163,6 +163,7 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
|
|
|
163
163
|
protected readonly cdr: ChangeDetectorRef;
|
|
164
164
|
protected readonly injector: Injector;
|
|
165
165
|
protected readonly destroyRef: DestroyRef;
|
|
166
|
+
private readonly hostElementRef;
|
|
166
167
|
private formGroupDir;
|
|
167
168
|
private ngFormDir;
|
|
168
169
|
/** Identificador estável para a11y quando `id` não é informado */
|
|
@@ -208,6 +209,7 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
|
|
|
208
209
|
private onChange;
|
|
209
210
|
private onTouched;
|
|
210
211
|
get controlId(): string;
|
|
212
|
+
protected get autoIdPrefix(): string;
|
|
211
213
|
/** Valor do atributo HTML `autocomplete` derivado de {@link autocomplete}. */
|
|
212
214
|
get autocompleteAttr(): 'on' | 'off';
|
|
213
215
|
/**
|
|
@@ -1285,6 +1287,7 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
|
|
|
1285
1287
|
private readonly cdr;
|
|
1286
1288
|
private readonly confirmDialog;
|
|
1287
1289
|
label?: string | undefined;
|
|
1290
|
+
id: string;
|
|
1288
1291
|
hint?: string | undefined;
|
|
1289
1292
|
accept?: string | undefined;
|
|
1290
1293
|
/** Se definido, mostra-se no drop zone em vez do texto formatado a partir de `accept`. */
|
|
@@ -1318,7 +1321,8 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
|
|
|
1318
1321
|
*/
|
|
1319
1322
|
readonly fileItemClick: EventEmitter<File>;
|
|
1320
1323
|
private fileInputRef?;
|
|
1321
|
-
readonly
|
|
1324
|
+
private readonly autoId;
|
|
1325
|
+
get fieldId(): string;
|
|
1322
1326
|
isDragging: boolean;
|
|
1323
1327
|
hasHover: boolean;
|
|
1324
1328
|
private internalError;
|
|
@@ -1369,7 +1373,7 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
|
|
|
1369
1373
|
private syncFilePreviewObjectUrls;
|
|
1370
1374
|
private releaseAllFilePreviewObjectUrls;
|
|
1371
1375
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldComponent, never>;
|
|
1372
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "app-file-upload-field", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "fileItemRowClickable": { "alias": "fileItemRowClickable"; "required": false; }; "showFileDownload": { "alias": "showFileDownload"; "required": false; }; }, { "valueChange": "valueChange"; "fileRejected": "fileRejected"; "fileItemClick": "fileItemClick"; }, never, never, true, never>;
|
|
1376
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "app-file-upload-field", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "fileItemRowClickable": { "alias": "fileItemRowClickable"; "required": false; }; "showFileDownload": { "alias": "showFileDownload"; "required": false; }; }, { "valueChange": "valueChange"; "fileRejected": "fileRejected"; "fileItemClick": "fileItemClick"; }, never, never, true, never>;
|
|
1373
1377
|
static ngAcceptInputType_maxSizeMb: unknown;
|
|
1374
1378
|
static ngAcceptInputType_maxFiles: unknown;
|
|
1375
1379
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -1449,6 +1453,11 @@ declare class ImagePreviewPanelComponent implements OnChanges, OnDestroy {
|
|
|
1449
1453
|
onTrocar(): void;
|
|
1450
1454
|
onRemover(): void;
|
|
1451
1455
|
get showImage(): boolean;
|
|
1456
|
+
/**
|
|
1457
|
+
* Mantém o `<img>` montado (para disparar load/error) mesmo quando remoto ainda não terminou de carregar.
|
|
1458
|
+
* Evita flick de ações e permite cair no fallback amarelo quando a URL falha.
|
|
1459
|
+
*/
|
|
1460
|
+
get shouldRenderImage(): boolean;
|
|
1452
1461
|
get showPdf(): boolean;
|
|
1453
1462
|
get showPreviewFallback(): boolean;
|
|
1454
1463
|
get showEmpty(): boolean;
|
|
@@ -1815,13 +1824,13 @@ declare class FormSectionComponent {
|
|
|
1815
1824
|
titulo: string;
|
|
1816
1825
|
subtitulo: string;
|
|
1817
1826
|
dense: boolean;
|
|
1818
|
-
|
|
1827
|
+
divider: boolean;
|
|
1819
1828
|
get hostClass(): string;
|
|
1820
1829
|
get showHeader(): boolean;
|
|
1821
1830
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
|
|
1822
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "titulo": { "alias": "titulo"; "required": true; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "
|
|
1831
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "titulo": { "alias": "titulo"; "required": true; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1823
1832
|
static ngAcceptInputType_dense: unknown;
|
|
1824
|
-
static
|
|
1833
|
+
static ngAcceptInputType_divider: unknown;
|
|
1825
1834
|
}
|
|
1826
1835
|
|
|
1827
1836
|
/** Variante visual do resumo de validação. */
|