@genesislcap/pbc-notify-ui 14.488.2 → 14.489.0-canary.FUI-2574-1

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,27 +399,6 @@
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
- },
423
402
  {
424
403
  "kind": "javascript-module",
425
404
  "path": "src/utils/eventDetail.ts",
@@ -741,6 +720,27 @@
741
720
  }
742
721
  ]
743
722
  },
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,46 +6996,54 @@
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/template-condition-builder/template-condition-builder.template.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": "TemplateConditionBuilderTemplate",
7004
+ "default": "html<TemplateConditionBuilder>`\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-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\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`"
6855
7005
  }
6856
7006
  ],
6857
7007
  "exports": [
6858
7008
  {
6859
7009
  "kind": "js",
6860
- "name": "RuleConditionGroupTemplate",
7010
+ "name": "TemplateConditionBuilderTemplate",
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": "TemplateConditionBuilderTemplate",
7013
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.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/template-condition-builder/template-condition-builder.ts",
6871
7021
  "declarations": [
6872
7022
  {
6873
7023
  "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",
7024
+ "description": "Condition builder for template notification rules.",
7025
+ "name": "TemplateConditionBuilder",
6876
7026
  "members": [
6877
7027
  {
6878
7028
  "kind": "field",
6879
- "name": "node",
7029
+ "name": "condition",
6880
7030
  "type": {
6881
- "text": "ConditionGroupEntity"
7031
+ "text": "ConditionBuilderEntity"
6882
7032
  }
6883
7033
  },
7034
+ {
7035
+ "kind": "field",
7036
+ "name": "parameters",
7037
+ "type": {
7038
+ "text": "Array<ParameterBuilderEntity>"
7039
+ },
7040
+ "default": "[]"
7041
+ },
6884
7042
  {
6885
7043
  "kind": "field",
6886
7044
  "name": "fields",
6887
7045
  "type": {
6888
- "text": "Field[]"
7046
+ "text": "Array<string>"
6889
7047
  },
6890
7048
  "default": "[]"
6891
7049
  },
@@ -6906,90 +7064,224 @@
6906
7064
  },
6907
7065
  {
6908
7066
  "kind": "field",
6909
- "name": "groupChildren",
7067
+ "name": "leftValue",
6910
7068
  "type": {
6911
- "text": "ConditionNode[]"
7069
+ "text": "any"
6912
7070
  },
6913
- "default": "[]"
7071
+ "default": "null"
6914
7072
  },
6915
7073
  {
6916
- "kind": "method",
6917
- "name": "nodeChanged"
7074
+ "kind": "field",
7075
+ "name": "leftValueItems",
7076
+ "type": {
7077
+ "text": "Array<any>"
7078
+ },
7079
+ "default": "[]"
6918
7080
  },
6919
7081
  {
6920
- "kind": "method",
6921
- "name": "joinOperatorChanged"
7082
+ "kind": "field",
7083
+ "name": "logicalOperator",
7084
+ "type": {
7085
+ "text": "string"
7086
+ },
7087
+ "default": "null"
6922
7088
  },
6923
7089
  {
6924
- "kind": "method",
6925
- "name": "newCondition"
7090
+ "kind": "field",
7091
+ "name": "rightCriteria",
7092
+ "type": {
7093
+ "text": "string"
7094
+ }
6926
7095
  },
6927
7096
  {
6928
- "kind": "method",
6929
- "name": "newGroup"
6930
- },
7097
+ "kind": "field",
7098
+ "name": "rightValueText",
7099
+ "type": {
7100
+ "text": "string"
7101
+ },
7102
+ "default": "null"
7103
+ },
7104
+ {
7105
+ "kind": "field",
7106
+ "name": "rightValueSelect",
7107
+ "type": {
7108
+ "text": "string"
7109
+ },
7110
+ "default": "null"
7111
+ },
7112
+ {
7113
+ "kind": "field",
7114
+ "name": "rightValueItems",
7115
+ "type": {
7116
+ "text": "Array<any>"
7117
+ },
7118
+ "default": "[]"
7119
+ },
7120
+ {
7121
+ "kind": "field",
7122
+ "name": "rightValueMultiSelect",
7123
+ "type": {
7124
+ "text": "string[]"
7125
+ },
7126
+ "default": "[]"
7127
+ },
6931
7128
  {
6932
7129
  "kind": "method",
6933
- "name": "editChild",
6934
- "parameters": [
6935
- {
6936
- "name": "_editedChild",
6937
- "type": {
6938
- "text": "ConditionNode"
6939
- }
7130
+ "name": "deleteCondition"
7131
+ },
7132
+ {
7133
+ "kind": "method",
7134
+ "name": "conditionChanged"
7135
+ },
7136
+ {
7137
+ "kind": "method",
7138
+ "name": "joinOperatorChanged"
7139
+ },
7140
+ {
7141
+ "kind": "method",
7142
+ "name": "parametersChanged"
7143
+ },
7144
+ {
7145
+ "kind": "method",
7146
+ "name": "getMatchingParameter",
7147
+ "privacy": "private",
7148
+ "return": {
7149
+ "type": {
7150
+ "text": "ParameterBuilderEntity | undefined"
6940
7151
  }
6941
- ]
7152
+ }
6942
7153
  },
6943
7154
  {
6944
7155
  "kind": "method",
6945
- "name": "deleteChild",
6946
- "parameters": [
6947
- {
6948
- "name": "deletedChild",
6949
- "type": {
6950
- "text": "ConditionNode"
6951
- }
7156
+ "name": "syncParameterBinding",
7157
+ "privacy": "private",
7158
+ "return": {
7159
+ "type": {
7160
+ "text": "boolean"
6952
7161
  }
6953
- ]
7162
+ }
6954
7163
  },
6955
7164
  {
6956
7165
  "kind": "method",
6957
- "name": "deleteSelf"
7166
+ "name": "resetToValueEditor",
7167
+ "privacy": "private"
7168
+ },
7169
+ {
7170
+ "kind": "method",
7171
+ "name": "fieldsChanged"
7172
+ },
7173
+ {
7174
+ "kind": "method",
7175
+ "name": "logicalOperatorChanged"
7176
+ },
7177
+ {
7178
+ "kind": "method",
7179
+ "name": "assignLeftValue",
7180
+ "privacy": "private"
7181
+ },
7182
+ {
7183
+ "kind": "method",
7184
+ "name": "leftValueChanged"
7185
+ },
7186
+ {
7187
+ "kind": "method",
7188
+ "name": "assignRightValue",
7189
+ "privacy": "private"
7190
+ },
7191
+ {
7192
+ "kind": "method",
7193
+ "name": "rightCriteriaChanged"
7194
+ },
7195
+ {
7196
+ "kind": "method",
7197
+ "name": "clearRightValueText",
7198
+ "privacy": "private"
7199
+ },
7200
+ {
7201
+ "kind": "method",
7202
+ "name": "clearRightValueSelect",
7203
+ "privacy": "private"
7204
+ },
7205
+ {
7206
+ "kind": "method",
7207
+ "name": "rightValueTextChanged"
7208
+ },
7209
+ {
7210
+ "kind": "method",
7211
+ "name": "rightValueSelectChanged"
7212
+ },
7213
+ {
7214
+ "kind": "method",
7215
+ "name": "rightValueMultiSelectChanged"
7216
+ },
7217
+ {
7218
+ "kind": "method",
7219
+ "name": "getEnumValues",
7220
+ "return": {
7221
+ "type": {
7222
+ "text": "string[]"
7223
+ }
7224
+ }
6958
7225
  }
6959
7226
  ],
6960
7227
  "events": [
6961
7228
  {
6962
- "description": "Fired when this whole group should be removed",
7229
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
6963
7230
  "name": "delete"
6964
7231
  },
6965
7232
  {
6966
- "description": "Fired when anything inside this group changes",
7233
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
6967
7234
  "name": "edit"
6968
7235
  }
6969
7236
  ],
7237
+ "attributes": [
7238
+ {
7239
+ "name": "condition",
7240
+ "type": {
7241
+ "text": "ConditionBuilderEntity"
7242
+ },
7243
+ "fieldName": "condition"
7244
+ },
7245
+ {
7246
+ "name": "parameters",
7247
+ "type": {
7248
+ "text": "Array<ParameterBuilderEntity>"
7249
+ },
7250
+ "default": "[]",
7251
+ "fieldName": "parameters"
7252
+ },
7253
+ {
7254
+ "name": "fields",
7255
+ "type": {
7256
+ "text": "Array<string>"
7257
+ },
7258
+ "default": "[]",
7259
+ "fieldName": "fields"
7260
+ }
7261
+ ],
6970
7262
  "superclass": {
6971
7263
  "name": "GenesisElement",
6972
7264
  "package": "@genesislcap/web-core"
6973
7265
  },
6974
- "tagName": "rule-condition-group",
7266
+ "tagName": "template-condition-builder",
6975
7267
  "customElement": true
6976
7268
  }
6977
7269
  ],
6978
7270
  "exports": [
6979
7271
  {
6980
7272
  "kind": "js",
6981
- "name": "RuleConditionGroup",
7273
+ "name": "TemplateConditionBuilder",
6982
7274
  "declaration": {
6983
- "name": "RuleConditionGroup",
6984
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7275
+ "name": "TemplateConditionBuilder",
7276
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
6985
7277
  }
6986
7278
  },
6987
7279
  {
6988
7280
  "kind": "custom-element-definition",
6989
- "name": "rule-condition-group",
7281
+ "name": "template-condition-builder",
6990
7282
  "declaration": {
6991
- "name": "RuleConditionGroup",
6992
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7283
+ "name": "TemplateConditionBuilder",
7284
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
6993
7285
  }
6994
7286
  }
6995
7287
  ]
@@ -7365,298 +7657,6 @@
7365
7657
  }
7366
7658
  }
