@genesislcap/expression-builder 14.251.5 → 14.252.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.
@@ -659,41 +659,6 @@
659
659
  }
660
660
  ]
661
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
662
  {
698
663
  "kind": "javascript-module",
699
664
  "path": "src/utils/data-model.ts",
@@ -945,118 +910,39 @@
945
910
  },
946
911
  {
947
912
  "kind": "javascript-module",
948
- "path": "src/main/rule-field/rule-field.template.ts",
949
- "declarations": [
950
- {
951
- "kind": "variable",
952
- "name": "template",
953
- "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`"
954
- }
955
- ],
956
- "exports": [
957
- {
958
- "kind": "js",
959
- "name": "template",
960
- "declaration": {
961
- "name": "template",
962
- "module": "src/main/rule-field/rule-field.template.ts"
963
- }
964
- }
965
- ]
966
- },
967
- {
968
- "kind": "javascript-module",
969
- "path": "src/main/rule-field/rule-field.ts",
970
- "declarations": [
971
- {
972
- "kind": "class",
973
- "description": "",
974
- "name": "RuleField",
975
- "members": [
976
- {
977
- "kind": "field",
978
- "name": "fields",
979
- "type": {
980
- "text": "Field[]"
981
- },
982
- "default": "[]"
983
- },
984
- {
985
- "kind": "field",
986
- "name": "field",
987
- "type": {
988
- "text": "Field"
989
- }
990
- },
991
- {
992
- "kind": "field",
993
- "name": "config",
994
- "type": {
995
- "text": "Config"
996
- }
997
- },
998
- {
999
- "kind": "field",
1000
- "name": "styles",
1001
- "type": {
1002
- "text": "Styles | undefined"
1003
- }
1004
- },
1005
- {
1006
- "kind": "field",
1007
- "name": "groupedFieldss",
1008
- "type": {
1009
- "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1010
- },
1011
- "readonly": true
1012
- },
1013
- {
1014
- "kind": "method",
1015
- "name": "dispatchFieldsChanged",
1016
- "parameters": [
1017
- {
1018
- "name": "event",
1019
- "type": {
1020
- "text": "Event"
1021
- }
1022
- }
1023
- ]
1024
- }
1025
- ],
1026
- "events": [
1027
- {
1028
- "type": {
1029
- "text": "CustomEvent"
1030
- }
1031
- }
1032
- ],
1033
- "superclass": {
1034
- "name": "GenesisElement",
1035
- "package": "@genesislcap/web-core"
1036
- },
1037
- "tagName": "expression-rule-field",
1038
- "customElement": true
1039
- }
1040
- ],
913
+ "path": "src/types/index.ts",
914
+ "declarations": [],
1041
915
  "exports": [
1042
916
  {
1043
917
  "kind": "js",
1044
- "name": "RuleField",
918
+ "name": "*",
1045
919
  "declaration": {
1046
- "name": "RuleField",
1047
- "module": "src/main/rule-field/rule-field.ts"
920
+ "name": "*",
921
+ "package": "./public.types"
1048
922
  }
1049
923
  },
1050
924
  {
1051
- "kind": "custom-element-definition",
1052
- "name": "expression-rule-field",
925
+ "kind": "js",
926
+ "name": "*",
1053
927
  "declaration": {
1054
- "name": "RuleField",
1055
- "module": "src/main/rule-field/rule-field.ts"
928
+ "name": "*",
929
+ "package": "./private.types"
1056
930
  }
1057
931
  }
1058
932
  ]
1059
933
  },
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
+ },
1060
946
  {
1061
947
  "kind": "javascript-module",
1062
948
  "path": "src/main/expression-group/expression-group.styles.ts",
@@ -1529,6 +1415,120 @@
1529
1415
  }
1530
1416
  ]
1531
1417
  },
1418
+ {
1419
+ "kind": "javascript-module",
1420
+ "path": "src/main/rule-field/rule-field.template.ts",
1421
+ "declarations": [
1422
+ {
1423
+ "kind": "variable",
1424
+ "name": "template",
1425
+ "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`"
1426
+ }
1427
+ ],
1428
+ "exports": [
1429
+ {
1430
+ "kind": "js",
1431
+ "name": "template",
1432
+ "declaration": {
1433
+ "name": "template",
1434
+ "module": "src/main/rule-field/rule-field.template.ts"
1435
+ }
1436
+ }
1437
+ ]
1438
+ },
1439
+ {
1440
+ "kind": "javascript-module",
1441
+ "path": "src/main/rule-field/rule-field.ts",
1442
+ "declarations": [
1443
+ {
1444
+ "kind": "class",
1445
+ "description": "",
1446
+ "name": "RuleField",
1447
+ "members": [
1448
+ {
1449
+ "kind": "field",
1450
+ "name": "fields",
1451
+ "type": {
1452
+ "text": "Field[]"
1453
+ },
1454
+ "default": "[]"
1455
+ },
1456
+ {
1457
+ "kind": "field",
1458
+ "name": "field",
1459
+ "type": {
1460
+ "text": "Field"
1461
+ }
1462
+ },
1463
+ {
1464
+ "kind": "field",
1465
+ "name": "config",
1466
+ "type": {
1467
+ "text": "Config"
1468
+ }
1469
+ },
1470
+ {
1471
+ "kind": "field",
1472
+ "name": "styles",
1473
+ "type": {
1474
+ "text": "Styles | undefined"
1475
+ }
1476
+ },
1477
+ {
1478
+ "kind": "field",
1479
+ "name": "groupedFieldss",
1480
+ "type": {
1481
+ "text": "(Field | { optgroup: string | null; xs: Field[] })[]"
1482
+ },
1483
+ "readonly": true
1484
+ },
1485
+ {
1486
+ "kind": "method",
1487
+ "name": "dispatchFieldsChanged",
1488
+ "parameters": [
1489
+ {
1490
+ "name": "event",
1491
+ "type": {
1492
+ "text": "Event"
1493
+ }
1494
+ }
1495
+ ]
1496
+ }
1497
+ ],
1498
+ "events": [
1499
+ {
1500
+ "type": {
1501
+ "text": "CustomEvent"
1502
+ }
1503
+ }
1504
+ ],
1505
+ "superclass": {
1506
+ "name": "GenesisElement",
1507
+ "package": "@genesislcap/web-core"
1508
+ },
1509
+ "tagName": "expression-rule-field",
1510
+ "customElement": true
1511
+ }
1512
+ ],
1513
+ "exports": [
1514
+ {
1515
+ "kind": "js",
1516
+ "name": "RuleField",
1517
+ "declaration": {
1518
+ "name": "RuleField",
1519
+ "module": "src/main/rule-field/rule-field.ts"
1520
+ }
1521
+ },
1522
+ {
1523
+ "kind": "custom-element-definition",
1524
+ "name": "expression-rule-field",
1525
+ "declaration": {
1526
+ "name": "RuleField",
1527
+ "module": "src/main/rule-field/rule-field.ts"
1528
+ }
1529
+ }
1530
+ ]
1531
+ },
1532
1532
  {
1533
1533
  "kind": "javascript-module",
1534
1534
  "path": "src/main/rule-operator/rule-operator.template.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.251.5",
4
+ "version": "14.252.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": "a18270e8f4e91032bd689577f13379ba29158751"
65
+ "gitHead": "892ad62fbba0bcd170dc61bc12c08064775257f3"
66
66
  }