@genesislcap/pbc-notify-ui 15.0.0-FUI-2567.2 → 15.0.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.
@@ -399,6 +399,27 @@
399
399
  }
400
400
  ]
401
401
  },
402
+ {
403
+ "kind": "javascript-module",
404
+ "path": "src/styles/scrollbar.styles.ts",
405
+ "declarations": [
406
+ {
407
+ "kind": "variable",
408
+ "name": "scrollbarStyles",
409
+ "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
410
+ }
411
+ ],
412
+ "exports": [
413
+ {
414
+ "kind": "js",
415
+ "name": "scrollbarStyles",
416
+ "declaration": {
417
+ "name": "scrollbarStyles",
418
+ "module": "src/styles/scrollbar.styles.ts"
419
+ }
420
+ }
421
+ ]
422
+ },
402
423
  {
403
424
  "kind": "javascript-module",
404
425
  "path": "src/utils/eventDetail.ts",
@@ -720,27 +741,6 @@
720
741
  }
721
742
  ]
722
743
  },
723
- {
724
- "kind": "javascript-module",
725
- "path": "src/styles/scrollbar.styles.ts",
726
- "declarations": [
727
- {
728
- "kind": "variable",
729
- "name": "scrollbarStyles",
730
- "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
731
- }
732
- ],
733
- "exports": [
734
- {
735
- "kind": "js",
736
- "name": "scrollbarStyles",
737
- "declaration": {
738
- "name": "scrollbarStyles",
739
- "module": "src/styles/scrollbar.styles.ts"
740
- }
741
- }
742
- ]
743
- },
744
744
  {
745
745
  "kind": "javascript-module",
746
746
  "path": "src/components/foundation-inbox/inbox.styles.ts",
@@ -6560,6 +6560,156 @@
6560
6560
  }
6561
6561
  ]
6562
6562
  },
6563
+ {
6564
+ "kind": "javascript-module",
6565
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
6566
+ "declarations": [
6567
+ {
6568
+ "kind": "variable",
6569
+ "name": "RuleConditionGroupTemplate",
6570
+ "default": "html<RuleConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, RuleConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <rule-condition-group\n :fields=${(x, c) => c.parent.fields}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <rule-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
6571
+ }
6572
+ ],
6573
+ "exports": [
6574
+ {
6575
+ "kind": "js",
6576
+ "name": "RuleConditionGroupTemplate",
6577
+ "declaration": {
6578
+ "name": "RuleConditionGroupTemplate",
6579
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
6580
+ }
6581
+ }
6582
+ ]
6583
+ },
6584
+ {
6585
+ "kind": "javascript-module",
6586
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
6587
+ "declarations": [
6588
+ {
6589
+ "kind": "class",
6590
+ "description": "Parenthesized group of conditions/nested groups for notification rule\ncriteria, joined to the previous sibling via AND/OR like a single\ncondition row - but bracketing its own children off from the rest of the\nlist, so e.g. \"(A && B) || C\" can be expressed without the AND silently\nspanning more than intended.",
6591
+ "name": "RuleConditionGroup",
6592
+ "members": [
6593
+ {
6594
+ "kind": "field",
6595
+ "name": "node",
6596
+ "type": {
6597
+ "text": "ConditionGroupEntity"
6598
+ }
6599
+ },
6600
+ {
6601
+ "kind": "field",
6602
+ "name": "fields",
6603
+ "type": {
6604
+ "text": "Field[]"
6605
+ },
6606
+ "default": "[]"
6607
+ },
6608
+ {
6609
+ "kind": "field",
6610
+ "name": "isFirst",
6611
+ "type": {
6612
+ "text": "boolean"
6613
+ },
6614
+ "default": "false"
6615
+ },
6616
+ {
6617
+ "kind": "field",
6618
+ "name": "joinOperator",
6619
+ "type": {
6620
+ "text": "string"
6621
+ }
6622
+ },
6623
+ {
6624
+ "kind": "field",
6625
+ "name": "groupChildren",
6626
+ "type": {
6627
+ "text": "ConditionNode[]"
6628
+ },
6629
+ "default": "[]"
6630
+ },
6631
+ {
6632
+ "kind": "method",
6633
+ "name": "nodeChanged"
6634
+ },
6635
+ {
6636
+ "kind": "method",
6637
+ "name": "joinOperatorChanged"
6638
+ },
6639
+ {
6640
+ "kind": "method",
6641
+ "name": "newCondition"
6642
+ },
6643
+ {
6644
+ "kind": "method",
6645
+ "name": "newGroup"
6646
+ },
6647
+ {
6648
+ "kind": "method",
6649
+ "name": "editChild",
6650
+ "parameters": [
6651
+ {
6652
+ "name": "_editedChild",
6653
+ "type": {
6654
+ "text": "ConditionNode"
6655
+ }
6656
+ }
6657
+ ]
6658
+ },
6659
+ {
6660
+ "kind": "method",
6661
+ "name": "deleteChild",
6662
+ "parameters": [
6663
+ {
6664
+ "name": "deletedChild",
6665
+ "type": {
6666
+ "text": "ConditionNode"
6667
+ }
6668
+ }
6669
+ ]
6670
+ },
6671
+ {
6672
+ "kind": "method",
6673
+ "name": "deleteSelf"
6674
+ }
6675
+ ],
6676
+ "events": [
6677
+ {
6678
+ "description": "Fired when this whole group should be removed",
6679
+ "name": "delete"
6680
+ },
6681
+ {
6682
+ "description": "Fired when anything inside this group changes",
6683
+ "name": "edit"
6684
+ }
6685
+ ],
6686
+ "superclass": {
6687
+ "name": "GenesisElement",
6688
+ "package": "@genesislcap/web-core"
6689
+ },
6690
+ "tagName": "rule-condition-group",
6691
+ "customElement": true
6692
+ }
6693
+ ],
6694
+ "exports": [
6695
+ {
6696
+ "kind": "js",
6697
+ "name": "RuleConditionGroup",
6698
+ "declaration": {
6699
+ "name": "RuleConditionGroup",
6700
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6701
+ }
6702
+ },
6703
+ {
6704
+ "kind": "custom-element-definition",
6705
+ "name": "rule-condition-group",
6706
+ "declaration": {
6707
+ "name": "RuleConditionGroup",
6708
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6709
+ }
6710
+ }
6711
+ ]
6712
+ },
6563
6713
  {
6564
6714
  "kind": "javascript-module",
6565
6715
  "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
@@ -6846,364 +6996,372 @@
6846
6996
  },
