@genesislcap/pbc-notify-ui 14.501.0 → 15.0.0-FUI-2571-formatters.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",
@@ -5157,70 +5157,70 @@
5157
5157
  },
5158
5158
  {
5159
5159
  "kind": "javascript-module",
5160
- "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
5160
+ "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
5161
5161
  "declarations": [
5162
5162
  {
5163
5163
  "kind": "class",
5164
5164
  "description": "",
5165
- "name": "RouteManagement",
5165
+ "name": "NotifyAuditManagement",
5166
5166
  "superclass": {
5167
5167
  "name": "GenesisElement",
5168
5168
  "package": "@genesislcap/web-core"
5169
5169
  },
5170
- "tagName": "route-management",
5170
+ "tagName": "notify-audit-management",
5171
5171
  "customElement": true
5172
5172
  }
5173
5173
  ],
5174
5174
  "exports": [
5175
5175
  {
5176
5176
  "kind": "js",
5177
- "name": "RouteManagement",
5177
+ "name": "NotifyAuditManagement",
5178
5178
  "declaration": {
5179
- "name": "RouteManagement",
5180
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5179
+ "name": "NotifyAuditManagement",
5180
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5181
5181
  }
5182
5182
  },
5183
5183
  {
5184
5184
  "kind": "custom-element-definition",
5185
- "name": "route-management",
5185
+ "name": "notify-audit-management",
5186
5186
  "declaration": {
5187
- "name": "RouteManagement",
5188
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5187
+ "name": "NotifyAuditManagement",
5188
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5189
5189
  }
5190
5190
  }
5191
5191
  ]
5192
5192
  },
5193
5193
  {
5194
5194
  "kind": "javascript-module",
5195
- "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
5195
+ "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
5196
5196
  "declarations": [
5197
5197
  {
5198
5198
  "kind": "class",
5199
5199
  "description": "",
5200
- "name": "NotifyAuditManagement",
5200
+ "name": "RouteManagement",
5201
5201
  "superclass": {
5202
5202
  "name": "GenesisElement",
5203
5203
  "package": "@genesislcap/web-core"
5204
5204
  },
5205
- "tagName": "notify-audit-management",
5205
+ "tagName": "route-management",
5206
5206
  "customElement": true
5207
5207
  }
5208
5208
  ],
5209
5209
  "exports": [
5210
5210
  {
5211
5211
  "kind": "js",
5212
- "name": "NotifyAuditManagement",
5212
+ "name": "RouteManagement",
5213
5213
  "declaration": {
5214
- "name": "NotifyAuditManagement",
5215
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5214
+ "name": "RouteManagement",
5215
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5216
5216
  }
5217
5217
  },
5218
5218
  {
5219
5219
  "kind": "custom-element-definition",
5220
- "name": "notify-audit-management",
5220
+ "name": "route-management",
5221
5221
  "declaration": {
5222
- "name": "NotifyAuditManagement",
5223
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5222
+ "name": "RouteManagement",
5223
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5224
5224
  }
5225
5225
  }
5226
5226
  ]
@@ -6996,560 +6996,426 @@
6996
6996
  },
