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