6847
6997
  {
6848
6998
  "kind": "javascript-module",
6849
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
6999
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
6850
7000
  "declarations": [
6851
7001
  {
6852
7002
  "kind": "variable",
6853
- "name": "RuleConditionGroupTemplate",
6854
- "default": "html<RuleConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, RuleConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <rule-condition-group\n :fields=${(x, c) => c.parent.fields}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <rule-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
7003
+ "name": "ParameterBuilderStyles",
7004
+ "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
6855
7005
  }
6856
7006
  ],
6857
7007
  "exports": [
6858
7008
  {
6859
7009
  "kind": "js",
6860
- "name": "RuleConditionGroupTemplate",
7010
+ "name": "ParameterBuilderStyles",
6861
7011
  "declaration": {
6862
- "name": "RuleConditionGroupTemplate",
6863
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
7012
+ "name": "ParameterBuilderStyles",
7013
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
6864
7014
  }
6865
7015
  }
6866
7016
  ]
6867
7017
  },
6868
7018
  {
6869
7019
  "kind": "javascript-module",
6870
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
7020
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
7021
+ "declarations": [
7022
+ {
7023
+ "kind": "variable",
7024
+ "name": "ParameterBuilderTemplate",
7025
+ "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
7026
+ }
7027
+ ],
7028
+ "exports": [
7029
+ {
7030
+ "kind": "js",
7031
+ "name": "ParameterBuilderTemplate",
7032
+ "declaration": {
7033
+ "name": "ParameterBuilderTemplate",
7034
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
7035
+ }
7036
+ }
7037
+ ]
7038
+ },
7039
+ {
7040
+ "kind": "javascript-module",
7041
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
6871
7042
  "declarations": [
6872
7043
  {
6873
7044
  "kind": "class",
6874
- "description": "Parenthesized group of conditions/nested groups for notification rule\ncriteria, joined to the previous sibling via AND/OR like a single\ncondition row - but bracketing its own children off from the rest of the\nlist, so e.g. \"(A && B) || C\" can be expressed without the AND silently\nspanning more than intended.",
6875
- "name": "RuleConditionGroup",
7045
+ "description": "Parameter builder for notification templates.",
7046
+ "name": "ParameterBuilder",
6876
7047
  "members": [
6877
7048
  {
6878
7049
  "kind": "field",
6879
- "name": "node",
7050
+ "name": "parameter",
6880
7051
  "type": {
6881
- "text": "ConditionGroupEntity"
7052
+ "text": "ParameterBuilderEntity"
6882
7053
  }
6883
7054
  },
6884
7055
  {
6885
7056
  "kind": "field",
6886
- "name": "fields",
7057
+ "name": "name",
6887
7058
  "type": {
6888
- "text": "Field[]"
6889
- },
6890
- "default": "[]"
7059
+ "text": "string"
7060
+ }
6891
7061
  },
6892
7062
  {
6893
7063
  "kind": "field",
6894
- "name": "isFirst",
7064
+ "name": "label",
6895
7065
  "type": {
6896
- "text": "boolean"
6897
- },
6898
- "default": "false"
7066
+ "text": "string"
7067
+ }
6899
7068
  },
6900
7069
  {
6901
7070
  "kind": "field",
6902
- "name": "joinOperator",
7071
+ "name": "type",
6903
7072
  "type": {
6904
7073
  "text": "string"
6905
7074
  }
6906
7075
  },
6907
7076
  {
6908
7077
  "kind": "field",
6909
- "name": "groupChildren",
7078
+ "name": "sourceType",
6910
7079
  "type": {
6911
- "text": "ConditionNode[]"
6912
- },
6913
- "default": "[]"
7080
+ "text": "string"
7081
+ }
7082
+ },
7083
+ {
7084
+ "kind": "field",
7085
+ "name": "sourceSelected",
7086
+ "type": {
7087
+ "text": "string"
7088
+ }
7089
+ },
7090
+ {
7091
+ "kind": "field",
7092
+ "name": "sourceTyped",
7093
+ "type": {
7094
+ "text": "string"
7095
+ }
7096
+ },
7097
+ {
7098
+ "kind": "field",
7099
+ "name": "sourceTextField",
7100
+ "type": {
7101
+ "text": "TextField"
7102
+ }
7103
+ },
7104
+ {
7105
+ "kind": "field",
7106
+ "name": "sourceSelect",
7107
+ "type": {
7108
+ "text": "Select"
7109
+ }
7110
+ },
7111
+ {
7112
+ "kind": "field",
7113
+ "name": "reqRepItems",
7114
+ "type": {
7115
+ "text": "array"
7116
+ },
7117
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
6914
7118
  },
6915
7119
  {
6916
7120
  "kind": "method",
6917
- "name": "nodeChanged"
7121
+ "name": "deleteParameter"
6918
7122
  },
6919
7123
  {
6920
7124
  "kind": "method",
6921
- "name": "joinOperatorChanged"
7125
+ "name": "parameterChanged"
6922
7126
  },
6923
7127
  {
6924
7128
  "kind": "method",
6925
- "name": "newCondition"
7129
+ "name": "nameChanged"
6926
7130
  },
6927
7131
  {
6928
7132
  "kind": "method",
6929
- "name": "newGroup"
7133
+ "name": "labelChanged"
6930
7134
  },
6931
7135
  {
6932
7136
  "kind": "method",
6933
- "name": "editChild",
6934
- "parameters": [
6935
- {
6936
- "name": "_editedChild",
6937
- "type": {
6938
- "text": "ConditionNode"
6939
- }
6940
- }
6941
- ]
7137
+ "name": "typeChanged"
6942
7138
  },
6943
7139
  {
6944
7140
  "kind": "method",
6945
- "name": "deleteChild",
7141
+ "name": "sourceTypeChanged"
7142
+ },
7143
+ {
7144
+ "kind": "method",
7145
+ "name": "sourceSelectedChanged"
7146
+ },
7147
+ {
7148
+ "kind": "method",
7149
+ "name": "sourceTypedChanged"
7150
+ },
7151
+ {
7152
+ "kind": "method",
7153
+ "name": "genericChanged",
7154
+ "privacy": "private",
6946
7155
  "parameters": [
6947
7156
  {
6948
- "name": "deletedChild",
6949
- "type": {
6950
- "text": "ConditionNode"
6951
- }
7157
+ "name": "parameterAttribute"
7158
+ },
7159
+ {
7160
+ "name": "value"
6952
7161
  }
6953
7162
  ]
6954
- },
6955
- {
6956
- "kind": "method",
6957
- "name": "deleteSelf"
6958
7163
  }
6959
7164
  ],