6997
6997
  {
6998
6998
  "kind": "javascript-module",
6999
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
6999
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
7000
7000
  "declarations": [
7001
7001
  {
7002
7002
  "kind": "variable",
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`"
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
7005
  }
7006
7006
  ],
7007
7007
  "exports": [
7008
7008
  {
7009
7009
  "kind": "js",
7010
- "name": "TemplateConditionBuilderTemplate",
7010
+ "name": "ParameterBuilderStyles",
7011
7011
  "declaration": {
7012
- "name": "TemplateConditionBuilderTemplate",
7013
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
7012
+ "name": "ParameterBuilderStyles",
7013
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7014
7014
  }
7015
7015
  }
7016
7016
  ]
7017
7017
  },
7018
7018
  {
7019
7019
  "kind": "javascript-module",
7020
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.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",
7021
7042
  "declarations": [
7022
7043
  {
7023
7044
  "kind": "class",
7024
- "description": "Condition builder for template notification rules.",
7025
- "name": "TemplateConditionBuilder",
7045
+ "description": "Parameter builder for notification templates.",
7046
+ "name": "ParameterBuilder",
7026
7047
  "members": [
7027
7048
  {
7028
7049
  "kind": "field",
7029
- "name": "condition",
7050
+ "name": "parameter",
7030
7051
  "type": {
7031
- "text": "ConditionBuilderEntity"
7052
+ "text": "ParameterBuilderEntity"
7032
7053
  }
7033
7054
  },
7034
7055
  {
7035
7056
  "kind": "field",
7036
- "name": "parameters",
7037
- "type": {
7038
- "text": "Array<ParameterBuilderEntity>"
7039
- },
7040
- "default": "[]"
7041
- },
7042
- {
7043
- "kind": "field",
7044
- "name": "fields",
7045
- "type": {
7046
- "text": "Array<string>"
7047
- },
7048
- "default": "[]"
7049
- },
7050
- {
7051
- "kind": "field",
7052
- "name": "isFirst",
7053
- "type": {
7054
- "text": "boolean"
7055
- },
7056
- "default": "false"
7057
- },
7058
- {
7059
- "kind": "field",
7060
- "name": "joinOperator",
7057
+ "name": "name",
7061
7058
  "type": {
7062
7059
  "text": "string"
7063
7060
  }
7064
7061
  },
7065
7062
  {
7066
7063
  "kind": "field",
7067
- "name": "leftValue",
7064
+ "name": "label",
7068
7065
  "type": {
7069
- "text": "any"
7070
- },
7071
- "default": "null"
7066
+ "text": "string"
7067
+ }
7072
7068
  },
7073
7069
  {
7074
7070
  "kind": "field",
7075
- "name": "leftValueItems",
7071
+ "name": "type",
7076
7072
  "type": {
7077
- "text": "Array<any>"
7078
- },
7079
- "default": "[]"
7073
+ "text": "string"
7074
+ }
7080
7075
  },
7081
7076
  {
7082
7077
  "kind": "field",
7083
- "name": "logicalOperator",
7078
+ "name": "sourceType",
7084
7079
  "type": {
7085
7080
  "text": "string"
7086
- },
7087
- "default": "null"
7081
+ }
7088
7082
  },
7089
7083
  {
7090
7084
  "kind": "field",
7091
- "name": "rightCriteria",
7085
+ "name": "sourceSelected",
7092
7086
  "type": {
7093
7087
  "text": "string"
7094
7088
  }
7095
7089
  },
7096
7090
  {
7097
7091
  "kind": "field",
7098
- "name": "rightValueText",
7092
+ "name": "sourceTyped",
7099
7093
  "type": {
7100
7094
  "text": "string"
7101
- },
7102
- "default": "null"
7095
+ }
7103
7096
  },
7104
7097
  {
7105
7098
  "kind": "field",
7106
- "name": "rightValueSelect",
7099
+ "name": "sourceTextField",
7107
7100
  "type": {
7108
- "text": "string"
7109
- },
7110
- "default": "null"
7101
+ "text": "TextField"
7102
+ }
7111
7103
  },
7112
7104
  {
7113
7105
  "kind": "field",
7114
- "name": "rightValueItems",
7106
+ "name": "sourceSelect",
7115
7107
  "type": {
7116
- "text": "Array<any>"
7117
- },
7118
- "default": "[]"
7108
+ "text": "Select"
7109
+ }
7119
7110
  },
7120
7111
  {
7121
7112
  "kind": "field",
7122
- "name": "rightValueMultiSelect",
7113
+ "name": "reqRepItems",
7123
7114
  "type": {
7124
- "text": "string[]"
7115
+ "text": "array"
7125
7116
  },
7126
- "default": "[]"
7127
- },
7128
- {
7129
- "kind": "method",
7130
- "name": "deleteCondition"
7117
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7131
7118
  },
7132
7119
  {
7133
7120
  "kind": "method",
7134
- "name": "conditionChanged"
7121
+ "name": "deleteParameter"
7135
7122
  },
7136
7123
  {
7137
7124
  "kind": "method",
7138
- "name": "joinOperatorChanged"
7125
+ "name": "parameterChanged"
7139
7126
  },
7140
7127
  {
7141
7128
  "kind": "method",
7142
- "name": "parametersChanged"
7129
+ "name": "nameChanged"
7143
7130
  },
7144
7131
  {
7145
7132
  "kind": "method",
7146
- "name": "getMatchingParameter",
7147
- "privacy": "private",
7148
- "return": {
7149
- "type": {
7150
- "text": "ParameterBuilderEntity | undefined"
7151
- }
7152
- }
7133
+ "name": "labelChanged"
7153
7134
  },
7154
7135
  {
7155
7136
  "kind": "method",
7156
- "name": "syncParameterBinding",
7157
- "privacy": "private",
7158
- "return": {
7159
- "type": {
7160
- "text": "boolean"
7161
- }
7162
- }
7137
+ "name": "typeChanged"
7163
7138
  },
7164
7139
  {
7165
7140
  "kind": "method",
7166
- "name": "resetToValueEditor",
7167
- "privacy": "private"
7141
+ "name": "sourceTypeChanged"
7168
7142
  },
7169
7143
  {
7170
7144
  "kind": "method",
7171
- "name": "fieldsChanged"
7145
+ "name": "sourceSelectedChanged"
7172
7146
  },
7173
7147
  {
7174
7148
  "kind": "method",
7175
- "name": "logicalOperatorChanged"
7149
+ "name": "sourceTypedChanged"
7176
7150
  },
7177
7151
  {
7178
7152
  "kind": "method",
7179
- "name": "assignLeftValue",
7180
- "privacy": "private"
7181
- },
7153
+ "name": "genericChanged",
7154
+ "privacy": "private",
7155
+ "parameters": [
7156
+ {
7157
+ "name": "parameterAttribute"
7158
+ },
7159
+ {
7160
+ "name": "value"
7161
+ }
7162
+ ]
7163
+ }
7164
+ ],
7165
+ "events": [
7182
7166
  {
7183
- "kind": "method",
7184
- "name": "leftValueChanged"
7167
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7168
+ "name": "delete"
7185
7169
  },
7186
7170
  {
7187
- "kind": "method",
7188
- "name": "assignRightValue",
7189
- "privacy": "private"
7190
- },
7171
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7172
+ "name": "edit"
7173
+ }
7174
+ ],
7175
+ "attributes": [
7191
7176
  {
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
- }
7225
- }
7226
- ],
7227
- "events": [
7228
- {
7229
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
7230
- "name": "delete"
7231
- },
7232
- {
7233
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
7234
- "name": "edit"
7235
- }
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",
7177
+ "name": "parameter",
7255
7178
  "type": {
7256
- "text": "Array<string>"
7179
+ "text": "ParameterBuilderEntity"
7257
7180
  },
7258
- "default": "[]",
7259
- "fieldName": "fields"
7181
+ "fieldName": "parameter"
7260
7182
  }
7261
7183
  ],
7262
7184
  "superclass": {
7263
7185
  "name": "GenesisElement",
7264
7186
  "package": "@genesislcap/web-core"
7265
7187
  },
7266
- "tagName": "template-condition-builder",
7188
+ "tagName": "parameter-builder",
7267
7189
  "customElement": true
7268
7190
  }
7269
7191
  ],
7270
7192
  "exports": [
7271
7193
  {
7272
7194
  "kind": "js",
7273
- "name": "TemplateConditionBuilder",
7195
+ "name": "ParameterBuilder",
7274
7196
  "declaration": {
7275
- "name": "TemplateConditionBuilder",
7276
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7197
+ "name": "ParameterBuilder",
7198
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7277
7199
  }
7278
7200
  },
7279
7201
  {
7280
7202
  "kind": "custom-element-definition",
7281
- "name": "template-condition-builder",
7282
- "declaration": {
7283
- "name": "TemplateConditionBuilder",
7284
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7285
- }
7286
- }
7287
- ]
7288
- },
7289
- {
7290
- "kind": "javascript-module",
7291
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
7292
- "declarations": [
7293
- {
7294
- "kind": "variable",
7295
- "name": "ParameterBuilderStyles",
7296
- "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`"
7297
- }
7298
- ],
7299
- "exports": [
7300
- {
7301
- "kind": "js",
7302
- "name": "ParameterBuilderStyles",
7203
+ "name": "parameter-builder",
7303
7204
  "declaration": {
7304
- "name": "ParameterBuilderStyles",
7305
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7205
+ "name": "ParameterBuilder",
7206
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7306
7207
  }
7307
7208
  }
7308
7209
  ]
7309
7210
  },
