@genesislcap/expression-builder 14.268.2 → 14.268.3

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.
@@ -157,485 +157,201 @@
157
157
  },
158
158
  {
159
159
  "kind": "javascript-module",
160
- "path": "src/utils/data-model.ts",
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": "groupToModelGroup",
170
+ "name": "findOperateOnGroup",
165
171
  "return": {
166
172
  "type": {
167
- "text": "ModelGroup"
173
+ "text": ""
168
174
  }
169
175
  },
170
176
  "parameters": [
171
177
  {
172
- "name": "group",
178
+ "name": "model",
173
179
  "type": {
174
- "text": "Group"
175
- }
180
+ "text": "ModelGroup"
181
+ },
182
+ "description": "The root group to start searching from"
176
183
  },
177
184
  {
178
- "name": "provider",
185
+ "name": "groupId",
179
186
  "type": {
180
- "text": "MetadataProvider"
181
- }
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"
182
197
  }
183
198
  ],
184
- "description": "Converts a Group to a ModelGroup (adds required metadata)"
199
+ "description": "Finds a group within a model and applies a function to create a new children"
185
200
  },
186
201
  {
187
202
  "kind": "function",
188
- "name": "modelGroupToGroup",
203
+ "name": "addGroupOrRule",
189
204
  "return": {
190
205
  "type": {
191
- "text": ""
206
+ "text": "ModelGroup"
192
207
  }
193
208
  },
194
209
  "parameters": [
195
210
  {
196
- "name": "modelGroup",
211
+ "name": "model",
197
212
  "type": {
198
213
  "text": "ModelGroup"
199
- },
200
- "description": "The internal ModelGroup to convert."
214
+ }
215
+ },
216
+ {
217
+ "name": "parentGroupId",
218
+ "type": {
219
+ "text": "string"
220
+ }
221
+ },
222
+ {
223
+ "name": "newItem",
224
+ "type": {
225
+ "text": "ModelGroup | ModelRule"
226
+ }
201
227
  }
202
- ],
203
- "description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
228
+ ]
204
229
  },
205
230
  {
206
231
  "kind": "function",
207
- "name": "modelRuleToRule",
232
+ "name": "deleteGroup",
208
233
  "return": {
209
234
  "type": {
210
- "text": ""
235
+ "text": "ModelGroup"
211
236
  }
212
237
  },
213
238
  "parameters": [
214
239
  {
215
- "name": "modelRule",
240
+ "name": "model",
216
241
  "type": {
217
- "text": "ModelRule"
218
- },
219
- "description": "The internal ModelRule to convert."
220
- }
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
- }
233
- },
234
- {
235
- "kind": "js",
236
- "name": "modelGroupToGroup",
237
- "declaration": {
238
- "name": "modelGroupToGroup",
239
- "module": "src/utils/data-model.ts"
240
- }
241
- },
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
- {
257
- "kind": "function",
258
- "name": "formatDateString",
259
- "parameters": [
242
+ "text": "ModelGroup"
243
+ }
244
+ },
260
245
  {
261
- "name": "date",
246
+ "name": "groupIdToDelete",
262
247
  "type": {
263
- "text": "Date"
248
+ "text": "string"
264
249
  }
265
250
  }
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."
251
+ ]
268
252
  },
