@genesislcap/expression-builder 14.252.0 → 14.252.1-alpha-37ebbf6.0
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 +363 -363
- package/package.json +2 -2
|
@@ -136,6 +136,290 @@
|
|
|
136
136
|
}
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "javascript-module",
|
|
141
|
+
"path": "src/types/index.ts",
|
|
142
|
+
"declarations": [],
|
|
143
|
+
"exports": [
|
|
144
|
+
{
|
|
145
|
+
"kind": "js",
|
|
146
|
+
"name": "*",
|
|
147
|
+
"declaration": {
|
|
148
|
+
"name": "*",
|
|
149
|
+
"package": "./public.types"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"kind": "js",
|
|
154
|
+
"name": "*",
|
|
155
|
+
"declaration": {
|
|
156
|
+
"name": "*",
|
|
157
|
+
"package": "./private.types"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"kind": "javascript-module",
|
|
164
|
+
"path": "src/types/private.types.ts",
|
|
165
|
+
"declarations": [],
|
|
166
|
+
"exports": []
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "javascript-module",
|
|
170
|
+
"path": "src/types/public.types.ts",
|
|
171
|
+
"declarations": [],
|
|
172
|
+
"exports": []
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "javascript-module",
|
|
176
|
+
"path": "src/utils/data-model.ts",
|
|
177
|
+
"declarations": [
|
|
178
|
+
{
|
|
179
|
+
"kind": "function",
|
|
180
|
+
"name": "groupToModelGroup",
|
|
181
|
+
"return": {
|
|
182
|
+
"type": {
|
|
183
|
+
"text": "ModelGroup"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"parameters": [
|
|
187
|
+
{
|
|
188
|
+
"name": "group",
|
|
189
|
+
"type": {
|
|
190
|
+
"text": "Group"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "provider",
|
|
195
|
+
"type": {
|
|
196
|
+
"text": "MetadataProvider"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "function",
|
|
204
|
+
"name": "modelGroupToGroup",
|
|
205
|
+
"return": {
|
|
206
|
+
"type": {
|
|
207
|
+
"text": ""
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"parameters": [
|
|
211
|
+
{
|
|
212
|
+
"name": "modelGroup",
|
|
213
|
+
"type": {
|
|
214
|
+
"text": "ModelGroup"
|
|
215
|
+
},
|
|
216
|
+
"description": "The internal ModelGroup to convert."
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"kind": "function",
|
|
223
|
+
"name": "modelRuleToRule",
|
|
224
|
+
"return": {
|
|
225
|
+
"type": {
|
|
226
|
+
"text": ""
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"parameters": [
|
|
230
|
+
{
|
|
231
|
+
"name": "modelRule",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "ModelRule"
|
|
234
|
+
},
|
|
235
|
+
"description": "The internal ModelRule to convert."
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"exports": [
|
|
242
|
+
{
|
|
243
|
+
"kind": "js",
|
|
244
|
+
"name": "groupToModelGroup",
|
|
245
|
+
"declaration": {
|
|
246
|
+
"name": "groupToModelGroup",
|
|
247
|
+
"module": "src/utils/data-model.ts"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"kind": "js",
|
|
252
|
+
"name": "modelGroupToGroup",
|
|
253
|
+
"declaration": {
|
|
254
|
+
"name": "modelGroupToGroup",
|
|
255
|
+
"module": "src/utils/data-model.ts"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"kind": "js",
|
|
260
|
+
"name": "modelRuleToRule",
|
|
261
|
+
"declaration": {
|
|
262
|
+
"name": "modelRuleToRule",
|
|
263
|
+
"module": "src/utils/data-model.ts"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"kind": "javascript-module",
|
|
270
|
+
"path": "src/utils/formatting.ts",
|
|
271
|
+
"declarations": [
|
|
272
|
+
{
|
|
273
|
+
"kind": "function",
|
|
274
|
+
"name": "formatDateString",
|
|
275
|
+
"parameters": [
|
|
276
|
+
{
|
|
277
|
+
"name": "date",
|
|
278
|
+
"type": {
|
|
279
|
+
"text": "Date"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"kind": "function",
|
|
287
|
+
"name": "formatDateTimeString",
|
|
288
|
+
"parameters": [
|
|
289
|
+
{
|
|
290
|
+
"name": "date",
|
|
291
|
+
"type": {
|
|
292
|
+
"text": "Date"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"description": "Gets the string representation from a `Date` which is the format a `datetime-local` input uses.\n`yyyy-mm-ddThh:mm:ss`"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"exports": [
|
|
300
|
+
{
|
|
301
|
+
"kind": "js",
|
|
302
|
+
"name": "formatDateString",
|
|
303
|
+
"declaration": {
|
|
304
|
+
"name": "formatDateString",
|
|
305
|
+
"module": "src/utils/formatting.ts"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "js",
|
|
310
|
+
"name": "formatDateTimeString",
|
|
311
|
+
"declaration": {
|
|
312
|
+
"name": "formatDateTimeString",
|
|
313
|
+
"module": "src/utils/formatting.ts"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "javascript-module",
|
|
320
|
+
"path": "src/utils/index.ts",
|
|
321
|
+
"declarations": [],
|
|
322
|
+
"exports": [
|
|
323
|
+
{
|
|
324
|
+
"kind": "js",
|
|
325
|
+
"name": "*",
|
|
326
|
+
"declaration": {
|
|
327
|
+
"name": "*",
|
|
328
|
+
"package": "./data-model"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"kind": "js",
|
|
333
|
+
"name": "*",
|
|
334
|
+
"declaration": {
|
|
335
|
+
"name": "*",
|
|
336
|
+
"package": "./formatting"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"kind": "js",
|
|
341
|
+
"name": "*",
|
|
342
|
+
"declaration": {
|
|
343
|
+
"name": "*",
|
|
344
|
+
"package": "./misc"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"kind": "javascript-module",
|
|
351
|
+
"path": "src/utils/misc.ts",
|
|
352
|
+
"declarations": [
|
|
353
|
+
{
|
|
354
|
+
"kind": "function",
|
|
355
|
+
"name": "processOptGroups",
|
|
356
|
+
"return": {
|
|
357
|
+
"type": {
|
|
358
|
+
"text": "(T | { optgroup: string | null; xs: T[] })[]"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"parameters": [
|
|
362
|
+
{
|
|
363
|
+
"name": "xs",
|
|
364
|
+
"type": {
|
|
365
|
+
"text": "T[]"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "function",
|
|
372
|
+
"name": "applyCustomStyles",
|
|
373
|
+
"return": {
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "void"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"parameters": [
|
|
379
|
+
{
|
|
380
|
+
"name": "component",
|
|
381
|
+
"type": {
|
|
382
|
+
"text": "HTMLElement"
|
|
383
|
+
},
|
|
384
|
+
"description": "The web component instance"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "styles",
|
|
388
|
+
"type": {
|
|
389
|
+
"text": "Styles | undefined | null"
|
|
390
|
+
},
|
|
391
|
+
"description": "The styles configuration object"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "styleKey",
|
|
395
|
+
"type": {
|
|
396
|
+
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
397
|
+
},
|
|
398
|
+
"description": "The key in styles.customStyles to use for custom styles"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"exports": [
|
|
405
|
+
{
|
|
406
|
+
"kind": "js",
|
|
407
|
+
"name": "processOptGroups",
|
|
408
|
+
"declaration": {
|
|
409
|
+
"name": "processOptGroups",
|
|
410
|
+
"module": "src/utils/misc.ts"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "js",
|
|
415
|
+
"name": "applyCustomStyles",
|
|
416
|
+
"declaration": {
|
|
417
|
+
"name": "applyCustomStyles",
|
|
418
|
+
"module": "src/utils/misc.ts"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
139
423
|
{
|
|
140
424
|
"kind": "javascript-module",
|
|
141
425
|
"path": "src/main/events.ts",
|
|
@@ -588,224 +872,49 @@
|
|
|
588
872
|
"name": "event",
|
|
589
873
|
"type": {
|
|
590
874
|
"text": "CustomEvent<EventsDetailMap[Events.UpdateRule]>"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
]
|
|
594
|
-
}
|
|
595
|
-
],
|
|
596
|
-
"events": [
|
|
597
|
-
{
|
|
598
|
-
"name": "change",
|
|
599
|
-
"type": {
|
|
600
|
-
"text": "CustomEvent"
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
],
|
|
604
|
-
"superclass": {
|
|
605
|
-
"name": "GenesisElement",
|
|
606
|
-
"package": "@genesislcap/web-core"
|
|
607
|
-
},
|
|
608
|
-
"tagName": "expression-builder",
|
|
609
|
-
"customElement": true
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
"exports": [
|
|
613
|
-
{
|
|
614
|
-
"kind": "js",
|
|
615
|
-
"name": "ExpressionBuilder",
|
|
616
|
-
"declaration": {
|
|
617
|
-
"name": "ExpressionBuilder",
|
|
618
|
-
"module": "src/main/expression-builder.ts"
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"kind": "custom-element-definition",
|
|
623
|
-
"name": "expression-builder",
|
|
624
|
-
"declaration": {
|
|
625
|
-
"name": "ExpressionBuilder",
|
|
626
|
-
"module": "src/main/expression-builder.ts"
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
]
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"kind": "javascript-module",
|
|
633
|
-
"path": "src/main/index.ts",
|
|
634
|
-
"declarations": [],
|
|
635
|
-
"exports": [
|
|
636
|
-
{
|
|
637
|
-
"kind": "js",
|
|
638
|
-
"name": "*",
|
|
639
|
-
"declaration": {
|
|
640
|
-
"name": "*",
|
|
641
|
-
"package": "./expression-builder"
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"kind": "js",
|
|
646
|
-
"name": "*",
|
|
647
|
-
"declaration": {
|
|
648
|
-
"name": "*",
|
|
649
|
-
"package": "./expression-builder.styles"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"kind": "js",
|
|
654
|
-
"name": "*",
|
|
655
|
-
"declaration": {
|
|
656
|
-
"name": "*",
|
|
657
|
-
"package": "./expression-builder.template"
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
]
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"kind": "javascript-module",
|
|
664
|
-
"path": "src/utils/data-model.ts",
|
|
665
|
-
"declarations": [
|
|
666
|
-
{
|
|
667
|
-
"kind": "function",
|
|
668
|
-
"name": "groupToModelGroup",
|
|
669
|
-
"return": {
|
|
670
|
-
"type": {
|
|
671
|
-
"text": "ModelGroup"
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
"parameters": [
|
|
675
|
-
{
|
|
676
|
-
"name": "group",
|
|
677
|
-
"type": {
|
|
678
|
-
"text": "Group"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"name": "provider",
|
|
683
|
-
"type": {
|
|
684
|
-
"text": "MetadataProvider"
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"description": "Converts a Group to a ModelGroup (adds required metadata)"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
"kind": "function",
|
|
692
|
-
"name": "modelGroupToGroup",
|
|
693
|
-
"return": {
|
|
694
|
-
"type": {
|
|
695
|
-
"text": ""
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
"parameters": [
|
|
699
|
-
{
|
|
700
|
-
"name": "modelGroup",
|
|
701
|
-
"type": {
|
|
702
|
-
"text": "ModelGroup"
|
|
703
|
-
},
|
|
704
|
-
"description": "The internal ModelGroup to convert."
|
|
705
|
-
}
|
|
706
|
-
],
|
|
707
|
-
"description": "Converts a ModelGroup (internal data structure) to a public Group structure.\nThis function recursively processes the rules within the group."
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"kind": "function",
|
|
711
|
-
"name": "modelRuleToRule",
|
|
712
|
-
"return": {
|
|
713
|
-
"type": {
|
|
714
|
-
"text": ""
|
|
715
|
-
}
|
|
716
|
-
},
|
|
717
|
-
"parameters": [
|
|
718
|
-
{
|
|
719
|
-
"name": "modelRule",
|
|
720
|
-
"type": {
|
|
721
|
-
"text": "ModelRule"
|
|
722
|
-
},
|
|
723
|
-
"description": "The internal ModelRule to convert."
|
|
724
|
-
}
|
|
725
|
-
],
|
|
726
|
-
"description": "Converts a ModelRule (internal data structure) to a public Rule structure."
|
|
727
|
-
}
|
|
728
|
-
],
|
|
729
|
-
"exports": [
|
|
730
|
-
{
|
|
731
|
-
"kind": "js",
|
|
732
|
-
"name": "groupToModelGroup",
|
|
733
|
-
"declaration": {
|
|
734
|
-
"name": "groupToModelGroup",
|
|
735
|
-
"module": "src/utils/data-model.ts"
|
|
736
|
-
}
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"kind": "js",
|
|
740
|
-
"name": "modelGroupToGroup",
|
|
741
|
-
"declaration": {
|
|
742
|
-
"name": "modelGroupToGroup",
|
|
743
|
-
"module": "src/utils/data-model.ts"
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"kind": "js",
|
|
748
|
-
"name": "modelRuleToRule",
|
|
749
|
-
"declaration": {
|
|
750
|
-
"name": "modelRuleToRule",
|
|
751
|
-
"module": "src/utils/data-model.ts"
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
]
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"kind": "javascript-module",
|
|
758
|
-
"path": "src/utils/formatting.ts",
|
|
759
|
-
"declarations": [
|
|
760
|
-
{
|
|
761
|
-
"kind": "function",
|
|
762
|
-
"name": "formatDateString",
|
|
763
|
-
"parameters": [
|
|
764
|
-
{
|
|
765
|
-
"name": "date",
|
|
766
|
-
"type": {
|
|
767
|
-
"text": "Date"
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
],
|
|
771
|
-
"description": "Gets the string representation from a `Date` which is the format a `date` input uses.\n`yyyy-mm-dd`"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"kind": "function",
|
|
775
|
-
"name": "formatDateTimeString",
|
|
776
|
-
"parameters": [
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
"events": [
|
|
777
881
|
{
|
|
778
|
-
"name": "
|
|
882
|
+
"name": "change",
|
|
779
883
|
"type": {
|
|
780
|
-
"text": "
|
|
884
|
+
"text": "CustomEvent"
|
|
781
885
|
}
|
|
782
886
|
}
|
|
783
887
|
],
|
|
784
|
-
"
|
|
888
|
+
"superclass": {
|
|
889
|
+
"name": "GenesisElement",
|
|
890
|
+
"package": "@genesislcap/web-core"
|
|
891
|
+
},
|
|
892
|
+
"tagName": "expression-builder",
|
|
893
|
+
"customElement": true
|
|
785
894
|
}
|
|
786
895
|
],
|
|
787
896
|
"exports": [
|
|
788
897
|
{
|
|
789
898
|
"kind": "js",
|
|
790
|
-
"name": "
|
|
899
|
+
"name": "ExpressionBuilder",
|
|
791
900
|
"declaration": {
|
|
792
|
-
"name": "
|
|
793
|
-
"module": "src/
|
|
901
|
+
"name": "ExpressionBuilder",
|
|
902
|
+
"module": "src/main/expression-builder.ts"
|
|
794
903
|
}
|
|
795
904
|
},
|
|
796
905
|
{
|
|
797
|
-
"kind": "
|
|
798
|
-
"name": "
|
|
906
|
+
"kind": "custom-element-definition",
|
|
907
|
+
"name": "expression-builder",
|
|
799
908
|
"declaration": {
|
|
800
|
-
"name": "
|
|
801
|
-
"module": "src/
|
|
909
|
+
"name": "ExpressionBuilder",
|
|
910
|
+
"module": "src/main/expression-builder.ts"
|
|
802
911
|
}
|
|
803
912
|
}
|
|
804
913
|
]
|
|
805
914
|
},
|
|
806
915
|
{
|
|
807
916
|
"kind": "javascript-module",
|
|
808
|
-
"path": "src/
|
|
917
|
+
"path": "src/main/index.ts",
|
|
809
918
|
"declarations": [],
|
|
810
919
|
"exports": [
|
|
811
920
|
{
|
|
@@ -813,112 +922,15 @@
|
|
|
813
922
|
"name": "*",
|
|
814
923
|
"declaration": {
|
|
815
924
|
"name": "*",
|
|
816
|
-
"package": "./
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
"kind": "js",
|
|
821
|
-
"name": "*",
|
|
822
|
-
"declaration": {
|
|
823
|
-
"name": "*",
|
|
824
|
-
"package": "./formatting"
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
"kind": "js",
|
|
829
|
-
"name": "*",
|
|
830
|
-
"declaration": {
|
|
831
|
-
"name": "*",
|
|
832
|
-
"package": "./misc"
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
]
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
"kind": "javascript-module",
|
|
839
|
-
"path": "src/utils/misc.ts",
|
|
840
|
-
"declarations": [
|
|
841
|
-
{
|
|
842
|
-
"kind": "function",
|
|
843
|
-
"name": "processOptGroups",
|
|
844
|
-
"return": {
|
|
845
|
-
"type": {
|
|
846
|
-
"text": "(T | { optgroup: string | null; xs: T[] })[]"
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
"parameters": [
|
|
850
|
-
{
|
|
851
|
-
"name": "xs",
|
|
852
|
-
"type": {
|
|
853
|
-
"text": "T[]"
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
]
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
"kind": "function",
|
|
860
|
-
"name": "applyCustomStyles",
|
|
861
|
-
"return": {
|
|
862
|
-
"type": {
|
|
863
|
-
"text": "void"
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
"parameters": [
|
|
867
|
-
{
|
|
868
|
-
"name": "component",
|
|
869
|
-
"type": {
|
|
870
|
-
"text": "HTMLElement"
|
|
871
|
-
},
|
|
872
|
-
"description": "The web component instance"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"name": "styles",
|
|
876
|
-
"type": {
|
|
877
|
-
"text": "Styles | undefined | null"
|
|
878
|
-
},
|
|
879
|
-
"description": "The styles configuration object"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"name": "styleKey",
|
|
883
|
-
"type": {
|
|
884
|
-
"text": "keyof NonNullable<Styles['customStyles']>"
|
|
885
|
-
},
|
|
886
|
-
"description": "The key in styles.customStyles to use for custom styles"
|
|
887
|
-
}
|
|
888
|
-
],
|
|
889
|
-
"description": "Utility function to add custom styles to a web component's shadow root"
|
|
890
|
-
}
|
|
891
|
-
],
|
|
892
|
-
"exports": [
|
|
893
|
-
{
|
|
894
|
-
"kind": "js",
|
|
895
|
-
"name": "processOptGroups",
|
|
896
|
-
"declaration": {
|
|
897
|
-
"name": "processOptGroups",
|
|
898
|
-
"module": "src/utils/misc.ts"
|
|
925
|
+
"package": "./expression-builder"
|
|
899
926
|
}
|
|
900
927
|
},
|
|
901
|
-
{
|
|
902
|
-
"kind": "js",
|
|
903
|
-
"name": "applyCustomStyles",
|
|
904
|
-
"declaration": {
|
|
905
|
-
"name": "applyCustomStyles",
|
|
906
|
-
"module": "src/utils/misc.ts"
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
]
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"kind": "javascript-module",
|
|
913
|
-
"path": "src/types/index.ts",
|
|
914
|
-
"declarations": [],
|
|
915
|
-
"exports": [
|
|
916
928
|
{
|
|
917
929
|
"kind": "js",
|
|
918
930
|
"name": "*",
|
|
919
931
|
"declaration": {
|
|
920
932
|
"name": "*",
|
|
921
|
-
"package": "./
|
|
933
|
+
"package": "./expression-builder.styles"
|
|
922
934
|
}
|
|
923
935
|
},
|
|
924
936
|
{
|
|
@@ -926,23 +938,11 @@
|
|
|
926
938
|
"name": "*",
|
|
927
939
|
"declaration": {
|
|
928
940
|
"name": "*",
|
|
929
|
-
"package": "./
|
|
941
|
+
"package": "./expression-builder.template"
|
|
930
942
|
}
|
|
931
943
|
}
|
|
932
944
|
]
|
|
933
945
|
},
|
|
934
|
-
{
|
|
935
|
-
"kind": "javascript-module",
|
|
936
|
-
"path": "src/types/private.types.ts",
|
|
937
|
-
"declarations": [],
|
|
938
|
-
"exports": []
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"kind": "javascript-module",
|
|
942
|
-
"path": "src/types/public.types.ts",
|
|
943
|
-
"declarations": [],
|
|
944
|
-
"exports": []
|
|
945
|
-
},
|
|
946
946
|
{
|
|
947
947
|
"kind": "javascript-module",
|
|
948
948
|
"path": "src/main/expression-group/expression-group.styles.ts",
|
|
@@ -1417,12 +1417,12 @@
|
|
|
1417
1417
|
},
|
|
1418
1418
|
{
|
|
1419
1419
|
"kind": "javascript-module",
|
|
1420
|
-
"path": "src/main/rule-
|
|
1420
|
+
"path": "src/main/rule-operator/rule-operator.template.ts",
|
|
1421
1421
|
"declarations": [
|
|
1422
1422
|
{
|
|
1423
1423
|
"kind": "variable",
|
|
1424
1424
|
"name": "template",
|
|
1425
|
-
"default": "html<
|
|
1425
|
+
"default": "html<RuleOperator>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleOperator>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.handleOperatorChange(c.event)}\n value=${(x) => x.operator?.type}\n >\n <${optionTag} value=\"\">Select an operator</${optionTag}>\n ${repeat(\n (x) => x.groupedOperators,\n html<{ optgroup: string | null; xs: Operator[] } | Operator, RuleOperator>`\n ${(groupOrOperator) => {\n if ('xs' in groupOrOperator) {\n return html<{ optgroup: string | null; xs: Operator[] }, RuleOperator>`\n <${optgroupTag} label=\"${groupOrOperator.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Operator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => x.type === c.parentContext.parent.operator?.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Operator, RuleOperator>`\n <${optionTag}\n value=\"${(x) => x.type}\"\n ?selected=${(x, c) => c.parent.operator?.type === x.type}\n >\n ${(x) => x.type}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
|
|
1426
1426
|
}
|
|
1427
1427
|
],
|
|
1428
1428
|
"exports": [
|
|
@@ -1431,35 +1431,43 @@
|
|
|
1431
1431
|
"name": "template",
|
|
1432
1432
|
"declaration": {
|
|
1433
1433
|
"name": "template",
|
|
1434
|
-
"module": "src/main/rule-
|
|
1434
|
+
"module": "src/main/rule-operator/rule-operator.template.ts"
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
]
|
|
1438
1438
|
},
|
|
1439
1439
|
{
|
|
1440
1440
|
"kind": "javascript-module",
|
|
1441
|
-
"path": "src/main/rule-
|
|
1441
|
+
"path": "src/main/rule-operator/rule-operator.ts",
|
|
1442
1442
|
"declarations": [
|
|
1443
1443
|
{
|
|
1444
1444
|
"kind": "class",
|
|
1445
1445
|
"description": "",
|
|
1446
|
-
"name": "
|
|
1446
|
+
"name": "RuleOperator",
|
|
1447
1447
|
"members": [
|
|
1448
1448
|
{
|
|
1449
1449
|
"kind": "field",
|
|
1450
|
-
"name": "
|
|
1450
|
+
"name": "operators",
|
|
1451
1451
|
"type": {
|
|
1452
|
-
"text": "
|
|
1452
|
+
"text": "Operator[]"
|
|
1453
1453
|
},
|
|
1454
1454
|
"default": "[]"
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
1457
1457
|
"kind": "field",
|
|
1458
|
-
"name": "
|
|
1458
|
+
"name": "operator",
|
|
1459
1459
|
"type": {
|
|
1460
|
-
"text": "
|
|
1460
|
+
"text": "Operator"
|
|
1461
1461
|
}
|
|
1462
1462
|
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "field",
|
|
1465
|
+
"name": "field",
|
|
1466
|
+
"type": {
|
|
1467
|
+
"text": "Field | null"
|
|
1468
|
+
},
|
|
1469
|
+
"default": "null"
|
|
1470
|
+
},
|
|
1463
1471
|
{
|
|
1464
1472
|
"kind": "field",
|
|
1465
1473
|
"name": "config",
|
|
@@ -1476,15 +1484,23 @@
|
|
|
1476
1484
|
},
|
|
1477
1485
|
{
|
|
1478
1486
|
"kind": "field",
|
|
1479
|
-
"name": "
|
|
1487
|
+
"name": "allowedOperators",
|
|
1480
1488
|
"type": {
|
|
1481
|
-
"text": "
|
|
1489
|
+
"text": "Operator[]"
|
|
1490
|
+
},
|
|
1491
|
+
"readonly": true
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"kind": "field",
|
|
1495
|
+
"name": "groupedOperators",
|
|
1496
|
+
"type": {
|
|
1497
|
+
"text": "(Operator | { optgroup: string | null; xs: Operator[] })[]"
|
|
1482
1498
|
},
|
|
1483
1499
|
"readonly": true
|
|
1484
1500
|
},
|
|
1485
1501
|
{
|
|
1486
1502
|
"kind": "method",
|
|
1487
|
-
"name": "
|
|
1503
|
+
"name": "handleOperatorChange",
|
|
1488
1504
|
"parameters": [
|
|
1489
1505
|
{
|
|
1490
1506
|
"name": "event",
|
|
@@ -1506,37 +1522,37 @@
|
|
|
1506
1522
|
"name": "GenesisElement",
|
|
1507
1523
|
"package": "@genesislcap/web-core"
|
|
1508
1524
|
},
|
|
1509
|
-
"tagName": "expression-rule-
|
|
1525
|
+
"tagName": "expression-rule-operator",
|
|
1510
1526
|
"customElement": true
|
|
1511
1527
|
}
|
|
1512
1528
|
],
|
|
1513
1529
|
"exports": [
|
|
1514
1530
|
{
|
|
1515
1531
|
"kind": "js",
|
|
1516
|
-
"name": "
|
|
1532
|
+
"name": "RuleOperator",
|
|
1517
1533
|
"declaration": {
|
|
1518
|
-
"name": "
|
|
1519
|
-
"module": "src/main/rule-
|
|
1534
|
+
"name": "RuleOperator",
|
|
1535
|
+
"module": "src/main/rule-operator/rule-operator.ts"
|
|
1520
1536
|
}
|
|
1521
1537
|
},
|
|
1522
1538
|
{
|
|
1523
1539
|
"kind": "custom-element-definition",
|
|
1524
|
-
"name": "expression-rule-
|
|
1540
|
+
"name": "expression-rule-operator",
|
|
1525
1541
|
"declaration": {
|
|
1526
|
-
"name": "
|
|
1527
|
-
"module": "src/main/rule-
|
|
1542
|
+
"name": "RuleOperator",
|
|
1543
|
+
"module": "src/main/rule-operator/rule-operator.ts"
|
|
1528
1544
|
}
|
|
1529
1545
|
}
|
|
1530
1546
|
]
|
|
1531
1547
|
},
|
|
1532
1548
|
{
|
|
1533
1549
|
"kind": "javascript-module",
|
|
1534
|
-
"path": "src/main/rule-
|
|
1550
|
+
"path": "src/main/rule-field/rule-field.template.ts",
|
|
1535
1551
|
"declarations": [
|
|
1536
1552
|
{
|
|
1537
1553
|
"kind": "variable",
|
|
1538
1554
|
"name": "template",
|
|
1539
|
-
"default": "html<
|
|
1555
|
+
"default": "html<RuleField>`\n ${(context) => {\n const selectTag = context.styles?.customElements?.select || 'select';\n const optionTag = context.styles?.customElements?.option || 'option';\n const optgroupTag = 'optgroup'; // Not supporting custom optgroup for now\n\n return html<RuleField>`\n <${selectTag}\n class=\"form-select\"\n @change=${(x, c) => x.dispatchFieldsChanged(c.event)}\n value=${(x) => x.field?.fieldId}\n >\n <${optionTag} value=\"\">Select a field</${optionTag}>\n ${repeat(\n (x) => x.groupedFieldss,\n html<{ optgroup: string | null; xs: Field[] } | Field, RuleField>`\n ${(groupOrFields) => {\n if ('xs' in groupOrFields) {\n return html<{\n optgroup: string | null;\n xs: Field[];\n }>`\n <${optgroupTag} label=\"${(x) => x.optgroup}\">\n ${repeat(\n (x) => x.xs,\n html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parentContext.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `,\n )}\n </${optgroupTag}>\n `;\n } else {\n return html<Field>`\n <${optionTag}\n value=\"${(x) => x.fieldId}\"\n ?selected=${(x, c) => x.fieldId === c.parent?.field?.fieldId}\n >\n ${(x) => x.label}\n </${optionTag}>\n `;\n }\n }}\n `,\n )}\n </${selectTag}>\n `;\n }}\n`"
|
|
1540
1556
|
}
|
|
1541
1557
|
],
|
|
1542
1558
|
"exports": [
|
|
@@ -1545,42 +1561,34 @@
|
|
|
1545
1561
|
"name": "template",
|
|
1546
1562
|
"declaration": {
|
|
1547
1563
|
"name": "template",
|
|
1548
|
-
"module": "src/main/rule-
|
|
1564
|
+
"module": "src/main/rule-field/rule-field.template.ts"
|
|
1549
1565
|
}
|
|
1550
1566
|
}
|
|
1551
1567
|
]
|
|
1552
1568
|
},
|
|
1553
1569
|
{
|
|
1554
1570
|
"kind": "javascript-module",
|
|
1555
|
-
"path": "src/main/rule-
|
|
1571
|
+
"path": "src/main/rule-field/rule-field.ts",
|
|
1556
1572
|
"declarations": [
|
|
1557
1573
|
{
|
|
1558
1574
|
"kind": "class",
|
|
1559
1575
|
"description": "",
|
|
1560
|
-
"name": "
|
|
1576
|
+
"name": "RuleField",
|
|
1561
1577
|
"members": [
|
|
1562
1578
|
{
|
|
1563
1579
|
"kind": "field",
|
|
1564
|
-
"name": "
|
|
1580
|
+
"name": "fields",
|
|
1565
1581
|
"type": {
|
|
1566
|
-
"text": "
|
|
1582
|
+
"text": "Field[]"
|
|
1567
1583
|
},
|
|
1568
1584
|
"default": "[]"
|
|
1569
1585
|
},
|
|
1570
|
-
{
|
|
1571
|
-
"kind": "field",
|
|
1572
|
-
"name": "operator",
|
|
1573
|
-
"type": {
|
|
1574
|
-
"text": "Operator"
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
1586
|
{
|
|
1578
1587
|
"kind": "field",
|
|
1579
1588
|
"name": "field",
|
|
1580
1589
|
"type": {
|
|
1581
|
-
"text": "Field
|
|
1582
|
-
}
|
|
1583
|
-
"default": "null"
|
|
1590
|
+
"text": "Field"
|
|
1591
|
+
}
|
|
1584
1592
|
},
|
|
1585
1593
|
{
|
|
1586
1594
|
"kind": "field",
|
|
@@ -1598,23 +1606,15 @@
|
|
|
1598
1606
|
},
|
|
1599
1607
|
{
|
|
1600
1608
|
"kind": "field",
|
|
1601
|
-
"name": "
|
|
1602
|
-
"type": {
|
|
1603
|
-
"text": "Operator[]"
|
|
1604
|
-
},
|
|
1605
|
-
"readonly": true
|
|
1606
|
-
},
|
|
1607
|
-
{
|
|
1608
|
-
"kind": "field",
|
|
1609
|
-
"name": "groupedOperators",
|
|
1609
|
+
"name": "groupedFieldss",
|
|
1610
1610
|
"type": {
|
|
1611
|
-
"text": "(
|
|
1611
|
+
"text": "(Field | { optgroup: string | null; xs: Field[] })[]"
|
|
1612
1612
|
},
|
|
1613
1613
|
"readonly": true
|
|
1614
1614
|
},
|
|
1615
1615
|
{
|
|
1616
1616
|
"kind": "method",
|
|
1617
|
-
"name": "
|
|
1617
|
+
"name": "dispatchFieldsChanged",
|
|
1618
1618
|
"parameters": [
|
|
1619
1619
|
{
|
|
1620
1620
|
"name": "event",
|
|
@@ -1636,25 +1636,25 @@
|
|
|
1636
1636
|
"name": "GenesisElement",
|
|
1637
1637
|
"package": "@genesislcap/web-core"
|
|
1638
1638
|
},
|
|
1639
|
-
"tagName": "expression-rule-
|
|
1639
|
+
"tagName": "expression-rule-field",
|
|
1640
1640
|
"customElement": true
|
|
1641
1641
|
}
|
|
1642
1642
|
],
|
|
1643
1643
|
"exports": [
|
|
1644
1644
|
{
|
|
1645
1645
|
"kind": "js",
|
|
1646
|
-
"name": "
|
|
1646
|
+
"name": "RuleField",
|
|
1647
1647
|
"declaration": {
|
|
1648
|
-
"name": "
|
|
1649
|
-
"module": "src/main/rule-
|
|
1648
|
+
"name": "RuleField",
|
|
1649
|
+
"module": "src/main/rule-field/rule-field.ts"
|
|
1650
1650
|
}
|
|
1651
1651
|
},
|
|
1652
1652
|
{
|
|
1653
1653
|
"kind": "custom-element-definition",
|
|
1654
|
-
"name": "expression-rule-
|
|
1654
|
+
"name": "expression-rule-field",
|
|
1655
1655
|
"declaration": {
|
|
1656
|
-
"name": "
|
|
1657
|
-
"module": "src/main/rule-
|
|
1656
|
+
"name": "RuleField",
|
|
1657
|
+
"module": "src/main/rule-field/rule-field.ts"
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
]
|
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.252.0",
|
|
4
|
+
"version": "14.252.1-alpha-37ebbf6.0",
|
|
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": "
|
|
65
|
+
"gitHead": "d961f6e647e22edea45ba96f12577436eb4bd016"
|
|
66
66
|
}
|