7310
7211
  {
7311
7212
  "kind": "javascript-module",
7312
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
7213
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7313
7214
  "declarations": [
7314
7215
  {
7315
7216
  "kind": "variable",
7316
- "name": "ParameterBuilderTemplate",
7317
- "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
7217
+ "name": "TemplateConditionGroupTemplate",
7218
+ "default": "html<TemplateConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, TemplateConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <template-condition-group\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <template-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
7318
7219
  }
7319
7220
  ],
7320
7221
  "exports": [
7321
7222
  {
7322
7223
  "kind": "js",
7323
- "name": "ParameterBuilderTemplate",
7224
+ "name": "TemplateConditionGroupTemplate",
7324
7225
  "declaration": {
7325
- "name": "ParameterBuilderTemplate",
7326
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
7226
+ "name": "TemplateConditionGroupTemplate",
7227
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7327
7228
  }
7328
7229
  }
7329
7230
  ]
7330
7231
  },
7331
7232
  {
7332
7233
  "kind": "javascript-module",
7333
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
7234
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7334
7235
  "declarations": [
7335
7236
  {
7336
7237
  "kind": "class",
7337
- "description": "Parameter builder for notification templates.",
7338
- "name": "ParameterBuilder",
7238
+ "description": "Parenthesized group of conditions/nested groups for notification template\ncriteria - see rule-condition-group for the rationale. Also forwards\n:parameters down to nested template-condition-builder rows so parameter\nbinding (USER_ENTRY) keeps working inside a group.",
7239
+ "name": "TemplateConditionGroup",
7339
7240
  "members": [
7340
7241
  {
7341
7242
  "kind": "field",
7342
- "name": "parameter",
7343
- "type": {
7344
- "text": "ParameterBuilderEntity"
7345
- }
7346
- },
7347
- {
7348
- "kind": "field",
7349
- "name": "name",
7350
- "type": {
7351
- "text": "string"
7352
- }
7353
- },
7354
- {
7355
- "kind": "field",
7356
- "name": "label",
7243
+ "name": "node",
7357
7244
  "type": {
7358
- "text": "string"
7245
+ "text": "ConditionGroupEntity"
7359
7246
  }
7360
7247
  },
7361
7248
  {
7362
7249
  "kind": "field",
7363
- "name": "type",
7250
+ "name": "fields",
7364
7251
  "type": {
7365
- "text": "string"
7366
- }
7252
+ "text": "Field[]"
7253
+ },
7254
+ "default": "[]"
7367
7255
  },
7368
7256
  {
7369
7257
  "kind": "field",
7370
- "name": "sourceType",
7258
+ "name": "parameters",
7371
7259
  "type": {
7372
- "text": "string"
7373
- }
7260
+ "text": "Array<ParameterBuilderEntity>"
7261
+ },
7262
+ "default": "[]"
7374
7263
  },
7375
7264
  {
7376
7265
  "kind": "field",
7377
- "name": "sourceSelected",
7266
+ "name": "isFirst",
7378
7267
  "type": {
7379
- "text": "string"
7380
- }
7268
+ "text": "boolean"
7269
+ },
7270
+ "default": "false"
7381
7271
  },
7382
7272
  {
7383
7273
  "kind": "field",
7384
- "name": "sourceTyped",
7274
+ "name": "joinOperator",
7385
7275
  "type": {
7386
7276
  "text": "string"
7387
7277
  }
7388
7278
  },
7389
7279
  {
7390
7280
  "kind": "field",
7391
- "name": "sourceTextField",
7392
- "type": {
7393
- "text": "TextField"
7394
- }
7395
- },
7396
- {
7397
- "kind": "field",
7398
- "name": "sourceSelect",
7399
- "type": {
7400
- "text": "Select"
7401
- }
7402
- },
7403
- {
7404
- "kind": "field",
7405
- "name": "reqRepItems",
7281
+ "name": "groupChildren",
7406
7282
  "type": {
7407
- "text": "array"
7283
+ "text": "ConditionNode[]"
7408
7284
  },
7409
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7410
- },
7411
- {
7412
- "kind": "method",
7413
- "name": "deleteParameter"
7414
- },
7415
- {
7416
- "kind": "method",
7417
- "name": "parameterChanged"
7418
- },
7419
- {
7420
- "kind": "method",
7421
- "name": "nameChanged"
7285
+ "default": "[]"
7422
7286
  },
7423
7287
  {
7424
7288
  "kind": "method",
7425
- "name": "labelChanged"
7289
+ "name": "nodeChanged"
7426
7290
  },
7427
7291
  {
7428
7292
  "kind": "method",
7429
- "name": "typeChanged"
7293
+ "name": "joinOperatorChanged"
7430
7294
  },
7431
7295
  {
7432
7296
  "kind": "method",
7433
- "name": "sourceTypeChanged"
7297
+ "name": "newCondition"
7434
7298
  },
7435
7299
  {
7436
7300
  "kind": "method",
7437
- "name": "sourceSelectedChanged"
7301
+ "name": "newGroup"
7438
7302
  },
7439
7303
  {
7440
7304
  "kind": "method",
7441
- "name": "sourceTypedChanged"
7305
+ "name": "editChild",
7306
+ "parameters": [
7307
+ {
7308
+ "name": "_editedChild",
7309
+ "type": {
7310
+ "text": "ConditionNode"
7311
+ }
7312
+ }
7313
+ ]
7442
7314
  },
7443
7315
  {
7444
7316
  "kind": "method",
7445
- "name": "genericChanged",
7446
- "privacy": "private",
7317
+ "name": "deleteChild",
7447
7318
  "parameters": [
7448
7319
  {
7449
- "name": "parameterAttribute"
7450
- },
7451
- {
7452
- "name": "value"
7320
+ "name": "deletedChild",
7321
+ "type": {
7322
+ "text": "ConditionNode"
7323
+ }
7453
7324
  }
7454
7325
  ]
7326
+ },
7327
+ {
7328
+ "kind": "method",
7329
+ "name": "deleteSelf"
7455
7330
  }
7456
7331
  ],
