@genesislcap/expression-builder 14.268.1 → 14.268.2

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,205 +157,489 @@
157
157
  },
158
158
  {
159
159
  "kind": "javascript-module",
160
- "path": "src/main/events.ts",
161
- "declarations": [],
162
- "exports": []
163
- },
164
- {
165
- "kind": "javascript-module",
166
- "path": "src/main/expression-builder.helpers.ts",
160
+ "path": "src/utils/data-model.ts",
167
161
  "declarations": [
168
162
  {
169
163
  "kind": "function",
170
- "name": "findOperateOnGroup",
164
+ "name": "groupToModelGroup",
171
165
  "return": {
172
166
  "type": {
173
- "text": ""
167
+ "text": "ModelGroup"
174
168
  }
175
169
  },
176
170
  "parameters": [
177
171
  {
178
- "name": "model",
179
- "type": {
180
- "text": "ModelGroup"
181
- },
182
- "description": "The root group to start searching from"
183
- },
184
- {
185
- "name": "groupId",
172
+ "name": "group",
186
173
  "type": {
187
- "text": "string"
188
- },
189
- "description": "The Group ID to find"
174
+ "text": "Group"
175
+ }
190
176
  },
191
177
  {
192
- "name": "fn",
178
+ "name": "provider",
193
179
  "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"
180
+ "text": "MetadataProvider"
181
+ }
197
182
  }
198
183
  ],
199
- "description": "Finds a group within a model and applies a function to create a new children"
184
+ "description": "Converts a Group to a ModelGroup (adds required metadata)"
200
185
  },
201
186
  {
202
187
  "kind": "function",
203
- "name": "addGroupOrRule",
188
+ "name": "modelGroupToGroup",
204
189
  "return": {
205
190
  "type": {
206
- "text": "ModelGroup"
191
+ "text": ""
207
192
  }
208
193
  },
209
194
  "parameters": [
210
195
  {
211
- "name": "model",
196
+ "name": "modelGroup",
212
197
  "type": {
213
198
  "text": "ModelGroup"
214
- }
215
- },
216
- {
217
- "name": "parentGroupId",
218
- "type": {
219
- "text": "string"
220
- }
221
- },
222
- {
223
- "name": "newItem",
224
- "type": {
225
- "text": "ModelGroup | ModelRule"
226
- }
199
+ },
200
+ "description": "The internal ModelGroup to convert."
227
201
  }
228
- ]
202
+ ],
203
+ "description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
229
204
  },
230
205
  {
231
206
  "kind": "function",
232
- "name": "deleteGroup",
207
+ "name": "modelRuleToRule",
233
208
  "return": {
234
209
  "type": {
235
- "text": "ModelGroup"
210
+ "text": ""
236
211
  }
237
212
  },
238
213
  "parameters": [
239
214
  {
240
- "name": "model",
241
- "type": {
242
- "text": "ModelGroup"
243
- }
244
- },
245
- {
246
- "name": "groupIdToDelete",
215
+ "name": "modelRule",
247
216
  "type": {
248
- "text": "string"
249
- }
217
+ "text": "ModelRule"
218
+ },
219
+ "description": "The internal ModelRule to convert."
250
220
  }
251
- ]
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
+ }
252
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": [
253
256
  {
254
257
  "kind": "function",
255
- "name": "deleteRule",
256
- "return": {
257
- "type": {
258
- "text": "ModelGroup"
259
- }
260
- },
258
+ "name": "formatDateString",
261
259
  "parameters": [
262
260
  {
263
- "name": "model",
261
+ "name": "date",
264
262
  "type": {
265
- "text": "ModelGroup"
263
+ "text": "Date"
266
264
  }
267
- },
265
+ }
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."
268
+ },
269
+ {
270
+ "kind": "function",
271
+ "name": "formatDateTimeString",
272
+ "parameters": [
268
273
  {
269
- "name": "ruleIdToDelete",
274
+ "name": "date",
270
275
  "type": {
271
- "text": "string"
276
+ "text": "Date"
272
277
  }
273
278
  }
274
- ]
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
+ }
275
291
  },
