@masterkeymaterial/ui 0.0.1 → 0.0.2

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.
Files changed (141) hide show
  1. package/README.md +9 -59
  2. package/ng-package.json +10 -0
  3. package/package.json +5 -14
  4. package/src/elements/ui-button/ui-button.css +229 -0
  5. package/src/elements/ui-button/ui-button.html +12 -0
  6. package/src/elements/ui-button/ui-button.ts +133 -0
  7. package/src/elements/ui-check-box/ui-check-box.css +66 -0
  8. package/src/elements/ui-check-box/ui-check-box.html +5 -0
  9. package/src/elements/ui-check-box/ui-check-box.ts +65 -0
  10. package/src/elements/ui-chip/ui-chip.css +24 -0
  11. package/src/elements/ui-chip/ui-chip.html +3 -0
  12. package/src/elements/ui-chip/ui-chip.ts +25 -0
  13. package/src/elements/ui-drop-zone/ui-drop-zone.css +91 -0
  14. package/src/elements/ui-drop-zone/ui-drop-zone.html +8 -0
  15. package/src/elements/ui-drop-zone/ui-drop-zone.ts +153 -0
  16. package/src/elements/ui-file-list/ui-file-list.css +43 -0
  17. package/src/elements/ui-file-list/ui-file-list.html +17 -0
  18. package/src/elements/ui-file-list/ui-file-list.ts +22 -0
  19. package/src/elements/ui-list-errors/ui-list-errors.css +30 -0
  20. package/src/elements/ui-list-errors/ui-list-errors.html +10 -0
  21. package/src/elements/ui-list-errors/ui-list-errors.ts +14 -0
  22. package/src/elements/ui-loading/ui-loading.css +13 -0
  23. package/src/elements/ui-loading/ui-loading.html +1 -0
  24. package/src/elements/ui-loading/ui-loading.ts +10 -0
  25. package/src/elements/ui-menu/ui-menu.css +69 -0
  26. package/src/elements/ui-menu/ui-menu.html +20 -0
  27. package/src/elements/ui-menu/ui-menu.ts +267 -0
  28. package/src/elements/ui-procurar/ui-procurar.css +48 -0
  29. package/src/elements/ui-procurar/ui-procurar.html +14 -0
  30. package/src/elements/ui-procurar/ui-procurar.ts +82 -0
  31. package/src/elements/ui-progress/ui-progress.css +0 -0
  32. package/src/elements/ui-progress/ui-progress.html +1 -0
  33. package/src/elements/ui-progress/ui-progress.ts +15 -0
  34. package/src/elements/ui-select/ui-select.css +211 -0
  35. package/src/elements/ui-select/ui-select.html +46 -0
  36. package/src/elements/ui-select/ui-select.ts +482 -0
  37. package/src/elements/ui-slide/ui-slide.css +75 -0
  38. package/src/elements/ui-slide/ui-slide.html +7 -0
  39. package/src/elements/ui-slide/ui-slide.ts +61 -0
  40. package/src/fields/Base/BaseFieldsForm/BaseFieldsForm.component.ts +113 -0
  41. package/src/fields/Base/BaseFieldsValues/BaseFieldsValues.ts +112 -0
  42. package/src/fields/Formulario/Formulario.ts +1056 -0
  43. package/src/fields/Formulario/form-action/form-action.css +98 -0
  44. package/src/fields/Formulario/form-action/form-action.html +75 -0
  45. package/src/fields/Formulario/form-action/form-action.ts +187 -0
  46. package/src/fields/Formulario/form-controls/form-controls.css +108 -0
  47. package/src/fields/Formulario/form-controls/form-controls.html +105 -0
  48. package/src/fields/Formulario/form-controls/form-controls.ts +122 -0
  49. package/src/fields/Formulario/form-fase/form-fase.css +84 -0
  50. package/src/fields/Formulario/form-fase/form-fase.html +24 -0
  51. package/src/fields/Formulario/form-fase/form-fase.ts +157 -0
  52. package/src/fields/Formulario/form-filter/form-filter.css +50 -0
  53. package/src/fields/Formulario/form-filter/form-filter.html +25 -0
  54. package/src/fields/Formulario/form-filter/form-filter.ts +53 -0
  55. package/src/fields/Formulario/form-no-action/form-no-action.css +32 -0
  56. package/src/fields/Formulario/form-no-action/form-no-action.html +12 -0
  57. package/src/fields/Formulario/form-no-action/form-no-action.ts +21 -0
  58. package/src/fields/Formulario/formated-values/formated-values.css +104 -0
  59. package/src/fields/Formulario/formated-values/formated-values.html +15 -0
  60. package/src/fields/Formulario/formated-values/formated-values.ts +186 -0
  61. package/src/fields/Formulario/single-values/single-values.css +88 -0
  62. package/src/fields/Formulario/single-values/single-values.html +11 -0
  63. package/src/fields/Formulario/single-values/single-values.ts +65 -0
  64. package/src/fields/autocomplete/autocomplete.css +94 -0
  65. package/src/fields/autocomplete/autocomplete.html +38 -0
  66. package/src/fields/autocomplete/autocomplete.ts +294 -0
  67. package/src/fields/button/button.css +7 -0
  68. package/src/fields/button/button.html +19 -0
  69. package/src/fields/button/button.ts +38 -0
  70. package/src/fields/checkbox/checkbox.css +27 -0
  71. package/src/fields/checkbox/checkbox.html +20 -0
  72. package/src/fields/checkbox/checkbox.ts +44 -0
  73. package/src/fields/color/CirculoColorido/circulocolorido.css +50 -0
  74. package/src/fields/color/CirculoColorido/circulocolorido.html +8 -0
  75. package/src/fields/color/CirculoColorido/circulocolorido.ts +24 -0
  76. package/src/fields/color/color.css +15 -0
  77. package/src/fields/color/color.html +24 -0
  78. package/src/fields/color/color.ts +47 -0
  79. package/src/fields/date/date.html +19 -0
  80. package/src/fields/date/date.ts +29 -0
  81. package/src/fields/datetime/datetime.html +19 -0
  82. package/src/fields/datetime/datetime.ts +29 -0
  83. package/src/fields/display/display.css +7 -0
  84. package/src/fields/display/display.html +20 -0
  85. package/src/fields/display/display.ts +43 -0
  86. package/src/fields/editor/editor.css +51 -0
  87. package/src/fields/editor/editor.html +37 -0
  88. package/src/fields/editor/editor.ts +218 -0
  89. package/src/fields/email/email.html +19 -0
  90. package/src/fields/email/email.ts +29 -0
  91. package/src/fields/fields.css +180 -0
  92. package/src/fields/generic/generic.html +3 -0
  93. package/src/fields/generic/generic.ts +91 -0
  94. package/src/fields/hidden/hidden.html +3 -0
  95. package/src/fields/hidden/hidden.ts +20 -0
  96. package/src/fields/icon/icon.css +19 -0
  97. package/src/fields/icon/icon.html +27 -0
  98. package/src/fields/icon/icon.ts +31 -0
  99. package/src/fields/multifactor/multifactor.css +21 -0
  100. package/src/fields/multifactor/multifactor.html +39 -0
  101. package/src/fields/multifactor/multifactor.ts +106 -0
  102. package/src/fields/multikv/multikv.css +43 -0
  103. package/src/fields/multikv/multikv.html +47 -0
  104. package/src/fields/multikv/multikv.ts +88 -0
  105. package/src/fields/multitext/multitext.css +36 -0
  106. package/src/fields/multitext/multitext.html +38 -0
  107. package/src/fields/multitext/multitext.ts +75 -0
  108. package/src/fields/number/number.html +20 -0
  109. package/src/fields/number/number.ts +35 -0
  110. package/src/fields/password/password.html +23 -0
  111. package/src/fields/password/password.ts +37 -0
  112. package/src/fields/search/search.css +0 -0
  113. package/src/fields/search/search.html +19 -0
  114. package/src/fields/search/search.ts +54 -0
  115. package/src/fields/select/select.css +15 -0
  116. package/src/fields/select/select.html +18 -0
  117. package/src/fields/select/select.ts +52 -0
  118. package/src/fields/slide/slide.css +27 -0
  119. package/src/fields/slide/slide.html +20 -0
  120. package/src/fields/slide/slide.ts +45 -0
  121. package/src/fields/text/text.html +19 -0
  122. package/src/fields/text/text.ts +30 -0
  123. package/src/fields/textarea/textarea.css +4 -0
  124. package/src/fields/textarea/textarea.html +20 -0
  125. package/src/fields/textarea/textarea.ts +31 -0
  126. package/src/fields/time/time.html +19 -0
  127. package/src/fields/time/time.ts +29 -0
  128. package/src/fields/upload/upload.css +24 -0
  129. package/src/fields/upload/upload.html +41 -0
  130. package/src/fields/upload/upload.ts +137 -0
  131. package/src/interfaces/interfaces.ts +61 -0
  132. package/src/public-api.ts +38 -0
  133. package/src/util/ClassOf.pipe.ts +11 -0
  134. package/src/util/JsonColorido.pipe.ts +11 -0
  135. package/src/util/util.ts +2151 -0
  136. package/tsconfig.lib.json +16 -0
  137. package/tsconfig.lib.prod.json +9 -0
  138. package/tsconfig.spec.json +13 -0
  139. package/fesm2022/masterkeymaterial-ui.mjs +0 -6457
  140. package/fesm2022/masterkeymaterial-ui.mjs.map +0 -1
  141. package/types/masterkeymaterial-ui.d.ts +0 -928
