@apia/execution 4.0.19 → 4.0.20
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/dist/index.d.ts +1888 -1603
- package/dist/index.js +7186 -6033
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { IStringifyOptions } from 'qs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import * as _apia_notifications from '@apia/notifications';
|
|
3
|
+
import { TableController, Row, Cell, CellState } from '@apia/table2-controller';
|
|
4
|
+
import { DeepReadonly, EventEmitter as EventEmitter$1, TApiaLoad, TApiaFunction, Mutex, TApiaLoadForm } from '@apia/util';
|
|
5
|
+
import { MobXTree } from '@apia/tree2-controller';
|
|
6
|
+
import { ButtonProps } from 'theme-ui';
|
|
8
7
|
|
|
9
8
|
type TApiaButtonDefinition = TApiaFieldBaseDefinition<TApiaButtonProperties> & {
|
|
10
9
|
fieldType: 'button';
|
|
@@ -44,7 +43,7 @@ type TApiaInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputPropertie
|
|
|
44
43
|
qryId?: string;
|
|
45
44
|
qry_show_value?: string;
|
|
46
45
|
value: string | number;
|
|
47
|
-
valueType?: 'D';
|
|
46
|
+
valueType?: 'D' | 'S' | 'N';
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
type TApiaLinkDefinition = TApiaFieldBaseDefinition<TApiaLinkProperties> & {
|
|
@@ -72,6 +71,7 @@ type TApiaSelectDefinition = TApiaFieldWithAttributeBaseProps<TApiaSelectPropert
|
|
|
72
71
|
|
|
73
72
|
type TApiaLabelDefinition = TApiaFieldBaseDefinition<TApiaLabelProperties> & {
|
|
74
73
|
fieldType: 'label';
|
|
74
|
+
value: string;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
type TApiaTextAreaDefinition = TApiaFieldWithAttributeBaseProps<TApiaTextareaProperties> & {
|
|
@@ -90,14 +90,17 @@ type TApiaEditorDefinition = TApiaFieldWithAttributeBaseProps<TApiaEditorPropert
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
interface IApiaDataGridColumn {
|
|
93
|
+
dataType: 'S' | 'N' | 'D';
|
|
93
94
|
fldId: string;
|
|
95
|
+
fldType: string;
|
|
96
|
+
hasQuery: boolean;
|
|
94
97
|
title: string;
|
|
95
98
|
colTitle: string;
|
|
96
99
|
colWidth: string;
|
|
97
100
|
}
|
|
98
101
|
type TApiaGridField = TApiaFieldBaseDefinition<any> & {
|
|
99
|
-
fieldValue
|
|
100
|
-
row
|
|
102
|
+
fieldValue?: Pick<TApiaFieldWithAttributeBaseProps<any>, 'value' | 'properties' | 'qry_show_value'>;
|
|
103
|
+
row?: Pick<TApiaFieldWithAttributeBaseProps<any>, 'value' | 'properties'> & Pick<TApiaSelectProperties, 'possibleValue'>;
|
|
101
104
|
};
|
|
102
105
|
type TApiaGridDefinition = TApiaFieldBaseDefinition<TApiaGridProperties> & {
|
|
103
106
|
curPage?: number;
|
|
@@ -109,6 +112,7 @@ type TApiaGridDefinition = TApiaFieldBaseDefinition<TApiaGridProperties> & {
|
|
|
109
112
|
pages?: number;
|
|
110
113
|
rowCount?: number;
|
|
111
114
|
startIndex?: number;
|
|
115
|
+
hideMaximizeButton?: boolean;
|
|
112
116
|
};
|
|
113
117
|
|
|
114
118
|
type TApiaPasswordDefinition = TApiaFieldWithAttributeBaseProps<TApiaPasswordProperties> & {
|
|
@@ -167,6 +171,7 @@ type TApiaFieldWithAttributeBaseProps<T extends Record<any, any>> = TApiaFieldBa
|
|
|
167
171
|
attId: string;
|
|
168
172
|
attName: string;
|
|
169
173
|
attLabel: string;
|
|
174
|
+
qry_show_value?: any;
|
|
170
175
|
value: any;
|
|
171
176
|
valueType: TApiaFieldValueType;
|
|
172
177
|
trad?: string;
|
|
@@ -253,6 +258,7 @@ type TApiaFileProperties = TApiaFieldCommonProperties & TApiaGroupableFieldPrope
|
|
|
253
258
|
allowEdition?: boolean;
|
|
254
259
|
docType?: string;
|
|
255
260
|
documentMonitorCus?: number;
|
|
261
|
+
fileRootFolder?: string;
|
|
256
262
|
fileCollapseFldStrc?: boolean;
|
|
257
263
|
fileCollapseMetadata?: boolean;
|
|
258
264
|
fileCollapsePermission?: boolean;
|
|
@@ -267,6 +273,7 @@ type TApiaFileProperties = TApiaFieldCommonProperties & TApiaGroupableFieldPrope
|
|
|
267
273
|
fileShwFoldTreeStr?: boolean;
|
|
268
274
|
hideDocDownload?: boolean;
|
|
269
275
|
hideDocMetadata?: boolean;
|
|
276
|
+
hideDocPermissions?: boolean;
|
|
270
277
|
hideSignButtons?: boolean;
|
|
271
278
|
noLock?: boolean;
|
|
272
279
|
noErase?: boolean;
|
|
@@ -284,6 +291,7 @@ type TApiaGridProperties = TApiaFieldCommonProperties & {
|
|
|
284
291
|
gridTitle?: string;
|
|
285
292
|
hideAddButton?: boolean;
|
|
286
293
|
hideDelButton?: boolean;
|
|
294
|
+
hideDocInfoButton?: boolean;
|
|
287
295
|
hideDocMetadata?: boolean;
|
|
288
296
|
hideDocPermissions?: boolean;
|
|
289
297
|
hideGridButtons?: boolean;
|
|
@@ -293,6 +301,7 @@ type TApiaGridProperties = TApiaFieldCommonProperties & {
|
|
|
293
301
|
maxRecords?: number;
|
|
294
302
|
paged?: boolean;
|
|
295
303
|
pagedGridSize?: number;
|
|
304
|
+
hideMaximizeButton: boolean;
|
|
296
305
|
};
|
|
297
306
|
type TApiaHiddenProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {};
|
|
298
307
|
type TApiaImageProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & {
|
|
@@ -306,9 +315,11 @@ type TApiaInputProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldP
|
|
|
306
315
|
inputType?: string;
|
|
307
316
|
storeMdlQryResult?: boolean;
|
|
308
317
|
};
|
|
318
|
+
type TApiaSchedulerProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
319
|
+
a: string;
|
|
320
|
+
};
|
|
309
321
|
type TApiaLabelProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
310
322
|
underlined?: boolean;
|
|
311
|
-
value?: unknown;
|
|
312
323
|
};
|
|
313
324
|
type TApiaLinkProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
314
325
|
url?: string;
|
|
@@ -322,12 +333,12 @@ type TApiaPasswordProperties = TApiaFieldCommonProperties & TApiaGroupableFieldP
|
|
|
322
333
|
};
|
|
323
334
|
type RadioPossibleValue = {
|
|
324
335
|
value: string | number;
|
|
325
|
-
|
|
336
|
+
label: string;
|
|
326
337
|
selected?: boolean;
|
|
327
338
|
};
|
|
328
339
|
type SelectPossibleValue = {
|
|
329
340
|
value: string | number;
|
|
330
|
-
|
|
341
|
+
label: string;
|
|
331
342
|
selected?: boolean;
|
|
332
343
|
};
|
|
333
344
|
type TApiaRadioProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
@@ -337,7 +348,7 @@ type TApiaRadioProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProp
|
|
|
337
348
|
title?: string;
|
|
338
349
|
};
|
|
339
350
|
type TApiaSelectProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
340
|
-
possibleValue?: SelectPossibleValue
|
|
351
|
+
possibleValue?: SelectPossibleValue[];
|
|
341
352
|
autoFocus?: string;
|
|
342
353
|
placeHolder?: string;
|
|
343
354
|
autoComplete?: string;
|
|
@@ -361,8 +372,9 @@ type TApiaTreeProperties = TApiaFieldCommonProperties & TApiaFieldWithAttributeP
|
|
|
361
372
|
};
|
|
362
373
|
|
|
363
374
|
interface TApiaMessage {
|
|
364
|
-
text: string;
|
|
365
375
|
label?: string;
|
|
376
|
+
title: string;
|
|
377
|
+
text: string;
|
|
366
378
|
}
|
|
367
379
|
type ResponseSysMessages = {
|
|
368
380
|
sysMessages?: {
|
|
@@ -389,155 +401,6 @@ interface IApiaApiPostConfig<DataType> extends IApiaApiRequestConfig {
|
|
|
389
401
|
postDataTreatment?: 'stringify';
|
|
390
402
|
}
|
|
391
403
|
|
|
392
|
-
declare global {
|
|
393
|
-
interface Window {
|
|
394
|
-
[key: string]: string;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
declare function isJsonResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
398
|
-
declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
399
|
-
declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
400
|
-
declare class InvalidSessionException extends Error {
|
|
401
|
-
}
|
|
402
|
-
declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(response: AxiosResponse<string>) => Promise<(ResponseSysMessages & LoadType & {
|
|
403
|
-
onClose?: string | undefined;
|
|
404
|
-
code?: unknown;
|
|
405
|
-
load?: LoadType | undefined;
|
|
406
|
-
}) | ({
|
|
407
|
-
actions: unknown;
|
|
408
|
-
onClose: string | undefined;
|
|
409
|
-
exceptions: {
|
|
410
|
-
exception: TApiaMessage | TApiaMessage[];
|
|
411
|
-
} | undefined;
|
|
412
|
-
sysExceptions: {
|
|
413
|
-
exception: TApiaMessage | TApiaMessage[];
|
|
414
|
-
} | undefined;
|
|
415
|
-
sysMessages: {
|
|
416
|
-
message: TApiaMessage | TApiaMessage[];
|
|
417
|
-
} | undefined;
|
|
418
|
-
} & LoadType) | null>;
|
|
419
|
-
/**
|
|
420
|
-
* IMPORTANT!! The ApiaApi is programmed under the slogan that
|
|
421
|
-
* **should never throw an exception**. **Errors** coming from
|
|
422
|
-
* connectivity or exceptions on the server **will be handled
|
|
423
|
-
* automatically** by ApiaApi, using the notification system
|
|
424
|
-
* of the application. It is possible to determine in what context they should
|
|
425
|
-
* be thrown those exceptions (global, main, modal) using the
|
|
426
|
-
* alertsCategory configuration properties **(see errorsHandling.md)**.
|
|
427
|
-
*
|
|
428
|
-
* @param url String, the url you want to call
|
|
429
|
-
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
430
|
-
*
|
|
431
|
-
* @throws Nothing
|
|
432
|
-
*
|
|
433
|
-
* @example
|
|
434
|
-
*
|
|
435
|
-
* ApiaApi.post<ResponseType>('url...', {
|
|
436
|
-
axiosConfig?: AxiosRequestConfig;
|
|
437
|
-
|
|
438
|
-
// Configuración de postData
|
|
439
|
-
postData? unknown;
|
|
440
|
-
postDataTreatement?: 'stringify' | undefined;
|
|
441
|
-
|
|
442
|
-
// Configuración de queryString
|
|
443
|
-
queryData?: string | Record<string, unknown>;
|
|
444
|
-
stringifyOptions?: QueryString.IStringifyOptions;
|
|
445
|
-
|
|
446
|
-
// Response validator,
|
|
447
|
-
// If it returns true, everything continues correctly
|
|
448
|
-
// If it returns false, the ApiaApi throws a standard error.
|
|
449
|
-
// If it returns string, ApiaApi throws the error returned in the string.
|
|
450
|
-
validateResponse?: (
|
|
451
|
-
response: AxiosResponse<DataType | null>,
|
|
452
|
-
) => boolean | string;
|
|
453
|
-
|
|
454
|
-
// Configuración de alertas
|
|
455
|
-
alertsImportance?: TAlertImportance;
|
|
456
|
-
|
|
457
|
-
// Configuración de ApiaApiHandler, falta documentar
|
|
458
|
-
handleLoad?: boolean;
|
|
459
|
-
eventsHandler?: IEventsHandler;
|
|
460
|
-
|
|
461
|
-
// other configuration
|
|
462
|
-
colors?: TColors;
|
|
463
|
-
debug?: boolean;
|
|
464
|
-
}
|
|
465
|
-
* @returns The type of the return value depends on the type passed when calling the function. If there was an error it returns null.
|
|
466
|
-
*/
|
|
467
|
-
declare function post<LoadType extends Record<string, unknown> = Record<string, unknown>, DataType = unknown, T = unknown>(actualUrl: string, behaveConfig?: IApiaApiPostConfig<DataType>): TApiaApiResult<LoadType>;
|
|
468
|
-
/**
|
|
469
|
-
* IMPORTANTE!! El ApiaApi está programado bajo la consigna de que
|
|
470
|
-
* **no debe tirar núnca una excepción**. **Los errores** provenientes
|
|
471
|
-
* de la conectividad o de excepciones en el servidor **serán manejados
|
|
472
|
-
* automáticamente** por el ApiaApi utilizando el sistema de notificaciones
|
|
473
|
-
* de la aplicación. Es posible determinar en qué contexto deben
|
|
474
|
-
* ser lanzadas esas excepciones (global, main, modal) utilizando las
|
|
475
|
-
* propiedades de configuración alertsCategory **(ver errorsHandling.md)**.
|
|
476
|
-
*
|
|
477
|
-
* @param url String, el url al que se desea llamar
|
|
478
|
-
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
479
|
-
*
|
|
480
|
-
* @throws Nothing
|
|
481
|
-
*
|
|
482
|
-
* @example
|
|
483
|
-
*
|
|
484
|
-
* ApiaApi.get<TipoDeRespuesta>('url...', {
|
|
485
|
-
axiosConfig?: AxiosRequestConfig;
|
|
486
|
-
|
|
487
|
-
// Configuración de queryString
|
|
488
|
-
queryData?: string | Record<string, unknown>;
|
|
489
|
-
stringifyOptions?: QueryString.IStringifyOptions;
|
|
490
|
-
|
|
491
|
-
// Validador de respuesta,
|
|
492
|
-
// Si devuelve true, todo sigue correctamente
|
|
493
|
-
// Si devuelve false, el ApiaApi tira un error estándar.
|
|
494
|
-
// Si devuelve string, el ApiaApi tira el error devuelto en el string.
|
|
495
|
-
validateResponse?: (
|
|
496
|
-
response: AxiosResponse<DataType | null>,
|
|
497
|
-
) => boolean | string;
|
|
498
|
-
|
|
499
|
-
// Configuración de alertas
|
|
500
|
-
alertsImportance?: TAlertImportance;
|
|
501
|
-
|
|
502
|
-
// Configuración de ApiaApiHandler, falta documentar
|
|
503
|
-
handleLoad?: boolean;
|
|
504
|
-
eventsHandler?: IEventsHandler;
|
|
505
|
-
|
|
506
|
-
// Otra configuración
|
|
507
|
-
colors?: TColors;
|
|
508
|
-
debug?: boolean;
|
|
509
|
-
}
|
|
510
|
-
* @returns El tipo del valor devuelto depende del tipo pasado al llamar a la función. Si hubo un error devuelve null
|
|
511
|
-
*/
|
|
512
|
-
declare function get<LoadType extends Record<string, unknown> = Record<string, unknown>, T = unknown, D = unknown>(actualUrl: string, behaveConfig?: IApiaApiRequestConfig): TApiaApiResult<LoadType>;
|
|
513
|
-
type MakeApiaUrlProps = {
|
|
514
|
-
action?: string;
|
|
515
|
-
ajaxUrl?: string;
|
|
516
|
-
queryString?: string;
|
|
517
|
-
stringifyOptions?: IStringifyOptions;
|
|
518
|
-
tabId?: string | number;
|
|
519
|
-
preventAsXmlParameter?: boolean;
|
|
520
|
-
avoidTabId?: boolean;
|
|
521
|
-
[key: string]: unknown;
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* Creates an url based on the general requirements of Apia.
|
|
525
|
-
* If the ajaxUrl property is not passed, it will use the
|
|
526
|
-
* window.URL_REQUEST_AJAX. Its use is very simple, just pass the objects you
|
|
527
|
-
* want to appear in the query string.
|
|
528
|
-
*
|
|
529
|
-
* @example makeApiaUrl({
|
|
530
|
-
* ajaxUrl: 'the.endpoint.you.want',
|
|
531
|
-
* queryString: 'an=existent&query=string',
|
|
532
|
-
* action: 'theAction',
|
|
533
|
-
* anotherProp: 15
|
|
534
|
-
* })
|
|
535
|
-
*
|
|
536
|
-
* @returns the well formed url, in the example, the response url is:
|
|
537
|
-
* /context/the.endpoint.you.want?an=existent&query=string&anotherProp=15&tabId=...&tokenId=...&action=theAction
|
|
538
|
-
*/
|
|
539
|
-
declare function makeApiaUrl(props?: MakeApiaUrlProps): string;
|
|
540
|
-
|
|
541
404
|
type TFormEventName = 'onLoad' | 'onSubmit' | 'onReload' | 'onBeforePrint' | 'onAfterPrint';
|
|
542
405
|
type TFrmParent = 'E' | 'P';
|
|
543
406
|
type TFormScriptEventParameters = {
|
|
@@ -553,8 +416,6 @@ type TFormScriptEvent = {
|
|
|
553
416
|
};
|
|
554
417
|
type TFormScriptEvents = TFormScriptEvent[];
|
|
555
418
|
type TApiaFormProperties = {
|
|
556
|
-
readOnly?: boolean;
|
|
557
|
-
readonly?: boolean;
|
|
558
419
|
frmHidden?: boolean;
|
|
559
420
|
prpFrmClosed?: boolean;
|
|
560
421
|
frmHighlight?: boolean;
|
|
@@ -643,6 +504,8 @@ declare const shallowEqual: Comparator$1<any>;
|
|
|
643
504
|
|
|
644
505
|
type SetValueOptions = Partial<{
|
|
645
506
|
comparator: Comparator$1<any>;
|
|
507
|
+
format: 'd/m/Y' | 'apia';
|
|
508
|
+
markAsDirty: boolean;
|
|
646
509
|
synchronize: boolean;
|
|
647
510
|
}>;
|
|
648
511
|
type FireEventParameters = Record<string, unknown>;
|
|
@@ -718,9 +581,11 @@ type SetStateAction<S> = S | ((prevState: S) => S);
|
|
|
718
581
|
|
|
719
582
|
declare class WithProperties<Props extends Record<string, any>> {
|
|
720
583
|
properties: Props;
|
|
584
|
+
private parentGrid;
|
|
721
585
|
constructor(initialState?: Props);
|
|
722
586
|
getProperty<K extends keyof Props>(propName: K): Props[K];
|
|
723
587
|
setProperty<K extends keyof Props>(propName: K, propValue: SetStateAction<Props[K]>): void;
|
|
588
|
+
setParentGrid(grid: Grid): this;
|
|
724
589
|
}
|
|
725
590
|
|
|
726
591
|
declare class Attribute {
|
|
@@ -736,7 +601,7 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
736
601
|
readonly attribute: Attribute;
|
|
737
602
|
constructor({ attId, attName, attLabel, valueType, value, ...definition }: TApiaFieldWithAttributeBaseProps<FieldProps>);
|
|
738
603
|
fireEvent(eventName: string): Promise<boolean>;
|
|
739
|
-
protected getInitialValue({ value, }: TApiaFieldWithAttributeBaseProps<FieldProps>): ValueType
|
|
604
|
+
protected getInitialValue({ value, }: TApiaFieldWithAttributeBaseProps<FieldProps>): Promise<ValueType>;
|
|
740
605
|
getValidationState(): FieldValidationState;
|
|
741
606
|
getValue(): ValueType;
|
|
742
607
|
setValue(newValue: ValueType, options?: SetValueOptions): Promise<boolean>;
|
|
@@ -744,8 +609,11 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
744
609
|
protected getSynchronizeUrl(params?: Record<string, unknown>): string;
|
|
745
610
|
protected processSynchronizeError(e: unknown): void;
|
|
746
611
|
protected synchronize(newValue: ValueType): Promise<boolean>;
|
|
612
|
+
protected isValidValue(): boolean;
|
|
747
613
|
validate(): Promise<boolean>;
|
|
614
|
+
setError(err: string): void;
|
|
748
615
|
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
616
|
+
init(form: Form): Promise<void>;
|
|
749
617
|
}
|
|
750
618
|
|
|
751
619
|
type TCustomComponentState = {
|
|
@@ -756,12 +624,13 @@ type TCustomComponentState = {
|
|
|
756
624
|
};
|
|
757
625
|
declare class CustomComponent {
|
|
758
626
|
#private;
|
|
627
|
+
execution: Execution;
|
|
759
628
|
readonly definition: TCustomComponentDefinition;
|
|
760
629
|
form: Form;
|
|
761
630
|
private _state;
|
|
762
|
-
constructor(definition: TCustomComponentDefinition);
|
|
631
|
+
constructor(execution: Execution, definition: TCustomComponentDefinition);
|
|
763
632
|
get state(): DeepReadonly<TCustomComponentState>;
|
|
764
|
-
getAdditional<T>():
|
|
633
|
+
getAdditional<T>(): DeepReadonly<T>;
|
|
765
634
|
init(form: Form): Promise<void>;
|
|
766
635
|
private parseStateObject;
|
|
767
636
|
processResult(res?: TCustomComponentDefaultResponse | null): Promise<void>;
|
|
@@ -779,22 +648,23 @@ declare class CustomComponent {
|
|
|
779
648
|
}
|
|
780
649
|
|
|
781
650
|
declare class Form extends WithProperties<TApiaFormProperties> {
|
|
651
|
+
execution: Execution;
|
|
782
652
|
fields: TApiaFieldBaseDefinition<Record<string, any>>[];
|
|
783
653
|
state: {
|
|
784
654
|
isMarkedToSign: boolean;
|
|
785
655
|
};
|
|
786
656
|
protected _customComponents: Map<string, CustomComponent>;
|
|
787
657
|
protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
788
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>,
|
|
658
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
789
659
|
}>>;
|
|
790
660
|
protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
791
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>,
|
|
661
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
792
662
|
}>>;
|
|
793
663
|
protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
794
664
|
protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
795
665
|
protected fieldsGroups: Map<string, Grid>;
|
|
796
666
|
definition: TApiaForm;
|
|
797
|
-
constructor(definition: TApiaForm);
|
|
667
|
+
constructor(execution: Execution, definition: TApiaForm);
|
|
798
668
|
get allFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
799
669
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
800
670
|
}>[];
|
|
@@ -805,7 +675,7 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
805
675
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
806
676
|
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
807
677
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
808
|
-
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
678
|
+
}> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
809
679
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
810
680
|
}>[] | undefined;
|
|
811
681
|
getFieldByAttributeId(attId: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
@@ -825,8 +695,7 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
825
695
|
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
826
696
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
827
697
|
}>[] | undefined;
|
|
828
|
-
getFieldByName(name: string): Field | Field[] | undefined;
|
|
829
|
-
getFieldByName(name: string, index: number): Field | undefined;
|
|
698
|
+
getFieldByName(name: string, index?: number): Field | Field[] | undefined;
|
|
830
699
|
protected getHiddenFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
831
700
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
832
701
|
}>[];
|
|
@@ -842,73 +711,9 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
842
711
|
addFieldToRender(fldId: string, fldIndex?: number): void;
|
|
843
712
|
markFieldAsRendered(fldId: string, fldIndex?: number): void;
|
|
844
713
|
init(): Promise<void>;
|
|
845
|
-
runEvent(eventType: TFormEventName): Promise<void>;
|
|
846
|
-
validate(): Promise<true | Field>;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
type TFncParams = {
|
|
850
|
-
type: 'V' | 'P' | 'E';
|
|
851
|
-
value?: string;
|
|
852
|
-
attId?: string | number;
|
|
853
|
-
};
|
|
854
|
-
declare abstract class Field<FieldProps extends TApiaFieldCommonProperties = TApiaFieldCommonProperties, FieldDefinition extends TApiaFieldBaseDefinition<FieldProps> = TApiaFieldBaseDefinition<FieldProps>, State extends {
|
|
855
|
-
definition: Omit<FieldDefinition, 'properties'>;
|
|
856
|
-
} = {
|
|
857
|
-
definition: Omit<FieldDefinition, 'properties'>;
|
|
858
|
-
}> extends WithProperties<FieldProps> {
|
|
859
|
-
#private;
|
|
860
|
-
protected form: Form;
|
|
861
|
-
definition: State['definition'];
|
|
862
|
-
state: Omit<State, 'definition'> & {
|
|
863
|
-
validation: FieldValidationState;
|
|
864
|
-
};
|
|
865
|
-
constructor({ properties, ...definition }: FieldDefinition);
|
|
866
714
|
protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
protected fireAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
870
|
-
protected fireNoAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
871
|
-
protected fireServerEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
872
|
-
fireEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
873
|
-
getForm(): Form;
|
|
874
|
-
protected hasEventsOfType(eventName: string): TFieldScriptEvent | TFieldServerEvent | undefined;
|
|
875
|
-
protected hasServerAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
876
|
-
protected hasServerNoAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
877
|
-
init(form: Form): Promise<void>;
|
|
878
|
-
validate(): Promise<boolean | Field>;
|
|
879
|
-
markAsRendered(): void;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
type ButtonEvents = 'onClick';
|
|
883
|
-
declare class Button extends Field<TApiaButtonProperties> {
|
|
884
|
-
fireEvent(eventName: ButtonEvents): Promise<boolean>;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
declare class Captcha extends Field<TApiaCaptchaProperties, TApiaFieldBaseDefinition<TApiaCaptchaProperties>, {
|
|
888
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaCaptchaProperties>, 'properties'>;
|
|
889
|
-
value: string;
|
|
890
|
-
url: string;
|
|
891
|
-
}> {
|
|
892
|
-
private static emitter;
|
|
893
|
-
static reload(): void;
|
|
894
|
-
private id;
|
|
895
|
-
private static confirmParams;
|
|
896
|
-
static getConfirmParams(): Record<string, string>;
|
|
897
|
-
constructor(definition: TApiaCaptchaProperties);
|
|
898
|
-
init(form: Form): Promise<void>;
|
|
899
|
-
private getCaptchaId;
|
|
900
|
-
getUrl(): string;
|
|
901
|
-
generateImgUrl(): void;
|
|
902
|
-
generateVoiceUrl(): string;
|
|
903
|
-
getId(): string;
|
|
904
|
-
setValue(value: string): void;
|
|
905
|
-
validate(): Promise<boolean>;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
type CheckboxEvents = 'onClick';
|
|
909
|
-
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
910
|
-
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
911
|
-
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): boolean;
|
|
715
|
+
fireScriptEvent(eventName: TFormEventName): Promise<boolean>;
|
|
716
|
+
validate(): Promise<true | Field>;
|
|
912
717
|
}
|
|
913
718
|
|
|
914
719
|
type TTranslationState = {
|
|
@@ -921,8 +726,9 @@ type TTranslationState = {
|
|
|
921
726
|
};
|
|
922
727
|
|
|
923
728
|
declare class Translation {
|
|
729
|
+
execution: Execution;
|
|
924
730
|
state: TTranslationState;
|
|
925
|
-
constructor(state: Pick<TTranslationState, 'id' | 'label' | 'isTranslated'>);
|
|
731
|
+
constructor(execution: Execution, state: Pick<TTranslationState, 'id' | 'label' | 'isTranslated'>);
|
|
926
732
|
cancelTranslation(): void;
|
|
927
733
|
readTranslations(url: string): Promise<void>;
|
|
928
734
|
reset(): void;
|
|
@@ -954,10 +760,8 @@ declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFie
|
|
|
954
760
|
validate(): Promise<boolean>;
|
|
955
761
|
}
|
|
956
762
|
|
|
957
|
-
type
|
|
958
|
-
|
|
959
|
-
fireEvent(eventName: EditorEvents): Promise<boolean>;
|
|
960
|
-
}
|
|
763
|
+
type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
|
|
764
|
+
type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
|
|
961
765
|
|
|
962
766
|
type NotificationIcon = string;
|
|
963
767
|
type NotificationType = 'info' | 'error' | 'success' | 'warning';
|
|
@@ -983,35 +787,147 @@ declare abstract class Notification<State extends NotificationDefinition = Notif
|
|
|
983
787
|
get type(): NotificationType | undefined;
|
|
984
788
|
}
|
|
985
789
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
id: string;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
790
|
+
declare class Notifications {
|
|
791
|
+
execution: Execution;
|
|
792
|
+
private emitter;
|
|
793
|
+
constructor(execution: Execution);
|
|
794
|
+
protected notifications: Notification[];
|
|
795
|
+
add(notification: Notification): void;
|
|
796
|
+
closeTab(): void;
|
|
797
|
+
getAll(): Notification<NotificationDefinition>[];
|
|
798
|
+
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
799
|
+
remove(notification: string | number | Notification): void;
|
|
800
|
+
on: <K extends "closeTab" | "notification">(event: K, cb: Callback<{
|
|
801
|
+
closeTab: null;
|
|
802
|
+
notification: Notification;
|
|
803
|
+
}, K>) => UnSubscriber;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
type TProcess = {
|
|
807
|
+
calendar: {
|
|
808
|
+
fixed: boolean;
|
|
809
|
+
label: string;
|
|
810
|
+
name: string;
|
|
811
|
+
options: {
|
|
812
|
+
label: string;
|
|
813
|
+
value: string;
|
|
814
|
+
selected: boolean;
|
|
815
|
+
}[];
|
|
816
|
+
toolTip: string;
|
|
817
|
+
value: string;
|
|
818
|
+
viewButton: {
|
|
819
|
+
label: string;
|
|
820
|
+
toolTip: string;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
comments: {
|
|
824
|
+
currentComment: string;
|
|
825
|
+
addMarker: boolean;
|
|
826
|
+
markAll: boolean;
|
|
827
|
+
deleteMarker: boolean;
|
|
828
|
+
history: {
|
|
829
|
+
comment: string;
|
|
830
|
+
marked: boolean;
|
|
831
|
+
date: string;
|
|
832
|
+
user: string;
|
|
833
|
+
}[];
|
|
834
|
+
};
|
|
835
|
+
identifier: {
|
|
836
|
+
body: {
|
|
837
|
+
name: string;
|
|
838
|
+
required: boolean;
|
|
839
|
+
toolTip: string;
|
|
840
|
+
type: 'fixed' | 'custom';
|
|
841
|
+
value: string;
|
|
842
|
+
};
|
|
843
|
+
label: string;
|
|
844
|
+
prefix: {
|
|
845
|
+
label: string;
|
|
846
|
+
name: string;
|
|
847
|
+
toolTip: string;
|
|
848
|
+
type: 'fixed' | 'custom' | 'none';
|
|
849
|
+
value: string;
|
|
850
|
+
};
|
|
851
|
+
required: boolean;
|
|
852
|
+
suffix: {
|
|
853
|
+
label: string;
|
|
854
|
+
name: string;
|
|
855
|
+
toolTip: string;
|
|
856
|
+
type: 'fixed' | 'custom' | 'none';
|
|
857
|
+
value: string;
|
|
858
|
+
};
|
|
859
|
+
toolTip: string;
|
|
860
|
+
value: string;
|
|
861
|
+
};
|
|
862
|
+
priority: {
|
|
863
|
+
disabled: boolean;
|
|
864
|
+
isMonitor: boolean;
|
|
865
|
+
label: string;
|
|
866
|
+
name: string;
|
|
867
|
+
options: {
|
|
868
|
+
label: string;
|
|
869
|
+
value: string;
|
|
870
|
+
selected: boolean;
|
|
871
|
+
}[];
|
|
872
|
+
toolTip: string;
|
|
873
|
+
value: string;
|
|
874
|
+
};
|
|
875
|
+
process: {
|
|
876
|
+
label: string;
|
|
877
|
+
toolTip: string;
|
|
878
|
+
value: string;
|
|
879
|
+
};
|
|
880
|
+
processAction: {
|
|
881
|
+
label: string;
|
|
882
|
+
toolTip: string;
|
|
883
|
+
value: string;
|
|
884
|
+
};
|
|
885
|
+
separator: string;
|
|
886
|
+
status?: {
|
|
887
|
+
label: string;
|
|
888
|
+
toolTip: string;
|
|
889
|
+
value: string;
|
|
890
|
+
};
|
|
891
|
+
title: string;
|
|
892
|
+
user: {
|
|
893
|
+
label: string;
|
|
894
|
+
toolTIp: string;
|
|
895
|
+
value: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* El comportamiento de esta función se explica por su
|
|
901
|
+
* nombre.
|
|
902
|
+
*/
|
|
903
|
+
declare function returnExactlyTheSame(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
904
|
+
declare const parseFileDefinition: (execution: Execution, fileDefinition: TFileUploaded | TUploaderFileInfo, isSignRequired: boolean) => TUploaderFileInfo;
|
|
905
|
+
type TOnUploadProgress = (progress: number) => void;
|
|
906
|
+
declare class UploaderApi extends EventEmitter$1<{
|
|
907
|
+
fileUploaded: null;
|
|
908
|
+
}> {
|
|
909
|
+
execution: Execution;
|
|
910
|
+
id: string;
|
|
911
|
+
type: 'E' | 'P';
|
|
912
|
+
modalConfig: TModalConfig;
|
|
913
|
+
maxFiles: number;
|
|
914
|
+
modalController: UploaderModalController | null;
|
|
915
|
+
allowTranslations: boolean;
|
|
916
|
+
langs: Record<number, string> | undefined;
|
|
917
|
+
currentConfiguration: TUploaderLoadCurrentFunctionMessages | undefined;
|
|
918
|
+
docTypePermittedObjId: string | undefined;
|
|
919
|
+
state: UploaderState;
|
|
920
|
+
get filesArray(): TUploaderFileInfo[];
|
|
921
|
+
constructor(execution: Execution, id: string, type: 'E' | 'P', modalConfig: TModalConfig);
|
|
922
|
+
init(): Promise<void>;
|
|
923
|
+
onStartUpload(files?: File[]): Promise<void>;
|
|
924
|
+
onTranslateUpload(conf: {
|
|
925
|
+
langId: number;
|
|
926
|
+
translatingFile: TUploaderFileInfo;
|
|
927
|
+
}): Promise<void>;
|
|
928
|
+
onVersionUpload(file: TUploaderFileInfo, conf?: {
|
|
929
|
+
newFiles?: File[];
|
|
930
|
+
langId?: number;
|
|
1015
931
|
translatingFile?: TUploaderFileInfo;
|
|
1016
932
|
}): Promise<void>;
|
|
1017
933
|
autoLock(): Promise<boolean>;
|
|
@@ -1056,7 +972,7 @@ declare class UploaderApi {
|
|
|
1056
972
|
docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
|
|
1057
973
|
};
|
|
1058
974
|
};
|
|
1059
|
-
} &
|
|
975
|
+
} & ResponseSysMessages) | null>;
|
|
1060
976
|
/**
|
|
1061
977
|
* This method searches for the provided id in several places:
|
|
1062
978
|
*
|
|
@@ -1078,9 +994,9 @@ declare class UploaderApi {
|
|
|
1078
994
|
}>, additionalProps?: Record<string, unknown>): Promise<void>;
|
|
1079
995
|
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<void>;
|
|
1080
996
|
checkWebDavLock(docId: string): Promise<unknown>;
|
|
1081
|
-
checkSignature(file: TUploaderFileInfo): Promise<
|
|
997
|
+
checkSignature(file: TUploaderFileInfo): Promise<TApiaApiAxiosResponse<({
|
|
1082
998
|
markedToSign: boolean;
|
|
1083
|
-
} &
|
|
999
|
+
} & ResponseSysMessages) | null> | null>;
|
|
1084
1000
|
editDocument(id: string): Promise<void>;
|
|
1085
1001
|
downloadDocument(id: string, version?: string): Promise<void>;
|
|
1086
1002
|
ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
|
|
@@ -1118,8 +1034,7 @@ declare class UploaderApi {
|
|
|
1118
1034
|
poolsPermissions: IPoolsPermissions[];
|
|
1119
1035
|
usersPermissions: IUsersPermissions[];
|
|
1120
1036
|
}) => string;
|
|
1121
|
-
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | [
|
|
1122
|
-
]) => string;
|
|
1037
|
+
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | []) => string;
|
|
1123
1038
|
protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
|
|
1124
1039
|
protected getClearTempFilesParameters: typeof returnExactlyTheSame;
|
|
1125
1040
|
protected getDocumentInfoParameters: typeof returnExactlyTheSame;
|
|
@@ -1149,15 +1064,15 @@ declare class UploaderModalController {
|
|
|
1149
1064
|
api: UploaderApi;
|
|
1150
1065
|
modalConfig: TModalConfig;
|
|
1151
1066
|
conf?: {
|
|
1152
|
-
langId?: number
|
|
1153
|
-
translatingFile?: TUploaderFileInfo
|
|
1154
|
-
versionFile?: TUploaderFileInfo
|
|
1067
|
+
langId?: number;
|
|
1068
|
+
translatingFile?: TUploaderFileInfo;
|
|
1069
|
+
versionFile?: TUploaderFileInfo;
|
|
1155
1070
|
} | undefined;
|
|
1156
1071
|
state: UploaderModalState;
|
|
1157
1072
|
constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
|
|
1158
|
-
langId?: number
|
|
1159
|
-
translatingFile?: TUploaderFileInfo
|
|
1160
|
-
versionFile?: TUploaderFileInfo
|
|
1073
|
+
langId?: number;
|
|
1074
|
+
translatingFile?: TUploaderFileInfo;
|
|
1075
|
+
versionFile?: TUploaderFileInfo;
|
|
1161
1076
|
} | undefined);
|
|
1162
1077
|
get allMetadata(): TDocumentMetadata[];
|
|
1163
1078
|
get allowAllType(): "" | "M" | "R";
|
|
@@ -1301,6 +1216,7 @@ type TDocumentMetadata = {
|
|
|
1301
1216
|
type: 'S' | 'N' | 'D';
|
|
1302
1217
|
value: string;
|
|
1303
1218
|
errorMessage: string;
|
|
1219
|
+
labelErrorMessage: string;
|
|
1304
1220
|
};
|
|
1305
1221
|
type TModalConfig = {
|
|
1306
1222
|
allowDocumentsMonitor: boolean;
|
|
@@ -1311,6 +1227,7 @@ type TModalConfig = {
|
|
|
1311
1227
|
defaultDirectory?: number;
|
|
1312
1228
|
monitorId?: number;
|
|
1313
1229
|
oneClickUpload: boolean;
|
|
1230
|
+
rootFolder?: string;
|
|
1314
1231
|
showDirectoriesStructure: boolean;
|
|
1315
1232
|
showExpDate: boolean;
|
|
1316
1233
|
showPermissions: boolean;
|
|
@@ -1437,10 +1354,11 @@ type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof
|
|
|
1437
1354
|
}[Keys];
|
|
1438
1355
|
|
|
1439
1356
|
declare class FormsUploader extends UploaderApi {
|
|
1440
|
-
|
|
1357
|
+
execution: Execution;
|
|
1358
|
+
type: 'E' | 'P';
|
|
1441
1359
|
modalConfig: TModalConfig;
|
|
1442
|
-
|
|
1443
|
-
constructor(type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
|
|
1360
|
+
private field;
|
|
1361
|
+
constructor(execution: Execution, type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
|
|
1444
1362
|
isEditionMode: boolean | undefined;
|
|
1445
1363
|
index(): number;
|
|
1446
1364
|
elemId(): string;
|
|
@@ -1548,1462 +1466,1829 @@ declare class FormsUploader extends UploaderApi {
|
|
|
1548
1466
|
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf | undefined): Promise<void>;
|
|
1549
1467
|
}
|
|
1550
1468
|
|
|
1551
|
-
declare class
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1469
|
+
declare class Process {
|
|
1470
|
+
execution: Execution;
|
|
1471
|
+
state: TProcess | null;
|
|
1472
|
+
uploader: UploaderApi;
|
|
1473
|
+
constructor(execution: Execution);
|
|
1474
|
+
get name(): string | undefined;
|
|
1475
|
+
private hasInited;
|
|
1476
|
+
init(): Promise<void>;
|
|
1477
|
+
getConfirmParams(): {
|
|
1478
|
+
cmbProPri: string | undefined;
|
|
1479
|
+
selCal: string | undefined;
|
|
1480
|
+
};
|
|
1481
|
+
setPriority(newPriority: string): void;
|
|
1559
1482
|
}
|
|
1560
1483
|
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1484
|
+
declare class Task {
|
|
1485
|
+
#private;
|
|
1486
|
+
constructor(task: any);
|
|
1487
|
+
setPriority(newPriority: string): void;
|
|
1488
|
+
get name(): string;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
type TEntity = {
|
|
1565
1492
|
title: string;
|
|
1566
|
-
|
|
1493
|
+
readOnly: boolean;
|
|
1494
|
+
separator: string;
|
|
1495
|
+
associations: Associations[];
|
|
1496
|
+
date: {
|
|
1497
|
+
label: string;
|
|
1498
|
+
toolTip: string;
|
|
1499
|
+
value: string;
|
|
1500
|
+
};
|
|
1501
|
+
entityType: {
|
|
1502
|
+
label: string;
|
|
1503
|
+
toolTip: string;
|
|
1504
|
+
value: string;
|
|
1505
|
+
};
|
|
1506
|
+
identifier: {
|
|
1507
|
+
label: string;
|
|
1508
|
+
toolTip: string;
|
|
1509
|
+
value?: string;
|
|
1510
|
+
prefix?: {
|
|
1511
|
+
name: string;
|
|
1512
|
+
type: 'custom' | 'fixed' | 'none';
|
|
1513
|
+
label?: string;
|
|
1514
|
+
toolTip?: string;
|
|
1515
|
+
value?: string;
|
|
1516
|
+
};
|
|
1517
|
+
body: {
|
|
1518
|
+
type: 'autogenerated' | 'sameAsProcess';
|
|
1519
|
+
label: string;
|
|
1520
|
+
name?: string;
|
|
1521
|
+
toolTip?: string;
|
|
1522
|
+
value?: string;
|
|
1523
|
+
required?: false;
|
|
1524
|
+
} | {
|
|
1525
|
+
label: string;
|
|
1526
|
+
toolTip?: string;
|
|
1527
|
+
value?: string;
|
|
1528
|
+
type: 'custom';
|
|
1529
|
+
required: boolean;
|
|
1530
|
+
name: string;
|
|
1531
|
+
};
|
|
1532
|
+
suffix?: {
|
|
1533
|
+
name: string;
|
|
1534
|
+
type: 'custom' | 'fixed' | 'none';
|
|
1535
|
+
toolTip?: string;
|
|
1536
|
+
label?: string;
|
|
1537
|
+
value?: string;
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
image: {
|
|
1541
|
+
label: string;
|
|
1542
|
+
toolTip: string;
|
|
1543
|
+
file: File | null;
|
|
1544
|
+
};
|
|
1545
|
+
status: {
|
|
1546
|
+
name: string;
|
|
1547
|
+
label: string;
|
|
1548
|
+
toolTip: string;
|
|
1549
|
+
type: 'fixex' | 'select' | 'none';
|
|
1550
|
+
value?: string;
|
|
1551
|
+
disabled?: boolean;
|
|
1552
|
+
options: {
|
|
1553
|
+
label: string;
|
|
1554
|
+
value: string;
|
|
1555
|
+
selected: boolean;
|
|
1556
|
+
}[];
|
|
1557
|
+
};
|
|
1558
|
+
user: {
|
|
1559
|
+
label: string;
|
|
1560
|
+
name: string;
|
|
1561
|
+
toolTip: string;
|
|
1562
|
+
};
|
|
1563
|
+
categories: TCategory[] | [];
|
|
1564
|
+
visibilities: PoolId[];
|
|
1567
1565
|
};
|
|
1568
|
-
type
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1566
|
+
type TCategory = {
|
|
1567
|
+
checked: boolean;
|
|
1568
|
+
envId: string;
|
|
1569
|
+
id: string;
|
|
1570
|
+
idFather: string;
|
|
1571
|
+
name: string;
|
|
1574
1572
|
};
|
|
1575
|
-
type
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1573
|
+
type PoolId = {
|
|
1574
|
+
poolId: string;
|
|
1575
|
+
poolName: string;
|
|
1576
|
+
canUpdate: boolean;
|
|
1579
1577
|
};
|
|
1580
|
-
type
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
pageSize: number;
|
|
1585
|
-
paged: boolean;
|
|
1578
|
+
type Associations = {
|
|
1579
|
+
asocName: string;
|
|
1580
|
+
asocId: string;
|
|
1581
|
+
asocRelName: string;
|
|
1586
1582
|
};
|
|
1587
|
-
type GridProps = FieldWithIndexedFieldsProps & TApiaGridProperties & {
|
|
1588
|
-
/**
|
|
1589
|
-
* Mostrar u ocultar botones de eliminar específicos según fila
|
|
1590
|
-
*/
|
|
1591
|
-
shownDeleteButtons: Map<string | number, boolean>;
|
|
1592
|
-
/**
|
|
1593
|
-
* Mostrar u ocultar botones de edición específicos según fila
|
|
1594
|
-
*/
|
|
1595
|
-
shownEditionButtons: Map<string | number, boolean>;
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
type GridEditionModal = {
|
|
1599
|
-
close: () => unknown;
|
|
1600
|
-
open: () => unknown;
|
|
1601
|
-
};
|
|
1602
|
-
|
|
1603
|
-
type GridFooterHandlerState = {
|
|
1604
|
-
isSortUpDisabled: boolean;
|
|
1605
|
-
isSortDownDisabled: boolean;
|
|
1606
|
-
};
|
|
1607
|
-
declare class GridFooterHandler {
|
|
1608
|
-
#private;
|
|
1609
|
-
private grid;
|
|
1610
|
-
state: GridFooterHandlerState;
|
|
1611
|
-
constructor(grid: Grid);
|
|
1612
|
-
private init;
|
|
1613
|
-
get showAddButton(): boolean;
|
|
1614
|
-
get showDelButton(): boolean;
|
|
1615
|
-
get showSortButtons(): boolean;
|
|
1616
|
-
get isSortUpDisabled(): boolean;
|
|
1617
|
-
get isSortDownDisabled(): boolean;
|
|
1618
|
-
get isAddDisabled(): boolean;
|
|
1619
|
-
get isDeleteDisabled(): boolean;
|
|
1620
|
-
sortUp(): Promise<void>;
|
|
1621
|
-
sortDown(): Promise<void>;
|
|
1622
|
-
addRow(): Promise<void>;
|
|
1623
|
-
deleteSelectedRows(): Promise<void>;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
declare class Grid extends Field<GridProps, GridDefinition, GridState> {
|
|
1627
|
-
private rowId;
|
|
1628
|
-
protected mutex: Mutex;
|
|
1629
|
-
protected newRowStates: FieldState[][];
|
|
1630
|
-
protected initialStates: FieldState[][];
|
|
1631
|
-
protected fieldsDefinitions: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>[];
|
|
1632
|
-
protected readonly managedAttIds: Set<string | number>;
|
|
1633
|
-
protected readonly managedAttNames: Set<string>;
|
|
1634
|
-
protected readonly managedFieldIds: Set<string | number>;
|
|
1635
|
-
protected readonly managedFieldsNames: Set<string>;
|
|
1636
|
-
protected _editionModalHandler: GridEditionModal | null;
|
|
1637
|
-
protected readonly _footerController: GridFooterHandler;
|
|
1638
|
-
protected readonly tableController: TableController;
|
|
1639
|
-
get controller(): TableController;
|
|
1640
|
-
get currentPage(): number;
|
|
1641
|
-
get editionModalHandler(): GridEditionModal | null;
|
|
1642
|
-
/**
|
|
1643
|
-
* Returns the final index of the current page
|
|
1644
|
-
*/
|
|
1645
|
-
get finalIndex(): number;
|
|
1646
|
-
get footerController(): GridFooterHandler;
|
|
1647
|
-
get header(): GridColumn[];
|
|
1648
|
-
get isPaged(): boolean;
|
|
1649
|
-
get length(): number;
|
|
1650
|
-
get minIndex(): number;
|
|
1651
|
-
get pageCount(): number;
|
|
1652
|
-
get pageSize(): number;
|
|
1653
|
-
get selectedIndices(): number[];
|
|
1654
|
-
get selectedItems(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1655
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1656
|
-
}>[][];
|
|
1657
|
-
get startIndex(): number;
|
|
1658
|
-
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
1659
|
-
/**
|
|
1660
|
-
* Grid methods
|
|
1661
|
-
*/
|
|
1662
|
-
addRow(addRowsCount?: number): Promise<boolean>;
|
|
1663
|
-
closeEditionModal(): void;
|
|
1664
|
-
deleteAllRows(): Promise<boolean>;
|
|
1665
|
-
/**
|
|
1666
|
-
* @param index Si se pasa, se borran el o los índices provistos. Sino, se borran las filas seleccionadas, si es que hay alguna.
|
|
1667
|
-
*/
|
|
1668
|
-
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
1669
|
-
fireScriptEvent(eventName: GridEvents): Promise<boolean>;
|
|
1670
|
-
fireEvent(eventName: GridEvents, params?: FireEventParameters & {
|
|
1671
|
-
mutex: boolean;
|
|
1672
|
-
}): Promise<boolean>;
|
|
1673
|
-
getAllColumns(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1674
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1675
|
-
}>[][];
|
|
1676
|
-
/**
|
|
1677
|
-
* @param field - Nombre del campo o del atributo
|
|
1678
|
-
*/
|
|
1679
|
-
getColumn(field: string): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1680
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1681
|
-
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1682
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1683
|
-
}>[] | undefined;
|
|
1684
|
-
getCurrentPage(): number;
|
|
1685
|
-
/**
|
|
1686
|
-
* @param field - Nombre del campo o del atributo
|
|
1687
|
-
*/
|
|
1688
|
-
getField(field: string, index?: number): Field | Field[] | undefined;
|
|
1689
|
-
getFieldByAttributeId(attId: string | number, index?: number): Field | Field[] | undefined;
|
|
1690
|
-
getFieldByAttributeName(attName: string, index?: number): Field | Field[] | undefined;
|
|
1691
|
-
getFieldById(id: string | number, index?: number): Field | Field[] | undefined;
|
|
1692
|
-
getFieldByName(name: string, index?: number): Field | Field[] | undefined;
|
|
1693
|
-
getRowByFieldIndex(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1694
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1695
|
-
}>[] | null;
|
|
1696
|
-
getSelectedRows(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1697
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1698
|
-
}>[][];
|
|
1699
|
-
init(form: Form): Promise<void>;
|
|
1700
|
-
openEditionModal(handler: GridEditionModal): void;
|
|
1701
|
-
refresh(): Promise<boolean>;
|
|
1702
|
-
sortColumn(fldId: string): Promise<boolean>;
|
|
1703
|
-
sortDown(index?: number | number[]): Promise<boolean>;
|
|
1704
|
-
sortUp(index?: number | number[]): Promise<boolean>;
|
|
1705
|
-
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
1706
|
-
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
1707
|
-
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
1708
|
-
validate(): Promise<true | Field>;
|
|
1709
|
-
protected actualRefreshAction(): Promise<boolean>;
|
|
1710
|
-
protected addRowFromDefinitions(definitions?: TApiaFieldBaseDefinition<Record<string, any>>[]): Promise<Row>;
|
|
1711
|
-
protected asyncAction<T>(cb: () => Promise<T>, mutex?: boolean): Promise<T>;
|
|
1712
|
-
protected calculateMustShowAdditionalColumn(): void;
|
|
1713
|
-
protected getRow(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1714
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1715
|
-
}>[];
|
|
1716
|
-
protected rebuildGrid(xmlString: string): Promise<void>;
|
|
1717
|
-
protected runAction<T extends Record<string, any>>(behave: IApiaApiPostConfig<Record<string, any>>): Promise<TApiaApiAxiosResponse<(T & ResponseSysMessages) | null> | null>;
|
|
1718
|
-
private swapRows;
|
|
1719
|
-
toggleMaximize(): void;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
declare class GridPaginated extends Grid {
|
|
1723
|
-
/**
|
|
1724
|
-
* Returns the final index of the current page
|
|
1725
|
-
*/
|
|
1726
|
-
get finalIndex(): number;
|
|
1727
|
-
addRow(): Promise<boolean>;
|
|
1728
|
-
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
1729
|
-
gotoPage(page: number): Promise<boolean>;
|
|
1730
|
-
sortDown(index?: number | number[]): Promise<boolean>;
|
|
1731
|
-
sortUp(index?: number | number[]): Promise<boolean>;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
declare class AdditionalCell extends Cell {
|
|
1735
|
-
grid: Grid;
|
|
1736
|
-
getIndex: () => number;
|
|
1737
|
-
remove: () => unknown;
|
|
1738
|
-
openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined;
|
|
1739
|
-
constructor(grid: Grid, getIndex: () => number, remove: () => unknown, openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined);
|
|
1740
|
-
get hasEditionModal(): boolean;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
declare class GridCell extends Cell {
|
|
1744
|
-
getField(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1745
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1746
|
-
}>;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
declare class HeaderCell extends Cell {
|
|
1750
|
-
fireSelectionEvent: () => unknown;
|
|
1751
|
-
constructor(state: CellState, fireSelectionEvent: () => unknown);
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
declare class Hidden extends FieldWithAttribute<TApiaHiddenProperties> {
|
|
1755
|
-
}
|
|
1756
1583
|
|
|
1757
|
-
declare class
|
|
1584
|
+
declare class Entity {
|
|
1585
|
+
execution: Execution;
|
|
1586
|
+
state: TEntity | null;
|
|
1587
|
+
uploader: UploaderApi;
|
|
1588
|
+
controller: TableController;
|
|
1589
|
+
constructor(execution: Execution);
|
|
1590
|
+
get name(): string | undefined;
|
|
1591
|
+
private hasInited;
|
|
1592
|
+
init(): Promise<void>;
|
|
1593
|
+
getConfirmParams(): any;
|
|
1594
|
+
loadCategories: () => Promise<void>;
|
|
1595
|
+
loadPools: () => Promise<void>;
|
|
1596
|
+
loadAssociations: () => Promise<void>;
|
|
1597
|
+
private parseRows;
|
|
1598
|
+
deleteRow(): void;
|
|
1599
|
+
addRow(): void;
|
|
1758
1600
|
}
|
|
1759
1601
|
|
|
1760
|
-
type
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1602
|
+
type TObservations = {
|
|
1603
|
+
observations: TObservation[] | [];
|
|
1604
|
+
newObservation: {
|
|
1605
|
+
commentValue: string;
|
|
1606
|
+
chkAddAlert?: boolean;
|
|
1607
|
+
chkAddAllAlert?: boolean;
|
|
1608
|
+
chkRemAlert?: boolean;
|
|
1609
|
+
} | null;
|
|
1610
|
+
};
|
|
1611
|
+
type TObservation = {
|
|
1612
|
+
name: string;
|
|
1613
|
+
date: string;
|
|
1614
|
+
userTitle: string;
|
|
1615
|
+
groupTitle: string;
|
|
1616
|
+
taskTitle: string;
|
|
1617
|
+
userLabel: string;
|
|
1618
|
+
groupLabel: string;
|
|
1619
|
+
taskLabel: string;
|
|
1620
|
+
checked?: boolean;
|
|
1621
|
+
disabled?: boolean;
|
|
1622
|
+
marked?: boolean;
|
|
1623
|
+
comment: string;
|
|
1624
|
+
};
|
|
1767
1625
|
|
|
1768
|
-
declare class
|
|
1626
|
+
declare class Observations {
|
|
1627
|
+
execution: Execution;
|
|
1628
|
+
state: TObservations;
|
|
1629
|
+
constructor(execution: Execution);
|
|
1630
|
+
private hasInited;
|
|
1631
|
+
init(): Promise<void>;
|
|
1632
|
+
getConfirmParams(): {
|
|
1633
|
+
txtComment: string | undefined;
|
|
1634
|
+
chkAddAlert: string | undefined;
|
|
1635
|
+
chkAddAllAlert: string | undefined;
|
|
1636
|
+
chkRemAlert: string | undefined;
|
|
1637
|
+
};
|
|
1638
|
+
setPriority(newPriority: string): void;
|
|
1769
1639
|
}
|
|
1770
1640
|
|
|
1771
|
-
|
|
1641
|
+
type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
|
|
1642
|
+
type Status = {
|
|
1643
|
+
step?: ConfirmStep;
|
|
1644
|
+
error?: string;
|
|
1645
|
+
finishedWithError?: boolean;
|
|
1646
|
+
};
|
|
1647
|
+
declare abstract class FlowModal<T extends {
|
|
1648
|
+
confirmed?: boolean;
|
|
1649
|
+
}> {
|
|
1650
|
+
abstract confirm(result: T): Promise<Status | FlowModal<any>>;
|
|
1772
1651
|
}
|
|
1773
1652
|
|
|
1774
|
-
type
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1653
|
+
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
1654
|
+
type TErrMessage = {
|
|
1655
|
+
message: {
|
|
1656
|
+
text: string;
|
|
1657
|
+
label?: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
type TFetchTaskActionResponse = {
|
|
1661
|
+
onClose?: TOnClose;
|
|
1662
|
+
sysMessages?: TErrMessage;
|
|
1663
|
+
sysExceptions?: TErrMessage;
|
|
1664
|
+
type?: string;
|
|
1665
|
+
actions?: {
|
|
1666
|
+
action: {
|
|
1667
|
+
param: string[];
|
|
1668
|
+
toDo: string;
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
load?: {
|
|
1672
|
+
canClose: boolean;
|
|
1673
|
+
type: string;
|
|
1674
|
+
text: {
|
|
1675
|
+
label: string;
|
|
1676
|
+
closeAll: boolean;
|
|
1677
|
+
addClass?: string;
|
|
1678
|
+
title?: string;
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
text?: {
|
|
1682
|
+
title?: string;
|
|
1683
|
+
label?: string;
|
|
1789
1684
|
};
|
|
1790
|
-
valueType?: 'D';
|
|
1791
1685
|
};
|
|
1792
1686
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1687
|
+
declare enum ExecutionState {
|
|
1688
|
+
RUNNING = 0,
|
|
1689
|
+
LOADING = 1,
|
|
1690
|
+
FINISHED = 2,
|
|
1691
|
+
RENDERING = 3,
|
|
1692
|
+
CONFIRMING = 4
|
|
1693
|
+
}
|
|
1694
|
+
type TExecutionConfig = {
|
|
1695
|
+
canConfirm: boolean;
|
|
1696
|
+
canGoBack: boolean;
|
|
1697
|
+
canGoForward: boolean;
|
|
1698
|
+
canSave: boolean;
|
|
1699
|
+
canFree: boolean;
|
|
1700
|
+
canDelegate: boolean;
|
|
1701
|
+
canClose: boolean;
|
|
1702
|
+
canShare: boolean;
|
|
1703
|
+
isEntity?: boolean;
|
|
1797
1704
|
};
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1705
|
+
type TExecutionEnvironment = {
|
|
1706
|
+
fieldsMapping?: FieldsMapping;
|
|
1707
|
+
window: Window;
|
|
1708
|
+
document: Document;
|
|
1709
|
+
headers: any;
|
|
1710
|
+
};
|
|
1711
|
+
declare class Execution extends EventEmitter$1<{
|
|
1712
|
+
confirm: null;
|
|
1713
|
+
next: null;
|
|
1714
|
+
sendToDesktop: null;
|
|
1715
|
+
}> {
|
|
1716
|
+
environment: TExecutionEnvironment;
|
|
1717
|
+
fieldsMapping: FieldsMapping;
|
|
1718
|
+
private entity;
|
|
1719
|
+
private process;
|
|
1720
|
+
private observations;
|
|
1721
|
+
executionConfig: TExecutionConfig | null;
|
|
1722
|
+
private _steps;
|
|
1723
|
+
private _currentStep;
|
|
1724
|
+
private _stepCount;
|
|
1725
|
+
readonly notifications: Notifications;
|
|
1726
|
+
constructor(environment: TExecutionEnvironment);
|
|
1727
|
+
protected formsById: {
|
|
1728
|
+
E: Map<string, Form>;
|
|
1729
|
+
P: Map<string, Form>;
|
|
1730
|
+
};
|
|
1731
|
+
protected forms: {
|
|
1732
|
+
E: Map<string, Form>;
|
|
1733
|
+
P: Map<string, Form>;
|
|
1734
|
+
};
|
|
1735
|
+
state: {
|
|
1736
|
+
formsReady: ReturnType<Execution['getAllForms']>;
|
|
1737
|
+
executionState: ExecutionState;
|
|
1738
|
+
locked: boolean;
|
|
1739
|
+
hasChangedAnything: boolean;
|
|
1740
|
+
};
|
|
1741
|
+
getAllForms(): Form[];
|
|
1742
|
+
private hasInitializedFormsTabs;
|
|
1743
|
+
initializeFormsTabs(frmParent: TFrmParent, cb: () => unknown): void;
|
|
1744
|
+
getFormsByType(type: TFrmParent): Form[];
|
|
1745
|
+
getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
|
|
1746
|
+
getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
|
|
1747
|
+
get currentStep(): number;
|
|
1748
|
+
get steps(): {
|
|
1749
|
+
title: string;
|
|
1750
|
+
stepNumber: number;
|
|
1751
|
+
status: "completed" | "pending" | "current";
|
|
1752
|
+
}[];
|
|
1753
|
+
getEntity(): Entity;
|
|
1754
|
+
getProcess(): Process;
|
|
1755
|
+
getObservations(): Observations;
|
|
1756
|
+
getCurrentTask(): Task;
|
|
1757
|
+
private mustRenderForms;
|
|
1758
|
+
run(executionConfig: TExecutionConfig): Promise<void>;
|
|
1759
|
+
protected getHiddenForms(): Form[];
|
|
1760
|
+
markFormAsRendered(frmParent: string, frmName: string): void;
|
|
1761
|
+
delegate(): Promise<void>;
|
|
1762
|
+
shareSocial(): Promise<void>;
|
|
1763
|
+
confirm(): void;
|
|
1764
|
+
next(): void;
|
|
1765
|
+
sendToDesktop(): void;
|
|
1766
|
+
doBack(): Promise<false | undefined>;
|
|
1767
|
+
doConfirm(status?: Status): Promise<boolean | FlowModal<any> | Field>;
|
|
1768
|
+
doFree(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
|
|
1769
|
+
doNext(): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1770
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1771
|
+
}> | undefined>;
|
|
1772
|
+
doPrint(): Promise<void>;
|
|
1773
|
+
doSave(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
|
|
1774
|
+
getStepTitle(step: number): {
|
|
1775
|
+
title: string;
|
|
1776
|
+
stepNumber: number;
|
|
1777
|
+
status: "completed" | "pending" | "current";
|
|
1778
|
+
} | undefined;
|
|
1779
|
+
viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
|
|
1780
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
1781
|
+
validate(): Promise<true | Field>;
|
|
1782
|
+
private fireEvents;
|
|
1808
1783
|
}
|
|
1809
1784
|
|
|
1810
|
-
declare
|
|
1811
|
-
|
|
1812
|
-
|
|
1785
|
+
declare global {
|
|
1786
|
+
interface Window {
|
|
1787
|
+
[key: string]: string;
|
|
1788
|
+
}
|
|
1789
|
+
interface Document {
|
|
1790
|
+
headers: any;
|
|
1791
|
+
}
|
|
1813
1792
|
}
|
|
1814
|
-
|
|
1815
|
-
declare
|
|
1793
|
+
declare function isJsonResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
1794
|
+
declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
1795
|
+
declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
1796
|
+
declare class InvalidSessionException extends Error {
|
|
1816
1797
|
}
|
|
1798
|
+
declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(execution: Execution, response: AxiosResponse<string>) => Promise<(ResponseSysMessages & LoadType & {
|
|
1799
|
+
onClose?: string;
|
|
1800
|
+
code?: unknown;
|
|
1801
|
+
load?: LoadType | undefined;
|
|
1802
|
+
}) | ({
|
|
1803
|
+
actions: unknown;
|
|
1804
|
+
onClose: string | undefined;
|
|
1805
|
+
exceptions: {
|
|
1806
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
1807
|
+
} | undefined;
|
|
1808
|
+
sysExceptions: {
|
|
1809
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
1810
|
+
} | undefined;
|
|
1811
|
+
sysMessages: {
|
|
1812
|
+
message: TApiaMessage | TApiaMessage[];
|
|
1813
|
+
} | undefined;
|
|
1814
|
+
} & LoadType) | null>;
|
|
1815
|
+
/**
|
|
1816
|
+
* IMPORTANT!! The ApiaApi is programmed under the slogan that
|
|
1817
|
+
* **should never throw an exception**. **Errors** coming from
|
|
1818
|
+
* connectivity or exceptions on the server **will be handled
|
|
1819
|
+
* automatically** by ApiaApi, using the notification system
|
|
1820
|
+
* of the application. It is possible to determine in what context they should
|
|
1821
|
+
* be thrown those exceptions (global, main, modal) using the
|
|
1822
|
+
* alertsCategory configuration properties **(see errorsHandling.md)**.
|
|
1823
|
+
*
|
|
1824
|
+
* @param url String, the url you want to call
|
|
1825
|
+
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
1826
|
+
*
|
|
1827
|
+
* @throws Nothing
|
|
1828
|
+
*
|
|
1829
|
+
* @example
|
|
1830
|
+
*
|
|
1831
|
+
* ApiaApi.post<ResponseType>('url...', {
|
|
1832
|
+
axiosConfig?: AxiosRequestConfig;
|
|
1817
1833
|
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
init(form: Form): Promise<void>;
|
|
1822
|
-
fireEvent(eventName: RadioEvents): Promise<boolean>;
|
|
1823
|
-
}
|
|
1834
|
+
// Configuración de postData
|
|
1835
|
+
postData? unknown;
|
|
1836
|
+
postDataTreatement?: 'stringify' | undefined;
|
|
1824
1837
|
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
}
|
|
1838
|
+
// Configuración de queryString
|
|
1839
|
+
queryData?: string | Record<string, unknown>;
|
|
1840
|
+
stringifyOptions?: QueryString.IStringifyOptions;
|
|
1829
1841
|
|
|
1830
|
-
|
|
1831
|
-
|
|
1842
|
+
// Response validator,
|
|
1843
|
+
// If it returns true, everything continues correctly
|
|
1844
|
+
// If it returns false, the ApiaApi throws a standard error.
|
|
1845
|
+
// If it returns string, ApiaApi throws the error returned in the string.
|
|
1846
|
+
validateResponse?: (
|
|
1847
|
+
response: AxiosResponse<DataType | null>,
|
|
1848
|
+
) => boolean | string;
|
|
1832
1849
|
|
|
1833
|
-
|
|
1834
|
-
|
|
1850
|
+
// Configuración de alertas
|
|
1851
|
+
alertsImportance?: TAlertImportance;
|
|
1835
1852
|
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
private treeNodes;
|
|
1840
|
-
constructor({ possibleValue, ...props }: TApiaTreeDefinition);
|
|
1841
|
-
getPossibleValues(): TApiaTreePossibleValue[];
|
|
1842
|
-
onPossibleValuesChange: (cb: Callback<{
|
|
1843
|
-
nodesList: TApiaTreePossibleValue[];
|
|
1844
|
-
}, "nodesList">) => UnSubscriber;
|
|
1845
|
-
protected getSynchronizePostConfiguration(value: TTreeValue | TTreeValue[]): IApiaApiPostConfig<any>;
|
|
1846
|
-
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
1847
|
-
}
|
|
1853
|
+
// Configuración de ApiaApiHandler, falta documentar
|
|
1854
|
+
handleLoad?: boolean;
|
|
1855
|
+
eventsHandler?: IEventsHandler;
|
|
1848
1856
|
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
1911
|
-
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
1912
|
-
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
1913
|
-
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
1914
|
-
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
1915
|
-
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
1916
|
-
readonly PROPERTY_NO_ERASE: "noErase";
|
|
1917
|
-
readonly PROPERTY_NO_LOCK: "noLock";
|
|
1918
|
-
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
1919
|
-
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
1920
|
-
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
1921
|
-
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
1922
|
-
readonly PROPERTY_URL: "url";
|
|
1923
|
-
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
1924
|
-
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
1925
|
-
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
1926
|
-
readonly PROPERTY_PAGED_GRID: "paged";
|
|
1927
|
-
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
1928
|
-
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
1929
|
-
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
1930
|
-
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
1931
|
-
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
1932
|
-
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
1933
|
-
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
1934
|
-
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
1935
|
-
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
1936
|
-
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
1937
|
-
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
1938
|
-
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
1939
|
-
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
1940
|
-
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
1941
|
-
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
1942
|
-
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
1943
|
-
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
1944
|
-
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
1945
|
-
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
1946
|
-
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
1947
|
-
readonly PROPERTY_CHECKED: "checked";
|
|
1948
|
-
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
1949
|
-
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
1950
|
-
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
1951
|
-
readonly PROPERTY_HEIGHT: "height";
|
|
1952
|
-
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
1953
|
-
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
1954
|
-
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
1955
|
-
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
1956
|
-
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
1957
|
-
readonly PROPERTY_DOC_TYPE: "docType";
|
|
1958
|
-
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
1959
|
-
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
1960
|
-
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
1961
|
-
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
1962
|
-
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
1963
|
-
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
1964
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
1965
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
1966
|
-
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
1967
|
-
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
1968
|
-
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
1969
|
-
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
1970
|
-
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
1971
|
-
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
1972
|
-
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
1973
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
1974
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
1975
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
1976
|
-
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
1977
|
-
readonly STORE_KEY_FIELD: "field";
|
|
1978
|
-
readonly STORE_KEY_FORM: "form";
|
|
1979
|
-
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
1980
|
-
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
1981
|
-
readonly PROPERTY_ALT: "alt";
|
|
1982
|
-
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
1983
|
-
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
1984
|
-
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
1985
|
-
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
1986
|
-
readonly PROPERTY_TITLE: "title";
|
|
1857
|
+
// other configuration
|
|
1858
|
+
colors?: TColors;
|
|
1859
|
+
debug?: boolean;
|
|
1860
|
+
}
|
|
1861
|
+
* @returns The type of the return value depends on the type passed when calling the function. If there was an error it returns null.
|
|
1862
|
+
*/
|
|
1863
|
+
declare function post<LoadType extends Record<string, unknown> = Record<string, unknown>, DataType = unknown, T = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiPostConfig<DataType>): TApiaApiResult<LoadType>;
|
|
1864
|
+
/**
|
|
1865
|
+
* IMPORTANTE!! El ApiaApi está programado bajo la consigna de que
|
|
1866
|
+
* **no debe tirar núnca una excepción**. **Los errores** provenientes
|
|
1867
|
+
* de la conectividad o de excepciones en el servidor **serán manejados
|
|
1868
|
+
* automáticamente** por el ApiaApi utilizando el sistema de notificaciones
|
|
1869
|
+
* de la aplicación. Es posible determinar en qué contexto deben
|
|
1870
|
+
* ser lanzadas esas excepciones (global, main, modal) utilizando las
|
|
1871
|
+
* propiedades de configuración alertsCategory **(ver errorsHandling.md)**.
|
|
1872
|
+
*
|
|
1873
|
+
* @param url String, el url al que se desea llamar
|
|
1874
|
+
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
1875
|
+
*
|
|
1876
|
+
* @throws Nothing
|
|
1877
|
+
*
|
|
1878
|
+
* @example
|
|
1879
|
+
*
|
|
1880
|
+
* ApiaApi.get<TipoDeRespuesta>('url...', {
|
|
1881
|
+
axiosConfig?: AxiosRequestConfig;
|
|
1882
|
+
|
|
1883
|
+
// Configuración de queryString
|
|
1884
|
+
queryData?: string | Record<string, unknown>;
|
|
1885
|
+
stringifyOptions?: QueryString.IStringifyOptions;
|
|
1886
|
+
|
|
1887
|
+
// Validador de respuesta,
|
|
1888
|
+
// Si devuelve true, todo sigue correctamente
|
|
1889
|
+
// Si devuelve false, el ApiaApi tira un error estándar.
|
|
1890
|
+
// Si devuelve string, el ApiaApi tira el error devuelto en el string.
|
|
1891
|
+
validateResponse?: (
|
|
1892
|
+
response: AxiosResponse<DataType | null>,
|
|
1893
|
+
) => boolean | string;
|
|
1894
|
+
|
|
1895
|
+
// Configuración de alertas
|
|
1896
|
+
alertsImportance?: TAlertImportance;
|
|
1897
|
+
|
|
1898
|
+
// Configuración de ApiaApiHandler, falta documentar
|
|
1899
|
+
handleLoad?: boolean;
|
|
1900
|
+
eventsHandler?: IEventsHandler;
|
|
1901
|
+
|
|
1902
|
+
// Otra configuración
|
|
1903
|
+
colors?: TColors;
|
|
1904
|
+
debug?: boolean;
|
|
1905
|
+
}
|
|
1906
|
+
* @returns El tipo del valor devuelto depende del tipo pasado al llamar a la función. Si hubo un error devuelve null
|
|
1907
|
+
*/
|
|
1908
|
+
declare function get<LoadType extends Record<string, unknown> = Record<string, unknown>, T = unknown, D = unknown>(execution: Execution, actualUrl: string, behaveConfig?: IApiaApiRequestConfig): TApiaApiResult<LoadType>;
|
|
1909
|
+
type MakeApiaUrlProps = {
|
|
1910
|
+
action?: string;
|
|
1911
|
+
ajaxUrl?: string;
|
|
1912
|
+
queryString?: string;
|
|
1913
|
+
stringifyOptions?: IStringifyOptions;
|
|
1914
|
+
tabId?: string | number;
|
|
1915
|
+
preventAsXmlParameter?: boolean;
|
|
1916
|
+
avoidTabId?: boolean;
|
|
1917
|
+
[key: string]: unknown;
|
|
1987
1918
|
};
|
|
1919
|
+
/**
|
|
1920
|
+
* Creates an url based on the general requirements of Apia.
|
|
1921
|
+
* If the ajaxUrl property is not passed, it will use the
|
|
1922
|
+
* getWindow(execution).URL_REQUEST_AJAX. Its use is very simple, just pass the objects you
|
|
1923
|
+
* want to appear in the query string.
|
|
1924
|
+
*
|
|
1925
|
+
* @example makeApiaUrl({
|
|
1926
|
+
* ajaxUrl: 'the.endpoint.you.want',
|
|
1927
|
+
* queryString: 'an=existent&query=string',
|
|
1928
|
+
* action: 'theAction',
|
|
1929
|
+
* anotherProp: 15
|
|
1930
|
+
* })
|
|
1931
|
+
*
|
|
1932
|
+
* @returns the well formed url, in the example, the response url is:
|
|
1933
|
+
* /context/the.endpoint.you.want?an=existent&query=string&anotherProp=15&tabId=...&tokenId=...&action=theAction
|
|
1934
|
+
*/
|
|
1935
|
+
declare function makeApiaUrl(execution: Execution, props?: MakeApiaUrlProps): string;
|
|
1988
1936
|
|
|
1989
|
-
|
|
1990
|
-
|
|
1937
|
+
interface IIProperty {
|
|
1938
|
+
[key: string]: string;
|
|
1939
|
+
}
|
|
1940
|
+
interface IApiaFunctions {
|
|
1941
|
+
getLastModalReturn: () => string[];
|
|
1942
|
+
getModalReturn: () => string[];
|
|
1943
|
+
getModalValue: () => string;
|
|
1944
|
+
getModalShowValue: () => string;
|
|
1945
|
+
setLastModalReturn: (value: string[]) => void;
|
|
1946
|
+
getModalSelectedRow: () => string[];
|
|
1947
|
+
getForm(frmName: string, frmType?: string): IApiaForm | null;
|
|
1948
|
+
getAllForms(): IApiaForm[];
|
|
1949
|
+
getEntityForm(frmName: string): IApiaForm | null;
|
|
1950
|
+
getProcessForm(frmName: string): IApiaForm | null;
|
|
1951
|
+
getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
|
|
1952
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
1953
|
+
getCurrentStep(): number | null;
|
|
1954
|
+
getCurrentTaskName(): string | null;
|
|
1955
|
+
getCurrentProcessName(): string | null;
|
|
1956
|
+
getRootPath(): string | null;
|
|
1957
|
+
getCurrentLanguageCode(): string | null;
|
|
1958
|
+
toJSNumber(value: string): number | string;
|
|
1959
|
+
toApiaNumber(value: number): number | string;
|
|
1960
|
+
disableActionButton(btnIdx: string): void;
|
|
1961
|
+
enableActionButton(btnIdx: string): void;
|
|
1962
|
+
disableOptionButton(btnIdx: string): void;
|
|
1963
|
+
enableOptionButton(btnIdx: string): void;
|
|
1964
|
+
hideOptionButton(btnIdx: string): void;
|
|
1965
|
+
showOptionButton(btnIdx: string): void;
|
|
1966
|
+
openTab(title: string, url: string): void;
|
|
1967
|
+
showMessage(text: string): void;
|
|
1968
|
+
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
1969
|
+
}
|
|
1970
|
+
interface IApiaForm {
|
|
1971
|
+
getFrmId(): string | null;
|
|
1972
|
+
getFrmParent(): string;
|
|
1973
|
+
getFormName(): string;
|
|
1974
|
+
getFormTitle(): string;
|
|
1975
|
+
openForm(): void;
|
|
1976
|
+
closeForm(): void;
|
|
1977
|
+
getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
|
|
1978
|
+
setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
|
|
1979
|
+
getField(fld: number | string, index?: number): IApiaField | undefined;
|
|
1980
|
+
getFieldColumn(fldName: string): IApiaField[];
|
|
1981
|
+
getAllFields(): IApiaField[];
|
|
1982
|
+
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
1983
|
+
}
|
|
1984
|
+
interface IApiaField<Props extends TApiaFieldCommonProperties = TApiaFieldCommonProperties> {
|
|
1985
|
+
get fldType(): TApiaFieldType;
|
|
1986
|
+
get fldId(): string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
|
|
1989
|
+
*/
|
|
1990
|
+
setProperty<K extends keyof Props>(name: K, value: Props[K]): void;
|
|
1991
|
+
/**
|
|
1992
|
+
* Returns the current value of the property determined by the name in the paremeter.
|
|
1993
|
+
*/
|
|
1994
|
+
getProperty<K extends keyof Props>(name: K): Props[K];
|
|
1995
|
+
/**
|
|
1996
|
+
* Sets the focus on the field if possible.
|
|
1997
|
+
*/
|
|
1998
|
+
setFocus(): void;
|
|
1999
|
+
/**
|
|
2000
|
+
* Returns true if the field is part of a grid.
|
|
2001
|
+
*/
|
|
2002
|
+
isInGrid(): boolean;
|
|
2003
|
+
}
|
|
2004
|
+
interface IButton {
|
|
2005
|
+
disabled: boolean;
|
|
2006
|
+
hidden: boolean;
|
|
2007
|
+
label: string;
|
|
2008
|
+
isLoading: boolean;
|
|
2009
|
+
title: string;
|
|
2010
|
+
variant?: string;
|
|
2011
|
+
action: Promise<() => unknown> | string;
|
|
2012
|
+
id: TActionButtons;
|
|
2013
|
+
}
|
|
2014
|
+
type TActionButtons = 'VIEW_DOCS' | 'CLOSE' | 'DELEGATE' | 'CLOSE' | 'CONFIRM' | 'NEXT' | 'PRINT' | 'PREVIOUS' | 'RELEASE' | 'SAVE' | 'SIGN' | 'SHARE';
|
|
2015
|
+
type TApiaFieldType = 'area' | 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'href' | 'image' | 'input' | 'label' | 'multiple' | 'password' | 'radio' | 'select' | 'title' | 'tree' | 'form';
|
|
2016
|
+
type PossibleValue = {
|
|
2017
|
+
value: string | number;
|
|
2018
|
+
label: string;
|
|
2019
|
+
selected?: boolean;
|
|
2020
|
+
};
|
|
1991
2021
|
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
value: string;
|
|
2000
|
-
selected: boolean;
|
|
2001
|
-
}[];
|
|
2002
|
-
toolTip: string;
|
|
2003
|
-
value: string;
|
|
2004
|
-
viewButton: {
|
|
2005
|
-
label: string;
|
|
2006
|
-
toolTip: string;
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
comments: {
|
|
2010
|
-
currentComment: string;
|
|
2011
|
-
addMarker: boolean;
|
|
2012
|
-
markAll: boolean;
|
|
2013
|
-
deleteMarker: boolean;
|
|
2014
|
-
history: {
|
|
2015
|
-
comment: string;
|
|
2016
|
-
marked: boolean;
|
|
2017
|
-
date: string;
|
|
2018
|
-
user: string;
|
|
2019
|
-
}[];
|
|
2020
|
-
};
|
|
2021
|
-
identifier: {
|
|
2022
|
-
body: {
|
|
2023
|
-
name: string;
|
|
2024
|
-
required: boolean;
|
|
2025
|
-
toolTip: string;
|
|
2026
|
-
type: 'fixed' | 'custom';
|
|
2027
|
-
value: string;
|
|
2028
|
-
};
|
|
2029
|
-
label: string;
|
|
2030
|
-
prefix: {
|
|
2031
|
-
label: string;
|
|
2032
|
-
name: string;
|
|
2033
|
-
toolTip: string;
|
|
2034
|
-
type: 'fixed' | 'custom' | 'none';
|
|
2035
|
-
value: string;
|
|
2036
|
-
};
|
|
2037
|
-
required: boolean;
|
|
2038
|
-
suffix: {
|
|
2039
|
-
label: string;
|
|
2040
|
-
name: string;
|
|
2041
|
-
toolTip: string;
|
|
2042
|
-
type: 'fixed' | 'custom' | 'none';
|
|
2043
|
-
value: string;
|
|
2044
|
-
};
|
|
2045
|
-
toolTip: string;
|
|
2046
|
-
value: string;
|
|
2047
|
-
};
|
|
2048
|
-
priority: {
|
|
2022
|
+
declare class ButtonsAction {
|
|
2023
|
+
private button;
|
|
2024
|
+
constructor(button: IButton);
|
|
2025
|
+
private update;
|
|
2026
|
+
get action(): this;
|
|
2027
|
+
get disabled(): boolean;
|
|
2028
|
+
get props(): {
|
|
2049
2029
|
disabled: boolean;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
name: string;
|
|
2053
|
-
options: {
|
|
2054
|
-
label: string;
|
|
2055
|
-
value: string;
|
|
2056
|
-
selected: boolean;
|
|
2057
|
-
}[];
|
|
2058
|
-
toolTip: string;
|
|
2059
|
-
value: string;
|
|
2060
|
-
};
|
|
2061
|
-
process: {
|
|
2062
|
-
label: string;
|
|
2063
|
-
toolTip: string;
|
|
2064
|
-
value: string;
|
|
2065
|
-
};
|
|
2066
|
-
processAction: {
|
|
2067
|
-
label: string;
|
|
2068
|
-
toolTip: string;
|
|
2069
|
-
value: string;
|
|
2070
|
-
};
|
|
2071
|
-
separator: string;
|
|
2072
|
-
status?: {
|
|
2073
|
-
label: string;
|
|
2074
|
-
toolTip: string;
|
|
2075
|
-
value: string;
|
|
2076
|
-
};
|
|
2077
|
-
title: string;
|
|
2078
|
-
user: {
|
|
2079
|
-
label: string;
|
|
2080
|
-
toolTIp: string;
|
|
2081
|
-
value: string;
|
|
2030
|
+
hidden: boolean;
|
|
2031
|
+
loading: boolean;
|
|
2082
2032
|
};
|
|
2083
|
-
|
|
2033
|
+
get label(): string;
|
|
2034
|
+
get title(): string;
|
|
2035
|
+
get variant(): string;
|
|
2036
|
+
set title(title: string);
|
|
2037
|
+
set variant(variant: string);
|
|
2038
|
+
disable(): void;
|
|
2039
|
+
enable(): void;
|
|
2040
|
+
hide(): void;
|
|
2041
|
+
show(): void;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
declare global {
|
|
2045
|
+
interface Window {
|
|
2046
|
+
lastModalReturn: string[];
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
declare class ApiaFunctions implements IApiaFunctions {
|
|
2050
|
+
execution: Execution;
|
|
2051
|
+
constructor(execution: Execution);
|
|
2052
|
+
toJSNumber(_value: string): number | string;
|
|
2053
|
+
toApiaNumber(_value: number): number | string;
|
|
2054
|
+
openTab(_title: string, _url: string): void;
|
|
2055
|
+
showMessage(_text: string): void;
|
|
2056
|
+
showConfirm(_text: string, _title: string, _callbackFn: (win: boolean) => unknown): void;
|
|
2057
|
+
getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
|
|
2058
|
+
actionButton(id: string | number): ButtonsAction | undefined;
|
|
2059
|
+
admEntity(entName: string, entNum?: number, parameters?: string, width?: number, height?: number): void;
|
|
2060
|
+
clearMessages(): void;
|
|
2061
|
+
clickActionButton(button: number): void;
|
|
2062
|
+
disableActionButton(id: string | number): void;
|
|
2063
|
+
disableOptionButton(id: string | number): void;
|
|
2064
|
+
enableActionButton(id: string | number): void;
|
|
2065
|
+
enableOptionButton(id: string | number): void;
|
|
2066
|
+
getAllForms(): IApiaForm[];
|
|
2067
|
+
getAllFormsByType(type: 'P' | 'E'): IApiaForm[];
|
|
2068
|
+
getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
|
|
2069
|
+
getButtonAction(id: number | string): TActionButtons;
|
|
2070
|
+
getCurrentLanguageCode(): string | null;
|
|
2071
|
+
getCurrentProcessName(): string | null;
|
|
2072
|
+
getCurrentStep(): number | null;
|
|
2073
|
+
getCurrentTaskName(): string | null;
|
|
2074
|
+
getEntityForm(frmName: string): IApiaForm | null;
|
|
2075
|
+
getForm(frmName: string, frmType?: string): IApiaForm | null;
|
|
2076
|
+
getLastModalReturn(): string[];
|
|
2077
|
+
getModalReturn(): string[];
|
|
2078
|
+
getModalSelectedRow(): string[];
|
|
2079
|
+
getModalShowValue(): string;
|
|
2080
|
+
getModalValue(): string;
|
|
2081
|
+
getProcessForm(frmName: string): IApiaForm | null;
|
|
2082
|
+
getRootPath(): string | null;
|
|
2083
|
+
hideActionButton(id: string | number): void;
|
|
2084
|
+
hideOptionButton(id: string | number): void;
|
|
2085
|
+
saveTask(): void;
|
|
2086
|
+
setLastModalReturn(value: string[]): void;
|
|
2087
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2088
|
+
showActionButton(id: string | number): void;
|
|
2089
|
+
showOptionButton(id: string | number): void;
|
|
2090
|
+
viewAdmEntity(entName: string, entNum?: number): void;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
declare class ActionsController {
|
|
2094
|
+
static CONFIRM: number;
|
|
2095
|
+
static NEXT: number;
|
|
2096
|
+
static PREVIOUS: number;
|
|
2097
|
+
static SIGN: number;
|
|
2098
|
+
static SAVE: number;
|
|
2099
|
+
static RELEASE: number;
|
|
2100
|
+
static DELEGATE: number;
|
|
2101
|
+
static SHARE: number;
|
|
2102
|
+
static PRINT: number;
|
|
2103
|
+
static VIEW_DOCS: number;
|
|
2104
|
+
static CLOSE: number;
|
|
2105
|
+
private static _instance;
|
|
2106
|
+
static get instance(): ActionsController;
|
|
2107
|
+
private buttons;
|
|
2108
|
+
addButton(button: IButton): void;
|
|
2109
|
+
getButton(id: TActionButtons): ButtonsAction | undefined;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
declare class ApiaForm implements IApiaForm {
|
|
2113
|
+
#private;
|
|
2114
|
+
execution: Execution;
|
|
2115
|
+
constructor(execution: Execution, form: Form);
|
|
2116
|
+
getFrmParent(): string;
|
|
2117
|
+
getFrmId(): string | null;
|
|
2118
|
+
getFormName(): string;
|
|
2119
|
+
getFormTitle(): string;
|
|
2120
|
+
openForm(): void;
|
|
2121
|
+
closeForm(): void;
|
|
2122
|
+
getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
|
|
2123
|
+
setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
|
|
2124
|
+
getCustomComponent(attName: string): CustomComponent | undefined;
|
|
2125
|
+
getField(fld: string | number, index?: number): IApiaField | undefined;
|
|
2126
|
+
getFieldById(fldId: string): IApiaField<TApiaFieldCommonProperties> | null | undefined;
|
|
2127
|
+
getFieldColumn(name: string): IApiaField[];
|
|
2128
|
+
getAllFields(): IApiaField[];
|
|
2129
|
+
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
declare abstract class ApiaField<Props extends TApiaFieldCommonProperties = TApiaFieldCommonProperties> implements IApiaField<Props> {
|
|
2133
|
+
#private;
|
|
2134
|
+
execution: Execution;
|
|
2135
|
+
constructor(execution: Execution, field: Field<Props>);
|
|
2136
|
+
get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
|
|
2137
|
+
get fldId(): string;
|
|
2138
|
+
get form(): ApiaForm;
|
|
2139
|
+
get index(): number;
|
|
2140
|
+
setProperty<K extends keyof Props>(name: K, value: Props[K]): void;
|
|
2141
|
+
getProperty<K extends keyof Props>(name: K): Props[K];
|
|
2142
|
+
setFocus(): IApiaField | null;
|
|
2143
|
+
isInGrid(): boolean;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
interface IButtonField extends IApiaField {
|
|
2147
|
+
fireClickEvent(): void;
|
|
2148
|
+
getValue(): string | null;
|
|
2149
|
+
}
|
|
2150
|
+
declare class ButtonField extends ApiaField implements IButtonField {
|
|
2151
|
+
#private;
|
|
2152
|
+
constructor(execution: Execution, field: Button);
|
|
2153
|
+
fireClickEvent(): void;
|
|
2154
|
+
getValue(): string | null;
|
|
2155
|
+
clearValue(): void;
|
|
2156
|
+
}
|
|
2084
2157
|
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
uploader: UploaderApi;
|
|
2088
|
-
constructor();
|
|
2089
|
-
get name(): string | undefined;
|
|
2090
|
-
init(): Promise<void>;
|
|
2091
|
-
getConfirmParams(): {
|
|
2092
|
-
cmbProPri: string | undefined;
|
|
2093
|
-
selCal: string | undefined;
|
|
2094
|
-
};
|
|
2095
|
-
setPriority(newPriority: string): void;
|
|
2158
|
+
type TEditorField = IApiaField;
|
|
2159
|
+
declare class EditorField extends ApiaField implements TEditorField {
|
|
2096
2160
|
}
|
|
2097
2161
|
|
|
2098
|
-
declare class
|
|
2162
|
+
declare class ApiaAttribute {
|
|
2099
2163
|
#private;
|
|
2100
|
-
constructor(
|
|
2101
|
-
|
|
2164
|
+
constructor(attribute: Attribute);
|
|
2165
|
+
get attLabel(): string;
|
|
2102
2166
|
get name(): string;
|
|
2167
|
+
get id(): string;
|
|
2168
|
+
get valueType(): TApiaFieldValueType;
|
|
2169
|
+
}
|
|
2170
|
+
declare class ApiaFieldWithAttribute<T = string | boolean> extends ApiaField {
|
|
2171
|
+
#private;
|
|
2172
|
+
execution: Execution;
|
|
2173
|
+
constructor(execution: Execution, field: FieldWithAttribute);
|
|
2174
|
+
get attribute(): ApiaAttribute;
|
|
2175
|
+
clearValue(): void;
|
|
2176
|
+
getValue(): any;
|
|
2177
|
+
setValue(v: T): void;
|
|
2178
|
+
getLabel(): string | null | void;
|
|
2179
|
+
getProperty<K extends keyof TApiaFieldWithAttributeProperties>(name: K): TApiaFieldWithAttributeProperties[K];
|
|
2103
2180
|
}
|
|
2104
2181
|
|
|
2105
|
-
type
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
label: string;
|
|
2119
|
-
toolTip: string;
|
|
2120
|
-
value: string;
|
|
2121
|
-
};
|
|
2122
|
-
identifier: {
|
|
2123
|
-
label: string;
|
|
2124
|
-
toolTip: string;
|
|
2125
|
-
value?: string;
|
|
2126
|
-
prefix?: {
|
|
2127
|
-
name: string;
|
|
2128
|
-
type: 'custom' | 'fixed' | 'none';
|
|
2129
|
-
label?: string;
|
|
2130
|
-
toolTip?: string;
|
|
2131
|
-
value?: string;
|
|
2132
|
-
};
|
|
2133
|
-
body: {
|
|
2134
|
-
type: 'autogenerated' | 'sameAsProcess';
|
|
2135
|
-
label: string;
|
|
2136
|
-
name?: string;
|
|
2137
|
-
toolTip?: string;
|
|
2138
|
-
value?: string;
|
|
2139
|
-
required?: false;
|
|
2140
|
-
} | {
|
|
2141
|
-
label: string;
|
|
2142
|
-
toolTip?: string;
|
|
2143
|
-
value?: string;
|
|
2144
|
-
type: 'custom';
|
|
2145
|
-
required: boolean;
|
|
2146
|
-
name: string;
|
|
2147
|
-
};
|
|
2148
|
-
suffix?: {
|
|
2149
|
-
name: string;
|
|
2150
|
-
type: 'custom' | 'fixed' | 'none';
|
|
2151
|
-
toolTip?: string;
|
|
2152
|
-
label?: string;
|
|
2153
|
-
value?: string;
|
|
2154
|
-
};
|
|
2155
|
-
};
|
|
2156
|
-
image: {
|
|
2157
|
-
label: string;
|
|
2158
|
-
toolTip: string;
|
|
2159
|
-
file: File | null;
|
|
2160
|
-
};
|
|
2161
|
-
status: {
|
|
2162
|
-
name: string;
|
|
2163
|
-
label: string;
|
|
2164
|
-
toolTip: string;
|
|
2165
|
-
type: 'fixex' | 'select' | 'none';
|
|
2166
|
-
value?: string;
|
|
2167
|
-
disabled?: boolean;
|
|
2168
|
-
options: {
|
|
2169
|
-
label: string;
|
|
2170
|
-
value: string;
|
|
2171
|
-
selected: boolean;
|
|
2172
|
-
}[];
|
|
2173
|
-
};
|
|
2174
|
-
user: {
|
|
2175
|
-
label: string;
|
|
2176
|
-
name: string;
|
|
2177
|
-
toolTip: string;
|
|
2178
|
-
};
|
|
2179
|
-
};
|
|
2182
|
+
type TOptionsMap$2 = Map<string, PossibleValue>;
|
|
2183
|
+
type TOptionsAsArray = PossibleValue[];
|
|
2184
|
+
declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2185
|
+
#private;
|
|
2186
|
+
constructor(execution: Execution, field: Select);
|
|
2187
|
+
getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
|
|
2188
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2189
|
+
setOptions(optionsArray: PossibleValue[]): void;
|
|
2190
|
+
removeOption(optionValue: string | number): void;
|
|
2191
|
+
getSelectedOption(asObject: boolean): TOptionsMap$2 | PossibleValue[] | null;
|
|
2192
|
+
getSelectedText(): string | null;
|
|
2193
|
+
clearOptions(): void;
|
|
2194
|
+
}
|
|
2180
2195
|
|
|
2181
|
-
declare class
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
init(): Promise<void>;
|
|
2187
|
-
getConfirmParams(): {
|
|
2188
|
-
busEntSta: string | undefined;
|
|
2189
|
-
};
|
|
2196
|
+
declare class InputField extends ApiaFieldWithAttribute {
|
|
2197
|
+
#private;
|
|
2198
|
+
constructor(execution: Execution, field: Input);
|
|
2199
|
+
getObjectValue(): number | string | boolean | null;
|
|
2200
|
+
setValue(v: string): void;
|
|
2190
2201
|
}
|
|
2191
2202
|
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
chkAddAllAlert: boolean;
|
|
2198
|
-
chkRemAlert: boolean;
|
|
2199
|
-
} | null;
|
|
2200
|
-
};
|
|
2201
|
-
type TObservation = {
|
|
2202
|
-
name: string;
|
|
2203
|
-
date: string;
|
|
2204
|
-
userTitle: string;
|
|
2205
|
-
groupTitle: string;
|
|
2206
|
-
taskTitle: string;
|
|
2207
|
-
userLabel: string;
|
|
2208
|
-
groupLabel: string;
|
|
2209
|
-
taskLabel: string;
|
|
2210
|
-
checked?: boolean;
|
|
2211
|
-
disabled?: boolean;
|
|
2212
|
-
marked?: boolean;
|
|
2213
|
-
comment: string;
|
|
2214
|
-
};
|
|
2203
|
+
declare class TreeField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2204
|
+
#private;
|
|
2205
|
+
constructor(execution: Execution, field: Tree);
|
|
2206
|
+
setValue(v: string | number | (string | number)[]): void;
|
|
2207
|
+
}
|
|
2215
2208
|
|
|
2216
|
-
declare class
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
init(): Promise<void>;
|
|
2220
|
-
getConfirmParams(): {
|
|
2221
|
-
txtComment: string | undefined;
|
|
2222
|
-
chkAddAlert: string;
|
|
2223
|
-
chkAddAllAlert: string;
|
|
2224
|
-
chkRemAlert: string;
|
|
2225
|
-
};
|
|
2226
|
-
setPriority(newPriority: string): void;
|
|
2209
|
+
declare class CheckField extends ApiaFieldWithAttribute {
|
|
2210
|
+
clearValue(): void;
|
|
2211
|
+
setValue(value: string | boolean | number): void;
|
|
2227
2212
|
}
|
|
2228
2213
|
|
|
2229
|
-
type
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2214
|
+
type TOptionsMap$1 = Map<string, PossibleValue>;
|
|
2215
|
+
declare class RadioField extends ApiaFieldWithAttribute {
|
|
2216
|
+
#private;
|
|
2217
|
+
constructor(execution: Execution, field: Radio);
|
|
2218
|
+
getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
|
|
2219
|
+
clearOptions(): void | null;
|
|
2220
|
+
addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2221
|
+
setOptions(options: PossibleValue[]): void;
|
|
2222
|
+
removeOption(radioValue: string | number): void;
|
|
2223
|
+
getSelectedOption(asObject: boolean): TOptionsMap$1 | PossibleValue | null;
|
|
2224
|
+
getSelectedText(): string | undefined | null;
|
|
2239
2225
|
}
|
|
2240
2226
|
|
|
2241
|
-
type
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2227
|
+
type TOptionsMap = Map<string, PossibleValue>;
|
|
2228
|
+
declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
|
|
2229
|
+
#private;
|
|
2230
|
+
constructor(execution: Execution, field: Multiple);
|
|
2231
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2232
|
+
setValue(value: string[]): void;
|
|
2233
|
+
clearOptions(): void;
|
|
2234
|
+
getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2235
|
+
getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2236
|
+
setOptions(optionsArray: PossibleValue[]): void;
|
|
2237
|
+
removeOption(optionValue: string | number): void;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
declare class HiddenField extends ApiaField {
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
declare class AreaField extends ApiaFieldWithAttribute {
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
interface IImageField extends IApiaField {
|
|
2247
|
+
getValue(): null;
|
|
2248
|
+
setValue(): null;
|
|
2249
|
+
getLabel(): void;
|
|
2250
|
+
clearValue(): null;
|
|
2251
|
+
}
|
|
2252
|
+
declare class ImageField extends ApiaField implements IImageField {
|
|
2253
|
+
#private;
|
|
2254
|
+
constructor(execution: Execution, field: Image);
|
|
2255
|
+
clearValue(): null;
|
|
2256
|
+
getLabel(): void;
|
|
2257
|
+
getValue(): null;
|
|
2258
|
+
setValue(): null;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
interface ILinkField extends IApiaField {
|
|
2262
|
+
getLabel(): void;
|
|
2263
|
+
}
|
|
2264
|
+
declare class LinkField extends ApiaField implements ILinkField {
|
|
2265
|
+
#private;
|
|
2266
|
+
constructor(execution: Execution, field: Link);
|
|
2267
|
+
getLabel(): void;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
interface ITextField extends IApiaField {
|
|
2271
|
+
getLabel(): void;
|
|
2272
|
+
}
|
|
2273
|
+
declare class TextField extends ApiaField implements ITextField {
|
|
2274
|
+
#private;
|
|
2275
|
+
constructor(execution: Execution, field: Field);
|
|
2276
|
+
getLabel(): void;
|
|
2277
|
+
}
|
|
2276
2278
|
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2279
|
+
declare class GridField extends ApiaField<TApiaGridProperties> {
|
|
2280
|
+
#private;
|
|
2281
|
+
constructor(execution: Execution, field: Grid);
|
|
2282
|
+
addRow(): Promise<IApiaField[]>;
|
|
2283
|
+
clearGrid(): void;
|
|
2284
|
+
clearPage(): void;
|
|
2285
|
+
clearRow(index: number): Promise<void>;
|
|
2286
|
+
closeForm(): GridField;
|
|
2287
|
+
deleteAllRows(): Promise<void>;
|
|
2288
|
+
deleteGrid(): Promise<void>;
|
|
2289
|
+
deletePage(): void;
|
|
2290
|
+
deleteRow(index: number): Promise<void>;
|
|
2291
|
+
editRow(index: number): void;
|
|
2292
|
+
getAllColumns(): (IApiaField<TApiaFieldCommonProperties> | null)[][];
|
|
2293
|
+
getColumn(fieldName: string): (IApiaField<TApiaFieldCommonProperties> | null)[];
|
|
2294
|
+
getCurrentPage(): number;
|
|
2295
|
+
getField(fieldName: string, fieldIndex?: number): IApiaField<TApiaFieldCommonProperties> | IApiaField<TApiaFieldCommonProperties>[] | null;
|
|
2296
|
+
getPageCount(): number;
|
|
2297
|
+
getPageSize(): number;
|
|
2298
|
+
getRow(index: number): IApiaField<TApiaFieldCommonProperties>[] | undefined;
|
|
2299
|
+
getSelection(): IApiaField[][];
|
|
2300
|
+
get id(): string;
|
|
2301
|
+
isPaged(): boolean;
|
|
2302
|
+
get rowsCount(): number;
|
|
2303
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2304
|
+
toggleDeleteButton(index: number, isShown?: boolean): void;
|
|
2305
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
type TCaptchaField = IApiaField;
|
|
2309
|
+
declare class CaptchaField extends ApiaField implements TCaptchaField {
|
|
2310
|
+
}
|
|
2281
2311
|
|
|
2282
|
-
declare class
|
|
2312
|
+
declare class FileUploaderField extends ApiaFieldWithAttribute {
|
|
2283
2313
|
#private;
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
run(message: ChatMessage): Promise<TPromptPromiseResponse | undefined>;
|
|
2288
|
-
private generateFormsContent;
|
|
2289
|
-
private resolveResponseResult;
|
|
2290
|
-
private shouldGoToNextStep;
|
|
2291
|
-
private resolveFinalMessage;
|
|
2292
|
-
private generateConfirmedValues;
|
|
2293
|
-
private fillForms;
|
|
2294
|
-
private fillForm;
|
|
2295
|
-
private fillFields;
|
|
2296
|
-
private fillGridField;
|
|
2297
|
-
private resolveFieldValue;
|
|
2314
|
+
constructor(execution: Execution, field: File$1);
|
|
2315
|
+
onChange(cb: (newValue: unknown) => unknown): void;
|
|
2316
|
+
setValue(): null;
|
|
2298
2317
|
}
|
|
2299
2318
|
|
|
2300
|
-
declare
|
|
2301
|
-
RUNNING = 0,
|
|
2302
|
-
LOADING = 1,
|
|
2303
|
-
FINISHED = 2,
|
|
2304
|
-
RENDERING = 3
|
|
2319
|
+
declare class PasswordField extends ApiaField {
|
|
2305
2320
|
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2321
|
+
|
|
2322
|
+
declare class ModalInputField extends ApiaFieldWithAttribute {
|
|
2323
|
+
#private;
|
|
2324
|
+
constructor(execution: Execution, field: ModalInput);
|
|
2325
|
+
getObjectValue(): any | null;
|
|
2326
|
+
setValue(v: any): void;
|
|
2327
|
+
setValueFromInputWrite(value: string): Promise<void>;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
type TCreateNewField = (execution: Execution, field: Field | FieldWithAttribute | CustomComponent) => IApiaField | null;
|
|
2331
|
+
|
|
2332
|
+
declare const createNewField: TCreateNewField;
|
|
2333
|
+
|
|
2334
|
+
type TFncParams = {
|
|
2335
|
+
type: 'V' | 'P' | 'E';
|
|
2336
|
+
value?: string;
|
|
2337
|
+
attId?: string | number;
|
|
2316
2338
|
};
|
|
2317
|
-
declare class
|
|
2339
|
+
declare abstract class Field<FieldProps extends TApiaFieldCommonProperties = TApiaFieldCommonProperties, FieldDefinition extends TApiaFieldBaseDefinition<FieldProps> = TApiaFieldBaseDefinition<FieldProps>, State extends {
|
|
2340
|
+
definition: Omit<FieldDefinition, 'properties'>;
|
|
2341
|
+
} = {
|
|
2342
|
+
definition: Omit<FieldDefinition, 'properties'>;
|
|
2343
|
+
}> extends WithProperties<FieldProps> {
|
|
2318
2344
|
#private;
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
private observations;
|
|
2324
|
-
assistantController: AssistantController;
|
|
2325
|
-
executionConfig: TExecutionConfig | null;
|
|
2326
|
-
private _steps;
|
|
2327
|
-
private _currentStep;
|
|
2328
|
-
private _stepCount;
|
|
2329
|
-
private constructor();
|
|
2330
|
-
protected formsById: {
|
|
2331
|
-
E: Map<string, Form>;
|
|
2332
|
-
P: Map<string, Form>;
|
|
2333
|
-
};
|
|
2334
|
-
protected forms: {
|
|
2335
|
-
E: Map<string, Form>;
|
|
2336
|
-
P: Map<string, Form>;
|
|
2337
|
-
};
|
|
2338
|
-
state: {
|
|
2339
|
-
formsReady: ReturnType<Execution['getAllForms']>;
|
|
2340
|
-
executionState: ExecutionState;
|
|
2341
|
-
locked: boolean;
|
|
2345
|
+
protected form: Form;
|
|
2346
|
+
definition: State['definition'];
|
|
2347
|
+
state: Omit<State, 'definition'> & {
|
|
2348
|
+
validation: FieldValidationState;
|
|
2342
2349
|
};
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
private mustRenderForms;
|
|
2359
|
-
run(executionConfig: TExecutionConfig): Promise<void>;
|
|
2360
|
-
protected getHiddenForms(): Form[];
|
|
2361
|
-
markFormAsRendered(frmParent: string, frmName: string): void;
|
|
2362
|
-
back(): Promise<false | undefined>;
|
|
2363
|
-
delegate(): Promise<void>;
|
|
2364
|
-
shareSocial(): Promise<void>;
|
|
2365
|
-
close(): Promise<void>;
|
|
2366
|
-
desktop(): Promise<void>;
|
|
2367
|
-
confirm(status?: Status, step?: ConfirmStep): Promise<boolean | FlowModal<any> | Field>;
|
|
2368
|
-
free(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
|
|
2369
|
-
print(): Promise<void>;
|
|
2370
|
-
getStepTitle(step: number): {
|
|
2371
|
-
title: string;
|
|
2372
|
-
stepNumber: number;
|
|
2373
|
-
status: "current" | "completed" | "pending";
|
|
2374
|
-
} | undefined;
|
|
2375
|
-
next(): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2376
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2377
|
-
}> | undefined>;
|
|
2378
|
-
save(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
|
|
2379
|
-
viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
|
|
2380
|
-
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2381
|
-
validate(): Promise<true | Field>;
|
|
2350
|
+
constructor({ properties, ...definition }: FieldDefinition);
|
|
2351
|
+
protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
|
|
2352
|
+
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
2353
|
+
protected fireScriptEvent(eventName: string): Promise<boolean>;
|
|
2354
|
+
protected fireAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
2355
|
+
protected fireNoAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
2356
|
+
protected fireServerEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
2357
|
+
fireEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
2358
|
+
getForm(): Form;
|
|
2359
|
+
protected hasEventsOfType(eventName: string): TFieldScriptEvent | TFieldServerEvent | undefined;
|
|
2360
|
+
protected hasServerAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
2361
|
+
protected hasServerNoAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
2362
|
+
init(form: Form): Promise<void>;
|
|
2363
|
+
validate(): Promise<boolean | Field>;
|
|
2364
|
+
markAsRendered(): void;
|
|
2382
2365
|
}
|
|
2383
2366
|
|
|
2384
|
-
|
|
2385
|
-
|
|
2367
|
+
type ButtonEvents = 'onClick';
|
|
2368
|
+
declare class Button extends Field<TApiaButtonProperties> {
|
|
2369
|
+
fireEvent(eventName: ButtonEvents): Promise<boolean>;
|
|
2386
2370
|
}
|
|
2387
2371
|
|
|
2388
|
-
declare class
|
|
2389
|
-
|
|
2372
|
+
declare class Captcha extends Field<TApiaCaptchaProperties, TApiaCaptchaDefinition, {
|
|
2373
|
+
definition: Omit<TApiaCaptchaDefinition, 'properties'>;
|
|
2374
|
+
value: string;
|
|
2375
|
+
url: string;
|
|
2390
2376
|
}> {
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2377
|
+
private static emitter;
|
|
2378
|
+
static reload(): void;
|
|
2379
|
+
private id;
|
|
2380
|
+
private static confirmParams;
|
|
2381
|
+
static getConfirmParams(): Record<string, string>;
|
|
2382
|
+
constructor(definition: TApiaCaptchaProperties);
|
|
2383
|
+
init(form: Form): Promise<void>;
|
|
2384
|
+
private getCaptchaId;
|
|
2385
|
+
getUrl(): string;
|
|
2386
|
+
generateImgUrl(): void;
|
|
2387
|
+
generateVoiceUrl(): string;
|
|
2388
|
+
getId(): string;
|
|
2389
|
+
setValue(value: string): void;
|
|
2390
|
+
validate(): Promise<boolean>;
|
|
2397
2391
|
}
|
|
2398
2392
|
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
on: <K extends "notification">(event: K, cb: Callback<{
|
|
2410
|
-
notification: Notification;
|
|
2411
|
-
}, K>) => UnSubscriber;
|
|
2393
|
+
type CheckboxEvents = 'onClick';
|
|
2394
|
+
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
2395
|
+
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
2396
|
+
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): Promise<boolean>;
|
|
2397
|
+
setValue(newValue: boolean, options?: Partial<{
|
|
2398
|
+
comparator: Comparator$1<any>;
|
|
2399
|
+
format: 'd/m/Y' | 'apia';
|
|
2400
|
+
markAsDirty: boolean;
|
|
2401
|
+
synchronize: boolean;
|
|
2402
|
+
}> | undefined): Promise<boolean>;
|
|
2412
2403
|
}
|
|
2413
2404
|
|
|
2414
|
-
type
|
|
2415
|
-
declare
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
* @public
|
|
2419
|
-
*
|
|
2420
|
-
* The `EventEmitter` class is a generic utility for handling events. It allows subscribing to and emitting events.
|
|
2421
|
-
* This class is generic and works with a `Map` where keys are event names and values are the types associated with those events.
|
|
2422
|
-
*
|
|
2423
|
-
* @typeParam Events - An extension of `Map` where the key is the event name and the value is the type of data associated with that event.
|
|
2424
|
-
*/
|
|
2425
|
-
declare class EventEmitter<Events extends Map$1> {
|
|
2426
|
-
protected callbacks: Record<'on' | 'once', Callbacks<Events>>;
|
|
2427
|
-
protected enabled: boolean;
|
|
2428
|
-
protected debugMode: boolean;
|
|
2429
|
-
debug(enable?: boolean): void;
|
|
2430
|
-
/**
|
|
2431
|
-
* Emits an event with the given data. Any listeners subscribed to this event will be invoked with the passed data.
|
|
2432
|
-
*
|
|
2433
|
-
* @param event - The event name to emit.
|
|
2434
|
-
* @param data - The data associated with the event. Its type is dependent on the event name.
|
|
2435
|
-
*/
|
|
2436
|
-
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
2437
|
-
/**
|
|
2438
|
-
* Reflects the current emitter state. A disabled state indicates that the emitter wont call listeners until its functionality gets enabled again.
|
|
2439
|
-
*/
|
|
2440
|
-
get isEnabled(): boolean;
|
|
2441
|
-
off<K extends keyof Events>(event: K, cb: Callback<Events, K>): void;
|
|
2442
|
-
/**
|
|
2443
|
-
* Subscribes a callback function to an event. The callback is invoked each time the event is emitted.
|
|
2444
|
-
*
|
|
2445
|
-
* @param event - The event name to listen to.
|
|
2446
|
-
* @param cb - The callback function to be invoked when the event is emitted.
|
|
2447
|
-
* @returns A function to unsubscribe the event listener.
|
|
2448
|
-
*/
|
|
2449
|
-
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2450
|
-
/**
|
|
2451
|
-
* Subscribes a callback function to an event for a single occurrence. After the event is emitted once, the listener is automatically removed.
|
|
2452
|
-
*
|
|
2453
|
-
* @param event - The event name to listen to for a single occurrence.
|
|
2454
|
-
* @param cb - The callback function to be invoked when the event is emitted.
|
|
2455
|
-
* @returns A function to unsubscribe the event listener.
|
|
2456
|
-
*/
|
|
2457
|
-
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2405
|
+
type EditorEvents = 'onChange';
|
|
2406
|
+
declare class Editor extends TranslatableField<TApiaEditorProperties, string> {
|
|
2407
|
+
fireEvent(eventName: EditorEvents): Promise<boolean>;
|
|
2408
|
+
protected isValidValue(): boolean;
|
|
2458
2409
|
}
|
|
2459
2410
|
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
* a state that can be accessed synchronously for each event.
|
|
2470
|
-
*
|
|
2471
|
-
* @param initialState - If given will be passed to subscriptions
|
|
2472
|
-
*
|
|
2473
|
-
* @template Events - A mapping of event names to their associated data types.
|
|
2474
|
-
* @extends EventEmitter<Events>
|
|
2475
|
-
*/
|
|
2476
|
-
declare class StatefulEmitter<Events extends Map$1> extends EventEmitter<Events> {
|
|
2477
|
-
protected state: EmitterState<Events>;
|
|
2478
|
-
constructor(initialState?: Partial<Events>);
|
|
2479
|
-
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
2480
|
-
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2481
|
-
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2482
|
-
/**
|
|
2483
|
-
* Retrieves the stored state for a given event
|
|
2484
|
-
*/
|
|
2485
|
-
getState<K extends keyof Events>(event: K): Events[K];
|
|
2486
|
-
/**
|
|
2487
|
-
* Just an alias for emit, with the advantage that can be called with a callback as second parameter in which case behaves exactly as react's setState.
|
|
2488
|
-
*/
|
|
2489
|
-
setState<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>): void;
|
|
2411
|
+
declare class File$1 extends TranslatableField<TApiaFileProperties> {
|
|
2412
|
+
uploader: FormsUploader;
|
|
2413
|
+
init(form: Form): Promise<void>;
|
|
2414
|
+
validate(): Promise<boolean>;
|
|
2415
|
+
setValue(_newValue: any, _options?: Partial<{
|
|
2416
|
+
comparator: Comparator$1<any>;
|
|
2417
|
+
synchronize: boolean;
|
|
2418
|
+
}> | undefined): Promise<boolean>;
|
|
2419
|
+
loadFromDefinition(def: string): void;
|
|
2490
2420
|
}
|
|
2491
2421
|
|
|
2492
|
-
type
|
|
2493
|
-
|
|
2422
|
+
type GridEvents = 'gridAdd' | 'gridDelete' | 'gridSort' | 'gridColumnSelect';
|
|
2423
|
+
type GridColumn = {
|
|
2424
|
+
fldId: string;
|
|
2425
|
+
label: string;
|
|
2426
|
+
title: string;
|
|
2427
|
+
width: string;
|
|
2428
|
+
required: boolean;
|
|
2429
|
+
hidden: boolean;
|
|
2494
2430
|
};
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2431
|
+
type GridState = {
|
|
2432
|
+
definition: Omit<TApiaFieldBaseDefinition<GridProps>, 'properties'>;
|
|
2433
|
+
header: GridColumn[];
|
|
2434
|
+
isLoading: boolean;
|
|
2435
|
+
isMaximized: boolean;
|
|
2436
|
+
showAdditionalColumn: boolean;
|
|
2498
2437
|
};
|
|
2499
|
-
type
|
|
2500
|
-
|
|
2438
|
+
type GridDefinition = TApiaFieldBaseDefinition<GridProps>;
|
|
2439
|
+
type FieldState = {
|
|
2440
|
+
properties: any;
|
|
2441
|
+
value?: any;
|
|
2501
2442
|
};
|
|
2502
|
-
type
|
|
2503
|
-
timing: number;
|
|
2504
|
-
}>;
|
|
2505
|
-
type ThrottleOptions = Partial<{
|
|
2506
|
-
emitOnStart?: boolean;
|
|
2507
|
-
timing: number;
|
|
2508
|
-
}>;
|
|
2509
|
-
/**
|
|
2510
|
-
* @public
|
|
2511
|
-
*
|
|
2512
|
-
* The BouncingEmitter class is an extension of EventEmitter which adds debouncing and throttling functionality.
|
|
2513
|
-
*
|
|
2514
|
-
* @typeParam — Events - An extension of Map where the key is the event name and the value is the type of data associated with that event.
|
|
2515
|
-
*/
|
|
2516
|
-
declare class BouncingEmitter<Events extends Map$1> extends StatefulEmitter<Events> {
|
|
2517
|
-
protected bouncingTimeouts: BouncingMap<Events>;
|
|
2518
|
-
protected defaultTiming: number;
|
|
2519
|
-
/**
|
|
2520
|
-
* Debounces a event emit with until there is no call to the emit methods by (timing)ms. Take the following event throttling, where each E is a call to this method and each character represents 20ms:
|
|
2521
|
-
*
|
|
2522
|
-
* E_E_E_E_E_E_E_E_E
|
|
2523
|
-
*
|
|
2524
|
-
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
2525
|
-
*
|
|
2526
|
-
* _____________________E
|
|
2527
|
-
*/
|
|
2528
|
-
debounce<K extends keyof Events>(event: K, data: Events[K], configuration?: DebounceOptions): void;
|
|
2443
|
+
type GridProps = TApiaFieldCommonProperties & TApiaGridProperties & {
|
|
2529
2444
|
/**
|
|
2530
|
-
*
|
|
2531
|
-
*
|
|
2532
|
-
* E_E_E_E_E_E_E_E_E
|
|
2533
|
-
*
|
|
2534
|
-
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
2535
|
-
*
|
|
2536
|
-
* ____E____E____E______E
|
|
2537
|
-
*
|
|
2538
|
-
* @param configuration.emitOnStart - Emits an event on the first call to throttle when no pending throttle is stored. **If emitOnStart is true and an only call to throttle is made, it will emit an only event.**
|
|
2445
|
+
* Mostrar u ocultar botones de eliminar específicos según fila
|
|
2539
2446
|
*/
|
|
2540
|
-
|
|
2541
|
-
protected throttleEmittedOnInit: ThrottlingMarkers<Events>;
|
|
2542
|
-
throttle<K extends keyof Events>(event: K, data: Events[K], configuration?: ThrottleOptions): void;
|
|
2447
|
+
shownDeleteButtons: Map<string | number, boolean>;
|
|
2543
2448
|
/**
|
|
2544
|
-
*
|
|
2449
|
+
* Mostrar u ocultar botones de edición específicos según fila
|
|
2545
2450
|
*/
|
|
2546
|
-
|
|
2451
|
+
shownEditionButtons: Map<string | number, boolean>;
|
|
2547
2452
|
/**
|
|
2548
|
-
*
|
|
2453
|
+
* Shorthands for better semantics
|
|
2549
2454
|
*/
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
text: string;
|
|
2558
|
-
tooltip: string;
|
|
2455
|
+
hideDocInfoButton: boolean;
|
|
2456
|
+
currentPage: number;
|
|
2457
|
+
maxRows: number;
|
|
2458
|
+
pages: number;
|
|
2459
|
+
pageSize: number;
|
|
2460
|
+
paged: boolean;
|
|
2461
|
+
gridQuery?: string;
|
|
2559
2462
|
};
|
|
2560
2463
|
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
path: string;
|
|
2566
|
-
}> {
|
|
2567
|
-
fetchResult: TApiaLoadForm['form'];
|
|
2568
|
-
confirm: (result: {
|
|
2569
|
-
confirmed: boolean;
|
|
2570
|
-
path: string;
|
|
2571
|
-
}) => Promise<Status | FlowModal<any>>;
|
|
2572
|
-
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
2573
|
-
confirmed: boolean;
|
|
2574
|
-
path: string;
|
|
2575
|
-
}) => Promise<Status | FlowModal<any>>);
|
|
2576
|
-
}
|
|
2577
|
-
|
|
2578
|
-
declare class ShowPoolSelection extends FlowModal<{
|
|
2579
|
-
confirmed: boolean;
|
|
2580
|
-
group: string;
|
|
2581
|
-
}> {
|
|
2582
|
-
fetchResult: TApiaLoadForm['form'];
|
|
2583
|
-
confirm: (result: {
|
|
2584
|
-
confirmed: boolean;
|
|
2585
|
-
group: string;
|
|
2586
|
-
}) => Promise<Status>;
|
|
2587
|
-
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
2588
|
-
confirmed: boolean;
|
|
2589
|
-
group: string;
|
|
2590
|
-
}) => Promise<Status>);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
declare class ShowSignSelection extends FlowModal<{
|
|
2594
|
-
confirmed: boolean;
|
|
2595
|
-
signed: boolean;
|
|
2596
|
-
}> {
|
|
2597
|
-
fetchResult: any;
|
|
2598
|
-
confirm: (result: {
|
|
2599
|
-
confirmed: boolean;
|
|
2600
|
-
signed: boolean;
|
|
2601
|
-
}) => Promise<Status>;
|
|
2602
|
-
constructor(fetchResult: any, confirm: (result: {
|
|
2603
|
-
confirmed: boolean;
|
|
2604
|
-
signed: boolean;
|
|
2605
|
-
}) => Promise<Status>);
|
|
2606
|
-
}
|
|
2464
|
+
type GridEditionModal = {
|
|
2465
|
+
close: () => unknown;
|
|
2466
|
+
open: () => unknown;
|
|
2467
|
+
};
|
|
2607
2468
|
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2469
|
+
type GridFooterHandlerState = {
|
|
2470
|
+
isSortUpDisabled: boolean;
|
|
2471
|
+
isSortDownDisabled: boolean;
|
|
2472
|
+
};
|
|
2473
|
+
declare class GridFooterHandler {
|
|
2474
|
+
#private;
|
|
2475
|
+
private grid;
|
|
2476
|
+
state: GridFooterHandlerState;
|
|
2477
|
+
constructor(grid: Grid);
|
|
2478
|
+
private init;
|
|
2479
|
+
get showAddButton(): boolean;
|
|
2480
|
+
get showDelButton(): boolean;
|
|
2481
|
+
get showSortButtons(): boolean;
|
|
2482
|
+
get isSortUpDisabled(): boolean;
|
|
2483
|
+
get isSortDownDisabled(): boolean;
|
|
2484
|
+
get isAddDisabled(): boolean;
|
|
2485
|
+
get isDeleteDisabled(): boolean;
|
|
2486
|
+
sortUp(): Promise<void>;
|
|
2487
|
+
sortDown(): Promise<void>;
|
|
2488
|
+
addRow(): Promise<void>;
|
|
2489
|
+
deleteSelectedRows(): Promise<void>;
|
|
2618
2490
|
}
|
|
2619
2491
|
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2492
|
+
/**
|
|
2493
|
+
* Esta clase se encarga de recordar los campos que ya fueron accedidos,
|
|
2494
|
+
* optimizando el tiempo de acceso en grillas de gran tamaño.
|
|
2495
|
+
*/
|
|
2496
|
+
declare class FieldsCache {
|
|
2497
|
+
private cached;
|
|
2498
|
+
private getIndex;
|
|
2499
|
+
clear(): void;
|
|
2500
|
+
clearIndex(index: number): void;
|
|
2501
|
+
get(index: number, id: number | string): Field<any, TApiaFieldBaseDefinition<any>, {
|
|
2502
|
+
definition: Omit<TApiaFieldBaseDefinition<any>, "properties">;
|
|
2503
|
+
}>;
|
|
2504
|
+
set(index: number, id: number | string, field: Field<any>): void;
|
|
2505
|
+
swap(index1: number, index2: number): void;
|
|
2506
|
+
truncate(index: number): void;
|
|
2630
2507
|
}
|
|
2631
2508
|
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
getFormName(): string;
|
|
2670
|
-
getFormTitle(): string;
|
|
2671
|
-
openForm(): void;
|
|
2672
|
-
closeForm(): void;
|
|
2673
|
-
getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
|
|
2674
|
-
setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
|
|
2675
|
-
getField(fld: number | string, index?: number): IApiaField | undefined;
|
|
2676
|
-
getFieldColumn(fldName: string): IApiaField[];
|
|
2677
|
-
getAllFields(): IApiaField[];
|
|
2678
|
-
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
2679
|
-
}
|
|
2680
|
-
interface IApiaField {
|
|
2681
|
-
get fldType(): TApiaFieldType;
|
|
2682
|
-
get fldId(): string;
|
|
2509
|
+
declare class Grid extends Field<GridProps, GridDefinition, GridState> {
|
|
2510
|
+
private rowId;
|
|
2511
|
+
protected cache: FieldsCache;
|
|
2512
|
+
protected mutex: Mutex;
|
|
2513
|
+
protected newRowStates: FieldState[][];
|
|
2514
|
+
protected initialStates: FieldState[][];
|
|
2515
|
+
protected fieldsDefinitions: TApiaFieldBaseDefinition<Record<string, any>>[];
|
|
2516
|
+
protected readonly managedAttIds: Set<string | number>;
|
|
2517
|
+
protected readonly managedAttNames: Set<string>;
|
|
2518
|
+
protected readonly managedFieldIds: Set<string | number>;
|
|
2519
|
+
protected readonly managedFieldsNames: Set<string>;
|
|
2520
|
+
protected _editionModalHandler: GridEditionModal | null;
|
|
2521
|
+
protected readonly _footerController: GridFooterHandler;
|
|
2522
|
+
protected readonly tableController: TableController;
|
|
2523
|
+
get controller(): TableController;
|
|
2524
|
+
get currentPage(): number;
|
|
2525
|
+
get editionModalHandler(): GridEditionModal | null;
|
|
2526
|
+
/**
|
|
2527
|
+
* Returns the final index of the current page
|
|
2528
|
+
*/
|
|
2529
|
+
get finalIndex(): number;
|
|
2530
|
+
get footerController(): GridFooterHandler;
|
|
2531
|
+
get header(): GridColumn[];
|
|
2532
|
+
get isPaged(): boolean;
|
|
2533
|
+
get length(): number;
|
|
2534
|
+
get minIndex(): number;
|
|
2535
|
+
get pageCount(): number;
|
|
2536
|
+
get pageSize(): number;
|
|
2537
|
+
get selectedIndices(): number[];
|
|
2538
|
+
get selectedItems(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2539
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2540
|
+
}>[][];
|
|
2541
|
+
get startIndex(): number;
|
|
2542
|
+
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
2543
|
+
private resolveHeaderWidth;
|
|
2544
|
+
protected getGridActionFromEventName(eventName: GridEvents): "delete" | "add" | undefined;
|
|
2545
|
+
protected fireServerEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2683
2546
|
/**
|
|
2684
|
-
*
|
|
2547
|
+
* Grid methods
|
|
2685
2548
|
*/
|
|
2686
|
-
|
|
2549
|
+
addRow(): Promise<boolean>;
|
|
2550
|
+
closeEditionModal(): void;
|
|
2551
|
+
deleteAllRows(): Promise<boolean>;
|
|
2687
2552
|
/**
|
|
2688
|
-
*
|
|
2553
|
+
* @param index Si se pasa, se borran el o los índices provistos. Sino, se borran las filas seleccionadas, si es que hay alguna.
|
|
2689
2554
|
*/
|
|
2690
|
-
|
|
2555
|
+
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
2556
|
+
fireScriptEvent(eventName: GridEvents): Promise<boolean>;
|
|
2557
|
+
fireEvent(eventName: GridEvents, params?: FireEventParameters & {
|
|
2558
|
+
mutex: boolean;
|
|
2559
|
+
}): Promise<boolean>;
|
|
2560
|
+
getAllColumns(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2561
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2562
|
+
}>[][];
|
|
2691
2563
|
/**
|
|
2692
|
-
*
|
|
2564
|
+
* @param field - Nombre del campo o del atributo
|
|
2693
2565
|
*/
|
|
2694
|
-
|
|
2566
|
+
getColumn(field: string): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2567
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2568
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2569
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2570
|
+
}>[] | undefined;
|
|
2571
|
+
getCurrentPage(): number;
|
|
2695
2572
|
/**
|
|
2696
|
-
*
|
|
2573
|
+
* @param field - Nombre del campo o del atributo
|
|
2697
2574
|
*/
|
|
2698
|
-
|
|
2575
|
+
getField(field: string, index?: number): Field | Field[] | undefined;
|
|
2576
|
+
getFieldByAttributeId(attId: string | number, index?: number): Field | Field[] | undefined;
|
|
2577
|
+
getFieldByAttributeName(attName: string, index?: number): Field | Field[] | undefined;
|
|
2578
|
+
getFieldById(id: string | number, index?: number): Field | Field[] | undefined;
|
|
2579
|
+
getFieldByName(name: string, index?: number): Field | Field[] | undefined;
|
|
2580
|
+
getRowByFieldIndex(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2581
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2582
|
+
}>[] | null;
|
|
2583
|
+
getSelectedRows(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2584
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2585
|
+
}>[][];
|
|
2586
|
+
refreshColumnsVisibilities(): void;
|
|
2587
|
+
init(form: Form): Promise<void>;
|
|
2588
|
+
openEditionModal(handler: GridEditionModal): void;
|
|
2589
|
+
refresh(): Promise<boolean>;
|
|
2590
|
+
sortColumn(fldId: string): Promise<boolean>;
|
|
2591
|
+
sortDown(index?: number | number[]): Promise<boolean>;
|
|
2592
|
+
sortUp(index?: number | number[]): Promise<boolean>;
|
|
2593
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2594
|
+
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
2595
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2596
|
+
validate(): Promise<true | Field>;
|
|
2597
|
+
protected actualRefreshAction(): Promise<boolean>;
|
|
2598
|
+
protected addRowFromDefinitions(select: boolean, definitions?: TApiaFieldBaseDefinition<Record<string, any>>[]): Promise<Row>;
|
|
2599
|
+
protected asyncAction<T>(cb: () => Promise<T>, mutex?: boolean): Promise<T>;
|
|
2600
|
+
protected calculateMustShowAdditionalColumn(): void;
|
|
2601
|
+
protected getRow(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2602
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2603
|
+
}>[];
|
|
2604
|
+
protected rebuildGrid(xmlString: string | TApiaGridDefinition): Promise<void>;
|
|
2605
|
+
protected runAction<T extends Record<string, any>>(behave: IApiaApiPostConfig<Record<string, any>>): Promise<TApiaApiAxiosResponse<(T & ResponseSysMessages) | null> | null>;
|
|
2606
|
+
private swapRows;
|
|
2607
|
+
toggleMaximize(): void;
|
|
2699
2608
|
}
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
title: string;
|
|
2712
|
-
variant?: string;
|
|
2713
|
-
action: Promise<() => unknown> | string;
|
|
2714
|
-
id: TActionButtons;
|
|
2609
|
+
|
|
2610
|
+
declare class GridPaginated extends Grid {
|
|
2611
|
+
/**
|
|
2612
|
+
* Returns the final index of the current page
|
|
2613
|
+
*/
|
|
2614
|
+
get finalIndex(): number;
|
|
2615
|
+
addRow(): Promise<boolean>;
|
|
2616
|
+
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
2617
|
+
gotoPage(page: number): Promise<boolean>;
|
|
2618
|
+
sortDown(index?: number | number[]): Promise<boolean>;
|
|
2619
|
+
sortUp(index?: number | number[]): Promise<boolean>;
|
|
2715
2620
|
}
|
|
2716
|
-
type TActionButtons = 'VIEW_DOCS' | 'CLOSE' | 'DELEGATE' | 'CLOSE' | 'CONFIRM' | 'NEXT' | 'PRINT' | 'PREVIOUS' | 'RELEASE' | 'SAVE' | 'SIGN' | 'SHARE';
|
|
2717
|
-
type TApiaFieldType = 'area' | 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'href' | 'image' | 'input' | 'label' | 'multiple' | 'password' | 'radio' | 'select' | 'title' | 'tree' | 'form';
|
|
2718
|
-
type PossibleValue = {
|
|
2719
|
-
value: string | number;
|
|
2720
|
-
text: string;
|
|
2721
|
-
selected?: boolean;
|
|
2722
|
-
};
|
|
2723
2621
|
|
|
2724
|
-
declare class
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
get
|
|
2731
|
-
disabled: boolean;
|
|
2732
|
-
hidden: boolean;
|
|
2733
|
-
loading: boolean;
|
|
2734
|
-
};
|
|
2735
|
-
get label(): string;
|
|
2736
|
-
get title(): string;
|
|
2737
|
-
get variant(): string;
|
|
2738
|
-
set title(title: string);
|
|
2739
|
-
set variant(variant: string);
|
|
2740
|
-
disable(): void;
|
|
2741
|
-
enable(): void;
|
|
2742
|
-
hide(): void;
|
|
2743
|
-
show(): void;
|
|
2622
|
+
declare class AdditionalCell extends Cell {
|
|
2623
|
+
grid: Grid;
|
|
2624
|
+
getIndex: () => number;
|
|
2625
|
+
remove: () => unknown;
|
|
2626
|
+
openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined;
|
|
2627
|
+
constructor(grid: Grid, getIndex: () => number, remove: () => unknown, openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined);
|
|
2628
|
+
get hasEditionModal(): boolean;
|
|
2744
2629
|
}
|
|
2745
2630
|
|
|
2746
|
-
declare
|
|
2747
|
-
|
|
2748
|
-
lastModalReturn: string[];
|
|
2749
|
-
}
|
|
2631
|
+
declare class GridCell extends Cell {
|
|
2632
|
+
getField(): Field;
|
|
2750
2633
|
}
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
clickActionButton(button: number): void;
|
|
2759
|
-
closeCurrentTab(): void;
|
|
2760
|
-
disableActionButton(id: string | number): void;
|
|
2761
|
-
disableOptionButton(id: string | number): void;
|
|
2762
|
-
enableActionButton(id: string | number): void;
|
|
2763
|
-
enableOptionButton(id: string | number): void;
|
|
2764
|
-
getAllForms(): IApiaForm[];
|
|
2765
|
-
getAllFormsByType(type: 'P' | 'E'): IApiaForm[];
|
|
2766
|
-
getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
|
|
2767
|
-
getButtonAction(id: number | string): TActionButtons;
|
|
2768
|
-
getCurrentLanguageCode(): string | null;
|
|
2769
|
-
getCurrentProcessName(): string | null;
|
|
2770
|
-
getCurrentStep(): number | null;
|
|
2771
|
-
getCurrentTaskName(): string | null;
|
|
2772
|
-
getEntityForm(frmName: string): IApiaForm | null;
|
|
2773
|
-
getForm(frmName: string, frmType?: string): IApiaForm | null;
|
|
2774
|
-
getLastModalReturn(): string[];
|
|
2775
|
-
getModalReturn(): string[];
|
|
2776
|
-
getModalSelectedRow(): string[];
|
|
2777
|
-
getModalShowValue(): string;
|
|
2778
|
-
getModalValue(): string;
|
|
2779
|
-
getProcessForm(frmName: string): IApiaForm | null;
|
|
2780
|
-
getRootPath(): string | null;
|
|
2781
|
-
hideActionButton(id: string | number): void;
|
|
2782
|
-
hideOptionButton(id: string | number): void;
|
|
2783
|
-
openModal(props: TOpenModal$1): void;
|
|
2784
|
-
openTab(title: string, url: string): void;
|
|
2785
|
-
saveTask(): void;
|
|
2786
|
-
setLastModalReturn(value: string[]): void;
|
|
2787
|
-
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2788
|
-
showActionButton(id: string | number): void;
|
|
2789
|
-
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
2790
|
-
showMessage(text: string, title?: string, type?: TDispatchedNotification['type']): void;
|
|
2791
|
-
showOptionButton(id: string | number): void;
|
|
2792
|
-
toApiaNumber(value: number): number | string;
|
|
2793
|
-
toJSNumber(value: string): number | string;
|
|
2794
|
-
viewAdmEntity(entName: string, entNum?: number): void;
|
|
2634
|
+
|
|
2635
|
+
type HeaderCellState = CellState;
|
|
2636
|
+
declare class HeaderCell extends Cell<HeaderCellState> {
|
|
2637
|
+
grid: Grid;
|
|
2638
|
+
constructor(grid: Grid, state: CellState);
|
|
2639
|
+
sort(): void;
|
|
2640
|
+
getField(): Field;
|
|
2795
2641
|
}
|
|
2796
2642
|
|
|
2797
|
-
declare class
|
|
2798
|
-
static CONFIRM: number;
|
|
2799
|
-
static NEXT: number;
|
|
2800
|
-
static PREVIOUS: number;
|
|
2801
|
-
static SIGN: number;
|
|
2802
|
-
static SAVE: number;
|
|
2803
|
-
static RELEASE: number;
|
|
2804
|
-
static DELEGATE: number;
|
|
2805
|
-
static SHARE: number;
|
|
2806
|
-
static PRINT: number;
|
|
2807
|
-
static VIEW_DOCS: number;
|
|
2808
|
-
static CLOSE: number;
|
|
2809
|
-
private static _instance;
|
|
2810
|
-
static get instance(): ActionsController;
|
|
2811
|
-
private buttons;
|
|
2812
|
-
addButton(button: IButton): void;
|
|
2813
|
-
getButton(id: TActionButtons): ButtonsAction | undefined;
|
|
2643
|
+
declare class Hidden extends FieldWithAttribute<TApiaHiddenProperties> {
|
|
2814
2644
|
}
|
|
2815
2645
|
|
|
2816
|
-
declare
|
|
2817
|
-
#private;
|
|
2818
|
-
constructor(field: Field);
|
|
2819
|
-
get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
|
|
2820
|
-
get fldId(): string;
|
|
2821
|
-
get index(): number;
|
|
2822
|
-
setProperty<K extends keyof TApiaFieldCommonProperties>(name: K, value: TApiaFieldCommonProperties[K]): void;
|
|
2823
|
-
getProperty<K extends keyof TApiaFieldCommonProperties>(name: K): TApiaFieldCommonProperties[K];
|
|
2824
|
-
setFocus(): IApiaField | null;
|
|
2825
|
-
isInGrid(): boolean;
|
|
2646
|
+
declare class Image extends Field<TApiaImageProperties> {
|
|
2826
2647
|
}
|
|
2827
2648
|
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2649
|
+
type InputEvents$1 = 'onChange' | 'onModalReturn';
|
|
2650
|
+
declare class Input extends TranslatableField<TApiaInputProperties, string, TApiaInputDefinition> {
|
|
2651
|
+
fireEvent(eventName: InputEvents$1): Promise<boolean>;
|
|
2652
|
+
setValue(newValue: string | Date | number, options?: SetValueOptions): Promise<boolean>;
|
|
2653
|
+
private validateRegex;
|
|
2654
|
+
validate(): Promise<boolean>;
|
|
2655
|
+
protected isValidValue(): boolean;
|
|
2831
2656
|
}
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2657
|
+
|
|
2658
|
+
declare class Label extends Field<TApiaLabelProperties, TApiaLabelDefinition> {
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
declare class Link extends Field<TApiaLinkProperties> {
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
type TApiaModalInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputProperties> & {
|
|
2665
|
+
alwaysShowMask?: boolean;
|
|
2666
|
+
cantDecimals?: string;
|
|
2667
|
+
decimalZeroes?: string;
|
|
2668
|
+
fieldType: 'input';
|
|
2669
|
+
isoDateValue?: string;
|
|
2670
|
+
length?: number;
|
|
2671
|
+
mask?: string;
|
|
2672
|
+
maskPlaceholder?: string;
|
|
2673
|
+
regExp?: string;
|
|
2674
|
+
qryId?: string;
|
|
2675
|
+
qry_show_value?: string;
|
|
2676
|
+
value: {
|
|
2677
|
+
showValue: string;
|
|
2678
|
+
storeValue?: string;
|
|
2679
|
+
};
|
|
2680
|
+
valueType?: 'D';
|
|
2681
|
+
};
|
|
2682
|
+
|
|
2683
|
+
type InputEvents = 'onChange' | 'onModalReturn';
|
|
2684
|
+
type ModalInputValue = {
|
|
2685
|
+
showValue: string;
|
|
2686
|
+
storeValue?: string;
|
|
2687
|
+
};
|
|
2688
|
+
declare class ModalInput extends FieldWithAttribute<TApiaInputProperties, ModalInputValue> {
|
|
2689
|
+
constructor({ value, ...definition }: TApiaModalInputDefinition);
|
|
2690
|
+
fireEvent(eventName: InputEvents): Promise<boolean>;
|
|
2691
|
+
setValueFromInputWrite(value: string): Promise<void>;
|
|
2692
|
+
setValueFromModalSelection(rowId: string): Promise<void>;
|
|
2693
|
+
validate(): Promise<boolean>;
|
|
2694
|
+
protected getSynchronizePostConfiguration(value: ModalInputValue): IApiaApiPostConfig<any>;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
declare class Multiple extends FieldWithAttribute<TApiaMultipleProperties, string[]> {
|
|
2698
|
+
constructor({ possibleValue, value, ...definition }: TApiaMultipleDefinition);
|
|
2699
|
+
setValue(newValue: string[], options?: Partial<{
|
|
2700
|
+
comparator: Comparator$1<any>;
|
|
2701
|
+
format: 'd/m/Y' | 'apia';
|
|
2702
|
+
markAsDirty: boolean;
|
|
2703
|
+
synchronize: boolean;
|
|
2704
|
+
}> | undefined): Promise<boolean>;
|
|
2705
|
+
validate(): Promise<boolean>;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
declare class Password extends FieldWithAttribute<TApiaPasswordProperties, string> {
|
|
2709
|
+
protected isValidValue(): boolean;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
type RadioEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
2713
|
+
declare class Radio extends FieldWithAttribute<TApiaRadioProperties, number | string, TApiaRadioButtonDefinition> {
|
|
2714
|
+
constructor({ possibleValue, ...definition }: TApiaRadioButtonDefinition);
|
|
2715
|
+
init(form: Form): Promise<void>;
|
|
2716
|
+
fireEvent(eventName: RadioEvents): Promise<boolean>;
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
declare class Select extends FieldWithAttribute<TApiaSelectProperties, string, TApiaSelectDefinition> {
|
|
2720
|
+
constructor({ possibleValue, ...definition }: TApiaSelectDefinition);
|
|
2721
|
+
protected getInitialValue({ properties: { possibleValue }, }: TApiaFieldWithAttributeBaseProps<TApiaSelectProperties>): Promise<string>;
|
|
2838
2722
|
}
|
|
2839
2723
|
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
constructor(field: Editor);
|
|
2724
|
+
declare class Textarea extends TranslatableField<TApiaTextareaProperties, string> {
|
|
2725
|
+
protected isValidValue(): boolean;
|
|
2843
2726
|
}
|
|
2844
2727
|
|
|
2845
|
-
declare class
|
|
2846
|
-
#private;
|
|
2847
|
-
constructor(attribute: Attribute);
|
|
2848
|
-
get attLabel(): string;
|
|
2849
|
-
get name(): string;
|
|
2850
|
-
get id(): string;
|
|
2851
|
-
get valueType(): TApiaFieldValueType;
|
|
2728
|
+
declare class Title extends Field<TApiaTitleProperties> {
|
|
2852
2729
|
}
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2730
|
+
|
|
2731
|
+
type TTreeValue = string | number;
|
|
2732
|
+
type TreeEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
2733
|
+
declare class Tree extends FieldWithAttribute<TApiaTreeProperties, TTreeValue[], TApiaTreeDefinition> {
|
|
2734
|
+
controller: MobXTree;
|
|
2735
|
+
private parseTreeValues;
|
|
2736
|
+
constructor({ possibleValue, ...props }: TApiaTreeDefinition);
|
|
2737
|
+
protected getSynchronizePostConfiguration(value: TTreeValue[]): IApiaApiPostConfig<any>;
|
|
2738
|
+
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
2739
|
+
setProperty<K extends keyof TApiaTreeProperties>(propName: K, propValue: TApiaTreeProperties[K]): void;
|
|
2740
|
+
init(form: Form): Promise<void>;
|
|
2741
|
+
protected isValidValue(): boolean;
|
|
2742
|
+
setValue(newValue: TTreeValue[], options?: Partial<{
|
|
2743
|
+
comparator: Comparator$1<any>;
|
|
2744
|
+
format: 'd/m/Y' | 'apia';
|
|
2745
|
+
markAsDirty: boolean;
|
|
2746
|
+
synchronize: boolean;
|
|
2747
|
+
}> | undefined): Promise<boolean>;
|
|
2862
2748
|
}
|
|
2863
2749
|
|
|
2864
|
-
type
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2750
|
+
type TSchedulerState = {
|
|
2751
|
+
data?: TScheduleResult;
|
|
2752
|
+
initialProps: IScheduleInitialProps;
|
|
2753
|
+
url?: string;
|
|
2754
|
+
selectedCell?: string | null;
|
|
2755
|
+
focusStage?: string;
|
|
2756
|
+
stageList?: string[];
|
|
2757
|
+
selectedDay?: ISelectedDay;
|
|
2758
|
+
stageData: IStage[];
|
|
2759
|
+
isStageMounted: Record<string, boolean>;
|
|
2760
|
+
validation: FieldValidationState;
|
|
2761
|
+
isLoading?: 'NotLoading' | 'Today' | 'LastWeek' | 'DateInput' | 'NextWeek' | 'DeleteWeek';
|
|
2762
|
+
};
|
|
2763
|
+
type TSelectedDateResponse = {
|
|
2764
|
+
success: boolean;
|
|
2765
|
+
};
|
|
2766
|
+
type TTskSchHour = {
|
|
2767
|
+
hour: string;
|
|
2768
|
+
disabled: boolean;
|
|
2769
|
+
value: string;
|
|
2770
|
+
};
|
|
2771
|
+
type TTskSchDay = {
|
|
2772
|
+
type: string;
|
|
2773
|
+
day: string;
|
|
2774
|
+
tskSchHour?: TTskSchHour | TTskSchHour[];
|
|
2775
|
+
isDisabled?: boolean;
|
|
2776
|
+
};
|
|
2777
|
+
type TScheduleResult = {
|
|
2778
|
+
calId: string;
|
|
2779
|
+
mode: string;
|
|
2780
|
+
overassign: string;
|
|
2781
|
+
weekNotConfigured: boolean;
|
|
2782
|
+
frec: string;
|
|
2783
|
+
tskSchId: string;
|
|
2784
|
+
mondayWeek: string;
|
|
2785
|
+
success: boolean;
|
|
2786
|
+
tskSchDay: TTskSchDay | TTskSchDay[];
|
|
2787
|
+
};
|
|
2788
|
+
interface IScheduleInitialProps {
|
|
2789
|
+
schId: string;
|
|
2790
|
+
proId: string;
|
|
2791
|
+
proVerId: string;
|
|
2792
|
+
tskId: string;
|
|
2793
|
+
showDisponibility: string;
|
|
2794
|
+
showAttributes: string;
|
|
2795
|
+
}
|
|
2796
|
+
interface ILabelSelectedDay {
|
|
2797
|
+
hour: string;
|
|
2798
|
+
day?: string | undefined;
|
|
2799
|
+
}
|
|
2800
|
+
interface ISelectedDay {
|
|
2801
|
+
hour?: string;
|
|
2802
|
+
day?: string;
|
|
2803
|
+
mondayWeek?: string;
|
|
2804
|
+
dayNumber?: number;
|
|
2805
|
+
morningOrAfternoonSelected?: number | null;
|
|
2806
|
+
}
|
|
2807
|
+
interface IStage {
|
|
2808
|
+
name: string;
|
|
2809
|
+
buttons?: IStageButton[];
|
|
2810
|
+
}
|
|
2811
|
+
interface IStageButton extends ButtonProps {
|
|
2812
|
+
label: string;
|
|
2813
|
+
title: string;
|
|
2814
|
+
action: () => unknown;
|
|
2815
|
+
isDisabled?: boolean;
|
|
2816
|
+
value?: string;
|
|
2817
|
+
isSelectedSelector: () => boolean;
|
|
2876
2818
|
}
|
|
2819
|
+
type TSchInfoResult = {
|
|
2820
|
+
pro_instances: {
|
|
2821
|
+
pro_instance: TProcesses;
|
|
2822
|
+
};
|
|
2823
|
+
};
|
|
2824
|
+
type TProcesses = {
|
|
2825
|
+
id: number;
|
|
2826
|
+
attributes: {
|
|
2827
|
+
attribute: {
|
|
2828
|
+
title: string;
|
|
2829
|
+
value: string;
|
|
2830
|
+
}[];
|
|
2831
|
+
};
|
|
2832
|
+
}[];
|
|
2877
2833
|
|
|
2878
|
-
declare
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2834
|
+
declare function getCurrentDate(): string;
|
|
2835
|
+
interface ISchedulerStore {
|
|
2836
|
+
}
|
|
2837
|
+
declare class Scheduler extends Field<TApiaSchedulerProperties> {
|
|
2838
|
+
state: TSchedulerState;
|
|
2839
|
+
private inited;
|
|
2840
|
+
protected readonly tableController: TableController;
|
|
2841
|
+
constructor(definition: TApiaFieldBaseDefinition<TApiaSchedulerProperties>);
|
|
2842
|
+
get controller(): TableController;
|
|
2843
|
+
get initialProperties(): {
|
|
2844
|
+
schId: string;
|
|
2845
|
+
proId: string;
|
|
2846
|
+
proVerId: string;
|
|
2847
|
+
tskId: string;
|
|
2848
|
+
showDisponibility: string;
|
|
2849
|
+
showAttributes: string;
|
|
2850
|
+
};
|
|
2851
|
+
init(form: Form): Promise<void>;
|
|
2852
|
+
loadWeek(weekDay?: string): Promise<void>;
|
|
2853
|
+
private parseRows;
|
|
2854
|
+
private isMorningTime;
|
|
2855
|
+
setState(newState: Partial<TSchedulerState>): void;
|
|
2856
|
+
setDay(day: ISelectedDay): void;
|
|
2857
|
+
setStage({ index, newStage }: {
|
|
2858
|
+
index: number;
|
|
2859
|
+
newStage: IStage;
|
|
2860
|
+
}): void;
|
|
2861
|
+
syncStage(day: TTskSchDay, hour: number): void;
|
|
2862
|
+
makeDaysStage(data?: TScheduleResult): void;
|
|
2863
|
+
private makeMorningOrAfternoonStage;
|
|
2864
|
+
private makeHoursStage;
|
|
2865
|
+
deleteDate(): Promise<void>;
|
|
2866
|
+
goNextWeek(): Promise<void>;
|
|
2867
|
+
goPreviousWeek(): Promise<void>;
|
|
2868
|
+
parsedDateLabel: () => string;
|
|
2869
|
+
getSchedulerColumns(data: TScheduleResult | null): CellState[];
|
|
2882
2870
|
}
|
|
2883
2871
|
|
|
2884
|
-
declare
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2872
|
+
declare const IProperty: {
|
|
2873
|
+
readonly FUNC_LOAD: "onload";
|
|
2874
|
+
readonly FUNC_RELOAD: "onreload";
|
|
2875
|
+
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
2876
|
+
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
2877
|
+
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
2878
|
+
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
2879
|
+
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
2880
|
+
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
2881
|
+
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
2882
|
+
readonly SIGNABLE_FORM: "signableForm";
|
|
2883
|
+
readonly MARKED_TO_SIGN: "markedToSign";
|
|
2884
|
+
readonly REQUIRED_SIGN: "requiredSignableForm";
|
|
2885
|
+
readonly LANGUAGES: "langs";
|
|
2886
|
+
readonly TYPE_INPUT: "input";
|
|
2887
|
+
readonly TYPE_SELECT: "select";
|
|
2888
|
+
readonly TYPE_RADIO: "radio";
|
|
2889
|
+
readonly TYPE_CHECK: "check";
|
|
2890
|
+
readonly TYPE_BUTTON: "button";
|
|
2891
|
+
readonly TYPE_AREA: "area";
|
|
2892
|
+
readonly TYPE_LABEL: "label";
|
|
2893
|
+
readonly TYPE_TITLE: "title";
|
|
2894
|
+
readonly TYPE_FILE: "file";
|
|
2895
|
+
readonly TYPE_MULTIPLE: "multiple";
|
|
2896
|
+
readonly TYPE_HIDDEN: "hidden";
|
|
2897
|
+
readonly TYPE_PASSWORD: "password";
|
|
2898
|
+
readonly TYPE_GRID: "grid";
|
|
2899
|
+
readonly TYPE_IMAGE: "image";
|
|
2900
|
+
readonly TYPE_HREF: "href";
|
|
2901
|
+
readonly TYPE_EDITOR: "editor";
|
|
2902
|
+
readonly TYPE_TREE: "tree";
|
|
2903
|
+
readonly TYPE_CAPTCHA: "captcha";
|
|
2904
|
+
readonly FUNC_CLICK: "onclick";
|
|
2905
|
+
readonly FUNC_CHANGE: "onchange";
|
|
2906
|
+
readonly FUNC_MODAL_RETURN: "onmodalreturn";
|
|
2907
|
+
readonly FUNC_ROW_ADD: "onrowadd";
|
|
2908
|
+
readonly FUNC_ROW_DELETE: "onrowdelete";
|
|
2909
|
+
readonly FUNC_ROW_SORT: "onrowsort";
|
|
2910
|
+
readonly FUNC_COL_SELECT: "oncolselect";
|
|
2911
|
+
readonly FIELD_PROPERTIES: "properties";
|
|
2912
|
+
readonly PROPERTY_NAME: "name";
|
|
2913
|
+
readonly PROPERTY_SIZE: "size";
|
|
2914
|
+
readonly PROPERTY_READONLY: "readonly";
|
|
2915
|
+
readonly PROPERTY_DISABLED: "disabled";
|
|
2916
|
+
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
2917
|
+
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
2918
|
+
readonly PROPERTY_VALUE: "value";
|
|
2919
|
+
readonly PROPERTY_REQUIRED: "required";
|
|
2920
|
+
readonly PROPERTY_COLSPAN: "colspan";
|
|
2921
|
+
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
2922
|
+
readonly PROPERTY_MODAL: "modal";
|
|
2923
|
+
readonly PROPERTY_ROWS: "thisRows";
|
|
2924
|
+
readonly PROPERTY_BOLD: "bold";
|
|
2925
|
+
readonly PROPERTY_UNDERLINED: "underlined";
|
|
2926
|
+
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
2927
|
+
readonly PROPERTY_IMAGE: "imageUrl";
|
|
2928
|
+
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
2929
|
+
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
2930
|
+
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
2931
|
+
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
2932
|
+
readonly PROPERTY_TRANSIENT: "transient";
|
|
2933
|
+
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
2934
|
+
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
2935
|
+
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
2936
|
+
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
2937
|
+
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
2938
|
+
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
2939
|
+
readonly PROPERTY_NO_ERASE: "noErase";
|
|
2940
|
+
readonly PROPERTY_NO_LOCK: "noLock";
|
|
2941
|
+
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
2942
|
+
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
2943
|
+
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
2944
|
+
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
2945
|
+
readonly PROPERTY_URL: "url";
|
|
2946
|
+
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
2947
|
+
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
2948
|
+
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
2949
|
+
readonly PROPERTY_PAGED_GRID: "paged";
|
|
2950
|
+
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
2951
|
+
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
2952
|
+
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
2953
|
+
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
2954
|
+
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
2955
|
+
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
2956
|
+
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
2957
|
+
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
2958
|
+
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
2959
|
+
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
2960
|
+
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
2961
|
+
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
2962
|
+
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
2963
|
+
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
2964
|
+
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
2965
|
+
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
2966
|
+
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
2967
|
+
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
2968
|
+
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
2969
|
+
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
2970
|
+
readonly PROPERTY_CHECKED: "checked";
|
|
2971
|
+
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
2972
|
+
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
2973
|
+
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
2974
|
+
readonly PROPERTY_HEIGHT: "height";
|
|
2975
|
+
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
2976
|
+
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
2977
|
+
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
2978
|
+
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
2979
|
+
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
2980
|
+
readonly PROPERTY_DOC_TYPE: "docType";
|
|
2981
|
+
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
2982
|
+
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
2983
|
+
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
2984
|
+
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
2985
|
+
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
2986
|
+
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
2987
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
2988
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
2989
|
+
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
2990
|
+
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
2991
|
+
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
2992
|
+
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
2993
|
+
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
2994
|
+
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
2995
|
+
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
2996
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
2997
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
2998
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
2999
|
+
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
3000
|
+
readonly STORE_KEY_FIELD: "field";
|
|
3001
|
+
readonly STORE_KEY_FORM: "form";
|
|
3002
|
+
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
3003
|
+
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
3004
|
+
readonly PROPERTY_ALT: "alt";
|
|
3005
|
+
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
3006
|
+
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
3007
|
+
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
3008
|
+
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
3009
|
+
readonly PROPERTY_TITLE: "title";
|
|
3010
|
+
};
|
|
3011
|
+
|
|
3012
|
+
declare class MessageNotification extends Notification {
|
|
3013
|
+
close(): void;
|
|
2888
3014
|
}
|
|
2889
3015
|
|
|
2890
|
-
declare class
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
3016
|
+
declare class StatusNotification extends Notification<NotificationDefinition & {
|
|
3017
|
+
blocking: boolean;
|
|
3018
|
+
}> {
|
|
3019
|
+
readonly props: NotificationDefinition & {
|
|
3020
|
+
blocking: boolean;
|
|
3021
|
+
};
|
|
3022
|
+
constructor(props: NotificationDefinition & {
|
|
3023
|
+
blocking: boolean;
|
|
3024
|
+
});
|
|
2894
3025
|
}
|
|
2895
3026
|
|
|
2896
|
-
type
|
|
2897
|
-
declare
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
3027
|
+
type Comparator<T> = (a: T, b: T) => boolean;
|
|
3028
|
+
declare const deepEqual: Comparator<any>;
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* @public
|
|
3032
|
+
*
|
|
3033
|
+
* The `EventEmitter` class is a generic utility for handling events. It allows subscribing to and emitting events.
|
|
3034
|
+
* This class is generic and works with a `Map` where keys are event names and values are the types associated with those events.
|
|
3035
|
+
*
|
|
3036
|
+
* @typeParam Events - An extension of `Map` where the key is the event name and the value is the type of data associated with that event.
|
|
3037
|
+
*/
|
|
3038
|
+
declare class EventEmitter<Events extends Map$1> {
|
|
3039
|
+
protected callbacks: Record<'on' | 'once', Callbacks<Events>>;
|
|
3040
|
+
protected enabled: boolean;
|
|
3041
|
+
protected debugMode: boolean;
|
|
3042
|
+
debug(enable?: boolean): void;
|
|
3043
|
+
/**
|
|
3044
|
+
* Emits an event with the given data. Any listeners subscribed to this event will be invoked with the passed data.
|
|
3045
|
+
*
|
|
3046
|
+
* @param event - The event name to emit.
|
|
3047
|
+
* @param data - The data associated with the event. Its type is dependent on the event name.
|
|
3048
|
+
*/
|
|
3049
|
+
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
3050
|
+
/**
|
|
3051
|
+
* Reflects the current emitter state. A disabled state indicates that the emitter wont call listeners until its functionality gets enabled again.
|
|
3052
|
+
*/
|
|
3053
|
+
get isEnabled(): boolean;
|
|
3054
|
+
off<K extends keyof Events>(event: K, cb: Callback<Events, K>): void;
|
|
3055
|
+
/**
|
|
3056
|
+
* Subscribes a callback function to an event. The callback is invoked each time the event is emitted.
|
|
3057
|
+
*
|
|
3058
|
+
* @param event - The event name to listen to.
|
|
3059
|
+
* @param cb - The callback function to be invoked when the event is emitted.
|
|
3060
|
+
* @returns A function to unsubscribe the event listener.
|
|
3061
|
+
*/
|
|
3062
|
+
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
3063
|
+
/**
|
|
3064
|
+
* Subscribes a callback function to an event for a single occurrence. After the event is emitted once, the listener is automatically removed.
|
|
3065
|
+
*
|
|
3066
|
+
* @param event - The event name to listen to for a single occurrence.
|
|
3067
|
+
* @param cb - The callback function to be invoked when the event is emitted.
|
|
3068
|
+
* @returns A function to unsubscribe the event listener.
|
|
3069
|
+
*/
|
|
3070
|
+
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2907
3071
|
}
|
|
2908
3072
|
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
3073
|
+
/**
|
|
3074
|
+
* @private
|
|
3075
|
+
*/
|
|
3076
|
+
type EmitterState<Events extends Map$1> = {
|
|
3077
|
+
[K in keyof Events]: Events[K];
|
|
3078
|
+
};
|
|
3079
|
+
/**
|
|
3080
|
+
* Extends EventEmitter to manage and emit events with state persistence.
|
|
3081
|
+
* This class allows emitting and listening to typed events while also keeping
|
|
3082
|
+
* a state that can be accessed synchronously for each event.
|
|
3083
|
+
*
|
|
3084
|
+
* @param initialState - If given will be passed to subscriptions
|
|
3085
|
+
*
|
|
3086
|
+
* @template Events - A mapping of event names to their associated data types.
|
|
3087
|
+
* @extends EventEmitter<Events>
|
|
3088
|
+
*/
|
|
3089
|
+
declare class StatefulEmitter<Events extends Map$1> extends EventEmitter<Events> {
|
|
3090
|
+
protected state: EmitterState<Events>;
|
|
3091
|
+
constructor(initialState?: Partial<Events>);
|
|
3092
|
+
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
3093
|
+
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
3094
|
+
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
3095
|
+
/**
|
|
3096
|
+
* Retrieves the stored state for a given event
|
|
3097
|
+
*/
|
|
3098
|
+
getState<K extends keyof Events>(event: K): Events[K];
|
|
3099
|
+
/**
|
|
3100
|
+
* Just an alias for emit, with the advantage that can be called with a callback as second parameter in which case behaves exactly as react's setState.
|
|
3101
|
+
*/
|
|
3102
|
+
setState<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>): void;
|
|
2920
3103
|
}
|
|
2921
3104
|
|
|
2922
|
-
|
|
2923
|
-
|
|
3105
|
+
type BouncingMap<Events extends Map$1> = {
|
|
3106
|
+
[K in keyof Events]: number;
|
|
3107
|
+
};
|
|
3108
|
+
declare const NullObject: unique symbol;
|
|
3109
|
+
type ThrottlingMap<Events extends Map$1> = {
|
|
3110
|
+
[K in keyof Events]: Events[K] | typeof NullObject;
|
|
3111
|
+
};
|
|
3112
|
+
type ThrottlingMarkers<Events extends Map$1> = {
|
|
3113
|
+
[K in keyof Events]: boolean;
|
|
3114
|
+
};
|
|
3115
|
+
type DebounceOptions = Partial<{
|
|
3116
|
+
timing: number;
|
|
3117
|
+
}>;
|
|
3118
|
+
type ThrottleOptions = Partial<{
|
|
3119
|
+
emitOnStart?: boolean;
|
|
3120
|
+
timing: number;
|
|
3121
|
+
}>;
|
|
3122
|
+
/**
|
|
3123
|
+
* @public
|
|
3124
|
+
*
|
|
3125
|
+
* The BouncingEmitter class is an extension of EventEmitter which adds debouncing and throttling functionality.
|
|
3126
|
+
*
|
|
3127
|
+
* @typeParam — Events - An extension of Map where the key is the event name and the value is the type of data associated with that event.
|
|
3128
|
+
*/
|
|
3129
|
+
declare class BouncingEmitter<Events extends Map$1> extends StatefulEmitter<Events> {
|
|
3130
|
+
protected bouncingTimeouts: BouncingMap<Events>;
|
|
3131
|
+
protected defaultTiming: number;
|
|
3132
|
+
/**
|
|
3133
|
+
* Debounces a event emit with until there is no call to the emit methods by (timing)ms. Take the following event throttling, where each E is a call to this method and each character represents 20ms:
|
|
3134
|
+
*
|
|
3135
|
+
* E_E_E_E_E_E_E_E_E
|
|
3136
|
+
*
|
|
3137
|
+
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
3138
|
+
*
|
|
3139
|
+
* _____________________E
|
|
3140
|
+
*/
|
|
3141
|
+
debounce<K extends keyof Events>(event: K, data: Events[K], configuration?: DebounceOptions): void;
|
|
3142
|
+
/**
|
|
3143
|
+
* Throttles a event emit with the warranty that the data will be emitted at most every (timing)ms. Take the following event throttling, where each E is a call to this method and each character represents 20ms:
|
|
3144
|
+
*
|
|
3145
|
+
* E_E_E_E_E_E_E_E_E
|
|
3146
|
+
*
|
|
3147
|
+
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
3148
|
+
*
|
|
3149
|
+
* ____E____E____E______E
|
|
3150
|
+
*
|
|
3151
|
+
* @param configuration.emitOnStart - Emits an event on the first call to throttle when no pending throttle is stored. **If emitOnStart is true and an only call to throttle is made, it will emit an only event.**
|
|
3152
|
+
*/
|
|
3153
|
+
protected throttleData: ThrottlingMap<Events>;
|
|
3154
|
+
protected throttleEmittedOnInit: ThrottlingMarkers<Events>;
|
|
3155
|
+
throttle<K extends keyof Events>(event: K, data: Events[K], configuration?: ThrottleOptions): void;
|
|
3156
|
+
/**
|
|
3157
|
+
* This method is a mix between setState and debounce
|
|
3158
|
+
*/
|
|
3159
|
+
setStateDebounced<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>, configuration?: DebounceOptions): void;
|
|
3160
|
+
/**
|
|
3161
|
+
* This method is a mix between setState and throttle
|
|
3162
|
+
*/
|
|
3163
|
+
setStateThrottled<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>, configuration?: ThrottleOptions): void;
|
|
2924
3164
|
}
|
|
2925
3165
|
|
|
2926
|
-
declare
|
|
2927
|
-
|
|
2928
|
-
|
|
3166
|
+
declare function getLabel(execution: Execution, label: string, replacers?: Partial<{
|
|
3167
|
+
text: Record<string, string>;
|
|
3168
|
+
tooltip: Record<string, string>;
|
|
3169
|
+
}>): {
|
|
3170
|
+
text: string;
|
|
3171
|
+
tooltip: string;
|
|
3172
|
+
};
|
|
2929
3173
|
|
|
2930
|
-
|
|
2931
|
-
getValue(): null;
|
|
2932
|
-
setValue(): null;
|
|
2933
|
-
getLabel(): void;
|
|
2934
|
-
clearValue(): null;
|
|
2935
|
-
}
|
|
2936
|
-
declare class ImageField extends ApiaField implements IImageField {
|
|
2937
|
-
#private;
|
|
2938
|
-
constructor(field: Image);
|
|
2939
|
-
clearValue(): null;
|
|
2940
|
-
getLabel(): void;
|
|
2941
|
-
getValue(): null;
|
|
2942
|
-
setValue(): null;
|
|
2943
|
-
}
|
|
3174
|
+
declare const parseXml: <T = Record<string, unknown>>(xml: XMLDocument | string) => T;
|
|
2944
3175
|
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
3176
|
+
type TCheckWizardResponse = {
|
|
3177
|
+
url: string;
|
|
3178
|
+
};
|
|
3179
|
+
type TFetchConfirmPathResponse = {
|
|
3180
|
+
onClose?: string;
|
|
3181
|
+
sysMessages?: {
|
|
3182
|
+
message?: {
|
|
3183
|
+
text: string;
|
|
3184
|
+
};
|
|
3185
|
+
};
|
|
3186
|
+
pathSelection?: boolean | null;
|
|
3187
|
+
groupSelection?: boolean | null;
|
|
3188
|
+
load?: TApiaLoadForm & {
|
|
3189
|
+
type: 'form' | 'text' | 'table' | 'function';
|
|
3190
|
+
canClose: boolean;
|
|
3191
|
+
text?: {
|
|
3192
|
+
closeAll: string;
|
|
3193
|
+
title: string;
|
|
3194
|
+
addClass: string;
|
|
3195
|
+
label: string;
|
|
3196
|
+
content?: string;
|
|
3197
|
+
};
|
|
3198
|
+
};
|
|
3199
|
+
actions?: {
|
|
3200
|
+
action: {
|
|
3201
|
+
toDo: 'functionTimedCall';
|
|
3202
|
+
param: [number, string];
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
3205
|
+
};
|
|
3206
|
+
type TItemTreeObj = {
|
|
3207
|
+
id: string;
|
|
3208
|
+
name: string;
|
|
3209
|
+
level: number;
|
|
3210
|
+
value: boolean;
|
|
3211
|
+
type: TPathType;
|
|
3212
|
+
isOn: boolean;
|
|
3213
|
+
};
|
|
3214
|
+
type TPathType = 'OR' | 'XOR' | 'AND';
|
|
2953
3215
|
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
3216
|
+
declare class ShowPathSelection extends FlowModal<{
|
|
3217
|
+
confirmed: boolean;
|
|
3218
|
+
path: string;
|
|
3219
|
+
}> {
|
|
3220
|
+
fetchResult: TApiaLoadForm['form'];
|
|
3221
|
+
confirm: (result: {
|
|
3222
|
+
confirmed: boolean;
|
|
3223
|
+
path: string;
|
|
3224
|
+
}) => Promise<Status | FlowModal<any>>;
|
|
3225
|
+
state: {
|
|
3226
|
+
disabledParents: TItemTreeObj | TItemTreeObj[] | null;
|
|
3227
|
+
groupSelectionObj: TFetchConfirmPathResponse | null;
|
|
3228
|
+
};
|
|
3229
|
+
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
3230
|
+
confirmed: boolean;
|
|
3231
|
+
path: string;
|
|
3232
|
+
}) => Promise<Status | FlowModal<any>>);
|
|
3233
|
+
setDisabledParent(treeItem: TItemTreeObj): void;
|
|
3234
|
+
clearPaths(): void;
|
|
3235
|
+
showGroupsSelection(fetchConfirmPathResponse: TFetchConfirmPathResponse): void;
|
|
3236
|
+
updateDisabledList(itemObj: TItemTreeObj, itemArr: TItemTreeObj[]): TItemTreeObj[];
|
|
2961
3237
|
}
|
|
2962
3238
|
|
|
2963
|
-
declare class
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
getAllColumns(): (IApiaField | null)[][];
|
|
2977
|
-
getColumn(fieldName: string): (IApiaField | null)[];
|
|
2978
|
-
getCurrentPage(): number;
|
|
2979
|
-
getField(fieldName: string, fieldIndex?: number): (IApiaField | null)[] | null;
|
|
2980
|
-
getPageCount(): number;
|
|
2981
|
-
getPageSize(): number;
|
|
2982
|
-
getRow(index: number): IApiaField[] | undefined;
|
|
2983
|
-
getSelection(): IApiaField[][];
|
|
2984
|
-
get id(): string;
|
|
2985
|
-
isPaged(): boolean;
|
|
2986
|
-
get rowsCount(): number;
|
|
2987
|
-
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2988
|
-
toggleDeleteButton(index: number, isShown?: boolean): void;
|
|
2989
|
-
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
3239
|
+
declare class ShowPoolSelection extends FlowModal<{
|
|
3240
|
+
confirmed: boolean;
|
|
3241
|
+
group: string;
|
|
3242
|
+
}> {
|
|
3243
|
+
fetchResult: TApiaLoadForm['form'];
|
|
3244
|
+
confirm: (result: {
|
|
3245
|
+
confirmed: boolean;
|
|
3246
|
+
group: string;
|
|
3247
|
+
}) => Promise<Status>;
|
|
3248
|
+
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
3249
|
+
confirmed: boolean;
|
|
3250
|
+
group: string;
|
|
3251
|
+
}) => Promise<Status>);
|
|
2990
3252
|
}
|
|
2991
3253
|
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3254
|
+
declare class ShowSignSelection extends FlowModal<{
|
|
3255
|
+
confirmed: boolean;
|
|
3256
|
+
signed: boolean;
|
|
3257
|
+
}> {
|
|
3258
|
+
fetchResult: any;
|
|
3259
|
+
confirm: (result: {
|
|
3260
|
+
confirmed: boolean;
|
|
3261
|
+
signed: boolean;
|
|
3262
|
+
}) => Promise<Status>;
|
|
3263
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
3264
|
+
confirmed: boolean;
|
|
3265
|
+
signed: boolean;
|
|
3266
|
+
}) => Promise<Status>);
|
|
2995
3267
|
}
|
|
2996
3268
|
|
|
2997
|
-
declare class
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3269
|
+
declare class ShowConfirmMessage extends FlowModal<{
|
|
3270
|
+
confirmed: boolean;
|
|
3271
|
+
}> {
|
|
3272
|
+
fetchResult: any;
|
|
3273
|
+
confirm: (result: {
|
|
3274
|
+
confirmed: boolean;
|
|
3275
|
+
}) => Promise<Status>;
|
|
3276
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
3277
|
+
confirmed: boolean;
|
|
3278
|
+
}) => Promise<Status>);
|
|
3002
3279
|
}
|
|
3003
3280
|
|
|
3004
|
-
declare class
|
|
3005
|
-
|
|
3281
|
+
declare class ShowSign extends FlowModal<{
|
|
3282
|
+
confirmed: boolean;
|
|
3283
|
+
}> {
|
|
3284
|
+
fetchResult: any;
|
|
3285
|
+
confirm: (result: {
|
|
3286
|
+
confirmed: boolean;
|
|
3287
|
+
}) => Promise<Status>;
|
|
3288
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
3289
|
+
confirmed: boolean;
|
|
3290
|
+
}) => Promise<Status>);
|
|
3006
3291
|
}
|
|
3007
3292
|
|
|
3008
|
-
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaFieldWithAttribute, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IButton, type IIProperty, type IPoolsPermissions, IProperty, type ISignatureData, type IUsersPermissions, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, Multiple, MultipleField, Notifications, Password, PasswordField, type PossibleValue, Radio, RadioField, type RadioPossibleValue, Select, SelectField, type SelectPossibleValue, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, type Status, StatusNotification, type TActionButtons, type TAjaxUploadFileStatus, type TAjaxUploadStart, type TApiaButtonProperties, type TApiaCaptchaProperties, type TApiaCheckboxProperties, type TApiaDocumentDefinition, type TApiaEditorProperties, type TApiaFieldBaseDefinition, type TApiaFieldCommonProperties, type TApiaFieldDefinition, type TApiaFieldPossibleValue, type TApiaFieldSizableFieldProperties, type TApiaFieldType, type TApiaFieldValueType, type TApiaFieldWithAttributeBaseProps, type TApiaFieldWithAttributeProperties, type TApiaFileProperties, type TApiaForm, type TApiaFormProperties, type TApiaGridProperties, type TApiaGroupableFieldProperties, type TApiaHiddenProperties, type TApiaImageProperties, type TApiaInputProperties, type TApiaLabelProperties, type TApiaLinkProperties, type TApiaMultipleProperties, type TApiaPasswordProperties, type TApiaRadioProperties, type TApiaSelectProperties, type TApiaTextareaProperties, type TApiaTitleProperties, type TApiaTranslatableFieldProperties, type TApiaTreePossibleValue, type TApiaTreeProperties, type TApiaValuatedFieldProperties, type TConfirmDropModal, type TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TDocInfo, type TDocType, type TDocumentDownloadHistory, type TDocumentInformation, type TDocumentMetadata, type TDocumentPermission, type TDocumentVersion, type TExecutionConfig, type TFieldEvent, type TFieldScriptEvent, type TFieldScriptEventParameters, type TFieldScriptEvents, type TFieldServerEvent, type TFieldServerEvents, type TFileUploaded, type TFormEventName, type TFormScriptEvent, type TFormScriptEventParameters, type TFormScriptEvents, type TFrmParent, type TModalConfig, type TObservation, type TObservations, type TOnUploadProgress, type
|
|
3293
|
+
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IButton, type IIProperty, type ILabelSelectedDay, type IPoolsPermissions, IProperty, type IScheduleInitialProps, type ISchedulerStore, type ISelectedDay, type ISignatureData, type IStage, type IStageButton, type IUsersPermissions, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, Password, PasswordField, type PossibleValue, Radio, RadioField, type RadioPossibleValue, Scheduler, Select, SelectField, type SelectPossibleValue, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, type Status, StatusNotification, type TActionButtons, type TAjaxUploadFileStatus, type TAjaxUploadStart, type TApiaButtonProperties, type TApiaCaptchaProperties, type TApiaCheckboxProperties, type TApiaDocumentDefinition, type TApiaEditorProperties, type TApiaFieldBaseDefinition, type TApiaFieldCommonProperties, type TApiaFieldDefinition, type TApiaFieldPossibleValue, type TApiaFieldSizableFieldProperties, type TApiaFieldType, type TApiaFieldValueType, type TApiaFieldWithAttributeBaseProps, type TApiaFieldWithAttributeProperties, type TApiaFileProperties, type TApiaForm, type TApiaFormProperties, type TApiaGridProperties, type TApiaGroupableFieldProperties, type TApiaHiddenProperties, type TApiaImageProperties, type TApiaInputProperties, type TApiaLabelProperties, type TApiaLinkProperties, type TApiaMultipleProperties, type TApiaPasswordProperties, type TApiaRadioProperties, type TApiaSchedulerProperties, type TApiaSelectProperties, type TApiaTextareaProperties, type TApiaTitleProperties, type TApiaTranslatableFieldProperties, type TApiaTreePossibleValue, type TApiaTreeProperties, type TApiaValuatedFieldProperties, type TCheckWizardResponse, type TConfirmDropModal, type TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TDocInfo, type TDocType, type TDocumentDownloadHistory, type TDocumentInformation, type TDocumentMetadata, type TDocumentPermission, type TDocumentVersion, type TExecutionConfig, type TFetchConfirmPathResponse, type TFieldEvent, type TFieldScriptEvent, type TFieldScriptEventParameters, type TFieldScriptEvents, type TFieldServerEvent, type TFieldServerEvents, type TFileUploaded, type TFormEventName, type TFormScriptEvent, type TFormScriptEventParameters, type TFormScriptEvents, type TFrmParent, type TItemTreeObj, type TModalConfig, type TObservation, type TObservations, type TOnUploadProgress, type TPathType, type TProcessDroppedFiles, type TProcesses, type TRequireOnlyOne, type TSaveDroppedFilesConf, type TSchInfoResult, type TScheduleResult, type TSchedulerState, type TSelectedDateResponse, type TSignaturesData, type TTskSchDay, type TTskSchHour, type TUploadModalOpener, type TUploaderFileInfo, type TUploaderLoadCurrentFunction, type TUploaderLoadCurrentFunctionMessages, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, UploaderModalController, type UploaderModalState, type UploaderState, createNewField, deepEqual, get, getCurrentDate, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFileDefinition, parseSuccessfulResponse, parseXml, post, returnExactlyTheSame, shallowEqual };
|
|
3009
3294
|
//# sourceMappingURL=index.d.ts.map
|