@seniorsistemas/tmsx-angular-components 0.0.0-feat-migracao-angular-18-014c0ad1
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/commons/field-type/field-type.d.ts +76 -0
- package/commons/field-type/index.d.ts +1 -0
- package/commons/index.d.ts +1 -0
- package/components/grid-editable-nested/grid-editable-nested.component.d.ts +81 -0
- package/components/grid-editable-nested/grid-editable-nested.module.d.ts +33 -0
- package/components/grid-editable-nested/grid.interface.d.ts +43 -0
- package/components/grid-editable-nested/index.d.ts +2 -0
- package/components/index.d.ts +2 -0
- package/components/painel-processamento/index.d.ts +2 -0
- package/components/painel-processamento/painel-processamento.component.d.ts +43 -0
- package/components/painel-processamento/painel-processamento.module.d.ts +15 -0
- package/components/painel-processamento/processamento.d.ts +24 -0
- package/esm2022/commons/field-type/field-type.mjs +76 -0
- package/esm2022/commons/field-type/index.mjs +2 -0
- package/esm2022/commons/index.mjs +2 -0
- package/esm2022/components/grid-editable-nested/grid-editable-nested.component.mjs +261 -0
- package/esm2022/components/grid-editable-nested/grid-editable-nested.module.mjs +133 -0
- package/esm2022/components/grid-editable-nested/grid.interface.mjs +9 -0
- package/esm2022/components/grid-editable-nested/index.mjs +3 -0
- package/esm2022/components/index.mjs +3 -0
- package/esm2022/components/painel-processamento/index.mjs +3 -0
- package/esm2022/components/painel-processamento/painel-processamento.component.mjs +226 -0
- package/esm2022/components/painel-processamento/painel-processamento.module.mjs +53 -0
- package/esm2022/components/painel-processamento/processamento.mjs +14 -0
- package/esm2022/locale/fallback.mjs +39 -0
- package/esm2022/public-api.mjs +6 -0
- package/esm2022/seniorsistemas-tmsx-angular-components.mjs +5 -0
- package/esm2022/tmsx-angular-components.module.mjs +24 -0
- package/esm2022/utils/index.mjs +2 -0
- package/esm2022/utils/services/utils.service.mjs +192 -0
- package/fesm2022/seniorsistemas-tmsx-angular-components.mjs +992 -0
- package/fesm2022/seniorsistemas-tmsx-angular-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/locale/fallback.d.ts +1 -0
- package/package.json +21 -0
- package/public-api.d.ts +5 -0
- package/tmsx-angular-components.module.d.ts +13 -0
- package/utils/index.d.ts +1 -0
- package/utils/services/utils.service.d.ts +35 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constante que mapeia os tipos de campo disponíveis no DynamicForm do
|
|
3
|
+
* `@seniorsistemas/angular-components`. Substitui o antigo `FieldType` enum
|
|
4
|
+
* que foi removido na v19 em favor de string literals.
|
|
5
|
+
*
|
|
6
|
+
* Uso:
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { FieldType } from '@tmsx/angular-components';
|
|
9
|
+
*
|
|
10
|
+
* { type: FieldType.String, name: 'nome', ... }
|
|
11
|
+
* { type: FieldType.Enum, name: 'status', ... }
|
|
12
|
+
* { type: FieldType.Lookup, name: 'cidade', ... }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const FieldType: {
|
|
16
|
+
/** Campo de texto livre padrão. */
|
|
17
|
+
readonly String: "string";
|
|
18
|
+
/** Campo de texto tratado como dado binário (ex: base64). */
|
|
19
|
+
readonly Binary: "binary";
|
|
20
|
+
/** Campo de seleção (dropdown/select) com lista de opções. */
|
|
21
|
+
readonly Enum: "enum";
|
|
22
|
+
/** Campo numérico inteiro (usa NumberInput). */
|
|
23
|
+
readonly Integer: "integer";
|
|
24
|
+
/** Campo numérico genérico com grande precisão (usa BignumberInput). */
|
|
25
|
+
readonly Number: "number";
|
|
26
|
+
/** Campo numérico com casas decimais (usa BignumberInput). */
|
|
27
|
+
readonly Double: "double";
|
|
28
|
+
/** @deprecated Use `Number` ou `Double` com addon. Campo numérico legado. */
|
|
29
|
+
readonly LegacyNumber: "legacyNumber";
|
|
30
|
+
/** @deprecated Use `Number` ou `Double` com addon. Campo monetário com símbolo de moeda. */
|
|
31
|
+
readonly Money: "money";
|
|
32
|
+
/** Campo booleano exibido como radio buttons (Sim/Não). */
|
|
33
|
+
readonly Boolean: "boolean";
|
|
34
|
+
/** Campo booleano exibido como toggle switch. */
|
|
35
|
+
readonly BooleanSwitch: "booleanSwitch";
|
|
36
|
+
/** Campo de data apenas (dia/mês/ano). */
|
|
37
|
+
readonly Date: "date";
|
|
38
|
+
/** Campo de data e hora com timezone UTC. */
|
|
39
|
+
readonly DateTime: "dateTime";
|
|
40
|
+
/** Campo de data e hora sem timezone (local). */
|
|
41
|
+
readonly LocalDateTime: "localDateTime";
|
|
42
|
+
/** Campo de hora apenas (hora:minuto:segundo). */
|
|
43
|
+
readonly Time: "time";
|
|
44
|
+
/** Campo de pesquisa avançada com autocompletar e diálogo de busca. */
|
|
45
|
+
readonly Lookup: "lookup";
|
|
46
|
+
/** Campo de autocompletar simples com sugestões via Observable. */
|
|
47
|
+
readonly Autocomplete: "autocomplete";
|
|
48
|
+
/** Campo de seleção única com radio buttons. */
|
|
49
|
+
readonly RadioButton: "radioButton";
|
|
50
|
+
/** Campo de múltipla escolha com checkboxes. */
|
|
51
|
+
readonly Checkbox: "checkbox";
|
|
52
|
+
/** Campo de entrada de múltiplas tags/chips. */
|
|
53
|
+
readonly Chips: "chips";
|
|
54
|
+
/** Campo de área de texto multilinha. */
|
|
55
|
+
readonly TextArea: "textArea";
|
|
56
|
+
/** Campo de área de texto com geração de conteúdo via IA. */
|
|
57
|
+
readonly ContentGenerator: "contentGenerator";
|
|
58
|
+
/** @deprecated Use `ContentGenerator`. */
|
|
59
|
+
readonly TextAreaIA: "textAreaIA";
|
|
60
|
+
/** Campo de upload de arquivos binários. */
|
|
61
|
+
readonly Blob: "blob";
|
|
62
|
+
/** Botão renderizado como campo do formulário. */
|
|
63
|
+
readonly Button: "button";
|
|
64
|
+
/** Campo de senha com indicador de força. */
|
|
65
|
+
readonly Password: "password";
|
|
66
|
+
/** Campo de foto de perfil com recorte. */
|
|
67
|
+
readonly ProfilePicture: "profilePicture";
|
|
68
|
+
/** Campo de controle deslizante (slider). */
|
|
69
|
+
readonly Slider: "slider";
|
|
70
|
+
/** Campo de avaliação com estrelas. */
|
|
71
|
+
readonly StarRating: "starRating";
|
|
72
|
+
/** Campo de seleção de país com entrada de telefone. */
|
|
73
|
+
readonly CountryPhonePicker: "countryPhonePicker";
|
|
74
|
+
};
|
|
75
|
+
/** Tipo union com todos os valores possíveis de FieldType. */
|
|
76
|
+
export type FieldTypeValue = (typeof FieldType)[keyof typeof FieldType];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldType, FieldTypeValue } from './field-type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldType, FieldTypeValue } from './field-type/index';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { HotkeysService } from 'angular2-hotkeys';
|
|
4
|
+
import { SortMeta } from 'primeng/api';
|
|
5
|
+
import { Table, TableLazyLoadEvent } from 'primeng/table';
|
|
6
|
+
import { UtilsService } from '../../utils/services/utils.service';
|
|
7
|
+
import { FrozenColumn, GridConfig } from './grid.interface';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class GridEditableNestedComponent implements OnDestroy, OnInit, OnChanges {
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly translate;
|
|
12
|
+
private readonly utils;
|
|
13
|
+
private readonly hotkeysService;
|
|
14
|
+
config: GridConfig;
|
|
15
|
+
nestedFunction: (listParams: ListParams, rowData: any) => Promise<void>;
|
|
16
|
+
openDetails: EventEmitter<any>;
|
|
17
|
+
paging: EventEmitter<any>;
|
|
18
|
+
delete: EventEmitter<any>;
|
|
19
|
+
save: EventEmitter<any>;
|
|
20
|
+
add: EventEmitter<any>;
|
|
21
|
+
table: Table;
|
|
22
|
+
clonedData: Record<string, any>;
|
|
23
|
+
gridLoading: boolean;
|
|
24
|
+
editing: boolean;
|
|
25
|
+
lazy: boolean;
|
|
26
|
+
deleteEnabled: boolean;
|
|
27
|
+
editEnabled: boolean;
|
|
28
|
+
addEnabled: boolean;
|
|
29
|
+
detailsEnabled: boolean;
|
|
30
|
+
calendarTooltipText: string;
|
|
31
|
+
currentListParams: ListParams;
|
|
32
|
+
gridData: any[];
|
|
33
|
+
gridColumns: any[];
|
|
34
|
+
gridTotalRecords: number;
|
|
35
|
+
selected: any[];
|
|
36
|
+
nestedGridLoading: boolean;
|
|
37
|
+
frozenPosition: string;
|
|
38
|
+
frozenWidth: string;
|
|
39
|
+
frozenColumns: FrozenColumn[];
|
|
40
|
+
private readonly ngUnsubscribe;
|
|
41
|
+
constructor(changeDetectorRef: ChangeDetectorRef, translate: TranslateService, utils: UtilsService, hotkeysService: HotkeysService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
+
formatData(column: any, value: string): string;
|
|
45
|
+
private setGridData;
|
|
46
|
+
private calculateFrozenWidth;
|
|
47
|
+
getActions(data: any): any[];
|
|
48
|
+
updateGridData(event: TableLazyLoadEvent): void;
|
|
49
|
+
updateNestedGridData(event: TableLazyLoadEvent, rowData: any): Promise<void>;
|
|
50
|
+
onTab(event: KeyboardEvent): void;
|
|
51
|
+
getRowIndex(): number;
|
|
52
|
+
getPageSize(): number;
|
|
53
|
+
openRowDetails(id: string): void;
|
|
54
|
+
onDelete(id: string): void;
|
|
55
|
+
onAdd(): void;
|
|
56
|
+
ngOnDestroy(): void;
|
|
57
|
+
onEditSave(): void;
|
|
58
|
+
onEditCancel(): void;
|
|
59
|
+
initAllRowsEdit(): void;
|
|
60
|
+
saveAllRows(): void;
|
|
61
|
+
formatRowData(field: any): any;
|
|
62
|
+
filterOptions(event: any): any;
|
|
63
|
+
getSpanProp(obj: any, path: any, type?: string): string;
|
|
64
|
+
setHotkeys(): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridEditableNestedComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridEditableNestedComponent, "tmsx-grid-editable-nested", never, { "config": { "alias": "config"; "required": false; }; "nestedFunction": { "alias": "nestedFunction"; "required": false; }; }, { "openDetails": "openDetails"; "paging": "paging"; "delete": "delete"; "save": "save"; "add": "add"; }, never, never, false, never>;
|
|
67
|
+
}
|
|
68
|
+
export interface ListParams {
|
|
69
|
+
page?: number;
|
|
70
|
+
size?: number;
|
|
71
|
+
sort?: SortMeta[];
|
|
72
|
+
filterQuery?: string;
|
|
73
|
+
displayFields?: string[];
|
|
74
|
+
}
|
|
75
|
+
export interface BodyParams {
|
|
76
|
+
offset?: number;
|
|
77
|
+
size?: number;
|
|
78
|
+
orderBy?: string;
|
|
79
|
+
filter?: string;
|
|
80
|
+
displayfields?: string;
|
|
81
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./grid-editable-nested.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@seniorsistemas/angular-components/locale";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "@seniorsistemas/angular-components/button";
|
|
7
|
+
import * as i6 from "@seniorsistemas/angular-components/table";
|
|
8
|
+
import * as i7 from "@seniorsistemas/angular-components/tooltip";
|
|
9
|
+
import * as i8 from "@seniorsistemas/angular-components/loading-state";
|
|
10
|
+
import * as i9 from "@seniorsistemas/angular-components/number-input";
|
|
11
|
+
import * as i10 from "@seniorsistemas/angular-components/breadcrumb";
|
|
12
|
+
import * as i11 from "@seniorsistemas/angular-components/control-errors";
|
|
13
|
+
import * as i12 from "@seniorsistemas/angular-components/custom-fields";
|
|
14
|
+
import * as i13 from "@seniorsistemas/angular-components/dynamic-form";
|
|
15
|
+
import * as i14 from "@seniorsistemas/angular-components/empty-state";
|
|
16
|
+
import * as i15 from "@seniorsistemas/angular-components/token-list";
|
|
17
|
+
import * as i16 from "primeng/toast";
|
|
18
|
+
import * as i17 from "primeng/table";
|
|
19
|
+
import * as i18 from "primeng/tooltip";
|
|
20
|
+
import * as i19 from "primeng/panel";
|
|
21
|
+
import * as i20 from "primeng/inputtext";
|
|
22
|
+
import * as i21 from "primeng/confirmdialog";
|
|
23
|
+
import * as i22 from "primeng/datepicker";
|
|
24
|
+
import * as i23 from "primeng/dropdown";
|
|
25
|
+
import * as i24 from "primeng/api";
|
|
26
|
+
import * as i25 from "primeng/autocomplete";
|
|
27
|
+
import * as i26 from "primeng/checkbox";
|
|
28
|
+
import * as i27 from "@angular/forms";
|
|
29
|
+
export declare class GridEditableNestedModule {
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridEditableNestedModule, never>;
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GridEditableNestedModule, [typeof i1.GridEditableNestedComponent], [typeof i2.CommonModule, typeof i3.LocaleModule, typeof i4.TranslateModule, typeof i5.ButtonModule, typeof i6.TableModule, typeof i7.TooltipModule, typeof i8.LoadingStateModule, typeof i9.NumberInputModule, typeof i10.BreadcrumbModule, typeof i11.ControlErrorsModule, typeof i12.CustomFieldsModule, typeof i13.DynamicFormModule, typeof i14.EmptyStateModule, typeof i15.TokenListModule, typeof i16.ToastModule, typeof i17.TableModule, typeof i18.TooltipModule, typeof i19.PanelModule, typeof i20.InputTextModule, typeof i21.ConfirmDialogModule, typeof i22.DatePickerModule, typeof i23.DropdownModule, typeof i24.SharedModule, typeof i25.AutoCompleteModule, typeof i26.CheckboxModule, typeof i27.FormsModule, typeof i27.ReactiveFormsModule], [typeof i1.GridEditableNestedComponent]>;
|
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GridEditableNestedModule>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface GridConfig {
|
|
2
|
+
data: GridDataConfig[];
|
|
3
|
+
columns: GridColumn[];
|
|
4
|
+
nestedGridColumns?: GridColumn[];
|
|
5
|
+
size: number;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
frozenColumns?: FrozenColumn[];
|
|
8
|
+
frozenPosition?: string;
|
|
9
|
+
lazy?: boolean;
|
|
10
|
+
editing?: boolean;
|
|
11
|
+
editEnabled?: boolean;
|
|
12
|
+
addEnabled?: boolean;
|
|
13
|
+
deleteActionsEnabled?: boolean;
|
|
14
|
+
editActionsEnabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface GridColumn {
|
|
17
|
+
field: string;
|
|
18
|
+
header: string;
|
|
19
|
+
type: EnumType;
|
|
20
|
+
format?: string;
|
|
21
|
+
options?: any[];
|
|
22
|
+
sortable?: boolean;
|
|
23
|
+
width?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface FrozenColumn {
|
|
26
|
+
field: string;
|
|
27
|
+
header: string;
|
|
28
|
+
width: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GridDataConfig {
|
|
31
|
+
nestedGridData?: any[];
|
|
32
|
+
nestedGridColumns?: GridColumn[];
|
|
33
|
+
nestedGridTotalRecords?: number;
|
|
34
|
+
nestedGridLoading?: boolean;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}
|
|
37
|
+
export declare enum EnumType {
|
|
38
|
+
Input = "Input",
|
|
39
|
+
Date = "Date",
|
|
40
|
+
Autocomplete = "Autocomplete",
|
|
41
|
+
Text = "Text",
|
|
42
|
+
Decimal = "Decimal"
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Column } from '@seniorsistemas/angular-components/table';
|
|
4
|
+
import { EnumProcessamentoStatus, ProcessamentoGrid, ProcessamentoInput } from './processamento';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PainelProcessamentoComponent implements OnInit {
|
|
7
|
+
private readonly translate;
|
|
8
|
+
private static readonly GENERIC_ERR_KEY;
|
|
9
|
+
params: ProcessamentoInput;
|
|
10
|
+
processado: EventEmitter<any>;
|
|
11
|
+
concluido: EventEmitter<any>;
|
|
12
|
+
gridData: ProcessamentoGrid[];
|
|
13
|
+
gridColumns: Column[];
|
|
14
|
+
totalRecords: number;
|
|
15
|
+
successCount: number;
|
|
16
|
+
failedCount: number;
|
|
17
|
+
pendingCount: number;
|
|
18
|
+
successProgress: string;
|
|
19
|
+
failedProgress: string;
|
|
20
|
+
pendingProgress: string;
|
|
21
|
+
processingProgress: string;
|
|
22
|
+
sortField: string;
|
|
23
|
+
sortOrder: number;
|
|
24
|
+
constructor(translate: TranslateService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
initPanel(): void;
|
|
27
|
+
initProgressBar(): void;
|
|
28
|
+
initGrid(): void;
|
|
29
|
+
private getErrorMessage;
|
|
30
|
+
private get genericErrorMsg();
|
|
31
|
+
private updateRowSuccess;
|
|
32
|
+
private updateRowError;
|
|
33
|
+
private syncProcessRecord;
|
|
34
|
+
processAllRecordsWithPLimit(): Promise<any[]>;
|
|
35
|
+
private updateProgressBar;
|
|
36
|
+
updateRowStatus(row: any, status: EnumProcessamentoStatus, message?: string): void;
|
|
37
|
+
private sortGridData;
|
|
38
|
+
getData(rowData: any, field: string): any;
|
|
39
|
+
getClassStatus(rowData: any, field: string): string;
|
|
40
|
+
getGridColumn(): Column[];
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PainelProcessamentoComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PainelProcessamentoComponent, "tmsx-painel-processamento", never, { "params": { "alias": "params"; "required": false; }; }, { "processado": "processado"; "concluido": "concluido"; }, never, never, false, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./painel-processamento.component";
|
|
3
|
+
import * as i2 from "@seniorsistemas/angular-components/locale";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "@seniorsistemas/angular-components/tooltip";
|
|
6
|
+
import * as i5 from "primeng/table";
|
|
7
|
+
import * as i6 from "@seniorsistemas/angular-components/table";
|
|
8
|
+
import * as i7 from "@seniorsistemas/angular-components/button";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "primeng/panel";
|
|
11
|
+
export declare class PainelProcessamentoModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PainelProcessamentoModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PainelProcessamentoModule, [typeof i1.PainelProcessamentoComponent], [typeof i2.LocaleModule, typeof i3.TranslateModule, typeof i4.TooltipModule, typeof i5.TableModule, typeof i6.TableModule, typeof i7.ButtonModule, typeof i8.CommonModule, typeof i9.PanelModule], [typeof i1.PainelProcessamentoComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PainelProcessamentoModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export interface ProcessamentoInput {
|
|
3
|
+
quantidadeChamadasSimultaneas: number;
|
|
4
|
+
registros: ProcessamentoRegistro[];
|
|
5
|
+
titulo: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProcessamentoRegistro {
|
|
8
|
+
descricao: string;
|
|
9
|
+
apiEnvio: (data: object) => Observable<any>;
|
|
10
|
+
objEnvio: any;
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessamentoGrid {
|
|
13
|
+
registro: any;
|
|
14
|
+
label: string;
|
|
15
|
+
status: EnumProcessamentoStatus;
|
|
16
|
+
message?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare enum EnumProcessamentoStatus {
|
|
19
|
+
SUCCESS = "SUCCESS",
|
|
20
|
+
FAILED = "FAILED",
|
|
21
|
+
PENDING = "PENDING",
|
|
22
|
+
PROCESSING = "PROCESSING"
|
|
23
|
+
}
|
|
24
|
+
export declare const ENUM_PROCESSAMENTO_STATUS_TRANSLATION_MAP: Record<EnumProcessamentoStatus, string>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constante que mapeia os tipos de campo disponíveis no DynamicForm do
|
|
3
|
+
* `@seniorsistemas/angular-components`. Substitui o antigo `FieldType` enum
|
|
4
|
+
* que foi removido na v19 em favor de string literals.
|
|
5
|
+
*
|
|
6
|
+
* Uso:
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { FieldType } from '@tmsx/angular-components';
|
|
9
|
+
*
|
|
10
|
+
* { type: FieldType.String, name: 'nome', ... }
|
|
11
|
+
* { type: FieldType.Enum, name: 'status', ... }
|
|
12
|
+
* { type: FieldType.Lookup, name: 'cidade', ... }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
16
|
+
export const FieldType = {
|
|
17
|
+
/** Campo de texto livre padrão. */
|
|
18
|
+
String: 'string',
|
|
19
|
+
/** Campo de texto tratado como dado binário (ex: base64). */
|
|
20
|
+
Binary: 'binary',
|
|
21
|
+
/** Campo de seleção (dropdown/select) com lista de opções. */
|
|
22
|
+
Enum: 'enum',
|
|
23
|
+
/** Campo numérico inteiro (usa NumberInput). */
|
|
24
|
+
Integer: 'integer',
|
|
25
|
+
/** Campo numérico genérico com grande precisão (usa BignumberInput). */
|
|
26
|
+
Number: 'number',
|
|
27
|
+
/** Campo numérico com casas decimais (usa BignumberInput). */
|
|
28
|
+
Double: 'double',
|
|
29
|
+
/** @deprecated Use `Number` ou `Double` com addon. Campo numérico legado. */
|
|
30
|
+
LegacyNumber: 'legacyNumber',
|
|
31
|
+
/** @deprecated Use `Number` ou `Double` com addon. Campo monetário com símbolo de moeda. */
|
|
32
|
+
Money: 'money',
|
|
33
|
+
/** Campo booleano exibido como radio buttons (Sim/Não). */
|
|
34
|
+
Boolean: 'boolean',
|
|
35
|
+
/** Campo booleano exibido como toggle switch. */
|
|
36
|
+
BooleanSwitch: 'booleanSwitch',
|
|
37
|
+
/** Campo de data apenas (dia/mês/ano). */
|
|
38
|
+
Date: 'date',
|
|
39
|
+
/** Campo de data e hora com timezone UTC. */
|
|
40
|
+
DateTime: 'dateTime',
|
|
41
|
+
/** Campo de data e hora sem timezone (local). */
|
|
42
|
+
LocalDateTime: 'localDateTime',
|
|
43
|
+
/** Campo de hora apenas (hora:minuto:segundo). */
|
|
44
|
+
Time: 'time',
|
|
45
|
+
/** Campo de pesquisa avançada com autocompletar e diálogo de busca. */
|
|
46
|
+
Lookup: 'lookup',
|
|
47
|
+
/** Campo de autocompletar simples com sugestões via Observable. */
|
|
48
|
+
Autocomplete: 'autocomplete',
|
|
49
|
+
/** Campo de seleção única com radio buttons. */
|
|
50
|
+
RadioButton: 'radioButton',
|
|
51
|
+
/** Campo de múltipla escolha com checkboxes. */
|
|
52
|
+
Checkbox: 'checkbox',
|
|
53
|
+
/** Campo de entrada de múltiplas tags/chips. */
|
|
54
|
+
Chips: 'chips',
|
|
55
|
+
/** Campo de área de texto multilinha. */
|
|
56
|
+
TextArea: 'textArea',
|
|
57
|
+
/** Campo de área de texto com geração de conteúdo via IA. */
|
|
58
|
+
ContentGenerator: 'contentGenerator',
|
|
59
|
+
/** @deprecated Use `ContentGenerator`. */
|
|
60
|
+
TextAreaIA: 'textAreaIA',
|
|
61
|
+
/** Campo de upload de arquivos binários. */
|
|
62
|
+
Blob: 'blob',
|
|
63
|
+
/** Botão renderizado como campo do formulário. */
|
|
64
|
+
Button: 'button',
|
|
65
|
+
/** Campo de senha com indicador de força. */
|
|
66
|
+
Password: 'password',
|
|
67
|
+
/** Campo de foto de perfil com recorte. */
|
|
68
|
+
ProfilePicture: 'profilePicture',
|
|
69
|
+
/** Campo de controle deslizante (slider). */
|
|
70
|
+
Slider: 'slider',
|
|
71
|
+
/** Campo de avaliação com estrelas. */
|
|
72
|
+
StarRating: 'starRating',
|
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nV0dG9uJyxcbiAgICAvKiogQ2FtcG8gZGUgc2VuaGEgY29tIGluZGljYWRvciBkZSBmb3LDp2EuICovXG4gICAgUGFzc3dvcmQ6ICdwYXNzd29yZCcsXG4gICAgLyoqIENhbXBvIGRlIGZvdG8gZGUgcGVyZmlsIGNvbSByZWNvcnRlLiAqL1xuICAgIFByb2ZpbGVQaWN0dXJlOiAncHJvZmlsZVBpY3R1cmUnLFxuICAgIC8qKiBDYW1wbyBkZSBjb250cm9sZSBkZXNsaXphbnRlIChzbGlkZXIpLiAqL1xuICAgIFNsaWRlcjogJ3NsaWRlcicsXG4gICAgLyoqIENhbXBvIGRlIGF2YWxpYcOnw6NvIGNvbSBlc3RyZWxhcy4gKi9cbiAgICBTdGFyUmF0aW5nOiAnc3RhclJhdGluZycsXG4gICAgLyoqIENhbXBvIGRlIHNlbGXDp8OjbyBkZSBwYcOtcyBjb20gZW50cmFkYSBkZSB0ZWxlZm9uZS4gKi9cbiAgICBDb3VudHJ5UGhvbmVQaWNrZXI6ICdjb3VudHJ5UGhvbmVQaWNrZXInLFxufSBhcyBjb25zdDtcblxuLyoqIFRpcG8gdW5pb24gY29tIHRvZG9zIG9zIHZhbG9yZXMgcG9zc8OtdmVpcyBkZSBGaWVsZFR5cGUuICovXG5leHBvcnQgdHlwZSBGaWVsZFR5cGVWYWx1ZSA9ICh0eXBlb2YgRmllbGRUeXBlKVtrZXlvZiB0eXBlb2YgRmllbGRUeXBlXTtcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { FieldType } from './field-type';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvc3JjL2NvbW1vbnMvZmllbGQtdHlwZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFrQixNQUFNLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZpZWxkVHlwZSwgRmllbGRUeXBlVmFsdWUgfSBmcm9tICcuL2ZpZWxkLXR5cGUnO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { FieldType } from './field-type/index';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvc3JjL2NvbW1vbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBa0IsTUFBTSxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZpZWxkVHlwZSwgRmllbGRUeXBlVmFsdWUgfSBmcm9tICcuL2ZpZWxkLXR5cGUvaW5kZXgnO1xuIl19
|