@apia/execution 4.0.15
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 +2692 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7889 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -0
- package/readme.md +5 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2692 @@
|
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import { IStringifyOptions } from 'qs';
|
|
3
|
+
import { ScreenLocker, TModal, TOpenModal as TOpenModal$1, TDispatchedNotification } from '@apia/components';
|
|
4
|
+
import { DeepReadonly, TApiaLoad, TApiaFunction, TApiaLoadForm } from '@apia/util';
|
|
5
|
+
import * as _apia_api from '@apia/api';
|
|
6
|
+
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
|
+
|
|
149
|
+
type TApiaButtonDefinition = TApiaFieldBaseDefinition<TApiaButtonProperties> & {
|
|
150
|
+
fieldType: 'button';
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
type TApiaCheckboxDefinition = TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties> & {
|
|
154
|
+
fieldType: 'check';
|
|
155
|
+
value: string;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
type TApiaFileUploaderDefinition = TApiaFieldWithAttributeBaseProps<TApiaFileProperties> & {
|
|
159
|
+
fieldType: 'file';
|
|
160
|
+
file_prp?: string;
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
type TApiaHiddenInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaHiddenProperties> & {
|
|
165
|
+
fieldType: 'hidden';
|
|
166
|
+
value: string;
|
|
167
|
+
length?: number;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
type TApiaImageDefinition = TApiaFieldBaseDefinition<TApiaImageProperties> & {
|
|
171
|
+
fieldType: 'image';
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
type TApiaInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputProperties> & {
|
|
175
|
+
alwaysShowMask?: boolean;
|
|
176
|
+
cantDecimals?: string;
|
|
177
|
+
decimalZeroes?: string;
|
|
178
|
+
fieldType: 'input';
|
|
179
|
+
isoDateValue?: string;
|
|
180
|
+
length?: number;
|
|
181
|
+
mask?: string;
|
|
182
|
+
maskPlaceholder?: string;
|
|
183
|
+
regExp?: string;
|
|
184
|
+
qryId?: string;
|
|
185
|
+
qry_show_value?: string;
|
|
186
|
+
value: string | number;
|
|
187
|
+
valueType?: 'D';
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
type TApiaLinkDefinition = TApiaFieldBaseDefinition<TApiaLinkProperties> & {
|
|
191
|
+
fieldType: 'href';
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
type TApiaMultipleDefinition = TApiaFieldWithAttributeBaseProps<TApiaMultipleProperties> & {
|
|
196
|
+
fieldType: 'multiple';
|
|
197
|
+
possibleValue: SelectPossibleValue[] | SelectPossibleValue;
|
|
198
|
+
value: string[] | number[];
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
type TApiaRadioButtonDefinition = TApiaFieldWithAttributeBaseProps<TApiaRadioProperties> & {
|
|
202
|
+
fieldType: 'radio';
|
|
203
|
+
possibleValue: RadioPossibleValue[] | RadioPossibleValue;
|
|
204
|
+
value: string | number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
type TApiaSelectDefinition = TApiaFieldWithAttributeBaseProps<TApiaSelectProperties> & {
|
|
208
|
+
fieldType: 'select';
|
|
209
|
+
possibleValue: SelectPossibleValue[] | SelectPossibleValue;
|
|
210
|
+
value: string | number;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
type TApiaLabelDefinition = TApiaFieldBaseDefinition<TApiaLabelProperties> & {
|
|
214
|
+
fieldType: 'label';
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
type TApiaTextAreaDefinition = TApiaFieldWithAttributeBaseProps<TApiaTextareaProperties> & {
|
|
218
|
+
fieldType: 'area';
|
|
219
|
+
length?: number;
|
|
220
|
+
value: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type TApiaTitleDefinition = TApiaFieldBaseDefinition<TApiaTitleProperties> & {
|
|
224
|
+
fieldType: 'title';
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
type TApiaEditorDefinition = TApiaFieldWithAttributeBaseProps<TApiaEditorProperties> & {
|
|
228
|
+
fieldType: 'editor';
|
|
229
|
+
value: string;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
interface IApiaDataGridColumn {
|
|
233
|
+
title: string;
|
|
234
|
+
colTitle: string;
|
|
235
|
+
colWidth: string;
|
|
236
|
+
}
|
|
237
|
+
type TApiaGridField = TApiaFieldBaseDefinition<any> & {
|
|
238
|
+
fieldValue: Pick<TApiaFieldWithAttributeBaseProps<any>, 'value' | 'properties'>;
|
|
239
|
+
row: Pick<TApiaFieldWithAttributeBaseProps<any>, 'value' | 'properties'> & Pick<TApiaSelectProperties, 'possibleValue'>;
|
|
240
|
+
};
|
|
241
|
+
type TApiaGridDefinition = TApiaFieldBaseDefinition<TApiaGridProperties> & {
|
|
242
|
+
curPage?: number;
|
|
243
|
+
field?: TApiaGridField | TApiaGridField[];
|
|
244
|
+
fieldType: 'grid';
|
|
245
|
+
gridHeader: {
|
|
246
|
+
col: IApiaDataGridColumn | IApiaDataGridColumn[];
|
|
247
|
+
};
|
|
248
|
+
pages?: number;
|
|
249
|
+
rowCount?: number;
|
|
250
|
+
startIndex?: number;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
type TApiaPasswordDefinition = TApiaFieldWithAttributeBaseProps<TApiaPasswordProperties> & {
|
|
254
|
+
fieldType: 'password';
|
|
255
|
+
value: string;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
type TApiaCaptchaDefinition = TApiaFieldBaseDefinition<TApiaCaptchaProperties> & {
|
|
259
|
+
attLabel: string;
|
|
260
|
+
fieldType: 'captcha';
|
|
261
|
+
value: string;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
type TApiaFieldValueType = 'N' | 'S' | 'D' | '';
|
|
265
|
+
type TFieldEvent = 'onLoad' | 'onReload' | 'onSubmit' | 'onChange' | 'onModalReturn' | 'onClick' | 'onPopulate' | 'populate' | 'gridAdd' | 'gridSort' | 'gridSortUp' | 'gridSortDown' | 'gridDelete' | 'gridColumnSelect';
|
|
266
|
+
type TFieldScriptEventParameters = {
|
|
267
|
+
attId?: number;
|
|
268
|
+
type: 'V' | 'P' | 'E';
|
|
269
|
+
value?: string;
|
|
270
|
+
};
|
|
271
|
+
type TFieldScriptEvent = {
|
|
272
|
+
evtName: Readonly<TFieldEvent>;
|
|
273
|
+
evtId: number | string;
|
|
274
|
+
fncName: string;
|
|
275
|
+
fncParams: TFieldScriptEventParameters[];
|
|
276
|
+
};
|
|
277
|
+
type TFieldScriptEvents = TFieldScriptEvent[];
|
|
278
|
+
type TFieldServerEvent = {
|
|
279
|
+
evtId: number;
|
|
280
|
+
evtName: Readonly<TFieldEvent>;
|
|
281
|
+
isAjax: boolean;
|
|
282
|
+
};
|
|
283
|
+
type TFieldServerEvents = TFieldServerEvent[];
|
|
284
|
+
type TApiaFieldBaseDefinition<T extends Record<any, any>> = {
|
|
285
|
+
cols: number;
|
|
286
|
+
colWidth?: string;
|
|
287
|
+
entityBind?: boolean;
|
|
288
|
+
file_prp?: string;
|
|
289
|
+
fieldType: any;
|
|
290
|
+
forceSync?: boolean;
|
|
291
|
+
id: string;
|
|
292
|
+
index?: number;
|
|
293
|
+
isAjaxEvent?: boolean;
|
|
294
|
+
multIdx?: number;
|
|
295
|
+
qryId?: string;
|
|
296
|
+
qry_show_value?: string;
|
|
297
|
+
properties: T;
|
|
298
|
+
regExp?: string;
|
|
299
|
+
rows?: number;
|
|
300
|
+
scriptEvents?: TFieldScriptEvents;
|
|
301
|
+
serverEvents?: TFieldServerEvents;
|
|
302
|
+
x: number;
|
|
303
|
+
y: number;
|
|
304
|
+
};
|
|
305
|
+
type TApiaFieldWithAttributeBaseProps<T extends Record<any, any>> = TApiaFieldBaseDefinition<T> & {
|
|
306
|
+
attId: string;
|
|
307
|
+
attName: string;
|
|
308
|
+
attLabel: string;
|
|
309
|
+
value: any;
|
|
310
|
+
valueType: TApiaFieldValueType;
|
|
311
|
+
trad?: string;
|
|
312
|
+
};
|
|
313
|
+
type TApiaFieldDefinition = TApiaButtonDefinition | TApiaCaptchaDefinition | TApiaCheckboxDefinition | TApiaEditorDefinition | TApiaFileUploaderDefinition | TApiaGridDefinition | TApiaHiddenInputDefinition | TApiaImageDefinition | TApiaInputDefinition | TApiaLabelDefinition | TApiaLinkDefinition | TApiaMultipleDefinition | TApiaPasswordDefinition | TApiaRadioButtonDefinition | TApiaSelectDefinition | TApiaTextAreaDefinition | TApiaTitleDefinition | TApiaTreeDefinition;
|
|
314
|
+
|
|
315
|
+
type TApiaTreePossibleValue = {
|
|
316
|
+
text: string;
|
|
317
|
+
selected?: boolean;
|
|
318
|
+
value: string | number;
|
|
319
|
+
possibleValue?: TApiaTreePossibleValue | TApiaTreePossibleValue[];
|
|
320
|
+
};
|
|
321
|
+
type TApiaTreeDefinition = TApiaFieldWithAttributeBaseProps<TApiaTreeProperties> & {
|
|
322
|
+
fieldType: 'tree';
|
|
323
|
+
possibleValue: TApiaTreePossibleValue | TApiaTreePossibleValue[];
|
|
324
|
+
value: string;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
type TApiaFieldPossibleValue = {
|
|
328
|
+
value: string | number;
|
|
329
|
+
label: string;
|
|
330
|
+
selected?: boolean;
|
|
331
|
+
};
|
|
332
|
+
type TApiaFieldCommonProperties = {
|
|
333
|
+
alignment?: string;
|
|
334
|
+
alt?: string;
|
|
335
|
+
bold?: string;
|
|
336
|
+
colspan?: number;
|
|
337
|
+
colWidth?: string;
|
|
338
|
+
cssClass?: string;
|
|
339
|
+
disabled?: boolean;
|
|
340
|
+
fontColor?: string;
|
|
341
|
+
id?: string;
|
|
342
|
+
inGrid?: boolean;
|
|
343
|
+
inputAsText?: boolean;
|
|
344
|
+
name?: string;
|
|
345
|
+
noPrint?: boolean;
|
|
346
|
+
readonly?: boolean;
|
|
347
|
+
rowspan?: number;
|
|
348
|
+
tooltip?: string;
|
|
349
|
+
tooltipHelp?: boolean;
|
|
350
|
+
visibilityHidden?: boolean;
|
|
351
|
+
};
|
|
352
|
+
type TApiaFieldSizableFieldProperties = {
|
|
353
|
+
size?: string;
|
|
354
|
+
};
|
|
355
|
+
type TApiaFieldWithAttributeProperties = TApiaFieldCommonProperties & {
|
|
356
|
+
required?: boolean;
|
|
357
|
+
transient?: boolean;
|
|
358
|
+
valueColor?: string;
|
|
359
|
+
};
|
|
360
|
+
type TApiaGroupableFieldProperties = {
|
|
361
|
+
colWidth?: string;
|
|
362
|
+
gridColTitle?: string;
|
|
363
|
+
};
|
|
364
|
+
type TApiaTranslatableFieldProperties = TApiaFieldWithAttributeProperties & {
|
|
365
|
+
reqTrad?: boolean;
|
|
366
|
+
};
|
|
367
|
+
type TApiaValuatedFieldProperties = {
|
|
368
|
+
value?: string;
|
|
369
|
+
};
|
|
370
|
+
type TApiaButtonProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & TApiaFieldSizableFieldProperties & {
|
|
371
|
+
value?: unknown;
|
|
372
|
+
};
|
|
373
|
+
type TApiaCaptchaProperties = TApiaFieldCommonProperties & {};
|
|
374
|
+
type TApiaCheckboxProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
375
|
+
checked?: boolean;
|
|
376
|
+
ariaLabel?: string;
|
|
377
|
+
ariaDescription?: string;
|
|
378
|
+
autoFocus?: string;
|
|
379
|
+
placeHolder?: string;
|
|
380
|
+
title?: string;
|
|
381
|
+
};
|
|
382
|
+
type TApiaEditorProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
383
|
+
autoFocus?: string;
|
|
384
|
+
placeHolder?: string;
|
|
385
|
+
ariaLabel?: string;
|
|
386
|
+
ariaDescription?: string;
|
|
387
|
+
title?: string;
|
|
388
|
+
tooltip?: string;
|
|
389
|
+
cssClass?: string;
|
|
390
|
+
};
|
|
391
|
+
type TApiaFileProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
392
|
+
allowEdition?: boolean;
|
|
393
|
+
docType?: string;
|
|
394
|
+
documentMonitorCus?: number;
|
|
395
|
+
fileCollapseFldStrc?: boolean;
|
|
396
|
+
fileCollapseMetadata?: boolean;
|
|
397
|
+
fileCollapsePermission?: boolean;
|
|
398
|
+
fileDefFolder?: number;
|
|
399
|
+
fileDntShwDocMdlOnDrop?: boolean;
|
|
400
|
+
fileExpDate?: boolean;
|
|
401
|
+
filePreview?: boolean;
|
|
402
|
+
fileNoAllwDnD?: boolean;
|
|
403
|
+
fileNotShowDocMon?: boolean;
|
|
404
|
+
fileShowDesc?: boolean;
|
|
405
|
+
fileShwFoldTreeBtn?: boolean;
|
|
406
|
+
fileShwFoldTreeStr?: boolean;
|
|
407
|
+
hideDocDownload?: boolean;
|
|
408
|
+
hideDocMetadata?: boolean;
|
|
409
|
+
hideSignButtons?: boolean;
|
|
410
|
+
noLock?: boolean;
|
|
411
|
+
noErase?: boolean;
|
|
412
|
+
noModify?: boolean;
|
|
413
|
+
noDownload?: boolean;
|
|
414
|
+
oneClickUpload?: boolean;
|
|
415
|
+
reqSign?: boolean;
|
|
416
|
+
title?: string;
|
|
417
|
+
ariaLabel?: string;
|
|
418
|
+
ariaDescription?: string;
|
|
419
|
+
autoFocus?: string;
|
|
420
|
+
};
|
|
421
|
+
type TApiaGridProperties = TApiaFieldCommonProperties & {
|
|
422
|
+
alterOnlyLastPage?: boolean;
|
|
423
|
+
gridForm?: string;
|
|
424
|
+
gridHeight?: number;
|
|
425
|
+
gridTitle?: string;
|
|
426
|
+
hideAddButton?: boolean;
|
|
427
|
+
hideDelButton?: boolean;
|
|
428
|
+
hideDocMetadata?: boolean;
|
|
429
|
+
hideDocPermissions?: boolean;
|
|
430
|
+
hideGridButtons?: boolean;
|
|
431
|
+
hideIncludeButton?: boolean;
|
|
432
|
+
hideOrderButton?: boolean;
|
|
433
|
+
includeFirstRow?: boolean;
|
|
434
|
+
maxRecords?: number;
|
|
435
|
+
paged?: boolean;
|
|
436
|
+
pagedGridSize?: number;
|
|
437
|
+
};
|
|
438
|
+
type TApiaHiddenProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {};
|
|
439
|
+
type TApiaImageProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & {
|
|
440
|
+
imageUrl?: string;
|
|
441
|
+
};
|
|
442
|
+
type TApiaInputProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
443
|
+
regExpMessage?: string;
|
|
444
|
+
placeHolder?: string;
|
|
445
|
+
autoFocus?: string;
|
|
446
|
+
title?: string;
|
|
447
|
+
inputType?: string;
|
|
448
|
+
ariaLabel?: string;
|
|
449
|
+
ariaDescription?: string;
|
|
450
|
+
storeMdlQryResult?: boolean;
|
|
451
|
+
};
|
|
452
|
+
type TApiaLabelProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
453
|
+
underlined?: boolean;
|
|
454
|
+
value?: unknown;
|
|
455
|
+
};
|
|
456
|
+
type TApiaLinkProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & TApiaGroupableFieldProperties & {
|
|
457
|
+
url?: string;
|
|
458
|
+
};
|
|
459
|
+
type TApiaMultipleProperties = TApiaFieldCommonProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & TApiaSelectProperties & {
|
|
460
|
+
multiselect?: boolean;
|
|
461
|
+
fieldRows?: string;
|
|
462
|
+
};
|
|
463
|
+
type TApiaPasswordProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
464
|
+
ariaLabel: string;
|
|
465
|
+
ariaDescription: string;
|
|
466
|
+
title: string;
|
|
467
|
+
};
|
|
468
|
+
type RadioPossibleValue = {
|
|
469
|
+
value: string | number;
|
|
470
|
+
text: string;
|
|
471
|
+
selected?: boolean;
|
|
472
|
+
};
|
|
473
|
+
type SelectPossibleValue = {
|
|
474
|
+
value: string | number;
|
|
475
|
+
text: string;
|
|
476
|
+
selected?: boolean;
|
|
477
|
+
};
|
|
478
|
+
type TApiaRadioProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & {
|
|
479
|
+
dontBreakRadio?: string;
|
|
480
|
+
possibleValue?: RadioPossibleValue | RadioPossibleValue[];
|
|
481
|
+
ariaLabel?: string;
|
|
482
|
+
ariaDescription?: string;
|
|
483
|
+
autoFocus?: string;
|
|
484
|
+
title?: string;
|
|
485
|
+
};
|
|
486
|
+
type TApiaSelectProperties = TApiaFieldCommonProperties & TApiaGroupableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
487
|
+
possibleValue?: SelectPossibleValue | SelectPossibleValue[];
|
|
488
|
+
ariaLabel?: string;
|
|
489
|
+
ariaDescription?: string;
|
|
490
|
+
autoFocus?: string;
|
|
491
|
+
placeHolder?: string;
|
|
492
|
+
autoComplete?: string;
|
|
493
|
+
title?: string;
|
|
494
|
+
};
|
|
495
|
+
type TApiaTextareaProperties = TApiaFieldCommonProperties & TApiaTranslatableFieldProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
496
|
+
ariaLabel?: string;
|
|
497
|
+
ariaDescription?: string;
|
|
498
|
+
autoFocus?: string;
|
|
499
|
+
placeHolder?: string;
|
|
500
|
+
title?: string;
|
|
501
|
+
};
|
|
502
|
+
type TApiaTitleProperties = TApiaFieldCommonProperties & TApiaValuatedFieldProperties & {};
|
|
503
|
+
type TApiaTreeProperties = TApiaFieldCommonProperties & TApiaFieldWithAttributeProperties & TApiaFieldSizableFieldProperties & {
|
|
504
|
+
height?: string;
|
|
505
|
+
leafIcon?: string;
|
|
506
|
+
multiselect?: boolean;
|
|
507
|
+
parentIcon?: string;
|
|
508
|
+
possibleValue: TApiaTreePossibleValue[];
|
|
509
|
+
selParent?: boolean;
|
|
510
|
+
title?: string;
|
|
511
|
+
ariaLabel?: string;
|
|
512
|
+
ariaDescription?: string;
|
|
513
|
+
autoFocus?: string;
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
type FieldWithIndexedFieldsProps = TApiaFieldCommonProperties & {
|
|
517
|
+
currentPage: number;
|
|
518
|
+
maxRows: number;
|
|
519
|
+
pages: number;
|
|
520
|
+
pageSize: number;
|
|
521
|
+
rowsCount: number;
|
|
522
|
+
paged: boolean;
|
|
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;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
type TCustomComponentDefaultResponse = {
|
|
583
|
+
processResult?: {
|
|
584
|
+
state: TCusCmpStateRequest;
|
|
585
|
+
};
|
|
586
|
+
state?: TCusCmpStateRequest;
|
|
587
|
+
ajaxUpdated?: {
|
|
588
|
+
text: string;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
type TCustomComponentDefinition = {
|
|
592
|
+
name: string;
|
|
593
|
+
x: number;
|
|
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;
|
|
645
|
+
};
|
|
646
|
+
type TApiaApiResult<LoadType> = Promise<TApiaApiAxiosResponse<(LoadType & ResponseSysMessages) | null> | null>;
|
|
647
|
+
interface IApiaApiRequestConfig {
|
|
648
|
+
axiosConfig?: AxiosRequestConfig;
|
|
649
|
+
stringifyOptions?: IStringifyOptions;
|
|
650
|
+
}
|
|
651
|
+
interface IApiaApiPostConfig<DataType> extends IApiaApiRequestConfig {
|
|
652
|
+
postData?: DataType;
|
|
653
|
+
postDataTreatment?: 'stringify';
|
|
654
|
+
}
|
|
655
|
+
|
|
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
|
+
declare global {
|
|
707
|
+
interface Window {
|
|
708
|
+
[key: string]: string;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
declare function isJsonResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
712
|
+
declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
713
|
+
declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
714
|
+
declare class InvalidSessionException extends Error {
|
|
715
|
+
}
|
|
716
|
+
declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(response: AxiosResponse<string>) => Promise<(ResponseSysMessages & LoadType & {
|
|
717
|
+
onClose?: string | undefined;
|
|
718
|
+
code?: unknown;
|
|
719
|
+
load?: LoadType | undefined;
|
|
720
|
+
}) | ({
|
|
721
|
+
actions: unknown;
|
|
722
|
+
onClose: string | undefined;
|
|
723
|
+
exceptions: {
|
|
724
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
725
|
+
} | undefined;
|
|
726
|
+
sysExceptions: {
|
|
727
|
+
exception: TApiaMessage | TApiaMessage[];
|
|
728
|
+
} | undefined;
|
|
729
|
+
sysMessages: {
|
|
730
|
+
message: TApiaMessage | TApiaMessage[];
|
|
731
|
+
} | undefined;
|
|
732
|
+
} & LoadType) | null>;
|
|
733
|
+
/**
|
|
734
|
+
* IMPORTANT!! The ApiaApi is programmed under the slogan that
|
|
735
|
+
* **should never throw an exception**. **Errors** coming from
|
|
736
|
+
* connectivity or exceptions on the server **will be handled
|
|
737
|
+
* automatically** by ApiaApi, using the notification system
|
|
738
|
+
* of the application. It is possible to determine in what context they should
|
|
739
|
+
* be thrown those exceptions (global, main, modal) using the
|
|
740
|
+
* alertsCategory configuration properties **(see errorsHandling.md)**.
|
|
741
|
+
*
|
|
742
|
+
* @param url String, the url you want to call
|
|
743
|
+
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
744
|
+
*
|
|
745
|
+
* @throws Nothing
|
|
746
|
+
*
|
|
747
|
+
* @example
|
|
748
|
+
*
|
|
749
|
+
* ApiaApi.post<ResponseType>('url...', {
|
|
750
|
+
axiosConfig?: AxiosRequestConfig;
|
|
751
|
+
|
|
752
|
+
// Configuración de postData
|
|
753
|
+
postData? unknown;
|
|
754
|
+
postDataTreatement?: 'stringify' | undefined;
|
|
755
|
+
|
|
756
|
+
// Configuración de queryString
|
|
757
|
+
queryData?: string | Record<string, unknown>;
|
|
758
|
+
stringifyOptions?: QueryString.IStringifyOptions;
|
|
759
|
+
|
|
760
|
+
// Response validator,
|
|
761
|
+
// If it returns true, everything continues correctly
|
|
762
|
+
// If it returns false, the ApiaApi throws a standard error.
|
|
763
|
+
// If it returns string, ApiaApi throws the error returned in the string.
|
|
764
|
+
validateResponse?: (
|
|
765
|
+
response: AxiosResponse<DataType | null>,
|
|
766
|
+
) => boolean | string;
|
|
767
|
+
|
|
768
|
+
// Configuración de alertas
|
|
769
|
+
alertsImportance?: TAlertImportance;
|
|
770
|
+
|
|
771
|
+
// Configuración de ApiaApiHandler, falta documentar
|
|
772
|
+
handleLoad?: boolean;
|
|
773
|
+
eventsHandler?: IEventsHandler;
|
|
774
|
+
|
|
775
|
+
// other configuration
|
|
776
|
+
colors?: TColors;
|
|
777
|
+
debug?: boolean;
|
|
778
|
+
}
|
|
779
|
+
* @returns The type of the return value depends on the type passed when calling the function. If there was an error it returns null.
|
|
780
|
+
*/
|
|
781
|
+
declare function post<LoadType extends Record<string, unknown> = Record<string, unknown>, DataType = unknown, T = unknown>(actualUrl: string, behaveConfig?: IApiaApiPostConfig<DataType>): TApiaApiResult<LoadType>;
|
|
782
|
+
/**
|
|
783
|
+
* IMPORTANTE!! El ApiaApi está programado bajo la consigna de que
|
|
784
|
+
* **no debe tirar núnca una excepción**. **Los errores** provenientes
|
|
785
|
+
* de la conectividad o de excepciones en el servidor **serán manejados
|
|
786
|
+
* automáticamente** por el ApiaApi utilizando el sistema de notificaciones
|
|
787
|
+
* de la aplicación. Es posible determinar en qué contexto deben
|
|
788
|
+
* ser lanzadas esas excepciones (global, main, modal) utilizando las
|
|
789
|
+
* propiedades de configuración alertsCategory **(ver errorsHandling.md)**.
|
|
790
|
+
*
|
|
791
|
+
* @param url String, el url al que se desea llamar
|
|
792
|
+
* @param config interface IApiaApiRequestConfig<DataType>;
|
|
793
|
+
*
|
|
794
|
+
* @throws Nothing
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
*
|
|
798
|
+
* ApiaApi.get<TipoDeRespuesta>('url...', {
|
|
799
|
+
axiosConfig?: AxiosRequestConfig;
|
|
800
|
+
|
|
801
|
+
// Configuración de queryString
|
|
802
|
+
queryData?: string | Record<string, unknown>;
|
|
803
|
+
stringifyOptions?: QueryString.IStringifyOptions;
|
|
804
|
+
|
|
805
|
+
// Validador de respuesta,
|
|
806
|
+
// Si devuelve true, todo sigue correctamente
|
|
807
|
+
// Si devuelve false, el ApiaApi tira un error estándar.
|
|
808
|
+
// Si devuelve string, el ApiaApi tira el error devuelto en el string.
|
|
809
|
+
validateResponse?: (
|
|
810
|
+
response: AxiosResponse<DataType | null>,
|
|
811
|
+
) => boolean | string;
|
|
812
|
+
|
|
813
|
+
// Configuración de alertas
|
|
814
|
+
alertsImportance?: TAlertImportance;
|
|
815
|
+
|
|
816
|
+
// Configuración de ApiaApiHandler, falta documentar
|
|
817
|
+
handleLoad?: boolean;
|
|
818
|
+
eventsHandler?: IEventsHandler;
|
|
819
|
+
|
|
820
|
+
// Otra configuración
|
|
821
|
+
colors?: TColors;
|
|
822
|
+
debug?: boolean;
|
|
823
|
+
}
|
|
824
|
+
* @returns El tipo del valor devuelto depende del tipo pasado al llamar a la función. Si hubo un error devuelve null
|
|
825
|
+
*/
|
|
826
|
+
declare function get<LoadType extends Record<string, unknown> = Record<string, unknown>, T = unknown, D = unknown>(actualUrl: string, behaveConfig?: IApiaApiRequestConfig): TApiaApiResult<LoadType>;
|
|
827
|
+
type MakeApiaUrlProps = {
|
|
828
|
+
action?: string;
|
|
829
|
+
ajaxUrl?: string;
|
|
830
|
+
queryString?: string;
|
|
831
|
+
stringifyOptions?: IStringifyOptions;
|
|
832
|
+
tabId?: string | number;
|
|
833
|
+
preventAsXmlParameter?: boolean;
|
|
834
|
+
avoidTabId?: boolean;
|
|
835
|
+
[key: string]: unknown;
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* Creates an url based on the general requirements of Apia.
|
|
839
|
+
* If the ajaxUrl property is not passed, it will use the
|
|
840
|
+
* window.URL_REQUEST_AJAX. Its use is very simple, just pass the objects you
|
|
841
|
+
* want to appear in the query string.
|
|
842
|
+
*
|
|
843
|
+
* @example makeApiaUrl({
|
|
844
|
+
* ajaxUrl: 'the.endpoint.you.want',
|
|
845
|
+
* queryString: 'an=existent&query=string',
|
|
846
|
+
* action: 'theAction',
|
|
847
|
+
* anotherProp: 15
|
|
848
|
+
* })
|
|
849
|
+
*
|
|
850
|
+
* @returns the well formed url, in the example, the response url is:
|
|
851
|
+
* /context/the.endpoint.you.want?an=existent&query=string&anotherProp=15&tabId=...&tokenId=...&action=theAction
|
|
852
|
+
*/
|
|
853
|
+
declare function makeApiaUrl(props?: MakeApiaUrlProps): string;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* @public
|
|
857
|
+
*
|
|
858
|
+
* A basic Record
|
|
859
|
+
* */
|
|
860
|
+
type Map$1 = Record<string, unknown>;
|
|
861
|
+
/**
|
|
862
|
+
* @public
|
|
863
|
+
*
|
|
864
|
+
* This is the callback provided by the listener any time it wants to subscribe to an event.
|
|
865
|
+
*/
|
|
866
|
+
type Callback<Events extends Map$1, K extends keyof Events = keyof Events> = (data: Events[K]) => unknown;
|
|
867
|
+
/**
|
|
868
|
+
* @internal
|
|
869
|
+
*
|
|
870
|
+
* This is the emitter's callbacks storage
|
|
871
|
+
*/
|
|
872
|
+
type Callbacks<Events extends Map$1> = {
|
|
873
|
+
[K in keyof Events]: Callback<Events, K>[];
|
|
874
|
+
};
|
|
875
|
+
/**
|
|
876
|
+
* @public
|
|
877
|
+
*
|
|
878
|
+
* A method that unsubscribes the recently made subscription.
|
|
879
|
+
*/
|
|
880
|
+
type UnSubscriber = () => void;
|
|
881
|
+
type SetStateAction<S> = S | ((prevState: S) => S);
|
|
882
|
+
|
|
883
|
+
declare class WithProperties<Props extends Record<string, any>> {
|
|
884
|
+
properties: Props;
|
|
885
|
+
constructor(initialState?: Props);
|
|
886
|
+
getProperty<K extends keyof Props>(propName: K): Props[K];
|
|
887
|
+
setProperty<K extends keyof Props>(propName: K, propValue: SetStateAction<Props[K]>): void;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
type TFncParams = {
|
|
891
|
+
type: 'V' | 'P' | 'E';
|
|
892
|
+
value?: string;
|
|
893
|
+
attId?: string | number;
|
|
894
|
+
};
|
|
895
|
+
declare abstract class Field<FieldProps extends TApiaFieldCommonProperties = TApiaFieldCommonProperties, FieldDefinition extends TApiaFieldBaseDefinition<FieldProps> = TApiaFieldBaseDefinition<FieldProps>, State extends {
|
|
896
|
+
definition: Omit<FieldDefinition, 'properties'>;
|
|
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>> {
|
|
929
|
+
#private;
|
|
930
|
+
protected lastSynchronizationValue: ValueType | null;
|
|
931
|
+
readonly attribute: Attribute;
|
|
932
|
+
constructor({ attId, attName, attLabel, valueType, value, ...definition }: TApiaFieldWithAttributeBaseProps<FieldProps>);
|
|
933
|
+
fireEvent(eventName: string): Promise<boolean>;
|
|
934
|
+
protected getInitialValue({ value, }: TApiaFieldWithAttributeBaseProps<FieldProps>): ValueType;
|
|
935
|
+
getValidationState(): FieldValidationState;
|
|
936
|
+
getValue(): ValueType;
|
|
937
|
+
setValue(newValue: ValueType, options?: SetValueOptions): Promise<boolean>;
|
|
938
|
+
protected getSynchronizePostConfiguration(value: ValueType): IApiaApiPostConfig<any>;
|
|
939
|
+
protected getSynchronizeUrl(params?: Record<string, unknown>): string;
|
|
940
|
+
protected processSynchronizeError(e: unknown): void;
|
|
941
|
+
protected synchronize(newValue: ValueType): Promise<boolean>;
|
|
942
|
+
validate(): Promise<boolean>;
|
|
943
|
+
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
type FieldState = {
|
|
947
|
+
properties: any;
|
|
948
|
+
value?: any;
|
|
949
|
+
};
|
|
950
|
+
declare class FieldsGroup {
|
|
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> {
|
|
981
|
+
#private;
|
|
982
|
+
protected fieldsDefinitions: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>[];
|
|
983
|
+
protected fieldsStates: FieldState[][];
|
|
984
|
+
protected managedAttIds: Set<string | number>;
|
|
985
|
+
protected managedAttNames: Set<string>;
|
|
986
|
+
protected managedFieldIds: Set<string | number>;
|
|
987
|
+
protected managedFieldsNames: Set<string>;
|
|
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>;
|
|
993
|
+
init(form: Form): Promise<void>;
|
|
994
|
+
getAllColumns(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
995
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
996
|
+
}>[][];
|
|
997
|
+
/**
|
|
998
|
+
* @param field - Nombre del campo o del atributo
|
|
999
|
+
*/
|
|
1000
|
+
getColumn(field: string): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1001
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1002
|
+
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1003
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1004
|
+
}> | undefined)[] | undefined;
|
|
1005
|
+
/**
|
|
1006
|
+
* @param field - Nombre del campo o del atributo
|
|
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>;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
declare class Form extends WithProperties<TApiaFormProperties> {
|
|
1034
|
+
fields: TApiaFieldBaseDefinition<Record<string, any>>[];
|
|
1035
|
+
state: {
|
|
1036
|
+
isMarkedToSign: boolean;
|
|
1037
|
+
};
|
|
1038
|
+
protected customComponents: Map<string, CustomComponent>;
|
|
1039
|
+
protected fieldsById: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1040
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>;
|
|
1041
|
+
}>>;
|
|
1042
|
+
protected fieldsByName: Map<string, Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1043
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, 'properties'>;
|
|
1044
|
+
}>>;
|
|
1045
|
+
protected fieldsByAttributeId: Map<string | number, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1046
|
+
protected fieldsByAttributeName: Map<string, FieldWithAttribute<Record<string, any>, any, TApiaFieldWithAttributeBaseProps<Record<string, any>>>>;
|
|
1047
|
+
protected fieldsGroups: Map<string, FieldWithIndexedFields<FieldWithIndexedFieldsProps, TApiaFieldBaseDefinition<FieldWithIndexedFieldsProps>, Record<string, unknown>>>;
|
|
1048
|
+
definition: TApiaForm;
|
|
1049
|
+
constructor(definition: TApiaForm);
|
|
1050
|
+
closeForm(): void;
|
|
1051
|
+
openForm(): void;
|
|
1052
|
+
getAllFields(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1053
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1054
|
+
}>[];
|
|
1055
|
+
getCustomComponents(): CustomComponent[];
|
|
1056
|
+
getField(field: string, index?: number): Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1057
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1058
|
+
}> | Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1059
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1060
|
+
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1061
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1062
|
+
}> | undefined)[] | Field<TApiaFieldCommonProperties, TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, {
|
|
1063
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1064
|
+
}>[] | undefined;
|
|
1065
|
+
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;
|
|
1066
|
+
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;
|
|
1067
|
+
getFieldById(id: string | number, index?: number): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1068
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1069
|
+
}> | (Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
1070
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
1071
|
+
}> | undefined)[] | undefined;
|
|
1072
|
+
getFieldByName(name: string): Field | Field[] | undefined;
|
|
1073
|
+
getFieldByName(name: string, index: number): Field | undefined;
|
|
1074
|
+
markFormToSign(): Promise<void>;
|
|
1075
|
+
viewSigns(): Promise<TSignaturesData | undefined>;
|
|
1076
|
+
private cucCmpByAttId;
|
|
1077
|
+
private cucCmpByFldId;
|
|
1078
|
+
private cucCmpByAttName;
|
|
1079
|
+
getCustomComponentByFldId(fldId: number): CustomComponent | undefined;
|
|
1080
|
+
getCustomComponentByAttId(attId: number): CustomComponent | undefined;
|
|
1081
|
+
getCustomComponentByAttName(attName: string): CustomComponent | undefined;
|
|
1082
|
+
private mustRenderFields;
|
|
1083
|
+
addFieldToRender(fldId: string, fldIndex?: number): void;
|
|
1084
|
+
markFieldAsRendered(fldId: string, fldIndex?: number): void;
|
|
1085
|
+
init(): Promise<void>;
|
|
1086
|
+
runEvent(eventType: TFormEventName): Promise<void>;
|
|
1087
|
+
validate(): Promise<true | Field>;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
type TCustomComponentState = {
|
|
1091
|
+
isLoading: boolean;
|
|
1092
|
+
attributes: Record<string, any[]>;
|
|
1093
|
+
properties: Record<string, any>;
|
|
1094
|
+
additional: any;
|
|
1095
|
+
};
|
|
1096
|
+
declare class CustomComponent {
|
|
1097
|
+
#private;
|
|
1098
|
+
readonly definition: TCustomComponentDefinition;
|
|
1099
|
+
form: Form;
|
|
1100
|
+
private _state;
|
|
1101
|
+
constructor(definition: TCustomComponentDefinition);
|
|
1102
|
+
get state(): DeepReadonly<TCustomComponentState>;
|
|
1103
|
+
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>;
|
|
1104
|
+
init(form: Form): Promise<void>;
|
|
1105
|
+
private parseStateObject;
|
|
1106
|
+
processResult(res?: TCustomComponentDefaultResponse | null): Promise<void>;
|
|
1107
|
+
protected getScriptEventParams(fncParams: TFncParams[]): unknown[];
|
|
1108
|
+
protected fireScriptEvents(event: ComponentEvent): Promise<boolean>;
|
|
1109
|
+
fireEvent(evtName: string): Promise<void>;
|
|
1110
|
+
getProperty(prpName: string): any;
|
|
1111
|
+
private postMessage;
|
|
1112
|
+
setStringValue(attName: string, value: string): Promise<void>;
|
|
1113
|
+
getStringValue(attName: string): string;
|
|
1114
|
+
getValue(attName: string, index?: number): any;
|
|
1115
|
+
setValue(attName: string, value: any, index: number): Promise<void>;
|
|
1116
|
+
setProperty(prpName: string, value: any): Promise<void>;
|
|
1117
|
+
sendMessage(payload: any): Promise<void>;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
type TTranslationState = {
|
|
1121
|
+
id: string;
|
|
1122
|
+
label: string;
|
|
1123
|
+
hasChanged: boolean;
|
|
1124
|
+
isTranslated: boolean;
|
|
1125
|
+
remoteValue?: string;
|
|
1126
|
+
tempValue: string;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
declare class Translation {
|
|
1130
|
+
state: TTranslationState;
|
|
1131
|
+
constructor(state: Pick<TTranslationState, 'id' | 'label' | 'isTranslated'>);
|
|
1132
|
+
cancelTranslation(): void;
|
|
1133
|
+
readTranslations(url: string): Promise<void>;
|
|
1134
|
+
reset(): void;
|
|
1135
|
+
setTempValue(str: string): void;
|
|
1136
|
+
submitTranslation(value: string, url: string): void;
|
|
1137
|
+
get langId(): string;
|
|
1138
|
+
get value(): string;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface InitialTradMap {
|
|
1142
|
+
[key: string]: boolean;
|
|
1143
|
+
}
|
|
1144
|
+
declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFieldProperties = TApiaTranslatableFieldProperties, ValueType = any, FieldDefinition extends TApiaFieldWithAttributeBaseProps<FieldProps> = TApiaFieldWithAttributeBaseProps<FieldProps>> extends FieldWithAttribute<FieldProps, ValueType, FieldDefinition> {
|
|
1145
|
+
translations: Map<string, Translation>;
|
|
1146
|
+
selectedLanguageId: string;
|
|
1147
|
+
isTradLoading: boolean;
|
|
1148
|
+
definitionTradParsed: InitialTradMap;
|
|
1149
|
+
constructor(props: TApiaFieldWithAttributeBaseProps<FieldProps>);
|
|
1150
|
+
private extractTrad;
|
|
1151
|
+
private getLanguages;
|
|
1152
|
+
init(form: Form): Promise<void>;
|
|
1153
|
+
cancelTranslations(): void;
|
|
1154
|
+
changeLanguage(langId: string): Promise<void>;
|
|
1155
|
+
getTranslation(id: string): Translation | undefined;
|
|
1156
|
+
getCurrentTranslation(): Translation | undefined;
|
|
1157
|
+
getTranslations(): Map<string, Translation>;
|
|
1158
|
+
submitTranslations(): void;
|
|
1159
|
+
syncTranslation(): Promise<void>;
|
|
1160
|
+
validate(): Promise<boolean>;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
|
|
1164
|
+
type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
|
|
1165
|
+
|
|
1166
|
+
type TProcess = {
|
|
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
|
+
};
|
|
1258
|
+
|
|
1259
|
+
type NotificationIcon = string;
|
|
1260
|
+
type NotificationType = 'info' | 'error' | 'success' | 'warning';
|
|
1261
|
+
type NotificationDefinition = {
|
|
1262
|
+
icon?: NotificationIcon;
|
|
1263
|
+
id?: string | number;
|
|
1264
|
+
isOpen?: boolean;
|
|
1265
|
+
message: string;
|
|
1266
|
+
stackTrace?: string;
|
|
1267
|
+
title?: string;
|
|
1268
|
+
type?: NotificationType;
|
|
1269
|
+
};
|
|
1270
|
+
declare abstract class Notification<State extends NotificationDefinition = NotificationDefinition> {
|
|
1271
|
+
readonly props: State;
|
|
1272
|
+
protected state: State;
|
|
1273
|
+
constructor(props: State);
|
|
1274
|
+
get icon(): string | undefined;
|
|
1275
|
+
get id(): string | number | undefined;
|
|
1276
|
+
get isOpen(): boolean | undefined;
|
|
1277
|
+
get message(): string;
|
|
1278
|
+
get stackTrace(): string | undefined;
|
|
1279
|
+
get title(): string | undefined;
|
|
1280
|
+
get type(): NotificationType | undefined;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* El comportamiento de esta función se explica por su
|
|
1285
|
+
* nombre.
|
|
1286
|
+
*/
|
|
1287
|
+
declare function returnExactlyTheSame(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
1288
|
+
declare const parseFileDefinition: (fileDefinition: TFileUploaded | TUploaderFileInfo, isSignRequired: boolean) => TUploaderFileInfo;
|
|
1289
|
+
type TOnUploadProgress = (progress: number) => void;
|
|
1290
|
+
declare class UploaderApi {
|
|
1291
|
+
id: string;
|
|
1292
|
+
protected type: 'E' | 'P';
|
|
1293
|
+
modalConfig: TModalConfig;
|
|
1294
|
+
maxFiles: number;
|
|
1295
|
+
modalController: UploaderModalController | null;
|
|
1296
|
+
allowTranslations: boolean;
|
|
1297
|
+
langs: Record<number, string> | undefined;
|
|
1298
|
+
currentConfiguration: TUploaderLoadCurrentFunctionMessages | undefined;
|
|
1299
|
+
docTypePermittedObjId: string | undefined;
|
|
1300
|
+
state: UploaderState;
|
|
1301
|
+
get filesArray(): TUploaderFileInfo[];
|
|
1302
|
+
constructor(id: string, type: 'E' | 'P', modalConfig: TModalConfig);
|
|
1303
|
+
onInit(): Promise<void>;
|
|
1304
|
+
onStartUpload(): Promise<void>;
|
|
1305
|
+
autoLock(): Promise<boolean>;
|
|
1306
|
+
notify(notification: NotificationDefinition): void;
|
|
1307
|
+
protected getAjaxUrl(): string;
|
|
1308
|
+
getDocTypes(): TDocType[];
|
|
1309
|
+
getCurrentDocTypeId(): string;
|
|
1310
|
+
getCurrentDocType(): TDocType | undefined;
|
|
1311
|
+
getInProgressFiles(): File[];
|
|
1312
|
+
getHiddenFiles(): File[];
|
|
1313
|
+
getExistingFiles(): Record<string, TUploaderFileInfo>;
|
|
1314
|
+
getProgress(): number;
|
|
1315
|
+
getHasAllDocTypes(): boolean | undefined;
|
|
1316
|
+
getDocumentInfo({ docId: apiId, downloadDocId: docId, }: TRequireOnlyOne<{
|
|
1317
|
+
docId: string;
|
|
1318
|
+
downloadDocId: string;
|
|
1319
|
+
}>, newElem?: boolean): Promise<({
|
|
1320
|
+
canClose: boolean;
|
|
1321
|
+
type: string;
|
|
1322
|
+
} & {
|
|
1323
|
+
function: {
|
|
1324
|
+
name: string;
|
|
1325
|
+
} & {
|
|
1326
|
+
data: {
|
|
1327
|
+
onClose: string;
|
|
1328
|
+
general: TApiaDocumentDefinition;
|
|
1329
|
+
permissions: {
|
|
1330
|
+
pool: TDocumentPermission | TDocumentPermission[];
|
|
1331
|
+
user: TDocumentPermission | TDocumentPermission[];
|
|
1332
|
+
};
|
|
1333
|
+
versions: {
|
|
1334
|
+
version: TDocumentVersion | TDocumentVersion[];
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
currentUsrPems: {
|
|
1338
|
+
usrCanModify: boolean;
|
|
1339
|
+
};
|
|
1340
|
+
metadatas: {
|
|
1341
|
+
metadata: TDocumentMetadata | TDocumentMetadata[];
|
|
1342
|
+
};
|
|
1343
|
+
docDownHistory: {
|
|
1344
|
+
docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
} & _apia_notifications.TNotificationMessage) | null>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Devuelve un proxy que permite modificar los
|
|
1350
|
+
* archivos por su id.
|
|
1351
|
+
*/
|
|
1352
|
+
get indexedFiles(): Record<string, TUploaderFileInfo>;
|
|
1353
|
+
clearFile(name: string): void;
|
|
1354
|
+
clearFiles(): void;
|
|
1355
|
+
clearState(): void;
|
|
1356
|
+
checkLockDocument(id: string, shouldNotifyUnlocked?: boolean): Promise<string | boolean>;
|
|
1357
|
+
setCurrentDocTypeId(docTypeId: string): void;
|
|
1358
|
+
ajaxUploadStart(newFiles?: File[]): Promise<boolean | undefined>;
|
|
1359
|
+
reloadMetadata(props?: Partial<{
|
|
1360
|
+
docId: string;
|
|
1361
|
+
docTypeId: number | string;
|
|
1362
|
+
}>, additionalProps?: Record<string, unknown>): Promise<void>;
|
|
1363
|
+
addFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<void>;
|
|
1364
|
+
checkWebDavLock(docId: string): Promise<unknown>;
|
|
1365
|
+
checkSignature(file: TUploaderFileInfo): Promise<_apia_api.TApiaApiAxiosResponse<({
|
|
1366
|
+
markedToSign: boolean;
|
|
1367
|
+
} & _apia_notifications.TNotificationMessage) | null> | null>;
|
|
1368
|
+
editDocument(id: string): Promise<void>;
|
|
1369
|
+
downloadDocument(id: string, version?: string): Promise<void>;
|
|
1370
|
+
deleteDocument(id: string, langId?: number): Promise<void>;
|
|
1371
|
+
markFileToSign(id: string, langId?: number): Promise<void>;
|
|
1372
|
+
/**
|
|
1373
|
+
* Por el momento realiza la descarga de todos los archivos
|
|
1374
|
+
* que estén subidos.
|
|
1375
|
+
*/
|
|
1376
|
+
downloadMultipleDocuments(): void;
|
|
1377
|
+
confirmDropModal(conf?: {
|
|
1378
|
+
langId?: number;
|
|
1379
|
+
translatingFile?: TUploaderFileInfo;
|
|
1380
|
+
}): Promise<boolean>;
|
|
1381
|
+
loadCurrentDocuments(): Promise<void>;
|
|
1382
|
+
lockDocument(id: string): Promise<void>;
|
|
1383
|
+
protected evaluateDeleteDocumentResult(result: unknown): boolean;
|
|
1384
|
+
private setTranslationFile;
|
|
1385
|
+
protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
|
|
1386
|
+
protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
|
|
1387
|
+
protected getConfirmDropModalParameters: typeof returnExactlyTheSame;
|
|
1388
|
+
protected getCheckLockDocumentParameters: typeof returnExactlyTheSame;
|
|
1389
|
+
protected getCheckWebDavLockParameters: typeof returnExactlyTheSame;
|
|
1390
|
+
protected getConfirmDropModalPostdata: typeof returnExactlyTheSame;
|
|
1391
|
+
protected getConfirmDropModalMetadataString: ({ metadata, }: {
|
|
1392
|
+
metadata: TDocumentMetadata[];
|
|
1393
|
+
}) => string;
|
|
1394
|
+
protected getConfirmDropModalPermissionsString: ({ poolsPermissions, usersPermissions, }: {
|
|
1395
|
+
poolsPermissions: IPoolsPermissions[];
|
|
1396
|
+
usersPermissions: IUsersPermissions[];
|
|
1397
|
+
}) => string;
|
|
1398
|
+
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | [
|
|
1399
|
+
]) => string;
|
|
1400
|
+
protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
|
|
1401
|
+
protected getClearTempFilesParameters: typeof returnExactlyTheSame;
|
|
1402
|
+
protected getDocumentInfoParameters: typeof returnExactlyTheSame;
|
|
1403
|
+
protected getDownloadMultipleDocumentsParameters: typeof returnExactlyTheSame;
|
|
1404
|
+
protected getEditDocumentParameters: typeof returnExactlyTheSame;
|
|
1405
|
+
protected getLockDocumentParameters: typeof returnExactlyTheSame;
|
|
1406
|
+
protected getMarkFileToSignParameters: typeof returnExactlyTheSame;
|
|
1407
|
+
protected getProcessDroppedFilesParameters: typeof returnExactlyTheSame;
|
|
1408
|
+
protected getProcessDroppedFilesPostdata: typeof returnExactlyTheSame;
|
|
1409
|
+
protected getReloadMetadataParameters: typeof returnExactlyTheSame;
|
|
1410
|
+
protected getSaveDroppedFilesParameters: typeof returnExactlyTheSame;
|
|
1411
|
+
protected filterAlreadyUploadedFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
|
|
1412
|
+
protected filterByFilesAmountLimit(files: File[]): File[];
|
|
1413
|
+
protected filterAcceptedFiles(files: File[], shouldNotify?: boolean, docTypeId?: string | TDocType): File[];
|
|
1414
|
+
protected filterExistingFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
|
|
1415
|
+
protected filterVersioningFiles(files: File[], conf?: {
|
|
1416
|
+
langId?: number;
|
|
1417
|
+
strictMode?: boolean;
|
|
1418
|
+
translatingFile?: TUploaderFileInfo;
|
|
1419
|
+
shouldReset?: boolean;
|
|
1420
|
+
}): File[];
|
|
1421
|
+
parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
declare class UploaderModalController {
|
|
1425
|
+
api: UploaderApi;
|
|
1426
|
+
modalConfig: TModalConfig;
|
|
1427
|
+
state: UploaderModalState;
|
|
1428
|
+
constructor(api: UploaderApi, modalConfig: TModalConfig);
|
|
1429
|
+
get allMetadata(): TDocumentMetadata[];
|
|
1430
|
+
get allowAllType(): "" | "M" | "R";
|
|
1431
|
+
get description(): string;
|
|
1432
|
+
get docFolder(): number | undefined;
|
|
1433
|
+
get docExpDate(): string | undefined;
|
|
1434
|
+
get docTypes(): TDocType[];
|
|
1435
|
+
get freeMetadata(): TDocumentMetadata[];
|
|
1436
|
+
get exitingFiles(): Record<string, TUploaderFileInfo>;
|
|
1437
|
+
get inProgressFiles(): File[];
|
|
1438
|
+
get hiddenFiles(): File[];
|
|
1439
|
+
get progress(): number;
|
|
1440
|
+
get metadata(): TDocumentMetadata[];
|
|
1441
|
+
get selectedDocTypeId(): string;
|
|
1442
|
+
get selectedDocType(): TDocType | undefined;
|
|
1443
|
+
addMetadata(): void;
|
|
1444
|
+
addFiles(files: File[]): void;
|
|
1445
|
+
changeDocType(docTypeId: string): Promise<void>;
|
|
1446
|
+
clearFile(name: string): void;
|
|
1447
|
+
clearFiles(): void;
|
|
1448
|
+
clearState(): void;
|
|
1449
|
+
confirm(): Promise<boolean>;
|
|
1450
|
+
deleteMetadata(indices: number[]): void;
|
|
1451
|
+
deletePermission(item: IPoolsPermissions | IUsersPermissions): void;
|
|
1452
|
+
protected onChangeExtension(): void;
|
|
1453
|
+
openModal(): Promise<void>;
|
|
1454
|
+
setDescription(desc: string): void;
|
|
1455
|
+
protected resetMetadata(): Promise<void>;
|
|
1456
|
+
validate(): boolean;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
type TUploadModalOpener = (controller: UploaderModalController) => void;
|
|
1460
|
+
type UploaderModalState = {
|
|
1461
|
+
fileReqError: boolean;
|
|
1462
|
+
metadata: {
|
|
1463
|
+
metadataArray: TDocumentMetadata[];
|
|
1464
|
+
isFreeMetadata: boolean;
|
|
1465
|
+
freeMetadataArray: TDocumentMetadata[];
|
|
1466
|
+
};
|
|
1467
|
+
docFolder?: number;
|
|
1468
|
+
docExpDate?: string;
|
|
1469
|
+
description: string;
|
|
1470
|
+
permissions: {
|
|
1471
|
+
allowAllType: 'M' | 'R' | '';
|
|
1472
|
+
users: IUsersPermissions[];
|
|
1473
|
+
pools: IPoolsPermissions[];
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
type UploaderState = {
|
|
1477
|
+
progress: number;
|
|
1478
|
+
allowedTypes: TDocType[];
|
|
1479
|
+
selectedDocTypeId: string;
|
|
1480
|
+
versioningFile: TUploaderFileInfo | null;
|
|
1481
|
+
inProgressFiles: File[];
|
|
1482
|
+
hiddenFiles: File[];
|
|
1483
|
+
files: Record<string, TUploaderFileInfo>;
|
|
1484
|
+
translatedFiles: Map<string, Map<number, TUploaderFileInfo>>;
|
|
1485
|
+
hasAllDocTypes?: boolean;
|
|
1486
|
+
selectedFiles: string[];
|
|
1487
|
+
};
|
|
1488
|
+
interface IUsersPermissions {
|
|
1489
|
+
userId: string;
|
|
1490
|
+
userLogin: string;
|
|
1491
|
+
canUpdate: boolean;
|
|
1492
|
+
}
|
|
1493
|
+
interface IPoolsPermissions {
|
|
1494
|
+
poolId: string;
|
|
1495
|
+
poolName: string;
|
|
1496
|
+
canUpdate: boolean;
|
|
1497
|
+
}
|
|
1498
|
+
type TUploaderFileInfo = Omit<TFileUploaded, 'locked' | 'lock' | 'userLocking' | 'lockedBy'> & {
|
|
1499
|
+
canEdit?: boolean;
|
|
1500
|
+
canRead?: boolean;
|
|
1501
|
+
isLocked: boolean;
|
|
1502
|
+
isLockedByMe: boolean;
|
|
1503
|
+
isVirtual: boolean;
|
|
1504
|
+
lockingUser: string;
|
|
1505
|
+
};
|
|
1506
|
+
type TFileUploaded = {
|
|
1507
|
+
canEdit?: boolean;
|
|
1508
|
+
canWrite?: boolean;
|
|
1509
|
+
canRead?: boolean;
|
|
1510
|
+
description?: string;
|
|
1511
|
+
docDescription?: string;
|
|
1512
|
+
docId: string;
|
|
1513
|
+
docLang?: string;
|
|
1514
|
+
docLangGroup?: string;
|
|
1515
|
+
docName?: string;
|
|
1516
|
+
docSize?: string;
|
|
1517
|
+
docTypeFreeMetadata?: boolean;
|
|
1518
|
+
docTypeId?: string;
|
|
1519
|
+
docTypeLabel?: string;
|
|
1520
|
+
docTypeTitle: string;
|
|
1521
|
+
downloadDocId: string;
|
|
1522
|
+
isMarkedToSign: boolean;
|
|
1523
|
+
markedToSign: boolean;
|
|
1524
|
+
lock?: string | boolean;
|
|
1525
|
+
locked?: string | boolean;
|
|
1526
|
+
lockedBy?: string;
|
|
1527
|
+
name?: string;
|
|
1528
|
+
onlyInformation: boolean;
|
|
1529
|
+
prefix: string;
|
|
1530
|
+
preview: string;
|
|
1531
|
+
sign?: string | boolean;
|
|
1532
|
+
size?: string;
|
|
1533
|
+
userLocking: string;
|
|
1534
|
+
virtualDoc?: boolean;
|
|
1535
|
+
};
|
|
1536
|
+
type TAjaxUploadStart = TApiaLoad<TApiaFunction<{
|
|
1537
|
+
general: {
|
|
1538
|
+
isDocTypeDisabled: boolean;
|
|
1539
|
+
useDocTypePermitted: boolean;
|
|
1540
|
+
createMode: boolean;
|
|
1541
|
+
allowAllTypes: string;
|
|
1542
|
+
allDocTypes: boolean;
|
|
1543
|
+
};
|
|
1544
|
+
docTypes: {
|
|
1545
|
+
docType: TDocType | TDocType[];
|
|
1546
|
+
};
|
|
1547
|
+
metadatas: {
|
|
1548
|
+
metadata: TDocumentMetadata | TDocumentMetadata[];
|
|
1549
|
+
};
|
|
1550
|
+
}, false>>;
|
|
1551
|
+
type TDocType = {
|
|
1552
|
+
docExts: string;
|
|
1553
|
+
maxSize: number;
|
|
1554
|
+
id: string;
|
|
1555
|
+
title: string;
|
|
1556
|
+
free: boolean;
|
|
1557
|
+
selected: boolean;
|
|
1558
|
+
};
|
|
1559
|
+
type TDocumentMetadata = {
|
|
1560
|
+
free: string;
|
|
1561
|
+
id: string;
|
|
1562
|
+
name: string;
|
|
1563
|
+
required: 'Y' | 'N';
|
|
1564
|
+
title: string;
|
|
1565
|
+
type: 'S' | 'N' | 'D';
|
|
1566
|
+
value: string;
|
|
1567
|
+
errorMessage: string;
|
|
1568
|
+
};
|
|
1569
|
+
type TModalConfig = {
|
|
1570
|
+
allowDocumentsMonitor: boolean;
|
|
1571
|
+
allowPickFromDirectories: boolean;
|
|
1572
|
+
collapsePermissions: boolean;
|
|
1573
|
+
collapseDirectories: boolean;
|
|
1574
|
+
collapseMetadata: boolean;
|
|
1575
|
+
defaultDirectory?: number;
|
|
1576
|
+
monitorId?: number;
|
|
1577
|
+
oneClickUpload: boolean;
|
|
1578
|
+
showDirectoriesStructure: boolean;
|
|
1579
|
+
showExpDate: boolean;
|
|
1580
|
+
showPermissions: boolean;
|
|
1581
|
+
showMetadata: boolean;
|
|
1582
|
+
translationId?: string;
|
|
1583
|
+
};
|
|
1584
|
+
type TUploaderLoadCurrentFunctionMessages = {
|
|
1585
|
+
allowSign: boolean;
|
|
1586
|
+
allowLock: boolean;
|
|
1587
|
+
allowMultiple: boolean;
|
|
1588
|
+
readOnly: boolean;
|
|
1589
|
+
};
|
|
1590
|
+
type TSaveDroppedFilesConf = {
|
|
1591
|
+
langId?: number;
|
|
1592
|
+
strictMode?: boolean;
|
|
1593
|
+
translatingFile?: TUploaderFileInfo;
|
|
1594
|
+
shouldReset?: boolean;
|
|
1595
|
+
};
|
|
1596
|
+
type TAjaxUploadFileStatus = TApiaLoad<TApiaFunction<{
|
|
1597
|
+
message: {
|
|
1598
|
+
label: string;
|
|
1599
|
+
name: string;
|
|
1600
|
+
}[];
|
|
1601
|
+
}>>;
|
|
1602
|
+
type TProcessDroppedFiles = TApiaLoad<TApiaFunction<{
|
|
1603
|
+
principal: {
|
|
1604
|
+
docInfo: TDocInfo | TDocInfo[];
|
|
1605
|
+
docTypes: {
|
|
1606
|
+
'data-free': boolean;
|
|
1607
|
+
docTypeExtensions: string;
|
|
1608
|
+
docTypeId: string;
|
|
1609
|
+
docTypeMaxSize: number;
|
|
1610
|
+
docTypeName: string;
|
|
1611
|
+
};
|
|
1612
|
+
elemInfo: {
|
|
1613
|
+
elemId: string;
|
|
1614
|
+
elemType: string;
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
}, false>>;
|
|
1618
|
+
type TDocInfo = {
|
|
1619
|
+
docInfoName: string;
|
|
1620
|
+
docInfoSize: string;
|
|
1621
|
+
docInfoTmpId: string;
|
|
1622
|
+
docInfoType: string;
|
|
1623
|
+
};
|
|
1624
|
+
type TConfirmDropModal = TApiaLoad<TApiaFunction<{
|
|
1625
|
+
general: TFileUploaded | TFileUploaded[];
|
|
1626
|
+
fromForm: {
|
|
1627
|
+
fromForm: {
|
|
1628
|
+
fromForm: boolean;
|
|
1629
|
+
}[];
|
|
1630
|
+
};
|
|
1631
|
+
}, false>>;
|
|
1632
|
+
type TApiaDocumentDefinition = {
|
|
1633
|
+
docDesc: string;
|
|
1634
|
+
docTypeLabel: string;
|
|
1635
|
+
docId: string;
|
|
1636
|
+
prefix: string;
|
|
1637
|
+
docSize: string;
|
|
1638
|
+
docDate: string;
|
|
1639
|
+
docDwnExternal: string;
|
|
1640
|
+
docExpDate: string;
|
|
1641
|
+
docFolder: string;
|
|
1642
|
+
docFolderPath: string;
|
|
1643
|
+
docUsu: string;
|
|
1644
|
+
docAllPoolPerm: string;
|
|
1645
|
+
docName: string;
|
|
1646
|
+
docTypeId: string;
|
|
1647
|
+
locked: boolean;
|
|
1648
|
+
downloadDocId: string;
|
|
1649
|
+
};
|
|
1650
|
+
type TUploaderLoadCurrentFunction = {
|
|
1651
|
+
general?: TFileUploaded | TFileUploaded[];
|
|
1652
|
+
messages: {
|
|
1653
|
+
message: {
|
|
1654
|
+
name: keyof TUploaderLoadCurrentFunctionMessages;
|
|
1655
|
+
label: boolean;
|
|
1656
|
+
} | {
|
|
1657
|
+
name: keyof TUploaderLoadCurrentFunctionMessages;
|
|
1658
|
+
label: boolean;
|
|
1659
|
+
}[];
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
type TDocumentInformation = TApiaLoad<TApiaFunction<{
|
|
1663
|
+
data: {
|
|
1664
|
+
onClose: string;
|
|
1665
|
+
general: TApiaDocumentDefinition;
|
|
1666
|
+
permissions: {
|
|
1667
|
+
pool: TDocumentPermission | TDocumentPermission[];
|
|
1668
|
+
user: TDocumentPermission | TDocumentPermission[];
|
|
1669
|
+
};
|
|
1670
|
+
versions: {
|
|
1671
|
+
version: TDocumentVersion | TDocumentVersion[];
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
currentUsrPems: {
|
|
1675
|
+
usrCanModify: boolean;
|
|
1676
|
+
};
|
|
1677
|
+
metadatas: {
|
|
1678
|
+
metadata: TDocumentMetadata | TDocumentMetadata[];
|
|
1679
|
+
};
|
|
1680
|
+
docDownHistory: {
|
|
1681
|
+
docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
|
|
1682
|
+
};
|
|
1683
|
+
}, false>>;
|
|
1684
|
+
type TDocumentPermission = {
|
|
1685
|
+
id: string;
|
|
1686
|
+
name: string;
|
|
1687
|
+
permType: 'R' | 'M';
|
|
1688
|
+
};
|
|
1689
|
+
type TDocumentDownloadHistory = {
|
|
1690
|
+
hisDwn: string;
|
|
1691
|
+
hisUsr: string;
|
|
1692
|
+
hisVer: string;
|
|
1693
|
+
};
|
|
1694
|
+
type TDocumentVersion = {
|
|
1695
|
+
verUser: string;
|
|
1696
|
+
verNumber: string;
|
|
1697
|
+
verDate: string;
|
|
1698
|
+
};
|
|
1699
|
+
type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
1700
|
+
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
1701
|
+
}[Keys];
|
|
1702
|
+
|
|
1703
|
+
declare class Process {
|
|
1704
|
+
state: TProcess | null;
|
|
1705
|
+
uploader: UploaderApi;
|
|
1706
|
+
constructor();
|
|
1707
|
+
get name(): string | undefined;
|
|
1708
|
+
init(): Promise<void>;
|
|
1709
|
+
getConfirmParams(): {
|
|
1710
|
+
cmbProPri: string | undefined;
|
|
1711
|
+
selCal: string | undefined;
|
|
1712
|
+
};
|
|
1713
|
+
setPriority(newPriority: string): void;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
declare class Task {
|
|
1717
|
+
#private;
|
|
1718
|
+
constructor(task: any);
|
|
1719
|
+
setPriority(newPriority: string): void;
|
|
1720
|
+
get name(): string;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
type TEntity = {
|
|
1724
|
+
title: string;
|
|
1725
|
+
readOnly: boolean;
|
|
1726
|
+
separator: string;
|
|
1727
|
+
associations: {
|
|
1728
|
+
nameValue: string;
|
|
1729
|
+
};
|
|
1730
|
+
date: {
|
|
1731
|
+
label: string;
|
|
1732
|
+
toolTip: string;
|
|
1733
|
+
value: string;
|
|
1734
|
+
};
|
|
1735
|
+
entityType: {
|
|
1736
|
+
label: string;
|
|
1737
|
+
toolTip: string;
|
|
1738
|
+
value: string;
|
|
1739
|
+
};
|
|
1740
|
+
identifier: {
|
|
1741
|
+
label: string;
|
|
1742
|
+
toolTip: string;
|
|
1743
|
+
value?: string;
|
|
1744
|
+
prefix?: {
|
|
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
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
image: {
|
|
1775
|
+
label: string;
|
|
1776
|
+
toolTip: string;
|
|
1777
|
+
};
|
|
1778
|
+
status: {
|
|
1779
|
+
name: string;
|
|
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
|
+
}[];
|
|
1790
|
+
};
|
|
1791
|
+
user: {
|
|
1792
|
+
label: string;
|
|
1793
|
+
name: string;
|
|
1794
|
+
toolTip: string;
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
declare class Entity {
|
|
1799
|
+
state: TEntity | null;
|
|
1800
|
+
uploader: UploaderApi;
|
|
1801
|
+
constructor();
|
|
1802
|
+
get name(): string | undefined;
|
|
1803
|
+
init(): Promise<void>;
|
|
1804
|
+
getConfirmParams(): {
|
|
1805
|
+
busEntSta: string | undefined;
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
type TObservations = {
|
|
1810
|
+
observations: TObservation[] | [];
|
|
1811
|
+
newObservation: {
|
|
1812
|
+
commentValue: string;
|
|
1813
|
+
chkAddAlert: boolean;
|
|
1814
|
+
chkAddAllAlert: boolean;
|
|
1815
|
+
chkRemAlert: boolean;
|
|
1816
|
+
} | null;
|
|
1817
|
+
};
|
|
1818
|
+
type TObservation = {
|
|
1819
|
+
name: string;
|
|
1820
|
+
date: string;
|
|
1821
|
+
userTitle: string;
|
|
1822
|
+
groupTitle: string;
|
|
1823
|
+
taskTitle: string;
|
|
1824
|
+
userLabel: string;
|
|
1825
|
+
groupLabel: string;
|
|
1826
|
+
taskLabel: string;
|
|
1827
|
+
checked?: boolean;
|
|
1828
|
+
disabled?: boolean;
|
|
1829
|
+
marked?: boolean;
|
|
1830
|
+
comment: string;
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
declare class Observations {
|
|
1834
|
+
state: TObservations;
|
|
1835
|
+
constructor();
|
|
1836
|
+
init(): Promise<void>;
|
|
1837
|
+
getConfirmParams(): {
|
|
1838
|
+
txtComment: string | undefined;
|
|
1839
|
+
chkAddAlert: string;
|
|
1840
|
+
chkAddAllAlert: string;
|
|
1841
|
+
chkRemAlert: string;
|
|
1842
|
+
};
|
|
1843
|
+
setPriority(newPriority: string): void;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
type ConfirmStep = 'CHECK_LOCK' | 'CONFIRM' | 'CHECK_SIGN' | 'CHECK_WIZARD' | 'SIGN';
|
|
1847
|
+
type Status = {
|
|
1848
|
+
step?: ConfirmStep;
|
|
1849
|
+
error?: string;
|
|
1850
|
+
finishedWithError?: boolean;
|
|
1851
|
+
};
|
|
1852
|
+
declare abstract class FlowModal<T extends {
|
|
1853
|
+
confirmed?: boolean;
|
|
1854
|
+
}> {
|
|
1855
|
+
abstract confirm(result: T): Promise<Status | FlowModal<any>>;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
1859
|
+
type TErrMessage = {
|
|
1860
|
+
message: {
|
|
1861
|
+
text: string;
|
|
1862
|
+
label?: string;
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
type TFetchTaskActionResponse = {
|
|
1866
|
+
onClose?: TOnClose;
|
|
1867
|
+
sysMessages?: TErrMessage;
|
|
1868
|
+
sysExceptions?: TErrMessage;
|
|
1869
|
+
type?: string;
|
|
1870
|
+
actions?: {
|
|
1871
|
+
action: {
|
|
1872
|
+
param: {
|
|
1873
|
+
text: string;
|
|
1874
|
+
}[];
|
|
1875
|
+
toDo: string;
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
load?: {
|
|
1879
|
+
canClose: boolean;
|
|
1880
|
+
type: string;
|
|
1881
|
+
text: {
|
|
1882
|
+
label: string;
|
|
1883
|
+
closeAll: boolean;
|
|
1884
|
+
addClass?: string;
|
|
1885
|
+
title?: string;
|
|
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>, {
|
|
1965
|
+
definition: Omit<TApiaFieldBaseDefinition<TApiaFieldCommonProperties>, "properties">;
|
|
1966
|
+
}> | undefined>;
|
|
1967
|
+
save(): Promise<TApiaApiAxiosResponse<(TFetchTaskActionResponse & ResponseSysMessages) | null> | null | undefined>;
|
|
1968
|
+
viewDocs(): Promise<(Record<string, unknown> & ResponseSysMessages) | undefined>;
|
|
1969
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
1970
|
+
validate(): Promise<true | Field>;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
declare class MessageNotification extends Notification {
|
|
1974
|
+
close(): void;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
declare class StatusNotification extends Notification<NotificationDefinition & {
|
|
1978
|
+
blocking: boolean;
|
|
1979
|
+
}> {
|
|
1980
|
+
readonly props: NotificationDefinition & {
|
|
1981
|
+
blocking: boolean;
|
|
1982
|
+
};
|
|
1983
|
+
constructor(props: NotificationDefinition & {
|
|
1984
|
+
blocking: boolean;
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
declare class Notifications {
|
|
1989
|
+
#private;
|
|
1990
|
+
static get instance(): Notifications;
|
|
1991
|
+
private emitter;
|
|
1992
|
+
private constructor();
|
|
1993
|
+
protected notifications: Notification[];
|
|
1994
|
+
add(notification: Notification): void;
|
|
1995
|
+
getAll(): Notification<NotificationDefinition>[];
|
|
1996
|
+
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
1997
|
+
remove(notification: string | number | Notification): void;
|
|
1998
|
+
on: <K extends "notification">(event: K, cb: Callback<{
|
|
1999
|
+
notification: Notification;
|
|
2000
|
+
}, K>) => UnSubscriber;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
type ButtonEvents = 'onClick';
|
|
2004
|
+
declare class Button extends Field<TApiaButtonProperties> {
|
|
2005
|
+
fireEvent(eventName: ButtonEvents): Promise<boolean>;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
declare class Captcha extends Field<TApiaCaptchaProperties, TApiaFieldBaseDefinition<TApiaCaptchaProperties>, {
|
|
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>;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
type CheckboxEvents = 'onClick';
|
|
2030
|
+
declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boolean> {
|
|
2031
|
+
fireEvent(eventName: CheckboxEvents): Promise<boolean>;
|
|
2032
|
+
protected getInitialValue({ value, properties, }: TApiaFieldWithAttributeBaseProps<TApiaCheckboxProperties>): boolean;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
type EditorEvents = 'onChange';
|
|
2036
|
+
declare class Editor extends TranslatableField<TApiaEditorProperties, string> {
|
|
2037
|
+
fireEvent(eventName: EditorEvents): Promise<boolean>;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
declare class FileUploaderApi extends UploaderApi {
|
|
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
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
declare class File$1 extends TranslatableField<TApiaFileProperties> {
|
|
2051
|
+
uploader: FileUploaderApi;
|
|
2052
|
+
init(form: Form): Promise<void>;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
type GridFooterHandlerState = {
|
|
2056
|
+
isSortUpDisabled: boolean;
|
|
2057
|
+
isSortDownDisabled: boolean;
|
|
2058
|
+
isLoading: boolean;
|
|
2059
|
+
};
|
|
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
|
+
|
|
2080
|
+
type GridEvents = 'gridAdd' | 'gridDelete' | 'gridSort' | 'gridColumnSelect';
|
|
2081
|
+
type GridAction<P extends any[] = any[]> = (...params: P) => Promise<boolean>;
|
|
2082
|
+
type GridColumn = {
|
|
2083
|
+
label: string;
|
|
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>;
|
|
2100
|
+
};
|
|
2101
|
+
interface IGrid {
|
|
2102
|
+
definition: Omit<TApiaFieldBaseDefinition<GridProps>, 'properties'>;
|
|
2103
|
+
properties: GridProps;
|
|
2104
|
+
state: {
|
|
2105
|
+
header: GridColumn[];
|
|
2106
|
+
isLoading: boolean;
|
|
2107
|
+
selectedIndices: number[];
|
|
2108
|
+
showAdditionalColumn: boolean;
|
|
2109
|
+
};
|
|
2110
|
+
init(form: Form): Promise<void>;
|
|
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>;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
declare class Grid extends FieldWithIndexedFields<GridProps, TApiaFieldBaseDefinition<GridProps>, {
|
|
2138
|
+
definition: Omit<TApiaFieldBaseDefinition<GridProps>, 'properties'>;
|
|
2139
|
+
header: GridColumn[];
|
|
2140
|
+
isLoading: boolean;
|
|
2141
|
+
selectedIndices: number[];
|
|
2142
|
+
showAdditionalColumn: boolean;
|
|
2143
|
+
}> implements IGrid {
|
|
2144
|
+
#private;
|
|
2145
|
+
private _controller;
|
|
2146
|
+
get controller(): Controller2;
|
|
2147
|
+
setController(c: Controller2): void;
|
|
2148
|
+
constructor({ properties, field, ...definition }: TApiaGridDefinition);
|
|
2149
|
+
private footerHandler;
|
|
2150
|
+
private initHeadersSizes;
|
|
2151
|
+
init(form: Form): Promise<void>;
|
|
2152
|
+
protected calculateMustShowAdditionalColumn(): void;
|
|
2153
|
+
protected parseAddRowXml(str: string): Promise<boolean>;
|
|
2154
|
+
protected rebuildGrid(xmlString: string, rowsCount: number): Promise<void>;
|
|
2155
|
+
protected runAction<T extends Record<string, any>>(behave: IApiaApiPostConfig<Record<string, any>>): Promise<TApiaApiAxiosResponse<(T & ResponseSysMessages) | null> | null>;
|
|
2156
|
+
get minIndex(): number;
|
|
2157
|
+
/**
|
|
2158
|
+
* Grid methods
|
|
2159
|
+
*/
|
|
2160
|
+
addRow(): Promise<boolean>;
|
|
2161
|
+
clearGrid: GridAction;
|
|
2162
|
+
clearPage: GridAction<[page: number]>;
|
|
2163
|
+
deleteGrid: GridAction;
|
|
2164
|
+
deletePage: GridAction<[page: number]>;
|
|
2165
|
+
/**
|
|
2166
|
+
* @param index Si se pasa, se borran el o los índices provistos. Sino, se borran las filas seleccionadas, si es que hay alguna.
|
|
2167
|
+
*/
|
|
2168
|
+
deleteRow(index?: number | number[]): Promise<boolean>;
|
|
2169
|
+
private getServerEventOfType;
|
|
2170
|
+
protected fireServerEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2171
|
+
getGridFooterHandler(): GridFooterHandler;
|
|
2172
|
+
fireEvent(eventName: GridEvents, params?: FireEventParameters): Promise<boolean>;
|
|
2173
|
+
gotoPage: GridAction<[page: number]>;
|
|
2174
|
+
getCurrentPage(): number;
|
|
2175
|
+
getHeader(): GridColumn[];
|
|
2176
|
+
getMustShowAdditionalColumn(): boolean;
|
|
2177
|
+
getPageCount(): number;
|
|
2178
|
+
getSelectedIndices(): number[];
|
|
2179
|
+
getSelectedItems(): Field<Record<string, any>, TApiaFieldBaseDefinition<Record<string, any>>, {
|
|
2180
|
+
definition: Omit<TApiaFieldBaseDefinition<Record<string, any>>, "properties">;
|
|
2181
|
+
}>[][];
|
|
2182
|
+
isPaged(): boolean;
|
|
2183
|
+
refresh(): Promise<void>;
|
|
2184
|
+
/**
|
|
2185
|
+
* @alias deleteRow
|
|
2186
|
+
*/
|
|
2187
|
+
remove(index?: number | number[]): Promise<boolean>;
|
|
2188
|
+
removeElementsByIndices(array: FieldsGroup[], indicesToRemove: number[]): FieldsGroup[];
|
|
2189
|
+
sortColumn: GridAction<[index: number]>;
|
|
2190
|
+
sortDown(index?: number | number[]): Promise<boolean>;
|
|
2191
|
+
sortUp(index?: number | number[]): Promise<boolean>;
|
|
2192
|
+
private swapRows;
|
|
2193
|
+
private swapRowsIndices;
|
|
2194
|
+
toggleColumnVisibility(fieldName: string, isShown?: boolean): void;
|
|
2195
|
+
toggleDeleteButton(rowIndex: number, isShown?: boolean): void;
|
|
2196
|
+
toggleEditFormButton(rowIndex: number, isShown?: boolean): void;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
declare class Hidden extends FieldWithAttribute<TApiaHiddenProperties> {
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
declare class Image extends Field<TApiaImageProperties> {
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
type InputEvents$1 = 'onChange' | 'onModalReturn';
|
|
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>;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
declare class Label extends Field<TApiaLabelProperties> {
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
declare class Link extends Field<TApiaLinkProperties> {
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
type TApiaModalInputDefinition = TApiaFieldWithAttributeBaseProps<TApiaInputProperties> & {
|
|
2220
|
+
alwaysShowMask?: boolean;
|
|
2221
|
+
cantDecimals?: string;
|
|
2222
|
+
decimalZeroes?: string;
|
|
2223
|
+
fieldType: 'input';
|
|
2224
|
+
isoDateValue?: string;
|
|
2225
|
+
length?: number;
|
|
2226
|
+
mask?: string;
|
|
2227
|
+
maskPlaceholder?: string;
|
|
2228
|
+
regExp?: string;
|
|
2229
|
+
qryId?: string;
|
|
2230
|
+
qry_show_value?: string;
|
|
2231
|
+
value: {
|
|
2232
|
+
showValue: string;
|
|
2233
|
+
storeValue?: string;
|
|
2234
|
+
};
|
|
2235
|
+
valueType?: 'D';
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
type InputEvents = 'onChange' | 'onModalReturn';
|
|
2239
|
+
type ModalInputValue = {
|
|
2240
|
+
showValue: string;
|
|
2241
|
+
storeValue?: string;
|
|
2242
|
+
};
|
|
2243
|
+
declare class ModalInput extends FieldWithAttribute<TApiaInputProperties, ModalInputValue> {
|
|
2244
|
+
constructor({ value, ...definition }: TApiaModalInputDefinition);
|
|
2245
|
+
fireEvent(eventName: InputEvents): Promise<boolean>;
|
|
2246
|
+
setValue(newValue: Required<ModalInputValue>, options?: Partial<{
|
|
2247
|
+
comparator: Comparator<any>;
|
|
2248
|
+
synchronize: boolean;
|
|
2249
|
+
}> | undefined): Promise<boolean>;
|
|
2250
|
+
setValueFromModalSelection(rowId: string): Promise<void>;
|
|
2251
|
+
validate(): Promise<boolean>;
|
|
2252
|
+
protected getSynchronizePostConfiguration(value: ModalInputValue): IApiaApiPostConfig<any>;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
declare class Multiple extends FieldWithAttribute<TApiaMultipleProperties, Record<number, string>> {
|
|
2256
|
+
constructor({ possibleValue, value, ...definition }: TApiaMultipleDefinition);
|
|
2257
|
+
validate(): Promise<boolean>;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
declare class Password extends FieldWithAttribute<TApiaPasswordProperties, string> {
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
type RadioEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
2264
|
+
declare class Radio extends FieldWithAttribute<TApiaRadioProperties, number | string, TApiaRadioButtonDefinition> {
|
|
2265
|
+
constructor({ possibleValue, ...definition }: TApiaRadioButtonDefinition);
|
|
2266
|
+
init(form: Form): Promise<void>;
|
|
2267
|
+
fireEvent(eventName: RadioEvents): Promise<boolean>;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
declare class Select extends FieldWithAttribute<TApiaSelectProperties, string, TApiaSelectDefinition> {
|
|
2271
|
+
constructor({ possibleValue, ...definition }: TApiaSelectDefinition);
|
|
2272
|
+
protected getInitialValue({ properties: { possibleValue }, value, }: TApiaFieldWithAttributeBaseProps<TApiaSelectProperties>): string;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
declare class Textarea extends TranslatableField<TApiaTextareaProperties, string> {
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
declare class Title extends Field<TApiaTitleProperties> {
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
type TTreeValue = string | number;
|
|
2282
|
+
type TreeEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
2283
|
+
declare class Tree extends FieldWithAttribute<TApiaTreeProperties, TTreeValue | TTreeValue[], TApiaTreeDefinition> {
|
|
2284
|
+
private treeNodes;
|
|
2285
|
+
constructor({ possibleValue, ...props }: TApiaTreeDefinition);
|
|
2286
|
+
getPossibleValues(): TApiaTreePossibleValue[];
|
|
2287
|
+
onPossibleValuesChange: (cb: Callback<{
|
|
2288
|
+
nodesList: TApiaTreePossibleValue[];
|
|
2289
|
+
}, "nodesList">) => UnSubscriber;
|
|
2290
|
+
protected getSynchronizePostConfiguration(value: TTreeValue | TTreeValue[]): IApiaApiPostConfig<any>;
|
|
2291
|
+
fireEvent(eventName: TreeEvents): Promise<boolean>;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
declare function arrayOrArray<T>(e: T | T[] | undefined): T[];
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* @public
|
|
2298
|
+
*
|
|
2299
|
+
* The `EventEmitter` class is a generic utility for handling events. It allows subscribing to and emitting events.
|
|
2300
|
+
* This class is generic and works with a `Map` where keys are event names and values are the types associated with those events.
|
|
2301
|
+
*
|
|
2302
|
+
* @typeParam Events - An extension of `Map` where the key is the event name and the value is the type of data associated with that event.
|
|
2303
|
+
*/
|
|
2304
|
+
declare class EventEmitter<Events extends Map$1> {
|
|
2305
|
+
protected callbacks: Record<'on' | 'once', Callbacks<Events>>;
|
|
2306
|
+
protected enabled: boolean;
|
|
2307
|
+
protected debugMode: boolean;
|
|
2308
|
+
debug(enable?: boolean): void;
|
|
2309
|
+
/**
|
|
2310
|
+
* Emits an event with the given data. Any listeners subscribed to this event will be invoked with the passed data.
|
|
2311
|
+
*
|
|
2312
|
+
* @param event - The event name to emit.
|
|
2313
|
+
* @param data - The data associated with the event. Its type is dependent on the event name.
|
|
2314
|
+
*/
|
|
2315
|
+
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
2316
|
+
/**
|
|
2317
|
+
* Reflects the current emitter state. A disabled state indicates that the emitter wont call listeners until its functionality gets enabled again.
|
|
2318
|
+
*/
|
|
2319
|
+
get isEnabled(): boolean;
|
|
2320
|
+
off<K extends keyof Events>(event: K, cb: Callback<Events, K>): void;
|
|
2321
|
+
/**
|
|
2322
|
+
* Subscribes a callback function to an event. The callback is invoked each time the event is emitted.
|
|
2323
|
+
*
|
|
2324
|
+
* @param event - The event name to listen to.
|
|
2325
|
+
* @param cb - The callback function to be invoked when the event is emitted.
|
|
2326
|
+
* @returns A function to unsubscribe the event listener.
|
|
2327
|
+
*/
|
|
2328
|
+
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2329
|
+
/**
|
|
2330
|
+
* Subscribes a callback function to an event for a single occurrence. After the event is emitted once, the listener is automatically removed.
|
|
2331
|
+
*
|
|
2332
|
+
* @param event - The event name to listen to for a single occurrence.
|
|
2333
|
+
* @param cb - The callback function to be invoked when the event is emitted.
|
|
2334
|
+
* @returns A function to unsubscribe the event listener.
|
|
2335
|
+
*/
|
|
2336
|
+
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* @private
|
|
2341
|
+
*/
|
|
2342
|
+
type EmitterState<Events extends Map$1> = {
|
|
2343
|
+
[K in keyof Events]: Events[K];
|
|
2344
|
+
};
|
|
2345
|
+
/**
|
|
2346
|
+
* Extends EventEmitter to manage and emit events with state persistence.
|
|
2347
|
+
* This class allows emitting and listening to typed events while also keeping
|
|
2348
|
+
* a state that can be accessed synchronously for each event.
|
|
2349
|
+
*
|
|
2350
|
+
* @param initialState - If given will be passed to subscriptions
|
|
2351
|
+
*
|
|
2352
|
+
* @template Events - A mapping of event names to their associated data types.
|
|
2353
|
+
* @extends EventEmitter<Events>
|
|
2354
|
+
*/
|
|
2355
|
+
declare class StatefulEmitter<Events extends Map$1> extends EventEmitter<Events> {
|
|
2356
|
+
protected state: EmitterState<Events>;
|
|
2357
|
+
constructor(initialState?: Partial<Events>);
|
|
2358
|
+
emit<K extends keyof Events>(event: K, data: Events[K]): void;
|
|
2359
|
+
on<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2360
|
+
once<K extends keyof Events>(event: K, cb: Callback<Events, K>): UnSubscriber;
|
|
2361
|
+
/**
|
|
2362
|
+
* Retrieves the stored state for a given event
|
|
2363
|
+
*/
|
|
2364
|
+
getState<K extends keyof Events>(event: K): Events[K];
|
|
2365
|
+
/**
|
|
2366
|
+
* Just an alias for emit, with the advantage that can be called with a callback as second parameter in which case behaves exactly as react's setState.
|
|
2367
|
+
*/
|
|
2368
|
+
setState<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>): void;
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
type BouncingMap<Events extends Map$1> = {
|
|
2372
|
+
[K in keyof Events]: number;
|
|
2373
|
+
};
|
|
2374
|
+
declare const NullObject: unique symbol;
|
|
2375
|
+
type ThrottlingMap<Events extends Map$1> = {
|
|
2376
|
+
[K in keyof Events]: Events[K] | typeof NullObject;
|
|
2377
|
+
};
|
|
2378
|
+
type ThrottlingMarkers<Events extends Map$1> = {
|
|
2379
|
+
[K in keyof Events]: boolean;
|
|
2380
|
+
};
|
|
2381
|
+
type DebounceOptions = Partial<{
|
|
2382
|
+
timing: number;
|
|
2383
|
+
}>;
|
|
2384
|
+
type ThrottleOptions = Partial<{
|
|
2385
|
+
emitOnStart?: boolean;
|
|
2386
|
+
timing: number;
|
|
2387
|
+
}>;
|
|
2388
|
+
/**
|
|
2389
|
+
* @public
|
|
2390
|
+
*
|
|
2391
|
+
* The BouncingEmitter class is an extension of EventEmitter which adds debouncing and throttling functionality.
|
|
2392
|
+
*
|
|
2393
|
+
* @typeParam — Events - An extension of Map where the key is the event name and the value is the type of data associated with that event.
|
|
2394
|
+
*/
|
|
2395
|
+
declare class BouncingEmitter<Events extends Map$1> extends StatefulEmitter<Events> {
|
|
2396
|
+
protected bouncingTimeouts: BouncingMap<Events>;
|
|
2397
|
+
protected defaultTiming: number;
|
|
2398
|
+
/**
|
|
2399
|
+
* Debounces a event emit with until there is no call to the emit methods by (timing)ms. Take the following event throttling, where each E is a call to this method and each character represents 20ms:
|
|
2400
|
+
*
|
|
2401
|
+
* E_E_E_E_E_E_E_E_E
|
|
2402
|
+
*
|
|
2403
|
+
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
2404
|
+
*
|
|
2405
|
+
* _____________________E
|
|
2406
|
+
*/
|
|
2407
|
+
debounce<K extends keyof Events>(event: K, data: Events[K], configuration?: DebounceOptions): void;
|
|
2408
|
+
/**
|
|
2409
|
+
* Throttles a event emit with the warranty that the data will be emitted at most every (timing)ms. Take the following event throttling, where each E is a call to this method and each character represents 20ms:
|
|
2410
|
+
*
|
|
2411
|
+
* E_E_E_E_E_E_E_E_E
|
|
2412
|
+
*
|
|
2413
|
+
* If timing is configured to 100ms, which is the default, the emission will occur as follows:
|
|
2414
|
+
*
|
|
2415
|
+
* ____E____E____E______E
|
|
2416
|
+
*
|
|
2417
|
+
* @param configuration.emitOnStart - Emits an event on the first call to throttle when no pending throttle is stored. **If emitOnStart is true and an only call to throttle is made, it will emit an only event.**
|
|
2418
|
+
*/
|
|
2419
|
+
protected throttleData: ThrottlingMap<Events>;
|
|
2420
|
+
protected throttleEmittedOnInit: ThrottlingMarkers<Events>;
|
|
2421
|
+
throttle<K extends keyof Events>(event: K, data: Events[K], configuration?: ThrottleOptions): void;
|
|
2422
|
+
/**
|
|
2423
|
+
* This method is a mix between setState and debounce
|
|
2424
|
+
*/
|
|
2425
|
+
setStateDebounced<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>, configuration?: DebounceOptions): void;
|
|
2426
|
+
/**
|
|
2427
|
+
* This method is a mix between setState and throttle
|
|
2428
|
+
*/
|
|
2429
|
+
setStateThrottled<K extends keyof Events>(event: K, data: SetStateAction<Events[K]>, configuration?: ThrottleOptions): void;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
declare function getLabel(label: string, replacers?: Partial<{
|
|
2433
|
+
text: Record<string, string>;
|
|
2434
|
+
tooltip: Record<string, string>;
|
|
2435
|
+
}>): {
|
|
2436
|
+
text: string;
|
|
2437
|
+
tooltip: string;
|
|
2438
|
+
};
|
|
2439
|
+
|
|
2440
|
+
declare function parseXml<T>(xmlString: string): T;
|
|
2441
|
+
|
|
2442
|
+
declare class ShowPathSelection extends FlowModal<{
|
|
2443
|
+
confirmed: boolean;
|
|
2444
|
+
path: string;
|
|
2445
|
+
}> {
|
|
2446
|
+
fetchResult: TApiaLoadForm['form'];
|
|
2447
|
+
confirm: (result: {
|
|
2448
|
+
confirmed: boolean;
|
|
2449
|
+
path: string;
|
|
2450
|
+
}) => Promise<Status | FlowModal<any>>;
|
|
2451
|
+
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
2452
|
+
confirmed: boolean;
|
|
2453
|
+
path: string;
|
|
2454
|
+
}) => Promise<Status | FlowModal<any>>);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
declare class ShowPoolSelection extends FlowModal<{
|
|
2458
|
+
confirmed: boolean;
|
|
2459
|
+
group: string;
|
|
2460
|
+
}> {
|
|
2461
|
+
fetchResult: TApiaLoadForm['form'];
|
|
2462
|
+
confirm: (result: {
|
|
2463
|
+
confirmed: boolean;
|
|
2464
|
+
group: string;
|
|
2465
|
+
}) => Promise<Status>;
|
|
2466
|
+
constructor(fetchResult: TApiaLoadForm['form'], confirm: (result: {
|
|
2467
|
+
confirmed: boolean;
|
|
2468
|
+
group: string;
|
|
2469
|
+
}) => Promise<Status>);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
declare class ShowSignSelection extends FlowModal<{
|
|
2473
|
+
confirmed: boolean;
|
|
2474
|
+
signed: boolean;
|
|
2475
|
+
}> {
|
|
2476
|
+
fetchResult: any;
|
|
2477
|
+
confirm: (result: {
|
|
2478
|
+
confirmed: boolean;
|
|
2479
|
+
signed: boolean;
|
|
2480
|
+
}) => Promise<Status>;
|
|
2481
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
2482
|
+
confirmed: boolean;
|
|
2483
|
+
signed: boolean;
|
|
2484
|
+
}) => Promise<Status>);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
declare class ShowConfirmMessage extends FlowModal<{
|
|
2488
|
+
confirmed: boolean;
|
|
2489
|
+
}> {
|
|
2490
|
+
fetchResult: any;
|
|
2491
|
+
confirm: (result: {
|
|
2492
|
+
confirmed: boolean;
|
|
2493
|
+
}) => Promise<Status>;
|
|
2494
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
2495
|
+
confirmed: boolean;
|
|
2496
|
+
}) => Promise<Status>);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
declare class ShowSign extends FlowModal<{
|
|
2500
|
+
confirmed: boolean;
|
|
2501
|
+
}> {
|
|
2502
|
+
fetchResult: any;
|
|
2503
|
+
confirm: (result: {
|
|
2504
|
+
confirmed: boolean;
|
|
2505
|
+
}) => Promise<Status>;
|
|
2506
|
+
constructor(fetchResult: any, confirm: (result: {
|
|
2507
|
+
confirmed: boolean;
|
|
2508
|
+
}) => Promise<Status>);
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
interface IIProperty {
|
|
2512
|
+
[key: string]: string;
|
|
2513
|
+
}
|
|
2514
|
+
interface IApiaFunctions {
|
|
2515
|
+
getLastModalReturn: () => string[];
|
|
2516
|
+
getModalReturn: () => string[];
|
|
2517
|
+
getModalValue: () => string;
|
|
2518
|
+
getModalShowValue: () => string;
|
|
2519
|
+
setLastModalReturn: (value: string[]) => void;
|
|
2520
|
+
getModalSelectedRow: () => string[];
|
|
2521
|
+
getForm(frmName: string, frmType?: string): IApiaForm | null;
|
|
2522
|
+
getAllForms(): IApiaForm[];
|
|
2523
|
+
getEntityForm(frmName: string): IApiaForm | null;
|
|
2524
|
+
getProcessForm(frmName: string): IApiaForm | null;
|
|
2525
|
+
getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
|
|
2526
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2527
|
+
getCurrentStep(): number | null;
|
|
2528
|
+
getCurrentTaskName(): string | null;
|
|
2529
|
+
getCurrentProcessName(): string | null;
|
|
2530
|
+
getRootPath(): string | null;
|
|
2531
|
+
getCurrentLanguageCode(): string | null;
|
|
2532
|
+
toJSNumber(value: string): number | string;
|
|
2533
|
+
toApiaNumber(value: number): number | string;
|
|
2534
|
+
disableActionButton(btnIdx: string): void;
|
|
2535
|
+
enableActionButton(btnIdx: string): void;
|
|
2536
|
+
disableOptionButton(btnIdx: string): void;
|
|
2537
|
+
enableOptionButton(btnIdx: string): void;
|
|
2538
|
+
hideOptionButton(btnIdx: string): void;
|
|
2539
|
+
showOptionButton(btnIdx: string): void;
|
|
2540
|
+
openTab(title: string, url: string): void;
|
|
2541
|
+
closeCurrentTab(): void;
|
|
2542
|
+
showMessage(text: string): void;
|
|
2543
|
+
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
2544
|
+
}
|
|
2545
|
+
interface IApiaForm {
|
|
2546
|
+
getFormName(): string;
|
|
2547
|
+
getFormTitle(): string;
|
|
2548
|
+
openForm(): void;
|
|
2549
|
+
closeForm(): void;
|
|
2550
|
+
getProperty<K extends keyof TApiaFormProperties>(name: K): TApiaFormProperties[K];
|
|
2551
|
+
setProperty<K extends keyof TApiaFormProperties>(name: K, value: TApiaFormProperties[K]): void;
|
|
2552
|
+
getField(fld: number | string, index?: number): IApiaField | undefined;
|
|
2553
|
+
getFieldColumn(fldName: string): IApiaField[];
|
|
2554
|
+
getAllFields(): IApiaField[];
|
|
2555
|
+
clearForm(clearReadonlyFields: boolean, deleteGridsRows: boolean): void;
|
|
2556
|
+
}
|
|
2557
|
+
interface IApiaField {
|
|
2558
|
+
/**
|
|
2559
|
+
* Assigns a new value to the property whoose name's correspond to that determined by the name paremeter.
|
|
2560
|
+
*/
|
|
2561
|
+
setProperty<K extends keyof TApiaFieldCommonProperties>(name: K, value: TApiaFieldCommonProperties[K]): void;
|
|
2562
|
+
/**
|
|
2563
|
+
* Returns the current value of the property determined by the name in the paremeter.
|
|
2564
|
+
*/
|
|
2565
|
+
getProperty(name: string): unknown | null;
|
|
2566
|
+
/**
|
|
2567
|
+
* Sets the focus on the field if possible.
|
|
2568
|
+
*/
|
|
2569
|
+
setFocus(): void;
|
|
2570
|
+
/**
|
|
2571
|
+
* Returns true if the field is part of a grid.
|
|
2572
|
+
*/
|
|
2573
|
+
isInGrid(): boolean;
|
|
2574
|
+
}
|
|
2575
|
+
type TOpenModal = {
|
|
2576
|
+
height?: number;
|
|
2577
|
+
onClose?: () => unknown;
|
|
2578
|
+
url: string;
|
|
2579
|
+
width?: number;
|
|
2580
|
+
} & Pick<TModal, 'size' | 'className' | 'hideCloseButton' | 'maxWidth' | 'noHeader' | 'shouldCloseOnEsc' | 'shouldCloseOnOverlayClick' | 'title'>;
|
|
2581
|
+
interface IButton {
|
|
2582
|
+
disabled: boolean;
|
|
2583
|
+
hidden: boolean;
|
|
2584
|
+
label: string;
|
|
2585
|
+
isLoading: boolean;
|
|
2586
|
+
title: string;
|
|
2587
|
+
variant?: string;
|
|
2588
|
+
action: Promise<() => unknown> | string;
|
|
2589
|
+
id: TActionButtons;
|
|
2590
|
+
}
|
|
2591
|
+
type TActionButtons = 'VIEW_DOCS' | 'CLOSE' | 'DELEGATE' | 'CLOSE' | 'CONFIRM' | 'NEXT' | 'PRINT' | 'PREVIOUS' | 'RELEASE' | 'SAVE' | 'SIGN' | 'SHARE';
|
|
2592
|
+
type TApiaFieldType = 'area' | 'button' | 'captcha' | 'check' | 'editor' | 'file' | 'grid' | 'hidden' | 'href' | 'image' | 'input' | 'label' | 'multiple' | 'password' | 'radio' | 'select' | 'title' | 'tree' | 'form';
|
|
2593
|
+
type PossibleValue = {
|
|
2594
|
+
value: string | number;
|
|
2595
|
+
text: string;
|
|
2596
|
+
selected?: boolean;
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
declare class ButtonsAction {
|
|
2600
|
+
private button;
|
|
2601
|
+
constructor(button: IButton);
|
|
2602
|
+
private update;
|
|
2603
|
+
get action(): this;
|
|
2604
|
+
get disabled(): boolean;
|
|
2605
|
+
get props(): {
|
|
2606
|
+
disabled: boolean;
|
|
2607
|
+
hidden: boolean;
|
|
2608
|
+
loading: boolean;
|
|
2609
|
+
};
|
|
2610
|
+
get label(): string;
|
|
2611
|
+
get title(): string;
|
|
2612
|
+
get variant(): string;
|
|
2613
|
+
set title(title: string);
|
|
2614
|
+
set variant(variant: string);
|
|
2615
|
+
disable(): void;
|
|
2616
|
+
enable(): void;
|
|
2617
|
+
hide(): void;
|
|
2618
|
+
show(): void;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
declare global {
|
|
2622
|
+
interface Window {
|
|
2623
|
+
lastModalReturn: string[];
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
declare class ApiaFunctions implements IApiaFunctions {
|
|
2627
|
+
static instance: ApiaFunctions;
|
|
2628
|
+
private constructor();
|
|
2629
|
+
getFormByType(frmName: string, frmType: TFrmParent): IApiaForm | null;
|
|
2630
|
+
actionButton(id: string | number): ButtonsAction | undefined;
|
|
2631
|
+
admEntity(entName: string, entNum?: number, parameters?: string, width?: number, height?: number): void;
|
|
2632
|
+
clearMessages(): void;
|
|
2633
|
+
clickActionButton(button: number): void;
|
|
2634
|
+
closeCurrentTab(): void;
|
|
2635
|
+
disableActionButton(id: string | number): void;
|
|
2636
|
+
disableOptionButton(id: string | number): void;
|
|
2637
|
+
enableActionButton(id: string | number): void;
|
|
2638
|
+
enableOptionButton(id: string | number): void;
|
|
2639
|
+
getAllForms(): IApiaForm[];
|
|
2640
|
+
getAllFormsByType(type: 'P' | 'E'): IApiaForm[];
|
|
2641
|
+
getAttField(attType: 'P' | 'E', attId: string): IApiaField | IApiaField[] | undefined;
|
|
2642
|
+
getButtonAction(id: number | string): TActionButtons;
|
|
2643
|
+
getCurrentLanguageCode(): string | null;
|
|
2644
|
+
getCurrentProcessName(): string | null;
|
|
2645
|
+
getCurrentStep(): number | null;
|
|
2646
|
+
getCurrentTaskName(): string | null;
|
|
2647
|
+
getEntityForm(frmName: string): IApiaForm | null;
|
|
2648
|
+
getForm(frmName: string, frmType?: string): IApiaForm | null;
|
|
2649
|
+
getLastModalReturn(): string[];
|
|
2650
|
+
getModalReturn(): string[];
|
|
2651
|
+
getModalSelectedRow(): string[];
|
|
2652
|
+
getModalShowValue(): string;
|
|
2653
|
+
getModalValue(): string;
|
|
2654
|
+
getProcessForm(frmName: string): IApiaForm | null;
|
|
2655
|
+
getRootPath(): string | null;
|
|
2656
|
+
hideActionButton(id: string | number): void;
|
|
2657
|
+
hideOptionButton(id: string | number): void;
|
|
2658
|
+
openModal(props: TOpenModal$1): void;
|
|
2659
|
+
openTab(title: string, url: string): void;
|
|
2660
|
+
saveTask(): void;
|
|
2661
|
+
setLastModalReturn(value: string[]): void;
|
|
2662
|
+
setStepTitle(stepNumber: number, stepTitle: string): void;
|
|
2663
|
+
showActionButton(id: string | number): void;
|
|
2664
|
+
showConfirm(text: string, title: string, callbackFn: (win: boolean) => unknown): void;
|
|
2665
|
+
showMessage(text: string, title?: string, type?: TDispatchedNotification['type']): void;
|
|
2666
|
+
showOptionButton(id: string | number): void;
|
|
2667
|
+
toApiaNumber(value: number): number | string;
|
|
2668
|
+
toJSNumber(value: string): number | string;
|
|
2669
|
+
viewAdmEntity(entName: string, entNum?: number): void;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
declare class ActionsController {
|
|
2673
|
+
static CONFIRM: number;
|
|
2674
|
+
static NEXT: number;
|
|
2675
|
+
static PREVIOUS: number;
|
|
2676
|
+
static SIGN: number;
|
|
2677
|
+
static SAVE: number;
|
|
2678
|
+
static RELEASE: number;
|
|
2679
|
+
static DELEGATE: number;
|
|
2680
|
+
static SHARE: number;
|
|
2681
|
+
static PRINT: number;
|
|
2682
|
+
static VIEW_DOCS: number;
|
|
2683
|
+
static CLOSE: number;
|
|
2684
|
+
private static _instance;
|
|
2685
|
+
static get instance(): ActionsController;
|
|
2686
|
+
private buttons;
|
|
2687
|
+
addButton(button: IButton): void;
|
|
2688
|
+
getButton(id: TActionButtons): ButtonsAction | undefined;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
export { ActionsController, ApiaFunctions, BouncingEmitter, Button, Captcha, Checkbox, type ComponentEvent, CustomComponent, Editor, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, type FieldWithAttributeState, FieldWithIndexedFields, type FieldWithIndexedFieldsProps, type FieldsMapping, File$1 as File, FlowModal, Form, Grid, Hidden, type IApiaField, type IApiaForm, type IApiaFunctions, type IButton, type IIProperty, type IPoolsPermissions, IProperty, type ISignatureData, type IUsersPermissions, Image, Input, InvalidSessionException, Label, Link, MessageNotification, ModalInput, Multiple, Notifications, Password, type PossibleValue, Radio, type RadioPossibleValue, Select, 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, Textarea, Title, TranslatableField, Translation, Tree, UploaderApi, UploaderModalController, type UploaderModalState, type UploaderState, arrayOrArray, get, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFileDefinition, parseSuccessfulResponse, parseXml, post, returnExactlyTheSame, shallowEqual };
|
|
2692
|
+
//# sourceMappingURL=index.d.ts.map
|