7367
7659
  ]
7368
- },
7369
- {
7370
- "kind": "javascript-module",
7371
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
7372
- "declarations": [
7373
- {
7374
- "kind": "variable",
7375
- "name": "TemplateConditionBuilderTemplate",
7376
- "default": "html<TemplateConditionBuilder>`\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-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\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`"
7377
- }
7378
- ],
7379
- "exports": [
7380
- {
7381
- "kind": "js",
7382
- "name": "TemplateConditionBuilderTemplate",
7383
- "declaration": {
7384
- "name": "TemplateConditionBuilderTemplate",
7385
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
7386
- }
7387
- }
7388
- ]
7389
- },
7390
- {
7391
- "kind": "javascript-module",
7392
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
7393
- "declarations": [
7394
- {
7395
- "kind": "class",
7396
- "description": "Condition builder for template notification rules.",
7397
- "name": "TemplateConditionBuilder",
7398
- "members": [
7399
- {
7400
- "kind": "field",
7401
- "name": "condition",
7402
- "type": {
7403
- "text": "ConditionBuilderEntity"
7404
- }
7405
- },
7406
- {
7407
- "kind": "field",
7408
- "name": "parameters",
7409
- "type": {
7410
- "text": "Array<ParameterBuilderEntity>"
7411
- },
7412
- "default": "[]"
7413
- },
7414
- {
7415
- "kind": "field",
7416
- "name": "fields",
7417
- "type": {
7418
- "text": "Array<string>"
7419
- },
7420
- "default": "[]"
7421
- },
7422
- {
7423
- "kind": "field",
7424
- "name": "isFirst",
7425
- "type": {
7426
- "text": "boolean"
7427
- },
7428
- "default": "false"
7429
- },
7430
- {
7431
- "kind": "field",
7432
- "name": "joinOperator",
7433
- "type": {
7434
- "text": "string"
7435
- }
7436
- },
7437
- {
7438
- "kind": "field",
7439
- "name": "leftValue",
7440
- "type": {
7441
- "text": "any"
7442
- },
7443
- "default": "null"
7444
- },
7445
- {
7446
- "kind": "field",
7447
- "name": "leftValueItems",
7448
- "type": {
7449
- "text": "Array<any>"
7450
- },
7451
- "default": "[]"
7452
- },
7453
- {
7454
- "kind": "field",
7455
- "name": "logicalOperator",
7456
- "type": {
7457
- "text": "string"
7458
- },
7459
- "default": "null"
7460
- },
7461
- {
7462
- "kind": "field",
7463
- "name": "rightCriteria",
7464
- "type": {
7465
- "text": "string"
7466
- }
7467
- },
7468
- {
7469
- "kind": "field",
7470
- "name": "rightValueText",
7471
- "type": {
7472
- "text": "string"
7473
- },
7474
- "default": "null"
7475
- },
7476
- {
7477
- "kind": "field",
7478
- "name": "rightValueSelect",
7479
- "type": {
7480
- "text": "string"
7481
- },
7482
- "default": "null"
7483
- },
7484
- {
7485
- "kind": "field",
7486
- "name": "rightValueItems",
7487
- "type": {
7488
- "text": "Array<any>"
7489
- },
7490
- "default": "[]"
7491
- },
7492
- {
7493
- "kind": "field",
7494
- "name": "rightValueMultiSelect",
7495
- "type": {
7496
- "text": "string[]"
7497
- },
7498
- "default": "[]"
7499
- },
7500
- {
7501
- "kind": "method",
7502
- "name": "deleteCondition"
7503
- },
7504
- {
7505
- "kind": "method",
7506
- "name": "conditionChanged"
7507
- },
7508
- {
7509
- "kind": "method",
7510
- "name": "joinOperatorChanged"
7511
- },
7512
- {
7513
- "kind": "method",
7514
- "name": "parametersChanged"
7515
- },
7516
- {
7517
- "kind": "method",
7518
- "name": "getMatchingParameter",
7519
- "privacy": "private",
7520
- "return": {
7521
- "type": {
7522
- "text": "ParameterBuilderEntity | undefined"
7523
- }
7524
- }
7525
- },
7526
- {
7527
- "kind": "method",
7528
- "name": "syncParameterBinding",
7529
- "privacy": "private",
7530
- "return": {
7531
- "type": {
7532
- "text": "boolean"
7533
- }
7534
- }
7535
- },
7536
- {
7537
- "kind": "method",
7538
- "name": "resetToValueEditor",
7539
- "privacy": "private"
7540
- },
7541
- {
7542
- "kind": "method",
7543
- "name": "fieldsChanged"
7544
- },
7545
- {
7546
- "kind": "method",
7547
- "name": "logicalOperatorChanged"
7548
- },
7549
- {
7550
- "kind": "method",
7551
- "name": "assignLeftValue",
7552
- "privacy": "private"
7553
- },
7554
- {
7555
- "kind": "method",
7556
- "name": "leftValueChanged"
7557
- },
7558
- {
7559
- "kind": "method",
7560
- "name": "assignRightValue",
7561
- "privacy": "private"
7562
- },
7563
- {
7564
- "kind": "method",
7565
- "name": "rightCriteriaChanged"
7566
- },
7567
- {
7568
- "kind": "method",
7569
- "name": "clearRightValueText",
7570
- "privacy": "private"
7571
- },
7572
- {
7573
- "kind": "method",
7574
- "name": "clearRightValueSelect",
7575
- "privacy": "private"
7576
- },
7577
- {
7578
- "kind": "method",
7579
- "name": "rightValueTextChanged"
7580
- },
7581
- {
7582
- "kind": "method",
7583
- "name": "rightValueSelectChanged"
7584
- },
7585
- {
7586
- "kind": "method",
7587
- "name": "rightValueMultiSelectChanged"
7588
- },
7589
- {
7590
- "kind": "method",
7591
- "name": "getEnumValues",
7592
- "return": {
7593
- "type": {
7594
- "text": "string[]"
7595
- }
7596
- }
7597
- }
7598
- ],
7599
- "events": [
7600
- {
7601
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
7602
- "name": "delete"
7603
- },
7604
- {
7605
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
7606
- "name": "edit"
7607
- }
7608
- ],
7609
- "attributes": [
7610
- {
7611
- "name": "condition",
7612
- "type": {
7613
- "text": "ConditionBuilderEntity"
7614
- },
7615
- "fieldName": "condition"
7616
- },
7617
- {
7618
- "name": "parameters",
7619
- "type": {
7620
- "text": "Array<ParameterBuilderEntity>"
7621
- },
7622
- "default": "[]",
7623
- "fieldName": "parameters"
7624
- },
7625
- {
7626
- "name": "fields",
7627
- "type": {
7628
- "text": "Array<string>"
7629
- },
7630
- "default": "[]",
7631
- "fieldName": "fields"
7632
- }
7633
- ],
7634
- "superclass": {
7635
- "name": "GenesisElement",
7636
- "package": "@genesislcap/web-core"
7637
- },
7638
- "tagName": "template-condition-builder",
7639
- "customElement": true
7640
- }
7641
- ],
7642
- "exports": [
7643
- {
7644
- "kind": "js",
7645
- "name": "TemplateConditionBuilder",
7646
- "declaration": {
7647
- "name": "TemplateConditionBuilder",
7648
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7649
- }
7650
- },
7651
- {
7652
- "kind": "custom-element-definition",
7653
- "name": "template-condition-builder",
7654
- "declaration": {
7655
- "name": "TemplateConditionBuilder",
7656
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7657
- }
7658
- }
7659
- ]
7660
7660
  }