6960
7165
  "events": [
6961
7166
  {
6962
- "description": "Fired when this whole group should be removed",
7167
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
6963
7168
  "name": "delete"
6964
7169
  },
6965
7170
  {
6966
- "description": "Fired when anything inside this group changes",
7171
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
6967
7172
  "name": "edit"
6968
7173
  }
6969
7174
  ],
7175
+ "attributes": [
7176
+ {
7177
+ "name": "parameter",
7178
+ "type": {
7179
+ "text": "ParameterBuilderEntity"
7180
+ },
7181
+ "fieldName": "parameter"
7182
+ }
7183
+ ],
6970
7184
  "superclass": {
6971
7185
  "name": "GenesisElement",
6972
7186
  "package": "@genesislcap/web-core"
6973
7187
  },
6974
- "tagName": "rule-condition-group",
7188
+ "tagName": "parameter-builder",
6975
7189
  "customElement": true
6976
7190
  }
6977
7191
  ],
6978
7192
  "exports": [
6979
7193
  {
6980
7194
  "kind": "js",
6981
- "name": "RuleConditionGroup",
7195
+ "name": "ParameterBuilder",
6982
7196
  "declaration": {
6983
- "name": "RuleConditionGroup",
6984
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7197
+ "name": "ParameterBuilder",
7198
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
6985
7199
  }
6986
7200
  },
6987
7201
  {
6988
7202
  "kind": "custom-element-definition",
6989
- "name": "rule-condition-group",
6990
- "declaration": {
6991
- "name": "RuleConditionGroup",
6992
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6993
- }
6994
- }
6995
- ]
6996
- },
6997
- {
6998
- "kind": "javascript-module",
6999
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
7000
- "declarations": [
7001
- {
7002
- "kind": "variable",
7003
- "name": "ParameterBuilderStyles",
7004
- "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
7005
- }
7006
- ],
7007
- "exports": [
7008
- {
7009
- "kind": "js",
7010
- "name": "ParameterBuilderStyles",
7203
+ "name": "parameter-builder",
7011
7204
  "declaration": {
7012
- "name": "ParameterBuilderStyles",
7013
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7205
+ "name": "ParameterBuilder",
7206
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7014
7207
  }
7015
7208
  }
7016
7209
  ]
7017
7210
  },