269
253
  {
270
254
  "kind": "function",
271
- "name": "formatDateTimeString",
255
+ "name": "deleteRule",
256
+ "return": {
257
+ "type": {
258
+ "text": "ModelGroup"
259
+ }
260
+ },
272
261
  "parameters": [
273
262
  {
274
- "name": "date",
263
+ "name": "model",
275
264
  "type": {
276
- "text": "Date"
265
+ "text": "ModelGroup"
266
+ }
267
+ },
268
+ {
269
+ "name": "ruleIdToDelete",
270
+ "type": {
271
+ "text": "string"
277
272
  }
278
273
  }
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."
281
- }
282
- ],
283
- "exports": [
284
- {
285
- "kind": "js",
286
- "name": "formatDateString",
287
- "declaration": {
288
- "name": "formatDateString",
289
- "module": "src/utils/formatting.ts"
290
- }
291
- },
292
- {
293
- "kind": "js",
294
- "name": "formatDateTimeString",
295
- "declaration": {
296
- "name": "formatDateTimeString",
297
- "module": "src/utils/formatting.ts"
298
- }
299
- }
300
- ]
301
- },
302
- {
303
- "kind": "javascript-module",
304
- "path": "src/utils/index.ts",
305
- "declarations": [],
306
- "exports": [
307
- {
308
- "kind": "js",
309
- "name": "*",
310
- "declaration": {
311
- "name": "*",
312
- "package": "./data-model"
313
- }
274
+ ]
314
275
  },
315
276
  {
316
- "kind": "js",
317
- "name": "*",
318
- "declaration": {
319
- "name": "*",
320
- "package": "./formatting"
321
- }
277
+ "kind": "variable",
278
+ "name": "ROOT_GROUP",
279
+ "type": {
280
+ "text": "string"
281
+ },
282
+ "default": "'group-root'"
322
283
  },
323
- {
324
- "kind": "js",
325
- "name": "*",
326
- "declaration": {
327
- "name": "*",
328
- "package": "./misc"
329
- }
330
- }
331
- ]
332
- },
333
- {
334
- "kind": "javascript-module",
335
- "path": "src/utils/misc.ts",
336
- "declarations": [
337
284
  {
338
285
  "kind": "function",
339
- "name": "processOptGroups",
286
+ "name": "updateGroupData",
340
287
  "return": {
341
288
  "type": {
342
- "text": "(T | { optgroup: string | null; xs: T[] })[]"
289
+ "text": "ModelGroup"
343
290
  }
344
291
  },
345
292
  "parameters": [
346
293
  {
347
- "name": "xs",
294
+ "name": "model",
348
295
  "type": {
349
- "text": "T[]"
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']"
350
309
  }
351
310
  }
352
311
  ]
353
312
  },
354
313
  {
355
314
  "kind": "function",
356
- "name": "applyCustomStyles",
315
+ "name": "updateRuleData",
357
316
  "return": {
358
317
  "type": {
359
- "text": "void"
318
+ "text": "ModelGroup"
360
319
  }
361
320
  },
362
321
  "parameters": [
363
322
  {
364
- "name": "component",
323
+ "name": "model",
365
324
  "type": {
366
- "text": "HTMLElement"
367
- },
368
- "description": "The web component instance"
325
+ "text": "ModelGroup"
326
+ }
369
327
  },
370
328
  {
371
- "name": "styles",
329
+ "name": "ruleIdToUpdate",
372
330
  "type": {
373
- "text": "Styles | undefined | null"
374
- },
375
- "description": "The styles configuration object"
331
+ "text": "string"
332
+ }
376
333
  },
377
334
  {
378
- "name": "styleKey",
335
+ "name": "newData",
379
336
  "type": {
380
- "text": "keyof NonNullable<Styles['customStyles']>"
381
- },
382
- "description": "The key in styles.customStyles to use for custom styles"
337
+ "text": "EventsDetailMap[Events.UpdateRule]['newData']"
338
+ }
383
339
  }
384
- ],
385
- "description": "Utility function to add custom styles to a web component's shadow root"
340
+ ]
386
341
  }
387
342
  ],