7457
7332
  "events": [
7458
7333
  {
7459
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7334
+ "description": "Fired when this whole group should be removed",
7460
7335
  "name": "delete"
7461
7336
  },
7462
7337
  {
7463
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7338
+ "description": "Fired when anything inside this group changes",
7464
7339
  "name": "edit"
7465
7340
  }
7466
7341
  ],
7467
- "attributes": [
7468
- {
7469
- "name": "parameter",
7470
- "type": {
7471
- "text": "ParameterBuilderEntity"
7472
- },
7473
- "fieldName": "parameter"
7474
- }
7475
- ],
7476
7342
  "superclass": {
7477
7343
  "name": "GenesisElement",
7478
7344
  "package": "@genesislcap/web-core"
7479
7345
  },
7480
- "tagName": "parameter-builder",
7346
+ "tagName": "template-condition-group",
7481
7347
  "customElement": true
7482
7348
  }
7483
7349
  ],
7484
7350
  "exports": [
7485
7351
  {
7486
7352
  "kind": "js",
7487
- "name": "ParameterBuilder",
7353
+ "name": "TemplateConditionGroup",
7488
7354
  "declaration": {
7489
- "name": "ParameterBuilder",
7490
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7355
+ "name": "TemplateConditionGroup",
7356
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7491
7357
  }
7492
7358
  },
7493
7359
  {
7494
7360
  "kind": "custom-element-definition",
7495
- "name": "parameter-builder",
7361
+ "name": "template-condition-group",
7496
7362
  "declaration": {
7497
- "name": "ParameterBuilder",
7498
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7363
+ "name": "TemplateConditionGroup",
7364
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7499
7365
  }
7500
7366
  }
7501
7367
  ]