7018
7211
  {
7019
7212
  "kind": "javascript-module",
7020
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
7213
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7021
7214
  "declarations": [
7022
7215
  {
7023
7216
  "kind": "variable",
7024
- "name": "ParameterBuilderTemplate",
7025
- "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
7217
+ "name": "TemplateConditionGroupTemplate",
7218
+ "default": "html<TemplateConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, TemplateConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <template-condition-group\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <template-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
7026
7219
  }
7027
7220
  ],
7028
7221
  "exports": [
7029
7222
  {
7030
7223
  "kind": "js",
7031
- "name": "ParameterBuilderTemplate",
7224
+ "name": "TemplateConditionGroupTemplate",
7032
7225
  "declaration": {
7033
- "name": "ParameterBuilderTemplate",
7034
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
7226
+ "name": "TemplateConditionGroupTemplate",
7227
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7035
7228
  }
7036
7229
  }
7037
7230
  ]
7038
7231
  },
7039
7232
  {
7040
7233
  "kind": "javascript-module",
7041
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
7234
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7042
7235
  "declarations": [
7043
7236
  {
7044
7237
  "kind": "class",
7045
- "description": "Parameter builder for notification templates.",
7046
- "name": "ParameterBuilder",
7238
+ "description": "Parenthesized group of conditions/nested groups for notification template\ncriteria - see rule-condition-group for the rationale. Also forwards\n:parameters down to nested template-condition-builder rows so parameter\nbinding (USER_ENTRY) keeps working inside a group.",
7239
+ "name": "TemplateConditionGroup",
7047
7240
  "members": [
7048
7241
  {
7049
7242
  "kind": "field",
7050
- "name": "parameter",
7051
- "type": {
7052
- "text": "ParameterBuilderEntity"
7053
- }
7054
- },
7055
- {
7056
- "kind": "field",
7057
- "name": "name",
7058
- "type": {
7059
- "text": "string"
7060
- }
7061
- },
7062
- {
7063
- "kind": "field",
7064
- "name": "label",
7243
+ "name": "node",
7065
7244
  "type": {
7066
- "text": "string"
7245
+ "text": "ConditionGroupEntity"
7067
7246
  }
7068
7247
  },
7069
7248
  {
7070
7249
  "kind": "field",
7071
- "name": "type",
7250
+ "name": "fields",
7072
7251
  "type": {
7073
- "text": "string"
7074
- }
7252
+ "text": "Field[]"
7253
+ },
7254
+ "default": "[]"
7075
7255
  },
7076
7256
  {
7077
7257
  "kind": "field",
7078
- "name": "sourceType",
7258
+ "name": "parameters",
7079
7259
  "type": {
7080
- "text": "string"
7081
- }
7260
+ "text": "Array<ParameterBuilderEntity>"
7261
+ },
7262
+ "default": "[]"
7082
7263
  },
7083
7264
  {
7084
7265
  "kind": "field",
7085
- "name": "sourceSelected",
7266
+ "name": "isFirst",
7086
7267
  "type": {
7087
- "text": "string"
7088
- }
7268
+ "text": "boolean"
7269
+ },
7270
+ "default": "false"
7089
7271
  },
7090
7272
  {
7091
7273
  "kind": "field",
7092
- "name": "sourceTyped",
7274
+ "name": "joinOperator",
7093
7275
  "type": {
7094
7276
  "text": "string"
7095
7277
  }
7096
7278
  },
7097
7279
  {
7098
7280
  "kind": "field",
7099
- "name": "sourceTextField",
7100
- "type": {
7101
- "text": "TextField"
7102
- }
7103
- },
7104
- {
7105
- "kind": "field",
7106
- "name": "sourceSelect",
7107
- "type": {
7108
- "text": "Select"
7109
- }
7110
- },
7111
- {
7112
- "kind": "field",
7113
- "name": "reqRepItems",
7281
+ "name": "groupChildren",
7114
7282
  "type": {
7115
- "text": "array"
7283
+ "text": "ConditionNode[]"
7116
7284
  },
7117
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7118
- },
7119
- {
7120
- "kind": "method",
7121
- "name": "deleteParameter"
7122
- },
7123
- {
7124
- "kind": "method",
7125
- "name": "parameterChanged"
7126
- },
7127
- {
7128
- "kind": "method",
7129
- "name": "nameChanged"
7285
+ "default": "[]"
7130
7286
  },
7131
7287
  {
7132
7288
  "kind": "method",
7133
- "name": "labelChanged"
7289
+ "name": "nodeChanged"
7134
7290
  },
7135
7291
  {
7136
7292
  "kind": "method",
7137
- "name": "typeChanged"
7293
+ "name": "joinOperatorChanged"
7138
7294
  },
7139
7295
  {
7140
7296
  "kind": "method",
7141
- "name": "sourceTypeChanged"
7297
+ "name": "newCondition"
7142
7298
  },
7143
7299
  {
7144
7300
  "kind": "method",
7145
- "name": "sourceSelectedChanged"
7301
+ "name": "newGroup"
7146
7302
  },
7147
7303
  {
7148
7304
  "kind": "method",
7149
- "name": "sourceTypedChanged"
7305
+ "name": "editChild",
7306
+ "parameters": [
7307
+ {
7308
+ "name": "_editedChild",
7309
+ "type": {
7310
+ "text": "ConditionNode"
7311
+ }
7312
+ }
7313
+ ]
7150
7314
  },
7151
7315
  {
7152
7316
  "kind": "method",
7153
- "name": "genericChanged",
7154
- "privacy": "private",
7317
+ "name": "deleteChild",
7155
7318
  "parameters": [
7156
7319
  {
7157
- "name": "parameterAttribute"
7158
- },
7159
- {
7160
- "name": "value"
7320
+ "name": "deletedChild",
7321
+ "type": {
7322
+ "text": "ConditionNode"
7323
+ }
7161
7324
  }
7162
7325
  ]
7326
+ },
7327
+ {
7328
+ "kind": "method",
7329
+ "name": "deleteSelf"
7163
7330
  }
7164
7331
  ],
