@genesislcap/pbc-notify-ui 14.494.0 → 14.495.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.
@@ -6560,156 +6560,6 @@
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
- },
6713
6563
  {
6714
6564
  "kind": "javascript-module",
6715
6565
  "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
@@ -6996,372 +6846,364 @@
6996
6846
  },
6997
6847
  {
6998
6848
  "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",
7011
- "declaration": {
7012
- "name": "ParameterBuilderStyles",
7013
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7014
- }
7015
- }
7016
- ]
7017
- },
7018
- {
7019
- "kind": "javascript-module",
7020
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
6849
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
7021
6850
  "declarations": [
7022
6851
  {
7023
6852
  "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`"
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`"
7026
6855
  }
7027
6856
  ],
7028
6857
  "exports": [
7029
6858
  {
7030
6859
  "kind": "js",
7031
- "name": "ParameterBuilderTemplate",
6860
+ "name": "RuleConditionGroupTemplate",
7032
6861
  "declaration": {
7033
- "name": "ParameterBuilderTemplate",
7034
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
6862
+ "name": "RuleConditionGroupTemplate",
6863
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
7035
6864
  }
7036
6865
  }
7037
6866
  ]
7038
6867
  },
7039
6868
  {
7040
6869
  "kind": "javascript-module",
7041
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
6870
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
7042
6871
  "declarations": [
7043
6872
  {
7044
6873
  "kind": "class",
7045
- "description": "Parameter builder for notification templates.",
7046
- "name": "ParameterBuilder",
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",
7047
6876
  "members": [
7048
6877
  {
7049
6878
  "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",
7065
- "type": {
7066
- "text": "string"
7067
- }
7068
- },
7069
- {
7070
- "kind": "field",
7071
- "name": "type",
6879
+ "name": "node",
7072
6880
  "type": {
7073
- "text": "string"
6881
+ "text": "ConditionGroupEntity"
7074
6882
  }
7075
6883
  },
7076
6884
  {
7077
6885
  "kind": "field",
7078
- "name": "sourceType",
6886
+ "name": "fields",
7079
6887
  "type": {
7080
- "text": "string"
7081
- }
6888
+ "text": "Field[]"
6889
+ },
6890
+ "default": "[]"
7082
6891
  },
7083
6892
  {
7084
6893
  "kind": "field",
7085
- "name": "sourceSelected",
6894
+ "name": "isFirst",
7086
6895
  "type": {
7087
- "text": "string"
7088
- }
6896
+ "text": "boolean"
6897
+ },
6898
+ "default": "false"
7089
6899
  },
7090
6900
  {
7091
6901
  "kind": "field",
7092
- "name": "sourceTyped",
6902
+ "name": "joinOperator",
7093
6903
  "type": {
7094
6904
  "text": "string"
7095
6905
  }
7096
6906
  },
7097
6907
  {
7098
6908
  "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",
6909
+ "name": "groupChildren",
7114
6910
  "type": {
7115
- "text": "array"
6911
+ "text": "ConditionNode[]"
7116
6912
  },
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"
6913
+ "default": "[]"
7130
6914
  },
7131
6915
  {
7132
6916
  "kind": "method",
7133
- "name": "labelChanged"
6917
+ "name": "nodeChanged"
7134
6918
  },
7135
6919
  {
7136
6920
  "kind": "method",
7137
- "name": "typeChanged"
6921
+ "name": "joinOperatorChanged"
7138
6922
  },
7139
6923
  {
7140
6924
  "kind": "method",
7141
- "name": "sourceTypeChanged"
6925
+ "name": "newCondition"
7142
6926
  },
7143
6927
  {
7144
6928
  "kind": "method",
7145
- "name": "sourceSelectedChanged"
6929
+ "name": "newGroup"
7146
6930
  },
7147
6931
  {
7148
6932
  "kind": "method",
7149
- "name": "sourceTypedChanged"
6933
+ "name": "editChild",
6934
+ "parameters": [
6935
+ {
6936
+ "name": "_editedChild",
6937
+ "type": {
6938
+ "text": "ConditionNode"
6939
+ }
6940
+ }
6941
+ ]
7150
6942
  },
7151
6943
  {
7152
6944
  "kind": "method",
7153
- "name": "genericChanged",
7154
- "privacy": "private",
6945
+ "name": "deleteChild",
7155
6946
  "parameters": [
7156
6947
  {
7157
- "name": "parameterAttribute"
7158
- },
7159
- {
7160
- "name": "value"
6948
+ "name": "deletedChild",
6949
+ "type": {
6950
+ "text": "ConditionNode"
6951
+ }
7161
6952
  }
7162
6953
  ]
6954
+ },
6955
+ {
6956
+ "kind": "method",
6957
+ "name": "deleteSelf"
7163
6958
  }
7164
6959
  ],
7165
6960
  "events": [
7166
6961
  {
7167
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
6962
+ "description": "Fired when this whole group should be removed",
7168
6963
  "name": "delete"
7169
6964
  },
7170
6965
  {
7171
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
6966
+ "description": "Fired when anything inside this group changes",
7172
6967
  "name": "edit"
7173
6968
  }
7174
6969
  ],
7175
- "attributes": [
7176
- {
7177
- "name": "parameter",
7178
- "type": {
7179
- "text": "ParameterBuilderEntity"
7180
- },
7181
- "fieldName": "parameter"
7182
- }
7183
- ],
7184
6970
  "superclass": {
7185
6971
  "name": "GenesisElement",
7186
6972
  "package": "@genesislcap/web-core"
7187
6973
  },
7188
- "tagName": "parameter-builder",
6974
+ "tagName": "rule-condition-group",
7189
6975
  "customElement": true
7190
6976
  }
7191
6977
  ],
7192
6978
  "exports": [
7193
6979
  {
7194
6980
  "kind": "js",
7195
- "name": "ParameterBuilder",
6981
+ "name": "RuleConditionGroup",
7196
6982
  "declaration": {
7197
- "name": "ParameterBuilder",
7198
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
6983
+ "name": "RuleConditionGroup",
6984
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7199
6985
  }
7200
6986
  },
7201
6987
  {
7202
6988
  "kind": "custom-element-definition",
7203
- "name": "parameter-builder",
6989
+ "name": "rule-condition-group",
7204
6990
  "declaration": {
7205
- "name": "ParameterBuilder",
7206
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
6991
+ "name": "RuleConditionGroup",
6992
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7207
6993
  }
7208
6994
  }
7209
6995
  ]
7210
6996
  },
7211
6997
  {
7212
6998
  "kind": "javascript-module",
7213
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
6999
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
7214
7000
  "declarations": [
7215
7001
  {
7216
7002
  "kind": "variable",
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`"
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`"
7219
7005
  }
7220
7006
  ],
7221
7007
  "exports": [
7222
7008
  {
7223
7009
  "kind": "js",
7224
- "name": "TemplateConditionGroupTemplate",
7010
+ "name": "ParameterBuilderStyles",
7225
7011
  "declaration": {
7226
- "name": "TemplateConditionGroupTemplate",
7227
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7012
+ "name": "ParameterBuilderStyles",
7013
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7228
7014
  }
7229
7015
  }
7230
7016
  ]
7231
7017
  },
7232
7018
  {
7233
7019
  "kind": "javascript-module",
7234
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-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",
7235
7042
  "declarations": [
7236
7043
  {
7237
7044
  "kind": "class",
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",
7045
+ "description": "Parameter builder for notification templates.",
7046
+ "name": "ParameterBuilder",
7240
7047
  "members": [
7241
7048
  {
7242
7049
  "kind": "field",
7243
- "name": "node",
7050
+ "name": "parameter",
7244
7051
  "type": {
7245
- "text": "ConditionGroupEntity"
7052
+ "text": "ParameterBuilderEntity"
7246
7053
  }
7247
7054
  },
7248
7055
  {
7249
7056
  "kind": "field",
7250
- "name": "fields",
7057
+ "name": "name",
7251
7058
  "type": {
7252
- "text": "Field[]"
7253
- },
7254
- "default": "[]"
7059
+ "text": "string"
7060
+ }
7061
+ },
7062
+ {
7063
+ "kind": "field",
7064
+ "name": "label",
7065
+ "type": {
7066
+ "text": "string"
7067
+ }
7068
+ },
7069
+ {
7070
+ "kind": "field",
7071
+ "name": "type",
7072
+ "type": {
7073
+ "text": "string"
7074
+ }
7075
+ },
7076
+ {
7077
+ "kind": "field",
7078
+ "name": "sourceType",
7079
+ "type": {
7080
+ "text": "string"
7081
+ }
7082
+ },
7083
+ {
7084
+ "kind": "field",
7085
+ "name": "sourceSelected",
7086
+ "type": {
7087
+ "text": "string"
7088
+ }
7255
7089
  },
7256
7090
  {
7257
7091
  "kind": "field",
7258
- "name": "parameters",
7092
+ "name": "sourceTyped",
7259
7093
  "type": {
7260
- "text": "Array<ParameterBuilderEntity>"
7261
- },
7262
- "default": "[]"
7094
+ "text": "string"
7095
+ }
7263
7096
  },
7264
7097
  {
7265
7098
  "kind": "field",
7266
- "name": "isFirst",
7099
+ "name": "sourceTextField",
7267
7100
  "type": {
7268
- "text": "boolean"
7269
- },
7270
- "default": "false"
7101
+ "text": "TextField"
7102
+ }
7271
7103
  },
7272
7104
  {
7273
7105
  "kind": "field",
7274
- "name": "joinOperator",
7106
+ "name": "sourceSelect",
7275
7107
  "type": {
7276
- "text": "string"
7108
+ "text": "Select"
7277
7109
  }
7278
7110
  },
7279
7111
  {
7280
7112
  "kind": "field",
7281
- "name": "groupChildren",
7113
+ "name": "reqRepItems",
7282
7114
  "type": {
7283
- "text": "ConditionNode[]"
7115
+ "text": "array"
7284
7116
  },
7285
- "default": "[]"
7117
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7286
7118
  },
7287
7119
  {
7288
7120
  "kind": "method",
7289
- "name": "nodeChanged"
7121
+ "name": "deleteParameter"
7290
7122
  },
7291
7123
  {
7292
7124
  "kind": "method",
7293
- "name": "joinOperatorChanged"
7125
+ "name": "parameterChanged"
7294
7126
  },
7295
7127
  {
7296
7128
  "kind": "method",
7297
- "name": "newCondition"
7129
+ "name": "nameChanged"
7298
7130
  },
7299
7131
  {
7300
7132
  "kind": "method",
7301
- "name": "newGroup"
7133
+ "name": "labelChanged"
7302
7134
  },
7303
7135
  {
7304
7136
  "kind": "method",
7305
- "name": "editChild",
7306
- "parameters": [
7307
- {
7308
- "name": "_editedChild",
7309
- "type": {
7310
- "text": "ConditionNode"
7311
- }
7312
- }
7313
- ]
7137
+ "name": "typeChanged"
7314
7138
  },
7315
7139
  {
7316
7140
  "kind": "method",
7317
- "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",
7318
7155
  "parameters": [
7319
7156
  {
7320
- "name": "deletedChild",
7321
- "type": {
7322
- "text": "ConditionNode"
7323
- }
7157
+ "name": "parameterAttribute"
7158
+ },
7159
+ {
7160
+ "name": "value"
7324
7161
  }
7325
7162
  ]
7326
- },
7327
- {
7328
- "kind": "method",
7329
- "name": "deleteSelf"
7330
7163
  }
7331
7164
  ],
7332
7165
  "events": [
7333
7166
  {
7334
- "description": "Fired when this whole group should be removed",
7167
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7335
7168
  "name": "delete"
7336
7169
  },
7337
7170
  {
7338
- "description": "Fired when anything inside this group changes",
7171
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7339
7172
  "name": "edit"
7340
7173
  }
7341
7174
  ],
7175
+ "attributes": [
7176
+ {
7177
+ "name": "parameter",
7178
+ "type": {
7179
+ "text": "ParameterBuilderEntity"
7180
+ },
7181
+ "fieldName": "parameter"
7182
+ }
7183
+ ],
7342
7184
  "superclass": {
7343
7185
  "name": "GenesisElement",
7344
7186
  "package": "@genesislcap/web-core"
7345
7187
  },
7346
- "tagName": "template-condition-group",
7188
+ "tagName": "parameter-builder",
7347
7189
  "customElement": true
7348
7190
  }
7349
7191
  ],
7350
7192
  "exports": [
7351
7193
  {
7352
7194
  "kind": "js",
7353
- "name": "TemplateConditionGroup",
7195
+ "name": "ParameterBuilder",
7354
7196
  "declaration": {
7355
- "name": "TemplateConditionGroup",
7356
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7197
+ "name": "ParameterBuilder",
7198
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7357
7199
  }
7358
7200
  },
7359
7201
  {
7360
7202
  "kind": "custom-element-definition",
7361
- "name": "template-condition-group",
7203
+ "name": "parameter-builder",
7362
7204
  "declaration": {
7363
- "name": "TemplateConditionGroup",
7364
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7205
+ "name": "ParameterBuilder",
7206
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7365
7207
  }
7366
7208
  }
7367
7209
  ]
@@ -7657,6 +7499,164 @@
7657
7499
  }
7658
7500
  }
7659
7501
  ]
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 RuleConditionGroup: React.ForwardRefExoticComponent<
229
- React.PropsWithChildren<
230
- Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
231
- HTMLWCProps & {
232
- onDelete?: (event: CustomEvent<unknown>) => void;
233
- onEdit?: (event: CustomEvent<unknown>) => void;
234
- }
235
- > & React.RefAttributes<RuleConditionGroupWC>
236
- >;
237
- export type RuleConditionGroupRef = RuleConditionGroupWC;
238
-
239
228
  export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
240
229
  React.PropsWithChildren<
241
230
  Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
@@ -247,6 +236,17 @@ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
247
236
  >;
248
237
  export type RuleConditionBuilderRef = RuleConditionBuilderWC;
249
238
 
239
+ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
240
+ React.PropsWithChildren<
241
+ Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
242
+ HTMLWCProps & {
243
+ onDelete?: (event: CustomEvent<unknown>) => void;
244
+ onEdit?: (event: CustomEvent<unknown>) => void;
245
+ }
246
+ > & React.RefAttributes<RuleConditionGroupWC>
247
+ >;
248
+ export type RuleConditionGroupRef = RuleConditionGroupWC;
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 TemplateConditionGroup: React.ForwardRefExoticComponent<
262
- React.PropsWithChildren<
263
- Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
264
- HTMLWCProps & {
265
- onDelete?: (event: CustomEvent<unknown>) => void;
266
- onEdit?: (event: CustomEvent<unknown>) => void;
267
- }
268
- > & React.RefAttributes<TemplateConditionGroupWC>
269
- >;
270
- export type TemplateConditionGroupRef = TemplateConditionGroupWC;
271
-
272
261
  export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
273
262
  React.PropsWithChildren<
274
263
  Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
@@ -280,4 +269,15 @@ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
280
269
  >;
281
270
  export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
282
271
 
272
+ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
273
+ React.PropsWithChildren<
274
+ Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
275
+ HTMLWCProps & {
276
+ onDelete?: (event: CustomEvent<unknown>) => void;
277
+ onEdit?: (event: CustomEvent<unknown>) => void;
278
+ }
279
+ > & React.RefAttributes<TemplateConditionGroupWC>
280
+ >;
281
+ export type TemplateConditionGroupRef = TemplateConditionGroupWC;
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 RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
185
+ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(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 RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
201
201
  el.removeEventListener('edit', _onEditFn);
202
202
  };
203
203
  }, []);
204
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
204
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
205
205
  });
206
206
 
207
- const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
207
+ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(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 RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(prop
223
223
  el.removeEventListener('edit', _onEditFn);
224
224
  };
225
225
  }, []);
226
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
226
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
251
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
267
267
  el.removeEventListener('edit', _onEditFn);
268
268
  };
269
269
  }, []);
270
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
270
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
271
271
  });
272
272
 
273
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
273
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
289
289
  el.removeEventListener('edit', _onEditFn);
290
290
  };
291
291
  }, []);
292
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
292
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...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
- RuleConditionGroup,
315
314
  RuleConditionBuilder,
315
+ RuleConditionGroup,
316
316
  ParameterBuilder,
317
- TemplateConditionGroup,
318
317
  TemplateConditionBuilder,
318
+ TemplateConditionGroup,
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 RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
183
+ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(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 RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
199
199
  el.removeEventListener('edit', _onEditFn);
200
200
  };
201
201
  }, []);
202
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
202
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
203
203
  });
204
204
 
205
- export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
205
+ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(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 RuleConditionBuilder = React.forwardRef(function RuleConditionBuild
221
221
  el.removeEventListener('edit', _onEditFn);
222
222
  };
223
223
  }, []);
224
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
224
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
249
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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 TemplateConditionGroup = React.forwardRef(function TemplateConditio
265
265
  el.removeEventListener('edit', _onEditFn);
266
266
  };
267
267
  }, []);
268
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
268
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
269
269
  });
270
270
 
271
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
271
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(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 TemplateConditionBuilder = React.forwardRef(function TemplateCondit
287
287
  el.removeEventListener('edit', _onEditFn);
288
288
  };
289
289
  }, []);
290
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
290
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...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": "14.494.0",
4
+ "version": "14.495.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": "14.494.0",
87
- "@genesislcap/eslint-config": "14.494.0",
88
- "@genesislcap/eslint-stylelint-builder": "14.494.0",
89
- "@genesislcap/foundation-testing": "14.494.0",
90
- "@genesislcap/genx": "14.494.0",
91
- "@genesislcap/prettier-config": "14.494.0",
92
- "@genesislcap/stylelint-config": "14.494.0",
93
- "@genesislcap/vite-builder": "14.494.0",
94
- "@genesislcap/webpack-builder": "14.494.0",
86
+ "@genesislcap/design-system-configurator": "14.495.0",
87
+ "@genesislcap/eslint-config": "14.495.0",
88
+ "@genesislcap/eslint-stylelint-builder": "14.495.0",
89
+ "@genesislcap/foundation-testing": "14.495.0",
90
+ "@genesislcap/genx": "14.495.0",
91
+ "@genesislcap/prettier-config": "14.495.0",
92
+ "@genesislcap/stylelint-config": "14.495.0",
93
+ "@genesislcap/vite-builder": "14.495.0",
94
+ "@genesislcap/webpack-builder": "14.495.0",
95
95
  "dayjs": "^1.11.7"
96
96
  },
97
97
  "dependencies": {
98
- "@genesislcap/foundation-comms": "14.494.0",
99
- "@genesislcap/foundation-criteria": "14.494.0",
100
- "@genesislcap/foundation-entity-management": "14.494.0",
101
- "@genesislcap/foundation-forms": "14.494.0",
102
- "@genesislcap/foundation-layout": "14.494.0",
103
- "@genesislcap/foundation-logger": "14.494.0",
104
- "@genesislcap/foundation-notifications": "14.494.0",
105
- "@genesislcap/foundation-ui": "14.494.0",
106
- "@genesislcap/foundation-utils": "14.494.0",
107
- "@genesislcap/rapid-design-system": "14.494.0",
108
- "@genesislcap/rapid-grid-pro": "14.494.0",
109
- "@genesislcap/web-core": "14.494.0",
98
+ "@genesislcap/foundation-comms": "14.495.0",
99
+ "@genesislcap/foundation-criteria": "14.495.0",
100
+ "@genesislcap/foundation-entity-management": "14.495.0",
101
+ "@genesislcap/foundation-forms": "14.495.0",
102
+ "@genesislcap/foundation-layout": "14.495.0",
103
+ "@genesislcap/foundation-logger": "14.495.0",
104
+ "@genesislcap/foundation-notifications": "14.495.0",
105
+ "@genesislcap/foundation-ui": "14.495.0",
106
+ "@genesislcap/foundation-utils": "14.495.0",
107
+ "@genesislcap/rapid-design-system": "14.495.0",
108
+ "@genesislcap/rapid-grid-pro": "14.495.0",
109
+ "@genesislcap/web-core": "14.495.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": "df845b67dcc681aa3775bdc87b9d91b404791868"
117
+ "gitHead": "24d26a75271717d40c0b6168b983bd8536a3db7f"
118
118
  }