@apia/execution 4.0.44 → 4.0.46
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 +130 -528
- package/dist/index.js +422 -1798
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import * as _apia_scheduler_controller from '@apia/scheduler-controller';
|
|
2
|
-
import { TScheduleResult, Scheduler } from '@apia/scheduler-controller';
|
|
3
|
-
export { Scheduler } from '@apia/scheduler-controller';
|
|
4
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
5
2
|
import { IStringifyOptions } from 'qs';
|
|
6
3
|
import { TableController, Row, Cell, CellState } from '@apia/table2-controller';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
4
|
+
import { DeepReadonly, TApiaLoadForm, EventEmitter as EventEmitter$1, Mutex } from '@apia/util';
|
|
5
|
+
import { UploaderApi as UploaderApi$1, TModalConfig, TUploaderFileInfo, UploaderModalController, TFileUploaded, TSaveDroppedFilesConf } from '@apia/uploader-controller';
|
|
9
6
|
import { MobXTree } from '@apia/tree2-controller';
|
|
7
|
+
import * as _apia_scheduler_controller from '@apia/scheduler-controller';
|
|
8
|
+
import { TScheduleResult, TTskSchDay, Scheduler } from '@apia/scheduler-controller';
|
|
10
9
|
|
|
11
10
|
type TApiaButtonDefinition = TApiaFieldBaseDefinition<TApiaButtonProperties> & {
|
|
12
11
|
fieldType: 'button';
|
|
@@ -521,7 +520,7 @@ type SetValueOptions = Partial<{
|
|
|
521
520
|
markAsDirty: boolean;
|
|
522
521
|
synchronize: boolean;
|
|
523
522
|
force: boolean;
|
|
524
|
-
fireEvents
|
|
523
|
+
fireEvents?: boolean;
|
|
525
524
|
}>;
|
|
526
525
|
type FireEventParameters = Record<string, unknown>;
|
|
527
526
|
type FieldValidationState = {
|
|
@@ -630,6 +629,7 @@ declare abstract class FieldWithAttribute<FieldProps extends TApiaFieldWithAttri
|
|
|
630
629
|
protected processSynchronizeError(e: unknown): void;
|
|
631
630
|
protected synchronize(newValue: ValueType): Promise<boolean>;
|
|
632
631
|
protected hasValue(): boolean;
|
|
632
|
+
protected isValidValue(): boolean;
|
|
633
633
|
validate(): Promise<boolean>;
|
|
634
634
|
setError(err: string): void;
|
|
635
635
|
protected getServerEventParams(evtId: number, additionalParams?: Record<string, any>): MakeApiaUrlProps;
|
|
@@ -1889,52 +1889,6 @@ declare class CustomComponent {
|
|
|
1889
1889
|
setState<K extends keyof TCustomComponentState>(prop: K, value: TCustomComponentState[K]): void;
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
|
-
declare enum ExecutionState {
|
|
1893
|
-
RUNNING = 0,
|
|
1894
|
-
LOADING = 1,
|
|
1895
|
-
FINISHED = 2,
|
|
1896
|
-
RENDERING = 3,
|
|
1897
|
-
CONFIRMING = 4,
|
|
1898
|
-
FINISHED_WITH_ERROR = 5
|
|
1899
|
-
}
|
|
1900
|
-
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
1901
|
-
type TErrMessage = {
|
|
1902
|
-
message: {
|
|
1903
|
-
text: string;
|
|
1904
|
-
label?: string;
|
|
1905
|
-
};
|
|
1906
|
-
};
|
|
1907
|
-
type TFetchTaskActionResponse = {
|
|
1908
|
-
onClose?: TOnClose;
|
|
1909
|
-
sysMessages?: TErrMessage;
|
|
1910
|
-
sysExceptions?: TErrMessage;
|
|
1911
|
-
type?: string;
|
|
1912
|
-
actions?: {
|
|
1913
|
-
action: {
|
|
1914
|
-
param: string[];
|
|
1915
|
-
toDo: string;
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
load?: {
|
|
1919
|
-
canClose: boolean;
|
|
1920
|
-
type: string;
|
|
1921
|
-
text: {
|
|
1922
|
-
label: string;
|
|
1923
|
-
closeAll: boolean;
|
|
1924
|
-
addClass?: string;
|
|
1925
|
-
title?: string;
|
|
1926
|
-
};
|
|
1927
|
-
};
|
|
1928
|
-
text?: {
|
|
1929
|
-
title?: string;
|
|
1930
|
-
label?: string;
|
|
1931
|
-
};
|
|
1932
|
-
};
|
|
1933
|
-
type FieldError = {
|
|
1934
|
-
id: string;
|
|
1935
|
-
errorMessage: string;
|
|
1936
|
-
};
|
|
1937
|
-
|
|
1938
1892
|
declare class Form extends WithProperties<TApiaFormProperties> {
|
|
1939
1893
|
execution: Execution;
|
|
1940
1894
|
fields: TApiaFieldBaseDefinition<Record<string, any>>[];
|
|
@@ -1999,7 +1953,6 @@ declare class Form extends WithProperties<TApiaFormProperties> {
|
|
|
1999
1953
|
fireScriptEvent(eventName: TFormEventName): Promise<boolean>;
|
|
2000
1954
|
validate(): Promise<true | Field>;
|
|
2001
1955
|
getProperty<K extends keyof TApiaFormProperties>(propName: K | 'readOnly'): TApiaFormProperties[K];
|
|
2002
|
-
getErrorsList(): FieldError[];
|
|
2003
1956
|
}
|
|
2004
1957
|
|
|
2005
1958
|
type TTranslationState = {
|
|
@@ -2057,6 +2010,17 @@ declare abstract class TranslatableField<FieldProps extends TApiaTranslatableFie
|
|
|
2057
2010
|
type FieldConstructor = new (definition: any) => Field<any, any, any> | FieldWithAttribute<any, any, any> | TranslatableField<any, any, any>;
|
|
2058
2011
|
type FieldsMapping = Record<string, (definition: any) => FieldConstructor>;
|
|
2059
2012
|
|
|
2013
|
+
type NotificationIcon = string;
|
|
2014
|
+
type NotificationType = 'info' | 'error' | 'success' | 'warning' | 'modal';
|
|
2015
|
+
type NotificationDefinition = {
|
|
2016
|
+
icon?: NotificationIcon;
|
|
2017
|
+
id?: string | number;
|
|
2018
|
+
isOpen?: boolean;
|
|
2019
|
+
message: string;
|
|
2020
|
+
stackTrace?: string;
|
|
2021
|
+
title?: string;
|
|
2022
|
+
type?: NotificationType;
|
|
2023
|
+
};
|
|
2060
2024
|
declare abstract class Notification<State extends NotificationDefinition = NotificationDefinition> {
|
|
2061
2025
|
readonly props: State;
|
|
2062
2026
|
protected state: State;
|
|
@@ -2067,7 +2031,7 @@ declare abstract class Notification<State extends NotificationDefinition = Notif
|
|
|
2067
2031
|
get message(): string;
|
|
2068
2032
|
get stackTrace(): string | undefined;
|
|
2069
2033
|
get title(): string | undefined;
|
|
2070
|
-
get type():
|
|
2034
|
+
get type(): NotificationType | undefined;
|
|
2071
2035
|
}
|
|
2072
2036
|
|
|
2073
2037
|
declare class Notifications {
|
|
@@ -2077,8 +2041,8 @@ declare class Notifications {
|
|
|
2077
2041
|
protected notifications: Notification[];
|
|
2078
2042
|
add(notification: Notification): void;
|
|
2079
2043
|
closeTab(): void;
|
|
2080
|
-
getAll(): Notification<
|
|
2081
|
-
getById(id: string | number): Notification<
|
|
2044
|
+
getAll(): Notification<NotificationDefinition>[];
|
|
2045
|
+
getById(id: string | number): Notification<NotificationDefinition> | undefined;
|
|
2082
2046
|
kill(): void;
|
|
2083
2047
|
remove(notification: string | number | Notification): void;
|
|
2084
2048
|
on: <K extends "closeTab" | "kill" | "notification">(event: K, cb: Callback<{
|
|
@@ -2181,482 +2145,52 @@ type TProcess = {
|
|
|
2181
2145
|
};
|
|
2182
2146
|
};
|
|
2183
2147
|
|
|
2184
|
-
|
|
2185
|
-
* El comportamiento de esta función se explica por su
|
|
2186
|
-
* nombre.
|
|
2187
|
-
*/
|
|
2188
|
-
declare function returnExactlyTheSame(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2189
|
-
declare function isOneClickUploadEnabled(execution: Execution, oneClickUploadProp?: boolean): string | boolean;
|
|
2190
|
-
declare const parseFileDefinition: (execution: Execution, fileDefinition: TFileUploaded | TUploaderFileInfo, isSignRequired: boolean) => TUploaderFileInfo;
|
|
2191
|
-
type TOnUploadProgress = (progress: number) => void;
|
|
2192
|
-
declare class UploaderApi extends EventEmitter$1<{
|
|
2193
|
-
fileUploaded: null;
|
|
2194
|
-
}> {
|
|
2148
|
+
declare class UploaderApi extends UploaderApi$1 {
|
|
2195
2149
|
execution: Execution;
|
|
2196
|
-
id: string;
|
|
2197
2150
|
type: 'E' | 'P';
|
|
2198
|
-
|
|
2199
|
-
maxFiles: number;
|
|
2200
|
-
modalController: UploaderModalController | null;
|
|
2201
|
-
allowTranslations: boolean;
|
|
2202
|
-
langs: Record<number, string> | undefined;
|
|
2203
|
-
currentConfiguration: TUploaderLoadCurrentFunctionMessages | undefined;
|
|
2204
|
-
docTypePermittedObjId: string | undefined;
|
|
2205
|
-
state: UploaderState;
|
|
2206
|
-
get filesArray(): TUploaderFileInfo[];
|
|
2151
|
+
docTypePermittedObjId: string;
|
|
2207
2152
|
constructor(execution: Execution, id: string, type: 'E' | 'P', modalConfig: TModalConfig);
|
|
2208
|
-
init(): Promise<void>;
|
|
2209
|
-
onStartUpload(files?: File[]): Promise<void>;
|
|
2210
|
-
onTranslateUpload(conf: {
|
|
2211
|
-
langId: number;
|
|
2212
|
-
translatingFile: TUploaderFileInfo;
|
|
2213
|
-
}, files?: File[]): Promise<void>;
|
|
2214
|
-
onVersionUpload(file: TUploaderFileInfo, conf?: {
|
|
2215
|
-
newFiles?: File[];
|
|
2216
|
-
langId?: number;
|
|
2217
|
-
translatingFile?: TUploaderFileInfo;
|
|
2218
|
-
}): Promise<void>;
|
|
2219
|
-
autoLock(): Promise<boolean>;
|
|
2220
|
-
notify(notification: NotificationDefinition): void;
|
|
2221
|
-
protected getAjaxUrl(): string;
|
|
2222
|
-
getDocTypes(): TDocType[];
|
|
2223
|
-
getCurrentDocTypeId(): string;
|
|
2224
|
-
getCurrentDocType(): TDocType | undefined;
|
|
2225
|
-
getInProgressFiles(): File[];
|
|
2226
|
-
getHiddenFiles(): File[];
|
|
2227
|
-
getExistingFiles(): Record<string, TUploaderFileInfo>;
|
|
2228
|
-
getProgress(): number;
|
|
2229
|
-
getHasAllDocTypes(): boolean | undefined;
|
|
2230
|
-
getDocumentInfo({ docId: apiId, downloadDocId: docId, }: TRequireOnlyOne<{
|
|
2231
|
-
docId: string;
|
|
2232
|
-
downloadDocId: string;
|
|
2233
|
-
}>, newElem?: boolean): Promise<({
|
|
2234
|
-
canClose: boolean;
|
|
2235
|
-
type: string;
|
|
2236
|
-
} & {
|
|
2237
|
-
function: {
|
|
2238
|
-
name: string;
|
|
2239
|
-
} & {
|
|
2240
|
-
data: {
|
|
2241
|
-
onClose: string;
|
|
2242
|
-
general: TApiaDocumentDefinition;
|
|
2243
|
-
permissions: {
|
|
2244
|
-
pool: TDocumentPermission | TDocumentPermission[];
|
|
2245
|
-
user: TDocumentPermission | TDocumentPermission[];
|
|
2246
|
-
};
|
|
2247
|
-
versions: {
|
|
2248
|
-
version: TDocumentVersion | TDocumentVersion[];
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
currentUsrPems: {
|
|
2252
|
-
usrCanModify: boolean;
|
|
2253
|
-
};
|
|
2254
|
-
metadatas: {
|
|
2255
|
-
metadata: TDocumentMetadata | TDocumentMetadata[];
|
|
2256
|
-
};
|
|
2257
|
-
docDownHistory: {
|
|
2258
|
-
docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
} & ResponseSysMessages) | null>;
|
|
2262
|
-
/**
|
|
2263
|
-
* This method searches for the provided id in several places:
|
|
2264
|
-
*
|
|
2265
|
-
* If it's found in the current files, returns it.
|
|
2266
|
-
* If not, it searches the provided docId in the translations map of each uploaded file.
|
|
2267
|
-
*/
|
|
2268
|
-
getDocument(docId: string): TUploaderFileInfo | undefined;
|
|
2269
|
-
protected updateDocument(docId: string, newValue: TUploaderFileInfo): void;
|
|
2270
|
-
protected deleteDocument(docId: string): void;
|
|
2271
|
-
clearFile(name: string): void;
|
|
2272
|
-
clearFiles(): void;
|
|
2273
|
-
clearState(): void;
|
|
2274
|
-
checkLockDocument(id: string, shouldNotifyUnlocked?: boolean): Promise<string | boolean>;
|
|
2275
|
-
setCurrentDocTypeId(docTypeId: string): void;
|
|
2276
|
-
ajaxUploadStart(newFiles?: File[]): Promise<boolean | undefined>;
|
|
2277
|
-
reloadMetadata(props?: Partial<{
|
|
2278
|
-
docId: string;
|
|
2279
|
-
docTypeId: number | string;
|
|
2280
|
-
}>, additionalProps?: Record<string, unknown>): Promise<void>;
|
|
2281
|
-
saveDroppedFiles(unprocessedFiles: File[], conf?: TSaveDroppedFilesConf): Promise<boolean>;
|
|
2282
|
-
checkWebDavLock(docId: string): Promise<unknown>;
|
|
2283
|
-
checkSignature(file: TUploaderFileInfo): Promise<TApiaApiAxiosResponse<({
|
|
2284
|
-
markedToSign: boolean;
|
|
2285
|
-
} & ResponseSysMessages) | null> | null>;
|
|
2286
|
-
editDocument(id: string): Promise<void>;
|
|
2287
|
-
downloadVersion(fileId: string, version?: string): Promise<void>;
|
|
2288
|
-
downloadDocument(id: string, version?: string): Promise<void>;
|
|
2289
|
-
ajaxDeleteDocument(id: string, langId?: number): Promise<void>;
|
|
2290
|
-
version(file: TUploaderFileInfo, conf?: {
|
|
2291
|
-
newFiles?: File[];
|
|
2292
|
-
langId?: number;
|
|
2293
|
-
translatingFile?: TUploaderFileInfo;
|
|
2294
|
-
}): Promise<void>;
|
|
2295
|
-
versionFileInfo(file: TUploaderFileInfo): Promise<void>;
|
|
2296
|
-
pickFileById(id: string): Promise<void>;
|
|
2297
|
-
markFileToSign(id: string, langId?: string): Promise<void>;
|
|
2298
|
-
/**
|
|
2299
|
-
* Por el momento realiza la descarga de todos los archivos
|
|
2300
|
-
* que estén subidos.
|
|
2301
|
-
*/
|
|
2302
|
-
downloadMultipleDocuments(): void;
|
|
2303
|
-
confirmDropModal(conf?: {
|
|
2304
|
-
langId?: number;
|
|
2305
|
-
translatingFile?: TUploaderFileInfo;
|
|
2306
|
-
}): Promise<boolean>;
|
|
2307
|
-
loadCurrentDocuments(): Promise<void>;
|
|
2308
|
-
lockDocument(id: string): Promise<void>;
|
|
2309
|
-
protected evaluateDeleteDocumentResult(result: unknown): boolean;
|
|
2310
|
-
setTranslationFile(file: TUploaderFileInfo, docId: string, langId: number): void;
|
|
2311
|
-
protected getCheckSignatureParameters: typeof returnExactlyTheSame;
|
|
2312
|
-
protected getAjaxUploadFileStatusParameters: typeof returnExactlyTheSame;
|
|
2313
|
-
protected getAjaxUploadStartParameters: typeof returnExactlyTheSame;
|
|
2314
|
-
protected getConfirmDropModalParameters: typeof returnExactlyTheSame;
|
|
2315
|
-
protected getCheckLockDocumentParameters: typeof returnExactlyTheSame;
|
|
2316
|
-
protected getCheckWebDavLockParameters: typeof returnExactlyTheSame;
|
|
2317
|
-
protected getConfirmDropModalPostdata: typeof returnExactlyTheSame;
|
|
2318
|
-
protected getConfirmDropModalMetadataString: ({ metadata, }: {
|
|
2319
|
-
metadata: TDocumentMetadata[];
|
|
2320
|
-
}) => string;
|
|
2321
|
-
protected getConfirmDropModalPermissionsString: ({ poolsPermissions, usersPermissions, }: {
|
|
2322
|
-
poolsPermissions: IPoolsPermissions[];
|
|
2323
|
-
usersPermissions: IUsersPermissions[];
|
|
2324
|
-
}) => string;
|
|
2325
|
-
protected getConfirmDropModalAdditionalMetadataString: (additionalMetadata: TDocumentMetadata[] | []) => string;
|
|
2326
|
-
protected getDeleteDocumentParameters: typeof returnExactlyTheSame;
|
|
2327
|
-
protected getClearTempFilesParameters: typeof returnExactlyTheSame;
|
|
2328
|
-
protected getDocumentInfoParameters: typeof returnExactlyTheSame;
|
|
2329
|
-
protected getDownloadMultipleDocumentsParameters: typeof returnExactlyTheSame;
|
|
2330
|
-
protected getEditDocumentParameters: typeof returnExactlyTheSame;
|
|
2331
|
-
protected getLockDocumentParameters: typeof returnExactlyTheSame;
|
|
2332
|
-
protected getMarkFileToSignParameters: typeof returnExactlyTheSame;
|
|
2333
|
-
protected getProcessDroppedFilesParameters: typeof returnExactlyTheSame;
|
|
2334
|
-
protected getProcessDroppedFilesPostdata: typeof returnExactlyTheSame;
|
|
2335
|
-
protected getReloadMetadataParameters: typeof returnExactlyTheSame;
|
|
2336
|
-
protected getSaveDroppedFilesParameters: typeof returnExactlyTheSame;
|
|
2337
|
-
protected filterAlreadyUploadedFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
|
|
2338
|
-
protected filterByFilesAmountLimit(files: File[]): File[];
|
|
2339
|
-
protected filterAcceptedFiles(files: File[], shouldNotify?: boolean, docTypeId?: string | TDocType): File[];
|
|
2340
|
-
protected filterExistingFiles(files: File[], conf?: TSaveDroppedFilesConf): File[];
|
|
2341
|
-
protected filterVersioningFiles(files: File[], conf?: {
|
|
2342
|
-
langId?: number;
|
|
2343
|
-
strictMode?: boolean;
|
|
2344
|
-
translatingFile?: TUploaderFileInfo;
|
|
2345
|
-
shouldReset?: boolean;
|
|
2346
|
-
}): File[];
|
|
2347
|
-
parseFileDefinition: (file: TFileUploaded) => TUploaderFileInfo;
|
|
2348
2153
|
getLoadFileSystemStructureTree(): Record<string, unknown>;
|
|
2349
2154
|
getLoadFilesForFolderParameters(): Record<string, unknown>;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
api: UploaderApi;
|
|
2354
|
-
modalConfig: TModalConfig;
|
|
2355
|
-
conf?: {
|
|
2356
|
-
langId?: number;
|
|
2357
|
-
translatingFile?: TUploaderFileInfo;
|
|
2358
|
-
versionFile?: TUploaderFileInfo;
|
|
2359
|
-
} | undefined;
|
|
2360
|
-
state: UploaderModalState;
|
|
2361
|
-
constructor(api: UploaderApi, modalConfig: TModalConfig, conf?: {
|
|
2362
|
-
langId?: number;
|
|
2363
|
-
translatingFile?: TUploaderFileInfo;
|
|
2364
|
-
versionFile?: TUploaderFileInfo;
|
|
2365
|
-
} | undefined);
|
|
2366
|
-
get allMetadata(): TDocumentMetadata[];
|
|
2367
|
-
get allowAllType(): "" | "M" | "R";
|
|
2368
|
-
get description(): string;
|
|
2369
|
-
get docFolder(): number | undefined;
|
|
2370
|
-
get docExpDate(): string | undefined;
|
|
2371
|
-
get docTypes(): TDocType[];
|
|
2372
|
-
get freeMetadata(): TDocumentMetadata[];
|
|
2373
|
-
get exitingFiles(): Record<string, TUploaderFileInfo>;
|
|
2374
|
-
get inProgressFiles(): File[];
|
|
2375
|
-
get hiddenFiles(): File[];
|
|
2376
|
-
get progress(): number;
|
|
2377
|
-
get metadata(): TDocumentMetadata[];
|
|
2378
|
-
get selectedDocTypeId(): string;
|
|
2379
|
-
get selectedDocType(): TDocType | undefined;
|
|
2380
|
-
addMetadata(): void;
|
|
2381
|
-
addFiles(files: File[]): void;
|
|
2382
|
-
addDirectoryFile(file: TApiaDocumentDefinition): void;
|
|
2383
|
-
changeDocType(docTypeId: string): Promise<void>;
|
|
2384
|
-
clearDirectoryFile(): void;
|
|
2385
|
-
clearFile(name: string): void;
|
|
2386
|
-
clearFiles(): void;
|
|
2387
|
-
clearState(): void;
|
|
2388
|
-
clearPartialState(): void;
|
|
2389
|
-
onCloseModal(): void;
|
|
2390
|
-
confirm(): Promise<boolean>;
|
|
2391
|
-
deleteMetadata(indices: number[]): void;
|
|
2392
|
-
deletePermission(item: IPoolsPermissions | IUsersPermissions): void;
|
|
2393
|
-
protected onChangeExtension(): void;
|
|
2394
|
-
openModal(): Promise<void>;
|
|
2395
|
-
setDescription(desc: string): void;
|
|
2396
|
-
protected resetMetadata(): Promise<void>;
|
|
2397
|
-
validate(): boolean;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
type TUploadModalOpener = (controller: UploaderModalController) => void;
|
|
2401
|
-
type UploaderModalState = {
|
|
2402
|
-
fileReqError: boolean;
|
|
2403
|
-
metadata: {
|
|
2404
|
-
metadataArray: TDocumentMetadata[];
|
|
2405
|
-
isFreeMetadata: boolean;
|
|
2406
|
-
freeMetadataArray: TDocumentMetadata[];
|
|
2407
|
-
};
|
|
2408
|
-
fromDirectoryFile: TApiaDocumentDefinition | null;
|
|
2409
|
-
docFolder?: number;
|
|
2410
|
-
docPath?: string;
|
|
2411
|
-
docExpDate?: string;
|
|
2412
|
-
description: string;
|
|
2413
|
-
isReadonly?: boolean;
|
|
2414
|
-
permissions: {
|
|
2415
|
-
allowAllType: 'M' | 'R' | '';
|
|
2416
|
-
users: IUsersPermissions[];
|
|
2417
|
-
pools: IPoolsPermissions[];
|
|
2155
|
+
protected getAjaxUploadStartParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2156
|
+
protected addPrefix(defaultParameters: Record<string, unknown>): {
|
|
2157
|
+
prefix: "P" | "E";
|
|
2418
2158
|
};
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
progress: number;
|
|
2422
|
-
allowedTypes: TDocType[];
|
|
2423
|
-
selectedDocTypeId: string;
|
|
2424
|
-
versioningFile: TUploaderFileInfo | null;
|
|
2425
|
-
inProgressFiles: File[];
|
|
2426
|
-
hiddenFiles: File[];
|
|
2427
|
-
files: Record<string, TUploaderFileInfo>;
|
|
2428
|
-
translatedFiles: Map<string, Map<number, TUploaderFileInfo>>;
|
|
2429
|
-
hasAllDocTypes?: boolean;
|
|
2430
|
-
selectedFiles: string[];
|
|
2431
|
-
};
|
|
2432
|
-
interface IUsersPermissions {
|
|
2433
|
-
userId: string;
|
|
2434
|
-
userLogin: string;
|
|
2435
|
-
canUpdate: boolean;
|
|
2436
|
-
}
|
|
2437
|
-
interface IPoolsPermissions {
|
|
2438
|
-
poolId: string;
|
|
2439
|
-
poolName: string;
|
|
2440
|
-
canUpdate: boolean;
|
|
2441
|
-
}
|
|
2442
|
-
type TUploaderFileInfo = Omit<TFileUploaded, 'locked' | 'userLocking'> & {
|
|
2443
|
-
canEdit?: boolean;
|
|
2444
|
-
canRead?: boolean;
|
|
2445
|
-
isLocked: boolean;
|
|
2446
|
-
locked?: boolean;
|
|
2447
|
-
isLockedByMe: boolean;
|
|
2448
|
-
isVirtual: boolean;
|
|
2449
|
-
lockingUser: string;
|
|
2450
|
-
};
|
|
2451
|
-
type TFileUploaded = {
|
|
2452
|
-
canEdit?: boolean;
|
|
2453
|
-
canWrite?: boolean;
|
|
2454
|
-
canRead?: boolean;
|
|
2455
|
-
description?: string;
|
|
2456
|
-
docDescription?: string;
|
|
2457
|
-
docId: string;
|
|
2458
|
-
docLang?: string;
|
|
2459
|
-
docLangGroup?: string;
|
|
2460
|
-
docName?: string;
|
|
2461
|
-
docSize?: string;
|
|
2462
|
-
docTypeFreeMetadata?: boolean;
|
|
2463
|
-
docTypeId?: string;
|
|
2464
|
-
docTypeLabel?: string;
|
|
2465
|
-
docTypeTitle: string;
|
|
2466
|
-
downloadDocId: string;
|
|
2467
|
-
isMarkedToSign: boolean;
|
|
2468
|
-
markedToSign: boolean;
|
|
2469
|
-
lock?: string | boolean;
|
|
2470
|
-
isLocked?: string | boolean;
|
|
2471
|
-
lockedBy?: string;
|
|
2472
|
-
name?: string;
|
|
2473
|
-
onlyInformation: boolean;
|
|
2474
|
-
prefix: string;
|
|
2475
|
-
preview: string;
|
|
2476
|
-
sign?: string | boolean;
|
|
2477
|
-
size?: string;
|
|
2478
|
-
userLocking: string;
|
|
2479
|
-
virtualDoc?: boolean;
|
|
2480
|
-
locked?: boolean;
|
|
2481
|
-
};
|
|
2482
|
-
type TAjaxUploadStart = T__LEGACY_SERVER__ApiaLoad<T__LEGACY_SERVER__ApiaFunction<{
|
|
2483
|
-
general: {
|
|
2484
|
-
isDocTypeDisabled: boolean;
|
|
2485
|
-
useDocTypePermitted: boolean;
|
|
2486
|
-
createMode: boolean;
|
|
2487
|
-
allowAllTypes: string;
|
|
2488
|
-
allDocTypes: boolean;
|
|
2159
|
+
protected getDocumentInfoParameters(defaultParameters: Record<string, unknown>): {
|
|
2160
|
+
prefix: "P" | "E";
|
|
2489
2161
|
};
|
|
2490
|
-
|
|
2491
|
-
|
|
2162
|
+
protected getCheckLockDocumentParameters: (defaultParameters: Record<string, unknown>) => {
|
|
2163
|
+
prefix: "P" | "E";
|
|
2492
2164
|
};
|
|
2493
|
-
|
|
2494
|
-
|
|
2165
|
+
protected getReloadMetadataParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2166
|
+
protected getSaveDroppedFilesParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2167
|
+
protected getAjaxUploadFileStatusParameters(defaultParameters: Record<string, unknown>): {
|
|
2168
|
+
prefix: "P" | "E";
|
|
2495
2169
|
};
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
free: string;
|
|
2507
|
-
id: string;
|
|
2508
|
-
name: string;
|
|
2509
|
-
required: 'Y' | 'N';
|
|
2510
|
-
title: string;
|
|
2511
|
-
type: 'S' | 'N' | 'D';
|
|
2512
|
-
value: string;
|
|
2513
|
-
errorMessage: string;
|
|
2514
|
-
labelErrorMessage: string;
|
|
2515
|
-
};
|
|
2516
|
-
type TModalConfig = {
|
|
2517
|
-
allowDocumentsMonitor: boolean;
|
|
2518
|
-
allowPickFromDirectories: boolean;
|
|
2519
|
-
collapsePermissions: boolean;
|
|
2520
|
-
collapseDirectories: boolean;
|
|
2521
|
-
collapseMetadata: boolean;
|
|
2522
|
-
defaultDirectory?: number;
|
|
2523
|
-
monitorId?: number;
|
|
2524
|
-
oneClickUpload: boolean;
|
|
2525
|
-
rootFolder?: string;
|
|
2526
|
-
showDirectoriesStructure: boolean;
|
|
2527
|
-
showExpDate: boolean;
|
|
2528
|
-
showPermissions: boolean;
|
|
2529
|
-
showMetadata: boolean;
|
|
2530
|
-
translationId?: string;
|
|
2531
|
-
};
|
|
2532
|
-
type TUploaderLoadCurrentFunctionMessages = {
|
|
2533
|
-
allowSign: boolean;
|
|
2534
|
-
allowLock: boolean;
|
|
2535
|
-
allowMultiple: boolean;
|
|
2536
|
-
readOnly: boolean;
|
|
2537
|
-
};
|
|
2538
|
-
type TSaveDroppedFilesConf = {
|
|
2539
|
-
langId?: number;
|
|
2540
|
-
strictMode?: boolean;
|
|
2541
|
-
translatingFile?: TUploaderFileInfo;
|
|
2542
|
-
shouldReset?: boolean;
|
|
2543
|
-
};
|
|
2544
|
-
type TAjaxUploadFileStatus = T__LEGACY_SERVER__ApiaLoad<T__LEGACY_SERVER__ApiaFunction<{
|
|
2545
|
-
message: {
|
|
2546
|
-
label: string;
|
|
2547
|
-
name: string;
|
|
2548
|
-
}[];
|
|
2549
|
-
}>>;
|
|
2550
|
-
type TProcessDroppedFiles = T__LEGACY_SERVER__ApiaLoad<T__LEGACY_SERVER__ApiaFunction<{
|
|
2551
|
-
principal: {
|
|
2552
|
-
docInfo: TDocInfo | TDocInfo[];
|
|
2553
|
-
docTypes: {
|
|
2554
|
-
'data-free': boolean;
|
|
2555
|
-
docTypeExtensions: string;
|
|
2556
|
-
docTypeId: string;
|
|
2557
|
-
docTypeMaxSize: number;
|
|
2558
|
-
docTypeName: string;
|
|
2559
|
-
};
|
|
2560
|
-
elemInfo: {
|
|
2561
|
-
elemId: string;
|
|
2562
|
-
elemType: string;
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
}, false>>;
|
|
2566
|
-
type TDocInfo = {
|
|
2567
|
-
docInfoName: string;
|
|
2568
|
-
docInfoSize: string;
|
|
2569
|
-
docInfoTmpId: string;
|
|
2570
|
-
docInfoType: string;
|
|
2571
|
-
};
|
|
2572
|
-
type TConfirmDropModal = T__LEGACY_SERVER__ApiaLoad<T__LEGACY_SERVER__ApiaFunction<{
|
|
2573
|
-
general: TFileUploaded | TFileUploaded[];
|
|
2574
|
-
fromForm: {
|
|
2575
|
-
fromForm: {
|
|
2576
|
-
fromForm: boolean;
|
|
2577
|
-
}[];
|
|
2578
|
-
};
|
|
2579
|
-
}, false>>;
|
|
2580
|
-
type TApiaDocumentDefinition = {
|
|
2581
|
-
docDesc: string;
|
|
2582
|
-
docTypeLabel: string;
|
|
2583
|
-
docId: string;
|
|
2584
|
-
prefix: string;
|
|
2585
|
-
docSize: string;
|
|
2586
|
-
docDate: string;
|
|
2587
|
-
docDwnExternal: string;
|
|
2588
|
-
docExpDate: string;
|
|
2589
|
-
docFolder: string;
|
|
2590
|
-
docFolderPath: string;
|
|
2591
|
-
docUsu: string;
|
|
2592
|
-
docAllPoolPerm: 'M' | 'R' | '';
|
|
2593
|
-
docName: string;
|
|
2594
|
-
docTypeId: string;
|
|
2595
|
-
locked: boolean;
|
|
2596
|
-
downloadDocId: string;
|
|
2597
|
-
};
|
|
2598
|
-
type TUploaderLoadCurrentFunction = {
|
|
2599
|
-
general?: TFileUploaded | TFileUploaded[];
|
|
2600
|
-
messages: {
|
|
2601
|
-
message: {
|
|
2602
|
-
name: keyof TUploaderLoadCurrentFunctionMessages;
|
|
2603
|
-
label: boolean;
|
|
2604
|
-
} | {
|
|
2605
|
-
name: keyof TUploaderLoadCurrentFunctionMessages;
|
|
2606
|
-
label: boolean;
|
|
2607
|
-
}[];
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
type TDocumentInformation = T__LEGACY_SERVER__ApiaLoad<T__LEGACY_SERVER__ApiaFunction<{
|
|
2611
|
-
data: {
|
|
2612
|
-
onClose: string;
|
|
2613
|
-
general: TApiaDocumentDefinition;
|
|
2614
|
-
permissions: {
|
|
2615
|
-
pool: TDocumentPermission | TDocumentPermission[];
|
|
2616
|
-
user: TDocumentPermission | TDocumentPermission[];
|
|
2617
|
-
};
|
|
2618
|
-
versions: {
|
|
2619
|
-
version: TDocumentVersion | TDocumentVersion[];
|
|
2620
|
-
};
|
|
2621
|
-
};
|
|
2622
|
-
currentUsrPems: {
|
|
2623
|
-
usrCanModify: boolean;
|
|
2624
|
-
};
|
|
2625
|
-
metadatas: {
|
|
2626
|
-
metadata: TDocumentMetadata | TDocumentMetadata[];
|
|
2627
|
-
};
|
|
2628
|
-
docDownHistory: {
|
|
2629
|
-
docHistory: TDocumentDownloadHistory | TDocumentDownloadHistory[];
|
|
2630
|
-
};
|
|
2631
|
-
}, false>>;
|
|
2632
|
-
type TDocumentPermission = {
|
|
2633
|
-
id: string;
|
|
2634
|
-
name: string;
|
|
2635
|
-
permType: 'R' | 'M';
|
|
2636
|
-
};
|
|
2637
|
-
type TDocumentDownloadHistory = {
|
|
2638
|
-
hisDwn: string;
|
|
2639
|
-
hisUsr: string;
|
|
2640
|
-
hisVer: string;
|
|
2641
|
-
};
|
|
2642
|
-
type TDocumentVersion = {
|
|
2643
|
-
verUser: string;
|
|
2644
|
-
verNumber: string;
|
|
2645
|
-
verDate: string;
|
|
2646
|
-
};
|
|
2647
|
-
type TRequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
2648
|
-
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
2649
|
-
}[Keys];
|
|
2170
|
+
protected getMarkFileToSignParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2171
|
+
protected getProcessDroppedFilesPostdata(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2172
|
+
protected getProcessDroppedFilesParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2173
|
+
protected getConfirmDropModalParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2174
|
+
protected getConfirmDropModalPostdata(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2175
|
+
protected getCheckWebDavLockParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2176
|
+
protected getDownloadMultipleDocumentsParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2177
|
+
protected getLoadCurrentDocumentsParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2178
|
+
protected getDeleteDocumentParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2179
|
+
}
|
|
2650
2180
|
|
|
2651
2181
|
declare class FormsUploader extends UploaderApi {
|
|
2652
2182
|
execution: Execution;
|
|
2653
2183
|
type: 'E' | 'P';
|
|
2654
|
-
modalConfig: TModalConfig;
|
|
2655
2184
|
field: File$1;
|
|
2656
2185
|
constructor(execution: Execution, type: 'E' | 'P', modalConfig: TModalConfig, field: File$1);
|
|
2657
2186
|
isEditionMode: boolean | undefined;
|
|
2658
2187
|
index(): number;
|
|
2659
2188
|
elemId(): string;
|
|
2189
|
+
protected buildModalController(conf?: {
|
|
2190
|
+
langId?: number;
|
|
2191
|
+
translatingFile?: TUploaderFileInfo;
|
|
2192
|
+
versionFile?: TUploaderFileInfo;
|
|
2193
|
+
}): UploaderModalController;
|
|
2660
2194
|
protected filterByFilesAmountLimit(files: File[]): File[];
|
|
2661
2195
|
protected getFormParameters(): {
|
|
2662
2196
|
frmId: string;
|
|
@@ -2688,8 +2222,24 @@ declare class FormsUploader extends UploaderApi {
|
|
|
2688
2222
|
frmOut: boolean;
|
|
2689
2223
|
};
|
|
2690
2224
|
};
|
|
2691
|
-
getAjaxUploadFileStatusParameters
|
|
2692
|
-
|
|
2225
|
+
getAjaxUploadFileStatusParameters(defaultParameters: Record<string, unknown>): {
|
|
2226
|
+
frmId: string;
|
|
2227
|
+
frmParent: TFrmParent;
|
|
2228
|
+
attId: string;
|
|
2229
|
+
index: number;
|
|
2230
|
+
editionMode: boolean | undefined;
|
|
2231
|
+
prefix: TFrmParent;
|
|
2232
|
+
forceDocTypeId: string | undefined;
|
|
2233
|
+
};
|
|
2234
|
+
getAjaxUploadStartParameters({ useDocTypePermitted, docTypePermittedObjType, docTypePermittedObjId, ...defaultParameters }: Record<string, unknown>): {
|
|
2235
|
+
frmId: string;
|
|
2236
|
+
frmParent: TFrmParent;
|
|
2237
|
+
attId: string;
|
|
2238
|
+
index: number;
|
|
2239
|
+
editionMode: boolean | undefined;
|
|
2240
|
+
prefix: TFrmParent;
|
|
2241
|
+
forceDocTypeId: string | undefined;
|
|
2242
|
+
};
|
|
2693
2243
|
getCheckLockDocumentParameters: ({ prefix, ...parameters }: Record<string, unknown>) => {
|
|
2694
2244
|
frmId: string;
|
|
2695
2245
|
frmParent: TFrmParent;
|
|
@@ -2708,7 +2258,7 @@ declare class FormsUploader extends UploaderApi {
|
|
|
2708
2258
|
attId: string;
|
|
2709
2259
|
index: number;
|
|
2710
2260
|
};
|
|
2711
|
-
getConfirmDropModalParameters
|
|
2261
|
+
getConfirmDropModalParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2712
2262
|
getConfirmDropModalPostdata: ({ pe, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
|
|
2713
2263
|
getDeleteDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
|
|
2714
2264
|
frmId: string;
|
|
@@ -2717,8 +2267,9 @@ declare class FormsUploader extends UploaderApi {
|
|
|
2717
2267
|
index: number;
|
|
2718
2268
|
editionMode: boolean | undefined;
|
|
2719
2269
|
};
|
|
2720
|
-
getDocumentInfoParameters
|
|
2270
|
+
getDocumentInfoParameters(parameters: Record<string, unknown>): {
|
|
2721
2271
|
ajaxUrl: string;
|
|
2272
|
+
prefix: "P" | "E";
|
|
2722
2273
|
};
|
|
2723
2274
|
getEditDocumentParameters: ({ action, docId }: Record<string, unknown>) => {
|
|
2724
2275
|
docId: unknown;
|
|
@@ -2732,7 +2283,7 @@ declare class FormsUploader extends UploaderApi {
|
|
|
2732
2283
|
getLoadFilesForFolderParameters: () => Record<string, unknown>;
|
|
2733
2284
|
getLoadFileSystemStructureTree: () => {
|
|
2734
2285
|
useDocTypePermitted: boolean;
|
|
2735
|
-
docTypeForcedId: string
|
|
2286
|
+
docTypeForcedId: string;
|
|
2736
2287
|
};
|
|
2737
2288
|
getLockDocumentParameters: ({ prefix, isAjax, ...currentParameters }: Record<string, unknown>) => {
|
|
2738
2289
|
frmId: string;
|
|
@@ -2753,8 +2304,8 @@ declare class FormsUploader extends UploaderApi {
|
|
|
2753
2304
|
};
|
|
2754
2305
|
getProcessDroppedFilesParameters: (defaultParameters: Record<string, unknown>) => Record<string, unknown>;
|
|
2755
2306
|
getProcessDroppedFilesPostdata: ({ useDocTypePermitted, docTypePermittedObjId, docTypePermittedObjType, ...parameters }: Record<string, unknown>) => Record<string, unknown>;
|
|
2756
|
-
getReloadMetadataParameters
|
|
2757
|
-
getSaveDroppedFilesParameters
|
|
2307
|
+
getReloadMetadataParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2308
|
+
getSaveDroppedFilesParameters(defaultParameters: Record<string, unknown>): Record<string, unknown>;
|
|
2758
2309
|
downloadVersion(fileId: string, version?: string): Promise<void>;
|
|
2759
2310
|
downloadDocument(fileId: string, version?: string): Promise<void>;
|
|
2760
2311
|
loadCurrentDocuments(): Promise<void>;
|
|
@@ -2947,6 +2498,48 @@ declare abstract class FlowModal<T extends {
|
|
|
2947
2498
|
abstract confirm(result: T): Promise<Status | FlowModal<any>>;
|
|
2948
2499
|
}
|
|
2949
2500
|
|
|
2501
|
+
declare enum ExecutionState {
|
|
2502
|
+
RUNNING = 0,
|
|
2503
|
+
LOADING = 1,
|
|
2504
|
+
FINISHED = 2,
|
|
2505
|
+
RENDERING = 3,
|
|
2506
|
+
CONFIRMING = 4,
|
|
2507
|
+
FINISHED_WITH_ERROR = 5
|
|
2508
|
+
}
|
|
2509
|
+
type TOnClose = 'clearEvalPath' | 'confirmOkOnClose' | 'confirmOkOnCloseSplash' | 'confirmOkOnSaveSplash' | 'releaseOkOnClose' | null;
|
|
2510
|
+
type TErrMessage = {
|
|
2511
|
+
message: {
|
|
2512
|
+
text: string;
|
|
2513
|
+
label?: string;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
type TFetchTaskActionResponse = {
|
|
2517
|
+
onClose?: TOnClose;
|
|
2518
|
+
sysMessages?: TErrMessage;
|
|
2519
|
+
sysExceptions?: TErrMessage;
|
|
2520
|
+
type?: string;
|
|
2521
|
+
actions?: {
|
|
2522
|
+
action: {
|
|
2523
|
+
param: string[];
|
|
2524
|
+
toDo: string;
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
load?: {
|
|
2528
|
+
canClose: boolean;
|
|
2529
|
+
type: string;
|
|
2530
|
+
text: {
|
|
2531
|
+
label: string;
|
|
2532
|
+
closeAll: boolean;
|
|
2533
|
+
addClass?: string;
|
|
2534
|
+
title?: string;
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
text?: {
|
|
2538
|
+
title?: string;
|
|
2539
|
+
label?: string;
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2950
2543
|
type TCheckWizardResponse = {
|
|
2951
2544
|
url: string;
|
|
2952
2545
|
};
|
|
@@ -3085,6 +2678,7 @@ type TExecutionEnvironment = {
|
|
|
3085
2678
|
taskName: string;
|
|
3086
2679
|
processName: string;
|
|
3087
2680
|
};
|
|
2681
|
+
openUploaderModal?: (execution: UploaderModalController) => unknown;
|
|
3088
2682
|
};
|
|
3089
2683
|
declare class Execution extends EventEmitter$1<{
|
|
3090
2684
|
flow: 'previous' | 'confirm' | 'next' | 'save' | 'release' | 'share' | 'viewDocs' | 'print' | 'delegate';
|
|
@@ -3096,6 +2690,7 @@ declare class Execution extends EventEmitter$1<{
|
|
|
3096
2690
|
};
|
|
3097
2691
|
}> {
|
|
3098
2692
|
environment: TExecutionEnvironment;
|
|
2693
|
+
renderers?: TModalConfig['renderers'];
|
|
3099
2694
|
fieldsMapping: FieldsMapping;
|
|
3100
2695
|
private entity;
|
|
3101
2696
|
private process;
|
|
@@ -3108,7 +2703,7 @@ declare class Execution extends EventEmitter$1<{
|
|
|
3108
2703
|
readonly notifications: Notifications;
|
|
3109
2704
|
private lastModalReturn;
|
|
3110
2705
|
private _pendingPromises;
|
|
3111
|
-
constructor(environment: TExecutionEnvironment);
|
|
2706
|
+
constructor(environment: TExecutionEnvironment, renderers?: TModalConfig['renderers']);
|
|
3112
2707
|
protected formsById: {
|
|
3113
2708
|
E: Map<string, Form>;
|
|
3114
2709
|
P: Map<string, Form>;
|
|
@@ -3123,7 +2718,6 @@ declare class Execution extends EventEmitter$1<{
|
|
|
3123
2718
|
hasChangedAnything: boolean;
|
|
3124
2719
|
};
|
|
3125
2720
|
addPendingPromise(promise: Promise<boolean>): void;
|
|
3126
|
-
getErrorsList(): FieldError[];
|
|
3127
2721
|
getAllForms(): Form[];
|
|
3128
2722
|
private hasInitializedFormsTabs;
|
|
3129
2723
|
initializeFormsTabs(frmParent: TFrmParent, cb: () => unknown): void;
|
|
@@ -3410,7 +3004,7 @@ declare class Checkbox extends FieldWithAttribute<TApiaCheckboxProperties, boole
|
|
|
3410
3004
|
type EditorEvents = 'onChange';
|
|
3411
3005
|
declare class Editor extends TranslatableField<TApiaEditorProperties, string> {
|
|
3412
3006
|
fireEvent(eventName: EditorEvents, options?: TFireEventOptions): Promise<boolean>;
|
|
3413
|
-
protected
|
|
3007
|
+
protected isValidValue(): boolean;
|
|
3414
3008
|
protected getSynchronizePostConfiguration(value: string): IApiaApiPostConfig<any>;
|
|
3415
3009
|
}
|
|
3416
3010
|
|
|
@@ -3665,7 +3259,7 @@ declare class Input extends TranslatableField<TApiaInputProperties, string, TApi
|
|
|
3665
3259
|
setValue(newValue: string | Date | number, options?: SetValueOptions): Promise<boolean>;
|
|
3666
3260
|
private validateRegex;
|
|
3667
3261
|
validate(): Promise<boolean>;
|
|
3668
|
-
protected
|
|
3262
|
+
protected isValidValue(): boolean;
|
|
3669
3263
|
}
|
|
3670
3264
|
|
|
3671
3265
|
declare class Label extends Field<TApiaLabelProperties, TApiaLabelDefinition> {
|
|
@@ -3723,7 +3317,7 @@ declare class Multiple extends FieldWithAttribute<TApiaMultipleProperties, strin
|
|
|
3723
3317
|
}
|
|
3724
3318
|
|
|
3725
3319
|
declare class Password extends FieldWithAttribute<TApiaPasswordProperties, string> {
|
|
3726
|
-
protected
|
|
3320
|
+
protected isValidValue(): boolean;
|
|
3727
3321
|
}
|
|
3728
3322
|
|
|
3729
3323
|
type RadioEvents = 'onPopulate' | 'onChange' | 'onClick';
|
|
@@ -3742,7 +3336,7 @@ declare class Select extends FieldWithAttribute<TApiaSelectProperties, string, T
|
|
|
3742
3336
|
}
|
|
3743
3337
|
|
|
3744
3338
|
declare class Textarea extends TranslatableField<TApiaTextareaProperties, string> {
|
|
3745
|
-
protected
|
|
3339
|
+
protected isValidValue(): boolean;
|
|
3746
3340
|
protected getSynchronizePostConfiguration(value: string): IApiaApiPostConfig<any>;
|
|
3747
3341
|
}
|
|
3748
3342
|
|
|
@@ -3760,6 +3354,7 @@ declare class Tree extends FieldWithAttribute<TApiaTreeProperties, TTreeValue[],
|
|
|
3760
3354
|
protected hasValue(): boolean;
|
|
3761
3355
|
setProperty<K extends keyof TApiaTreeProperties>(propName: K, propValue: TApiaTreeProperties[K]): void;
|
|
3762
3356
|
init(form: Form): Promise<void>;
|
|
3357
|
+
protected isValidValue(): boolean;
|
|
3763
3358
|
setValue(newValue: TTreeValue[], options?: Partial<{
|
|
3764
3359
|
comparator: Comparator$1<any>;
|
|
3765
3360
|
format: 'd/m/Y' | 'apia';
|
|
@@ -3784,6 +3379,13 @@ declare class SchedulerField extends Field<TApiaSchedulerProperties> {
|
|
|
3784
3379
|
loadWeek(weekDay: string, schId: string, proId: string, proVerId: string, tskId: string): Promise<(TScheduleResult & ResponseSysMessages) | null>;
|
|
3785
3380
|
loadInfo(schId: string, weekDay: string, dayNumber: number, hour: string): Promise<_apia_scheduler_controller.TProcesses>;
|
|
3786
3381
|
markDay(weekDay: string, hour: string, dayNumber: number): Promise<void>;
|
|
3382
|
+
selectDayHandler({ cellId, currentDayDefinition, dayNumber, hour, weekDay, }: {
|
|
3383
|
+
cellId: string;
|
|
3384
|
+
weekDay: string;
|
|
3385
|
+
dayNumber: number;
|
|
3386
|
+
hour: string;
|
|
3387
|
+
currentDayDefinition: TTskSchDay;
|
|
3388
|
+
}): Promise<void>;
|
|
3787
3389
|
get schedController(): Scheduler | undefined;
|
|
3788
3390
|
}
|
|
3789
3391
|
|
|
@@ -4076,5 +3678,5 @@ declare function getLabel(execution: Execution, label: string, replacers?: Parti
|
|
|
4076
3678
|
|
|
4077
3679
|
declare function parseFakeJSON<T extends Record<string, unknown>>(str: string): T;
|
|
4078
3680
|
|
|
4079
|
-
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IIProperty,
|
|
3681
|
+
export { ActionsController, AdditionalCell, ApiaAttribute, ApiaField, ApiaFieldWithAttribute, ApiaForm, ApiaFunctions, BouncingEmitter, Button, ButtonField, Captcha, CaptchaField, CheckField, Checkbox, type ComponentEvent, CustomComponent, GridField as DataGridField, Editor, EditorField, EventEmitter, Execution, ExecutionState, Field, FieldWithAttribute, type FieldWithAttributeState, type FieldsMapping, File$1 as File, FileUploaderField, FlowModal, Form, FormsUploader, Grid, GridCell, GridField, GridPaginated, HeaderCell, Hidden, HiddenField, type IApiaField, type IApiaForm, type IApiaFunctions, type IIProperty, IProperty, type ISignatureData, Image, ImageField, Input, InputField, InvalidSessionException, Label, Link, LinkField, MessageNotification, ModalInput, ModalInputField, Multiple, MultipleField, Notifications, Password, PasswordField, type PossibleValue, Radio, RadioField, type RadioPossibleValue, SchedulerField, Select, SelectField, type SelectPossibleValue, ShowConfirmMessage, ShowPathSelection, ShowPoolSelection, ShowSign, ShowSignSelection, StatefulEmitter, type Status, StatusNotification, type TApiaButtonProperties, type TApiaCaptchaProperties, type TApiaCheckboxProperties, type TApiaEditorProperties, type TApiaFieldBaseDefinition, type TApiaFieldCommonProperties, type TApiaFieldDefinition, type TApiaFieldPossibleValue, type TApiaFieldSizableFieldProperties, type TApiaFieldType, type TApiaFieldValueType, type TApiaFieldWithAttributeBaseProps, type TApiaFieldWithAttributeProperties, type TApiaFileProperties, type TApiaForm, type TApiaFormProperties, type TApiaGridProperties, type TApiaGroupableFieldProperties, type TApiaHiddenProperties, type TApiaImageProperties, type TApiaInputProperties, type TApiaLabelProperties, type TApiaLinkProperties, type TApiaMultipleProperties, type TApiaPasswordProperties, type TApiaRadioProperties, type TApiaSchedulerProperties, type TApiaSelectProperties, type TApiaTextareaProperties, type TApiaTitleProperties, type TApiaTranslatableFieldProperties, type TApiaTreePossibleValue, type TApiaTreeProperties, type TApiaValuatedFieldProperties, type TCheckWizardResponse, type TCusCmpStateRequest, type TCustomComponentDefaultResponse, type TCustomComponentDefinition, type TExecutionConfig, type TFetchConfirmPathResponse, type TFieldEvent, type TFieldScriptEvent, type TFieldScriptEventParameters, type TFieldScriptEvents, type TFieldServerEvent, type TFieldServerEvents, type TFormEventName, type TFormScriptEvent, type TFormScriptEventParameters, type TFormScriptEvents, type TFrmParent, type TItemTreeObj, type TObservation, type TObservations, type TPathType, type TSignaturesData, AreaField as TextAreaField, TextField, Textarea, Title, TranslatableField, Translation, Tree, TreeField, UploaderApi, createNewField, deepEqual, get, getLabel, isHtmlResponse, isJsonResponse, isXmlResponse, makeApiaUrl, parseFakeJSON, parseSuccessfulResponse, parseXml, post, shallowEqual };
|
|
4080
3682
|
//# sourceMappingURL=index.d.ts.map
|