7502
7368
  },
7503
7369
  {
7504
7370
  "kind": "javascript-module",
7505
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7371
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
7506
7372
  "declarations": [
7507
7373
  {
7508
7374
  "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`"
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`"
7511
7377
  }
7512
7378
  ],
7513
7379
  "exports": [
7514
7380
  {
7515
7381
  "kind": "js",
7516
- "name": "TemplateConditionGroupTemplate",
7382
+ "name": "TemplateConditionBuilderTemplate",
7517
7383
  "declaration": {
7518
- "name": "TemplateConditionGroupTemplate",
7519
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7384
+ "name": "TemplateConditionBuilderTemplate",
7385
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
7520
7386
  }
7521
7387
  }
7522
7388
  ]
7523
7389
  },
7524
7390
  {
7525
7391
  "kind": "javascript-module",
7526
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7392
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
7527
7393
  "declarations": [
7528
7394
  {
7529
7395
  "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",
7396
+ "description": "Condition builder for template notification rules.",
7397
+ "name": "TemplateConditionBuilder",
7532
7398
  "members": [
7533
7399
  {
7534
7400
  "kind": "field",
7535
- "name": "node",
7401
+ "name": "condition",
7536
7402
  "type": {
7537
- "text": "ConditionGroupEntity"
7403
+ "text": "ConditionBuilderEntity"
7538
7404
  }
7539
7405
  },
7540
7406
  {
7541
7407
  "kind": "field",
7542
- "name": "fields",
7408
+ "name": "parameters",
7543
7409
  "type": {
7544
- "text": "Field[]"
7410
+ "text": "Array<ParameterBuilderEntity>"
7545
7411
  },
7546
7412
  "default": "[]"
7547
7413
  },
7548
7414
  {
7549
7415
  "kind": "field",
7550
- "name": "parameters",
7416
+ "name": "fields",
7551
7417
  "type": {
7552
- "text": "Array<ParameterBuilderEntity>"
7418
+ "text": "Array<string>"
7553
7419
  },
7554
7420
  "default": "[]"
7555
7421
  },
@@ -7570,90 +7436,224 @@
7570
7436
  },
7571
7437
  {
7572
7438
  "kind": "field",
7573
- "name": "groupChildren",
7439
+ "name": "leftValue",
7574
7440
  "type": {
7575
- "text": "ConditionNode[]"
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[]"
7576
7497
  },
7577
7498
  "default": "[]"
7578
7499
  },
7579
7500
  {
7580
7501
  "kind": "method",
7581
- "name": "nodeChanged"
7502
+ "name": "deleteCondition"
7582
7503
  },
7583
7504
  {
7584
7505
  "kind": "method",
7585
- "name": "joinOperatorChanged"
7506
+ "name": "conditionChanged"
7586
7507
  },
7587
7508
  {
7588
7509
  "kind": "method",
7589
- "name": "newCondition"
7510
+ "name": "joinOperatorChanged"
7590
7511
  },
7591
7512
  {
7592
7513
  "kind": "method",
7593
- "name": "newGroup"
7514
+ "name": "parametersChanged"
7594
7515
  },
7595
7516
  {
7596
7517
  "kind": "method",
7597
- "name": "editChild",
7598
- "parameters": [
7599
- {
7600
- "name": "_editedChild",
7601
- "type": {
7602
- "text": "ConditionNode"
7603
- }
7518
+ "name": "getMatchingParameter",
7519
+ "privacy": "private",
7520
+ "return": {
7521
+ "type": {
7522
+ "text": "ParameterBuilderEntity | undefined"
7604
7523
  }
7605
- ]
7524
+ }
7606
7525
  },
7607
7526
  {
7608
7527
  "kind": "method",
7609
- "name": "deleteChild",
7610
- "parameters": [
7611
- {
7612
- "name": "deletedChild",
7613
- "type": {
7614
- "text": "ConditionNode"
7615
- }
7528
+ "name": "syncParameterBinding",
7529
+ "privacy": "private",
7530
+ "return": {
7531
+ "type": {
7532
+ "text": "boolean"
7616
7533
  }
7617
- ]
7534
+ }
7618
7535
  },
7619
7536
  {
7620
7537
  "kind": "method",
7621
- "name": "deleteSelf"
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
+ }
7622
7597
  }
7623
7598
  ],
7624
7599
  "events": [
7625
7600
  {
7626
- "description": "Fired when this whole group should be removed",
7601
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
7627
7602
  "name": "delete"
7628
7603
  },
7629
7604
  {
7630
- "description": "Fired when anything inside this group changes",
7605
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
7631
7606
  "name": "edit"
7632
7607
  }
7633
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
7634
  "superclass": {
7635
7635
  "name": "GenesisElement",
7636
7636
  "package": "@genesislcap/web-core"
7637
7637
  },
7638
- "tagName": "template-condition-group",
7638
+ "tagName": "template-condition-builder",
7639
7639
  "customElement": true
7640
7640
  }
7641
7641
  ],
7642
7642
  "exports": [
7643
7643
  {
7644
7644
  "kind": "js",
7645
- "name": "TemplateConditionGroup",
7645
+ "name": "TemplateConditionBuilder",
7646
7646
  "declaration": {
7647
- "name": "TemplateConditionGroup",
7648
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7647
+ "name": "TemplateConditionBuilder",
7648
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7649
7649
  }
7650
7650
  },
7651
7651
  {
7652
7652
  "kind": "custom-element-definition",
7653
- "name": "template-condition-group",
7653
+ "name": "template-condition-builder",
7654
7654
  "declaration": {
7655
- "name": "TemplateConditionGroup",
7656
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7655
+ "name": "TemplateConditionBuilder",
7656
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7657
7657
  }
7658
7658
  }
7659
7659
  ]