7165
7332
  "events": [
7166
7333
  {
7167
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7334
+ "description": "Fired when this whole group should be removed",
7168
7335
  "name": "delete"
7169
7336
  },
7170
7337
  {
7171
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7338
+ "description": "Fired when anything inside this group changes",
7172
7339
  "name": "edit"
7173
7340
  }
7174
7341
  ],
7175
- "attributes": [
7176
- {
7177
- "name": "parameter",
7178
- "type": {
7179
- "text": "ParameterBuilderEntity"
7180
- },
7181
- "fieldName": "parameter"
7182
- }
7183
- ],
7184
7342
  "superclass": {
7185
7343
  "name": "GenesisElement",
7186
7344
  "package": "@genesislcap/web-core"
7187
7345
  },
7188
- "tagName": "parameter-builder",
7346
+ "tagName": "template-condition-group",
7189
7347
  "customElement": true
7190
7348
  }
7191
7349
  ],
7192
7350
  "exports": [
7193
7351
  {
7194
7352
  "kind": "js",
7195
- "name": "ParameterBuilder",
7353
+ "name": "TemplateConditionGroup",
7196
7354
  "declaration": {
7197
- "name": "ParameterBuilder",
7198
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7355
+ "name": "TemplateConditionGroup",
7356
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7199
7357
  }
7200
7358
  },
7201
7359
  {
7202
7360
  "kind": "custom-element-definition",
7203
- "name": "parameter-builder",
7361
+ "name": "template-condition-group",
7204
7362
  "declaration": {
7205
- "name": "ParameterBuilder",
7206
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7363
+ "name": "TemplateConditionGroup",
7364
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7207
7365
  }
7208
7366
  }
7209
7367
  ]
@@ -7499,164 +7657,6 @@
7499
7657
  }
7500
7658
  }
7501
7659
  ]
