@apia/execution 4.0.16 → 4.0.17
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 +1432 -1119
- package/dist/index.js +6590 -6134
- 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;
|
|
@@ -345,6 +208,7 @@ type TApiaFieldCommonProperties = {
|
|
|
345
208
|
noPrint?: boolean;
|
|
346
209
|
readonly?: boolean;
|
|
347
210
|
rowspan?: number;
|
|
211
|
+
title?: string;
|
|
348
212
|
tooltip?: string;
|
|
349
213
|
tooltipHelp?: boolean;
|
|
350
214
|
visibilityHidden?: boolean;
|
|
@@ -373,8 +237,6 @@ type TApiaButtonProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProp
|
|
|
373
237
|
type TApiaCaptchaProperties = TApiaFieldCommonProperties & {};
|
|
374
238
|
type TApiaCheckboxProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
375
239
|
checked?: boolean;
|
|
376
|
-
ariaLabel?: string;
|
|
377
|
-
ariaDescription?: string;
|
|
378
240
|
autoFocus?: string;
|
|
379
241
|
placeHolder?: string;
|
|
380
242
|
title?: string;
|
|
@@ -382,8 +244,6 @@ type TApiaCheckboxProperties = TApiaFieldCommonProperties & TApiaGroupableFieldP
|
|
|
382
244
|
type TApiaEditorProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
383
245
|
autoFocus?: string;
|
|
384
246
|
placeHolder?: string;
|
|
385
|
-
ariaLabel?: string;
|
|
386
|
-
ariaDescription?: string;
|
|
387
247
|
title?: string;
|
|
388
248
|
tooltip?: string;
|
|
389
249
|
cssClass?: string;
|
|
@@ -414,8 +274,6 @@ type TApiaFileProperties = TApiaFieldCommonProperties & TApiaGroupableFieldPrope
|
|
|
414
274
|
oneClickUpload?: boolean;
|
|
415
275
|
reqSign?: boolean;
|
|
416
276
|
title?: string;
|
|
417
|
-
ariaLabel?: string;
|
|
418
|
-
ariaDescription?: string;
|
|
419
277
|
autoFocus?: string;
|
|
420
278
|
};
|
|
421
279
|
type TApiaGridProperties = TApiaFieldCommonProperties & {
|
|
@@ -445,8 +303,6 @@ type TApiaInputProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldP
|
|
|
445
303
|
autoFocus?: string;
|
|
446
304
|
title?: string;
|
|
447
305
|
inputType?: string;
|
|
448
|
-
ariaLabel?: string;
|
|
449
|
-
ariaDescription?: string;
|
|
450
306
|
storeMdlQryResult?: boolean;
|
|
451
307
|
};
|
|
452
308
|
type TApiaLabelProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
@@ -461,8 +317,6 @@ type TApiaMultipleProperties = TApiaFieldCommonProperties & TApiaFieldWithAttrib
|
|
|
461
317
|
fieldRows?: string;
|
|
462
318
|
};
|
|
463
319
|
type TApiaPasswordProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
464
|
-
ariaLabel: string;
|
|
465
|
-
ariaDescription: string;
|
|
466
320
|
title: string;
|
|
467
321
|
};
|
|
468
322
|
type RadioPossibleValue = {
|
|
@@ -478,23 +332,17 @@ type SelectPossibleValue = {
|
|
|
478
332
|
type TApiaRadioProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
479
333
|
dontBreakRadio?: string;
|
|
480
334
|
possibleValue?: RadioPossibleValue | RadioPossibleValue[];
|
|
481
|
-
ariaLabel?: string;
|
|
482
|
-
ariaDescription?: string;
|
|
483
335
|
autoFocus?: string;
|
|
484
336
|
title?: string;
|
|
485
337
|
};
|
|
486
338
|
type TApiaSelectProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
487
339
|
possibleValue?: SelectPossibleValue | SelectPossibleValue[];
|
|
488
|
-
ariaLabel?: string;
|
|
489
|
-
ariaDescription?: string;
|
|
490
340
|
autoFocus?: string;
|
|
491
341
|
placeHolder?: string;
|
|
492
342
|
autoComplete?: string;
|
|
493
343
|
title?: string;
|
|
494
344
|
};
|
|
495
345
|
type TApiaTextareaProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
496
|
-
ariaLabel?: string;
|
|
497
|
-
ariaDescription?: string;
|
|
498
346
|
autoFocus?: string;
|
|
499
347
|
placeHolder?: string;
|
|
500
348
|
title?: string;
|
|
@@ -508,140 +356,27 @@ type TApiaTreeProperties = TApiaFieldCommonProperties & TApiaFieldWithAttributeP
|
|
|
508
356
|
possibleValue: TApiaTreePossibleValue[];
|
|
509
357
|
selParent?: boolean;
|
|
510
358
|
title?: string;
|
|
511
|
-
ariaLabel?: string;
|
|
512
|
-
ariaDescription?: string;
|
|
513
359
|
autoFocus?: string;
|
|
514
360
|
};
|
|
515
361
|
|
|
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;
|
|
362
|
+
interface TApiaMessage {
|
|
363
|
+
text: string;
|
|
364
|
+
label?: string;
|
|
365
|
+
}
|
|
366
|
+
type ResponseSysMessages = {
|
|
367
|
+
sysMessages?: {
|
|
368
|
+
message: TApiaMessage | TApiaMessage[];
|
|
580
369
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
processResult?: {
|
|
584
|
-
state: TCusCmpStateRequest;
|
|
370
|
+
sysExceptions?: {
|
|
371
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
585
372
|
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
text: string;
|
|
373
|
+
exceptions?: {
|
|
374
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
589
375
|
};
|
|
590
376
|
};
|
|
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;
|
|
377
|
+
type TApiaApiAxiosResponse<LoadType> = AxiosResponse<LoadType | null> & {
|
|
378
|
+
hasError: boolean;
|
|
379
|
+
hasMessages: boolean;
|
|
645
380
|
};
|
|
646
381
|
type TApiaApiResult<LoadType> = Promise<TApiaApiAxiosResponse<(LoadType & ResponseSysMessages) | null> | null>;
|
|
647
382
|
interface IApiaApiRequestConfig {
|
|
@@ -653,56 +388,6 @@ interface IApiaApiPostConfig<DataType> extends IApiaApiRequestConfig {
|
|
|
653
388
|
postDataTreatment?: 'stringify';
|
|
654
389
|
}
|
|
655
390
|
|
|
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
391
|
declare global {
|
|
707
392
|
interface Window {
|
|
708
393
|
[key: string]: string;
|
|
@@ -852,6 +537,156 @@ type MakeApiaUrlProps = {
|
|
|
852
537
|
*/
|
|
853
538
|
declare function makeApiaUrl(props?: MakeApiaUrlProps): string;
|
|
854
539
|
|
|
540
|
+
type TFormEventName = 'onLoad' | 'onSubmit' | 'onReload' | 'onBeforePrint' | 'onAfterPrint';
|
|
541
|
+
type TFrmParent = 'E' | 'P';
|
|
542
|
+
type TFormScriptEventParameters = {
|
|
543
|
+
type: 'V' | 'P' | 'E';
|
|
544
|
+
value?: string;
|
|
545
|
+
attId?: string;
|
|
546
|
+
};
|
|
547
|
+
type TFormScriptEvent = {
|
|
548
|
+
fncName: string;
|
|
549
|
+
evtName: Readonly<TFormEventName>;
|
|
550
|
+
evtId: number | string;
|
|
551
|
+
fncParams: TFormScriptEventParameters[];
|
|
552
|
+
};
|
|
553
|
+
type TFormScriptEvents = TFormScriptEvent[];
|
|
554
|
+
type TApiaFormProperties = {
|
|
555
|
+
readOnly?: boolean;
|
|
556
|
+
readonly?: boolean;
|
|
557
|
+
frmHidden?: boolean;
|
|
558
|
+
prpFrmClosed?: boolean;
|
|
559
|
+
frmHighlight?: boolean;
|
|
560
|
+
frmInvisible?: boolean;
|
|
561
|
+
frmTab?: boolean;
|
|
562
|
+
frmDontFire?: boolean;
|
|
563
|
+
};
|
|
564
|
+
type ComponentProperties = {
|
|
565
|
+
colspan: string;
|
|
566
|
+
visible: boolean;
|
|
567
|
+
rowspan: string;
|
|
568
|
+
};
|
|
569
|
+
type ComponentEvent = {
|
|
570
|
+
name: string;
|
|
571
|
+
serverEvents: boolean;
|
|
572
|
+
script?: {
|
|
573
|
+
text: string;
|
|
574
|
+
}[];
|
|
575
|
+
};
|
|
576
|
+
type TCusCmpStateRequest = {
|
|
577
|
+
attribute: {
|
|
578
|
+
attId: number;
|
|
579
|
+
attName: string;
|
|
580
|
+
name: string;
|
|
581
|
+
values: string;
|
|
582
|
+
}[];
|
|
583
|
+
property: {
|
|
584
|
+
name: string;
|
|
585
|
+
value: any;
|
|
586
|
+
}[];
|
|
587
|
+
directive: {
|
|
588
|
+
type: 'RELOAD' | 'FIRE';
|
|
589
|
+
content: string;
|
|
590
|
+
}[];
|
|
591
|
+
additional?: {
|
|
592
|
+
text: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
type TCustomComponentDefaultResponse = {
|
|
596
|
+
processResult?: {
|
|
597
|
+
state: TCusCmpStateRequest;
|
|
598
|
+
};
|
|
599
|
+
state?: TCusCmpStateRequest;
|
|
600
|
+
ajaxUpdated?: {
|
|
601
|
+
text: string;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
type TCustomComponentDefinition = {
|
|
605
|
+
name: string;
|
|
606
|
+
x: number;
|
|
607
|
+
description: string;
|
|
608
|
+
y: number;
|
|
609
|
+
id: string;
|
|
610
|
+
label: string;
|
|
611
|
+
properties: ComponentProperties;
|
|
612
|
+
event: ComponentEvent[];
|
|
613
|
+
state: {
|
|
614
|
+
state: TCusCmpStateRequest;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
type TApiaForm = {
|
|
618
|
+
chkAllowFormsAssistant?: boolean;
|
|
619
|
+
cols: number;
|
|
620
|
+
editModal?: boolean;
|
|
621
|
+
customField: TCustomComponentDefinition | TCustomComponentDefinition[];
|
|
622
|
+
field: TApiaFieldBaseDefinition<any>[] | TApiaFieldBaseDefinition<any>;
|
|
623
|
+
formName: Readonly<string>;
|
|
624
|
+
formTitle: Readonly<string>;
|
|
625
|
+
frmParent: TFrmParent;
|
|
626
|
+
id: Readonly<string>;
|
|
627
|
+
langs?: string;
|
|
628
|
+
markedToSign: boolean;
|
|
629
|
+
modalIndex?: number;
|
|
630
|
+
properties: string;
|
|
631
|
+
prpFrmClosed: boolean;
|
|
632
|
+
readonly?: boolean;
|
|
633
|
+
readOnly?: boolean;
|
|
634
|
+
requiredSignableForm: boolean;
|
|
635
|
+
rows: number;
|
|
636
|
+
scriptEvents?: TFormScriptEvents;
|
|
637
|
+
signableForm: boolean;
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
type Comparator<T> = (a: T, b: T) => boolean;
|
|
641
|
+
declare const shallowEqual: Comparator<any>;
|
|
642
|
+
|
|
643
|
+
type SetValueOptions = Partial<{
|
|
644
|
+
comparator: Comparator<any>;
|
|
645
|
+
synchronize: boolean;
|
|
646
|
+
}>;
|
|
647
|
+
type FireEventParameters = Record<string, unknown>;
|
|
648
|
+
type FieldValidationState = {
|
|
649
|
+
dirty: boolean;
|
|
650
|
+
errorMessage: string | null;
|
|
651
|
+
synchronizing: boolean;
|
|
652
|
+
};
|
|
653
|
+
type FieldWithAttributeState<D, P, V> = {
|
|
654
|
+
definition: D;
|
|
655
|
+
properties: P;
|
|
656
|
+
value: V;
|
|
657
|
+
};
|
|
658
|
+
type TSignaturesData = {
|
|
659
|
+
ajaxUrl: string;
|
|
660
|
+
DownloadLabel: string;
|
|
661
|
+
DownloadToolTip: string;
|
|
662
|
+
docId?: string;
|
|
663
|
+
fldId?: string;
|
|
664
|
+
frmId: number;
|
|
665
|
+
frmParent: string;
|
|
666
|
+
index?: number;
|
|
667
|
+
isDoc?: boolean;
|
|
668
|
+
isField?: boolean;
|
|
669
|
+
noSignaturesLabel: string;
|
|
670
|
+
PKCS7Label: string;
|
|
671
|
+
PKCS7ToolTip: string;
|
|
672
|
+
prefix?: string;
|
|
673
|
+
signatures: ISignatureData[];
|
|
674
|
+
signedByLabel: string;
|
|
675
|
+
signedByToolTip: string;
|
|
676
|
+
signedDateLabel: string;
|
|
677
|
+
signedDateToolTip: string;
|
|
678
|
+
title: string;
|
|
679
|
+
verifyAction: string;
|
|
680
|
+
verifySignLabel: string;
|
|
681
|
+
verifySignToolTip: string;
|
|
682
|
+
};
|
|
683
|
+
interface ISignatureData {
|
|
684
|
+
date: string;
|
|
685
|
+
hasPKCS7: boolean;
|
|
686
|
+
user: string;
|
|
687
|
+
userId: number;
|
|
688
|
+
}
|
|
689
|
+
|
|
855
690
|
/**
|
|
856
691
|
* @public
|
|
857
692
|
*
|
|
@@ -887,45 +722,14 @@ declare class WithProperties<Props extends Record<string, any>> {
|
|
|
887
722
|
setProperty<K extends keyof Props>(propName: K, propValue: SetStateAction<Props[K]>): void;
|
|
888
723
|
}
|
|
889
724
|
|
|
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>> {
|
|
725
|
+
declare class Attribute {
|
|
726
|
+
readonly id: string;
|
|
727
|
+
readonly name: string;
|
|
728
|
+
readonly title: string;
|
|
729
|
+
readonly valueType: TApiaFieldValueType;
|
|
730
|
+
constructor(id: string, name: string, title: string, valueType: TApiaFieldValueType);
|
|
731
|
+
}
|
|
732
|
+
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
733
|
#private;
|
|
930
734
|
protected lastSynchronizationValue: ValueType | null;
|
|
931
735
|
readonly attribute: Attribute;
|
|
@@ -943,91 +747,34 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
943
747
|
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
944
748
|
}
|
|
945
749
|
|
|
946
|
-
type
|
|
947
|
-
|
|
948
|
-
|
|
750
|
+
type TCustomComponentState = {
|
|
751
|
+
isLoading: boolean;
|
|
752
|
+
attributes: Record<string, any[]>;
|
|
753
|
+
properties: Record<string, any>;
|
|
754
|
+
additional: any;
|
|
949
755
|
};
|
|
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> {
|
|
756
|
+
declare class CustomComponent {
|
|
981
757
|
#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>;
|
|
758
|
+
readonly definition: TCustomComponentDefinition;
|
|
759
|
+
form: Form;
|
|
760
|
+
private _state;
|
|
761
|
+
constructor(definition: TCustomComponentDefinition);
|
|
762
|
+
get state(): DeepReadonly<TCustomComponentState>;
|
|
763
|
+
getAdditional<T>(): Readonly<T extends object ? { [K in keyof T]: Readonly<Readonly<T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends object ? { [K_1 in keyof T_1]: Readonly<Readonly<T_1[K_1] extends infer T_2 ? T_2 extends T_1[K_1] ? T_2 extends object ? { [K_2 in keyof T_2]: Readonly<Readonly<T_2[K_2] extends infer T_3 ? T_3 extends T_2[K_2] ? T_3 extends object ? { [K_3 in keyof T_3]: Readonly<Readonly<T_3[K_3] extends infer T_4 ? T_4 extends T_3[K_3] ? T_4 extends object ? { [K_4 in keyof T_4]: Readonly<Readonly<T_4[K_4] extends infer T_5 ? T_5 extends T_4[K_4] ? T_5 extends object ? { [K_5 in keyof T_5]: Readonly<Readonly<T_5[K_5] extends infer T_6 ? T_6 extends T_5[K_5] ? T_6 extends object ? { [K_6 in keyof T_6]: Readonly<Readonly<T_6[K_6] extends infer T_7 ? T_7 extends T_6[K_6] ? T_7 extends object ? { [K_7 in keyof T_7]: Readonly<Readonly<T_7[K_7] extends infer T_8 ? T_8 extends T_7[K_7] ? T_8 extends object ? { [K_8 in keyof T_8]: Readonly<Readonly<T_8[K_8] extends infer T_9 ? T_9 extends T_8[K_8] ? T_9 extends object ? { [K_9 in keyof T_9]: Readonly<Readonly<T_9[K_9] extends infer T_10 ? T_10 extends T_9[K_9] ? T_10 extends object ? { [K_10 in keyof T_10]: Readonly<Readonly<any>>; } : T_10 : never : never>>; } : T_9 : never : never>>; } : T_8 : never : never>>; } : T_7 : never : never>>; } : T_6 : never : never>>; } : T_5 : never : never>>; } : T_4 : never : never>>; } : T_3 : never : never>>; } : T_2 : never : never>>; } : T_1 : never : never>>; } : T>;
|
|
993
764
|
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>;
|
|
765
|
+
private parseStateObject;
|
|
766
|
+
processResult(res?: TCustomComponentDefaultResponse | null): Promise<void>;
|
|
767
|
+
protected getScriptEventParams(fncParams: TFncParams[]): unknown[];
|
|
768
|
+
protected fireScriptEvents(event: ComponentEvent): Promise<boolean>;
|
|
769
|
+
fireEvent(evtName: string): Promise<void>;
|
|
770
|
+
getProperty(prpName: string): any;
|
|
771
|
+
private postMessage;
|
|
772
|
+
setStringValue(attName: string, value: string): Promise<void>;
|
|
773
|
+
getStringValue(attName: string): string;
|
|
774
|
+
getValue(attName: string, index?: number): any;
|
|
775
|
+
setValue(attName: string, value: any, index: number): Promise<void>;
|
|
776
|
+
setProperty(prpName: string, value: any): Promise<void>;
|
|
777
|
+
sendMessage(payload: any): Promise<void>;
|
|
1031
778
|
}
|
|
1032
779
|
|
|
1033
780
|
declare class Form extends WithProperties<TApiaFormProperties> {
|
|
@@ -1044,7 +791,7 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1044
791
|
}>>;
|
|
1045
792
|
protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1046
793
|
protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1047
|
-
protected fieldsGroups: Map<string,
|
|
794
|
+
protected fieldsGroups: Map<string, Grid>;
|
|
1048
795
|
definition: TApiaForm;
|
|
1049
796
|
constructor(definition: TApiaForm);
|
|
1050
797
|
closeForm(): void;
|
|
@@ -1057,20 +804,31 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1057
804
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1058
805
|
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1059
806
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1060
|
-
}> |
|
|
1061
|
-
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1062
|
-
}> | undefined)[] | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
807
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1063
808
|
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1064
809
|
}>[] | undefined;
|
|
1065
|
-
getFieldByAttributeId(attId: string | number, index?: number):
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
definition: Omit<TApiaFieldBaseDefinition<
|
|
1069
|
-
}> |
|
|
810
|
+
getFieldByAttributeId(attId: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
811
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
812
|
+
}> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
813
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
814
|
+
}>[] | undefined;
|
|
815
|
+
getFieldByAttributeName(attName: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
816
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
817
|
+
}> | FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
818
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
819
|
+
}>[] | undefined;
|
|
820
|
+
getFieldById(id: string | number, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
821
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
822
|
+
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1070
823
|
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1071
|
-
}> |
|
|
824
|
+
}> | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
825
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
826
|
+
}>[] | undefined;
|
|
1072
827
|
getFieldByName(name: string): Field | Field[] | undefined;
|
|
1073
828
|
getFieldByName(name: string, index: number): Field | undefined;
|
|
829
|
+
protected getHiddenFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
830
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
831
|
+
}>[];
|
|
1074
832
|
markFormToSign(): Promise<void>;
|
|
1075
833
|
viewSigns(): Promise<TSignaturesData | undefined>;
|
|
1076
834
|
private cucCmpByAttId;
|
|
@@ -1087,34 +845,69 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1087
845
|
validate(): Promise<true | Field>;
|
|
1088
846
|
}
|
|
1089
847
|
|
|
1090
|
-
type
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
additional: any;
|
|
848
|
+
type TFncParams = {
|
|
849
|
+
type: 'V' | 'P' | 'E';
|
|
850
|
+
value?: string;
|
|
851
|
+
attId?: string | number;
|
|
1095
852
|
};
|
|
1096
|
-
declare class
|
|
853
|
+
declare abstract class Field<FieldProps extends TApiaFieldCommonProperties = TApiaFieldCommonProperties, FieldDefinition extends TApiaFieldBaseDefinition<FieldProps> = TApiaFieldBaseDefinition<FieldProps>, State extends {
|
|
854
|
+
definition: Omit<FieldDefinition, 'properties'>;
|
|
855
|
+
} = {
|
|
856
|
+
definition: Omit<FieldDefinition, 'properties'>;
|
|
857
|
+
}> extends WithProperties<FieldProps> {
|
|
1097
858
|
#private;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
859
|
+
protected form: Form;
|
|
860
|
+
definition: State['definition'];
|
|
861
|
+
state: Omit<State, 'definition'> & {
|
|
862
|
+
validation: FieldValidationState;
|
|
863
|
+
};
|
|
864
|
+
constructor({ properties, ...definition }: FieldDefinition);
|
|
865
|
+
protected getScriptEventParams(fncParams: TFncParams[]): Promise<unknown[]>;
|
|
866
|
+
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
867
|
+
protected fireScriptEvent(eventName: string): Promise<boolean>;
|
|
868
|
+
protected fireAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
869
|
+
protected fireNoAjaxServerEvent(event: TFieldServerEvent, params?: FireEventParameters): Promise<boolean>;
|
|
870
|
+
protected fireServerEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
871
|
+
fireEvent(eventName: string, params?: FireEventParameters): Promise<boolean>;
|
|
872
|
+
getForm(): Form;
|
|
873
|
+
protected hasEventsOfType(eventName: string): TFieldScriptEvent | TFieldServerEvent | undefined;
|
|
874
|
+
protected hasServerAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
875
|
+
protected hasServerNoAjaxEventsOfType(eventName: string): TFieldServerEvent | undefined;
|
|
1104
876
|
init(form: Form): Promise<void>;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
877
|
+
validate(): Promise<boolean | Field>;
|
|
878
|
+
markAsRendered(): void;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
type ButtonEvents = 'onClick';
|
|
882
|
+
declare class Button extends Field<TApiaButtonProperties> {
|
|
883
|
+
fireEvent(eventName: ButtonEvents): Promise<boolean>;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
declare class Captcha extends Field<TApiaCaptchaProperties, TApiaFieldBaseDefinition<TApiaCaptchaProperties>, {
|
|
887
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaCaptchaProperties>, 'properties'>;
|
|
888
|
+
value: string;
|
|
889
|
+
url: string;
|
|
890
|
+
}> {
|
|
891
|
+
private static emitter;
|
|
892
|
+
static reload(): void;
|
|
893
|
+
private id;
|
|
894
|
+
private static confirmParams;
|
|
895
|
+
static getConfirmParams(): Record<string, string>;
|
|
896
|
+
constructor(definition: TApiaCaptchaProperties);
|
|
897
|
+
init(form: Form): Promise<void>;
|
|
898
|
+
private getCaptchaId;
|
|
899
|
+
getUrl(): string;
|
|
900
|
+
generateImgUrl(): void;
|
|
901
|
+
generateVoiceUrl(): string;
|
|
902
|
+
getId(): string;
|
|
903
|
+
setValue(value: string): void;
|
|
904
|
+
validate(): Promise<boolean>;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
type CheckboxEvents = 'onClick';
|
|
908
|
+
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
909
|
+
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
910
|
+
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): boolean;
|
|
1118
911
|
}
|
|
1119
912
|
|
|
1120
913
|
type TTranslationState = {
|
|
@@ -1160,101 +953,10 @@ declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFie
|
|
|
1160
953
|
validate(): Promise<boolean>;
|
|
1161
954
|
}
|
|
1162
955
|
|
|
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
|
-
};
|
|
956
|
+
type EditorEvents = 'onChange';
|
|
957
|
+
declare class Editor extends TranslatableField<TApiaEditorProperties, string> {
|
|
958
|
+
fireEvent(eventName: EditorEvents): Promise<boolean>;
|
|
959
|
+
}
|
|
1258
960
|
|
|
1259
961
|
type NotificationIcon = string;
|
|
1260
962
|
type NotificationType = 'info' | 'error' | 'success' | 'warning';
|
|
@@ -1301,7 +1003,16 @@ declare class UploaderApi {
|
|
|
1301
1003
|
get filesArray(): TUploaderFileInfo[];
|
|
1302
1004
|
constructor(id: string, type: 'E' | 'P', modalConfig: TModalConfig);
|
|
1303
1005
|
onInit(): Promise<void>;
|
|
1304
|
-
onStartUpload(): Promise<void>;
|
|
1006
|
+
onStartUpload(files?: File[]): Promise<void>;
|
|
1007
|
+
onTranslateUpload(conf: {
|
|
1008
|
+
langId: number;
|
|
1009
|
+
translatingFile: TUploaderFileInfo;
|
|
1010
|
+
}): Promise<void>;
|
|
1011
|
+
onVersionUpload(file: TUploaderFileInfo, conf?: {
|
|
1012
|
+
newFiles?: File[];
|
|
1013
|
+
langId?: number;
|
|
1014
|
+
translatingFile?: TUploaderFileInfo;
|
|
1015
|
+
}): Promise<void>;
|
|
1305
1016
|
autoLock(): Promise<boolean>;
|
|
1306
1017
|
notify(notification: NotificationDefinition): void;
|
|
1307
1018
|
protected getAjaxUrl(): string;
|
|
@@ -1346,10 +1057,14 @@ declare class UploaderApi {
|
|
|
1346
1057
|
};
|
|
1347
1058
|
} & _apia_notifications.TNotificationMessage) | null>;
|
|
1348
1059
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1060
|
+
* This method searches for the provided id in several places:
|
|
1061
|
+
*
|
|
1062
|
+
* If it's found in the current files, returns it.
|
|
1063
|
+
* If not, it searches the provided docId in the translations map of each uploaded file.
|
|
1351
1064
|
*/
|
|
1352
|
-
|
|
1065
|
+
getDocument(docId: string): TUploaderFileInfo | undefined;
|
|
1066
|
+
protected updateDocument(docId: string, newValue: TUploaderFileInfo): void;
|
|
1067
|
+
protected deleteDocument(docId: string): void;
|
|
1353
1068
|
clearFile(name: string): void;
|
|
1354
1069
|
clearFiles(): void;
|
|
1355
1070
|
clearState(): void;
|
|
@@ -1360,14 +1075,21 @@ declare class UploaderApi {
|
|
|
1360
1075
|
docId: string;
|
|
1361
1076
|
docTypeId: number | string;
|
|
1362
1077
|
}>, additionalProps?: Record<string, unknown>): Promise<void>;
|
|
1363
|
-
|
|
1078
|
+
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<void>;
|
|
1364
1079
|
checkWebDavLock(docId: string): Promise<unknown>;
|
|
1365
1080
|
checkSignature(file: TUploaderFileInfo): Promise<_apia_api.TApiaApiAxiosResponse<({
|
|
1366
1081
|
markedToSign: boolean;
|
|
1367
1082
|
} & _apia_notifications.TNotificationMessage) | null> | null>;
|
|
1368
1083
|
editDocument(id: string): Promise<void>;
|
|
1369
1084
|
downloadDocument(id: string, version?: string): Promise<void>;
|
|
1370
|
-
|
|
1085
|
+
ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
|
|
1086
|
+
version(file: TUploaderFileInfo, conf?: {
|
|
1087
|
+
newFiles?: File[];
|
|
1088
|
+
langId?: number;
|
|
1089
|
+
translatingFile?: TUploaderFileInfo;
|
|
1090
|
+
}): Promise<void>;
|
|
1091
|
+
versionFileInfo(file: TUploaderFileInfo): Promise<void>;
|
|
1092
|
+
pickFileById(id: string): Promise<void>;
|
|
1371
1093
|
markFileToSign(id: string, langId?: number): Promise<void>;
|
|
1372
1094
|
/**
|
|
1373
1095
|
* Por el momento realiza la descarga de todos los archivos
|
|
@@ -1381,7 +1103,7 @@ declare class UploaderApi {
|
|
|
1381
1103
|
loadCurrentDocuments(): Promise<void>;
|
|
1382
1104
|
lockDocument(id: string): Promise<void>;
|
|
1383
1105
|
protected evaluateDeleteDocumentResult(result: unknown): boolean;
|
|
1384
|
-
|
|
1106
|
+
setTranslationFile(file: TUploaderFileInfo, docId: string, langId: number): void;
|
|
1385
1107
|
protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
|
|
1386
1108
|
protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
|
|
1387
1109
|
protected getConfirmDropModalParameters: 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 | undefined;
|
|
1152
|
+
translatingFile?: TUploaderFileInfo | undefined;
|
|
1153
|
+
versionFile?: TUploaderFileInfo | undefined;
|
|
1154
|
+
} | undefined;
|
|
1427
1155
|
state: UploaderModalState;
|
|
1428
|
-
constructor(api: UploaderApi, modalConfig: TModalConfig
|
|
1156
|
+
constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
|
|
1157
|
+
langId?: number | undefined;
|
|
1158
|
+
translatingFile?: TUploaderFileInfo | undefined;
|
|
1159
|
+
versionFile?: TUploaderFileInfo | undefined;
|
|
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,980 @@ 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;
|
|
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;
|
|
1806
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<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
|
-
|
|
1991
|
-
|
|
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<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1744
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1745
|
+
}>;
|
|
2001
1746
|
}
|
|
2002
1747
|
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1748
|
+
declare class HeaderCell extends Cell {
|
|
1749
|
+
fireSelectionEvent: () => unknown;
|
|
1750
|
+
constructor(state: CellState, fireSelectionEvent: () => unknown);
|
|
2006
1751
|
}
|
|
2007
1752
|
|
|
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>;
|
|
1753
|
+
declare class Hidden extends FieldWithAttribute<TApiaHiddenProperties> {
|
|
2027
1754
|
}
|
|
2028
1755
|
|
|
2029
|
-
|
|
2030
|
-
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
2031
|
-
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
2032
|
-
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): boolean;
|
|
1756
|
+
declare class Image extends Field<TApiaImageProperties> {
|
|
2033
1757
|
}
|
|
2034
1758
|
|
|
2035
|
-
type
|
|
2036
|
-
declare class
|
|
2037
|
-
fireEvent(eventName:
|
|
1759
|
+
type InputEvents$1 = 'onChange' | 'onModalReturn';
|
|
1760
|
+
declare class Input<ValueType = any> extends TranslatableField<TApiaInputProperties, ValueType, TApiaInputDefinition> {
|
|
1761
|
+
fireEvent(eventName: InputEvents$1): Promise<boolean>;
|
|
1762
|
+
setValue(newValue: ValueType, options?: SetValueOptions): Promise<boolean>;
|
|
1763
|
+
private validateRegex;
|
|
1764
|
+
validate(): Promise<boolean>;
|
|
2038
1765
|
}
|
|
2039
1766
|
|
|
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
|
-
};
|
|
1767
|
+
declare class Label extends Field<TApiaLabelProperties> {
|
|
2048
1768
|
}
|
|
2049
1769
|
|
|
2050
|
-
declare class
|
|
2051
|
-
uploader: FileUploaderApi;
|
|
2052
|
-
init(form: Form): Promise<void>;
|
|
1770
|
+
declare class Link extends Field<TApiaLinkProperties> {
|
|
2053
1771
|
}
|
|
2054
1772
|
|
|
2055
|
-
type
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
1773
|
+
type TApiaModalInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputProperties> & {
|
|
1774
|
+
alwaysShowMask?: boolean;
|
|
1775
|
+
cantDecimals?: string;
|
|
1776
|
+
decimalZeroes?: string;
|
|
1777
|
+
fieldType: 'input';
|
|
1778
|
+
isoDateValue?: string;
|
|
1779
|
+
length?: number;
|
|
1780
|
+
mask?: string;
|
|
1781
|
+
maskPlaceholder?: string;
|
|
1782
|
+
regExp?: string;
|
|
1783
|
+
qryId?: string;
|
|
1784
|
+
qry_show_value?: string;
|
|
1785
|
+
value: {
|
|
1786
|
+
showValue: string;
|
|
1787
|
+
storeValue?: string;
|
|
1788
|
+
};
|
|
1789
|
+
valueType?: 'D';
|
|
2059
1790
|
};
|
|
2060
|
-
declare class GridFooterHandler {
|
|
2061
|
-
#private;
|
|
2062
|
-
private grid;
|
|
2063
|
-
state: GridFooterHandlerState;
|
|
2064
|
-
constructor(grid: IGrid);
|
|
2065
|
-
private init;
|
|
2066
|
-
get showAddButton(): boolean;
|
|
2067
|
-
get showDelButton(): boolean;
|
|
2068
|
-
get showSortButtons(): boolean;
|
|
2069
|
-
get isSortUpDisabled(): boolean;
|
|
2070
|
-
get isSortDownDisabled(): boolean;
|
|
2071
|
-
get isAddDisabled(): boolean;
|
|
2072
|
-
get isDeleteDisabled(): boolean;
|
|
2073
|
-
private runBlockingCode;
|
|
2074
|
-
sortUp(): Promise<void>;
|
|
2075
|
-
sortDown(): Promise<void>;
|
|
2076
|
-
addRow(): Promise<void>;
|
|
2077
|
-
deleteSelectedRows(index?: number): Promise<void>;
|
|
2078
|
-
}
|
|
2079
1791
|
|
|
2080
|
-
type
|
|
2081
|
-
type
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
title: string;
|
|
2085
|
-
width: string;
|
|
2086
|
-
};
|
|
2087
|
-
type GridProps = FieldWithIndexedFieldsProps & TApiaGridProperties & {
|
|
2088
|
-
/**
|
|
2089
|
-
* Mostrar u ocultar columnas de la grilla
|
|
2090
|
-
*/
|
|
2091
|
-
shownColumns: Map<string | number, boolean>;
|
|
2092
|
-
/**
|
|
2093
|
-
* Mostrar u ocultar botones de eliminar específicos según fila
|
|
2094
|
-
*/
|
|
2095
|
-
shownDeleteButtons: Map<string | number, boolean>;
|
|
2096
|
-
/**
|
|
2097
|
-
* Mostrar u ocultar botones de edición específicos según fila
|
|
2098
|
-
*/
|
|
2099
|
-
shownEditionButtons: Map<string | number, boolean>;
|
|
1792
|
+
type InputEvents = 'onChange' | 'onModalReturn';
|
|
1793
|
+
type ModalInputValue = {
|
|
1794
|
+
showValue: string;
|
|
1795
|
+
storeValue?: string;
|
|
2100
1796
|
};
|
|
2101
|
-
|
|
2102
|
-
definition:
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
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>;
|
|
1797
|
+
declare class ModalInput extends FieldWithAttribute<TApiaInputProperties, ModalInputValue> {
|
|
1798
|
+
constructor({ value, ...definition }: TApiaModalInputDefinition);
|
|
1799
|
+
fireEvent(eventName: InputEvents): Promise<boolean>;
|
|
1800
|
+
setValue(newValue: Required<ModalInputValue>, options?: Partial<{
|
|
1801
|
+
comparator: Comparator<any>;
|
|
1802
|
+
synchronize: boolean;
|
|
1803
|
+
}> | undefined): Promise<boolean>;
|
|
1804
|
+
setValueFromModalSelection(rowId: string): Promise<void>;
|
|
1805
|
+
validate(): Promise<boolean>;
|
|
1806
|
+
protected getSynchronizePostConfiguration(value: ModalInputValue): IApiaApiPostConfig<any>;
|
|
2135
1807
|
}
|
|
2136
1808
|
|
|
2137
|
-
declare class
|
|
2138
|
-
definition:
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
2149
|
-
private footerHandler;
|
|
2150
|
-
private initHeadersSizes;
|
|
1809
|
+
declare class Multiple extends FieldWithAttribute<TApiaMultipleProperties, Record<number, string>> {
|
|
1810
|
+
constructor({ possibleValue, value, ...definition }: TApiaMultipleDefinition);
|
|
1811
|
+
validate(): Promise<boolean>;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
declare class Password extends FieldWithAttribute<TApiaPasswordProperties, string> {
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
type RadioEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
1818
|
+
declare class Radio extends FieldWithAttribute<TApiaRadioProperties, number | string, TApiaRadioButtonDefinition> {
|
|
1819
|
+
constructor({ possibleValue, ...definition }: TApiaRadioButtonDefinition);
|
|
2151
1820
|
init(form: Form): Promise<void>;
|
|
2152
|
-
|
|
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;
|
|
1821
|
+
fireEvent(eventName: RadioEvents): Promise<boolean>;
|
|
2197
1822
|
}
|
|
2198
1823
|
|
|
2199
|
-
declare class
|
|
1824
|
+
declare class Select extends FieldWithAttribute<TApiaSelectProperties, string, TApiaSelectDefinition> {
|
|
1825
|
+
constructor({ possibleValue, ...definition }: TApiaSelectDefinition);
|
|
1826
|
+
protected getInitialValue({ properties: { possibleValue }, value, }: TApiaFieldWithAttributeBaseProps<TApiaSelectProperties>): string;
|
|
2200
1827
|
}
|
|
2201
1828
|
|
|
2202
|
-
declare class
|
|
1829
|
+
declare class Textarea extends TranslatableField<TApiaTextareaProperties, string> {
|
|
2203
1830
|
}
|
|
2204
1831
|
|
|
2205
|
-
|
|
2206
|
-
declare class Input<ValueType = any> extends TranslatableField<TApiaInputProperties, ValueType, TApiaInputDefinition> {
|
|
2207
|
-
fireEvent(eventName: InputEvents$1): Promise<boolean>;
|
|
2208
|
-
setValue(newValue: ValueType, options?: SetValueOptions): Promise<boolean>;
|
|
2209
|
-
private validateRegex;
|
|
2210
|
-
validate(): Promise<boolean>;
|
|
1832
|
+
declare class Title extends Field<TApiaTitleProperties> {
|
|
2211
1833
|
}
|
|
2212
1834
|
|
|
2213
|
-
|
|
1835
|
+
type TTreeValue = string | number;
|
|
1836
|
+
type TreeEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
1837
|
+
declare class Tree extends FieldWithAttribute<TApiaTreeProperties, TTreeValue | TTreeValue[], TApiaTreeDefinition> {
|
|
1838
|
+
private treeNodes;
|
|
1839
|
+
constructor({ possibleValue, ...props }: TApiaTreeDefinition);
|
|
1840
|
+
getPossibleValues(): TApiaTreePossibleValue[];
|
|
1841
|
+
onPossibleValuesChange: (cb: Callback<{
|
|
1842
|
+
nodesList: TApiaTreePossibleValue[];
|
|
1843
|
+
}, "nodesList">) => UnSubscriber;
|
|
1844
|
+
protected getSynchronizePostConfiguration(value: TTreeValue | TTreeValue[]): IApiaApiPostConfig<any>;
|
|
1845
|
+
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
2214
1846
|
}
|
|
2215
1847
|
|
|
2216
|
-
declare
|
|
1848
|
+
declare const IProperty: {
|
|
1849
|
+
readonly FUNC_LOAD: "onload";
|
|
1850
|
+
readonly FUNC_RELOAD: "onreload";
|
|
1851
|
+
readonly PROPERTY_FORM_INVISIBLE: "frmInvisible";
|
|
1852
|
+
readonly PROPERTY_FORM_HIDDEN: "frmHidden";
|
|
1853
|
+
readonly PROPERTY_FORM_CLOSED: "prpFrmClosed";
|
|
1854
|
+
readonly PROPERTY_FORM_TAB: "frmTab";
|
|
1855
|
+
readonly PROPERTY_FORM_HIGHLIGHT: "frmHighlight";
|
|
1856
|
+
readonly PROPERTY_FORM_DONT_FIRE: "frmDontFire";
|
|
1857
|
+
readonly PROPERTY_FORM_READONLY: "readOnly";
|
|
1858
|
+
readonly SIGNABLE_FORM: "signableForm";
|
|
1859
|
+
readonly MARKED_TO_SIGN: "markedToSign";
|
|
1860
|
+
readonly REQUIRED_SIGN: "requiredSignableForm";
|
|
1861
|
+
readonly LANGUAGES: "langs";
|
|
1862
|
+
readonly TYPE_INPUT: "input";
|
|
1863
|
+
readonly TYPE_SELECT: "select";
|
|
1864
|
+
readonly TYPE_RADIO: "radio";
|
|
1865
|
+
readonly TYPE_CHECK: "check";
|
|
1866
|
+
readonly TYPE_BUTTON: "button";
|
|
1867
|
+
readonly TYPE_AREA: "area";
|
|
1868
|
+
readonly TYPE_LABEL: "label";
|
|
1869
|
+
readonly TYPE_TITLE: "title";
|
|
1870
|
+
readonly TYPE_FILE: "file";
|
|
1871
|
+
readonly TYPE_MULTIPLE: "multiple";
|
|
1872
|
+
readonly TYPE_HIDDEN: "hidden";
|
|
1873
|
+
readonly TYPE_PASSWORD: "password";
|
|
1874
|
+
readonly TYPE_GRID: "grid";
|
|
1875
|
+
readonly TYPE_IMAGE: "image";
|
|
1876
|
+
readonly TYPE_HREF: "href";
|
|
1877
|
+
readonly TYPE_EDITOR: "editor";
|
|
1878
|
+
readonly TYPE_TREE: "tree";
|
|
1879
|
+
readonly TYPE_CAPTCHA: "captcha";
|
|
1880
|
+
readonly FUNC_CLICK: "onclick";
|
|
1881
|
+
readonly FUNC_CHANGE: "onchange";
|
|
1882
|
+
readonly FUNC_MODAL_RETURN: "onmodalreturn";
|
|
1883
|
+
readonly FUNC_ROW_ADD: "onrowadd";
|
|
1884
|
+
readonly FUNC_ROW_DELETE: "onrowdelete";
|
|
1885
|
+
readonly FUNC_ROW_SORT: "onrowsort";
|
|
1886
|
+
readonly FUNC_COL_SELECT: "oncolselect";
|
|
1887
|
+
readonly FIELD_PROPERTIES: "properties";
|
|
1888
|
+
readonly PROPERTY_NAME: "name";
|
|
1889
|
+
readonly PROPERTY_SIZE: "size";
|
|
1890
|
+
readonly PROPERTY_READONLY: "readonly";
|
|
1891
|
+
readonly PROPERTY_DISABLED: "disabled";
|
|
1892
|
+
readonly PROPERTY_MODAL_DISABLED: "modalDisabled";
|
|
1893
|
+
readonly PROPERTY_FONT_COLOR: "fontColor";
|
|
1894
|
+
readonly PROPERTY_VALUE: "value";
|
|
1895
|
+
readonly PROPERTY_REQUIRED: "required";
|
|
1896
|
+
readonly PROPERTY_COLSPAN: "colspan";
|
|
1897
|
+
readonly PROPERTY_ROWSPAN: "rowspan";
|
|
1898
|
+
readonly PROPERTY_MODAL: "modal";
|
|
1899
|
+
readonly PROPERTY_ROWS: "thisRows";
|
|
1900
|
+
readonly PROPERTY_BOLD: "bold";
|
|
1901
|
+
readonly PROPERTY_UNDERLINED: "underlined";
|
|
1902
|
+
readonly PROPERTY_ALIGNMENT: "alignment";
|
|
1903
|
+
readonly PROPERTY_IMAGE: "imageUrl";
|
|
1904
|
+
readonly PROPERTY_COL_WIDTH: "colWidth";
|
|
1905
|
+
readonly PROPERTY_GRID_HEIGHT: "gridHeight";
|
|
1906
|
+
readonly PROPERTY_HIDE_GRID_BTN: "hideGridButtons";
|
|
1907
|
+
readonly PROPERTY_VISIBILITY_HIDDEN: "visibilityHidden";
|
|
1908
|
+
readonly PROPERTY_TRANSIENT: "transient";
|
|
1909
|
+
readonly PROPERTY_GRID_TITLE: "gridTitle";
|
|
1910
|
+
readonly PROPERTY_GRID_FORM: "gridForm";
|
|
1911
|
+
readonly PROPERTY_TOOLTIP: "tooltip";
|
|
1912
|
+
readonly PROPERTY_VALUE_COLOR: "valueColor";
|
|
1913
|
+
readonly PROPERTY_INPUT_AS_TEXT: "inputAsText";
|
|
1914
|
+
readonly PROPERTY_NO_DOWNLOAD: "noDownload";
|
|
1915
|
+
readonly PROPERTY_NO_ERASE: "noErase";
|
|
1916
|
+
readonly PROPERTY_NO_LOCK: "noLock";
|
|
1917
|
+
readonly PROPERTY_NO_HISTORY: "noHistory";
|
|
1918
|
+
readonly PROPERTY_NO_MODIFY: "noModify";
|
|
1919
|
+
readonly PROPERTY_ALLOW_EDITION: "allowEdition";
|
|
1920
|
+
readonly PROPERTY_HIDE_SIGN_ICONS: "hideSignButtons";
|
|
1921
|
+
readonly PROPERTY_URL: "url";
|
|
1922
|
+
readonly PROPERTY_GRID_HIDE_BTN_ORDER: "hideOrderButton";
|
|
1923
|
+
readonly PROPERTY_GRID_HIDE_BTN_INCLUDE: "hideIncludeButton";
|
|
1924
|
+
readonly PROPERTY_REGEXP_MESSAGE: "regExpMessage";
|
|
1925
|
+
readonly PROPERTY_PAGED_GRID: "paged";
|
|
1926
|
+
readonly PROPERTY_PAGED_GRID_SIZE: "pagedGridSize";
|
|
1927
|
+
readonly PROPERTY_GRID_ALTER_IN_LAST_PAGE: "alterOnlyLastPage";
|
|
1928
|
+
readonly PROPERTY_GRID_PRINT_HORIZONTAL: "printHorizontal";
|
|
1929
|
+
readonly PROPERTY_STORE_MODAL_QUERY_RESULT: "storeMdlQryResult";
|
|
1930
|
+
readonly PROPERTY_INCLUDE_FIRST_ROW: "includeFirstRow";
|
|
1931
|
+
readonly PROPERTY_MAX_REG_GRID: "maxRecords";
|
|
1932
|
+
readonly PROPERTY_GRID_LABEL: "gridColTitle";
|
|
1933
|
+
readonly PROPERTY_GRID_QUERY: "gridQuery";
|
|
1934
|
+
readonly PROPERTY_HIDE_DOC_PERMISSIONS: "hideDocPermissions";
|
|
1935
|
+
readonly PROPERTY_VERIFY_SIGNATURE_ONLY: "verifySignatureOnly";
|
|
1936
|
+
readonly PROPERTY_GRID_HIDE_BTN_ADD: "hideAddButton";
|
|
1937
|
+
readonly PROPERTY_GRID_HIDE_BTN_DEL: "hideDelButton";
|
|
1938
|
+
readonly PROPERTY_HIDE_DOC_UPLOAD: "hideDocUpload";
|
|
1939
|
+
readonly PROPERTY_HIDE_DOC_DOWNLOAD: "hideDocDownload";
|
|
1940
|
+
readonly PROPERTY_HIDE_DOC_ERASE: "hideDocErase";
|
|
1941
|
+
readonly PROPERTY_HIDE_DOC_LOCK: "hideDocLock";
|
|
1942
|
+
readonly PROPERTY_HIDE_DOC_HISTORY: "hideDocHistory";
|
|
1943
|
+
readonly PROPERTY_HIDE_DOC_SIGN: "hideSignButtons";
|
|
1944
|
+
readonly PROPERTY_DISPLAY_NONE: "displayNone";
|
|
1945
|
+
readonly PROPERTY_DONT_BREAK_RADIO: "dontBreakRadio";
|
|
1946
|
+
readonly PROPERTY_CHECKED: "checked";
|
|
1947
|
+
readonly PROPERTY_FILE_PREVIEW: "filePreview";
|
|
1948
|
+
readonly PROPERTY_NOT_PRINT: "noPrint";
|
|
1949
|
+
readonly PROPERTY_SELECT_PARENT: "selParent";
|
|
1950
|
+
readonly PROPERTY_HEIGHT: "height";
|
|
1951
|
+
readonly PROPERTY_MULTISELECT: "multiselect";
|
|
1952
|
+
readonly PROPERTY_SEL_PARENT: "selParent";
|
|
1953
|
+
readonly PROPERTY_PARENT_ICON: "parentIcon";
|
|
1954
|
+
readonly PROPERTY_LEAF_ICON: "leafIcon";
|
|
1955
|
+
readonly PROPERTY_CSS_CLASS: "cssClass";
|
|
1956
|
+
readonly PROPERTY_DOC_TYPE: "docType";
|
|
1957
|
+
readonly PROPERTY_HIDE_DOC_METADATA: "hideDocMetadata";
|
|
1958
|
+
readonly PROPERTY_TRANSLATION_REQUIRED: "reqTrad";
|
|
1959
|
+
readonly PROPERTY_SIGNATURE_REQUIRED: "reqSign";
|
|
1960
|
+
readonly PROPERTY_SHOW_TOOLTIP_AS_HELP: "tooltipHelp";
|
|
1961
|
+
readonly PROPERTY_DOCUMENT_MONITOR_DEF: "documentMonitorDef";
|
|
1962
|
+
readonly PROPERTY_DOCUMENT_MONITOR_CUS: "documentMonitorCus";
|
|
1963
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_BTN: "fileShwFoldTreeBtn";
|
|
1964
|
+
readonly PROPERTY_DOCUMENT_SHOW_FOLD_TREE_STR: "fileShwFoldTreeStr";
|
|
1965
|
+
readonly PROPERTY_DOCUMENT_NO_ALLOW_DRAG_DROP: "fileNoAllwDnD";
|
|
1966
|
+
readonly PROPERTY_DOCUMENT_NO_SHOW_MODAL: "fileDntShwDocMdlOnDrop";
|
|
1967
|
+
readonly PROPERTY_DOCUMENT_SHOW_DESC: "fileShowDesc";
|
|
1968
|
+
readonly PROPERTY_DOCUMENT_DEFAULT_FOLDER: "fileDefFolder";
|
|
1969
|
+
readonly PROPERTY_DOCUMENT_ROOT_FOLDER: "fileRootFolder";
|
|
1970
|
+
readonly PROPERTY_DOCUMENT_EXP_DATE: "fileExpDate";
|
|
1971
|
+
readonly PROPERTY_DOCUMENT_DNT_SHW_DOC_MON: "fileNotShowDocMon";
|
|
1972
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_PERM: "fileCollapsePermission";
|
|
1973
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_META: "fileCollapseMetadata";
|
|
1974
|
+
readonly PROPERTY_DOCUMENT_COLLAPSE_FLD_STC: "fileCollapseFldStrc";
|
|
1975
|
+
readonly WRONG_ATT_TYPE_ERROR: "Component does not support attributes of type <TOK>. Contact system administrator";
|
|
1976
|
+
readonly STORE_KEY_FIELD: "field";
|
|
1977
|
+
readonly STORE_KEY_FORM: "form";
|
|
1978
|
+
readonly PROPERTY_ARIA_DESCRIPTION: "ariaDescription";
|
|
1979
|
+
readonly PROPERTY_ARIA_LABEL: "ariaLabel";
|
|
1980
|
+
readonly PROPERTY_ALT: "alt";
|
|
1981
|
+
readonly PROPERTY_AUTO_COMPLETE: "autoComplete";
|
|
1982
|
+
readonly PROPERTY_AUTO_FOCUS: "autoFocus";
|
|
1983
|
+
readonly PROPERTY_INPUT_TYPE: "inputType";
|
|
1984
|
+
readonly PROPERTY_PLACE_HOLDER: "placeHolder";
|
|
1985
|
+
readonly PROPERTY_TITLE: "title";
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
|
|
1989
|
+
type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
|
|
1990
|
+
|
|
1991
|
+
type TProcess = {
|
|
1992
|
+
calendar: {
|
|
1993
|
+
fixed: boolean;
|
|
1994
|
+
label: string;
|
|
1995
|
+
name: string;
|
|
1996
|
+
options: {
|
|
1997
|
+
label: string;
|
|
1998
|
+
value: string;
|
|
1999
|
+
selected: boolean;
|
|
2000
|
+
}[];
|
|
2001
|
+
toolTip: string;
|
|
2002
|
+
value: string;
|
|
2003
|
+
viewButton: {
|
|
2004
|
+
label: string;
|
|
2005
|
+
toolTip: string;
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
comments: {
|
|
2009
|
+
currentComment: string;
|
|
2010
|
+
addMarker: boolean;
|
|
2011
|
+
markAll: boolean;
|
|
2012
|
+
deleteMarker: boolean;
|
|
2013
|
+
history: {
|
|
2014
|
+
comment: string;
|
|
2015
|
+
marked: boolean;
|
|
2016
|
+
date: string;
|
|
2017
|
+
user: string;
|
|
2018
|
+
}[];
|
|
2019
|
+
};
|
|
2020
|
+
identifier: {
|
|
2021
|
+
body: {
|
|
2022
|
+
name: string;
|
|
2023
|
+
required: boolean;
|
|
2024
|
+
toolTip: string;
|
|
2025
|
+
type: 'fixed' | 'custom';
|
|
2026
|
+
value: string;
|
|
2027
|
+
};
|
|
2028
|
+
label: string;
|
|
2029
|
+
prefix: {
|
|
2030
|
+
label: string;
|
|
2031
|
+
name: string;
|
|
2032
|
+
toolTip: string;
|
|
2033
|
+
type: 'fixed' | 'custom' | 'none';
|
|
2034
|
+
value: string;
|
|
2035
|
+
};
|
|
2036
|
+
required: boolean;
|
|
2037
|
+
suffix: {
|
|
2038
|
+
label: string;
|
|
2039
|
+
name: string;
|
|
2040
|
+
toolTip: string;
|
|
2041
|
+
type: 'fixed' | 'custom' | 'none';
|
|
2042
|
+
value: string;
|
|
2043
|
+
};
|
|
2044
|
+
toolTip: string;
|
|
2045
|
+
value: string;
|
|
2046
|
+
};
|
|
2047
|
+
priority: {
|
|
2048
|
+
disabled: boolean;
|
|
2049
|
+
isMonitor: boolean;
|
|
2050
|
+
label: string;
|
|
2051
|
+
name: string;
|
|
2052
|
+
options: {
|
|
2053
|
+
label: string;
|
|
2054
|
+
value: string;
|
|
2055
|
+
selected: boolean;
|
|
2056
|
+
}[];
|
|
2057
|
+
toolTip: string;
|
|
2058
|
+
value: string;
|
|
2059
|
+
};
|
|
2060
|
+
process: {
|
|
2061
|
+
label: string;
|
|
2062
|
+
toolTip: string;
|
|
2063
|
+
value: string;
|
|
2064
|
+
};
|
|
2065
|
+
processAction: {
|
|
2066
|
+
label: string;
|
|
2067
|
+
toolTip: string;
|
|
2068
|
+
value: string;
|
|
2069
|
+
};
|
|
2070
|
+
separator: string;
|
|
2071
|
+
status?: {
|
|
2072
|
+
label: string;
|
|
2073
|
+
toolTip: string;
|
|
2074
|
+
value: string;
|
|
2075
|
+
};
|
|
2076
|
+
title: string;
|
|
2077
|
+
user: {
|
|
2078
|
+
label: string;
|
|
2079
|
+
toolTIp: string;
|
|
2080
|
+
value: string;
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
declare class Process {
|
|
2085
|
+
state: TProcess | null;
|
|
2086
|
+
uploader: UploaderApi;
|
|
2087
|
+
constructor();
|
|
2088
|
+
get name(): string | undefined;
|
|
2089
|
+
init(): Promise<void>;
|
|
2090
|
+
getConfirmParams(): {
|
|
2091
|
+
cmbProPri: string | undefined;
|
|
2092
|
+
selCal: string | undefined;
|
|
2093
|
+
};
|
|
2094
|
+
setPriority(newPriority: string): void;
|
|
2217
2095
|
}
|
|
2218
2096
|
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2097
|
+
declare class Task {
|
|
2098
|
+
#private;
|
|
2099
|
+
constructor(task: any);
|
|
2100
|
+
setPriority(newPriority: string): void;
|
|
2101
|
+
get name(): string;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
type TEntity = {
|
|
2105
|
+
title: string;
|
|
2106
|
+
readOnly: boolean;
|
|
2107
|
+
separator: string;
|
|
2108
|
+
associations: {
|
|
2109
|
+
nameValue: string;
|
|
2110
|
+
};
|
|
2111
|
+
date: {
|
|
2112
|
+
label: string;
|
|
2113
|
+
toolTip: string;
|
|
2114
|
+
value: string;
|
|
2115
|
+
};
|
|
2116
|
+
entityType: {
|
|
2117
|
+
label: string;
|
|
2118
|
+
toolTip: string;
|
|
2119
|
+
value: string;
|
|
2120
|
+
};
|
|
2121
|
+
identifier: {
|
|
2122
|
+
label: string;
|
|
2123
|
+
toolTip: string;
|
|
2124
|
+
value?: string;
|
|
2125
|
+
prefix?: {
|
|
2126
|
+
name: string;
|
|
2127
|
+
type: 'custom' | 'fixed' | 'none';
|
|
2128
|
+
label?: string;
|
|
2129
|
+
toolTip?: string;
|
|
2130
|
+
value?: string;
|
|
2131
|
+
};
|
|
2132
|
+
body: {
|
|
2133
|
+
type: 'autogenerated' | 'sameAsProcess';
|
|
2134
|
+
label: string;
|
|
2135
|
+
name?: string;
|
|
2136
|
+
toolTip?: string;
|
|
2137
|
+
value?: string;
|
|
2138
|
+
required?: false;
|
|
2139
|
+
} | {
|
|
2140
|
+
label: string;
|
|
2141
|
+
toolTip?: string;
|
|
2142
|
+
value?: string;
|
|
2143
|
+
type: 'custom';
|
|
2144
|
+
required: boolean;
|
|
2145
|
+
name: string;
|
|
2146
|
+
};
|
|
2147
|
+
suffix?: {
|
|
2148
|
+
name: string;
|
|
2149
|
+
type: 'custom' | 'fixed' | 'none';
|
|
2150
|
+
toolTip?: string;
|
|
2151
|
+
label?: string;
|
|
2152
|
+
value?: string;
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2155
|
+
image: {
|
|
2156
|
+
label: string;
|
|
2157
|
+
toolTip: string;
|
|
2158
|
+
file: File | null;
|
|
2159
|
+
};
|
|
2160
|
+
status: {
|
|
2161
|
+
name: string;
|
|
2162
|
+
label: string;
|
|
2163
|
+
toolTip: string;
|
|
2164
|
+
type: 'fixex' | 'select' | 'none';
|
|
2165
|
+
value?: string;
|
|
2166
|
+
disabled?: boolean;
|
|
2167
|
+
options: {
|
|
2168
|
+
label: string;
|
|
2169
|
+
value: string;
|
|
2170
|
+
selected: boolean;
|
|
2171
|
+
}[];
|
|
2172
|
+
};
|
|
2173
|
+
user: {
|
|
2174
|
+
label: string;
|
|
2175
|
+
name: string;
|
|
2176
|
+
toolTip: string;
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
|
|
2180
|
+
declare class Entity {
|
|
2181
|
+
state: TEntity | null;
|
|
2182
|
+
uploader: UploaderApi;
|
|
2183
|
+
constructor();
|
|
2184
|
+
get name(): string | undefined;
|
|
2185
|
+
init(): Promise<void>;
|
|
2186
|
+
getConfirmParams(): {
|
|
2187
|
+
busEntSta: string | undefined;
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
type TObservations = {
|
|
2192
|
+
observations: TObservation[] | [];
|
|
2193
|
+
newObservation: {
|
|
2194
|
+
commentValue: string;
|
|
2195
|
+
chkAddAlert: boolean;
|
|
2196
|
+
chkAddAllAlert: boolean;
|
|
2197
|
+
chkRemAlert: boolean;
|
|
2198
|
+
} | null;
|
|
2199
|
+
};
|
|
2200
|
+
type TObservation = {
|
|
2201
|
+
name: string;
|
|
2202
|
+
date: string;
|
|
2203
|
+
userTitle: string;
|
|
2204
|
+
groupTitle: string;
|
|
2205
|
+
taskTitle: string;
|
|
2206
|
+
userLabel: string;
|
|
2207
|
+
groupLabel: string;
|
|
2208
|
+
taskLabel: string;
|
|
2209
|
+
checked?: boolean;
|
|
2210
|
+
disabled?: boolean;
|
|
2211
|
+
marked?: boolean;
|
|
2212
|
+
comment: string;
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
declare class Observations {
|
|
2216
|
+
state: TObservations;
|
|
2217
|
+
constructor();
|
|
2218
|
+
init(): Promise<void>;
|
|
2219
|
+
getConfirmParams(): {
|
|
2220
|
+
txtComment: string | undefined;
|
|
2221
|
+
chkAddAlert: string;
|
|
2222
|
+
chkAddAllAlert: string;
|
|
2223
|
+
chkRemAlert: string;
|
|
2234
2224
|
};
|
|
2235
|
-
|
|
2236
|
-
}
|
|
2225
|
+
setPriority(newPriority: string): void;
|
|
2226
|
+
}
|
|
2237
2227
|
|
|
2238
|
-
type
|
|
2239
|
-
type
|
|
2240
|
-
|
|
2241
|
-
|
|
2228
|
+
type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
|
|
2229
|
+
type Status = {
|
|
2230
|
+
step?: ConfirmStep;
|
|
2231
|
+
error?: string;
|
|
2232
|
+
finishedWithError?: boolean;
|
|
2242
2233
|
};
|
|
2243
|
-
declare class
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
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>;
|
|
2234
|
+
declare abstract class FlowModal<T extends {
|
|
2235
|
+
confirmed?: boolean;
|
|
2236
|
+
}> {
|
|
2237
|
+
abstract confirm(result: T): Promise<Status | FlowModal<any>>;
|
|
2253
2238
|
}
|
|
2254
2239
|
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2240
|
+
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
2241
|
+
type TErrMessage = {
|
|
2242
|
+
message: {
|
|
2243
|
+
text: string;
|
|
2244
|
+
label?: string;
|
|
2245
|
+
};
|
|
2246
|
+
};
|
|
2247
|
+
type TFetchTaskActionResponse = {
|
|
2248
|
+
onClose?: TOnClose;
|
|
2249
|
+
sysMessages?: TErrMessage;
|
|
2250
|
+
sysExceptions?: TErrMessage;
|
|
2251
|
+
type?: string;
|
|
2252
|
+
actions?: {
|
|
2253
|
+
action: {
|
|
2254
|
+
param: {
|
|
2255
|
+
text: string;
|
|
2256
|
+
}[];
|
|
2257
|
+
toDo: string;
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
load?: {
|
|
2261
|
+
canClose: boolean;
|
|
2262
|
+
type: string;
|
|
2263
|
+
text: {
|
|
2264
|
+
label: string;
|
|
2265
|
+
closeAll: boolean;
|
|
2266
|
+
addClass?: string;
|
|
2267
|
+
title?: string;
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
text?: {
|
|
2271
|
+
title?: string;
|
|
2272
|
+
text?: string;
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2259
2275
|
|
|
2260
|
-
|
|
2261
|
-
|
|
2276
|
+
type TPromptPromiseResponse = {
|
|
2277
|
+
message: string;
|
|
2278
|
+
messageType: TMessageType;
|
|
2279
|
+
};
|
|
2262
2280
|
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2281
|
+
declare class AssistantController {
|
|
2282
|
+
#private;
|
|
2283
|
+
get isEnabled(): boolean;
|
|
2284
|
+
constructor();
|
|
2285
|
+
init(execution: Execution): void;
|
|
2286
|
+
run(message: ChatMessage): Promise<TPromptPromiseResponse | undefined>;
|
|
2287
|
+
private generateFormsContent;
|
|
2288
|
+
private resolveResponseResult;
|
|
2289
|
+
private shouldGoToNextStep;
|
|
2290
|
+
private resolveFinalMessage;
|
|
2291
|
+
private generateConfirmedValues;
|
|
2292
|
+
private fillForms;
|
|
2293
|
+
private fillForm;
|
|
2294
|
+
private fillFields;
|
|
2295
|
+
private fillGridField;
|
|
2296
|
+
private resolveFieldValue;
|
|
2268
2297
|
}
|
|
2269
2298
|
|
|
2270
|
-
declare
|
|
2271
|
-
|
|
2272
|
-
|
|
2299
|
+
declare enum ExecutionState {
|
|
2300
|
+
RUNNING = 0,
|
|
2301
|
+
LOADING = 1,
|
|
2302
|
+
FINISHED = 2,
|
|
2303
|
+
RENDERING = 3
|
|
2273
2304
|
}
|
|
2274
|
-
|
|
2275
|
-
|
|
2305
|
+
type TExecutionConfig = {
|
|
2306
|
+
canConfirm: boolean;
|
|
2307
|
+
canGoBack: boolean;
|
|
2308
|
+
canGoForward: boolean;
|
|
2309
|
+
canSave: boolean;
|
|
2310
|
+
canFree: boolean;
|
|
2311
|
+
canDelegate: boolean;
|
|
2312
|
+
canClose: boolean;
|
|
2313
|
+
canShare: boolean;
|
|
2314
|
+
isEntity?: boolean;
|
|
2315
|
+
};
|
|
2316
|
+
declare class Execution {
|
|
2317
|
+
#private;
|
|
2318
|
+
static get instance(): Execution;
|
|
2319
|
+
fieldsMapping: FieldsMapping;
|
|
2320
|
+
private entity;
|
|
2321
|
+
private process;
|
|
2322
|
+
private observations;
|
|
2323
|
+
assistantController: AssistantController;
|
|
2324
|
+
executionConfig: TExecutionConfig | null;
|
|
2325
|
+
private _steps;
|
|
2326
|
+
private _currentStep;
|
|
2327
|
+
private _stepCount;
|
|
2328
|
+
private constructor();
|
|
2329
|
+
protected formsById: {
|
|
2330
|
+
E: Map<string, Form>;
|
|
2331
|
+
P: Map<string, Form>;
|
|
2332
|
+
};
|
|
2333
|
+
protected forms: {
|
|
2334
|
+
E: Map<string, Form>;
|
|
2335
|
+
P: Map<string, Form>;
|
|
2336
|
+
};
|
|
2337
|
+
state: {
|
|
2338
|
+
formsReady: ReturnType<Execution['getAllForms']>;
|
|
2339
|
+
executionState: ExecutionState;
|
|
2340
|
+
locked: boolean;
|
|
2341
|
+
};
|
|
2342
|
+
locker: ScreenLocker;
|
|
2343
|
+
getAllForms(): Form[];
|
|
2344
|
+
getFormsByType(type: TFrmParent): Form[];
|
|
2345
|
+
getFormByName(formName: string, frmParent?: TFrmParent): Form | undefined;
|
|
2346
|
+
getFormById(formId: string | number, frmParent?: TFrmParent): Form | undefined;
|
|
2347
|
+
get currentStep(): number;
|
|
2348
|
+
get steps(): {
|
|
2349
|
+
title: string;
|
|
2350
|
+
stepNumber: number;
|
|
2351
|
+
status: "current" | "completed" | "pending";
|
|
2352
|
+
}[];
|
|
2353
|
+
getEntity(): Entity;
|
|
2354
|
+
getProcess(): Process;
|
|
2355
|
+
getObservations(): Observations;
|
|
2356
|
+
getCurrentTask(): Task;
|
|
2357
|
+
private mustRenderForms;
|
|
2358
|
+
run(executionConfig: TExecutionConfig): Promise<void>;
|
|
2359
|
+
protected getHiddenForms(): Form[];
|
|
2360
|
+
markFormAsRendered(frmParent: string, frmName: string): void;
|
|
2361
|
+
back(): Promise<false | undefined>;
|
|
2362
|
+
delegate(): Promise<void>;
|
|
2363
|
+
shareSocial(): Promise<void>;
|
|
2364
|
+
close(): Promise<void>;
|
|
2365
|
+
desktop(): Promise<void>;
|
|
2366
|
+
confirm(status?: Status, step?: ConfirmStep): Promise<boolean | FlowModal<any> | Field>;
|
|
2367
|
+
free(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null>;
|
|
2368
|
+
print(): Promise<void>;
|
|
2369
|
+
getStepTitle(step: number): {
|
|
2370
|
+
title: string;
|
|
2371
|
+
stepNumber: number;
|
|
2372
|
+
status: "current" | "completed" | "pending";
|
|
2373
|
+
} | undefined;
|
|
2374
|
+
next(): Promise<boolean | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
2375
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
2376
|
+
}> | undefined>;
|
|
2377
|
+
save(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | undefined>;
|
|
2378
|
+
viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
|
|
2379
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2380
|
+
validate(): Promise<true | Field>;
|
|
2276
2381
|
}
|
|
2277
2382
|
|
|
2278
|
-
declare class
|
|
2383
|
+
declare class MessageNotification extends Notification {
|
|
2384
|
+
close(): void;
|
|
2279
2385
|
}
|
|
2280
2386
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
}
|
|
2290
|
-
protected getSynchronizePostConfiguration(value: TTreeValue | TTreeValue[]): IApiaApiPostConfig<any>;
|
|
2291
|
-
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
2387
|
+
declare class StatusNotification extends Notification<NotificationDefinition & {
|
|
2388
|
+
blocking: boolean;
|
|
2389
|
+
}> {
|
|
2390
|
+
readonly props: NotificationDefinition & {
|
|
2391
|
+
blocking: boolean;
|
|
2392
|
+
};
|
|
2393
|
+
constructor(props: NotificationDefinition & {
|
|
2394
|
+
blocking: boolean;
|
|
2395
|
+
});
|
|
2292
2396
|
}
|
|
2293
2397
|
|
|
2294
|
-
declare
|
|
2398
|
+
declare class Notifications {
|
|
2399
|
+
#private;
|
|
2400
|
+
static get instance(): Notifications;
|
|
2401
|
+
private emitter;
|
|
2402
|
+
private constructor();
|
|
2403
|
+
protected notifications: Notification[];
|
|
2404
|
+
add(notification: Notification): void;
|
|
2405
|
+
getAll(): Notification<NotificationDefinition>[];
|
|
2406
|
+
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
2407
|
+
remove(notification: string | number | Notification): void;
|
|
2408
|
+
on: <K extends "notification">(event: K, cb: Callback<{
|
|
2409
|
+
notification: Notification;
|
|
2410
|
+
}, K>) => UnSubscriber;
|
|
2411
|
+
}
|
|
2295
2412
|
|
|
2296
2413
|
/**
|
|
2297
2414
|
* @public
|
|
@@ -2543,6 +2660,8 @@ interface IApiaFunctions {
|
|
|
2543
2660
|
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
2544
2661
|
}
|
|
2545
2662
|
interface IApiaForm {
|
|
2663
|
+
getFrmId(): string | null;
|
|
2664
|
+
getFrmParent(): string;
|
|
2546
2665
|
getFormName(): string;
|
|
2547
2666
|
getFormTitle(): string;
|
|
2548
2667
|
openForm(): void;
|
|
@@ -2555,6 +2674,8 @@ interface IApiaForm {
|
|
|
2555
2674
|
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
2556
2675
|
}
|
|
2557
2676
|
interface IApiaField {
|
|
2677
|
+
get fldType(): TApiaFieldType;
|
|
2678
|
+
get fldId(): string;
|
|
2558
2679
|
/**
|
|
2559
2680
|
* Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
|
|
2560
2681
|
*/
|
|
@@ -2562,7 +2683,7 @@ interface IApiaField {
|
|
|
2562
2683
|
/**
|
|
2563
2684
|
* Returns the current value of the property determined by the name in the paremeter.
|
|
2564
2685
|
*/
|
|
2565
|
-
getProperty(name:
|
|
2686
|
+
getProperty<K extends keyof TApiaFieldCommonProperties>(name: K): TApiaFieldCommonProperties[K];
|
|
2566
2687
|
/**
|
|
2567
2688
|
* Sets the focus on the field if possible.
|
|
2568
2689
|
*/
|
|
@@ -2688,5 +2809,197 @@ declare class ActionsController {
|
|
|
2688
2809
|
getButton(id: TActionButtons): ButtonsAction | undefined;
|
|
2689
2810
|
}
|
|
2690
2811
|
|
|
2691
|
-
|
|
2812
|
+
declare abstract class ApiaField implements IApiaField {
|
|
2813
|
+
#private;
|
|
2814
|
+
constructor(field: Field);
|
|
2815
|
+
get fldType(): "button" | "check" | "file" | "hidden" | "image" | "input" | "href" | "multiple" | "radio" | "select" | "label" | "area" | "title" | "editor" | "grid" | "password" | "captcha" | "tree";
|
|
2816
|
+
get fldId(): string;
|
|
2817
|
+
get index(): number;
|
|
2818
|
+
setProperty<K extends keyof TApiaFieldCommonProperties>(name: K, value: TApiaFieldCommonProperties[K]): void;
|
|
2819
|
+
getProperty<K extends keyof TApiaFieldCommonProperties>(name: K): TApiaFieldCommonProperties[K];
|
|
2820
|
+
setFocus(): IApiaField | null;
|
|
2821
|
+
isInGrid(): boolean;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
interface IButtonField extends IApiaField {
|
|
2825
|
+
fireClickEvent(): void;
|
|
2826
|
+
getValue(): string | null;
|
|
2827
|
+
}
|
|
2828
|
+
declare class ButtonField extends ApiaField implements IButtonField {
|
|
2829
|
+
#private;
|
|
2830
|
+
constructor(field: Button);
|
|
2831
|
+
fireClickEvent(): void;
|
|
2832
|
+
getValue(): string | null;
|
|
2833
|
+
clearValue(): void;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
type TEditorField = IApiaField;
|
|
2837
|
+
declare class EditorField extends ApiaField implements TEditorField {
|
|
2838
|
+
constructor(field: Editor);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
declare class ApiaAttribute {
|
|
2842
|
+
#private;
|
|
2843
|
+
constructor(attribute: Attribute);
|
|
2844
|
+
get attLabel(): string;
|
|
2845
|
+
get name(): string;
|
|
2846
|
+
get id(): string;
|
|
2847
|
+
get valueType(): TApiaFieldValueType;
|
|
2848
|
+
}
|
|
2849
|
+
declare class ApiaFieldWithAttribute<T = string | boolean> extends ApiaField {
|
|
2850
|
+
#private;
|
|
2851
|
+
constructor(field: FieldWithAttribute);
|
|
2852
|
+
get attribute(): ApiaAttribute;
|
|
2853
|
+
clearValue(): void;
|
|
2854
|
+
getValue(): any;
|
|
2855
|
+
setValue(v: T): void;
|
|
2856
|
+
getLabel(): string | null | void;
|
|
2857
|
+
getProperty<K extends keyof TApiaFieldWithAttributeProperties>(name: K): TApiaFieldWithAttributeProperties[K];
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
type TOptionsMap$2 = Map<string, PossibleValue>;
|
|
2861
|
+
type TOptionsAsArray = PossibleValue[];
|
|
2862
|
+
declare class SelectField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2863
|
+
#private;
|
|
2864
|
+
constructor(field: Select);
|
|
2865
|
+
getOptions(asObject: boolean): TOptionsMap$2 | TOptionsAsArray | null;
|
|
2866
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2867
|
+
setOptions(optionsArray: PossibleValue[] | PossibleValue): void;
|
|
2868
|
+
removeOption(optionValue: string | number): void;
|
|
2869
|
+
getSelectedOption(asObject: boolean): TOptionsMap$2 | PossibleValue[] | null;
|
|
2870
|
+
getSelectedText(): string | null;
|
|
2871
|
+
clearOptions(): void;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
declare class InputField extends ApiaFieldWithAttribute {
|
|
2875
|
+
#private;
|
|
2876
|
+
constructor(field: Input);
|
|
2877
|
+
getObjectValue(): number | string | boolean | null;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
declare class TreeField extends ApiaFieldWithAttribute<string | number | (string | number)[]> {
|
|
2881
|
+
#private;
|
|
2882
|
+
constructor(field: Tree);
|
|
2883
|
+
setValue(v: string | number | (string | number)[]): void;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
declare class CheckField extends ApiaFieldWithAttribute {
|
|
2887
|
+
constructor(field: Checkbox);
|
|
2888
|
+
clearValue(): void;
|
|
2889
|
+
setValue(value: string | boolean | number): void;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
type TOptionsMap$1 = Map<string, PossibleValue>;
|
|
2893
|
+
declare class RadioField extends ApiaFieldWithAttribute {
|
|
2894
|
+
#private;
|
|
2895
|
+
constructor(field: Radio);
|
|
2896
|
+
getOptions(asObject: boolean): TOptionsMap$1 | PossibleValue[] | null;
|
|
2897
|
+
clearOptions(): void | null;
|
|
2898
|
+
addOption(radioValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2899
|
+
setOptions(options: PossibleValue[]): void;
|
|
2900
|
+
removeOption(radioValue: string | number): void;
|
|
2901
|
+
getSelectedOption(asObject: boolean): TOptionsMap$1 | PossibleValue | null;
|
|
2902
|
+
getSelectedText(): string | undefined | null;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
type TOptionsMap = Map<string, PossibleValue>;
|
|
2906
|
+
declare class MultipleField extends ApiaFieldWithAttribute<string[]> {
|
|
2907
|
+
#private;
|
|
2908
|
+
constructor(field: Multiple);
|
|
2909
|
+
addOption(optionValue: string | number, showValue: string, allowRepeatedValue: boolean): void;
|
|
2910
|
+
setValue(value: string[]): void;
|
|
2911
|
+
clearOptions(): void;
|
|
2912
|
+
getSelectedOption(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2913
|
+
getOptions(asObject: boolean): TOptionsMap | PossibleValue[] | null;
|
|
2914
|
+
setOptions(optionsArray: PossibleValue[] | PossibleValue): void;
|
|
2915
|
+
removeOption(optionValue: string | number): void;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
declare class HiddenField extends ApiaField {
|
|
2919
|
+
constructor(field: Hidden);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
declare class AreaField extends ApiaFieldWithAttribute {
|
|
2923
|
+
constructor(field: Textarea);
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
interface IImageField extends IApiaField {
|
|
2927
|
+
getValue(): null;
|
|
2928
|
+
setValue(): null;
|
|
2929
|
+
getLabel(): void;
|
|
2930
|
+
clearValue(): null;
|
|
2931
|
+
}
|
|
2932
|
+
declare class ImageField extends ApiaField implements IImageField {
|
|
2933
|
+
#private;
|
|
2934
|
+
constructor(field: Image);
|
|
2935
|
+
clearValue(): null;
|
|
2936
|
+
getLabel(): void;
|
|
2937
|
+
getValue(): null;
|
|
2938
|
+
setValue(): null;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
interface ILinkField extends IApiaField {
|
|
2942
|
+
getLabel(): void;
|
|
2943
|
+
}
|
|
2944
|
+
declare class LinkField extends ApiaField implements ILinkField {
|
|
2945
|
+
#private;
|
|
2946
|
+
constructor(field: Link);
|
|
2947
|
+
getLabel(): void;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
interface ITextField extends IApiaField {
|
|
2951
|
+
getLabel(): void;
|
|
2952
|
+
}
|
|
2953
|
+
declare class TextField extends ApiaField implements ITextField {
|
|
2954
|
+
#private;
|
|
2955
|
+
constructor(field: Field);
|
|
2956
|
+
getLabel(): void;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
declare class GridField extends ApiaField {
|
|
2960
|
+
#private;
|
|
2961
|
+
constructor(field: Grid);
|
|
2962
|
+
addRow(): Promise<IApiaField[]>;
|
|
2963
|
+
clearGrid(): void;
|
|
2964
|
+
clearPage(): void;
|
|
2965
|
+
clearRow(index: number): Promise<void>;
|
|
2966
|
+
closeForm(): GridField;
|
|
2967
|
+
deleteAllRows(): Promise<void>;
|
|
2968
|
+
deleteGrid(): Promise<void>;
|
|
2969
|
+
deletePage(): void;
|
|
2970
|
+
deleteRow(index: number): Promise<void>;
|
|
2971
|
+
editRow(index: number): void;
|
|
2972
|
+
getAllColumns(): (IApiaField | null)[][];
|
|
2973
|
+
getColumn(fieldName: string): (IApiaField | null)[];
|
|
2974
|
+
getCurrentPage(): number;
|
|
2975
|
+
getField(fieldName: string, fieldIndex?: number): (IApiaField | null)[] | null;
|
|
2976
|
+
getPageCount(): number;
|
|
2977
|
+
getPageSize(): number;
|
|
2978
|
+
getRow(index: number): IApiaField[] | undefined;
|
|
2979
|
+
getSelection(): IApiaField[][];
|
|
2980
|
+
get id(): string;
|
|
2981
|
+
isPaged(): boolean;
|
|
2982
|
+
get rowsCount(): number;
|
|
2983
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2984
|
+
toggleDeleteButton(index: number, isShown?: boolean): void;
|
|
2985
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
type TCaptchaField = IApiaField;
|
|
2989
|
+
declare class CaptchaField extends ApiaField implements TCaptchaField {
|
|
2990
|
+
constructor(field: Captcha);
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
declare class FileUploaderField extends ApiaFieldWithAttribute {
|
|
2994
|
+
#private;
|
|
2995
|
+
constructor(field: File$1);
|
|
2996
|
+
onChange(cb: (newValue: unknown) => unknown): void;
|
|
2997
|
+
setValue(): null;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
declare class PasswordField extends ApiaField {
|
|
3001
|
+
constructor(field: Password);
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
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, get, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFileDefinition, parseSuccessfulResponse, parseXml, post, returnExactlyTheSame, shallowEqual };
|
|
2692
3005
|
//# sourceMappingURL=index.d.ts.map
|