7661
7661
  ]
7662
7662
  }
@@ -225,6 +225,17 @@ 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
+
228
239
  export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
229
240
  React.PropsWithChildren<
230
241
  Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
@@ -236,16 +247,16 @@ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
236
247
  >;
237
248
  export type RuleConditionBuilderRef = RuleConditionBuilderWC;
238
249
 
239
- export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
250
+ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
240
251
  React.PropsWithChildren<
241
- Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
252
+ Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
242
253
  HTMLWCProps & {
243
- onDelete?: (event: CustomEvent<unknown>) => void;
244
- onEdit?: (event: CustomEvent<unknown>) => void;
254
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
255
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
245
256
  }
246
- > & React.RefAttributes<RuleConditionGroupWC>
257
+ > & React.RefAttributes<TemplateConditionBuilderWC>
247
258
  >;
248
- export type RuleConditionGroupRef = RuleConditionGroupWC;
259
+ export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
249
260
 
250
261
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
251
262
  React.PropsWithChildren<
@@ -269,15 +280,4 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
269
280
  >;
270
281
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
271
282
 
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,10 +223,10 @@ 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
- const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
229
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
230
230
  const { onDelete, onEdit, children, ...rest } = props;
231
231
  const _innerRef = React.useRef(null);
232
232
  const _onDeleteRef = React.useRef(onDelete);