7502
- },
7503
- {
7504
- "kind": "javascript-module",
7505
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7506
- "declarations": [
7507
- {
7508
- "kind": "variable",
7509
- "name": "TemplateConditionGroupTemplate",
7510
- "default": "html<TemplateConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, TemplateConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <template-condition-group\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <template-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
7511
- }
7512
- ],
7513
- "exports": [
7514
- {
7515
- "kind": "js",
7516
- "name": "TemplateConditionGroupTemplate",
7517
- "declaration": {
7518
- "name": "TemplateConditionGroupTemplate",
7519
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7520
- }
7521
- }
7522
- ]
7523
- },
7524
- {
7525
- "kind": "javascript-module",
7526
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7527
- "declarations": [
7528
- {
7529
- "kind": "class",
7530
- "description": "Parenthesized group of conditions/nested groups for notification template\ncriteria - see rule-condition-group for the rationale. Also forwards\n:parameters down to nested template-condition-builder rows so parameter\nbinding (USER_ENTRY) keeps working inside a group.",
7531
- "name": "TemplateConditionGroup",
7532
- "members": [
7533
- {
7534
- "kind": "field",
7535
- "name": "node",
7536
- "type": {
7537
- "text": "ConditionGroupEntity"
7538
- }
7539
- },
7540
- {
7541
- "kind": "field",
7542
- "name": "fields",
7543
- "type": {
7544
- "text": "Field[]"
7545
- },
7546
- "default": "[]"
7547
- },
7548
- {
7549
- "kind": "field",
7550
- "name": "parameters",
7551
- "type": {
7552
- "text": "Array<ParameterBuilderEntity>"
7553
- },
7554
- "default": "[]"
7555
- },
7556
- {
7557
- "kind": "field",
7558
- "name": "isFirst",
7559
- "type": {
7560
- "text": "boolean"
7561
- },
7562
- "default": "false"
7563
- },
7564
- {
7565
- "kind": "field",
7566
- "name": "joinOperator",
7567
- "type": {
7568
- "text": "string"
7569
- }
7570
- },
7571
- {
7572
- "kind": "field",
7573
- "name": "groupChildren",
7574
- "type": {
7575
- "text": "ConditionNode[]"
7576
- },
7577
- "default": "[]"
7578
- },
7579
- {
7580
- "kind": "method",
7581
- "name": "nodeChanged"
7582
- },
7583
- {
7584
- "kind": "method",
7585
- "name": "joinOperatorChanged"
7586
- },
7587
- {
7588
- "kind": "method",
7589
- "name": "newCondition"
7590
- },
7591
- {
7592
- "kind": "method",
7593
- "name": "newGroup"
7594
- },
7595
- {
7596
- "kind": "method",
7597
- "name": "editChild",
7598
- "parameters": [
7599
- {
7600
- "name": "_editedChild",
7601
- "type": {
7602
- "text": "ConditionNode"
7603
- }
7604
- }
7605
- ]
7606
- },
7607
- {
7608
- "kind": "method",
7609
- "name": "deleteChild",
7610
- "parameters": [
7611
- {
7612
- "name": "deletedChild",
7613
- "type": {
7614
- "text": "ConditionNode"
7615
- }
7616
- }
7617
- ]
7618
- },
7619
- {
7620
- "kind": "method",
7621
- "name": "deleteSelf"
7622
- }
7623
- ],
7624
- "events": [
7625
- {
7626
- "description": "Fired when this whole group should be removed",
7627
- "name": "delete"
7628
- },
7629
- {
7630
- "description": "Fired when anything inside this group changes",
7631
- "name": "edit"
7632
- }
7633
- ],
7634
- "superclass": {
7635
- "name": "GenesisElement",
7636
- "package": "@genesislcap/web-core"
7637
- },
7638
- "tagName": "template-condition-group",
7639
- "customElement": true
7640
- }
7641
- ],
7642
- "exports": [
7643
- {
7644
- "kind": "js",
7645
- "name": "TemplateConditionGroup",
7646
- "declaration": {
7647
- "name": "TemplateConditionGroup",
7648
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7649
- }
7650
- },
7651
- {
7652
- "kind": "custom-element-definition",
7653
- "name": "template-condition-group",
7654
- "declaration": {
7655
- "name": "TemplateConditionGroup",
7656
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7657
- }
7658
- }
7659
- ]
7660
7660
  }
7661
7661
  ]
7662
7662
  }
@@ -225,17 +225,6 @@ export declare const TemplateDialog: React.ForwardRefExoticComponent<
225
225
  >;
226
226
  export type TemplateDialogRef = TemplateDialogWC;
227
227
 
228
- export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
229
- React.PropsWithChildren<
230
- Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
231
- HTMLWCProps & {
232
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
233
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
234
- }
235
- > & React.RefAttributes<RuleConditionBuilderWC>
236
- >;
237
- export type RuleConditionBuilderRef = RuleConditionBuilderWC;
238
-
239
228
  export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
240
229
  React.PropsWithChildren<
241
230
  Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
@@ -247,6 +236,17 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
247
236
  >;
248
237
  export type RuleConditionGroupRef = RuleConditionGroupWC;
249
238
 
239
+ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
240
+ React.PropsWithChildren<
241
+ Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
242
+ HTMLWCProps & {
243
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
244
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
245
+ }
246
+ > & React.RefAttributes<RuleConditionBuilderWC>
247
+ >;
248
+ export type RuleConditionBuilderRef = RuleConditionBuilderWC;
249
+
250
250
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
251
251
  React.PropsWithChildren<
