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