@apia/execution 4.0.16 → 4.0.18
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 +1442 -1128
- package/dist/index.js +6604 -6110
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,150 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { IStringifyOptions } from 'qs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DeepReadonly, TApiaLoad, TApiaFunction, Mutex, TApiaLoadForm } from '@apia/util';
|
|
4
|
+
import { TableController, Row, Cell, CellState } from '@apia/table2';
|
|
5
|
+
import { TMessageType, ChatMessage, ScreenLocker, TModal, TOpenModal as TOpenModal$1, TDispatchedNotification } from '@apia/components';
|
|
5
6
|
import * as _apia_api from '@apia/api';
|
|
6
7
|
import * as _apia_notifications from '@apia/notifications';
|
|
7
|
-
import { Controller2 } from '@apia/table';
|
|
8
|
-
|
|
9
|
-
declare const IProperty: {
|
|
10
|
-
readonly FUNC_LOAD: "onload";
|
|
11
|
-
readonly FUNC_RELOAD: "onreload";
|
|
12
|
-
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
13
|
-
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
14
|
-
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
15
|
-
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
16
|
-
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
17
|
-
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
18
|
-
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
19
|
-
readonly SIGNABLE_FORM: "signableForm";
|
|
20
|
-
readonly MARKED_TO_SIGN: "markedToSign";
|
|
21
|
-
readonly REQUIRED_SIGN: "requiredSignableForm";
|
|
22
|
-
readonly LANGUAGES: "langs";
|
|
23
|
-
readonly TYPE_INPUT: "input";
|
|
24
|
-
readonly TYPE_SELECT: "select";
|
|
25
|
-
readonly TYPE_RADIO: "radio";
|
|
26
|
-
readonly TYPE_CHECK: "check";
|
|
27
|
-
readonly TYPE_BUTTON: "button";
|
|
28
|
-
readonly TYPE_AREA: "area";
|
|
29
|
-
readonly TYPE_LABEL: "label";
|
|
30
|
-
readonly TYPE_TITLE: "title";
|
|
31
|
-
readonly TYPE_FILE: "file";
|
|
32
|
-
readonly TYPE_MULTIPLE: "multiple";
|
|
33
|
-
readonly TYPE_HIDDEN: "hidden";
|
|
34
|
-
readonly TYPE_PASSWORD: "password";
|
|
35
|
-
readonly TYPE_GRID: "grid";
|
|
36
|
-
readonly TYPE_IMAGE: "image";
|
|
37
|
-
readonly TYPE_HREF: "href";
|
|
38
|
-
readonly TYPE_EDITOR: "editor";
|
|
39
|
-
readonly TYPE_TREE: "tree";
|
|
40
|
-
readonly TYPE_CAPTCHA: "captcha";
|
|
41
|
-
readonly FUNC_CLICK: "onclick";
|
|
42
|
-
readonly FUNC_CHANGE: "onchange";
|
|
43
|
-
readonly FUNC_MODAL_RETURN: "onmodalreturn";
|
|
44
|
-
readonly FUNC_ROW_ADD: "onrowadd";
|
|
45
|
-
readonly FUNC_ROW_DELETE: "onrowdelete";
|
|
46
|
-
readonly FUNC_ROW_SORT: "onrowsort";
|
|
47
|
-
readonly FUNC_COL_SELECT: "oncolselect";
|
|
48
|
-
readonly FIELD_PROPERTIES: "properties";
|
|
49
|
-
readonly PROPERTY_NAME: "name";
|
|
50
|
-
readonly PROPERTY_SIZE: "size";
|
|
51
|
-
readonly PROPERTY_READONLY: "readonly";
|
|
52
|
-
readonly PROPERTY_DISABLED: "disabled";
|
|
53
|
-
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
54
|
-
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
55
|
-
readonly PROPERTY_VALUE: "value";
|
|
56
|
-
readonly PROPERTY_REQUIRED: "required";
|
|
57
|
-
readonly PROPERTY_COLSPAN: "colspan";
|
|
58
|
-
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
59
|
-
readonly PROPERTY_MODAL: "modal";
|
|
60
|
-
readonly PROPERTY_ROWS: "thisRows";
|
|
61
|
-
readonly PROPERTY_BOLD: "bold";
|
|
62
|
-
readonly PROPERTY_UNDERLINED: "underlined";
|
|
63
|
-
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
64
|
-
readonly PROPERTY_IMAGE: "imageUrl";
|
|
65
|
-
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
66
|
-
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
67
|
-
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
68
|
-
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
69
|
-
readonly PROPERTY_TRANSIENT: "transient";
|
|
70
|
-
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
71
|
-
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
72
|
-
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
73
|
-
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
74
|
-
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
75
|
-
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
76
|
-
readonly PROPERTY_NO_ERASE: "noErase";
|
|
77
|
-
readonly PROPERTY_NO_LOCK: "noLock";
|
|
78
|
-
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
79
|
-
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
80
|
-
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
81
|
-
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
82
|
-
readonly PROPERTY_URL: "url";
|
|
83
|
-
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
84
|
-
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
85
|
-
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
86
|
-
readonly PROPERTY_PAGED_GRID: "paged";
|
|
87
|
-
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
88
|
-
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
89
|
-
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
90
|
-
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
91
|
-
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
92
|
-
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
93
|
-
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
94
|
-
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
95
|
-
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
96
|
-
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
97
|
-
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
98
|
-
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
99
|
-
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
100
|
-
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
101
|
-
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
102
|
-
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
103
|
-
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
104
|
-
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
105
|
-
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
106
|
-
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
107
|
-
readonly PROPERTY_CHECKED: "checked";
|
|
108
|
-
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
109
|
-
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
110
|
-
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
111
|
-
readonly PROPERTY_HEIGHT: "height";
|
|
112
|
-
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
113
|
-
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
114
|
-
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
115
|
-
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
116
|
-
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
117
|
-
readonly PROPERTY_DOC_TYPE: "docType";
|
|
118
|
-
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
119
|
-
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
120
|
-
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
121
|
-
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
122
|
-
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
123
|
-
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
124
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
125
|
-
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
126
|
-
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
127
|
-
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
128
|
-
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
129
|
-
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
130
|
-
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
131
|
-
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
132
|
-
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
133
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
134
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
135
|
-
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
136
|
-
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
137
|
-
readonly STORE_KEY_FIELD: "field";
|
|
138
|
-
readonly STORE_KEY_FORM: "form";
|
|
139
|
-
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
140
|
-
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
141
|
-
readonly PROPERTY_ALT: "alt";
|
|
142
|
-
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
143
|
-
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
144
|
-
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
145
|
-
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
146
|
-
readonly PROPERTY_TITLE: "title";
|
|
147
|
-
};
|
|
148
8
|
|
|
149
9
|
type TApiaButtonDefinition = TApiaFieldBaseDefinition<TApiaButtonProperties> & {
|
|
150
10
|
fieldType: 'button';
|
|
@@ -230,6 +90,7 @@ type TApiaEditorDefinition = TApiaFieldWithAttributeBaseProps<TApiaEditorPropert
|
|
|
230
90
|
};
|
|
231
91
|
|
|
232
92
|
interface IApiaDataGridColumn {
|
|
93
|
+
fldId: string;
|
|
233
94
|
title: string;
|
|
234
95
|
colTitle: string;
|
|
235
96
|
colWidth: string;
|
|
@@ -286,7 +147,7 @@ type TApiaFieldBaseDefinition<T extends Record<any, any>> = {
|
|
|
286
147
|
colWidth?: string;
|
|
287
148
|
entityBind?: boolean;
|
|
288
149
|
file_prp?: string;
|
|
289
|
-
fieldType:
|
|
150
|
+
fieldType: 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'image' | 'input' | 'label' | 'href' | 'multiple' | 'password' | 'radio' | 'select' | 'area' | 'title' | 'tree';
|
|
290
151
|
forceSync?: boolean;
|
|
291
152
|
id: string;
|
|
292
153
|
index?: number;
|
|
@@ -332,6 +193,8 @@ type TApiaFieldPossibleValue = {
|
|
|
332
193
|
type TApiaFieldCommonProperties = {
|
|
333
194
|
alignment?: string;
|
|
334
195
|
alt?: string;
|
|
196
|
+
ariaLabel?: string;
|
|
197
|
+
ariaDescription?: string;
|
|
335
198
|
bold?: string;
|
|
336
199
|
colspan?: number;
|
|
337
200
|
colWidth?: string;
|
|
@@ -344,7 +207,9 @@ type TApiaFieldCommonProperties = {
|
|
|
344
207
|
name?: string;
|
|
345
208
|
noPrint?: boolean;
|
|
346
209
|
readonly?: boolean;
|
|
210
|
+
readOnly?: boolean;
|
|
347
211
|
rowspan?: number;
|
|
212
|
+
title?: string;
|
|
348
213
|
tooltip?: string;
|
|
349
214
|
tooltipHelp?: boolean;
|
|
350
215
|
visibilityHidden?: boolean;
|
|
@@ -373,8 +238,6 @@ type TApiaButtonProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProp
|
|
|
373
238
|
type TApiaCaptchaProperties = TApiaFieldCommonProperties & {};
|
|
374
239
|
type TApiaCheckboxProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
375
240
|
checked?: boolean;
|
|
376
|
-
ariaLabel?: string;
|
|
377
|
-
ariaDescription?: string;
|
|
378
241
|
autoFocus?: string;
|
|
379
242
|
placeHolder?: string;
|
|
380
243
|
title?: string;
|
|
@@ -382,8 +245,6 @@ type TApiaCheckboxProperties = TApiaFieldCommonProperties & TApiaGroupableFieldP
|
|
|
382
245
|
type TApiaEditorProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
383
246
|
autoFocus?: string;
|
|
384
247
|
placeHolder?: string;
|
|
385
|
-
ariaLabel?: string;
|
|
386
|
-
ariaDescription?: string;
|
|
387
248
|
title?: string;
|
|
388
249
|
tooltip?: string;
|
|
389
250
|
cssClass?: string;
|
|
@@ -414,8 +275,6 @@ type TApiaFileProperties = TApiaFieldCommonProperties & TApiaGroupableFieldPrope
|
|
|
414
275
|
oneClickUpload?: boolean;
|
|
415
276
|
reqSign?: boolean;
|
|
416
277
|
title?: string;
|
|
417
|
-
ariaLabel?: string;
|
|
418
|
-
ariaDescription?: string;
|
|
419
278
|
autoFocus?: string;
|
|
420
279
|
};
|
|
421
280
|
type TApiaGridProperties = TApiaFieldCommonProperties & {
|
|
@@ -445,8 +304,6 @@ type TApiaInputProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldP
|
|
|
445
304
|
autoFocus?: string;
|
|
446
305
|
title?: string;
|
|
447
306
|
inputType?: string;
|
|
448
|
-
ariaLabel?: string;
|
|
449
|
-
ariaDescription?: string;
|
|
450
307
|
storeMdlQryResult?: boolean;
|
|
451
308
|
};
|
|
452
309
|
type TApiaLabelProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
@@ -461,8 +318,6 @@ type TApiaMultipleProperties = TApiaFieldCommonProperties & TApiaFieldWithAttrib
|
|
|
461
318
|
fieldRows?: string;
|
|
462
319
|
};
|
|
463
320
|
type TApiaPasswordProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
464
|
-
ariaLabel: string;
|
|
465
|
-
ariaDescription: string;
|
|
466
321
|
title: string;
|
|
467
322
|
};
|
|
468
323
|
type RadioPossibleValue = {
|
|
@@ -478,23 +333,17 @@ type SelectPossibleValue = {
|
|
|
478
333
|
type TApiaRadioProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
479
334
|
dontBreakRadio?: string;
|
|
480
335
|
possibleValue?: RadioPossibleValue | RadioPossibleValue[];
|
|
481
|
-
ariaLabel?: string;
|
|
482
|
-
ariaDescription?: string;
|
|
483
336
|
autoFocus?: string;
|
|
484
337
|
title?: string;
|
|
485
338
|
};
|
|
486
339
|
type TApiaSelectProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
487
340
|
possibleValue?: SelectPossibleValue | SelectPossibleValue[];
|
|
488
|
-
ariaLabel?: string;
|
|
489
|
-
ariaDescription?: string;
|
|
490
341
|
autoFocus?: string;
|
|
491
342
|
placeHolder?: string;
|
|
492
343
|
autoComplete?: string;
|
|
493
344
|
title?: string;
|
|
494
345
|
};
|
|
495
346
|
type TApiaTextareaProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
496
|
-
ariaLabel?: string;
|
|
497
|
-
ariaDescription?: string;
|
|
498
347
|
autoFocus?: string;
|
|
499
348
|
placeHolder?: string;
|
|
500
349
|
title?: string;
|
|
@@ -508,140 +357,27 @@ type TApiaTreeProperties = TApiaFieldCommonProperties & TApiaFieldWithAttributeP
|
|
|
508
357
|
possibleValue: TApiaTreePossibleValue[];
|
|
509
358
|
selParent?: boolean;
|
|
510
359
|
title?: string;
|
|
511
|
-
ariaLabel?: string;
|
|
512
|
-
ariaDescription?: string;
|
|
513
360
|
autoFocus?: string;
|
|
514
361
|
};
|
|
515
362
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
type TFormEventName = 'onLoad' | 'onSubmit' | 'onReload' | 'onBeforePrint' | 'onAfterPrint';
|
|
526
|
-
type TFrmParent = 'E' | 'P';
|
|
527
|
-
type TFormScriptEventParameters = {
|
|
528
|
-
type: 'V' | 'P' | 'E';
|
|
529
|
-
value?: string;
|
|
530
|
-
attId?: string;
|
|
531
|
-
};
|
|
532
|
-
type TFormScriptEvent = {
|
|
533
|
-
fncName: string;
|
|
534
|
-
evtName: Readonly<TFormEventName>;
|
|
535
|
-
evtId: number | string;
|
|
536
|
-
fncParams: TFormScriptEventParameters[];
|
|
537
|
-
};
|
|
538
|
-
type TFormScriptEvents = TFormScriptEvent[];
|
|
539
|
-
type TApiaFormProperties = {
|
|
540
|
-
readOnly?: boolean;
|
|
541
|
-
readonly?: boolean;
|
|
542
|
-
frmHidden?: boolean;
|
|
543
|
-
prpFrmClosed?: boolean;
|
|
544
|
-
frmHighlight?: boolean;
|
|
545
|
-
frmInvisible?: boolean;
|
|
546
|
-
frmTab?: boolean;
|
|
547
|
-
frmDontFire?: boolean;
|
|
548
|
-
};
|
|
549
|
-
type ComponentProperties = {
|
|
550
|
-
colspan: string;
|
|
551
|
-
visible: boolean;
|
|
552
|
-
rowspan: string;
|
|
553
|
-
};
|
|
554
|
-
type ComponentEvent = {
|
|
555
|
-
name: string;
|
|
556
|
-
serverEvents: boolean;
|
|
557
|
-
script?: {
|
|
558
|
-
text: string;
|
|
559
|
-
}[];
|
|
560
|
-
};
|
|
561
|
-
type TCusCmpStateRequest = {
|
|
562
|
-
attribute: {
|
|
563
|
-
attId: number;
|
|
564
|
-
attName: string;
|
|
565
|
-
name: string;
|
|
566
|
-
values: {
|
|
567
|
-
text: string;
|
|
568
|
-
}[];
|
|
569
|
-
}[];
|
|
570
|
-
property: {
|
|
571
|
-
name: string;
|
|
572
|
-
value: any;
|
|
573
|
-
}[];
|
|
574
|
-
directive: {
|
|
575
|
-
type: 'RELOAD' | 'FIRE';
|
|
576
|
-
content: string;
|
|
577
|
-
}[];
|
|
578
|
-
additional?: {
|
|
579
|
-
text: string;
|
|
363
|
+
interface TApiaMessage {
|
|
364
|
+
text: string;
|
|
365
|
+
label?: string;
|
|
366
|
+
}
|
|
367
|
+
type ResponseSysMessages = {
|
|
368
|
+
sysMessages?: {
|
|
369
|
+
message: TApiaMessage | TApiaMessage[];
|
|
580
370
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
processResult?: {
|
|
584
|
-
state: TCusCmpStateRequest;
|
|
371
|
+
sysExceptions?: {
|
|
372
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
585
373
|
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
text: string;
|
|
374
|
+
exceptions?: {
|
|
375
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
589
376
|
};
|
|
590
377
|
};
|
|
591
|
-
type
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
description: string;
|
|
595
|
-
y: number;
|
|
596
|
-
id: string;
|
|
597
|
-
label: string;
|
|
598
|
-
properties: ComponentProperties;
|
|
599
|
-
event: ComponentEvent[];
|
|
600
|
-
state: {
|
|
601
|
-
state: TCusCmpStateRequest;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
type TApiaForm = {
|
|
605
|
-
chkAllowFormsAssistant?: boolean;
|
|
606
|
-
cols: number;
|
|
607
|
-
editModal?: boolean;
|
|
608
|
-
customField: TCustomComponentDefinition | TCustomComponentDefinition[];
|
|
609
|
-
field: TApiaFieldBaseDefinition<any>[] | TApiaFieldBaseDefinition<any>;
|
|
610
|
-
formName: Readonly<string>;
|
|
611
|
-
formTitle: Readonly<string>;
|
|
612
|
-
frmParent: TFrmParent;
|
|
613
|
-
id: Readonly<string>;
|
|
614
|
-
langs?: string;
|
|
615
|
-
markedToSign: boolean;
|
|
616
|
-
modalIndex?: number;
|
|
617
|
-
properties: string;
|
|
618
|
-
prpFrmClosed: boolean;
|
|
619
|
-
readonly?: boolean;
|
|
620
|
-
readOnly?: boolean;
|
|
621
|
-
requiredSignableForm: boolean;
|
|
622
|
-
rows: number;
|
|
623
|
-
scriptEvents?: TFormScriptEvents;
|
|
624
|
-
signableForm: boolean;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
interface TApiaMessage {
|
|
628
|
-
text: string;
|
|
629
|
-
label?: string;
|
|
630
|
-
}
|
|
631
|
-
type ResponseSysMessages = {
|
|
632
|
-
sysMessages?: {
|
|
633
|
-
message: TApiaMessage | TApiaMessage[];
|
|
634
|
-
};
|
|
635
|
-
sysExceptions?: {
|
|
636
|
-
exception: TApiaMessage | TApiaMessage[];
|
|
637
|
-
};
|
|
638
|
-
exceptions?: {
|
|
639
|
-
exception: TApiaMessage | TApiaMessage[];
|
|
640
|
-
};
|
|
641
|
-
};
|
|
642
|
-
type TApiaApiAxiosResponse<LoadType> = AxiosResponse<LoadType | null> & {
|
|
643
|
-
hasError: boolean;
|
|
644
|
-
hasMessages: boolean;
|
|
378
|
+
type TApiaApiAxiosResponse<LoadType> = AxiosResponse<LoadType | null> & {
|
|
379
|
+
hasError: boolean;
|
|
380
|
+
hasMessages: boolean;
|
|
645
381
|
};
|
|
646
382
|
type TApiaApiResult<LoadType> = Promise<TApiaApiAxiosResponse<(LoadType & ResponseSysMessages) | null> | null>;
|
|
647
383
|
interface IApiaApiRequestConfig {
|
|
@@ -653,56 +389,6 @@ interface IApiaApiPostConfig<DataType> extends IApiaApiRequestConfig {
|
|
|
653
389
|
postDataTreatment?: 'stringify';
|
|
654
390
|
}
|
|
655
391
|
|
|
656
|
-
type Comparator<T> = (a: T, b: T) => boolean;
|
|
657
|
-
declare const shallowEqual: Comparator<any>;
|
|
658
|
-
|
|
659
|
-
type SetValueOptions = Partial<{
|
|
660
|
-
comparator: Comparator<any>;
|
|
661
|
-
synchronize: boolean;
|
|
662
|
-
}>;
|
|
663
|
-
type FireEventParameters = Record<string, unknown>;
|
|
664
|
-
type FieldValidationState = {
|
|
665
|
-
dirty: boolean;
|
|
666
|
-
errorMessage: string | null;
|
|
667
|
-
synchronizing: boolean;
|
|
668
|
-
};
|
|
669
|
-
type FieldWithAttributeState<D, P, V> = {
|
|
670
|
-
definition: D;
|
|
671
|
-
properties: P;
|
|
672
|
-
value: V;
|
|
673
|
-
};
|
|
674
|
-
type TSignaturesData = {
|
|
675
|
-
ajaxUrl: string;
|
|
676
|
-
DownloadLabel: string;
|
|
677
|
-
DownloadToolTip: string;
|
|
678
|
-
docId?: string;
|
|
679
|
-
fldId?: string;
|
|
680
|
-
frmId: number;
|
|
681
|
-
frmParent: string;
|
|
682
|
-
index?: number;
|
|
683
|
-
isDoc?: boolean;
|
|
684
|
-
isField?: boolean;
|
|
685
|
-
noSignaturesLabel: string;
|
|
686
|
-
PKCS7Label: string;
|
|
687
|
-
PKCS7ToolTip: string;
|
|
688
|
-
prefix?: string;
|
|
689
|
-
signatures: ISignatureData[];
|
|
690
|
-
signedByLabel: string;
|
|
691
|
-
signedByToolTip: string;
|
|
692
|
-
signedDateLabel: string;
|
|
693
|
-
signedDateToolTip: string;
|
|
694
|
-
title: string;
|
|
695
|
-
verifyAction: string;
|
|
696
|
-
verifySignLabel: string;
|
|
697
|
-
verifySignToolTip: string;
|
|
698
|
-
};
|
|
699
|
-
interface ISignatureData {
|
|
700
|
-
date: string;
|
|
701
|
-
hasPKCS7: boolean;
|
|
702
|
-
user: string;
|
|
703
|
-
userId: number;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
392
|
declare global {
|
|
707
393
|
interface Window {
|
|
708
394
|
[key: string]: string;
|
|
@@ -714,7 +400,7 @@ declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchAr
|
|
|
714
400
|
declare class InvalidSessionException extends Error {
|
|
715
401
|
}
|
|
716
402
|
declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(response: AxiosResponse<string>) => Promise<(ResponseSysMessages & LoadType & {
|
|
717
|
-
onClose?: string
|
|
403
|
+
onClose?: string;
|
|
718
404
|
code?: unknown;
|
|
719
405
|
load?: LoadType | undefined;
|
|
720
406
|
}) | ({
|
|
@@ -852,6 +538,156 @@ type MakeApiaUrlProps = {
|
|
|
852
538
|
*/
|
|
853
539
|
declare function makeApiaUrl(props?: MakeApiaUrlProps): string;
|
|
854
540
|
|
|
541
|
+
type TFormEventName = 'onLoad' | 'onSubmit' | 'onReload' | 'onBeforePrint' | 'onAfterPrint';
|
|
542
|
+
type TFrmParent = 'E' | 'P';
|
|
543
|
+
type TFormScriptEventParameters = {
|
|
544
|
+
type: 'V' | 'P' | 'E';
|
|
545
|
+
value?: string;
|
|
546
|
+
attId?: string;
|
|
547
|
+
};
|
|
548
|
+
type TFormScriptEvent = {
|
|
549
|
+
fncName: string;
|
|
550
|
+
evtName: Readonly<TFormEventName>;
|
|
551
|
+
evtId: number | string;
|
|
552
|
+
fncParams: TFormScriptEventParameters[];
|
|
553
|
+
};
|
|
554
|
+
type TFormScriptEvents = TFormScriptEvent[];
|
|
555
|
+
type TApiaFormProperties = {
|
|
556
|
+
readOnly?: boolean;
|
|
557
|
+
readonly?: boolean;
|
|
558
|
+
frmHidden?: boolean;
|
|
559
|
+
prpFrmClosed?: boolean;
|
|
560
|
+
frmHighlight?: boolean;
|
|
561
|
+
frmInvisible?: boolean;
|
|
562
|
+
frmTab?: boolean;
|
|
563
|
+
frmDontFire?: boolean;
|
|
564
|
+
};
|
|
565
|
+
type ComponentProperties = {
|
|
566
|
+
colspan: string;
|
|
567
|
+
visible: boolean;
|
|
568
|
+
rowspan: string;
|
|
569
|
+
};
|
|
570
|
+
type ComponentEvent = {
|
|
571
|
+
name: string;
|
|
572
|
+
serverEvents: boolean;
|
|
573
|
+
script?: {
|
|
574
|
+
text: string;
|
|
575
|
+
}[];
|
|
576
|
+
};
|
|
577
|
+
type TCusCmpStateRequest = {
|
|
578
|
+
attribute: {
|
|
579
|
+
attId: number;
|
|
580
|
+
attName: string;
|
|
581
|
+
name: string;
|
|
582
|
+
values: string;
|
|
583
|
+
}[];
|
|
584
|
+
property: {
|
|
585
|
+
name: string;
|
|
586
|
+
value: any;
|
|
587
|
+
}[];
|
|
588
|
+
directive: {
|
|
589
|
+
type: 'RELOAD' | 'FIRE';
|
|
590
|
+
content: string;
|
|
591
|
+
}[];
|
|
592
|
+
additional?: {
|
|
593
|
+
text: string;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
type TCustomComponentDefaultResponse = {
|
|
597
|
+
processResult?: {
|
|
598
|
+
state: TCusCmpStateRequest;
|
|
599
|
+
};
|
|
600
|
+
state?: TCusCmpStateRequest;
|
|
601
|
+
ajaxUpdated?: {
|
|
602
|
+
text: string;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
type TCustomComponentDefinition = {
|
|
606
|
+
name: string;
|
|
607
|
+
x: number;
|
|
608
|
+
description: string;
|
|
609
|
+
y: number;
|
|
610
|
+
id: string;
|
|
611
|
+
label: string;
|
|
612
|
+
properties: ComponentProperties;
|
|
613
|
+
event: ComponentEvent[];
|
|
614
|
+
state: {
|
|
615
|
+
state: TCusCmpStateRequest;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
type TApiaForm = {
|
|
619
|
+
chkAllowFormsAssistant?: boolean;
|
|
620
|
+
cols: number;
|
|
621
|
+
editModal?: boolean;
|
|
622
|
+
customField: TCustomComponentDefinition | TCustomComponentDefinition[];
|
|
623
|
+
field: TApiaFieldBaseDefinition<any>[] | TApiaFieldBaseDefinition<any>;
|
|
624
|
+
formName: Readonly<string>;
|
|
625
|
+
formTitle: Readonly<string>;
|
|
626
|
+
frmParent: TFrmParent;
|
|
627
|
+
id: Readonly<string>;
|
|
628
|
+
langs?: string;
|
|
629
|
+
markedToSign: boolean;
|
|
630
|
+
modalIndex?: number;
|
|
631
|
+
properties: string;
|
|
632
|
+
prpFrmClosed: boolean;
|
|
633
|
+
readonly?: boolean;
|
|
634
|
+
readOnly?: boolean;
|
|
635
|
+
requiredSignableForm: boolean;
|
|
636
|
+
rows: number;
|
|
637
|
+
scriptEvents?: TFormScriptEvents;
|
|
638
|
+
signableForm: boolean;
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
type Comparator$1<T> = (a: T, b: T) => boolean;
|
|
642
|
+
declare const shallowEqual: Comparator$1<any>;
|
|
643
|
+
|
|
644
|
+
type SetValueOptions = Partial<{
|
|
645
|
+
comparator: Comparator$1<any>;
|
|
646
|
+
synchronize: boolean;
|
|
647
|
+
}>;
|
|
648
|
+
type FireEventParameters = Record<string, unknown>;
|
|
649
|
+
type FieldValidationState = {
|
|
650
|
+
dirty: boolean;
|
|
651
|
+
errorMessage: string | null;
|
|
652
|
+
synchronizing: boolean;
|
|
653
|
+
};
|
|
654
|
+
type FieldWithAttributeState<D, P, V> = {
|
|
655
|
+
definition: D;
|
|
656
|
+
properties: P;
|
|
657
|
+
value: V;
|
|
658
|
+
};
|
|
659
|
+
type TSignaturesData = {
|
|
660
|
+
ajaxUrl: string;
|
|
661
|
+
DownloadLabel: string;
|
|
662
|
+
DownloadToolTip: string;
|
|
663
|
+
docId?: string;
|
|
664
|
+
fldId?: string;
|
|
665
|
+
frmId: number;
|
|
666
|
+
frmParent: string;
|
|
667
|
+
index?: number;
|
|
668
|
+
isDoc?: boolean;
|
|
669
|
+
isField?: boolean;
|
|
670
|
+
noSignaturesLabel: string;
|
|
671
|
+
PKCS7Label: string;
|
|
672
|
+
PKCS7ToolTip: string;
|
|
673
|
+
prefix?: string;
|
|
674
|
+
signatures: ISignatureData[];
|
|
675
|
+
signedByLabel: string;
|
|
676
|
+
signedByToolTip: string;
|
|
677
|
+
signedDateLabel: string;
|
|
678
|
+
signedDateToolTip: string;
|
|
679
|
+
title: string;
|
|
680
|
+
verifyAction: string;
|
|
681
|
+
verifySignLabel: string;
|
|
682
|
+
verifySignToolTip: string;
|
|
683
|
+
};
|
|
684
|
+
interface ISignatureData {
|
|
685
|
+
date: string;
|
|
686
|
+
hasPKCS7: boolean;
|
|
687
|
+
user: string;
|
|
688
|
+
userId: number;
|
|
689
|
+
}
|
|
690
|
+
|
|
855
691
|
/**
|
|
856
692
|
* @public
|
|
857
693
|
*
|
|
@@ -887,45 +723,14 @@ declare class WithProperties<Props extends Record<string, any>> {
|
|
|
887
723
|
setProperty<K extends keyof Props>(propName: K, propValue: SetStateAction<Props[K]>): void;
|
|
888
724
|
}
|
|
889
725
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
definition: Omit<FieldDefinition, 'properties'>;
|
|
899
|
-
}> extends WithProperties<FieldProps> {
|
|
900
|
-
#private;
|
|
901
|
-
protected form: Form;
|
|
902
|
-
definition: State['definition'];
|
|
903
|
-
state: Omit<State, 'definition'> & {
|
|
904
|
-
validation: FieldValidationState;
|
|
905
|
-
};
|
|
906
|
-
constructor({ properties, ...definition }: FieldDefinition);
|
|
907
|
-
protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
|
|
908
|
-
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
909
|
-
protected fireScriptEvent(eventName: string): Promise<boolean>;
|
|
910
|
-
protected fireAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
911
|
-
protected fireNoAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
912
|
-
protected fireServerEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
913
|
-
fireEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
914
|
-
getForm(): Form;
|
|
915
|
-
protected hasEventsOfType(eventName: string): TFieldScriptEvent | TFieldServerEvent | undefined;
|
|
916
|
-
init(form: Form): Promise<void>;
|
|
917
|
-
validate(): Promise<boolean | Field>;
|
|
918
|
-
markAsRendered(): void;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
declare class Attribute {
|
|
922
|
-
readonly id: string;
|
|
923
|
-
readonly name: string;
|
|
924
|
-
readonly title: string;
|
|
925
|
-
readonly valueType: TApiaFieldValueType;
|
|
926
|
-
constructor(id: string, name: string, title: string, valueType: TApiaFieldValueType);
|
|
927
|
-
}
|
|
928
|
-
declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttributeProperties = TApiaFieldWithAttributeProperties, ValueType = any, FieldDefinition extends TApiaFieldWithAttributeBaseProps<FieldProps> = TApiaFieldWithAttributeBaseProps<FieldProps>> extends Field<FieldProps, FieldDefinition, FieldWithAttributeState<FieldDefinition, FieldProps, ValueType>> {
|
|
726
|
+
declare class Attribute {
|
|
727
|
+
readonly id: string;
|
|
728
|
+
readonly name: string;
|
|
729
|
+
readonly title: string;
|
|
730
|
+
readonly valueType: TApiaFieldValueType;
|
|
731
|
+
constructor(id: string, name: string, title: string, valueType: TApiaFieldValueType);
|
|
732
|
+
}
|
|
733
|
+
declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttributeProperties = TApiaFieldWithAttributeProperties, ValueType = any, FieldDefinition extends TApiaFieldWithAttributeBaseProps<FieldProps> = TApiaFieldWithAttributeBaseProps<FieldProps>> extends Field<FieldProps, FieldDefinition, FieldWithAttributeState<FieldDefinition, FieldProps, ValueType>> {
|
|
929
734
|
#private;
|
|
930
735
|
protected lastSynchronizationValue: ValueType | null;
|
|
931
736
|
readonly attribute: Attribute;
|
|
@@ -943,91 +748,34 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
943
748
|
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
944
749
|
}
|
|
945
750
|
|
|
946
|
-
type
|
|
947
|
-
|
|
948
|
-
|
|
751
|
+
type TCustomComponentState = {
|
|
752
|
+
isLoading: boolean;
|
|
753
|
+
attributes: Record<string, any[]>;
|
|
754
|
+
properties: Record<string, any>;
|
|
755
|
+
additional: any;
|
|
949
756
|
};
|
|
950
|
-
declare class
|
|
951
|
-
protected fields: TApiaFieldBaseDefinition<Record<string, any>>[];
|
|
952
|
-
constructor(fields: TApiaFieldBaseDefinition<Record<string, any>>[]);
|
|
953
|
-
protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
954
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>;
|
|
955
|
-
}>>;
|
|
956
|
-
protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
957
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>;
|
|
958
|
-
}>>;
|
|
959
|
-
protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
960
|
-
protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
961
|
-
getAllFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
962
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
963
|
-
}>[];
|
|
964
|
-
getField(field: string): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
965
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
966
|
-
}> | undefined;
|
|
967
|
-
getFieldByAttributeId(attId: string | number): FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | undefined;
|
|
968
|
-
getFieldByAttributeName(attName: string): FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | undefined;
|
|
969
|
-
getFieldById(id: string | number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
970
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
971
|
-
}> | undefined;
|
|
972
|
-
getFieldByName(name: string): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
973
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
974
|
-
}> | undefined;
|
|
975
|
-
init(form: Form, index: number): Promise<void>;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
declare abstract class FieldWithIndexedFields<FieldProps extends FieldWithIndexedFieldsProps = FieldWithIndexedFieldsProps, FieldDefinition extends TApiaFieldBaseDefinition<FieldProps> = TApiaFieldBaseDefinition<FieldProps>, State extends Record<string, unknown> = Record<string, unknown>> extends Field<FieldProps, FieldDefinition, {
|
|
979
|
-
definition: Omit<FieldDefinition, 'properties'> & FieldWithIndexedFieldsProps;
|
|
980
|
-
} & State> {
|
|
757
|
+
declare class CustomComponent {
|
|
981
758
|
#private;
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
constructor(definition: FieldDefinition, fieldsDefinitions: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>[], fieldsStates: FieldState[][]);
|
|
989
|
-
protected fieldsGroups: FieldsGroup[];
|
|
990
|
-
isMaximized: boolean;
|
|
991
|
-
protected getFieldsGroupByIndex(index: number): FieldsGroup;
|
|
992
|
-
protected addGroup(group: FieldsGroup): Promise<void>;
|
|
759
|
+
readonly definition: TCustomComponentDefinition;
|
|
760
|
+
form: Form;
|
|
761
|
+
private _state;
|
|
762
|
+
constructor(definition: TCustomComponentDefinition);
|
|
763
|
+
get state(): DeepReadonly<TCustomComponentState>;
|
|
764
|
+
getAdditional<T>(): DeepReadonly<T>;
|
|
993
765
|
init(form: Form): Promise<void>;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
*/
|
|
1008
|
-
getField(field: string, index?: number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1009
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1010
|
-
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1011
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1012
|
-
}> | undefined)[] | undefined;
|
|
1013
|
-
getFieldByAttributeId(attId: string | number, index?: number): FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | (FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | undefined)[] | undefined;
|
|
1014
|
-
getFieldByAttributeName(attName: string, index?: number): FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | (FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | undefined)[] | undefined;
|
|
1015
|
-
getFieldById(id: string | number, index?: number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1016
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1017
|
-
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1018
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1019
|
-
}> | undefined)[] | undefined;
|
|
1020
|
-
getFieldByName(name: string, index?: number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1021
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1022
|
-
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1023
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1024
|
-
}> | undefined)[] | undefined;
|
|
1025
|
-
getRow(index: number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1026
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1027
|
-
}>[];
|
|
1028
|
-
getStartIndex(): number;
|
|
1029
|
-
getRowsIndices(): number[];
|
|
1030
|
-
validate(): Promise<true | Field>;
|
|
766
|
+
private parseStateObject;
|
|
767
|
+
processResult(res?: TCustomComponentDefaultResponse | null): Promise<void>;
|
|
768
|
+
protected getScriptEventParams(fncParams: TFncParams[]): unknown[];
|
|
769
|
+
protected fireScriptEvents(event: ComponentEvent): Promise<boolean>;
|
|
770
|
+
fireEvent(evtName: string): Promise<void>;
|
|
771
|
+
getProperty(prpName: string): any;
|
|
772
|
+
private postMessage;
|
|
773
|
+
setStringValue(attName: string, value: string): Promise<void>;
|
|
774
|
+
getStringValue(attName: string): string;
|
|
775
|
+
getValue(attName: string, index?: number): any;
|
|
776
|
+
setValue(attName: string, value: any, index: number): Promise<void>;
|
|
777
|
+
setProperty(prpName: string, value: any): Promise<void>;
|
|
778
|
+
sendMessage(payload: any): Promise<void>;
|
|
1031
779
|
}
|
|
1032
780
|
|
|
1033
781
|
declare class Form extends WithProperties<TApiaFormProperties> {
|
|
@@ -1035,42 +783,53 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1035
783
|
state: {
|
|
1036
784
|
isMarkedToSign: boolean;
|
|
1037
785
|
};
|
|
1038
|
-
protected
|
|
786
|
+
protected _customComponents: Map<string, CustomComponent>;
|
|
1039
787
|
protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1040
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>,
|
|
788
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1041
789
|
}>>;
|
|
1042
790
|
protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1043
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>,
|
|
791
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1044
792
|
}>>;
|
|
1045
793
|
protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1046
794
|
protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1047
|
-
protected fieldsGroups: Map<string,
|
|
795
|
+
protected fieldsGroups: Map<string, Grid>;
|
|
1048
796
|
definition: TApiaForm;
|
|
1049
797
|
constructor(definition: TApiaForm);
|
|
1050
|
-
|
|
1051
|
-
openForm(): void;
|
|
1052
|
-
getAllFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
798
|
+
get allFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1053
799
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1054
800
|
}>[];
|
|
1055
|
-
|
|
801
|
+
get customComponents(): Map<string, CustomComponent>;
|
|
802
|
+
closeForm(): void;
|
|
803
|
+
openForm(): void;
|
|
1056
804
|
getField(field: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1057
805
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1058
806
|
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1059
807
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1060
|
-
}> |
|
|
1061
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1062
|
-
}> | undefined)[] | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
808
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1063
809
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1064
810
|
}>[] | undefined;
|
|
1065
|
-
getFieldByAttributeId(attId: string | number, index?: number):
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
definition: Omit<TApiaFieldBaseDefinition<
|
|
1069
|
-
}> |
|
|
811
|
+
getFieldByAttributeId(attId: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
812
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
813
|
+
}> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
814
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
815
|
+
}>[] | undefined;
|
|
816
|
+
getFieldByAttributeName(attName: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
817
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
818
|
+
}> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
819
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
820
|
+
}>[] | undefined;
|
|
821
|
+
getFieldById(id: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
822
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
823
|
+
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1070
824
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1071
|
-
}> |
|
|
825
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
826
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
827
|
+
}>[] | undefined;
|
|
1072
828
|
getFieldByName(name: string): Field | Field[] | undefined;
|
|
1073
829
|
getFieldByName(name: string, index: number): Field | undefined;
|
|
830
|
+
protected getHiddenFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
831
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
832
|
+
}>[];
|
|
1074
833
|
markFormToSign(): Promise<void>;
|
|
1075
834
|
viewSigns(): Promise<TSignaturesData | undefined>;
|
|
1076
835
|
private cucCmpByAttId;
|
|
@@ -1087,34 +846,69 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1087
846
|
validate(): Promise<true | Field>;
|
|
1088
847
|
}
|
|
1089
848
|
|
|
1090
|
-
type
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
additional: any;
|
|
849
|
+
type TFncParams = {
|
|
850
|
+
type: 'V' | 'P' | 'E';
|
|
851
|
+
value?: string;
|
|
852
|
+
attId?: string | number;
|
|
1095
853
|
};
|
|
1096
|
-
declare class
|
|
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> {
|
|
1097
859
|
#private;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
860
|
+
protected form: Form;
|
|
861
|
+
definition: State['definition'];
|
|
862
|
+
state: Omit<State, 'definition'> & {
|
|
863
|
+
validation: FieldValidationState;
|
|
864
|
+
};
|
|
865
|
+
constructor({ properties, ...definition }: FieldDefinition);
|
|
866
|
+
protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
|
|
867
|
+
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
868
|
+
protected fireScriptEvent(eventName: string): Promise<boolean>;
|
|
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;
|
|
1104
877
|
init(form: Form): Promise<void>;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
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;
|
|
1118
912
|
}
|
|
1119
913
|
|
|
1120
914
|
type TTranslationState = {
|
|
@@ -1160,101 +954,10 @@ declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFie
|
|
|
1160
954
|
validate(): Promise<boolean>;
|
|
1161
955
|
}
|
|
1162
956
|
|
|
1163
|
-
type
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
calendar: {
|
|
1168
|
-
fixed: boolean;
|
|
1169
|
-
label: string;
|
|
1170
|
-
name: string;
|
|
1171
|
-
options: {
|
|
1172
|
-
label: string;
|
|
1173
|
-
value: string;
|
|
1174
|
-
selected: boolean;
|
|
1175
|
-
}[];
|
|
1176
|
-
toolTip: string;
|
|
1177
|
-
value: string;
|
|
1178
|
-
viewButton: {
|
|
1179
|
-
label: string;
|
|
1180
|
-
toolTip: string;
|
|
1181
|
-
};
|
|
1182
|
-
};
|
|
1183
|
-
comments: {
|
|
1184
|
-
currentComment: string;
|
|
1185
|
-
addMarker: boolean;
|
|
1186
|
-
markAll: boolean;
|
|
1187
|
-
deleteMarker: boolean;
|
|
1188
|
-
history: {
|
|
1189
|
-
comment: string;
|
|
1190
|
-
marked: boolean;
|
|
1191
|
-
date: string;
|
|
1192
|
-
user: string;
|
|
1193
|
-
}[];
|
|
1194
|
-
};
|
|
1195
|
-
identifier: {
|
|
1196
|
-
body: {
|
|
1197
|
-
name: string;
|
|
1198
|
-
required: boolean;
|
|
1199
|
-
toolTip: string;
|
|
1200
|
-
type: 'fixed' | 'custom';
|
|
1201
|
-
value: string;
|
|
1202
|
-
};
|
|
1203
|
-
label: string;
|
|
1204
|
-
prefix: {
|
|
1205
|
-
label: string;
|
|
1206
|
-
name: string;
|
|
1207
|
-
toolTip: string;
|
|
1208
|
-
type: 'fixed' | 'custom' | 'none';
|
|
1209
|
-
value: string;
|
|
1210
|
-
};
|
|
1211
|
-
required: boolean;
|
|
1212
|
-
suffix: {
|
|
1213
|
-
label: string;
|
|
1214
|
-
name: string;
|
|
1215
|
-
toolTip: string;
|
|
1216
|
-
type: 'fixed' | 'custom' | 'none';
|
|
1217
|
-
value: string;
|
|
1218
|
-
};
|
|
1219
|
-
toolTip: string;
|
|
1220
|
-
value: string;
|
|
1221
|
-
};
|
|
1222
|
-
priority: {
|
|
1223
|
-
disabled: boolean;
|
|
1224
|
-
isMonitor: boolean;
|
|
1225
|
-
label: string;
|
|
1226
|
-
name: string;
|
|
1227
|
-
options: {
|
|
1228
|
-
label: string;
|
|
1229
|
-
value: string;
|
|
1230
|
-
selected: boolean;
|
|
1231
|
-
}[];
|
|
1232
|
-
toolTip: string;
|
|
1233
|
-
value: string;
|
|
1234
|
-
};
|
|
1235
|
-
process: {
|
|
1236
|
-
label: string;
|
|
1237
|
-
toolTip: string;
|
|
1238
|
-
value: string;
|
|
1239
|
-
};
|
|
1240
|
-
processAction: {
|
|
1241
|
-
label: string;
|
|
1242
|
-
toolTip: string;
|
|
1243
|
-
value: string;
|
|
1244
|
-
};
|
|
1245
|
-
separator: string;
|
|
1246
|
-
status?: {
|
|
1247
|
-
label: string;
|
|
1248
|
-
toolTip: string;
|
|
1249
|
-
value: string;
|
|
1250
|
-
};
|
|
1251
|
-
title: string;
|
|
1252
|
-
user: {
|
|
1253
|
-
label: string;
|
|
1254
|
-
toolTIp: string;
|
|
1255
|
-
value: string;
|
|
1256
|
-
};
|
|
1257
|
-
};
|
|
957
|
+
type EditorEvents = 'onChange';
|
|
958
|
+
declare class Editor extends TranslatableField<TApiaEditorProperties, string> {
|
|
959
|
+
fireEvent(eventName: EditorEvents): Promise<boolean>;
|
|
960
|
+
}
|
|
1258
961
|
|
|
1259
962
|
type NotificationIcon = string;
|
|
1260
963
|
type NotificationType = 'info' | 'error' | 'success' | 'warning';
|
|
@@ -1301,7 +1004,16 @@ declare class UploaderApi {
|
|
|
1301
1004
|
get filesArray(): TUploaderFileInfo[];
|
|
1302
1005
|
constructor(id: string, type: 'E' | 'P', modalConfig: TModalConfig);
|
|
1303
1006
|
onInit(): Promise<void>;
|
|
1304
|
-
onStartUpload(): Promise<void>;
|
|
1007
|
+
onStartUpload(files?: File[]): Promise<void>;
|
|
1008
|
+
onTranslateUpload(conf: {
|
|
1009
|
+
langId: number;
|
|
1010
|
+
translatingFile: TUploaderFileInfo;
|
|
1011
|
+
}): Promise<void>;
|
|
1012
|
+
onVersionUpload(file: TUploaderFileInfo, conf?: {
|
|
1013
|
+
newFiles?: File[];
|
|
1014
|
+
langId?: number;
|
|
1015
|
+
translatingFile?: TUploaderFileInfo;
|
|
1016
|
+
}): Promise<void>;
|
|
1305
1017
|
autoLock(): Promise<boolean>;
|
|
1306
1018
|
notify(notification: NotificationDefinition): void;
|
|
1307
1019
|
protected getAjaxUrl(): string;
|
|
@@ -1346,10 +1058,14 @@ declare class UploaderApi {
|
|
|
1346
1058
|
};
|
|
1347
1059
|
} & _apia_notifications.TNotificationMessage) | null>;
|
|
1348
1060
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1061
|
+
* This method searches for the provided id in several places:
|
|
1062
|
+
*
|
|
1063
|
+
* If it's found in the current files, returns it.
|
|
1064
|
+
* If not, it searches the provided docId in the translations map of each uploaded file.
|
|
1351
1065
|
*/
|
|
1352
|
-
|
|
1066
|
+
getDocument(docId: string): TUploaderFileInfo | undefined;
|
|
1067
|
+
protected updateDocument(docId: string, newValue: TUploaderFileInfo): void;
|
|
1068
|
+
protected deleteDocument(docId: string): void;
|
|
1353
1069
|
clearFile(name: string): void;
|
|
1354
1070
|
clearFiles(): void;
|
|
1355
1071
|
clearState(): void;
|
|
@@ -1360,14 +1076,21 @@ declare class UploaderApi {
|
|
|
1360
1076
|
docId: string;
|
|
1361
1077
|
docTypeId: number | string;
|
|
1362
1078
|
}>, additionalProps?: Record<string, unknown>): Promise<void>;
|
|
1363
|
-
|
|
1079
|
+
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<void>;
|
|
1364
1080
|
checkWebDavLock(docId: string): Promise<unknown>;
|
|
1365
1081
|
checkSignature(file: TUploaderFileInfo): Promise<_apia_api.TApiaApiAxiosResponse<({
|
|
1366
1082
|
markedToSign: boolean;
|
|
1367
1083
|
} & _apia_notifications.TNotificationMessage) | null> | null>;
|
|
1368
1084
|
editDocument(id: string): Promise<void>;
|
|
1369
1085
|
downloadDocument(id: string, version?: string): Promise<void>;
|
|
1370
|
-
|
|
1086
|
+
ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
|
|
1087
|
+
version(file: TUploaderFileInfo, conf?: {
|
|
1088
|
+
newFiles?: File[];
|
|
1089
|
+
langId?: number;
|
|
1090
|
+
translatingFile?: TUploaderFileInfo;
|
|
1091
|
+
}): Promise<void>;
|
|
1092
|
+
versionFileInfo(file: TUploaderFileInfo): Promise<void>;
|
|
1093
|
+
pickFileById(id: string): Promise<void>;
|
|
1371
1094
|
markFileToSign(id: string, langId?: number): Promise<void>;
|
|
1372
1095
|
/**
|
|
1373
1096
|
* Por el momento realiza la descarga de todos los archivos
|
|
@@ -1381,7 +1104,7 @@ declare class UploaderApi {
|
|
|
1381
1104
|
loadCurrentDocuments(): Promise<void>;
|
|
1382
1105
|
lockDocument(id: string): Promise<void>;
|
|
1383
1106
|
protected evaluateDeleteDocumentResult(result: unknown): boolean;
|
|
1384
|
-
|
|
1107
|
+
setTranslationFile(file: TUploaderFileInfo, docId: string, langId: number): void;
|
|
1385
1108
|
protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
|
|
1386
1109
|
protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
|
|
1387
1110
|
protected getConfirmDropModalParameters: typeof returnExactlyTheSame;
|
|
@@ -1395,8 +1118,7 @@ declare class UploaderApi {
|
|
|
1395
1118
|
poolsPermissions: IPoolsPermissions[];
|
|
1396
1119
|
usersPermissions: IUsersPermissions[];
|
|
1397
1120
|
}) => string;
|
|
1398
|
-
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | [
|
|
1399
|
-
]) => string;
|
|
1121
|
+
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | []) => string;
|
|
1400
1122
|
protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
|
|
1401
1123
|
protected getClearTempFilesParameters: typeof returnExactlyTheSame;
|
|
1402
1124
|
protected getDocumentInfoParameters: typeof returnExactlyTheSame;
|
|
@@ -1419,13 +1141,23 @@ declare class UploaderApi {
|
|
|
1419
1141
|
shouldReset?: boolean;
|
|
1420
1142
|
}): File[];
|
|
1421
1143
|
parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
|
|
1144
|
+
getLoadFileSystemStructureTree: () => Record<string, unknown>;
|
|
1422
1145
|
}
|
|
1423
1146
|
|
|
1424
1147
|
declare class UploaderModalController {
|
|
1425
1148
|
api: UploaderApi;
|
|
1426
1149
|
modalConfig: TModalConfig;
|
|
1150
|
+
conf?: {
|
|
1151
|
+
langId?: number;
|
|
1152
|
+
translatingFile?: TUploaderFileInfo;
|
|
1153
|
+
versionFile?: TUploaderFileInfo;
|
|
1154
|
+
} | undefined;
|
|
1427
1155
|
state: UploaderModalState;
|
|
1428
|
-
constructor(api: UploaderApi, modalConfig: TModalConfig
|
|
1156
|
+
constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
|
|
1157
|
+
langId?: number;
|
|
1158
|
+
translatingFile?: TUploaderFileInfo;
|
|
1159
|
+
versionFile?: TUploaderFileInfo;
|
|
1160
|
+
} | undefined);
|
|
1429
1161
|
get allMetadata(): TDocumentMetadata[];
|
|
1430
1162
|
get allowAllType(): "" | "M" | "R";
|
|
1431
1163
|
get description(): string;
|
|
@@ -1442,10 +1174,12 @@ declare class UploaderModalController {
|
|
|
1442
1174
|
get selectedDocType(): TDocType | undefined;
|
|
1443
1175
|
addMetadata(): void;
|
|
1444
1176
|
addFiles(files: File[]): void;
|
|
1177
|
+
addDirectoryFile(file: TApiaDocumentDefinition): void;
|
|
1445
1178
|
changeDocType(docTypeId: string): Promise<void>;
|
|
1446
1179
|
clearFile(name: string): void;
|
|
1447
1180
|
clearFiles(): void;
|
|
1448
1181
|
clearState(): void;
|
|
1182
|
+
onCloseModal(): void;
|
|
1449
1183
|
confirm(): Promise<boolean>;
|
|
1450
1184
|
deleteMetadata(indices: number[]): void;
|
|
1451
1185
|
deletePermission(item: IPoolsPermissions | IUsersPermissions): void;
|
|
@@ -1464,6 +1198,7 @@ type UploaderModalState = {
|
|
|
1464
1198
|
isFreeMetadata: boolean;
|
|
1465
1199
|
freeMetadataArray: TDocumentMetadata[];
|
|
1466
1200
|
};
|
|
1201
|
+
fromDirectoryFile: TApiaDocumentDefinition | null;
|
|
1467
1202
|
docFolder?: number;
|
|
1468
1203
|
docExpDate?: string;
|
|
1469
1204
|
description: string;
|
|
@@ -1522,7 +1257,7 @@ type TFileUploaded = {
|
|
|
1522
1257
|
isMarkedToSign: boolean;
|
|
1523
1258
|
markedToSign: boolean;
|
|
1524
1259
|
lock?: string | boolean;
|
|
1525
|
-
|
|
1260
|
+
isLocked?: string | boolean;
|
|
1526
1261
|
lockedBy?: string;
|
|
1527
1262
|
name?: string;
|
|
1528
1263
|
onlyInformation: boolean;
|
|
@@ -1641,7 +1376,7 @@ type TApiaDocumentDefinition = {
|
|
|
1641
1376
|
docFolder: string;
|
|
1642
1377
|
docFolderPath: string;
|
|
1643
1378
|
docUsu: string;
|
|
1644
|
-
docAllPoolPerm:
|
|
1379
|
+
docAllPoolPerm: 'M' | 'R' | '';
|
|
1645
1380
|
docName: string;
|
|
1646
1381
|
docTypeId: string;
|
|
1647
1382
|
locked: boolean;
|
|
@@ -1700,598 +1435,981 @@ type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof
|
|
|
1700
1435
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
1701
1436
|
}[Keys];
|
|
1702
1437
|
|
|
1703
|
-
declare class
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1438
|
+
declare class FormsUploader extends UploaderApi {
|
|
1439
|
+
protected type: 'E' | 'P';
|
|
1440
|
+
modalConfig: TModalConfig;
|
|
1441
|
+
protected field: File$1;
|
|
1442
|
+
constructor(type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
|
|
1443
|
+
isEditionMode: boolean | undefined;
|
|
1444
|
+
index(): number;
|
|
1445
|
+
elemId(): string;
|
|
1446
|
+
protected filterByFilesAmountLimit(files: File[]): File[];
|
|
1447
|
+
protected getFormParameters(): {
|
|
1448
|
+
frmId: string;
|
|
1449
|
+
frmParent: TFrmParent;
|
|
1450
|
+
attId: string;
|
|
1451
|
+
index: number;
|
|
1452
|
+
editionMode: boolean | undefined;
|
|
1453
|
+
prefix: TFrmParent;
|
|
1712
1454
|
};
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1455
|
+
evaluateDeleteDocumentResult(result: undefined | {
|
|
1456
|
+
success: boolean;
|
|
1457
|
+
}): boolean;
|
|
1458
|
+
getAjaxUrl(): string;
|
|
1459
|
+
getAllowedTypesData(): {
|
|
1460
|
+
postData: {
|
|
1461
|
+
docTypeId: string | undefined;
|
|
1462
|
+
forDropElem: boolean;
|
|
1463
|
+
};
|
|
1464
|
+
queryData: {
|
|
1465
|
+
frmId: string;
|
|
1466
|
+
frmParent: TFrmParent;
|
|
1467
|
+
attId: string;
|
|
1468
|
+
index: number;
|
|
1469
|
+
editionMode: boolean | undefined;
|
|
1470
|
+
prefix: TFrmParent;
|
|
1471
|
+
elemType: string;
|
|
1472
|
+
fromFormElem: boolean;
|
|
1473
|
+
docTypeId: string | undefined;
|
|
1474
|
+
frmOut: boolean;
|
|
1475
|
+
};
|
|
1729
1476
|
};
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1477
|
+
getAjaxUploadFileStatusParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
1478
|
+
getAjaxUploadStartParameters: ({ useDocTypePermitted, docTypePermittedObjType, docTypePermittedObjId, ...defaultParameters }: Record<string, unknown>) => Record<string, unknown>;
|
|
1479
|
+
getCheckLockDocumentParameters: ({ prefix, ...parameters }: Record<string, unknown>) => {
|
|
1480
|
+
frmId: string;
|
|
1481
|
+
frmParent: TFrmParent;
|
|
1482
|
+
attId: string;
|
|
1483
|
+
index: number;
|
|
1484
|
+
editionMode: boolean | undefined;
|
|
1485
|
+
prefix: TFrmParent;
|
|
1734
1486
|
};
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
value: string;
|
|
1487
|
+
getCheckSignatureParameters: (parameters: Record<string, unknown>) => {
|
|
1488
|
+
frmId: string;
|
|
1489
|
+
frmParent: TFrmParent;
|
|
1739
1490
|
};
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
name: string;
|
|
1746
|
-
type: 'custom' | 'fixed' | 'none';
|
|
1747
|
-
label?: string;
|
|
1748
|
-
toolTip?: string;
|
|
1749
|
-
value?: string;
|
|
1750
|
-
};
|
|
1751
|
-
body: {
|
|
1752
|
-
type: 'autogenerated' | 'sameAsProcess';
|
|
1753
|
-
label: string;
|
|
1754
|
-
name?: string;
|
|
1755
|
-
toolTip?: string;
|
|
1756
|
-
value?: string;
|
|
1757
|
-
required?: false;
|
|
1758
|
-
} | {
|
|
1759
|
-
label: string;
|
|
1760
|
-
toolTip?: string;
|
|
1761
|
-
value?: string;
|
|
1762
|
-
type: 'custom';
|
|
1763
|
-
required: boolean;
|
|
1764
|
-
name: string;
|
|
1765
|
-
};
|
|
1766
|
-
suffix?: {
|
|
1767
|
-
name: string;
|
|
1768
|
-
type: 'custom' | 'fixed' | 'none';
|
|
1769
|
-
toolTip?: string;
|
|
1770
|
-
label?: string;
|
|
1771
|
-
value?: string;
|
|
1772
|
-
};
|
|
1491
|
+
getClearTempFilesParameters: ({ elemType, ...rest }: Record<string, unknown>) => {
|
|
1492
|
+
frmParent: TFrmParent;
|
|
1493
|
+
frmId: string;
|
|
1494
|
+
attId: string;
|
|
1495
|
+
index: number;
|
|
1773
1496
|
};
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1497
|
+
getConfirmDropModalParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
1498
|
+
getConfirmDropModalPostdata: ({ pe, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
|
|
1499
|
+
getDeleteDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
|
|
1500
|
+
frmId: string;
|
|
1501
|
+
frmParent: TFrmParent;
|
|
1502
|
+
attId: string;
|
|
1503
|
+
index: number;
|
|
1504
|
+
editionMode: boolean | undefined;
|
|
1777
1505
|
};
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
label: string;
|
|
1781
|
-
toolTip: string;
|
|
1782
|
-
type: 'fixex' | 'select' | 'none';
|
|
1783
|
-
value?: string;
|
|
1784
|
-
disabled?: boolean;
|
|
1785
|
-
options: {
|
|
1786
|
-
label: string;
|
|
1787
|
-
value: string;
|
|
1788
|
-
selected: boolean;
|
|
1789
|
-
}[];
|
|
1506
|
+
getDocumentInfoParameters: (parameters: Record<string, unknown>) => {
|
|
1507
|
+
ajaxUrl: string;
|
|
1790
1508
|
};
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1509
|
+
getEditDocumentParameters: ({ action, docId }: Record<string, unknown>) => {
|
|
1510
|
+
docId: unknown;
|
|
1511
|
+
ajaxUrl: string;
|
|
1512
|
+
frmId: string;
|
|
1513
|
+
frmParent: TFrmParent;
|
|
1514
|
+
attId: string;
|
|
1515
|
+
index: number;
|
|
1516
|
+
action: unknown;
|
|
1795
1517
|
};
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1518
|
+
getLoadFilesForFolderParameters: () => Record<string, unknown>;
|
|
1519
|
+
getLoadFileSystemStructureTree: () => {
|
|
1520
|
+
useDocTypePermitted: boolean;
|
|
1521
|
+
docTypeForcedId: string | undefined;
|
|
1522
|
+
};
|
|
1523
|
+
getLockDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
|
|
1524
|
+
frmId: string;
|
|
1525
|
+
frmParent: TFrmParent;
|
|
1526
|
+
attId: string;
|
|
1527
|
+
index: number;
|
|
1528
|
+
editionMode: boolean | undefined;
|
|
1806
1529
|
};
|
|
1530
|
+
getMarkFileToSignParameters: ({ docId, prefix, ...defaultParameters }: Record<string, unknown>) => {
|
|
1531
|
+
frmId: string;
|
|
1532
|
+
frmParent: TFrmParent;
|
|
1533
|
+
attId: string;
|
|
1534
|
+
index: number;
|
|
1535
|
+
editionMode: boolean | undefined;
|
|
1536
|
+
prefix: TFrmParent;
|
|
1537
|
+
action: string;
|
|
1538
|
+
fldId: string;
|
|
1539
|
+
};
|
|
1540
|
+
getProcessDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
1541
|
+
getProcessDroppedFilesPostdata: ({ useDocTypePermitted, docTypePermittedObjId, docTypePermittedObjType, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
|
|
1542
|
+
getReloadMetadataParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
1543
|
+
getSaveDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
1544
|
+
downloadDocument(fileId: string): Promise<void>;
|
|
1545
|
+
loadCurrentDocuments(): Promise<void>;
|
|
1546
|
+
parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
|
|
1547
|
+
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf | undefined): Promise<void>;
|
|
1807
1548
|
}
|
|
1808
1549
|
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
} |
|
|
1550
|
+
declare class File$1 extends TranslatableField<TApiaFileProperties> {
|
|
1551
|
+
uploader: FormsUploader;
|
|
1552
|
+
init(form: Form): Promise<void>;
|
|
1553
|
+
validate(): Promise<boolean>;
|
|
1554
|
+
setValue(_newValue: any, _options?: Partial<{
|
|
1555
|
+
comparator: Comparator$1<any>;
|
|
1556
|
+
synchronize: boolean;
|
|
1557
|
+
}> | undefined): Promise<boolean>;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
type GridEvents = 'gridAdd' | 'gridDelete' | 'gridSort' | 'gridColumnSelect';
|
|
1561
|
+
type GridColumn = {
|
|
1562
|
+
fldId: string;
|
|
1563
|
+
label: string;
|
|
1564
|
+
title: string;
|
|
1565
|
+
width: string;
|
|
1817
1566
|
};
|
|
1818
|
-
type
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1567
|
+
type GridState = {
|
|
1568
|
+
definition: Omit<TApiaFieldBaseDefinition<GridProps>, 'properties'>;
|
|
1569
|
+
header: GridColumn[];
|
|
1570
|
+
isLoading: boolean;
|
|
1571
|
+
isMaximized: boolean;
|
|
1572
|
+
showAdditionalColumn: boolean;
|
|
1573
|
+
};
|
|
1574
|
+
type GridDefinition = TApiaFieldBaseDefinition<GridProps>;
|
|
1575
|
+
type FieldState = {
|
|
1576
|
+
properties: any;
|
|
1577
|
+
value?: any;
|
|
1578
|
+
};
|
|
1579
|
+
type FieldWithIndexedFieldsProps = TApiaFieldCommonProperties & {
|
|
1580
|
+
currentPage: number;
|
|
1581
|
+
maxRows: number;
|
|
1582
|
+
pages: number;
|
|
1583
|
+
pageSize: number;
|
|
1584
|
+
paged: boolean;
|
|
1585
|
+
};
|
|
1586
|
+
type GridProps = FieldWithIndexedFieldsProps & TApiaGridProperties & {
|
|
1587
|
+
/**
|
|
1588
|
+
* Mostrar u ocultar botones de eliminar específicos según fila
|
|
1589
|
+
*/
|
|
1590
|
+
shownDeleteButtons: Map<string | number, boolean>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Mostrar u ocultar botones de edición específicos según fila
|
|
1593
|
+
*/
|
|
1594
|
+
shownEditionButtons: Map<string | number, boolean>;
|
|
1831
1595
|
};
|
|
1832
1596
|
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
getConfirmParams(): {
|
|
1838
|
-
txtComment: string | undefined;
|
|
1839
|
-
chkAddAlert: string;
|
|
1840
|
-
chkAddAllAlert: string;
|
|
1841
|
-
chkRemAlert: string;
|
|
1842
|
-
};
|
|
1843
|
-
setPriority(newPriority: string): void;
|
|
1844
|
-
}
|
|
1597
|
+
type GridEditionModal = {
|
|
1598
|
+
close: () => unknown;
|
|
1599
|
+
open: () => unknown;
|
|
1600
|
+
};
|
|
1845
1601
|
|
|
1846
|
-
type
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
error?: string;
|
|
1850
|
-
finishedWithError?: boolean;
|
|
1602
|
+
type GridFooterHandlerState = {
|
|
1603
|
+
isSortUpDisabled: boolean;
|
|
1604
|
+
isSortDownDisabled: boolean;
|
|
1851
1605
|
};
|
|
1852
|
-
declare
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1606
|
+
declare class GridFooterHandler {
|
|
1607
|
+
#private;
|
|
1608
|
+
private grid;
|
|
1609
|
+
state: GridFooterHandlerState;
|
|
1610
|
+
constructor(grid: Grid);
|
|
1611
|
+
private init;
|
|
1612
|
+
get showAddButton(): boolean;
|
|
1613
|
+
get showDelButton(): boolean;
|
|
1614
|
+
get showSortButtons(): boolean;
|
|
1615
|
+
get isSortUpDisabled(): boolean;
|
|
1616
|
+
get isSortDownDisabled(): boolean;
|
|
1617
|
+
get isAddDisabled(): boolean;
|
|
1618
|
+
get isDeleteDisabled(): boolean;
|
|
1619
|
+
sortUp(): Promise<void>;
|
|
1620
|
+
sortDown(): Promise<void>;
|
|
1621
|
+
addRow(): Promise<void>;
|
|
1622
|
+
deleteSelectedRows(): Promise<void>;
|
|
1856
1623
|
}
|
|
1857
1624
|
|
|
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
|
-
text?: {
|
|
1889
|
-
title?: string;
|
|
1890
|
-
text?: string;
|
|
1891
|
-
};
|
|
1892
|
-
};
|
|
1893
|
-
|
|
1894
|
-
declare enum ExecutionState {
|
|
1895
|
-
RUNNING = 0,
|
|
1896
|
-
LOADING = 1,
|
|
1897
|
-
FINISHED = 2,
|
|
1898
|
-
RENDERING = 3
|
|
1899
|
-
}
|
|
1900
|
-
type TExecutionConfig = {
|
|
1901
|
-
canConfirm: boolean;
|
|
1902
|
-
canGoBack: boolean;
|
|
1903
|
-
canGoForward: boolean;
|
|
1904
|
-
canSave: boolean;
|
|
1905
|
-
canFree: boolean;
|
|
1906
|
-
canDelegate: boolean;
|
|
1907
|
-
canClose: boolean;
|
|
1908
|
-
canShare: boolean;
|
|
1909
|
-
};
|
|
1910
|
-
declare class Execution {
|
|
1911
|
-
#private;
|
|
1912
|
-
static get instance(): Execution;
|
|
1913
|
-
fieldsMapping: FieldsMapping;
|
|
1914
|
-
private entity;
|
|
1915
|
-
private process;
|
|
1916
|
-
private observations;
|
|
1917
|
-
executionConfig: TExecutionConfig | null;
|
|
1918
|
-
private _steps;
|
|
1919
|
-
private _currentStep;
|
|
1920
|
-
private _stepCount;
|
|
1921
|
-
private constructor();
|
|
1922
|
-
protected formsById: {
|
|
1923
|
-
E: Map<string, Form>;
|
|
1924
|
-
P: Map<string, Form>;
|
|
1925
|
-
};
|
|
1926
|
-
protected forms: {
|
|
1927
|
-
E: Map<string, Form>;
|
|
1928
|
-
P: Map<string, Form>;
|
|
1929
|
-
};
|
|
1930
|
-
state: {
|
|
1931
|
-
formsReady: ReturnType<Execution['getAllForms']>;
|
|
1932
|
-
executionState: ExecutionState;
|
|
1933
|
-
locked: boolean;
|
|
1934
|
-
};
|
|
1935
|
-
locker: ScreenLocker;
|
|
1936
|
-
getAllForms(): Form[];
|
|
1937
|
-
getFormsByType(type: TFrmParent): Form[];
|
|
1938
|
-
getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
|
|
1939
|
-
getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
|
|
1940
|
-
get currentStep(): number;
|
|
1941
|
-
get steps(): {
|
|
1942
|
-
title: string;
|
|
1943
|
-
stepNumber: number;
|
|
1944
|
-
status: "current" | "completed" | "pending";
|
|
1945
|
-
}[];
|
|
1946
|
-
getEntity(): Entity;
|
|
1947
|
-
getProcess(): Process;
|
|
1948
|
-
getObservations(): Observations;
|
|
1949
|
-
getCurrentTask(): Task;
|
|
1950
|
-
private mustRenderForms;
|
|
1951
|
-
run(executionConfig: TExecutionConfig): Promise<void>;
|
|
1952
|
-
markFormAsRendered(frmParent: string, frmName: string): void;
|
|
1953
|
-
back(): Promise<false | undefined>;
|
|
1954
|
-
close(): Promise<void>;
|
|
1955
|
-
desktop(): Promise<void>;
|
|
1956
|
-
confirm(status?: Status, step?: ConfirmStep): Promise<boolean | FlowModal<any> | Field>;
|
|
1957
|
-
free(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
|
|
1958
|
-
print(): Promise<void>;
|
|
1959
|
-
getStepTitle(step: number): {
|
|
1960
|
-
title: string;
|
|
1961
|
-
stepNumber: number;
|
|
1962
|
-
status: "current" | "completed" | "pending";
|
|
1963
|
-
} | undefined;
|
|
1964
|
-
next(): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1625
|
+
declare class Grid extends Field<GridProps, GridDefinition, GridState> {
|
|
1626
|
+
private rowId;
|
|
1627
|
+
protected mutex: Mutex;
|
|
1628
|
+
protected newRowStates: FieldState[][];
|
|
1629
|
+
protected initialStates: FieldState[][];
|
|
1630
|
+
protected fieldsDefinitions: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>[];
|
|
1631
|
+
protected readonly managedAttIds: Set<string | number>;
|
|
1632
|
+
protected readonly managedAttNames: Set<string>;
|
|
1633
|
+
protected readonly managedFieldIds: Set<string | number>;
|
|
1634
|
+
protected readonly managedFieldsNames: Set<string>;
|
|
1635
|
+
protected _editionModalHandler: GridEditionModal | null;
|
|
1636
|
+
protected readonly _footerController: GridFooterHandler;
|
|
1637
|
+
protected readonly tableController: TableController;
|
|
1638
|
+
get controller(): TableController;
|
|
1639
|
+
get currentPage(): number;
|
|
1640
|
+
get editionModalHandler(): GridEditionModal | null;
|
|
1641
|
+
/**
|
|
1642
|
+
* Returns the final index of the current page
|
|
1643
|
+
*/
|
|
1644
|
+
get finalIndex(): number;
|
|
1645
|
+
get footerController(): GridFooterHandler;
|
|
1646
|
+
get header(): GridColumn[];
|
|
1647
|
+
get isPaged(): boolean;
|
|
1648
|
+
get length(): number;
|
|
1649
|
+
get minIndex(): number;
|
|
1650
|
+
get pageCount(): number;
|
|
1651
|
+
get pageSize(): number;
|
|
1652
|
+
get selectedIndices(): number[];
|
|
1653
|
+
get selectedItems(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1965
1654
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1966
|
-
}>
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1655
|
+
}>[][];
|
|
1656
|
+
get startIndex(): number;
|
|
1657
|
+
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
1658
|
+
/**
|
|
1659
|
+
* Grid methods
|
|
1660
|
+
*/
|
|
1661
|
+
addRow(addRowsCount?: number): Promise<boolean>;
|
|
1662
|
+
closeEditionModal(): void;
|
|
1663
|
+
deleteAllRows(): Promise<boolean>;
|
|
1664
|
+
/**
|
|
1665
|
+
* @param index Si se pasa, se borran el o los índices provistos. Sino, se borran las filas seleccionadas, si es que hay alguna.
|
|
1666
|
+
*/
|
|
1667
|
+
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
1668
|
+
fireScriptEvent(eventName: GridEvents): Promise<boolean>;
|
|
1669
|
+
fireEvent(eventName: GridEvents, params?: FireEventParameters & {
|
|
1670
|
+
mutex: boolean;
|
|
1671
|
+
}): Promise<boolean>;
|
|
1672
|
+
getAllColumns(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1673
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1674
|
+
}>[][];
|
|
1675
|
+
/**
|
|
1676
|
+
* @param field - Nombre del campo o del atributo
|
|
1677
|
+
*/
|
|
1678
|
+
getColumn(field: string): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1679
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1680
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1681
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1682
|
+
}>[] | undefined;
|
|
1683
|
+
getCurrentPage(): number;
|
|
1684
|
+
/**
|
|
1685
|
+
* @param field - Nombre del campo o del atributo
|
|
1686
|
+
*/
|
|
1687
|
+
getField(field: string, index?: number): Field | Field[] | undefined;
|
|
1688
|
+
getFieldByAttributeId(attId: string | number, index?: number): Field | Field[] | undefined;
|
|
1689
|
+
getFieldByAttributeName(attName: string, index?: number): Field | Field[] | undefined;
|
|
1690
|
+
getFieldById(id: string | number, index?: number): Field | Field[] | undefined;
|
|
1691
|
+
getFieldByName(name: string, index?: number): Field | Field[] | undefined;
|
|
1692
|
+
getRowByFieldIndex(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1693
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1694
|
+
}>[] | null;
|
|
1695
|
+
getSelectedRows(): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1696
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1697
|
+
}>[][];
|
|
1698
|
+
init(form: Form): Promise<void>;
|
|
1699
|
+
openEditionModal(handler: GridEditionModal): void;
|
|
1700
|
+
refresh(): Promise<boolean>;
|
|
1701
|
+
sortColumn(fldId: string): Promise<boolean>;
|
|
1702
|
+
sortDown(index?: number | number[]): Promise<boolean>;
|
|
1703
|
+
sortUp(index?: number | number[]): Promise<boolean>;
|
|
1704
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
1705
|
+
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
1706
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
1970
1707
|
validate(): Promise<true | Field>;
|
|
1708
|
+
protected actualRefreshAction(): Promise<boolean>;
|
|
1709
|
+
protected addRowFromDefinitions(definitions?: TApiaFieldBaseDefinition<Record<string, any>>[]): Promise<Row>;
|
|
1710
|
+
protected asyncAction<T>(cb: () => Promise<T>, mutex?: boolean): Promise<T>;
|
|
1711
|
+
protected calculateMustShowAdditionalColumn(): void;
|
|
1712
|
+
protected getRow(index: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1713
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1714
|
+
}>[];
|
|
1715
|
+
protected rebuildGrid(xmlString: string): Promise<void>;
|
|
1716
|
+
protected runAction<T extends Record<string, any>>(behave: IApiaApiPostConfig<Record<string, any>>): Promise<TApiaApiAxiosResponse<(T & ResponseSysMessages) | null> | null>;
|
|
1717
|
+
private swapRows;
|
|
1718
|
+
toggleMaximize(): void;
|
|
1971
1719
|
}
|
|
1972
1720
|
|
|
1973
|
-
declare class
|
|
1974
|
-
|
|
1721
|
+
declare class GridPaginated extends Grid {
|
|
1722
|
+
/**
|
|
1723
|
+
* Returns the final index of the current page
|
|
1724
|
+
*/
|
|
1725
|
+
get finalIndex(): number;
|
|
1726
|
+
addRow(): Promise<boolean>;
|
|
1727
|
+
deleteRows(index?: number | number[]): Promise<boolean>;
|
|
1728
|
+
gotoPage(page: number): Promise<boolean>;
|
|
1729
|
+
sortDown(index?: number | number[]): Promise<boolean>;
|
|
1730
|
+
sortUp(index?: number | number[]): Promise<boolean>;
|
|
1975
1731
|
}
|
|
1976
1732
|
|
|
1977
|
-
declare class
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
blocking: boolean;
|
|
1985
|
-
});
|
|
1733
|
+
declare class AdditionalCell extends Cell {
|
|
1734
|
+
grid: Grid;
|
|
1735
|
+
getIndex: () => number;
|
|
1736
|
+
remove: () => unknown;
|
|
1737
|
+
openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined;
|
|
1738
|
+
constructor(grid: Grid, getIndex: () => number, remove: () => unknown, openEditionModal?: ((handler: GridEditionModal) => unknown) | undefined);
|
|
1739
|
+
get hasEditionModal(): boolean;
|
|
1986
1740
|
}
|
|
1987
1741
|
|
|
1988
|
-
declare class
|
|
1989
|
-
|
|
1990
|
-
static get instance(): Notifications;
|
|
1991
|
-
private emitter;
|
|
1992
|
-
private constructor();
|
|
1993
|
-
protected notifications: Notification[];
|
|
1994
|
-
add(notification: Notification): void;
|
|
1995
|
-
getAll(): Notification<NotificationDefinition>[];
|
|
1996
|
-
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
1997
|
-
remove(notification: string | number | Notification): void;
|
|
1998
|
-
on: <K extends "notification">(event: K, cb: Callback<{
|
|
1999
|
-
notification: Notification;
|
|
2000
|
-
}, K>) => UnSubscriber;
|
|
1742
|
+
declare class GridCell extends Cell {
|
|
1743
|
+
getField(): Field;
|
|
2001
1744
|
}
|
|
2002
1745
|
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1746
|
+
declare class HeaderCell extends Cell {
|
|
1747
|
+
fireSelectionEvent: () => unknown;
|
|
1748
|
+
constructor(state: CellState, fireSelectionEvent: () => unknown);
|
|
2006
1749
|
}
|
|
2007
1750
|
|
|
2008
|
-
declare class
|
|
2009
|
-
definition: Omit<TApiaFieldBaseDefinition<TApiaCaptchaProperties>, 'properties'>;
|
|
2010
|
-
value: string;
|
|
2011
|
-
url: string;
|
|
2012
|
-
}> {
|
|
2013
|
-
private static emitter;
|
|
2014
|
-
static reload(): void;
|
|
2015
|
-
private id;
|
|
2016
|
-
private static confirmParams;
|
|
2017
|
-
static getConfirmParams(): Record<string, string>;
|
|
2018
|
-
constructor(definition: TApiaCaptchaProperties);
|
|
2019
|
-
init(form: Form): Promise<void>;
|
|
2020
|
-
private getCaptchaId;
|
|
2021
|
-
getUrl(): string;
|
|
2022
|
-
generateImgUrl(): void;
|
|
2023
|
-
generateVoiceUrl(): string;
|
|
2024
|
-
getId(): string;
|
|
2025
|
-
setValue(value: string): void;
|
|
2026
|
-
validate(): Promise<boolean>;
|
|
1751
|
+
declare class Hidden extends FieldWithAttribute<TApiaHiddenProperties> {
|
|
2027
1752
|
}
|
|
2028
1753
|
|
|
2029
|
-
|
|
2030
|
-
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
2031
|
-
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
2032
|
-
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): boolean;
|
|
1754
|
+
declare class Image extends Field<TApiaImageProperties> {
|
|
2033
1755
|
}
|
|
2034
1756
|
|
|
2035
|
-
type
|
|
2036
|
-
declare class
|
|
2037
|
-
fireEvent(eventName:
|
|
1757
|
+
type InputEvents$1 = 'onChange' | 'onModalReturn';
|
|
1758
|
+
declare class Input<ValueType = any> extends TranslatableField<TApiaInputProperties, ValueType, TApiaInputDefinition> {
|
|
1759
|
+
fireEvent(eventName: InputEvents$1): Promise<boolean>;
|
|
1760
|
+
setValue(newValue: ValueType, options?: SetValueOptions): Promise<boolean>;
|
|
1761
|
+
private validateRegex;
|
|
1762
|
+
validate(): Promise<boolean>;
|
|
2038
1763
|
}
|
|
2039
1764
|
|
|
2040
|
-
declare class
|
|
2041
|
-
protected type: 'E' | 'P';
|
|
2042
|
-
modalConfig: TModalConfig;
|
|
2043
|
-
private field;
|
|
2044
|
-
constructor(type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
|
|
2045
|
-
protected getAjaxUploadFileStatusParameters: (defaultParameters: Record<string, unknown>) => {
|
|
2046
|
-
frmParent: TFrmParent;
|
|
2047
|
-
};
|
|
1765
|
+
declare class Label extends Field<TApiaLabelProperties> {
|
|
2048
1766
|
}
|
|
2049
1767
|
|
|
2050
|
-
declare class
|
|
2051
|
-
uploader: FileUploaderApi;
|
|
2052
|
-
init(form: Form): Promise<void>;
|
|
1768
|
+
declare class Link extends Field<TApiaLinkProperties> {
|
|
2053
1769
|
}
|
|
2054
1770
|
|
|
2055
|
-
type
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
1771
|
+
type TApiaModalInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputProperties> & {
|
|
1772
|
+
alwaysShowMask?: boolean;
|
|
1773
|
+
cantDecimals?: string;
|
|
1774
|
+
decimalZeroes?: string;
|
|
1775
|
+
fieldType: 'input';
|
|
1776
|
+
isoDateValue?: string;
|
|
1777
|
+
length?: number;
|
|
1778
|
+
mask?: string;
|
|
1779
|
+
maskPlaceholder?: string;
|
|
1780
|
+
regExp?: string;
|
|
1781
|
+
qryId?: string;
|
|
1782
|
+
qry_show_value?: string;
|
|
1783
|
+
value: {
|
|
1784
|
+
showValue: string;
|
|
1785
|
+
storeValue?: string;
|
|
1786
|
+
};
|
|
1787
|
+
valueType?: 'D';
|
|
2059
1788
|
};
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
addRow(): Promise<void>;
|
|
2077
|
-
deleteSelectedRows(index?: number): Promise<void>;
|
|
1789
|
+
|
|
1790
|
+
type InputEvents = 'onChange' | 'onModalReturn';
|
|
1791
|
+
type ModalInputValue = {
|
|
1792
|
+
showValue: string;
|
|
1793
|
+
storeValue?: string;
|
|
1794
|
+
};
|
|
1795
|
+
declare class ModalInput extends FieldWithAttribute<TApiaInputProperties, ModalInputValue> {
|
|
1796
|
+
constructor({ value, ...definition }: TApiaModalInputDefinition);
|
|
1797
|
+
fireEvent(eventName: InputEvents): Promise<boolean>;
|
|
1798
|
+
setValue(newValue: Required<ModalInputValue>, options?: Partial<{
|
|
1799
|
+
comparator: Comparator$1<any>;
|
|
1800
|
+
synchronize: boolean;
|
|
1801
|
+
}> | undefined): Promise<boolean>;
|
|
1802
|
+
setValueFromModalSelection(rowId: string): Promise<void>;
|
|
1803
|
+
validate(): Promise<boolean>;
|
|
1804
|
+
protected getSynchronizePostConfiguration(value: ModalInputValue): IApiaApiPostConfig<any>;
|
|
2078
1805
|
}
|
|
2079
1806
|
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
1807
|
+
declare class Multiple extends FieldWithAttribute<TApiaMultipleProperties, Record<number, string>> {
|
|
1808
|
+
constructor({ possibleValue, value, ...definition }: TApiaMultipleDefinition);
|
|
1809
|
+
validate(): Promise<boolean>;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
declare class Password extends FieldWithAttribute<TApiaPasswordProperties, string> {
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
type RadioEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
1816
|
+
declare class Radio extends FieldWithAttribute<TApiaRadioProperties, number | string, TApiaRadioButtonDefinition> {
|
|
1817
|
+
constructor({ possibleValue, ...definition }: TApiaRadioButtonDefinition);
|
|
1818
|
+
init(form: Form): Promise<void>;
|
|
1819
|
+
fireEvent(eventName: RadioEvents): Promise<boolean>;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
declare class Select extends FieldWithAttribute<TApiaSelectProperties, string, TApiaSelectDefinition> {
|
|
1823
|
+
constructor({ possibleValue, ...definition }: TApiaSelectDefinition);
|
|
1824
|
+
protected getInitialValue({ properties: { possibleValue }, value, }: TApiaFieldWithAttributeBaseProps<TApiaSelectProperties>): string;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
declare class Textarea extends TranslatableField<TApiaTextareaProperties, string> {
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
declare class Title extends Field<TApiaTitleProperties> {
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
type TTreeValue = string | number;
|
|
1834
|
+
type TreeEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
1835
|
+
declare class Tree extends FieldWithAttribute<TApiaTreeProperties, TTreeValue | TTreeValue[], TApiaTreeDefinition> {
|
|
1836
|
+
private treeNodes;
|
|
1837
|
+
constructor({ possibleValue, ...props }: TApiaTreeDefinition);
|
|
1838
|
+
getPossibleValues(): TApiaTreePossibleValue[];
|
|
1839
|
+
onPossibleValuesChange: (cb: Callback<{
|
|
1840
|
+
nodesList: TApiaTreePossibleValue[];
|
|
1841
|
+
}, "nodesList">) => UnSubscriber;
|
|
1842
|
+
protected getSynchronizePostConfiguration(value: TTreeValue | TTreeValue[]): IApiaApiPostConfig<any>;
|
|
1843
|
+
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
declare const IProperty: {
|
|
1847
|
+
readonly FUNC_LOAD: "onload";
|
|
1848
|
+
readonly FUNC_RELOAD: "onreload";
|
|
1849
|
+
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
1850
|
+
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
1851
|
+
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
1852
|
+
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
1853
|
+
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
1854
|
+
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
1855
|
+
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
1856
|
+
readonly SIGNABLE_FORM: "signableForm";
|
|
1857
|
+
readonly MARKED_TO_SIGN: "markedToSign";
|
|
1858
|
+
readonly REQUIRED_SIGN: "requiredSignableForm";
|
|
1859
|
+
readonly LANGUAGES: "langs";
|
|
1860
|
+
readonly TYPE_INPUT: "input";
|
|
1861
|
+
readonly TYPE_SELECT: "select";
|
|
1862
|
+
readonly TYPE_RADIO: "radio";
|
|
1863
|
+
readonly TYPE_CHECK: "check";
|
|
1864
|
+
readonly TYPE_BUTTON: "button";
|
|
1865
|
+
readonly TYPE_AREA: "area";
|
|
1866
|
+
readonly TYPE_LABEL: "label";
|
|
1867
|
+
readonly TYPE_TITLE: "title";
|
|
1868
|
+
readonly TYPE_FILE: "file";
|
|
1869
|
+
readonly TYPE_MULTIPLE: "multiple";
|
|
1870
|
+
readonly TYPE_HIDDEN: "hidden";
|
|
1871
|
+
readonly TYPE_PASSWORD: "password";
|
|
1872
|
+
readonly TYPE_GRID: "grid";
|
|
1873
|
+
readonly TYPE_IMAGE: "image";
|
|
1874
|
+
readonly TYPE_HREF: "href";
|
|
1875
|
+
readonly TYPE_EDITOR: "editor";
|
|
1876
|
+
readonly TYPE_TREE: "tree";
|
|
1877
|
+
readonly TYPE_CAPTCHA: "captcha";
|
|
1878
|
+
readonly FUNC_CLICK: "onclick";
|
|
1879
|
+
readonly FUNC_CHANGE: "onchange";
|
|
1880
|
+
readonly FUNC_MODAL_RETURN: "onmodalreturn";
|
|
1881
|
+
readonly FUNC_ROW_ADD: "onrowadd";
|
|
1882
|
+
readonly FUNC_ROW_DELETE: "onrowdelete";
|
|
1883
|
+
readonly FUNC_ROW_SORT: "onrowsort";
|
|
1884
|
+
readonly FUNC_COL_SELECT: "oncolselect";
|
|
1885
|
+
readonly FIELD_PROPERTIES: "properties";
|
|
1886
|
+
readonly PROPERTY_NAME: "name";
|
|
1887
|
+
readonly PROPERTY_SIZE: "size";
|
|
1888
|
+
readonly PROPERTY_READONLY: "readonly";
|
|
1889
|
+
readonly PROPERTY_DISABLED: "disabled";
|
|
1890
|
+
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
1891
|
+
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
1892
|
+
readonly PROPERTY_VALUE: "value";
|
|
1893
|
+
readonly PROPERTY_REQUIRED: "required";
|
|
1894
|
+
readonly PROPERTY_COLSPAN: "colspan";
|
|
1895
|
+
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
1896
|
+
readonly PROPERTY_MODAL: "modal";
|
|
1897
|
+
readonly PROPERTY_ROWS: "thisRows";
|
|
1898
|
+
readonly PROPERTY_BOLD: "bold";
|
|
1899
|
+
readonly PROPERTY_UNDERLINED: "underlined";
|
|
1900
|
+
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
1901
|
+
readonly PROPERTY_IMAGE: "imageUrl";
|
|
1902
|
+
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
1903
|
+
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
1904
|
+
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
1905
|
+
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
1906
|
+
readonly PROPERTY_TRANSIENT: "transient";
|
|
1907
|
+
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
1908
|
+
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
1909
|
+
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
1910
|
+
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
1911
|
+
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
1912
|
+
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
1913
|
+
readonly PROPERTY_NO_ERASE: "noErase";
|
|
1914
|
+
readonly PROPERTY_NO_LOCK: "noLock";
|
|
1915
|
+
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
1916
|
+
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
1917
|
+
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
1918
|
+
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
1919
|
+
readonly PROPERTY_URL: "url";
|
|
1920
|
+
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
1921
|
+
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
1922
|
+
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
1923
|
+
readonly PROPERTY_PAGED_GRID: "paged";
|
|
1924
|
+
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
1925
|
+
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
1926
|
+
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
1927
|
+
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
1928
|
+
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
1929
|
+
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
1930
|
+
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
1931
|
+
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
1932
|
+
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
1933
|
+
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
1934
|
+
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
1935
|
+
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
1936
|
+
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
1937
|
+
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
1938
|
+
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
1939
|
+
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
1940
|
+
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
1941
|
+
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
1942
|
+
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
1943
|
+
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
1944
|
+
readonly PROPERTY_CHECKED: "checked";
|
|
1945
|
+
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
1946
|
+
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
1947
|
+
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
1948
|
+
readonly PROPERTY_HEIGHT: "height";
|
|
1949
|
+
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
1950
|
+
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
1951
|
+
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
1952
|
+
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
1953
|
+
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
1954
|
+
readonly PROPERTY_DOC_TYPE: "docType";
|
|
1955
|
+
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
1956
|
+
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
1957
|
+
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
1958
|
+
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
1959
|
+
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
1960
|
+
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
1961
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
1962
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
1963
|
+
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
1964
|
+
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
1965
|
+
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
1966
|
+
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
1967
|
+
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
1968
|
+
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
1969
|
+
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
1970
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
1971
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
1972
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
1973
|
+
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
1974
|
+
readonly STORE_KEY_FIELD: "field";
|
|
1975
|
+
readonly STORE_KEY_FORM: "form";
|
|
1976
|
+
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
1977
|
+
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
1978
|
+
readonly PROPERTY_ALT: "alt";
|
|
1979
|
+
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
1980
|
+
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
1981
|
+
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
1982
|
+
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
1983
|
+
readonly PROPERTY_TITLE: "title";
|
|
2086
1984
|
};
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
1985
|
+
|
|
1986
|
+
type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
|
|
1987
|
+
type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
|
|
1988
|
+
|
|
1989
|
+
type TProcess = {
|
|
1990
|
+
calendar: {
|
|
1991
|
+
fixed: boolean;
|
|
1992
|
+
label: string;
|
|
1993
|
+
name: string;
|
|
1994
|
+
options: {
|
|
1995
|
+
label: string;
|
|
1996
|
+
value: string;
|
|
1997
|
+
selected: boolean;
|
|
1998
|
+
}[];
|
|
1999
|
+
toolTip: string;
|
|
2000
|
+
value: string;
|
|
2001
|
+
viewButton: {
|
|
2002
|
+
label: string;
|
|
2003
|
+
toolTip: string;
|
|
2004
|
+
};
|
|
2005
|
+
};
|
|
2006
|
+
comments: {
|
|
2007
|
+
currentComment: string;
|
|
2008
|
+
addMarker: boolean;
|
|
2009
|
+
markAll: boolean;
|
|
2010
|
+
deleteMarker: boolean;
|
|
2011
|
+
history: {
|
|
2012
|
+
comment: string;
|
|
2013
|
+
marked: boolean;
|
|
2014
|
+
date: string;
|
|
2015
|
+
user: string;
|
|
2016
|
+
}[];
|
|
2017
|
+
};
|
|
2018
|
+
identifier: {
|
|
2019
|
+
body: {
|
|
2020
|
+
name: string;
|
|
2021
|
+
required: boolean;
|
|
2022
|
+
toolTip: string;
|
|
2023
|
+
type: 'fixed' | 'custom';
|
|
2024
|
+
value: string;
|
|
2025
|
+
};
|
|
2026
|
+
label: string;
|
|
2027
|
+
prefix: {
|
|
2028
|
+
label: string;
|
|
2029
|
+
name: string;
|
|
2030
|
+
toolTip: string;
|
|
2031
|
+
type: 'fixed' | 'custom' | 'none';
|
|
2032
|
+
value: string;
|
|
2033
|
+
};
|
|
2034
|
+
required: boolean;
|
|
2035
|
+
suffix: {
|
|
2036
|
+
label: string;
|
|
2037
|
+
name: string;
|
|
2038
|
+
toolTip: string;
|
|
2039
|
+
type: 'fixed' | 'custom' | 'none';
|
|
2040
|
+
value: string;
|
|
2041
|
+
};
|
|
2042
|
+
toolTip: string;
|
|
2043
|
+
value: string;
|
|
2044
|
+
};
|
|
2045
|
+
priority: {
|
|
2046
|
+
disabled: boolean;
|
|
2047
|
+
isMonitor: boolean;
|
|
2048
|
+
label: string;
|
|
2049
|
+
name: string;
|
|
2050
|
+
options: {
|
|
2051
|
+
label: string;
|
|
2052
|
+
value: string;
|
|
2053
|
+
selected: boolean;
|
|
2054
|
+
}[];
|
|
2055
|
+
toolTip: string;
|
|
2056
|
+
value: string;
|
|
2057
|
+
};
|
|
2058
|
+
process: {
|
|
2059
|
+
label: string;
|
|
2060
|
+
toolTip: string;
|
|
2061
|
+
value: string;
|
|
2062
|
+
};
|
|
2063
|
+
processAction: {
|
|
2064
|
+
label: string;
|
|
2065
|
+
toolTip: string;
|
|
2066
|
+
value: string;
|
|
2067
|
+
};
|
|
2068
|
+
separator: string;
|
|
2069
|
+
status?: {
|
|
2070
|
+
label: string;
|
|
2071
|
+
toolTip: string;
|
|
2072
|
+
value: string;
|
|
2073
|
+
};
|
|
2074
|
+
title: string;
|
|
2075
|
+
user: {
|
|
2076
|
+
label: string;
|
|
2077
|
+
toolTIp: string;
|
|
2078
|
+
value: string;
|
|
2079
|
+
};
|
|
2100
2080
|
};
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2081
|
+
|
|
2082
|
+
declare class Process {
|
|
2083
|
+
state: TProcess | null;
|
|
2084
|
+
uploader: UploaderApi;
|
|
2085
|
+
constructor();
|
|
2086
|
+
get name(): string | undefined;
|
|
2087
|
+
init(): Promise<void>;
|
|
2088
|
+
getConfirmParams(): {
|
|
2089
|
+
cmbProPri: string | undefined;
|
|
2090
|
+
selCal: string | undefined;
|
|
2109
2091
|
};
|
|
2110
|
-
|
|
2111
|
-
addRow(): Promise<boolean>;
|
|
2112
|
-
get controller(): Controller2;
|
|
2113
|
-
clearGrid: GridAction;
|
|
2114
|
-
clearPage: GridAction<[page: number]>;
|
|
2115
|
-
deleteGrid: GridAction;
|
|
2116
|
-
deletePage: GridAction<[page: number]>;
|
|
2117
|
-
deleteRow(index?: number | number[]): Promise<boolean>;
|
|
2118
|
-
remove(index?: number | number[]): Promise<boolean>;
|
|
2119
|
-
sortColumn(index: number): Promise<boolean>;
|
|
2120
|
-
sortDown(index?: number | number[]): Promise<boolean>;
|
|
2121
|
-
sortUp(index?: number | number[]): Promise<boolean>;
|
|
2122
|
-
getCurrentPage(): number;
|
|
2123
|
-
getHeader(): GridColumn[];
|
|
2124
|
-
getMustShowAdditionalColumn(): boolean;
|
|
2125
|
-
getPageCount(): number;
|
|
2126
|
-
getSelectedIndices(): number[];
|
|
2127
|
-
getSelectedItems(): any[];
|
|
2128
|
-
isPaged(): boolean;
|
|
2129
|
-
gotoPage(page: number): Promise<boolean>;
|
|
2130
|
-
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2131
|
-
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
2132
|
-
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2133
|
-
getGridFooterHandler(): GridFooterHandler;
|
|
2134
|
-
fireEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2092
|
+
setPriority(newPriority: string): void;
|
|
2135
2093
|
}
|
|
2136
2094
|
|
|
2137
|
-
declare class
|
|
2138
|
-
definition: Omit<TApiaFieldBaseDefinition<GridProps>, 'properties'>;
|
|
2139
|
-
header: GridColumn[];
|
|
2140
|
-
isLoading: boolean;
|
|
2141
|
-
selectedIndices: number[];
|
|
2142
|
-
showAdditionalColumn: boolean;
|
|
2143
|
-
}> implements IGrid {
|
|
2095
|
+
declare class Task {
|
|
2144
2096
|
#private;
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
2149
|
-
private footerHandler;
|
|
2150
|
-
private initHeadersSizes;
|
|
2151
|
-
init(form: Form): Promise<void>;
|
|
2152
|
-
protected calculateMustShowAdditionalColumn(): void;
|
|
2153
|
-
protected parseAddRowXml(str: string): Promise<boolean>;
|
|
2154
|
-
protected rebuildGrid(xmlString: string, rowsCount: number): Promise<void>;
|
|
2155
|
-
protected runAction<T extends Record<string, any>>(behave: IApiaApiPostConfig<Record<string, any>>): Promise<TApiaApiAxiosResponse<(T & ResponseSysMessages) | null> | null>;
|
|
2156
|
-
get minIndex(): number;
|
|
2157
|
-
/**
|
|
2158
|
-
* Grid methods
|
|
2159
|
-
*/
|
|
2160
|
-
addRow(): Promise<boolean>;
|
|
2161
|
-
clearGrid: GridAction;
|
|
2162
|
-
clearPage: GridAction<[page: number]>;
|
|
2163
|
-
deleteGrid: GridAction;
|
|
2164
|
-
deletePage: GridAction<[page: number]>;
|
|
2165
|
-
/**
|
|
2166
|
-
* @param index Si se pasa, se borran el o los índices provistos. Sino, se borran las filas seleccionadas, si es que hay alguna.
|
|
2167
|
-
*/
|
|
2168
|
-
deleteRow(index?: number | number[]): Promise<boolean>;
|
|
2169
|
-
private getServerEventOfType;
|
|
2170
|
-
protected fireServerEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2171
|
-
getGridFooterHandler(): GridFooterHandler;
|
|
2172
|
-
fireEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2173
|
-
gotoPage: GridAction<[page: number]>;
|
|
2174
|
-
getCurrentPage(): number;
|
|
2175
|
-
getHeader(): GridColumn[];
|
|
2176
|
-
getMustShowAdditionalColumn(): boolean;
|
|
2177
|
-
getPageCount(): number;
|
|
2178
|
-
getSelectedIndices(): number[];
|
|
2179
|
-
getSelectedItems(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
2180
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
2181
|
-
}>[][];
|
|
2182
|
-
isPaged(): boolean;
|
|
2183
|
-
refresh(): Promise<void>;
|
|
2184
|
-
/**
|
|
2185
|
-
* @alias deleteRow
|
|
2186
|
-
*/
|
|
2187
|
-
remove(index?: number | number[]): Promise<boolean>;
|
|
2188
|
-
removeElementsByIndices(array: FieldsGroup[], indicesToRemove: number[]): FieldsGroup[];
|
|
2189
|
-
sortColumn: GridAction<[index: number]>;
|
|
2190
|
-
sortDown(index?: number | number[]): Promise<boolean>;
|
|
2191
|
-
sortUp(index?: number | number[]): Promise<boolean>;
|
|
2192
|
-
private swapRows;
|
|
2193
|
-
private swapRowsIndices;
|
|
2194
|
-
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2195
|
-
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
2196
|
-
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2097
|
+
constructor(task: any);
|
|
2098
|
+
setPriority(newPriority: string): void;
|
|
2099
|
+
get name(): string;
|
|
2197
2100
|
}
|
|
2198
2101
|
|
|
2199
|
-
|
|
2200
|
-
|
|
2102
|
+
type TEntity = {
|
|
2103
|
+
title: string;
|
|
2104
|
+
readOnly: boolean;
|
|
2105
|
+
separator: string;
|
|
2106
|
+
associations: {
|
|
2107
|
+
nameValue: string;
|
|
2108
|
+
};
|
|
2109
|
+
date: {
|
|
2110
|
+
label: string;
|
|
2111
|
+
toolTip: string;
|
|
2112
|
+
value: string;
|
|
2113
|
+
};
|
|
2114
|
+
entityType: {
|
|
2115
|
+
label: string;
|
|
2116
|
+
toolTip: string;
|
|
2117
|
+
value: string;
|
|
2118
|
+
};
|
|
2119
|
+
identifier: {
|
|
2120
|
+
label: string;
|
|
2121
|
+
toolTip: string;
|
|
2122
|
+
value?: string;
|
|
2123
|
+
prefix?: {
|
|
2124
|
+
name: string;
|
|
2125
|
+
type: 'custom' | 'fixed' | 'none';
|
|
2126
|
+
label?: string;
|
|
2127
|
+
toolTip?: string;
|
|
2128
|
+
value?: string;
|
|
2129
|
+
};
|
|
2130
|
+
body: {
|
|
2131
|
+
type: 'autogenerated' | 'sameAsProcess';
|
|
2132
|
+
label: string;
|
|
2133
|
+
name?: string;
|
|
2134
|
+
toolTip?: string;
|
|
2135
|
+
value?: string;
|
|
2136
|
+
required?: false;
|
|
2137
|
+
} | {
|
|
2138
|
+
label: string;
|
|
2139
|
+
toolTip?: string;
|
|
2140
|
+
value?: string;
|
|
2141
|
+
type: 'custom';
|
|
2142
|
+
required: boolean;
|
|
2143
|
+
name: string;
|
|
2144
|
+
};
|
|
2145
|
+
suffix?: {
|
|
2146
|
+
name: string;
|
|
2147
|
+
type: 'custom' | 'fixed' | 'none';
|
|
2148
|
+
toolTip?: string;
|
|
2149
|
+
label?: string;
|
|
2150
|
+
value?: string;
|
|
2151
|
+
};
|
|
2152
|
+
};
|
|
2153
|
+
image: {
|
|
2154
|
+
label: string;
|
|
2155
|
+
toolTip: string;
|
|
2156
|
+
file: File | null;
|
|
2157
|
+
};
|
|
2158
|
+
status: {
|
|
2159
|
+
name: string;
|
|
2160
|
+
label: string;
|
|
2161
|
+
toolTip: string;
|
|
2162
|
+
type: 'fixex' | 'select' | 'none';
|
|
2163
|
+
value?: string;
|
|
2164
|
+
disabled?: boolean;
|
|
2165
|
+
options: {
|
|
2166
|
+
label: string;
|
|
2167
|
+
value: string;
|
|
2168
|
+
selected: boolean;
|
|
2169
|
+
}[];
|
|
2170
|
+
};
|
|
2171
|
+
user: {
|
|
2172
|
+
label: string;
|
|
2173
|
+
name: string;
|
|
2174
|
+
toolTip: string;
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2201
2177
|
|
|
2202
|
-
declare class
|
|
2178
|
+
declare class Entity {
|
|
2179
|
+
state: TEntity | null;
|
|
2180
|
+
uploader: UploaderApi;
|
|
2181
|
+
constructor();
|
|
2182
|
+
get name(): string | undefined;
|
|
2183
|
+
init(): Promise<void>;
|
|
2184
|
+
getConfirmParams(): {
|
|
2185
|
+
busEntSta: string | undefined;
|
|
2186
|
+
};
|
|
2203
2187
|
}
|
|
2204
2188
|
|
|
2205
|
-
type
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2189
|
+
type TObservations = {
|
|
2190
|
+
observations: TObservation[] | [];
|
|
2191
|
+
newObservation: {
|
|
2192
|
+
commentValue: string;
|
|
2193
|
+
chkAddAlert: boolean;
|
|
2194
|
+
chkAddAllAlert: boolean;
|
|
2195
|
+
chkRemAlert: boolean;
|
|
2196
|
+
} | null;
|
|
2197
|
+
};
|
|
2198
|
+
type TObservation = {
|
|
2199
|
+
name: string;
|
|
2200
|
+
date: string;
|
|
2201
|
+
userTitle: string;
|
|
2202
|
+
groupTitle: string;
|
|
2203
|
+
taskTitle: string;
|
|
2204
|
+
userLabel: string;
|
|
2205
|
+
groupLabel: string;
|
|
2206
|
+
taskLabel: string;
|
|
2207
|
+
checked?: boolean;
|
|
2208
|
+
disabled?: boolean;
|
|
2209
|
+
marked?: boolean;
|
|
2210
|
+
comment: string;
|
|
2211
|
+
};
|
|
2212
2212
|
|
|
2213
|
-
declare class
|
|
2213
|
+
declare class Observations {
|
|
2214
|
+
state: TObservations;
|
|
2215
|
+
constructor();
|
|
2216
|
+
init(): Promise<void>;
|
|
2217
|
+
getConfirmParams(): {
|
|
2218
|
+
txtComment: string | undefined;
|
|
2219
|
+
chkAddAlert: string;
|
|
2220
|
+
chkAddAllAlert: string;
|
|
2221
|
+
chkRemAlert: string;
|
|
2222
|
+
};
|
|
2223
|
+
setPriority(newPriority: string): void;
|
|
2214
2224
|
}
|
|
2215
2225
|
|
|
2216
|
-
|
|
2226
|
+
type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
|
|
2227
|
+
type Status = {
|
|
2228
|
+
step?: ConfirmStep;
|
|
2229
|
+
error?: string;
|
|
2230
|
+
finishedWithError?: boolean;
|
|
2231
|
+
};
|
|
2232
|
+
declare abstract class FlowModal<T extends {
|
|
2233
|
+
confirmed?: boolean;
|
|
2234
|
+
}> {
|
|
2235
|
+
abstract confirm(result: T): Promise<Status | FlowModal<any>>;
|
|
2217
2236
|
}
|
|
2218
2237
|
|
|
2219
|
-
type
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
isoDateValue?: string;
|
|
2225
|
-
length?: number;
|
|
2226
|
-
mask?: string;
|
|
2227
|
-
maskPlaceholder?: string;
|
|
2228
|
-
regExp?: string;
|
|
2229
|
-
qryId?: string;
|
|
2230
|
-
qry_show_value?: string;
|
|
2231
|
-
value: {
|
|
2232
|
-
showValue: string;
|
|
2233
|
-
storeValue?: string;
|
|
2238
|
+
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
2239
|
+
type TErrMessage = {
|
|
2240
|
+
message: {
|
|
2241
|
+
text: string;
|
|
2242
|
+
label?: string;
|
|
2234
2243
|
};
|
|
2235
|
-
valueType?: 'D';
|
|
2236
2244
|
};
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2245
|
+
type TFetchTaskActionResponse = {
|
|
2246
|
+
onClose?: TOnClose;
|
|
2247
|
+
sysMessages?: TErrMessage;
|
|
2248
|
+
sysExceptions?: TErrMessage;
|
|
2249
|
+
type?: string;
|
|
2250
|
+
actions?: {
|
|
2251
|
+
action: {
|
|
2252
|
+
param: {
|
|
2253
|
+
text: string;
|
|
2254
|
+
}[];
|
|
2255
|
+
toDo: string;
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
load?: {
|
|
2259
|
+
canClose: boolean;
|
|
2260
|
+
type: string;
|
|
2261
|
+
text: {
|
|
2262
|
+
label: string;
|
|
2263
|
+
closeAll: boolean;
|
|
2264
|
+
addClass?: string;
|
|
2265
|
+
title?: string;
|
|
2266
|
+
};
|
|
2267
|
+
};
|
|
2268
|
+
text?: {
|
|
2269
|
+
title?: string;
|
|
2270
|
+
text?: string;
|
|
2271
|
+
};
|
|
2242
2272
|
};
|
|
2243
|
-
declare class ModalInput extends FieldWithAttribute<TApiaInputProperties, ModalInputValue> {
|
|
2244
|
-
constructor({ value, ...definition }: TApiaModalInputDefinition);
|
|
2245
|
-
fireEvent(eventName: InputEvents): Promise<boolean>;
|
|
2246
|
-
setValue(newValue: Required<ModalInputValue>, options?: Partial<{
|
|
2247
|
-
comparator: Comparator<any>;
|
|
2248
|
-
synchronize: boolean;
|
|
2249
|
-
}> | undefined): Promise<boolean>;
|
|
2250
|
-
setValueFromModalSelection(rowId: string): Promise<void>;
|
|
2251
|
-
validate(): Promise<boolean>;
|
|
2252
|
-
protected getSynchronizePostConfiguration(value: ModalInputValue): IApiaApiPostConfig<any>;
|
|
2253
|
-
}
|
|
2254
2273
|
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2274
|
+
type TPromptPromiseResponse = {
|
|
2275
|
+
message: string;
|
|
2276
|
+
messageType: TMessageType;
|
|
2277
|
+
};
|
|
2259
2278
|
|
|
2260
|
-
declare class
|
|
2279
|
+
declare class AssistantController {
|
|
2280
|
+
#private;
|
|
2281
|
+
get isEnabled(): boolean;
|
|
2282
|
+
constructor();
|
|
2283
|
+
init(execution: Execution): void;
|
|
2284
|
+
run(message: ChatMessage): Promise<TPromptPromiseResponse | undefined>;
|
|
2285
|
+
private generateFormsContent;
|
|
2286
|
+
private resolveResponseResult;
|
|
2287
|
+
private shouldGoToNextStep;
|
|
2288
|
+
private resolveFinalMessage;
|
|
2289
|
+
private generateConfirmedValues;
|
|
2290
|
+
private fillForms;
|
|
2291
|
+
private fillForm;
|
|
2292
|
+
private fillFields;
|
|
2293
|
+
private fillGridField;
|
|
2294
|
+
private resolveFieldValue;
|
|
2261
2295
|
}
|
|
2262
2296
|
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2297
|
+
declare enum ExecutionState {
|
|
2298
|
+
RUNNING = 0,
|
|
2299
|
+
LOADING = 1,
|
|
2300
|
+
FINISHED = 2,
|
|
2301
|
+
RENDERING = 3
|
|
2268
2302
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2303
|
+
type TExecutionConfig = {
|
|
2304
|
+
canConfirm: boolean;
|
|
2305
|
+
canGoBack: boolean;
|
|
2306
|
+
canGoForward: boolean;
|
|
2307
|
+
canSave: boolean;
|
|
2308
|
+
canFree: boolean;
|
|
2309
|
+
canDelegate: boolean;
|
|
2310
|
+
canClose: boolean;
|
|
2311
|
+
canShare: boolean;
|
|
2312
|
+
isEntity?: boolean;
|
|
2313
|
+
};
|
|
2314
|
+
declare class Execution {
|
|
2315
|
+
#private;
|
|
2316
|
+
static get instance(): Execution;
|
|
2317
|
+
fieldsMapping: FieldsMapping;
|
|
2318
|
+
private entity;
|
|
2319
|
+
private process;
|
|
2320
|
+
private observations;
|
|
2321
|
+
assistantController: AssistantController;
|
|
2322
|
+
executionConfig: TExecutionConfig | null;
|
|
2323
|
+
private _steps;
|
|
2324
|
+
private _currentStep;
|
|
2325
|
+
private _stepCount;
|
|
2326
|
+
private constructor();
|
|
2327
|
+
protected formsById: {
|
|
2328
|
+
E: Map<string, Form>;
|
|
2329
|
+
P: Map<string, Form>;
|
|
2330
|
+
};
|
|
2331
|
+
protected forms: {
|
|
2332
|
+
E: Map<string, Form>;
|
|
2333
|
+
P: Map<string, Form>;
|
|
2334
|
+
};
|
|
2335
|
+
state: {
|
|
2336
|
+
formsReady: ReturnType<Execution['getAllForms']>;
|
|
2337
|
+
executionState: ExecutionState;
|
|
2338
|
+
locked: boolean;
|
|
2339
|
+
};
|
|
2340
|
+
locker: ScreenLocker;
|
|
2341
|
+
getAllForms(): Form[];
|
|
2342
|
+
getFormsByType(type: TFrmParent): Form[];
|
|
2343
|
+
getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
|
|
2344
|
+
getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
|
|
2345
|
+
get currentStep(): number;
|
|
2346
|
+
get steps(): {
|
|
2347
|
+
title: string;
|
|
2348
|
+
stepNumber: number;
|
|
2349
|
+
status: "completed" | "pending" | "current";
|
|
2350
|
+
}[];
|
|
2351
|
+
getEntity(): Entity;
|
|
2352
|
+
getProcess(): Process;
|
|
2353
|
+
getObservations(): Observations;
|
|
2354
|
+
getCurrentTask(): Task;
|
|
2355
|
+
private mustRenderForms;
|
|
2356
|
+
run(executionConfig: TExecutionConfig): Promise<void>;
|
|
2357
|
+
protected getHiddenForms(): Form[];
|
|
2358
|
+
markFormAsRendered(frmParent: string, frmName: string): void;
|
|
2359
|
+
back(): Promise<false | undefined>;
|
|
2360
|
+
delegate(): Promise<void>;
|
|
2361
|
+
shareSocial(): Promise<void>;
|
|
2362
|
+
close(): Promise<void>;
|
|
2363
|
+
desktop(): Promise<void>;
|
|
2364
|
+
confirm(status?: Status, step?: ConfirmStep): Promise<boolean | FlowModal<any> | Field>;
|
|
2365
|
+
free(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
|
|
2366
|
+
print(): Promise<void>;
|
|
2367
|
+
getStepTitle(step: number): {
|
|
2368
|
+
title: string;
|
|
2369
|
+
stepNumber: number;
|
|
2370
|
+
status: "completed" | "pending" | "current";
|
|
2371
|
+
} | undefined;
|
|
2372
|
+
next(): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2373
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2374
|
+
}> | undefined>;
|
|
2375
|
+
save(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
|
|
2376
|
+
viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
|
|
2377
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2378
|
+
validate(): Promise<true | Field>;
|
|
2273
2379
|
}
|
|
2274
2380
|
|
|
2275
|
-
declare class
|
|
2381
|
+
declare class MessageNotification extends Notification {
|
|
2382
|
+
close(): void;
|
|
2276
2383
|
}
|
|
2277
2384
|
|
|
2278
|
-
declare class
|
|
2385
|
+
declare class StatusNotification extends Notification<NotificationDefinition & {
|
|
2386
|
+
blocking: boolean;
|
|
2387
|
+
}> {
|
|
2388
|
+
readonly props: NotificationDefinition & {
|
|
2389
|
+
blocking: boolean;
|
|
2390
|
+
};
|
|
2391
|
+
constructor(props: NotificationDefinition & {
|
|
2392
|
+
blocking: boolean;
|
|
2393
|
+
});
|
|
2279
2394
|
}
|
|
2280
2395
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
private
|
|
2285
|
-
constructor(
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2396
|
+
declare class Notifications {
|
|
2397
|
+
#private;
|
|
2398
|
+
static get instance(): Notifications;
|
|
2399
|
+
private emitter;
|
|
2400
|
+
private constructor();
|
|
2401
|
+
protected notifications: Notification[];
|
|
2402
|
+
add(notification: Notification): void;
|
|
2403
|
+
getAll(): Notification<NotificationDefinition>[];
|
|
2404
|
+
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
2405
|
+
remove(notification: string | number | Notification): void;
|
|
2406
|
+
on: <K extends "notification">(event: K, cb: Callback<{
|
|
2407
|
+
notification: Notification;
|
|
2408
|
+
}, K>) => UnSubscriber;
|
|
2292
2409
|
}
|
|
2293
2410
|
|
|
2294
|
-
|
|
2411
|
+
type Comparator<T> = (a: T, b: T) => boolean;
|
|
2412
|
+
declare const deepEqual: Comparator<any>;
|
|
2295
2413
|
|
|
2296
2414
|
/**
|
|
2297
2415
|
* @public
|
|
@@ -2543,6 +2661,8 @@ interface IApiaFunctions {
|
|
|
2543
2661
|
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
2544
2662
|
}
|
|
2545
2663
|
interface IApiaForm {
|
|
2664
|
+
getFrmId(): string | null;
|
|
2665
|
+
getFrmParent(): string;
|
|
2546
2666
|
getFormName(): string;
|
|
2547
2667
|
getFormTitle(): string;
|
|
2548
2668
|
openForm(): void;
|
|
@@ -2555,6 +2675,8 @@ interface IApiaForm {
|
|
|
2555
2675
|
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
2556
2676
|
}
|
|
2557
2677
|
interface IApiaField {
|
|
2678
|
+
get fldType(): TApiaFieldType;
|
|
2679
|
+
get fldId(): string;
|
|
2558
2680
|
/**
|
|
2559
2681
|
* Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
|
|
2560
2682
|
*/
|
|
@@ -2562,7 +2684,7 @@ interface IApiaField {
|
|
|
2562
2684
|
/**
|
|
2563
2685
|
* Returns the current value of the property determined by the name in the paremeter.
|
|
2564
2686
|
*/
|
|
2565
|
-
getProperty(name:
|
|
2687
|
+
getProperty<K extends keyof TApiaFieldCommonProperties>(name: K): TApiaFieldCommonProperties[K];
|
|
2566
2688
|
/**
|
|
2567
2689
|
* Sets the focus on the field if possible.
|
|
2568
2690
|
*/
|
|
@@ -2688,5 +2810,197 @@ declare class ActionsController {
|
|
|
2688
2810
|
getButton(id: TActionButtons): ButtonsAction | undefined;
|
|
2689
2811
|
}
|
|
2690
2812
|
|
|
2691
|
-
|
|
2813
|
+
declare abstract class ApiaField implements IApiaField {
|
|
2814
|
+
#private;
|
|
2815
|
+
constructor(field: Field);
|
|
2816
|
+
get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
|
|
2817
|
+
get fldId(): string;
|
|
2818
|
+
get index(): number;
|
|
2819
|
+
setProperty<K extends keyof TApiaFieldCommonProperties>(name: K, value: TApiaFieldCommonProperties[K]): void;
|
|
2820
|
+
getProperty<K extends keyof TApiaFieldCommonProperties>(name: K): TApiaFieldCommonProperties[K];
|
|
2821
|
+
setFocus(): IApiaField | null;
|
|
2822
|
+
isInGrid(): boolean;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
interface IButtonField extends IApiaField {
|
|
2826
|
+
fireClickEvent(): void;
|
|
2827
|
+
getValue(): string | null;
|
|
2828
|
+
}
|
|
2829
|
+
declare class ButtonField extends ApiaField implements IButtonField {
|
|
2830
|
+
#private;
|
|
2831
|
+
constructor(field: Button);
|
|
2832
|
+
fireClickEvent(): void;
|
|
2833
|
+
getValue(): string | null;
|
|
2834
|
+
clearValue(): void;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
type TEditorField = IApiaField;
|
|
2838
|
+
declare class EditorField extends ApiaField implements TEditorField {
|
|
2839
|
+
constructor(field: Editor);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
declare class ApiaAttribute {
|
|
2843
|
+
#private;
|
|
2844
|
+
constructor(attribute: Attribute);
|
|
2845
|
+
get attLabel(): string;
|
|
2846
|
+
get name(): string;
|
|
2847
|
+
get id(): string;
|
|
2848
|
+
get valueType(): TApiaFieldValueType;
|
|
2849
|
+
}
|
|
2850
|
+
declare class ApiaFieldWithAttribute<T = string | boolean> extends ApiaField {
|
|
2851
|
+
#private;
|
|
2852
|
+
constructor(field: FieldWithAttribute);
|
|
2853
|
+
get attribute(): ApiaAttribute;
|
|
2854
|
+
clearValue(): void;
|
|
2855
|
+
getValue(): any;
|
|
2856
|
+
setValue(v: T): void;
|
|
2857
|
+
getLabel(): string | null | void;
|
|
2858
|
+
getProperty<K extends keyof TApiaFieldWithAttributeProperties>(name: K): TApiaFieldWithAttributeProperties[K];
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
type TOptionsMap$2 = Map<string, PossibleValue>;
|
|
2862
|
+
type TOptionsAsArray = PossibleValue[];
|
|
2863
|
+
declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2864
|
+
#private;
|
|
2865
|
+
constructor(field: Select);
|
|
2866
|
+
getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
|
|
2867
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2868
|
+
setOptions(optionsArray: PossibleValue[] | PossibleValue): void;
|
|
2869
|
+
removeOption(optionValue: string | number): void;
|
|
2870
|
+
getSelectedOption(asObject: boolean): TOptionsMap$2 | PossibleValue[] | null;
|
|
2871
|
+
getSelectedText(): string | null;
|
|
2872
|
+
clearOptions(): void;
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
declare class InputField extends ApiaFieldWithAttribute {
|
|
2876
|
+
#private;
|
|
2877
|
+
constructor(field: Input);
|
|
2878
|
+
getObjectValue(): number | string | boolean | null;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
declare class TreeField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2882
|
+
#private;
|
|
2883
|
+
constructor(field: Tree);
|
|
2884
|
+
setValue(v: string | number | (string | number)[]): void;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
declare class CheckField extends ApiaFieldWithAttribute {
|
|
2888
|
+
constructor(field: Checkbox);
|
|
2889
|
+
clearValue(): void;
|
|
2890
|
+
setValue(value: string | boolean | number): void;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
type TOptionsMap$1 = Map<string, PossibleValue>;
|
|
2894
|
+
declare class RadioField extends ApiaFieldWithAttribute {
|
|
2895
|
+
#private;
|
|
2896
|
+
constructor(field: Radio);
|
|
2897
|
+
getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
|
|
2898
|
+
clearOptions(): void | null;
|
|
2899
|
+
addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2900
|
+
setOptions(options: PossibleValue[]): void;
|
|
2901
|
+
removeOption(radioValue: string | number): void;
|
|
2902
|
+
getSelectedOption(asObject: boolean): TOptionsMap$1 | PossibleValue | null;
|
|
2903
|
+
getSelectedText(): string | undefined | null;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
type TOptionsMap = Map<string, PossibleValue>;
|
|
2907
|
+
declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
|
|
2908
|
+
#private;
|
|
2909
|
+
constructor(field: Multiple);
|
|
2910
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2911
|
+
setValue(value: string[]): void;
|
|
2912
|
+
clearOptions(): void;
|
|
2913
|
+
getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2914
|
+
getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2915
|
+
setOptions(optionsArray: PossibleValue[] | PossibleValue): void;
|
|
2916
|
+
removeOption(optionValue: string | number): void;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
declare class HiddenField extends ApiaField {
|
|
2920
|
+
constructor(field: Hidden);
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
declare class AreaField extends ApiaFieldWithAttribute {
|
|
2924
|
+
constructor(field: Textarea);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
interface IImageField extends IApiaField {
|
|
2928
|
+
getValue(): null;
|
|
2929
|
+
setValue(): null;
|
|
2930
|
+
getLabel(): void;
|
|
2931
|
+
clearValue(): null;
|
|
2932
|
+
}
|
|
2933
|
+
declare class ImageField extends ApiaField implements IImageField {
|
|
2934
|
+
#private;
|
|
2935
|
+
constructor(field: Image);
|
|
2936
|
+
clearValue(): null;
|
|
2937
|
+
getLabel(): void;
|
|
2938
|
+
getValue(): null;
|
|
2939
|
+
setValue(): null;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
interface ILinkField extends IApiaField {
|
|
2943
|
+
getLabel(): void;
|
|
2944
|
+
}
|
|
2945
|
+
declare class LinkField extends ApiaField implements ILinkField {
|
|
2946
|
+
#private;
|
|
2947
|
+
constructor(field: Link);
|
|
2948
|
+
getLabel(): void;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
interface ITextField extends IApiaField {
|
|
2952
|
+
getLabel(): void;
|
|
2953
|
+
}
|
|
2954
|
+
declare class TextField extends ApiaField implements ITextField {
|
|
2955
|
+
#private;
|
|
2956
|
+
constructor(field: Field);
|
|
2957
|
+
getLabel(): void;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
declare class GridField extends ApiaField {
|
|
2961
|
+
#private;
|
|
2962
|
+
constructor(field: Grid);
|
|
2963
|
+
addRow(): Promise<IApiaField[]>;
|
|
2964
|
+
clearGrid(): void;
|
|
2965
|
+
clearPage(): void;
|
|
2966
|
+
clearRow(index: number): Promise<void>;
|
|
2967
|
+
closeForm(): GridField;
|
|
2968
|
+
deleteAllRows(): Promise<void>;
|
|
2969
|
+
deleteGrid(): Promise<void>;
|
|
2970
|
+
deletePage(): void;
|
|
2971
|
+
deleteRow(index: number): Promise<void>;
|
|
2972
|
+
editRow(index: number): void;
|
|
2973
|
+
getAllColumns(): (IApiaField | null)[][];
|
|
2974
|
+
getColumn(fieldName: string): (IApiaField | null)[];
|
|
2975
|
+
getCurrentPage(): number;
|
|
2976
|
+
getField(fieldName: string, fieldIndex?: number): (IApiaField | null)[] | null;
|
|
2977
|
+
getPageCount(): number;
|
|
2978
|
+
getPageSize(): number;
|
|
2979
|
+
getRow(index: number): IApiaField[] | undefined;
|
|
2980
|
+
getSelection(): IApiaField[][];
|
|
2981
|
+
get id(): string;
|
|
2982
|
+
isPaged(): boolean;
|
|
2983
|
+
get rowsCount(): number;
|
|
2984
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2985
|
+
toggleDeleteButton(index: number, isShown?: boolean): void;
|
|
2986
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
type TCaptchaField = IApiaField;
|
|
2990
|
+
declare class CaptchaField extends ApiaField implements TCaptchaField {
|
|
2991
|
+
constructor(field: Captcha);
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
declare class FileUploaderField extends ApiaFieldWithAttribute {
|
|
2995
|
+
#private;
|
|
2996
|
+
constructor(field: File$1);
|
|
2997
|
+
onChange(cb: (newValue: unknown) => unknown): void;
|
|
2998
|
+
setValue(): null;
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
declare class PasswordField extends ApiaField {
|
|
3002
|
+
constructor(field: Password);
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
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 TOpenModal, type TProcessDroppedFiles, type TRequireOnlyOne, type TSaveDroppedFilesConf, type TSignaturesData, type TUploadModalOpener, type TUploaderFileInfo, type TUploaderLoadCurrentFunction, type TUploaderLoadCurrentFunctionMessages, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, UploaderModalController, type UploaderModalState, type UploaderState, deepEqual, get, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFileDefinition, parseSuccessfulResponse, parseXml, post, returnExactlyTheSame, shallowEqual };
|
|
2692
3006
|
//# sourceMappingURL=index.d.ts.map
|