252
252
  Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
@@ -258,17 +258,6 @@ export declare const ParameterBuilder: React.ForwardRefExoticComponent<
258
258
  >;
259
259
  export type ParameterBuilderRef = ParameterBuilderWC;
260
260
 
261
- export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
262
- React.PropsWithChildren<
263
- Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
264
- HTMLWCProps & {
265
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
266
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
267
- }
268
- > & React.RefAttributes<TemplateConditionBuilderWC>
269
- >;
270
- export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
271
-
272
261
  export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
273
262
  React.PropsWithChildren<
274
263
  Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
@@ -280,4 +269,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
280
269
  >;
281
270
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
282
271
 
272
+ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
273
+ React.PropsWithChildren<
274
+ Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
275
+ HTMLWCProps & {
276
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
277
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
278
+ }
279
+ > & React.RefAttributes<TemplateConditionBuilderWC>
280
+ >;
281
+ export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
282
+
283
283
  export {};
package/dist/react.cjs CHANGED
@@ -182,7 +182,7 @@ const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
182
182
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
183
183
  });
184
184
 
185
- const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
185
+ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
186
186
  const { onDelete, onEdit, children, ...rest } = props;
187
187
  const _innerRef = React.useRef(null);
188
188
  const _onDeleteRef = React.useRef(onDelete);
@@ -201,10 +201,10 @@ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(prop
201
201
  el.removeEventListener('edit', _onEditFn);
202
202
  };
203
203
  }, []);
204
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
204
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
205
205
  });
206
206
 
207
- const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
207
+ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
208
208
  const { onDelete, onEdit, children, ...rest } = props;
209
209
  const _innerRef = React.useRef(null);
210
210
  const _onDeleteRef = React.useRef(onDelete);
@@ -223,7 +223,7 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
223
223
  el.removeEventListener('edit', _onEditFn);
224
224
  };
225
225
  }, []);
226
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
226
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
227
227
  });
228
228
 
229
229
  const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
@@ -248,7 +248,7 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
248
248
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
249
249
  });
250
250
 
251
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
251
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
252
252
  const { onDelete, onEdit, children, ...rest } = props;
253
253
  const _innerRef = React.useRef(null);
254
254
  const _onDeleteRef = React.useRef(onDelete);
@@ -267,10 +267,10 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
267
267
  el.removeEventListener('edit', _onEditFn);
268
268
  };
269
269
  }, []);
270
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
270
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
271
271
  });
272
272
 
273
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
273
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
274
274
  const { onDelete, onEdit, children, ...rest } = props;
275
275
  const _innerRef = React.useRef(null);
276
276
  const _onDeleteRef = React.useRef(onDelete);
@@ -289,7 +289,7 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
289
289
  el.removeEventListener('edit', _onEditFn);
290
290
  };
291
291
  }, []);
292
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
292
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
293
293
  });
294
294
 
295
295
  module.exports = {
@@ -311,9 +311,9 @@ module.exports = {
311
311
  ScreenRouteManagement,
312
312
  RuleDialog,
313
313
  TemplateDialog,
314
- RuleConditionBuilder,
315
314
  RuleConditionGroup,
315
+ RuleConditionBuilder,
316
316
  ParameterBuilder,
317
- TemplateConditionBuilder,
318
317
  TemplateConditionGroup,
318
+ TemplateConditionBuilder,
319
319
  };
package/dist/react.mjs CHANGED
@@ -180,7 +180,7 @@ export const TemplateDialog = React.forwardRef(function TemplateDialog(props, re
180
180
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
181
181
  });
182
182
 
183
- export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
183
+ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
184
184
  const { onDelete, onEdit, children, ...rest } = props;
185
185
  const _innerRef = React.useRef(null);
186
186
  const _onDeleteRef = React.useRef(onDelete);
@@ -199,10 +199,10 @@ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuild
199
199
  el.removeEventListener('edit', _onEditFn);
200
200
  };
201
201
  }, []);
202
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
202
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
203
203
  });
204
204
 
205
- export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
205
+ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
206
206
  const { onDelete, onEdit, children, ...rest } = props;
207
207
  const _innerRef = React.useRef(null);
208
208
  const _onDeleteRef = React.useRef(onDelete);
@@ -221,7 +221,7 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
221
221
  el.removeEventListener('edit', _onEditFn);
222
222
  };
223
223
  }, []);
224
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
224
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
225
225
  });
226
226
 
227
227
  export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
@@ -246,7 +246,7 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
246
246
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
247
247
  });
248
248
 
249
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
249
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
250
250
  const { onDelete, onEdit, children, ...rest } = props;
251
251
  const _innerRef = React.useRef(null);
252
252
  const _onDeleteRef = React.useRef(onDelete);