@@ -245,10 +245,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
245
245
  el.removeEventListener('edit', _onEditFn);
246
246
  };
247
247
  }, []);
248
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
248
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
249
249
  });
250
250
 
251
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
251
+ const ParameterBuilder = React.forwardRef(function ParameterBuilder(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(ParameterBuilderWC) ?? 'parameter-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
- RuleConditionBuilder,
315
314
  RuleConditionGroup,
315
+ RuleConditionBuilder,
316
+ TemplateConditionBuilder,
316
317
  ParameterBuilder,
317
318
  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,10 +221,10 @@ 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
- export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
227
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
228
228
  const { onDelete, onEdit, children, ...rest } = props;
229
229
  const _innerRef = React.useRef(null);
230
230
  const _onDeleteRef = React.useRef(onDelete);
@@ -243,10 +243,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
243
243
  el.removeEventListener('edit', _onEditFn);
244
244
  };
245
245
  }, []);
246
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
246
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
247
247
  });
248
248
 
249
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
249
+ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(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(ParameterBuilderWC) ?? 'parameter-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.488.2",
4
+ "version": "14.489.0-canary.FUI-2574-1",
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.488.2",
87
- "@genesislcap/eslint-config": "14.488.2",
88
- "@genesislcap/eslint-stylelint-builder": "14.488.2",
89
- "@genesislcap/foundation-testing": "14.488.2",
90
- "@genesislcap/genx": "14.488.2",
91
- "@genesislcap/prettier-config": "14.488.2",
92
- "@genesislcap/stylelint-config": "14.488.2",
93
- "@genesislcap/vite-builder": "14.488.2",
94
- "@genesislcap/webpack-builder": "14.488.2",
86
+ "@genesislcap/design-system-configurator": "14.489.0-canary.FUI-2574-1",
87
+ "@genesislcap/eslint-config": "14.489.0-canary.FUI-2574-1",
88
+ "@genesislcap/eslint-stylelint-builder": "14.489.0-canary.FUI-2574-1",
89
+ "@genesislcap/foundation-testing": "14.489.0-canary.FUI-2574-1",
90
+ "@genesislcap/genx": "14.489.0-canary.FUI-2574-1",
91
+ "@genesislcap/prettier-config": "14.489.0-canary.FUI-2574-1",
92
+ "@genesislcap/stylelint-config": "14.489.0-canary.FUI-2574-1",
93
+ "@genesislcap/vite-builder": "14.489.0-canary.FUI-2574-1",
94
+ "@genesislcap/webpack-builder": "14.489.0-canary.FUI-2574-1",
95
95
  "dayjs": "^1.11.7"
96
96
  },
