@nexterajs/app-kit 0.0.1
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/LICENSE +202 -0
- package/NOTICE +16 -0
- package/README.md +64 -0
- package/fesm2022/nexterajs-app-kit.mjs +1012 -0
- package/fesm2022/nexterajs-app-kit.mjs.map +1 -0
- package/package.json +40 -0
- package/types/nexterajs-app-kit.d.ts +690 -0
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ComponentRef, Signal, PipeTransform, AfterViewInit, ElementRef, Renderer2, TemplateRef, ViewContainerRef, Type } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
interface Paging {
|
|
8
|
+
pageNo: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
totalRows: number;
|
|
11
|
+
totalPages: number;
|
|
12
|
+
}
|
|
13
|
+
interface NxeGridItem {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
dataType?: string;
|
|
17
|
+
lov?: string;
|
|
18
|
+
lovDependency?: LovDependency | LovDependency[];
|
|
19
|
+
pushToRight?: boolean;
|
|
20
|
+
filterCount?: number;
|
|
21
|
+
groupIndex?: number;
|
|
22
|
+
valueExpr?: string;
|
|
23
|
+
displayExpr?: string;
|
|
24
|
+
readonly?: boolean;
|
|
25
|
+
hidden?: boolean;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
alignment?: string;
|
|
29
|
+
readonlyOnCreate?: boolean;
|
|
30
|
+
readonlyOnModify?: boolean;
|
|
31
|
+
readonlyCondition?: Condition;
|
|
32
|
+
hiddenOnCreate?: boolean;
|
|
33
|
+
hiddenOnModify?: boolean;
|
|
34
|
+
hiddenOnGrid?: boolean;
|
|
35
|
+
hiddenCondition?: Condition;
|
|
36
|
+
shownVariable?: string;
|
|
37
|
+
link?: LinkDetail;
|
|
38
|
+
formattedLink?: string;
|
|
39
|
+
defaultValue?: any;
|
|
40
|
+
fixedValue?: any;
|
|
41
|
+
defaultValueDynamic?: {
|
|
42
|
+
from: string;
|
|
43
|
+
propertyCode: string;
|
|
44
|
+
};
|
|
45
|
+
required?: boolean;
|
|
46
|
+
gridItems?: NxeGridItem[];
|
|
47
|
+
gridConfig?: {
|
|
48
|
+
detailID: string;
|
|
49
|
+
inlineEditing?: boolean;
|
|
50
|
+
editable: boolean;
|
|
51
|
+
deletable: boolean;
|
|
52
|
+
isPrimaryHeader?: boolean;
|
|
53
|
+
};
|
|
54
|
+
dynamicField?: {
|
|
55
|
+
sourceID: string;
|
|
56
|
+
sourceTypeKey: string;
|
|
57
|
+
sourceLovKey: string;
|
|
58
|
+
};
|
|
59
|
+
width?: any;
|
|
60
|
+
format?: string;
|
|
61
|
+
hiddenConditions?: Condition;
|
|
62
|
+
onValueChange?: ValueChange[];
|
|
63
|
+
}
|
|
64
|
+
interface LovDependency {
|
|
65
|
+
dependentTo: string;
|
|
66
|
+
filterKey: string;
|
|
67
|
+
preFilter?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface ValueChange {
|
|
70
|
+
event?: string;
|
|
71
|
+
target?: string;
|
|
72
|
+
value?: any;
|
|
73
|
+
}
|
|
74
|
+
declare class ValueChangeEvent {
|
|
75
|
+
static readonly ADD_DAYS = "ADD_DAYS";
|
|
76
|
+
static readonly ADD_MONTHS = "ADD_MONTHS";
|
|
77
|
+
static readonly ADD_YEARS = "ADD_YEARS";
|
|
78
|
+
static readonly GET_DEFAULT_VALUE_REINS = "GET_DEFAULT_VALUE_REINS";
|
|
79
|
+
}
|
|
80
|
+
interface ModeState {
|
|
81
|
+
onCreate: boolean;
|
|
82
|
+
onModify: boolean;
|
|
83
|
+
}
|
|
84
|
+
interface LinkDetail {
|
|
85
|
+
url: string;
|
|
86
|
+
id: string;
|
|
87
|
+
target?: string;
|
|
88
|
+
}
|
|
89
|
+
interface NxeLayoutItem {
|
|
90
|
+
id?: string;
|
|
91
|
+
layoutType?: string;
|
|
92
|
+
label?: string;
|
|
93
|
+
className?: string;
|
|
94
|
+
gridItem?: NxeGridItem;
|
|
95
|
+
children?: NxeLayoutItem[];
|
|
96
|
+
gridColumn?: number;
|
|
97
|
+
}
|
|
98
|
+
declare class LayoutType {
|
|
99
|
+
static readonly DIVIDER = "DIVIDER";
|
|
100
|
+
static readonly CONTAINER = "CONTAINER";
|
|
101
|
+
static readonly GRID_ITEM = "GRID_ITEM";
|
|
102
|
+
static readonly GRID_CONTAINER = "GRID_CONTAINER";
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface ModuleMetadata {
|
|
106
|
+
section: string;
|
|
107
|
+
icon: string;
|
|
108
|
+
entityType: string;
|
|
109
|
+
accessRight: string;
|
|
110
|
+
packageCode?: string;
|
|
111
|
+
webBaseUrl: string;
|
|
112
|
+
apiBaseUrl: string;
|
|
113
|
+
apiBaseUrlModifier?: string;
|
|
114
|
+
uploadUrl: string;
|
|
115
|
+
id: string;
|
|
116
|
+
lov: string;
|
|
117
|
+
lovMapper?: any;
|
|
118
|
+
isTableMaintenance?: boolean;
|
|
119
|
+
usePopup?: boolean;
|
|
120
|
+
listPage?: ListPageMetadata;
|
|
121
|
+
createPage?: {
|
|
122
|
+
forms: NxeLayoutItem[];
|
|
123
|
+
};
|
|
124
|
+
upsertPage?: UpsertPageMetadata;
|
|
125
|
+
detailPage?: UpsertPageMetadata;
|
|
126
|
+
}
|
|
127
|
+
interface ListPageMetadata {
|
|
128
|
+
create: boolean | any;
|
|
129
|
+
hasSearchBox?: boolean;
|
|
130
|
+
hasUploadButton?: boolean;
|
|
131
|
+
selectable?: boolean;
|
|
132
|
+
actions?: {
|
|
133
|
+
actionItems: ActionItem[];
|
|
134
|
+
gridItems?: NxeGridItem[];
|
|
135
|
+
};
|
|
136
|
+
tree?: {
|
|
137
|
+
keyExpr: string;
|
|
138
|
+
parentIdExpr: string;
|
|
139
|
+
autoExpandAll: boolean;
|
|
140
|
+
};
|
|
141
|
+
filters: NxeGridItem[];
|
|
142
|
+
gridItems: NxeGridItem[];
|
|
143
|
+
masterDetail?: {
|
|
144
|
+
apiUrl: string;
|
|
145
|
+
gridItems: NxeGridItem[];
|
|
146
|
+
};
|
|
147
|
+
summary?: any;
|
|
148
|
+
}
|
|
149
|
+
interface UpsertPageMetadata {
|
|
150
|
+
subheaders: NxeGridItem[];
|
|
151
|
+
hasApproval?: boolean;
|
|
152
|
+
isInlineModify?: boolean;
|
|
153
|
+
actions?: {
|
|
154
|
+
actionItems: ActionItem[];
|
|
155
|
+
gridItems?: NxeGridItem[];
|
|
156
|
+
};
|
|
157
|
+
forms: NxeLayoutItem[];
|
|
158
|
+
tabHeaderLabel?: string;
|
|
159
|
+
tabContentLabel?: string;
|
|
160
|
+
tabs?: {
|
|
161
|
+
label: string;
|
|
162
|
+
component: any;
|
|
163
|
+
componentRef?: ComponentRef<any>;
|
|
164
|
+
hiddenConditions?: Condition;
|
|
165
|
+
}[];
|
|
166
|
+
}
|
|
167
|
+
interface ActionItem {
|
|
168
|
+
actionCode: string;
|
|
169
|
+
overrideActionCode?: string;
|
|
170
|
+
overrideUrl?: string;
|
|
171
|
+
redirectAfterSuccessful?: string;
|
|
172
|
+
disabledConditions?: ActionItemDisabledOn[];
|
|
173
|
+
}
|
|
174
|
+
interface ActionItemDisabledOn {
|
|
175
|
+
key: string;
|
|
176
|
+
operator: string;
|
|
177
|
+
value: any;
|
|
178
|
+
}
|
|
179
|
+
declare class BooleanOperator {
|
|
180
|
+
static readonly NOT_INCLUDE = "NIN";
|
|
181
|
+
static readonly INCLUDE = "IN";
|
|
182
|
+
static readonly EQUALS = "=";
|
|
183
|
+
static readonly NOT_EQUAL = "!=";
|
|
184
|
+
}
|
|
185
|
+
declare class ValueOperator {
|
|
186
|
+
static readonly NOT_INCLUDE = "NIN";
|
|
187
|
+
static readonly INCLUDE = "IN";
|
|
188
|
+
static readonly EQUALS = "=";
|
|
189
|
+
static readonly NOT_EQUAL = "!=";
|
|
190
|
+
}
|
|
191
|
+
declare class ConditionType {
|
|
192
|
+
static readonly GROUP = "GROUP";
|
|
193
|
+
static readonly SINGLE = "SINGLE";
|
|
194
|
+
}
|
|
195
|
+
declare class ConditionOperator {
|
|
196
|
+
static readonly AND = "AND";
|
|
197
|
+
static readonly OR = "OR";
|
|
198
|
+
}
|
|
199
|
+
interface Condition {
|
|
200
|
+
type: string;
|
|
201
|
+
children?: Condition[];
|
|
202
|
+
groupOperator?: string;
|
|
203
|
+
key?: string;
|
|
204
|
+
valueOperator?: string;
|
|
205
|
+
value?: any;
|
|
206
|
+
}
|
|
207
|
+
declare class ConditionEvaluator {
|
|
208
|
+
static evaluate(data: Record<string, any>, condition: Condition): boolean;
|
|
209
|
+
private static evaluateSingle;
|
|
210
|
+
private static evaluateGroup;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface RequestAction {
|
|
214
|
+
action: string;
|
|
215
|
+
id1: string;
|
|
216
|
+
id2: string;
|
|
217
|
+
id3: string;
|
|
218
|
+
param0?: string;
|
|
219
|
+
param1: string;
|
|
220
|
+
param2: string;
|
|
221
|
+
param3: string;
|
|
222
|
+
param4: string;
|
|
223
|
+
param5: string;
|
|
224
|
+
notes: string;
|
|
225
|
+
processBy: string;
|
|
226
|
+
}
|
|
227
|
+
interface ActionConfig {
|
|
228
|
+
url?: string;
|
|
229
|
+
actionCode: string;
|
|
230
|
+
id?: string;
|
|
231
|
+
id1?: string;
|
|
232
|
+
id2?: string;
|
|
233
|
+
id3?: string;
|
|
234
|
+
processBy?: string;
|
|
235
|
+
section?: string;
|
|
236
|
+
subsection?: string;
|
|
237
|
+
text?: string;
|
|
238
|
+
btnYesText?: string;
|
|
239
|
+
btnNoText?: string;
|
|
240
|
+
lov?: any;
|
|
241
|
+
accessRight?: any;
|
|
242
|
+
disableToast?: boolean;
|
|
243
|
+
notes?: string;
|
|
244
|
+
metadata?: ModuleMetadata;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface Lov {
|
|
248
|
+
defaultValue: string;
|
|
249
|
+
isActive: string;
|
|
250
|
+
lovCode: any;
|
|
251
|
+
lovName: string;
|
|
252
|
+
lovType: string;
|
|
253
|
+
otherValue1: string;
|
|
254
|
+
otherValue2: string;
|
|
255
|
+
otherValue3: string;
|
|
256
|
+
otherValue4: string;
|
|
257
|
+
otherValue5: string;
|
|
258
|
+
sequenceNo: number;
|
|
259
|
+
}
|
|
260
|
+
type StringArrayMap<T extends readonly string[]> = {
|
|
261
|
+
[K in T[number]]?: string[];
|
|
262
|
+
};
|
|
263
|
+
declare class MappedLov<T extends readonly string[]> {
|
|
264
|
+
private map;
|
|
265
|
+
constructor(initial?: StringArrayMap<T>);
|
|
266
|
+
get<K extends T[number]>(key: K): string[];
|
|
267
|
+
set<K extends T[number]>(key: K, value: string[]): void;
|
|
268
|
+
has<K extends T[number]>(key: K): boolean;
|
|
269
|
+
getRawMap(): Required<{
|
|
270
|
+
[K in T[number]]: string[];
|
|
271
|
+
}>;
|
|
272
|
+
constructorKeys: T;
|
|
273
|
+
get keys(): T[number][];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface NxeResponse<T> {
|
|
277
|
+
data: T;
|
|
278
|
+
paging: any;
|
|
279
|
+
message: string;
|
|
280
|
+
returnCode: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
declare class DataType {
|
|
284
|
+
static readonly TXT = "TXT";
|
|
285
|
+
static readonly TXM = "TXM";
|
|
286
|
+
static readonly NUM = "NUM";
|
|
287
|
+
static readonly DTE = "DTE";
|
|
288
|
+
static readonly LNK = "LNK";
|
|
289
|
+
static readonly TXA = "TXA";
|
|
290
|
+
static readonly ACT = "ACT";
|
|
291
|
+
static readonly LOV = "LOV";
|
|
292
|
+
static readonly LOM = "LOM";
|
|
293
|
+
static readonly CHK = "CHK";
|
|
294
|
+
static readonly HTM = "HTM";
|
|
295
|
+
static readonly GRD = "GRD";
|
|
296
|
+
static readonly IMG = "IMG";
|
|
297
|
+
static readonly DRD = "DRD";
|
|
298
|
+
static readonly DYN = "DYN";
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare class ActionCode {
|
|
302
|
+
static readonly LIST = "LST";
|
|
303
|
+
static readonly VIEW = "VIE";
|
|
304
|
+
static readonly CREATE = "CRT";
|
|
305
|
+
static readonly VALIDATE = "VAL";
|
|
306
|
+
static readonly FINALIZE = "FIN";
|
|
307
|
+
static readonly APPROVAL = "APP";
|
|
308
|
+
static readonly MODIFY = "MOD";
|
|
309
|
+
static readonly DELETE = "DEL";
|
|
310
|
+
static readonly CANCEL = "CAN";
|
|
311
|
+
static readonly EXTEND_DUE_DATE = "EXD";
|
|
312
|
+
static readonly CONFIRM = "CON";
|
|
313
|
+
static readonly BINDING = "BIN";
|
|
314
|
+
static readonly REVERSE = "REV";
|
|
315
|
+
static readonly CALCULATE = "CAL";
|
|
316
|
+
static readonly SEND_FOR_APPROVAL = "STA";
|
|
317
|
+
static readonly PLACEMENT = "PLA";
|
|
318
|
+
static readonly DIVIDER = "divider";
|
|
319
|
+
static readonly RUN = "RUN";
|
|
320
|
+
static readonly ACTIVATED = "ACT";
|
|
321
|
+
static readonly TERMINATED = "TRM";
|
|
322
|
+
static readonly RESET_PASS = "RST";
|
|
323
|
+
static readonly LOCK = "LOC";
|
|
324
|
+
static readonly UNLOCK = "UNL";
|
|
325
|
+
static readonly POSTING = "POS";
|
|
326
|
+
static readonly UNPOSTING = "UNP";
|
|
327
|
+
static readonly EXTRACT = "EXT";
|
|
328
|
+
static readonly BIND = "BND";
|
|
329
|
+
static readonly NEW = "NEW";
|
|
330
|
+
static readonly ADD_SUB_TREATY = "ADD_SUB_TREATY";
|
|
331
|
+
static readonly CORRECTION = "COR";
|
|
332
|
+
static readonly CONVERT_TO_PROPOSAL = "PRO";
|
|
333
|
+
static readonly DOWNLOAD = "PRV";
|
|
334
|
+
static readonly SEND = "SND";
|
|
335
|
+
static readonly ISSUE = "ISS";
|
|
336
|
+
static readonly REACTIVATE = "RAC";
|
|
337
|
+
static readonly PRINT = "PRT";
|
|
338
|
+
static readonly TERMINATE = "TRM";
|
|
339
|
+
static readonly ADD_TO_PAYMENT = "ADD_TO_PAYMENT";
|
|
340
|
+
static readonly ROLLBACK = "ROL";
|
|
341
|
+
}
|
|
342
|
+
declare const ACTION_MAPPER: {
|
|
343
|
+
CRT: typeof getActionNew;
|
|
344
|
+
VIE: typeof getActionView;
|
|
345
|
+
MOD: typeof getActionModify;
|
|
346
|
+
DEL: typeof getActionDelete;
|
|
347
|
+
VAL: typeof getActionValidate;
|
|
348
|
+
EXT: typeof getActionExtract;
|
|
349
|
+
ADD_TO_PAYMENT: typeof getActionAddToPayment;
|
|
350
|
+
ACT: typeof getActionActivated;
|
|
351
|
+
TRM: typeof getActionTerminate;
|
|
352
|
+
RST: typeof getActionResetPassword;
|
|
353
|
+
LOC: typeof getActionLock;
|
|
354
|
+
UNL: typeof getActionUnlock;
|
|
355
|
+
};
|
|
356
|
+
declare function getActionView(disabled?: boolean): {
|
|
357
|
+
value: string;
|
|
358
|
+
text: string;
|
|
359
|
+
icon: string;
|
|
360
|
+
disabled: boolean;
|
|
361
|
+
};
|
|
362
|
+
declare function getActionRollback(disabled?: boolean): {
|
|
363
|
+
value: string;
|
|
364
|
+
text: string;
|
|
365
|
+
icon: string;
|
|
366
|
+
disabled: boolean;
|
|
367
|
+
};
|
|
368
|
+
declare function getActionNew(disabled?: boolean): {
|
|
369
|
+
value: string;
|
|
370
|
+
text: string;
|
|
371
|
+
icon: string;
|
|
372
|
+
disabled: boolean;
|
|
373
|
+
};
|
|
374
|
+
declare function getActionSend(disabled?: boolean): {
|
|
375
|
+
value: string;
|
|
376
|
+
text: string;
|
|
377
|
+
icon: string;
|
|
378
|
+
disabled: boolean;
|
|
379
|
+
};
|
|
380
|
+
declare function getActionAddSubTreaty(disabled?: boolean): {
|
|
381
|
+
value: string;
|
|
382
|
+
text: string;
|
|
383
|
+
icon: string;
|
|
384
|
+
disabled: boolean;
|
|
385
|
+
};
|
|
386
|
+
declare function getActionCorrection(disabled?: boolean): {
|
|
387
|
+
value: string;
|
|
388
|
+
text: string;
|
|
389
|
+
icon: string;
|
|
390
|
+
disabled: boolean;
|
|
391
|
+
};
|
|
392
|
+
declare function getActionConvertToProposal(disabled?: boolean): {
|
|
393
|
+
value: string;
|
|
394
|
+
text: string;
|
|
395
|
+
icon: string;
|
|
396
|
+
disabled: boolean;
|
|
397
|
+
};
|
|
398
|
+
declare function getActionBind(disabled?: boolean): {
|
|
399
|
+
value: string;
|
|
400
|
+
text: string;
|
|
401
|
+
icon: string;
|
|
402
|
+
disabled: boolean;
|
|
403
|
+
};
|
|
404
|
+
declare function getActionPosting(disabled?: boolean): {
|
|
405
|
+
value: string;
|
|
406
|
+
text: string;
|
|
407
|
+
icon: string;
|
|
408
|
+
disabled: boolean;
|
|
409
|
+
};
|
|
410
|
+
declare function getActionExtract(disabled?: boolean): {
|
|
411
|
+
value: string;
|
|
412
|
+
text: string;
|
|
413
|
+
icon: string;
|
|
414
|
+
disabled: boolean;
|
|
415
|
+
};
|
|
416
|
+
declare function getActionUnposting(disabled?: boolean): {
|
|
417
|
+
value: string;
|
|
418
|
+
text: string;
|
|
419
|
+
icon: string;
|
|
420
|
+
disabled: boolean;
|
|
421
|
+
};
|
|
422
|
+
declare function getActionRun(disabled?: boolean): {
|
|
423
|
+
value: string;
|
|
424
|
+
text: string;
|
|
425
|
+
icon: string;
|
|
426
|
+
disabled: boolean;
|
|
427
|
+
};
|
|
428
|
+
declare function getActionValidate(disabled?: boolean): {
|
|
429
|
+
value: string;
|
|
430
|
+
text: string;
|
|
431
|
+
icon: string;
|
|
432
|
+
disabled: boolean;
|
|
433
|
+
};
|
|
434
|
+
declare function getActionAddToPayment(disabled?: boolean): {
|
|
435
|
+
value: string;
|
|
436
|
+
text: string;
|
|
437
|
+
icon: string;
|
|
438
|
+
disabled: boolean;
|
|
439
|
+
};
|
|
440
|
+
declare function getActionIssue(disabled?: boolean): {
|
|
441
|
+
value: string;
|
|
442
|
+
text: string;
|
|
443
|
+
icon: string;
|
|
444
|
+
disabled: boolean;
|
|
445
|
+
};
|
|
446
|
+
declare function getActionReactivate(disabled?: boolean): {
|
|
447
|
+
value: string;
|
|
448
|
+
text: string;
|
|
449
|
+
icon: string;
|
|
450
|
+
disabled: boolean;
|
|
451
|
+
};
|
|
452
|
+
declare function getActionDownload(disabled?: boolean): {
|
|
453
|
+
value: string;
|
|
454
|
+
text: string;
|
|
455
|
+
icon: string;
|
|
456
|
+
disabled: boolean;
|
|
457
|
+
};
|
|
458
|
+
declare function getActionFinalize(disabled?: boolean): {
|
|
459
|
+
value: string;
|
|
460
|
+
text: string;
|
|
461
|
+
icon: string;
|
|
462
|
+
disabled: boolean;
|
|
463
|
+
};
|
|
464
|
+
declare function getActionSendForApproval(disabled?: boolean, text?: string): {
|
|
465
|
+
value: string;
|
|
466
|
+
text: string;
|
|
467
|
+
icon: string;
|
|
468
|
+
disabled: boolean;
|
|
469
|
+
};
|
|
470
|
+
declare function getActionPlacement(disabled?: boolean, text?: string): {
|
|
471
|
+
value: string;
|
|
472
|
+
text: string;
|
|
473
|
+
icon: string;
|
|
474
|
+
disabled: boolean;
|
|
475
|
+
};
|
|
476
|
+
declare function getActionCalculate(disabled?: boolean): {
|
|
477
|
+
value: string;
|
|
478
|
+
text: string;
|
|
479
|
+
icon: string;
|
|
480
|
+
disabled: boolean;
|
|
481
|
+
};
|
|
482
|
+
declare function getActionConfirm(disabled?: boolean): {
|
|
483
|
+
value: string;
|
|
484
|
+
text: string;
|
|
485
|
+
icon: string;
|
|
486
|
+
disabled: boolean;
|
|
487
|
+
};
|
|
488
|
+
declare function getActionBinding(disabled?: boolean): {
|
|
489
|
+
value: string;
|
|
490
|
+
text: string;
|
|
491
|
+
icon: string;
|
|
492
|
+
disabled: boolean;
|
|
493
|
+
};
|
|
494
|
+
declare function getActionReverse(disabled?: boolean): {
|
|
495
|
+
value: string;
|
|
496
|
+
text: string;
|
|
497
|
+
icon: string;
|
|
498
|
+
disabled: boolean;
|
|
499
|
+
};
|
|
500
|
+
declare function getActionDelete(disabled?: boolean): {
|
|
501
|
+
value: string;
|
|
502
|
+
text: string;
|
|
503
|
+
icon: string;
|
|
504
|
+
disabled: boolean;
|
|
505
|
+
};
|
|
506
|
+
declare function getActionCancel(disabled?: boolean): {
|
|
507
|
+
value: string;
|
|
508
|
+
text: string;
|
|
509
|
+
icon: string;
|
|
510
|
+
disabled: boolean;
|
|
511
|
+
};
|
|
512
|
+
declare function getActionExtendDueDate(disabled?: boolean): {
|
|
513
|
+
value: string;
|
|
514
|
+
text: string;
|
|
515
|
+
icon: string;
|
|
516
|
+
disabled: boolean;
|
|
517
|
+
};
|
|
518
|
+
declare function getActionApproval(disabled?: boolean): {
|
|
519
|
+
value: string;
|
|
520
|
+
text: string;
|
|
521
|
+
icon: string;
|
|
522
|
+
disabled: boolean;
|
|
523
|
+
};
|
|
524
|
+
declare function getActionPrint(disabled?: boolean): {
|
|
525
|
+
value: string;
|
|
526
|
+
text: string;
|
|
527
|
+
icon: string;
|
|
528
|
+
disabled: boolean;
|
|
529
|
+
};
|
|
530
|
+
declare function getActionDivider(): {
|
|
531
|
+
value: string;
|
|
532
|
+
text: string;
|
|
533
|
+
icon: string;
|
|
534
|
+
disabled: boolean;
|
|
535
|
+
};
|
|
536
|
+
declare function getActionModify(disabled?: boolean): {
|
|
537
|
+
value: string;
|
|
538
|
+
text: string;
|
|
539
|
+
icon: string;
|
|
540
|
+
disabled: boolean;
|
|
541
|
+
};
|
|
542
|
+
declare function getActionActivated(disabled?: boolean): {
|
|
543
|
+
value: string;
|
|
544
|
+
text: string;
|
|
545
|
+
icon: string;
|
|
546
|
+
disabled: boolean;
|
|
547
|
+
};
|
|
548
|
+
declare function getActionTerminated(disabled?: boolean): {
|
|
549
|
+
value: string;
|
|
550
|
+
text: string;
|
|
551
|
+
icon: string;
|
|
552
|
+
disabled: boolean;
|
|
553
|
+
};
|
|
554
|
+
declare function getActionResetPassword(disabled?: boolean): {
|
|
555
|
+
value: string;
|
|
556
|
+
text: string;
|
|
557
|
+
icon: string;
|
|
558
|
+
disabled: boolean;
|
|
559
|
+
};
|
|
560
|
+
declare function getActionLock(disabled?: boolean): {
|
|
561
|
+
value: string;
|
|
562
|
+
text: string;
|
|
563
|
+
icon: string;
|
|
564
|
+
disabled: boolean;
|
|
565
|
+
};
|
|
566
|
+
declare function getActionUnlock(disabled?: boolean): {
|
|
567
|
+
value: string;
|
|
568
|
+
text: string;
|
|
569
|
+
icon: string;
|
|
570
|
+
disabled: boolean;
|
|
571
|
+
};
|
|
572
|
+
declare function getActionTerminate(disabled?: boolean, text?: string): {
|
|
573
|
+
value: string;
|
|
574
|
+
text: string;
|
|
575
|
+
icon: string;
|
|
576
|
+
disabled: boolean;
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
declare class PageMode {
|
|
580
|
+
static readonly VIEW = "View";
|
|
581
|
+
static readonly MODIFY = "Modify";
|
|
582
|
+
static readonly ADD = "New";
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare function extractGridItems(layoutItems: NxeLayoutItem[], existingGridItems?: NxeGridItem[]): NxeGridItem[];
|
|
586
|
+
declare function createFormGroup(gridItems: any[], module: ModuleMetadata, lov: any): FormGroup;
|
|
587
|
+
|
|
588
|
+
declare function removeEmptyObject(obj: object): object;
|
|
589
|
+
declare function filterQueryParams(obj: Object): {};
|
|
590
|
+
declare function arrayToString(input: string[]): string;
|
|
591
|
+
declare function downloadFile(data: any, fileName?: string): void;
|
|
592
|
+
declare function previewPDF(data: any, fileName?: string): void;
|
|
593
|
+
declare function constructUrlWithQueryParams(baseUrl: string, queryParams: any): string;
|
|
594
|
+
declare function toDateString(date: Date): string;
|
|
595
|
+
|
|
596
|
+
declare function mapLov(input: any, lov: Lov[]): any;
|
|
597
|
+
declare function mapOriginalLov(lov: Lov[]): any;
|
|
598
|
+
|
|
599
|
+
declare class ModeSignalHelper {
|
|
600
|
+
isView: Signal<boolean>;
|
|
601
|
+
isModify: Signal<boolean>;
|
|
602
|
+
isAdd: Signal<boolean>;
|
|
603
|
+
constructor(mode: Signal<string>);
|
|
604
|
+
/**
|
|
605
|
+
* Generates computed signals for the provided mode signal.
|
|
606
|
+
*/
|
|
607
|
+
static createModeSignals(mode: Signal<string>): {
|
|
608
|
+
isView: Signal<boolean>;
|
|
609
|
+
isModify: Signal<boolean>;
|
|
610
|
+
isAdd: Signal<boolean>;
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
declare function sortSequence(a: any, b: any): 0 | 1 | -1;
|
|
615
|
+
|
|
616
|
+
declare function trackChanges(oldArray: any[], newArray: any[], keysToCompare: string[], idKey: string): any[];
|
|
617
|
+
|
|
618
|
+
declare class ActionCodePipe implements PipeTransform {
|
|
619
|
+
actionMapper: any;
|
|
620
|
+
transform(value: string): string;
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionCodePipe, never>;
|
|
622
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActionCodePipe, "actionCode", true>;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
declare class NullPipe implements PipeTransform {
|
|
626
|
+
transform(value: unknown): unknown;
|
|
627
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NullPipe, never>;
|
|
628
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NullPipe, "null", true>;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare class BadgeDirective implements AfterViewInit {
|
|
632
|
+
private el;
|
|
633
|
+
private renderer;
|
|
634
|
+
nxeBadge: string | number;
|
|
635
|
+
badgeColor: string;
|
|
636
|
+
badgePosition: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
637
|
+
private badgeElement;
|
|
638
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
639
|
+
ngOnChanges(): void;
|
|
640
|
+
private updateBadge;
|
|
641
|
+
private applyPosition;
|
|
642
|
+
ngAfterViewInit(): void;
|
|
643
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, never>;
|
|
644
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[nxeBadge]", never, { "nxeBadge": { "alias": "nxeBadge"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "badgePosition": { "alias": "badgePosition"; "required": false; }; }, {}, never, never, true, never>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare class NxeMenu {
|
|
648
|
+
private el;
|
|
649
|
+
private overlay;
|
|
650
|
+
private viewContainerRef;
|
|
651
|
+
menuTemplate: TemplateRef<any>;
|
|
652
|
+
private overlayRef;
|
|
653
|
+
constructor(el: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
654
|
+
toggleMenu(event: Event): void;
|
|
655
|
+
onClickOutside(event: Event): void;
|
|
656
|
+
private openMenu;
|
|
657
|
+
private closeMenu;
|
|
658
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxeMenu, never>;
|
|
659
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NxeMenu, "[nxeMenu]", never, { "menuTemplate": { "alias": "nxeMenu"; "required": false; }; }, {}, never, never, true, never>;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Opens a component in a centred, click-to-dismiss backdrop and resolves when it closes.
|
|
664
|
+
*
|
|
665
|
+
* Ported from nextera-library with one required change: `ComponentFactoryResolver` and
|
|
666
|
+
* `resolveComponentFactory()` are Ivy-era shims that no longer exist in Angular 22, so
|
|
667
|
+
* instantiation goes through `createComponent()` instead. The behaviour is the same —
|
|
668
|
+
* the component is created outside any view, attached to the ApplicationRef so it takes
|
|
669
|
+
* part in change detection, and appended to the backdrop element.
|
|
670
|
+
*
|
|
671
|
+
* `data` is assigned onto the instance before the view is attached, so the component sees
|
|
672
|
+
* its inputs on first render rather than one cycle late.
|
|
673
|
+
*/
|
|
674
|
+
declare class NxeModalService {
|
|
675
|
+
private readonly injector;
|
|
676
|
+
private readonly environmentInjector;
|
|
677
|
+
private readonly applicationRef;
|
|
678
|
+
private readonly renderer;
|
|
679
|
+
private componentRef?;
|
|
680
|
+
private backdropElement?;
|
|
681
|
+
private closeSubject?;
|
|
682
|
+
open<T>(component: Type<T>, data?: Record<string, unknown>): Observable<unknown>;
|
|
683
|
+
close(result?: unknown): void;
|
|
684
|
+
private createBackdrop;
|
|
685
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NxeModalService, never>;
|
|
686
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NxeModalService>;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export { ACTION_MAPPER, ActionCode, ActionCodePipe, BadgeDirective, BooleanOperator, ConditionEvaluator, ConditionOperator, ConditionType, DataType, LayoutType, MappedLov, ModeSignalHelper, NullPipe, NxeMenu, NxeModalService, PageMode, ValueChangeEvent, ValueOperator, arrayToString, constructUrlWithQueryParams, createFormGroup, downloadFile, extractGridItems, filterQueryParams, getActionActivated, getActionAddSubTreaty, getActionAddToPayment, getActionApproval, getActionBind, getActionBinding, getActionCalculate, getActionCancel, getActionConfirm, getActionConvertToProposal, getActionCorrection, getActionDelete, getActionDivider, getActionDownload, getActionExtendDueDate, getActionExtract, getActionFinalize, getActionIssue, getActionLock, getActionModify, getActionNew, getActionPlacement, getActionPosting, getActionPrint, getActionReactivate, getActionResetPassword, getActionReverse, getActionRollback, getActionRun, getActionSend, getActionSendForApproval, getActionTerminate, getActionTerminated, getActionUnlock, getActionUnposting, getActionValidate, getActionView, mapLov, mapOriginalLov, previewPDF, removeEmptyObject, sortSequence, toDateString, trackChanges };
|
|
690
|
+
export type { ActionConfig, ActionItem, ActionItemDisabledOn, Condition, LinkDetail, ListPageMetadata, Lov, LovDependency, ModeState, ModuleMetadata, NxeGridItem, NxeLayoutItem, NxeResponse, Paging, RequestAction, UpsertPageMetadata, ValueChange };
|