@@ -265,10 +265,10 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
265
265
  el.removeEventListener('edit', _onEditFn);
266
266
  };
267
267
  }, []);
268
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
268
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
269
269
  });
270
270
 
271
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
271
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
272
272
  const { onDelete, onEdit, children, ...rest } = props;
273
273
  const _innerRef = React.useRef(null);
274
274
  const _onDeleteRef = React.useRef(onDelete);
@@ -287,5 +287,5 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
287
287
  el.removeEventListener('edit', _onEditFn);
288
288
  };
289
289
  }, []);
290
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
290
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
291
291
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "15.0.0-FUI-2567.2",
4
+ "version": "15.0.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -83,30 +83,30 @@
83
83
  "@commitlint/format": "^19.0.3",
84
84
  "@genesiscommunitysuccess/cep-fast-plugin": "5.0.3",
85
85
  "@genesiscommunitysuccess/custom-elements-lsp": "5.0.3",
86
- "@genesislcap/design-system-configurator": "15.0.0-FUI-2567.2",
87
- "@genesislcap/eslint-config": "15.0.0-FUI-2567.2",
88
- "@genesislcap/eslint-stylelint-builder": "15.0.0-FUI-2567.2",
89
- "@genesislcap/foundation-testing": "15.0.0-FUI-2567.2",
90
- "@genesislcap/genx": "15.0.0-FUI-2567.2",
91
- "@genesislcap/prettier-config": "15.0.0-FUI-2567.2",
92
- "@genesislcap/stylelint-config": "15.0.0-FUI-2567.2",
93
- "@genesislcap/vite-builder": "15.0.0-FUI-2567.2",
94
- "@genesislcap/webpack-builder": "15.0.0-FUI-2567.2",
86
+ "@genesislcap/design-system-configurator": "15.0.0",
87
+ "@genesislcap/eslint-config": "15.0.0",
88
+ "@genesislcap/eslint-stylelint-builder": "15.0.0",
89
+ "@genesislcap/foundation-testing": "15.0.0",
90
+ "@genesislcap/genx": "15.0.0",
91
+ "@genesislcap/prettier-config": "15.0.0",
92
+ "@genesislcap/stylelint-config": "15.0.0",
93
+ "@genesislcap/vite-builder": "15.0.0",
94
+ "@genesislcap/webpack-builder": "15.0.0",
95
95
  "dayjs": "^1.11.7"
96
96
  },
97
97
  "dependencies": {
98
- "@genesislcap/foundation-comms": "15.0.0-FUI-2567.2",
99
- "@genesislcap/foundation-criteria": "15.0.0-FUI-2567.2",
100
- "@genesislcap/foundation-entity-management": "15.0.0-FUI-2567.2",
101
- "@genesislcap/foundation-forms": "15.0.0-FUI-2567.2",
102
- "@genesislcap/foundation-layout": "15.0.0-FUI-2567.2",
103
- "@genesislcap/foundation-logger": "15.0.0-FUI-2567.2",
104
- "@genesislcap/foundation-notifications": "15.0.0-FUI-2567.2",
105
- "@genesislcap/foundation-ui": "15.0.0-FUI-2567.2",
106
- "@genesislcap/foundation-utils": "15.0.0-FUI-2567.2",
107
- "@genesislcap/rapid-design-system": "15.0.0-FUI-2567.2",
108
- "@genesislcap/rapid-grid-pro": "15.0.0-FUI-2567.2",
109
- "@genesislcap/web-core": "15.0.0-FUI-2567.2",
98
+ "@genesislcap/foundation-comms": "15.0.0",
99
+ "@genesislcap/foundation-criteria": "15.0.0",
100
+ "@genesislcap/foundation-entity-management": "15.0.0",
101
+ "@genesislcap/foundation-forms": "15.0.0",
102
+ "@genesislcap/foundation-layout": "15.0.0",
103
+ "@genesislcap/foundation-logger": "15.0.0",
104
+ "@genesislcap/foundation-notifications": "15.0.0",
105
+ "@genesislcap/foundation-ui": "15.0.0",
106
+ "@genesislcap/foundation-utils": "15.0.0",
107
+ "@genesislcap/rapid-design-system": "15.0.0",
108
+ "@genesislcap/rapid-grid-pro": "15.0.0",
109
+ "@genesislcap/web-core": "15.0.0",
110
110
  "lodash.debounce": "^4.0.8",
111
111
  "rxjs": "^7.5.4"
112
112
  },
@@ -114,5 +114,5 @@
114
114
  "access": "public"
115
115
  },
116
116
  "customElements": "dist/custom-elements.json",
117
- "gitHead": "2f496cecd7d9286db8969194da4e1aed73877ca1"
117
+ "gitHead": "035852ede9f26ea4434f1b3dfaff98db41490246"
118
118
  }