388
343
  "exports": [
389
344
  {
390
345
  "kind": "js",
391
- "name": "processOptGroups",
346
+ "name": "findOperateOnGroup",
392
347
  "declaration": {
393
- "name": "processOptGroups",
394
- "module": "src/utils/misc.ts"
348
+ "name": "findOperateOnGroup",
349
+ "module": "src/main/expression-builder.helpers.ts"
395
350
  }
396
351
  },
397
352
  {
398
353
  "kind": "js",
399
- "name": "applyCustomStyles",
400
- "declaration": {
401
- "name": "applyCustomStyles",
402
- "module": "src/utils/misc.ts"
403
- }
404
- }
405
- ]
406
- },
407
- {
408
- "kind": "javascript-module",
409
- "path": "src/types/index.ts",
410
- "declarations": [],
411
- "exports": [
412
- {
413
- "kind": "js",
414
- "name": "*",
415
- "declaration": {
416
- "name": "*",
417
- "package": "./public.types"
418
- }
419
- },
420
- {
421
- "kind": "js",
422
- "name": "*",
423
- "declaration": {
424
- "name": "*",
425
- "package": "./private.types"
426
- }
427
- }
428
- ]
429
- },
430
- {
431
- "kind": "javascript-module",
432
- "path": "src/types/private.types.ts",
433
- "declarations": [],
434
- "exports": []
435
- },
436
- {
437
- "kind": "javascript-module",
438
- "path": "src/types/public.types.ts",
439
- "declarations": [],
440
- "exports": []
441
- },
442
- {
443
- "kind": "javascript-module",
444
- "path": "src/main/events.ts",
445
- "declarations": [],
446
- "exports": []
447
- },
448
- {
449
- "kind": "javascript-module",
450
- "path": "src/main/expression-builder.helpers.ts",
451
- "declarations": [
452
- {
453
- "kind": "function",
454
- "name": "findOperateOnGroup",
455
- "return": {
456
- "type": {
457
- "text": ""
458
- }
459
- },
460
- "parameters": [
461
- {
462
- "name": "model",
463
- "type": {
464
- "text": "ModelGroup"
465
- },
466
- "description": "The root group to start searching from"
467
- },
468
- {
469
- "name": "groupId",
470
- "type": {
471
- "text": "string"
472
- },
473
- "description": "The Group ID to find"
474
- },
475
- {
476
- "name": "fn",
477
- "type": {
478
- "text": "ChildrenOperatorFn"
479
- },
480
- "description": "The function to apply to the children of the found group. A *new* object must be created and returned"
481
- }
482
- ],
483
- "description": "Finds a group within a model and applies a function to create a new children"
484
- },
485
- {
486
- "kind": "function",
487
- "name": "addGroupOrRule",
488
- "return": {
489
- "type": {
490
- "text": "ModelGroup"
491
- }
492
- },
493
- "parameters": [
494
- {
495
- "name": "model",
496
- "type": {
497
- "text": "ModelGroup"
498
- }
499
- },
500
- {
501
- "name": "parentGroupId",
502
- "type": {
503
- "text": "string"
504
- }
505
- },
506
- {
507
- "name": "newItem",
508
- "type": {
509
- "text": "ModelGroup | ModelRule"
510
- }
511
- }
512
- ]
513
- },
514
- {
515
- "kind": "function",
516
- "name": "deleteGroup",
517
- "return": {
518
- "type": {
519
- "text": "ModelGroup"
520
- }
521
- },
522
- "parameters": [
523
- {
524
- "name": "model",
525
- "type": {
526
- "text": "ModelGroup"
527
- }
528
- },
529
- {
530
- "name": "groupIdToDelete",
531
- "type": {
532
- "text": "string"
533
- }
534
- }
535
- ]
536
- },
537
- {
538
- "kind": "function",
539
- "name": "deleteRule",
540
- "return": {
541
- "type": {
542
- "text": "ModelGroup"
543
- }
544
- },
545
- "parameters": [
546
- {
547
- "name": "model",
548
- "type": {
549
- "text": "ModelGroup"
550
- }
551
- },
552
- {
553
- "name": "ruleIdToDelete",
554
- "type": {
555
- "text": "string"
556
- }
557
- }
558
- ]
559
- },
560
- {
561
- "kind": "variable",
562
- "name": "ROOT_GROUP",
563
- "type": {
564
- "text": "string"
565
- },
566
- "default": "'group-root'"
567
- },
568
- {
569
- "kind": "function",
570
- "name": "updateGroupData",
571
- "return": {
572
- "type": {
573
- "text": "ModelGroup"
574
- }
575
- },
576
- "parameters": [
577
- {
578
- "name": "model",
579
- "type": {
580
- "text": "ModelGroup"
581
- }
582
- },
583
- {
584
- "name": "groupIdToUpdate",
585
- "type": {
586
- "text": "string"
587
- }
588
- },
589
- {
590
- "name": "newData",
591
- "type": {
592
- "text": "EventsDetailMap[Events.UpdateGroup]['newData']"
593
- }
594
- }
595
- ]
596
- },
597
- {
598
- "kind": "function",
599
- "name": "updateRuleData",
600
- "return": {
601
- "type": {
602
- "text": "ModelGroup"
603
- }
604
- },
605
- "parameters": [
606
- {
607
- "name": "model",
608
- "type": {
609
- "text": "ModelGroup"
610
- }
611
- },
612
- {
613
- "name": "ruleIdToUpdate",
614
- "type": {
615
- "text": "string"
616
- }
617
- },
618
- {
619
- "name": "newData",
620
- "type": {
621
- "text": "EventsDetailMap[Events.UpdateRule]['newData']"
622
- }
623
- }
624
- ]
625
- }
626
- ],
627
- "exports": [
628
- {
629
- "kind": "js",
630
- "name": "findOperateOnGroup",
631
- "declaration": {
632
- "name": "findOperateOnGroup",
633
- "module": "src/main/expression-builder.helpers.ts"
634
- }
635
- },
636
- {
637
- "kind": "js",
638
- "name": "addGroupOrRule",
354
+ "name": "addGroupOrRule",
639
355
  "declaration": {
640
356
  "name": "addGroupOrRule",
641
357
  "module": "src/main/expression-builder.helpers.ts"
@@ -988,6 +704,290 @@
988
704
  }
989
705
  ]
990
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": [
744
+ {
745
+ "name": "modelGroup",
746
+ "type": {
747
+ "text": "ModelGroup"
748
+ },
749
+ "description": "The internal ModelGroup to convert."
750
+ }
751
+ ],
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": [
763
+ {
764
+ "name": "modelRule",
765
+ "type": {
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"
813
+ }
814
+ }
815
+ ],
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."
830
+ }
831
+ ],
832
+ "exports": [
833
+ {
834
+ "kind": "js",
835
+ "name": "formatDateString",
836
+ "declaration": {
837
+ "name": "formatDateString",
838
+ "module": "src/utils/formatting.ts"
839
+ }
840
+ },
841
+ {
842
+ "kind": "js",
843
+ "name": "formatDateTimeString",
844
+ "declaration": {
845
+ "name": "formatDateTimeString",
846
+ "module": "src/utils/formatting.ts"
847
+ }
848
+ }
849
+ ]
850
+ },
851
+ {
852
+ "kind": "javascript-module",
853
+ "path": "src/utils/index.ts",
854
+ "declarations": [],
855
+ "exports": [
856
+ {
857
+ "kind": "js",
858
+ "name": "*",
859
+ "declaration": {
860
+ "name": "*",
861
+ "package": "./data-model"
862
+ }
863
+ },
864
+ {
865
+ "kind": "js",
866
+ "name": "*",
867
+ "declaration": {
868
+ "name": "*",
869
+ "package": "./formatting"
870
+ }
871
+ },
872
+ {
873
+ "kind": "js",
874
+ "name": "*",
875
+ "declaration": {
876
+ "name": "*",
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": "processOptGroups",
889
+ "return": {
890
+ "type": {
891
+ "text": "(T | { optgroup: string | null; xs: T[] })[]"
892
+ }
893
+ },
894
+ "parameters": [
895
+ {
896
+ "name": "xs",
897
+ "type": {
898
+ "text": "T[]"
899
+ }
900
+ }
901
+ ]
902
+ },
903
+ {
904
+ "kind": "function",
905
+ "name": "applyCustomStyles",
906
+ "return": {
907
+ "type": {
908
+ "text": "void"
909
+ }
910
+ },
911
+ "parameters": [
912
+ {
913
+ "name": "component",
914
+ "type": {
915
+ "text": "HTMLElement"
916
+ },
917
+ "description": "The web component instance"
918
+ },
919
+ {
920
+ "name": "styles",
921
+ "type": {
922
+ "text": "Styles | undefined | null"
923
+ },
924
+ "description": "The styles configuration object"
925
+ },
926
+ {
927
+ "name": "styleKey",
928
+ "type": {
929
+ "text": "keyof NonNullable<Styles['customStyles']>"
930
+ },
931
+ "description": "The key in styles.customStyles to use for custom styles"
932
+ }
933
+ ],
934
+ "description": "Utility function to add custom styles to a web component's shadow root"
935
+ }
936
+ ],
937
+ "exports": [
938
+ {
939
+ "kind": "js",
940
+ "name": "processOptGroups",
941
+ "declaration": {
942
+ "name": "processOptGroups",
943
+ "module": "src/utils/misc.ts"
944
+ }
945
+ },
946
+ {
947
+ "kind": "js",
948
+ "name": "applyCustomStyles",
949
+ "declaration": {
950
+ "name": "applyCustomStyles",
951
+ "module": "src/utils/misc.ts"
952
+ }
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "kind": "javascript-module",
958
+ "path": "src/types/index.ts",
959
+ "declarations": [],
960
+ "exports": [
961
+ {
962
+ "kind": "js",
963
+ "name": "*",
964
+ "declaration": {
965
+ "name": "*",
966
+ "package": "./public.types"
967
+ }
968
+ },
969
+ {
970
+ "kind": "js",
971
+ "name": "*",
972
+ "declaration": {
973
+ "name": "*",
974
+ "package": "./private.types"
975
+ }
976
+ }
977
+ ]
978
+ },
979
+ {
980
+ "kind": "javascript-module",
981
+ "path": "src/types/private.types.ts",
982
+ "declarations": [],
983
+ "exports": []
984
+ },
985
+ {
986
+ "kind": "javascript-module",
987
+ "path": "src/types/public.types.ts",
988
+ "declarations": [],
989
+ "exports": []
990
+ },
991
991
  {
992
992
  "kind": "javascript-module",
993
993
  "path": "src/main/expression-group/expression-group.styles.ts",
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.268.2",
4
+ "version": "14.268.3",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/expression-builder.d.ts",
@@ -59,5 +59,5 @@
59
59
  "access": "public"
60
60
  },
61
61
  "customElements": "dist/custom-elements.json",
62
- "gitHead": "90c3d2bb1f8c4b73942b7bd73cc447a98d0ad2c6"
62
+ "gitHead": "5adc8596d5fe7a96f5c3efe289a40d188f432b0e"
63
63
  }