@genesislcap/expression-builder 14.366.0 → 14.366.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/dist/custom-elements.json +480 -480
- package/package.json +10 -10
|
@@ -157,11 +157,50 @@
|
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"kind": "javascript-module",
|
|
160
|
-
"path": "src/
|
|
160
|
+
"path": "src/main/events.ts",
|
|
161
|
+
"declarations": [],
|
|
162
|
+
"exports": []
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "javascript-module",
|
|
166
|
+
"path": "src/main/expression-builder.helpers.ts",
|
|
161
167
|
"declarations": [
|
|
162
168
|
{
|
|
163
169
|
"kind": "function",
|
|
164
|
-
"name": "
|
|
170
|
+
"name": "findOperateOnGroup",
|
|
171
|
+
"return": {
|
|
172
|
+
"type": {
|
|
173
|
+
"text": ""
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"parameters": [
|
|
177
|
+
{
|
|
178
|
+
"name": "model",
|
|
179
|
+
"type": {
|
|
180
|
+
"text": "ModelGroup"
|
|
181
|
+
},
|
|
182
|
+
"description": "The root group to start searching from"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "groupId",
|
|
186
|
+
"type": {
|
|
187
|
+
"text": "string"
|
|
188
|
+
},
|
|
189
|
+
"description": "The Group ID to find"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "fn",
|
|
193
|
+
"type": {
|
|
194
|
+
"text": "ChildrenOperatorFn"
|
|
195
|
+
},
|
|
196
|
+
"description": "The function to apply to the children of the found group. A *new* object must be created and returned"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"description": "Finds a group within a model and applies a function to create a new children"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "function",
|
|
203
|
+
"name": "addGroupOrRule",
|
|
165
204
|
"return": {
|
|
166
205
|
"type": {
|
|
167
206
|
"text": "ModelGroup"
|
|
@@ -169,528 +208,200 @@
|
|
|
169
208
|
},
|
|
170
209
|
"parameters": [
|
|
171
210
|
{
|
|
172
|
-
"name": "
|
|
211
|
+
"name": "model",
|
|
173
212
|
"type": {
|
|
174
|
-
"text": "
|
|
213
|
+
"text": "ModelGroup"
|
|
175
214
|
}
|
|
176
215
|
},
|
|
177
216
|
{
|
|
178
|
-
"name": "
|
|
217
|
+
"name": "parentGroupId",
|
|
179
218
|
"type": {
|
|
180
|
-
"text": "
|
|
219
|
+
"text": "string"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "newItem",
|
|
224
|
+
"type": {
|
|
225
|
+
"text": "ModelGroup | ModelRule"
|
|
181
226
|
}
|
|
182
227
|
}
|
|
183
|
-
]
|
|
184
|
-
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
228
|
+
]
|
|
185
229
|
},
|
|
186
230
|
{
|
|
187
231
|
"kind": "function",
|
|
188
|
-
"name": "
|
|
232
|
+
"name": "deleteGroup",
|
|
189
233
|
"return": {
|
|
190
234
|
"type": {
|
|
191
|
-
"text": ""
|
|
235
|
+
"text": "ModelGroup"
|
|
192
236
|
}
|
|
193
237
|
},
|
|
194
238
|
"parameters": [
|
|
195
239
|
{
|
|
196
|
-
"name": "
|
|
240
|
+
"name": "model",
|
|
197
241
|
"type": {
|
|
198
242
|
"text": "ModelGroup"
|
|
199
|
-
}
|
|
200
|
-
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "groupIdToDelete",
|
|
247
|
+
"type": {
|
|
248
|
+
"text": "string"
|
|
249
|
+
}
|
|
201
250
|
}
|
|
202
|
-
]
|
|
203
|
-
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
251
|
+
]
|
|
204
252
|
},
|
|
205
253
|
{
|
|
206
254
|
"kind": "function",
|
|
207
|
-
"name": "
|
|
255
|
+
"name": "deleteRule",
|
|
208
256
|
"return": {
|
|
209
257
|
"type": {
|
|
210
|
-
"text": ""
|
|
258
|
+
"text": "ModelGroup"
|
|
211
259
|
}
|
|
212
260
|
},
|
|
213
261
|
"parameters": [
|
|
214
262
|
{
|
|
215
|
-
"name": "
|
|
263
|
+
"name": "model",
|
|
216
264
|
"type": {
|
|
217
|
-
"text": "
|
|
218
|
-
}
|
|
219
|
-
|
|
265
|
+
"text": "ModelGroup"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "ruleIdToDelete",
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "string"
|
|
272
|
+
}
|
|
220
273
|
}
|
|
221
|
-
]
|
|
222
|
-
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"exports": [
|
|
226
|
-
{
|
|
227
|
-
"kind": "js",
|
|
228
|
-
"name": "groupToModelGroup",
|
|
229
|
-
"declaration": {
|
|
230
|
-
"name": "groupToModelGroup",
|
|
231
|
-
"module": "src/utils/data-model.ts"
|
|
232
|
-
}
|
|
274
|
+
]
|
|
233
275
|
},
|
|
234
276
|
{
|
|
235
|
-
"kind": "
|
|
236
|
-
"name": "
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
277
|
+
"kind": "variable",
|
|
278
|
+
"name": "ROOT_GROUP",
|
|
279
|
+
"type": {
|
|
280
|
+
"text": "string"
|
|
281
|
+
},
|
|
282
|
+
"default": "'group-root'"
|
|
241
283
|
},
|
|
242
|
-
{
|
|
243
|
-
"kind": "js",
|
|
244
|
-
"name": "modelRuleToRule",
|
|
245
|
-
"declaration": {
|
|
246
|
-
"name": "modelRuleToRule",
|
|
247
|
-
"module": "src/utils/data-model.ts"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"kind": "javascript-module",
|
|
254
|
-
"path": "src/utils/formatting.ts",
|
|
255
|
-
"declarations": [
|
|
256
284
|
{
|
|
257
285
|
"kind": "function",
|
|
258
|
-
"name": "
|
|
286
|
+
"name": "updateGroupData",
|
|
287
|
+
"return": {
|
|
288
|
+
"type": {
|
|
289
|
+
"text": "ModelGroup"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
259
292
|
"parameters": [
|
|
260
293
|
{
|
|
261
|
-
"name": "
|
|
294
|
+
"name": "model",
|
|
262
295
|
"type": {
|
|
263
|
-
"text": "
|
|
296
|
+
"text": "ModelGroup"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "groupIdToUpdate",
|
|
301
|
+
"type": {
|
|
302
|
+
"text": "string"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "newData",
|
|
307
|
+
"type": {
|
|
308
|
+
"text": "EventsDetailMap[Events.UpdateGroup]['newData']"
|
|
264
309
|
}
|
|
265
310
|
}
|
|
266
|
-
]
|
|
267
|
-
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`.\nUses UTC methods to ensure consistent output regardless of timezone.\n\nUsed to convert a javascript date object into the required string format expected by the expression builder."
|
|
311
|
+
]
|
|
268
312
|
},
|
|
269
313
|
{
|
|
270
314
|
"kind": "function",
|
|
271
|
-
"name": "
|
|
315
|
+
"name": "updateRuleData",
|
|
316
|
+
"return": {
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "ModelGroup"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
272
321
|
"parameters": [
|
|
273
322
|
{
|
|
274
|
-
"name": "
|
|
323
|
+
"name": "model",
|
|
275
324
|
"type": {
|
|
276
|
-
"text": "
|
|
325
|
+
"text": "ModelGroup"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "ruleIdToUpdate",
|
|
330
|
+
"type": {
|
|
331
|
+
"text": "string"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "newData",
|
|
336
|
+
"type": {
|
|
337
|
+
"text": "EventsDetailMap[Events.UpdateRule]['newData']"
|
|
277
338
|
}
|
|
278
339
|
}
|
|
279
|
-
]
|
|
280
|
-
"description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`.\nUses UTC methods to ensure consistent output regardless of timezone.\n\nUsed to convert a javascript date object into the required string format expected by the expression builder."
|
|
340
|
+
]
|
|
281
341
|
}
|
|
282
342
|
],
|
|
283
343
|
"exports": [
|
|
284
344
|
{
|
|
285
345
|
"kind": "js",
|
|
286
|
-
"name": "
|
|
346
|
+
"name": "findOperateOnGroup",
|
|
287
347
|
"declaration": {
|
|
288
|
-
"name": "
|
|
289
|
-
"module": "src/
|
|
348
|
+
"name": "findOperateOnGroup",
|
|
349
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
290
350
|
}
|
|
291
351
|
},
|
|
292
352
|
{
|
|
293
353
|
"kind": "js",
|
|
294
|
-
"name": "
|
|
354
|
+
"name": "addGroupOrRule",
|
|
295
355
|
"declaration": {
|
|
296
|
-
"name": "
|
|
297
|
-
"module": "src/
|
|
356
|
+
"name": "addGroupOrRule",
|
|
357
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
298
358
|
}
|
|
299
|
-
}
|
|
300
|
-
]
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"kind": "javascript-module",
|
|
304
|
-
"path": "src/utils/index.ts",
|
|
305
|
-
"declarations": [],
|
|
306
|
-
"exports": [
|
|
359
|
+
},
|
|
307
360
|
{
|
|
308
361
|
"kind": "js",
|
|
309
|
-
"name": "
|
|
362
|
+
"name": "deleteGroup",
|
|
310
363
|
"declaration": {
|
|
311
|
-
"name": "
|
|
312
|
-
"
|
|
364
|
+
"name": "deleteGroup",
|
|
365
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
313
366
|
}
|
|
314
367
|
},
|
|
315
368
|
{
|
|
316
369
|
"kind": "js",
|
|
317
|
-
"name": "
|
|
370
|
+
"name": "deleteRule",
|
|
318
371
|
"declaration": {
|
|
319
|
-
"name": "
|
|
320
|
-
"
|
|
372
|
+
"name": "deleteRule",
|
|
373
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
321
374
|
}
|
|
322
375
|
},
|
|
323
376
|
{
|
|
324
377
|
"kind": "js",
|
|
325
|
-
"name": "
|
|
378
|
+
"name": "ROOT_GROUP",
|
|
326
379
|
"declaration": {
|
|
327
|
-
"name": "
|
|
328
|
-
"
|
|
380
|
+
"name": "ROOT_GROUP",
|
|
381
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"kind": "js",
|
|
386
|
+
"name": "updateGroupData",
|
|
387
|
+
"declaration": {
|
|
388
|
+
"name": "updateGroupData",
|
|
389
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "js",
|
|
394
|
+
"name": "updateRuleData",
|
|
395
|
+
"declaration": {
|
|
396
|
+
"name": "updateRuleData",
|
|
397
|
+
"module": "src/main/expression-builder.helpers.ts"
|
|
329
398
|
}
|
|
330
399
|
}
|
|
331
400
|
]
|
|
332
401
|
},
|
|
333
402
|
{
|
|
334
403
|
"kind": "javascript-module",
|
|
335
|
-
"path": "src/
|
|
336
|
-
"declarations": [
|
|
337
|
-
{
|
|
338
|
-
"kind": "function",
|
|
339
|
-
"name": "getFieldInput",
|
|
340
|
-
"parameters": [
|
|
341
|
-
{
|
|
342
|
-
"name": "context",
|
|
343
|
-
"type": {
|
|
344
|
-
"text": "RuleValue | ModelRule"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"kind": "function",
|
|
351
|
-
"name": "getFieldType",
|
|
352
|
-
"parameters": [
|
|
353
|
-
{
|
|
354
|
-
"name": "context",
|
|
355
|
-
"type": {
|
|
356
|
-
"text": "RuleValue | ModelRule"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
]
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"kind": "function",
|
|
363
|
-
"name": "processOptGroups",
|
|
364
|
-
"return": {
|
|
365
|
-
"type": {
|
|
366
|
-
"text": "(T | { optgroup: string | null; xs: T[] })[]"
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
"parameters": [
|
|
370
|
-
{
|
|
371
|
-
"name": "xs",
|
|
372
|
-
"type": {
|
|
373
|
-
"text": "T[]"
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
]
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"kind": "function",
|
|
380
|
-
"name": "applyCustomStyles",
|
|
381
|
-
"return": {
|
|
382
|
-
"type": {
|
|
383
|
-
"text": "void"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"parameters": [
|
|
387
|
-
{
|
|
388
|
-
"name": "component",
|
|
389
|
-
"type": {
|
|
390
|
-
"text": "HTMLElement"
|
|
391
|
-
},
|
|
392
|
-
"description": "The web component instance"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"name": "styles",
|
|
396
|
-
"type": {
|
|
397
|
-
"text": "Styles | undefined | null"
|
|
398
|
-
},
|
|
399
|
-
"description": "The styles configuration object"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "styleKey",
|
|
403
|
-
"type": {
|
|
404
|
-
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
405
|
-
},
|
|
406
|
-
"description": "The key in styles.customStyles to use for custom styles"
|
|
407
|
-
}
|
|
408
|
-
],
|
|
409
|
-
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
410
|
-
}
|
|
411
|
-
],
|
|
412
|
-
"exports": [
|
|
413
|
-
{
|
|
414
|
-
"kind": "js",
|
|
415
|
-
"name": "getFieldInput",
|
|
416
|
-
"declaration": {
|
|
417
|
-
"name": "getFieldInput",
|
|
418
|
-
"module": "src/utils/misc.ts"
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"kind": "js",
|
|
423
|
-
"name": "getFieldType",
|
|
424
|
-
"declaration": {
|
|
425
|
-
"name": "getFieldType",
|
|
426
|
-
"module": "src/utils/misc.ts"
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"kind": "js",
|
|
431
|
-
"name": "processOptGroups",
|
|
432
|
-
"declaration": {
|
|
433
|
-
"name": "processOptGroups",
|
|
434
|
-
"module": "src/utils/misc.ts"
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"kind": "js",
|
|
439
|
-
"name": "applyCustomStyles",
|
|
440
|
-
"declaration": {
|
|
441
|
-
"name": "applyCustomStyles",
|
|
442
|
-
"module": "src/utils/misc.ts"
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
]
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"kind": "javascript-module",
|
|
449
|
-
"path": "src/main/events.ts",
|
|
450
|
-
"declarations": [],
|
|
451
|
-
"exports": []
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"kind": "javascript-module",
|
|
455
|
-
"path": "src/main/expression-builder.helpers.ts",
|
|
456
|
-
"declarations": [
|
|
457
|
-
{
|
|
458
|
-
"kind": "function",
|
|
459
|
-
"name": "findOperateOnGroup",
|
|
460
|
-
"return": {
|
|
461
|
-
"type": {
|
|
462
|
-
"text": ""
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"parameters": [
|
|
466
|
-
{
|
|
467
|
-
"name": "model",
|
|
468
|
-
"type": {
|
|
469
|
-
"text": "ModelGroup"
|
|
470
|
-
},
|
|
471
|
-
"description": "The root group to start searching from"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"name": "groupId",
|
|
475
|
-
"type": {
|
|
476
|
-
"text": "string"
|
|
477
|
-
},
|
|
478
|
-
"description": "The Group ID to find"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "fn",
|
|
482
|
-
"type": {
|
|
483
|
-
"text": "ChildrenOperatorFn"
|
|
484
|
-
},
|
|
485
|
-
"description": "The function to apply to the children of the found group. A *new* object must be created and returned"
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"description": "Finds a group within a model and applies a function to create a new children"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"kind": "function",
|
|
492
|
-
"name": "addGroupOrRule",
|
|
493
|
-
"return": {
|
|
494
|
-
"type": {
|
|
495
|
-
"text": "ModelGroup"
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
"parameters": [
|
|
499
|
-
{
|
|
500
|
-
"name": "model",
|
|
501
|
-
"type": {
|
|
502
|
-
"text": "ModelGroup"
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"name": "parentGroupId",
|
|
507
|
-
"type": {
|
|
508
|
-
"text": "string"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
"name": "newItem",
|
|
513
|
-
"type": {
|
|
514
|
-
"text": "ModelGroup | ModelRule"
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
]
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"kind": "function",
|
|
521
|
-
"name": "deleteGroup",
|
|
522
|
-
"return": {
|
|
523
|
-
"type": {
|
|
524
|
-
"text": "ModelGroup"
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
"parameters": [
|
|
528
|
-
{
|
|
529
|
-
"name": "model",
|
|
530
|
-
"type": {
|
|
531
|
-
"text": "ModelGroup"
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "groupIdToDelete",
|
|
536
|
-
"type": {
|
|
537
|
-
"text": "string"
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"kind": "function",
|
|
544
|
-
"name": "deleteRule",
|
|
545
|
-
"return": {
|
|
546
|
-
"type": {
|
|
547
|
-
"text": "ModelGroup"
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
"parameters": [
|
|
551
|
-
{
|
|
552
|
-
"name": "model",
|
|
553
|
-
"type": {
|
|
554
|
-
"text": "ModelGroup"
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "ruleIdToDelete",
|
|
559
|
-
"type": {
|
|
560
|
-
"text": "string"
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
]
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"kind": "variable",
|
|
567
|
-
"name": "ROOT_GROUP",
|
|
568
|
-
"type": {
|
|
569
|
-
"text": "string"
|
|
570
|
-
},
|
|
571
|
-
"default": "'group-root'"
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
"kind": "function",
|
|
575
|
-
"name": "updateGroupData",
|
|
576
|
-
"return": {
|
|
577
|
-
"type": {
|
|
578
|
-
"text": "ModelGroup"
|
|
579
|
-
}
|
|
580
|
-
},
|
|
581
|
-
"parameters": [
|
|
582
|
-
{
|
|
583
|
-
"name": "model",
|
|
584
|
-
"type": {
|
|
585
|
-
"text": "ModelGroup"
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"name": "groupIdToUpdate",
|
|
590
|
-
"type": {
|
|
591
|
-
"text": "string"
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"name": "newData",
|
|
596
|
-
"type": {
|
|
597
|
-
"text": "EventsDetailMap[Events.UpdateGroup]['newData']"
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
]
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
"kind": "function",
|
|
604
|
-
"name": "updateRuleData",
|
|
605
|
-
"return": {
|
|
606
|
-
"type": {
|
|
607
|
-
"text": "ModelGroup"
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"parameters": [
|
|
611
|
-
{
|
|
612
|
-
"name": "model",
|
|
613
|
-
"type": {
|
|
614
|
-
"text": "ModelGroup"
|
|
615
|
-
}
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "ruleIdToUpdate",
|
|
619
|
-
"type": {
|
|
620
|
-
"text": "string"
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"name": "newData",
|
|
625
|
-
"type": {
|
|
626
|
-
"text": "EventsDetailMap[Events.UpdateRule]['newData']"
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
]
|
|
630
|
-
}
|
|
631
|
-
],
|
|
632
|
-
"exports": [
|
|
633
|
-
{
|
|
634
|
-
"kind": "js",
|
|
635
|
-
"name": "findOperateOnGroup",
|
|
636
|
-
"declaration": {
|
|
637
|
-
"name": "findOperateOnGroup",
|
|
638
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"kind": "js",
|
|
643
|
-
"name": "addGroupOrRule",
|
|
644
|
-
"declaration": {
|
|
645
|
-
"name": "addGroupOrRule",
|
|
646
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"kind": "js",
|
|
651
|
-
"name": "deleteGroup",
|
|
652
|
-
"declaration": {
|
|
653
|
-
"name": "deleteGroup",
|
|
654
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"kind": "js",
|
|
659
|
-
"name": "deleteRule",
|
|
660
|
-
"declaration": {
|
|
661
|
-
"name": "deleteRule",
|
|
662
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"kind": "js",
|
|
667
|
-
"name": "ROOT_GROUP",
|
|
668
|
-
"declaration": {
|
|
669
|
-
"name": "ROOT_GROUP",
|
|
670
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"kind": "js",
|
|
675
|
-
"name": "updateGroupData",
|
|
676
|
-
"declaration": {
|
|
677
|
-
"name": "updateGroupData",
|
|
678
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"kind": "js",
|
|
683
|
-
"name": "updateRuleData",
|
|
684
|
-
"declaration": {
|
|
685
|
-
"name": "updateRuleData",
|
|
686
|
-
"module": "src/main/expression-builder.helpers.ts"
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
]
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"kind": "javascript-module",
|
|
693
|
-
"path": "src/main/expression-builder.styles.ts",
|
|
404
|
+
"path": "src/main/expression-builder.styles.ts",
|
|
694
405
|
"declarations": [
|
|
695
406
|
{
|
|
696
407
|
"kind": "variable",
|
|
@@ -909,62 +620,237 @@
|
|
|
909
620
|
]
|
|
910
621
|
},
|
|
911
622
|
{
|
|
912
|
-
"kind": "field",
|
|
913
|
-
"name": "handleUpdateRuleData",
|
|
914
|
-
"privacy": "private"
|
|
915
|
-
},
|
|
623
|
+
"kind": "field",
|
|
624
|
+
"name": "handleUpdateRuleData",
|
|
625
|
+
"privacy": "private"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"kind": "method",
|
|
629
|
+
"name": "_handleUpdateRuleData",
|
|
630
|
+
"privacy": "private",
|
|
631
|
+
"parameters": [
|
|
632
|
+
{
|
|
633
|
+
"name": "event",
|
|
634
|
+
"type": {
|
|
635
|
+
"text": "CustomEvent<EventsDetailMap[Events.UpdateRule]>"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"events": [
|
|
642
|
+
{
|
|
643
|
+
"name": "change",
|
|
644
|
+
"type": {
|
|
645
|
+
"text": "CustomEvent"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"superclass": {
|
|
650
|
+
"name": "GenesisElement",
|
|
651
|
+
"package": "@genesislcap/web-core"
|
|
652
|
+
},
|
|
653
|
+
"tagName": "expression-builder",
|
|
654
|
+
"customElement": true
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"exports": [
|
|
658
|
+
{
|
|
659
|
+
"kind": "js",
|
|
660
|
+
"name": "ExpressionBuilder",
|
|
661
|
+
"declaration": {
|
|
662
|
+
"name": "ExpressionBuilder",
|
|
663
|
+
"module": "src/main/expression-builder.ts"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"kind": "custom-element-definition",
|
|
668
|
+
"name": "expression-builder",
|
|
669
|
+
"declaration": {
|
|
670
|
+
"name": "ExpressionBuilder",
|
|
671
|
+
"module": "src/main/expression-builder.ts"
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "javascript-module",
|
|
678
|
+
"path": "src/main/index.ts",
|
|
679
|
+
"declarations": [],
|
|
680
|
+
"exports": [
|
|
681
|
+
{
|
|
682
|
+
"kind": "js",
|
|
683
|
+
"name": "*",
|
|
684
|
+
"declaration": {
|
|
685
|
+
"name": "*",
|
|
686
|
+
"package": "./expression-builder"
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"kind": "js",
|
|
691
|
+
"name": "*",
|
|
692
|
+
"declaration": {
|
|
693
|
+
"name": "*",
|
|
694
|
+
"package": "./expression-builder.styles"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"kind": "js",
|
|
699
|
+
"name": "*",
|
|
700
|
+
"declaration": {
|
|
701
|
+
"name": "*",
|
|
702
|
+
"package": "./expression-builder.template"
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
]
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"kind": "javascript-module",
|
|
709
|
+
"path": "src/utils/data-model.ts",
|
|
710
|
+
"declarations": [
|
|
711
|
+
{
|
|
712
|
+
"kind": "function",
|
|
713
|
+
"name": "groupToModelGroup",
|
|
714
|
+
"return": {
|
|
715
|
+
"type": {
|
|
716
|
+
"text": "ModelGroup"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"parameters": [
|
|
720
|
+
{
|
|
721
|
+
"name": "group",
|
|
722
|
+
"type": {
|
|
723
|
+
"text": "Group"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "provider",
|
|
728
|
+
"type": {
|
|
729
|
+
"text": "MetadataProvider"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
],
|
|
733
|
+
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"kind": "function",
|
|
737
|
+
"name": "modelGroupToGroup",
|
|
738
|
+
"return": {
|
|
739
|
+
"type": {
|
|
740
|
+
"text": ""
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"parameters": [
|
|
916
744
|
{
|
|
917
|
-
"
|
|
918
|
-
"
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
"name": "event",
|
|
923
|
-
"type": {
|
|
924
|
-
"text": "CustomEvent<EventsDetailMap[Events.UpdateRule]>"
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
]
|
|
745
|
+
"name": "modelGroup",
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "ModelGroup"
|
|
748
|
+
},
|
|
749
|
+
"description": "The internal ModelGroup to convert."
|
|
928
750
|
}
|
|
929
751
|
],
|
|
930
|
-
"
|
|
752
|
+
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"kind": "function",
|
|
756
|
+
"name": "modelRuleToRule",
|
|
757
|
+
"return": {
|
|
758
|
+
"type": {
|
|
759
|
+
"text": ""
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"parameters": [
|
|
931
763
|
{
|
|
932
|
-
"name": "
|
|
764
|
+
"name": "modelRule",
|
|
933
765
|
"type": {
|
|
934
|
-
"text": "
|
|
766
|
+
"text": "ModelRule"
|
|
767
|
+
},
|
|
768
|
+
"description": "The internal ModelRule to convert."
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
"exports": [
|
|
775
|
+
{
|
|
776
|
+
"kind": "js",
|
|
777
|
+
"name": "groupToModelGroup",
|
|
778
|
+
"declaration": {
|
|
779
|
+
"name": "groupToModelGroup",
|
|
780
|
+
"module": "src/utils/data-model.ts"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"kind": "js",
|
|
785
|
+
"name": "modelGroupToGroup",
|
|
786
|
+
"declaration": {
|
|
787
|
+
"name": "modelGroupToGroup",
|
|
788
|
+
"module": "src/utils/data-model.ts"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"kind": "js",
|
|
793
|
+
"name": "modelRuleToRule",
|
|
794
|
+
"declaration": {
|
|
795
|
+
"name": "modelRuleToRule",
|
|
796
|
+
"module": "src/utils/data-model.ts"
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"kind": "javascript-module",
|
|
803
|
+
"path": "src/utils/formatting.ts",
|
|
804
|
+
"declarations": [
|
|
805
|
+
{
|
|
806
|
+
"kind": "function",
|
|
807
|
+
"name": "formatDateString",
|
|
808
|
+
"parameters": [
|
|
809
|
+
{
|
|
810
|
+
"name": "date",
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "Date"
|
|
935
813
|
}
|
|
936
814
|
}
|
|
937
815
|
],
|
|
938
|
-
"
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
"
|
|
943
|
-
"
|
|
816
|
+
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`.\nUses UTC methods to ensure consistent output regardless of timezone.\n\nUsed to convert a javascript date object into the required string format expected by the expression builder."
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"kind": "function",
|
|
820
|
+
"name": "formatDateTimeString",
|
|
821
|
+
"parameters": [
|
|
822
|
+
{
|
|
823
|
+
"name": "date",
|
|
824
|
+
"type": {
|
|
825
|
+
"text": "Date"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
],
|
|
829
|
+
"description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`.\nUses UTC methods to ensure consistent output regardless of timezone.\n\nUsed to convert a javascript date object into the required string format expected by the expression builder."
|
|
944
830
|
}
|
|
945
831
|
],
|
|
946
832
|
"exports": [
|
|
947
833
|
{
|
|
948
834
|
"kind": "js",
|
|
949
|
-
"name": "
|
|
835
|
+
"name": "formatDateString",
|
|
950
836
|
"declaration": {
|
|
951
|
-
"name": "
|
|
952
|
-
"module": "src/
|
|
837
|
+
"name": "formatDateString",
|
|
838
|
+
"module": "src/utils/formatting.ts"
|
|
953
839
|
}
|
|
954
840
|
},
|
|
955
841
|
{
|
|
956
|
-
"kind": "
|
|
957
|
-
"name": "
|
|
842
|
+
"kind": "js",
|
|
843
|
+
"name": "formatDateTimeString",
|
|
958
844
|
"declaration": {
|
|
959
|
-
"name": "
|
|
960
|
-
"module": "src/
|
|
845
|
+
"name": "formatDateTimeString",
|
|
846
|
+
"module": "src/utils/formatting.ts"
|
|
961
847
|
}
|
|
962
848
|
}
|
|
963
849
|
]
|
|
964
850
|
},
|
|
965
851
|
{
|
|
966
852
|
"kind": "javascript-module",
|
|
967
|
-
"path": "src/
|
|
853
|
+
"path": "src/utils/index.ts",
|
|
968
854
|
"declarations": [],
|
|
969
855
|
"exports": [
|
|
970
856
|
{
|
|
@@ -972,7 +858,7 @@
|
|
|
972
858
|
"name": "*",
|
|
973
859
|
"declaration": {
|
|
974
860
|
"name": "*",
|
|
975
|
-
"package": "./
|
|
861
|
+
"package": "./data-model"
|
|
976
862
|
}
|
|
977
863
|
},
|
|
978
864
|
{
|
|
@@ -980,7 +866,7 @@
|
|
|
980
866
|
"name": "*",
|
|
981
867
|
"declaration": {
|
|
982
868
|
"name": "*",
|
|
983
|
-
"package": "./
|
|
869
|
+
"package": "./formatting"
|
|
984
870
|
}
|
|
985
871
|
},
|
|
986
872
|
{
|
|
@@ -988,7 +874,121 @@
|
|
|
988
874
|
"name": "*",
|
|
989
875
|
"declaration": {
|
|
990
876
|
"name": "*",
|
|
991
|
-
"package": "./
|
|
877
|
+
"package": "./misc"
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
]
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"kind": "javascript-module",
|
|
884
|
+
"path": "src/utils/misc.ts",
|
|
885
|
+
"declarations": [
|
|
886
|
+
{
|
|
887
|
+
"kind": "function",
|
|
888
|
+
"name": "getFieldInput",
|
|
889
|
+
"parameters": [
|
|
890
|
+
{
|
|
891
|
+
"name": "context",
|
|
892
|
+
"type": {
|
|
893
|
+
"text": "RuleValue | ModelRule"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "function",
|
|
900
|
+
"name": "getFieldType",
|
|
901
|
+
"parameters": [
|
|
902
|
+
{
|
|
903
|
+
"name": "context",
|
|
904
|
+
"type": {
|
|
905
|
+
"text": "RuleValue | ModelRule"
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
]
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"kind": "function",
|
|
912
|
+
"name": "processOptGroups",
|
|
913
|
+
"return": {
|
|
914
|
+
"type": {
|
|
915
|
+
"text": "(T | { optgroup: string | null; xs: T[] })[]"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"parameters": [
|
|
919
|
+
{
|
|
920
|
+
"name": "xs",
|
|
921
|
+
"type": {
|
|
922
|
+
"text": "T[]"
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"kind": "function",
|
|
929
|
+
"name": "applyCustomStyles",
|
|
930
|
+
"return": {
|
|
931
|
+
"type": {
|
|
932
|
+
"text": "void"
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"parameters": [
|
|
936
|
+
{
|
|
937
|
+
"name": "component",
|
|
938
|
+
"type": {
|
|
939
|
+
"text": "HTMLElement"
|
|
940
|
+
},
|
|
941
|
+
"description": "The web component instance"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "styles",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "Styles | undefined | null"
|
|
947
|
+
},
|
|
948
|
+
"description": "The styles configuration object"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "styleKey",
|
|
952
|
+
"type": {
|
|
953
|
+
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
954
|
+
},
|
|
955
|
+
"description": "The key in styles.customStyles to use for custom styles"
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
959
|
+
}
|
|
960
|
+
],
|
|
961
|
+
"exports": [
|
|
962
|
+
{
|
|
963
|
+
"kind": "js",
|
|
964
|
+
"name": "getFieldInput",
|
|
965
|
+
"declaration": {
|
|
966
|
+
"name": "getFieldInput",
|
|
967
|
+
"module": "src/utils/misc.ts"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"kind": "js",
|
|
972
|
+
"name": "getFieldType",
|
|
973
|
+
"declaration": {
|
|
974
|
+
"name": "getFieldType",
|
|
975
|
+
"module": "src/utils/misc.ts"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "js",
|
|
980
|
+
"name": "processOptGroups",
|
|
981
|
+
"declaration": {
|
|
982
|
+
"name": "processOptGroups",
|
|
983
|
+
"module": "src/utils/misc.ts"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "js",
|
|
988
|
+
"name": "applyCustomStyles",
|
|
989
|
+
"declaration": {
|
|
990
|
+
"name": "applyCustomStyles",
|
|
991
|
+
"module": "src/utils/misc.ts"
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/expression-builder",
|
|
3
3
|
"description": "Genesis Foundation Expression Builder",
|
|
4
|
-
"version": "14.366.
|
|
4
|
+
"version": "14.366.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/expression-builder.d.ts",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@genesislcap/foundation-testing": "14.366.
|
|
40
|
-
"@genesislcap/genx": "14.366.
|
|
41
|
-
"@genesislcap/rollup-builder": "14.366.
|
|
42
|
-
"@genesislcap/ts-builder": "14.366.
|
|
43
|
-
"@genesislcap/uvu-playwright-builder": "14.366.
|
|
44
|
-
"@genesislcap/vite-builder": "14.366.
|
|
45
|
-
"@genesislcap/webpack-builder": "14.366.
|
|
39
|
+
"@genesislcap/foundation-testing": "14.366.1",
|
|
40
|
+
"@genesislcap/genx": "14.366.1",
|
|
41
|
+
"@genesislcap/rollup-builder": "14.366.1",
|
|
42
|
+
"@genesislcap/ts-builder": "14.366.1",
|
|
43
|
+
"@genesislcap/uvu-playwright-builder": "14.366.1",
|
|
44
|
+
"@genesislcap/vite-builder": "14.366.1",
|
|
45
|
+
"@genesislcap/webpack-builder": "14.366.1"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@genesislcap/web-core": "14.366.
|
|
48
|
+
"@genesislcap/web-core": "14.366.1",
|
|
49
49
|
"rfdc": "1.4.1"
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"customElements": "dist/custom-elements.json",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "3ab43863fc8dfd2888bc6b65cd25e9985de17bc8"
|
|
61
61
|
}
|