276
292
  {
277
- "kind": "variable",
278
- "name": "ROOT_GROUP",
279
- "type": {
280
- "text": "string"
281
- },
282
- "default": "'group-root'"
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
+ }
314
+ },
315
+ {
316
+ "kind": "js",
317
+ "name": "*",
318
+ "declaration": {
319
+ "name": "*",
320
+ "package": "./formatting"
321
+ }
283
322
  },
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": [
284
337
  {
285
338
  "kind": "function",
286
- "name": "updateGroupData",
339
+ "name": "processOptGroups",
287
340
  "return": {
288
341
  "type": {
289
- "text": "ModelGroup"
342
+ "text": "(T | { optgroup: string | null; xs: T[] })[]"
290
343
  }
291
344
  },
292
345
  "parameters": [
293
346
  {
294
- "name": "model",
295
- "type": {
296
- "text": "ModelGroup"
297
- }
298
- },
299
- {
300
- "name": "groupIdToUpdate",
301
- "type": {
302
- "text": "string"
303
- }
304
- },
305
- {
306
- "name": "newData",
347
+ "name": "xs",
307
348
  "type": {
308
- "text": "EventsDetailMap[Events.UpdateGroup]['newData']"
349
+ "text": "T[]"
309
350
  }
310
351
  }
311
352
  ]
312
353
  },
313
354
  {
314
355
  "kind": "function",
315
- "name": "updateRuleData",
356
+ "name": "applyCustomStyles",
316
357
  "return": {
317
358
  "type": {
318
- "text": "ModelGroup"
359
+ "text": "void"
319
360
  }
320
361
  },
321
362
  "parameters": [
322
363
  {
323
- "name": "model",
364
+ "name": "component",
324
365
  "type": {
325
- "text": "ModelGroup"
326
- }
366
+ "text": "HTMLElement"
367
+ },
368
+ "description": "The web component instance"
327
369
  },
328
370
  {
329
- "name": "ruleIdToUpdate",
371
+ "name": "styles",
330
372
  "type": {
331
- "text": "string"
332
- }
373
+ "text": "Styles | undefined | null"
374
+ },
375
+ "description": "The styles configuration object"
333
376
  },
334
377
  {
335
- "name": "newData",
378
+ "name": "styleKey",
336
379
  "type": {
337
- "text": "EventsDetailMap[Events.UpdateRule]['newData']"
338
- }
380
+ "text": "keyof NonNullable<Styles['customStyles']>"
381
+ },
382
+ "description": "The key in styles.customStyles to use for custom styles"
339
383
  }
340
- ]
384
+ ],
385
+ "description": "Utility function to add custom styles to a web component's shadow root"
341
386
  }
342
387
  ],
343
388
  "exports": [
344
389
  {
345
390
  "kind": "js",
346
- "name": "findOperateOnGroup",
391
+ "name": "processOptGroups",
347
392
  "declaration": {
348
- "name": "findOperateOnGroup",
349
- "module": "src/main/expression-builder.helpers.ts"
393
+ "name": "processOptGroups",
394
+ "module": "src/utils/misc.ts"
350
395
  }
351
396
  },
352
397
  {
353
398
  "kind": "js",
354
- "name": "addGroupOrRule",
399
+ "name": "applyCustomStyles",
355
400
  "declaration": {
356
- "name": "addGroupOrRule",
357
- "module": "src/main/expression-builder.helpers.ts"
358
- }
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",
639
+ "declaration": {
640
+ "name": "addGroupOrRule",
641
+ "module": "src/main/expression-builder.helpers.ts"
642
+ }
359
643
  },
360
644
  {
361
645
  "kind": "js",
@@ -704,290 +988,6 @@
704
988
  }
705
989
  ]
706
990
  },
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.1",
4
+ "version": "14.268.2",
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": "332c27427ed10baf7645b0f93ac77e0317182570"
62
+ "gitHead": "90c3d2bb1f8c4b73942b7bd73cc447a98d0ad2c6"
63
63
  }