97
97
  "dependencies": {
98
- "@genesislcap/foundation-comms": "14.488.2",
99
- "@genesislcap/foundation-criteria": "14.488.2",
100
- "@genesislcap/foundation-entity-management": "14.488.2",
101
- "@genesislcap/foundation-forms": "14.488.2",
102
- "@genesislcap/foundation-layout": "14.488.2",
103
- "@genesislcap/foundation-logger": "14.488.2",
104
- "@genesislcap/foundation-notifications": "14.488.2",
105
- "@genesislcap/foundation-ui": "14.488.2",
106
- "@genesislcap/foundation-utils": "14.488.2",
107
- "@genesislcap/rapid-design-system": "14.488.2",
108
- "@genesislcap/rapid-grid-pro": "14.488.2",
109
- "@genesislcap/web-core": "14.488.2",
98
+ "@genesislcap/foundation-comms": "14.489.0-canary.FUI-2574-1",
99
+ "@genesislcap/foundation-criteria": "14.489.0-canary.FUI-2574-1",
100
+ "@genesislcap/foundation-entity-management": "14.489.0-canary.FUI-2574-1",
101
+ "@genesislcap/foundation-forms": "14.489.0-canary.FUI-2574-1",
102
+ "@genesislcap/foundation-layout": "14.489.0-canary.FUI-2574-1",
103
+ "@genesislcap/foundation-logger": "14.489.0-canary.FUI-2574-1",
104
+ "@genesislcap/foundation-notifications": "14.489.0-canary.FUI-2574-1",
105
+ "@genesislcap/foundation-ui": "14.489.0-canary.FUI-2574-1",
106
+ "@genesislcap/foundation-utils": "14.489.0-canary.FUI-2574-1",
107
+ "@genesislcap/rapid-design-system": "14.489.0-canary.FUI-2574-1",
108
+ "@genesislcap/rapid-grid-pro": "14.489.0-canary.FUI-2574-1",
109
+ "@genesislcap/web-core": "14.489.0-canary.FUI-2574-1",
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": "babd82759de2896aaec4b630259c716b59afb1b3"
117
+ "gitHead": "6dbab0f331e0fa7a280534d5cf111f09138c31e4"
118
118
  }