@@ -1,928 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { WritableSignal, Type, OnInit, OnDestroy, Signal, ElementRef, AfterViewInit } from '@angular/core';
3
- import * as _masterkeymaterial_ui from '@masterkeymaterial/ui';
4
-
5
- interface IKV {
6
- k: string | number | null | undefined;
7
- v?: string | undefined;
8
- html?: string;
9
- }
10
- interface IKV_ext extends IKV {
11
- [key: string]: any;
12
- }
13
- type ITipoBotao = "nofill" | "fill" | "outlined" | "icon" | "big" | "raised" | "menu-item" | "menu-item-category" | "sidebar-item" | "sidebar-item-category";
14
- type ITiposTema = "" | "primary" | "secondary" | "high" | "success" | "warning" | "error" | "info" | "white" | "black" | "card";
15
- type IDropZoneEvent = "dragover" | "drop" | "dragenter" | "dragleave" | "click";
16
- type IDropType = "file" | "json" | "text" | "html" | "url" | "unknown";
17
- interface IDropOutput {
18
- tipo: IDropType;
19
- timestamp: string;
20
- types: string[];
21
- data?: any;
22
- }
23
- interface IFileMetadata {
24
- url?: string;
25
- base64?: string;
26
- name?: string;
27
- size?: number;
28
- extension?: string;
29
- type?: string;
30
- lastModifiedIso?: string;
31
- }
32
- type UiProgressMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
33
-
34
- declare class Formulario {
35
- campos: WritableSignal<IFields<any>>;
36
- listaCampos: _angular_core.Signal<IFieldComponent<any>[]>;
37
- listaErrors: _angular_core.Signal<string[]>;
38
- values: WritableSignal<any>;
39
- registredFields: WritableSignal<{
40
- [x: string]: any;
41
- }>;
42
- showTouched: WritableSignal<boolean>;
43
- isEnviado: boolean;
44
- isEnviando: boolean;
45
- instance: any;
46
- valido: _angular_core.Signal<boolean>;
47
- algumTocado: _angular_core.Signal<boolean>;
48
- constructor(campos: IFields<any>, startValues?: any, instance?: any);
49
- updateValues(newValues: any): void;
50
- removeValue(prop: keyof IFields<any>): void;
51
- updateCampo(prop: keyof IFields<any>, newCampoData: Partial<IFieldComponent<any>>): void;
52
- setAllCamposPartial(newCampoData: Partial<IFieldComponent<any>>): void;
53
- setAllValuesTo(value: any): void;
54
- resetToStartValues(): void;
55
- private _startValues;
56
- setDisabledAll(disabled: boolean): void;
57
- setTouchedAll(touched: boolean): void;
58
- validar(): Promise<any>;
59
- private obterOpcoes;
60
- sanitizar(): void;
61
- onlyAvailable(): void;
62
- save(): void;
63
- }
64
- /************************************************\\
65
- // Modo de uso \\
66
- //*************************************************/
67
- interface IFields<T> {
68
- [key: string]: IFieldComponent<T>;
69
- }
70
- /************************************************\\
71
- // Tipos de Campos disponíveis para uso \\
72
- //*************************************************/
73
- declare enum IField {
74
- AutoComplete = "autocomplete",
75
- Button = "button",
76
- Checkbox = "checkbox",
77
- Color = "color",
78
- Custom = "custom",// <== Componentes customizados para uma determinada área.
79
- Date = "date",
80
- DateTime = "datetime",
81
- Display = "display",// Representa um campo apenas para exibição
82
- Editor = "editor",// Texto multilinha e com Editor
83
- Email = "email",
84
- Hidden = "hidden",
85
- Icon = "icon",// Combo de um texto que permite selecionar um icone instalado no sistema.
86
- MultiFactor = "multifactor",// Combo de 6 campos texto para preenchimento individual por caracter.
87
- MultiKV = "multikv",// Permite adicionar ou retirar itens em forma KV (Como usado nos seletores e no Importar)
88
- MultiText = "multitext",// Lista com: Texto em unica linha.
89
- Number = "number",
90
- Password = "password",
91
- Referencia = "referencia",// Campo que referencia um registro de outra entidade. Utilizado para exibir objetos recebidos de relacionamento.
92
- Search = "search",
93
- Select = "select",
94
- Slide = "slide",
95
- Text = "text",// Texto em unica linha.
96
- Textarea = "textarea",// Texto multilinha.
97
- Time = "time",// Campo de hora (HH:MM)
98
- Upload = "upload"
99
- }
100
- /************************************************\\
101
- // Propriedades para Campos \\
102
- //*************************************************/
103
- interface IFieldComponent<T> {
104
- tipo: IField;
105
- prop: keyof T & string;
106
- value?: any;
107
- titulo?: string;
108
- area?: string;
109
- icone?: string;
110
- placeholder?: string;
111
- style?: string;
112
- classe?: string;
113
- hideLabel?: boolean;
114
- filter?: boolean;
115
- autofocus?: boolean;
116
- regras?: IRegra[];
117
- maxl?: number;
118
- minl?: number;
119
- errors?: (string | undefined)[];
120
- dica?: string;
121
- onInput?: (form: Formulario) => any;
122
- onChange?: (form: Formulario) => any;
123
- readonly?: boolean;
124
- need?: boolean;
125
- touched?: boolean;
126
- disabled?: boolean;
127
- invalid?: boolean;
128
- empty?: boolean;
129
- pending?: boolean;
130
- tema?: ITiposTema;
131
- tituloClicavel?: string;
132
- textoAtivo?: string;
133
- textoInativo?: string;
134
- tituloChave?: string;
135
- tituloValor?: string;
136
- rows?: number;
137
- cols?: number;
138
- mask?: string | ((valor?: string) => string);
139
- options?: WritableSignal<IKV[]>;
140
- multiple?: boolean;
141
- canUnselect?: boolean;
142
- componente?: Type<any>;
143
- tipoBotao?: ITipoBotao;
144
- onClick?: (form: Formulario) => any;
145
- afterRefill?: (form: Formulario, options: IKV[] | null) => any;
146
- onMatchOption?: (form: Formulario, option?: IKV_ext) => any;
147
- onMatchOptionOnInit?: boolean;
148
- onComplete?: (form: Formulario, value: any) => any;
149
- showHeader?: boolean;
150
- showToolbar?: boolean;
151
- accept?: string;
152
- refill?: (form: Formulario) => Promise<IKV[] | null>;
153
- mapear?: (r: any) => Promise<IKV[] | null>;
154
- subFields?: IFields<any>;
155
- isCollapsed?: () => boolean;
156
- getDisplay?: (value: any, form?: Formulario) => any;
157
- textEmpty?: string;
158
- }
159
- /************************************************\\
160
- // FASES \\
161
- //*************************************************/
162
- interface IFases<T> {
163
- fases: IFaseCampos<T>[];
164
- isLinear?: boolean;
165
- orientation?: 'horizontal' | 'vertical';
166
- }
167
- interface IFaseCampos<T> {
168
- nome: string;
169
- icone?: string | null;
170
- completed?: boolean;
171
- optional?: boolean;
172
- hasErrors?: boolean;
173
- errorMessage?: string;
174
- campos: (IFaseCamposAgrupados<T> | keyof T & string)[];
175
- disabled?: boolean;
176
- gridMin?: string;
177
- gridMax?: string;
178
- }
179
- interface IFaseCamposAgrupados<T> {
180
- campos: (keyof T & string)[];
181
- titulo?: string;
182
- area?: string;
183
- tituloArea?: string;
184
- }
185
- /************************************************\\
186
- // CAMPOS SIMPLIFICADOS \\
187
- //*************************************************/
188
- declare class CampoDe {
189
- static AutoComplete<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
190
- static Button<T>(prop: any, tituloClicavel: string, click: (form: Formulario) => void, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
191
- static Checkbox<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
192
- static Color<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
193
- static Cpf<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
194
- static Cnpj<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
195
- static CpfCnpj<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
196
- static Custom<T>(prop: keyof T & string, componente: Type<any>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
197
- static Date<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
198
- static DateTime<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
199
- static Display<T>(prop: any, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
200
- static Editor<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
201
- static Email<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
202
- static Hidden<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
203
- static Icon<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
204
- static MultiFactor<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
205
- static MultiKV<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
206
- static MultiText<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
207
- static Number<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
208
- static Password<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
209
- static Referencia<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
210
- static Search<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
211
- static Select<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
212
- static Slide<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
213
- static Upload<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
214
- static Text<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
215
- static Textarea<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
216
- static Time<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
217
- static UploadImage<T>(prop: keyof T & string, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<T>;
218
- }
219
- /************************************************\\
220
- // FILTROS SIMPLIFICADOS \\
221
- //*************************************************/
222
- declare class FiltroDe {
223
- static Boolean<T>(prop: Extract<keyof T, string>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<any>;
224
- static Hidden<T>(prop: Extract<keyof T, string>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<any>;
225
- /** Usar este FiltroTexto quando não for Hidden, Select ou Booleano */
226
- static Text<T>(prop: Extract<keyof T, string>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<any>;
227
- static Select<T>(prop: Extract<keyof T, string>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<any>;
228
- static Date<T>(prop: Extract<keyof T, string>, titulo?: string, config?: Partial<IFieldComponent<T>>): IFieldComponent<any>;
229
- }
230
- /************************************************\\
231
- // VALIDAÇÃO de campos \\
232
- //*************************************************/
233
- declare enum IRegraTipo {
234
- ApenasNumeros = "apenasNumeros"
235
- }
236
- interface IRegra {
237
- nome: string;
238
- mensagem: string;
239
- validar: (value: any) => boolean | Promise<boolean>;
240
- }
241
- declare class Regra {
242
- static ApenasNumeros(): IRegra;
243
- static ApenasLista(): IRegra;
244
- static ApenasListaDeObjetos(): IRegra;
245
- static EntreValores(min: number, max: number): IRegra;
246
- static TamanhoMinimo(qntCaracteres: number): IRegra;
247
- static TamanhoMaximo(qntCaracteres: number): IRegra;
248
- static ApenasLetras(): IRegra;
249
- static ApenasNumerosELetras(): IRegra;
250
- static TemMaiuscula(): IRegra;
251
- static TemMinuscula(): IRegra;
252
- static TemNumero(): IRegra;
253
- static TemEspecial(): IRegra;
254
- static Email(): IRegra;
255
- static Same(compareValue: any, mensagem?: string): IRegra;
256
- static SenhaForte(): IRegra;
257
- static Unique(asyncValidate: (value: any) => Promise<boolean>): IRegra;
258
- static CepBR(): IRegra;
259
- static CPF(): IRegra;
260
- static CNPJ(): IRegra;
261
- static ClickRequired(): IRegra;
262
- static Obrigatorio(): IRegra;
263
- static mensagens: {
264
- obrigatorio: string;
265
- apenasNumeros: string;
266
- apenasLista: string;
267
- apenasListaDeObjetos: string;
268
- apenasEntre: (min: number, max: number) => string;
269
- temSizeMin: string;
270
- temSizeMax: string;
271
- temApenasNumeros: string;
272
- temApenasLetras: string;
273
- temApenasNumerosELetras: string;
274
- temMaiuscula: string;
275
- temMinuscula: string;
276
- temNumero: string;
277
- temEspecial: string;
278
- isEmail: string;
279
- isSame: string;
280
- senhaForte: string;
281
- isUnique: string;
282
- isCepBR: string;
283
- isCPF: string;
284
- isCNPJ: string;
285
- clickRequired: string;
286
- };
287
- }
288
-
289
- declare class LibUtil {
290
- static loglevel: number;
291
- static formConfigs: Partial<IFieldComponent<any>>;
292
- static classof: (o: any) => IClassOf;
293
- static wait: (ms: number) => Promise<unknown>;
294
- static clonar: (i: any) => any;
295
- static limparObject: (o: any) => any;
296
- static mascarar: (texto: any, mascara: any) => string | undefined;
297
- static tryParseJSON(val: any): any[] | null;
298
- static contem: (strMaior: string, strMenor: string) => boolean;
299
- static removeAcentos: (s: string) => string;
300
- static fileReader: (arquivo: File, eventos?: Function) => Promise<string | null>;
301
- static removeHtmlTags(texto: string): string;
302
- static saveCursorPosition(element: any, plus?: number): {
303
- start: number;
304
- end: number;
305
- plus: number;
306
- } | null;
307
- static restoreCursorPosition(element: any, position: {
308
- start: number;
309
- end: number;
310
- plus: number;
311
- }): void;
312
- static formatJson(texto: string, colorir?: boolean): string;
313
- static copy(content: string): Promise<void>;
314
- private static copyPlainText;
315
- private static copyHtml;
316
- private static stripHtmlTags;
317
- static apenasNumeros: (s?: string | number) => string;
318
- static frequencia: (array: any) => any;
319
- static formats: IUtilFormatters;
320
- static stringToDataBR: (data: string | null | undefined) => string | null;
321
- static dataToIsoData: (data: string) => string;
322
- static sinalSet<T>(sinal: WritableSignal<any | undefined>, item: Partial<T>): void;
323
- static sinalCreate<T>(sinal: WritableSignal<any[] | undefined>, item: T): void;
324
- static sinalUpdate<T>(sinal: WritableSignal<any[] | undefined>, item: Partial<T>, k: string, v?: string): void;
325
- static sinalDelete<T>(sinal: WritableSignal<any[] | undefined>, k: string, v?: string): void;
326
- static sinalClear<T>(sinal: WritableSignal<any[] | undefined>): void;
327
- static sinalExists<T>(sinal: WritableSignal<any[] | undefined>, k: Extract<keyof T, string>, v: string): boolean;
328
- static sinalMoveUp<T>(sinal: WritableSignal<any[] | undefined>, k: Extract<keyof T, string>, v: string): void;
329
- static sinalMoveDown<T>(sinal: WritableSignal<any[] | undefined>, k: Extract<keyof T, string>, v: string): void;
330
- static sinalMoveToIndex<T>(sinal: WritableSignal<any[] | undefined>, k: Extract<keyof T, string>, v: string, targetIndex: number): void;
331
- static FlatRecursivo<T>(lista: T[], keyRecursive: keyof T): T[];
332
- static sinalCreateRecursive<T>(sinal: WritableSignal<any[] | undefined>, item: T, keyRecursive: keyof T, keyPai: Extract<keyof T, string>, valuePai?: string): void;
333
- static _recursiveCreate<T>(atual: T, novo: T, keyRecursive: keyof T, keyPai: Extract<keyof T, string>, valuePai: string): T;
334
- static sinalUpdateRecursive<T>(sinal: WritableSignal<any[] | undefined>, item: Partial<T>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): void;
335
- static _recursiveUpdate<T>(atual: T, novo: Partial<T>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): T;
336
- static sinalDeleteRecursive<T>(sinal: WritableSignal<any[] | undefined>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): void;
337
- static _recursiveDelete<T>(atual: T, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): T;
338
- static sinalExistsRecursive<T>(sinal: WritableSignal<any[] | undefined>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): boolean;
339
- static _recursiveExists<T>(atual: T, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): boolean;
340
- static sinalMoveUpRecursive<T>(sinal: WritableSignal<any[] | undefined>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): void;
341
- static _recursiveMoveUp<T>(atual: T, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): T;
342
- static sinalMoveDownRecursive<T>(sinal: WritableSignal<any[] | undefined>, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): void;
343
- static _recursiveMoveDown<T>(atual: T, keyRecursive: keyof T, k: Extract<keyof T, string>, v: string): T;
344
- static sinalSetOrderRecursive<T>(sinal: WritableSignal<any[] | undefined>, keyRecursive: keyof T, k: Extract<keyof T, string>, propOrder: keyof T): void;
345
- static _recursiveSetOrder<T>(atual: T, keyRecursive: keyof T, k: Extract<keyof T, string>, propOrder: keyof T, index: number): T;
346
- static Q: (query: any) => any;
347
- static QAll: (query: any) => any[];
348
- static QverOff: (query?: Element | HTMLElement | string | null) => any[];
349
- static QverOn: (query?: Element | HTMLElement | string | null) => any[];
350
- static dataGetMs: (data?: string | null) => number;
351
- static dataMsToSegundos: (num: number, reverse?: boolean) => number;
352
- static dataMsToDias: (num: number, reverse?: boolean) => number;
353
- static dataGetSegundosDiferenca: (msDe: number, msAte?: number | null) => number;
354
- static dataGetDiasDiferenca: (msDe: number, msAte?: number | null) => number;
355
- static dataShowTempoDiferenca: (msDe: number | string, msAte?: number | string | null) => string;
356
- static displayCelular: (area: string, numero: string, isoDDI?: string) => string;
357
- static displayFlag: (pais: string) => string;
358
- static diaEMes(data: string): string;
359
- static toNumber: (valor: any, casas?: number) => number;
360
- static a: any;
361
- static meses: Map<number, string[]>;
362
- static isJson: (s: any) => boolean;
363
- static stringify: (o: any) => string;
364
- static parseJSON: (t: any) => any;
365
- static convertToNumeric: (texto: string) => Array<number>;
366
- static convertToTexto: (arrayNumeros: Array<number>) => string;
367
- static convertToTexto2: (stringNumeros: string) => string;
368
- static aCadaElemento: (query: any, fn: Function) => any[];
369
- static aCadaSubPropriedade: (OA: any, funcao?: Function | null, exceto?: string) => number;
370
- static apenasEstes: (s?: string, regexPossiveis?: string) => string;
371
- static getV: (keys: string | string[], objeto: any) => any;
372
- static setV: (keys: string, value: any, objeto: any) => any;
373
- static geraObjForm: (form: any) => any;
374
- static funcoesDinamicas: Map<string, Function>;
375
- static aCada1s: () => void;
376
- static cortarString: (linha: string, regex: string, casas: any) => string;
377
- static uuid: () => string;
378
- static isRoute: (rotaRegex: string) => boolean;
379
- static verificarIgualdade(array: any[], propriedades: string[]): boolean;
380
- static individualNoObjeto(array: any[], propriedade: string): any[];
381
- static hasFaltante(array: any[], propriedades: string[]): boolean;
382
- static somarEmObjeto(lista: any[], propriedade: string): any;
383
- static capitalize: (texto?: string | null) => string;
384
- static GetParam: (name?: string | null, url?: string | null) => string | null;
385
- static getParamObject: (url?: string) => any;
386
- static toQueryString(obj?: any, urlAtual?: string): string;
387
- /**
388
- * Mapeia uma EntidadeA para EntidadeB usando o TRANSFORMA
389
- * É nescessário informar o DE/PARA/TRANSFORMA de cada propriedade.
390
- */
391
- static mapearEntidade<T, U>(entidadeOrigem: T, mapeamento: MapeamentoItem<T, U>[]): U;
392
- /**
393
- * Faz uma tentativa de obter uma url, mas se falhar, retorna nulo
394
- */
395
- static getURL(urlQuery?: string): URL | undefined;
396
- static conversorCSS(texto: string): string[];
397
- static sort<T, K extends keyof T>(array: T[], propriedade: K): T[];
398
- static converteEnterEmBr(texto: string): string;
399
- static hasHtmlTags(texto: string): boolean;
400
- /**
401
- * Une duas listas quando elas tem uma propriedade em comum
402
- * @param listaA Lista a ser sobreescrita ou preenchida
403
- * @param listaB Lista com os dados para preencher ou sobreescrever
404
- * @param propEmComum Nome da propriedade que, se estiver em comum nas listas, será populado, do contrário não.
405
- * @returns Lista Unida por um Filtro.
406
- */
407
- static Union(listaA: any[], listaB: any[], propEmComum?: string): any[];
408
- /**
409
- * Gera uma string menor que a informada.
410
- * @returns
411
- */
412
- static gerarHashCurto(texto: string, tamanho?: number): string;
413
- static gerarNomeColection(nomeSistema: string, colecao: string): string;
414
- static apenasNumerosLetras: (s?: string) => string;
415
- static removeEspecias: (s: string) => string;
416
- static LerTexto: (texto?: string, locutor?: number) => Promise<unknown>;
417
- static LerProximoERemover(playlist: string[]): Promise<string[]>;
418
- static LeituraInterrompida(): void;
419
- static gerarNumeroInteiro(min: number, max: number): any;
420
- static SelectInner(e: HTMLInputElement): void;
421
- static generatePrimaryKey(item: any, primarykey: string): any;
422
- static hslToHex(h: number, s: number, l: number): string;
423
- static isFilled(dados: any): boolean;
424
- static replace(regex: string, valor: string | number): string;
425
- static calculateJitter(timestamps: number[]): number;
426
- static somarPorIndice: (arrays: number[][]) => number[];
427
- static somarArrayInterna: (arrays: number[][]) => number[];
428
- static downloadBlob: (blob: Blob, nomeArquivo: string) => void;
429
- static wordsToCamelCase(texto: string): string;
430
- static camelCase(texto: string): string;
431
- static pascalCase(texto: string): string;
432
- static dashedCase(texto: string): string;
433
- static separaWordsCase(texto: string): string;
434
- static wordsArray(texto: string): string[];
435
- static tentaAcentuarTexto(s: string | string[]): string;
436
- static pluralOf(word: string | string[]): string;
437
- static setLogLevel(level: number): void;
438
- static setFormConfigs(configs: Partial<IFieldComponent<any>>): void;
439
- static paraPortugues(texto: string): string;
440
- static paraPortuguesPlural(texto: string): string;
441
- static replaceDicionario(texto: string): string;
442
- }
443
- declare const LOG: (level: number, ...attr: any) => void;
444
- declare const G_START: (level: number, ...attr: any) => void;
445
- declare const G_START_OPEN: (level: number, ...attr: any) => void;
446
- declare const G_END: (level: number, ...attr: any) => void;
447
- declare const LOGC: (level: number, title: string, ...attr: any) => void;
448
- type IClassOf = "string" | "number" | "nan" | "object" | "array" | "boolean" | "undefined" | "null" | "function" | "date" | "regexp" | "error" | "symbol" | "bigint";
449
- interface IFormatter {
450
- mask: string | ((value: any) => string);
451
- regex: string;
452
- validate: (value: any) => boolean;
453
- }
454
- interface IUtilFormatters {
455
- cpf: IFormatter;
456
- cnpj: IFormatter;
457
- cpf_cnpj: IFormatter;
458
- cnh: IFormatter;
459
- pis: IFormatter;
460
- dia: IFormatter;
461
- mes: IFormatter;
462
- ano: IFormatter;
463
- anoRecente: IFormatter;
464
- data: IFormatter;
465
- dataIso: IFormatter;
466
- numero: IFormatter;
467
- decimal: IFormatter;
468
- letra: IFormatter;
469
- numeroELetra: IFormatter;
470
- ip: IFormatter;
471
- email: IFormatter;
472
- cep: IFormatter;
473
- }
474
- interface MapeamentoItem<T, U> {
475
- de: keyof T;
476
- para: keyof U;
477
- transforma: (v: T[keyof T]) => U[keyof U];
478
- }
479
-
480
- interface IFaseCampoGrupo {
481
- tipo: 'campo' | 'grupo';
482
- faseIndex: number;
483
- nome?: string;
484
- campo?: IFieldComponent<any>;
485
- grupo?: IFaseCamposAgrupados<any>;
486
- }
487
- declare abstract class BaseFieldsValues<T> implements OnInit {
488
- abstract onSave(): Promise<any>;
489
- form: Formulario;
490
- values: _angular_core.ModelSignal<Partial<T> | undefined>;
491
- campos: _angular_core.InputSignal<IFields<T>>;
492
- fases: _angular_core.InputSignal<IFases<T> | undefined>;
493
- gmin: _angular_core.InputSignal<string | undefined>;
494
- gmax: _angular_core.InputSignal<string | undefined>;
495
- showFormControls: _angular_core.InputSignal<boolean>;
496
- camposNaoEncontrados: Set<string>;
497
- gruposNaoEncontrados: Set<string>;
498
- formulario: _angular_core.OutputEmitterRef<Formulario>;
499
- isFaseado: _angular_core.Signal<boolean>;
500
- isDisabledAction: _angular_core.WritableSignal<boolean>;
501
- isLoadingActive: _angular_core.WritableSignal<boolean>;
502
- faseIndex: _angular_core.WritableSignal<number>;
503
- listaFase: _angular_core.Signal<_masterkeymaterial_ui.IFaseCampos<T>[]>;
504
- faseGrupo: _angular_core.Signal<IFaseCampoGrupo[]>;
505
- constructor();
506
- ngOnInit(): void;
507
- updateDisabledAction(forcedDisabled?: boolean): void;
508
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFieldsValues<any>, never>;
509
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFieldsValues<any>, "fields-base-fields-values", never, { "values": { "alias": "values"; "required": false; "isSignal": true; }; "campos": { "alias": "campos"; "required": true; "isSignal": true; }; "fases": { "alias": "fases"; "required": false; "isSignal": true; }; "gmin": { "alias": "gmin"; "required": false; "isSignal": true; }; "gmax": { "alias": "gmax"; "required": false; "isSignal": true; }; "showFormControls": { "alias": "showFormControls"; "required": false; "isSignal": true; }; }, { "values": "valuesChange"; "formulario": "formulario"; }, never, never, true, never>;
510
- }
511
-
512
- declare class BaseFieldsForm implements OnInit, OnDestroy {
513
- readonly form: _angular_core.InputSignal<Formulario>;
514
- readonly name: _angular_core.InputSignal<string | number>;
515
- change: _angular_core.OutputEmitterRef<string>;
516
- readonly value: Signal<any>;
517
- readonly campo: Signal<IFieldComponent<any> | undefined>;
518
- ngOnInit(): void;
519
- ngOnDestroy(): void;
520
- updateCampo(newCampoData: Partial<IFieldComponent<any>>): void;
521
- updateValue(newValue: any, touch?: boolean): void;
522
- tocarCampo(): void;
523
- onClickLabel(): void;
524
- get gridArea(): string;
525
- onClickEmit(): void;
526
- onChangeEmit(): Promise<void>;
527
- executarValidacoes(): Promise<void>;
528
- validarRequired(): void;
529
- validarRegrasDoCampo(): Promise<void>;
530
- adicionaErro(erroNovo: string): void;
531
- removerErro(erroRemover: string): void;
532
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFieldsForm, never>;
533
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFieldsForm, "app-BaseFieldsForm", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; }, { "change": "change"; }, never, never, true, never>;
534
- }
535
-
536
- declare class UiButton {
537
- botao: _angular_core.Signal<ElementRef<any> | undefined>;
538
- rippleEffect: _angular_core.Signal<ElementRef<any> | undefined>;
539
- ripple: _angular_core.Signal<ElementRef<any> | undefined>;
540
- icone: _angular_core.ModelSignal<string | null | undefined>;
541
- iconeAntes: _angular_core.ModelSignal<boolean>;
542
- iconeDepois: _angular_core.ModelSignal<boolean>;
543
- iconeCategory: _angular_core.ModelSignal<string>;
544
- clicked: _angular_core.OutputEmitterRef<PointerEvent>;
545
- disabled: _angular_core.InputSignal<boolean | undefined>;
546
- eventPropagation: _angular_core.InputSignal<boolean>;
547
- radiusTabFormat: _angular_core.InputSignal<boolean>;
548
- tabindex: _angular_core.InputSignal<string | number | undefined>;
549
- tipo: _angular_core.InputSignal<ITipoBotao | undefined>;
550
- tema: _angular_core.ModelSignal<ITiposTema | undefined>;
551
- classes: _angular_core.InputSignal<string>;
552
- ativo: _angular_core.InputSignal<boolean>;
553
- isCategory: _angular_core.Signal<boolean>;
554
- buttonClasses: _angular_core.Signal<string>;
555
- corFundo: _angular_core.WritableSignal<string | undefined>;
556
- corFrente: _angular_core.WritableSignal<string | undefined>;
557
- constructor();
558
- onKeyPressed(ev: Event): void;
559
- onClickExpanded(ev: PointerEvent): void;
560
- createRipple(e: PointerEvent): void;
561
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiButton, never>;
562
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiButton, "ui-button", never, { "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "iconeAntes": { "alias": "iconeAntes"; "required": false; "isSignal": true; }; "iconeDepois": { "alias": "iconeDepois"; "required": false; "isSignal": true; }; "iconeCategory": { "alias": "iconeCategory"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "eventPropagation": { "alias": "eventPropagation"; "required": false; "isSignal": true; }; "radiusTabFormat": { "alias": "radiusTabFormat"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "tipo": { "alias": "tipo"; "required": false; "isSignal": true; }; "tema": { "alias": "tema"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "ativo": { "alias": "ativo"; "required": false; "isSignal": true; }; }, { "icone": "iconeChange"; "iconeAntes": "iconeAntesChange"; "iconeDepois": "iconeDepoisChange"; "iconeCategory": "iconeCategoryChange"; "clicked": "clicked"; "tema": "temaChange"; }, never, ["*"], true, never>;
563
- }
564
-
565
- declare class UiChip {
566
- cor: _angular_core.InputSignal<number | null | undefined>;
567
- hue: _angular_core.Signal<number | null>;
568
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiChip, never>;
569
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiChip, "ui-chip", never, { "cor": { "alias": "cor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
570
- }
571
-
572
- declare class UiDropZone {
573
- value: _angular_core.ModelSignal<IDropOutput | undefined>;
574
- disabled: _angular_core.InputSignal<boolean | undefined>;
575
- sobrepor: _angular_core.InputSignal<boolean | undefined>;
576
- clicked: _angular_core.OutputEmitterRef<Event>;
577
- changed: _angular_core.OutputEmitterRef<IDropOutput>;
578
- rippleEffect: _angular_core.Signal<ElementRef<any> | undefined>;
579
- ripple: _angular_core.Signal<ElementRef<any> | undefined>;
580
- isDragging: boolean;
581
- onDropZone(tipo: IDropZoneEvent, ev: Event): Promise<void>;
582
- onDrop(ev: DragEvent): Promise<void>;
583
- createRipple(ev: DragEvent, classColor?: string): void;
584
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiDropZone, never>;
585
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiDropZone, "ui-drop-zone", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "sobrepor": { "alias": "sobrepor"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "clicked": "clicked"; "changed": "changed"; }, never, ["*"], true, never>;
586
- }
587
-
588
- declare class UiFileList {
589
- disabled: _angular_core.InputSignal<boolean | undefined>;
590
- filesList: _angular_core.InputSignal<IFileMetadata[] | undefined>;
591
- remove: _angular_core.OutputEmitterRef<IFileMetadata>;
592
- onDelete(file: IFileMetadata): void;
593
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiFileList, never>;
594
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiFileList, "ui-file-list", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filesList": { "alias": "filesList"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, never, true, never>;
595
- }
596
-
597
- interface IOptionValue {
598
- optionChanged?: IKV;
599
- keys: string | number | string[] | number[];
600
- values: string | number | string[] | number[];
601
- }
602
- interface IKVSeletor extends IKV {
603
- selected: boolean;
604
- choosing: boolean;
605
- }
606
- declare class UiSelect implements OnDestroy, AfterViewInit {
607
- elementRef: ElementRef;
608
- value: _angular_core.ModelSignal<string | number | string[] | number[] | undefined>;
609
- options: _angular_core.InputSignal<IKV[] | null | undefined>;
610
- name: _angular_core.InputSignal<string | number | undefined>;
611
- placeholder: _angular_core.InputSignal<string | undefined>;
612
- disabled: _angular_core.InputSignal<boolean | undefined>;
613
- multiple: _angular_core.InputSignal<boolean>;
614
- canUnselect: _angular_core.InputSignal<boolean | undefined>;
615
- textEmpty: _angular_core.InputSignal<string | undefined>;
616
- changed: _angular_core.OutputEmitterRef<IOptionValue>;
617
- isOpenedOptions: _angular_core.WritableSignal<boolean>;
618
- markedOptionKey: _angular_core.WritableSignal<string | number | null | undefined>;
619
- elementoAcima: HTMLElement | null;
620
- isSmallScreen: _angular_core.WritableSignal<boolean>;
621
- textoFiltrado: _angular_core.WritableSignal<string>;
622
- readonly optionsList: _angular_core.Signal<IKVSeletor[]>;
623
- readonly optionsFiltered: _angular_core.Signal<IKVSeletor[]>;
624
- readonly textoExibindo: _angular_core.Signal<string>;
625
- readonly displayText: _angular_core.Signal<ElementRef<any> | undefined>;
626
- readonly triggerElement: _angular_core.Signal<ElementRef<any> | undefined>;
627
- readonly optionsOverlay: _angular_core.Signal<ElementRef<any> | undefined>;
628
- readonly optionsContainer: _angular_core.Signal<ElementRef<any> | undefined>;
629
- readonly optionSearchInput: _angular_core.Signal<ElementRef<any> | undefined>;
630
- optionMinWidth: _angular_core.WritableSignal<number>;
631
- menuPosition: _angular_core.WritableSignal<{
632
- top: string;
633
- left: string;
634
- }>;
635
- constructor();
636
- ngOnDestroy(): void;
637
- ngAfterViewInit(): void;
638
- onChange(valueOfK: string | number | null): string | number | string[] | number[];
639
- onOpenOrCloseOptions(): void;
640
- protected closeOverlay(): void;
641
- protected openOverlay(): void;
642
- onSelectOption(option?: IKV): void;
643
- onInputSearch(text: string): void;
644
- onClearSearch(): void;
645
- focusToSearchInput(): void;
646
- focusToDisplayText(): void;
647
- markKey(event: KeyboardEvent): void;
648
- readonly hostClasses: _angular_core.Signal<"" | "opened">;
649
- onDocumentClick(event: MouseEvent): void;
650
- private updatePosition;
651
- setOverlaySizeToSizeViewport(): void;
652
- onChangeMediaQuery(e: MediaQueryListEvent | MediaQueryList): void;
653
- checkScreenSize(): void;
654
- private moveScrollToMarkedOption;
655
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSelect, never>;
656
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSelect, "ui-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "canUnselect": { "alias": "canUnselect"; "required": false; "isSignal": true; }; "textEmpty": { "alias": "textEmpty"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
657
- }
658
-
659
- declare class UiProcurar {
660
- readonly searchInput: _angular_core.Signal<ElementRef<any> | undefined>;
661
- inputed: _angular_core.OutputEmitterRef<string>;
662
- changed: _angular_core.OutputEmitterRef<string>;
663
- value: _angular_core.ModelSignal<string>;
664
- colapsed: _angular_core.ModelSignal<boolean | undefined>;
665
- autoColapse: _angular_core.ModelSignal<boolean | undefined>;
666
- computedColapsed: _angular_core.Signal<boolean>;
667
- name: _angular_core.InputSignal<string | number | undefined>;
668
- placeholder: _angular_core.InputSignal<string | undefined>;
669
- disabled: _angular_core.InputSignal<boolean | undefined>;
670
- focused: _angular_core.WritableSignal<boolean | undefined>;
671
- onInput(value: string): void;
672
- onClearSearch(): void;
673
- focusSearchInput(): void;
674
- onClickSearchIcon(): void;
675
- onSearch(): void;
676
- onInputed(): void;
677
- onChange(): void;
678
- onFocus(ev: FocusEvent): void;
679
- onBlur(ev: FocusEvent): void;
680
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiProcurar, never>;
681
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiProcurar, "ui-procurar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "colapsed": { "alias": "colapsed"; "required": false; "isSignal": true; }; "autoColapse": { "alias": "autoColapse"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "inputed": "inputed"; "changed": "changed"; "value": "valueChange"; "colapsed": "colapsedChange"; "autoColapse": "autoColapseChange"; }, never, never, true, never>;
682
- }
683
-
684
- declare class UiProgress {
685
- value: _angular_core.InputSignal<number>;
686
- bufferValue: _angular_core.InputSignal<number>;
687
- mode: _angular_core.InputSignal<UiProgressMode>;
688
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiProgress, never>;
689
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiProgress, "ui-progress", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "bufferValue": { "alias": "bufferValue"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
690
- }
691
-
692
- declare class UiSlide implements AfterViewInit {
693
- sliderbox: _angular_core.Signal<ElementRef<any> | undefined>;
694
- value: _angular_core.ModelSignal<boolean>;
695
- disabled: _angular_core.InputSignal<boolean | undefined>;
696
- focused: _angular_core.ModelSignal<boolean>;
697
- focus: _angular_core.InputSignal<boolean>;
698
- changed: _angular_core.OutputEmitterRef<boolean>;
699
- ativo: _angular_core.Signal<boolean>;
700
- constructor();
701
- ngAfterViewInit(): void;
702
- onClickSlide(): void;
703
- onFocus(ev: FocusEvent): void;
704
- onBlur(ev: FocusEvent): void;
705
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSlide, never>;
706
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSlide, "ui-slide", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "focused": "focusedChange"; "changed": "changed"; }, never, never, true, never>;
707
- }
708
-
709
- declare class UiCheckBox implements AfterViewInit {
710
- marcabox: _angular_core.Signal<ElementRef<any> | undefined>;
711
- value: _angular_core.ModelSignal<boolean>;
712
- disabled: _angular_core.InputSignal<boolean | undefined>;
713
- focused: _angular_core.ModelSignal<boolean>;
714
- focus: _angular_core.InputSignal<boolean>;
715
- changed: _angular_core.OutputEmitterRef<boolean>;
716
- single: _angular_core.InputSignal<boolean>;
717
- hasDash: _angular_core.InputSignal<boolean>;
718
- ativo: _angular_core.Signal<boolean>;
719
- constructor();
720
- ngAfterViewInit(): void;
721
- onClickMarcador(): void;
722
- onFocus(ev: FocusEvent): void;
723
- onBlur(ev: FocusEvent): void;
724
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiCheckBox, never>;
725
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiCheckBox, "ui-check-box", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "single": { "alias": "single"; "required": false; "isSignal": true; }; "hasDash": { "alias": "hasDash"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "focused": "focusedChange"; "changed": "changed"; }, never, never, true, never>;
726
- }
727
-
728
- declare class UiListErrors {
729
- show: _angular_core.InputSignal<boolean | undefined>;
730
- errors: _angular_core.InputSignal<(string | undefined)[] | undefined>;
731
- dica: _angular_core.InputSignal<string | undefined>;
732
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiListErrors, never>;
733
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiListErrors, "ui-list-errors", never, { "show": { "alias": "show"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": true; "isSignal": true; }; "dica": { "alias": "dica"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
734
- }
735
-
736
- declare class UiLoading {
737
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLoading, never>;
738
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLoading, "ui-loading", never, {}, {}, never, never, true, never>;
739
- }
740
-
741
- declare class UiMenu implements OnDestroy, OnInit, AfterViewInit {
742
- elementRef: ElementRef;
743
- readonly disabled: _angular_core.InputSignal<boolean | undefined>;
744
- readonly icone: _angular_core.InputSignal<string | null | undefined>;
745
- autoCloseInCascade: _angular_core.ModelSignal<boolean>;
746
- posicao: _angular_core.ModelSignal<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
747
- isOpened: _angular_core.ModelSignal<boolean>;
748
- id: _angular_core.WritableSignal<string>;
749
- internalId: _angular_core.WritableSignal<{
750
- id: string | undefined;
751
- changed: boolean;
752
- } | undefined>;
753
- isSmallScreen: _angular_core.WritableSignal<boolean>;
754
- optionMinWidth: _angular_core.WritableSignal<number>;
755
- menuPosition: _angular_core.WritableSignal<{
756
- top: string;
757
- left: string;
758
- }>;
759
- zIndex: _angular_core.WritableSignal<string>;
760
- closeOverlayObserver: MutationObserver;
761
- readonly menuTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
762
- readonly menuOverlay: _angular_core.Signal<ElementRef<any> | undefined>;
763
- readonly menuContainer: _angular_core.Signal<ElementRef<any> | undefined>;
764
- constructor();
765
- ngOnInit(): void;
766
- ngOnDestroy(): void;
767
- ngAfterViewInit(): void;
768
- onOpenOrCloseOptions(): void;
769
- onClickSlotBotao(event: Event): void;
770
- onClickOverlay(): void;
771
- onClickContainer(event: Event): void;
772
- protected closeOverlay(fromCascade?: boolean): void;
773
- protected openOverlay(): void;
774
- private updatePosition;
775
- setOverlaySizeToSizeViewport(): void;
776
- onChangeMediaQuery(e: MediaQueryListEvent | MediaQueryList): void;
777
- checkScreenSize(): void;
778
- onArrowUp(event: Event): void;
779
- onArrowDown(event: Event): void;
780
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiMenu, never>;
781
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiMenu, "ui-menu", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "autoCloseInCascade": { "alias": "autoCloseInCascade"; "required": false; "isSignal": true; }; "posicao": { "alias": "posicao"; "required": false; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "autoCloseInCascade": "autoCloseInCascadeChange"; "posicao": "posicaoChange"; "isOpened": "isOpenedChange"; }, never, ["[slot='botao']", "*"], true, never>;
782
- }
783
-
784
- declare class FormFilter<T> extends BaseFieldsValues<T> {
785
- onSave(): Promise<void>;
786
- hasOutline: _angular_core.ModelSignal<boolean>;
787
- filtrar: _angular_core.OutputEmitterRef<any>;
788
- actionTitle: _angular_core.InputSignal<string>;
789
- onFiltrar(): void;
790
- kvPreenchido: _angular_core.Signal<IKV[]>;
791
- onDeletePropriedade(k: string | number | null | undefined): void;
792
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFilter<any>, never>;
793
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFilter<any>, "fields-form-filter", never, { "hasOutline": { "alias": "hasOutline"; "required": false; "isSignal": true; }; "actionTitle": { "alias": "actionTitle"; "required": false; "isSignal": true; }; }, { "hasOutline": "hasOutlineChange"; "filtrar": "filtrar"; }, never, ["*"], true, never>;
794
- }
795
-
796
- interface ISaveTasks {
797
- title: string;
798
- icone: string;
799
- task: () => Promise<boolean>;
800
- done?: boolean;
801
- success?: boolean;
802
- }
803
- interface IActionsDone {
804
- values: any;
805
- result: any;
806
- tasks: ISaveTasks[];
807
- ok: boolean;
808
- }
809
- declare class FormAction<T> extends BaseFieldsValues<T> implements OnInit {
810
- hasOutline: _angular_core.ModelSignal<boolean>;
811
- actionTitle: _angular_core.InputSignal<string | undefined>;
812
- sendValues: _angular_core.InputSignal<((values: any) => Promise<any>) | undefined>;
813
- sending: _angular_core.OutputEmitterRef<boolean>;
814
- done: _angular_core.OutputEmitterRef<IActionsDone>;
815
- taskTocar: _angular_core.InputSignal<boolean>;
816
- taskSanitizar: _angular_core.InputSignal<boolean>;
817
- taskDisponiveis: _angular_core.InputSignal<boolean>;
818
- taskValidar: _angular_core.InputSignal<boolean>;
819
- taskEnviar: _angular_core.InputSignal<boolean>;
820
- tasksToSave: _angular_core.WritableSignal<ISaveTasks[]>;
821
- result: any;
822
- ngOnInit(): void;
823
- onSave(): Promise<void>;
824
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormAction<any>, never>;
825
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormAction<any>, "fields-form-action", never, { "hasOutline": { "alias": "hasOutline"; "required": false; "isSignal": true; }; "actionTitle": { "alias": "actionTitle"; "required": false; "isSignal": true; }; "sendValues": { "alias": "sendValues"; "required": false; "isSignal": true; }; "taskTocar": { "alias": "taskTocar"; "required": false; "isSignal": true; }; "taskSanitizar": { "alias": "taskSanitizar"; "required": false; "isSignal": true; }; "taskDisponiveis": { "alias": "taskDisponiveis"; "required": false; "isSignal": true; }; "taskValidar": { "alias": "taskValidar"; "required": false; "isSignal": true; }; "taskEnviar": { "alias": "taskEnviar"; "required": false; "isSignal": true; }; }, { "hasOutline": "hasOutlineChange"; "sending": "sending"; "done": "done"; }, never, ["*"], true, never>;
826
- }
827
-
828
- declare class FormNoAction<T> extends BaseFieldsValues<T> {
829
- onSave(): Promise<void>;
830
- hasOutline: _angular_core.ModelSignal<boolean>;
831
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormNoAction<any>, never>;
832
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormNoAction<any>, "fields-form-no-action", never, { "hasOutline": { "alias": "hasOutline"; "required": false; "isSignal": true; }; }, { "hasOutline": "hasOutlineChange"; }, never, never, true, never>;
833
- }
834
-
835
- type IModeShowEntidade = "centro" | "cantos" | "esquerda" | "grid" | "wrap";
836
- declare class FormatedValues {
837
- campos: _angular_core.InputSignal<IFieldComponent<any>[] | undefined>;
838
- dados: _angular_core.InputSignal<any>;
839
- modo: _angular_core.ModelSignal<IModeShowEntidade>;
840
- especialKeys: _angular_core.InputSignal<string[] | undefined>;
841
- ignoreKeys: _angular_core.InputSignal<string[] | undefined>;
842
- camposFormatados: _angular_core.Signal<{
843
- label: string;
844
- value: any;
845
- inputs: any;
846
- isEspecial: boolean;
847
- tipo: IField;
848
- prop: string;
849
- titulo?: string;
850
- area?: string;
851
- icone?: string;
852
- placeholder?: string;
853
- style?: string;
854
- classe?: string;
855
- hideLabel?: boolean;
856
- filter?: boolean;
857
- autofocus?: boolean;
858
- regras?: _masterkeymaterial_ui.IRegra[];
859
- maxl?: number;
860
- minl?: number;
861
- errors?: (string | undefined)[];
862
- dica?: string;
863
- onInput?: (form: _masterkeymaterial_ui.Formulario) => any;
864
- onChange?: (form: _masterkeymaterial_ui.Formulario) => any;
865
- readonly?: boolean;
866
- need?: boolean;
867
- touched?: boolean;
868
- disabled?: boolean;
869
- invalid?: boolean;
870
- empty?: boolean;
871
- pending?: boolean;
872
- tema?: _masterkeymaterial_ui.ITiposTema;
873
- tituloClicavel?: string;
874
- textoAtivo?: string;
875
- textoInativo?: string;
876
- tituloChave?: string;
877
- tituloValor?: string;
878
- rows?: number;
879
- cols?: number;
880
- mask?: string | ((valor?: string) => string);
881
- options?: _angular_core.WritableSignal<_masterkeymaterial_ui.IKV[]>;
882
- multiple?: boolean;
883
- canUnselect?: boolean;
884
- componente?: _angular_core.Type<any>;
885
- tipoBotao?: _masterkeymaterial_ui.ITipoBotao;
886
- onClick?: (form: _masterkeymaterial_ui.Formulario) => any;
887
- afterRefill?: (form: _masterkeymaterial_ui.Formulario, options: _masterkeymaterial_ui.IKV[] | null) => any;
888
- onMatchOption?: (form: _masterkeymaterial_ui.Formulario, option?: _masterkeymaterial_ui.IKV_ext) => any;
889
- onMatchOptionOnInit?: boolean;
890
- onComplete?: (form: _masterkeymaterial_ui.Formulario, value: any) => any;
891
- showHeader?: boolean;
892
- showToolbar?: boolean;
893
- accept?: string;
894
- refill?: (form: _masterkeymaterial_ui.Formulario) => Promise<_masterkeymaterial_ui.IKV[] | null>;
895
- mapear?: (r: any) => Promise<_masterkeymaterial_ui.IKV[] | null>;
896
- subFields?: _masterkeymaterial_ui.IFields<any>;
897
- isCollapsed?: () => boolean;
898
- getDisplay?: (value: any, form?: _masterkeymaterial_ui.Formulario) => any;
899
- textEmpty?: string;
900
- }[] | undefined>;
901
- getFormattedValue(campo: IFieldComponent<any>): any;
902
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormatedValues, never>;
903
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormatedValues, "ui-formated-values", never, { "campos": { "alias": "campos"; "required": false; "isSignal": true; }; "dados": { "alias": "dados"; "required": false; "isSignal": true; }; "modo": { "alias": "modo"; "required": false; "isSignal": true; }; "especialKeys": { "alias": "especialKeys"; "required": false; "isSignal": true; }; "ignoreKeys": { "alias": "ignoreKeys"; "required": false; "isSignal": true; }; }, { "modo": "modoChange"; }, never, never, true, never>;
904
- }
905
-
906
- declare class SingleValues {
907
- dados: _angular_core.InputSignal<any>;
908
- modo: _angular_core.ModelSignal<IModeShowEntidade>;
909
- especialKeys: _angular_core.InputSignal<string[] | undefined>;
910
- dadosAExibir: _angular_core.Signal<{
911
- label: string;
912
- value: any;
913
- isEspecial: boolean;
914
- }[]>;
915
- getNormalizedValue(value: any): any;
916
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SingleValues, never>;
917
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SingleValues, "ui-single-values", never, { "dados": { "alias": "dados"; "required": false; "isSignal": true; }; "modo": { "alias": "modo"; "required": false; "isSignal": true; }; "especialKeys": { "alias": "especialKeys"; "required": false; "isSignal": true; }; }, { "modo": "modoChange"; }, never, never, true, never>;
918
- }
919
-
920
- declare class FieldsGeneric extends BaseFieldsForm {
921
- readonly campos: _angular_core.Signal<_masterkeymaterial_ui.IFields<any>>;
922
- getComponentForType(tipo?: IField): any;
923
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldsGeneric, never>;
924
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldsGeneric, "fields-g", never, {}, {}, never, never, true, never>;
925
- }
926
-
927
- export { BaseFieldsForm, BaseFieldsValues, CampoDe, FieldsGeneric, FiltroDe, FormAction, FormFilter, FormNoAction, FormatedValues, Formulario, G_END, G_START, G_START_OPEN, IField, IRegraTipo, LOG, LOGC, LibUtil, Regra, SingleValues, UiButton, UiCheckBox, UiChip, UiDropZone, UiFileList, UiListErrors, UiLoading, UiMenu, UiProcurar, UiProgress, UiSelect, UiSlide };
928
- export type { IActionsDone, IClassOf, IDropOutput, IDropType, IDropZoneEvent, IFaseCampos, IFaseCamposAgrupados, IFases, IFieldComponent, IFields, IFileMetadata, IFormatter, IKV, IKV_ext, IModeShowEntidade, IOptionValue, IRegra, ISaveTasks, ITipoBotao, ITiposTema, IUtilFormatters, MapeamentoItem, UiProgressMode };