@genesislcap/pbc-notify-ui 15.19.1-FUI-2610.1 → 15.19.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.
@@ -4918,149 +4918,6 @@
4918
4918
  }
4919
4919
  ]
4920
4920
  },
4921
- {
4922
- "kind": "javascript-module",
4923
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
4924
- "declarations": [
4925
- {
4926
- "kind": "variable",
4927
- "name": "noItemsClass",
4928
- "type": {
4929
- "text": "string"
4930
- },
4931
- "default": "'no-items'",
4932
- "description": "Class to use when there are no items"
4933
- },
4934
- {
4935
- "kind": "variable",
4936
- "name": "FoundationInboxCounterStyles",
4937
- "default": "css`\n :host {\n display: inline-block;\n min-width: 16px;\n height: 16px;\n border-radius: 9px;\n text-align: center;\n color: #fff;\n line-height: 16px;\n font-size: 9px;\n font-weight: 700;\n background: ${BACKGROUND_COLOR};\n pointer-events: none;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n :host(.${noItemsClass}) {\n display: none;\n }\n`"
4938
- }
4939
- ],
4940
- "exports": [
4941
- {
4942
- "kind": "js",
4943
- "name": "noItemsClass",
4944
- "declaration": {
4945
- "name": "noItemsClass",
4946
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
4947
- }
4948
- },
4949
- {
4950
- "kind": "js",
4951
- "name": "FoundationInboxCounterStyles",
4952
- "declaration": {
4953
- "name": "FoundationInboxCounterStyles",
4954
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
4955
- }
4956
- }
4957
- ]
4958
- },
4959
- {
4960
- "kind": "javascript-module",
4961
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
4962
- "declarations": [
4963
- {
4964
- "kind": "variable",
4965
- "name": "FoundationInboxCounterTemplate",
4966
- "default": "html<FoundationInboxCounter>`\n <template class=\"${(x) => classNames([noItemsClass, x.value < 1])}\">\n ${when(\n (x) => x.value > 0,\n html`\n ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}\n `,\n )}\n </template>\n`"
4967
- }
4968
- ],
4969
- "exports": [
4970
- {
4971
- "kind": "js",
4972
- "name": "FoundationInboxCounterTemplate",
4973
- "declaration": {
4974
- "name": "FoundationInboxCounterTemplate",
4975
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
4976
- }
4977
- }
4978
- ]
4979
- },
4980
- {
4981
- "kind": "javascript-module",
4982
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
4983
- "declarations": [
4984
- {
4985
- "kind": "class",
4986
- "description": "",
4987
- "name": "FoundationInboxCounter",
4988
- "members": [
4989
- {
4990
- "kind": "field",
4991
- "name": "value",
4992
- "type": {
4993
- "text": "number"
4994
- },
4995
- "default": "0"
4996
- },
4997
- {
4998
- "kind": "field",
4999
- "name": "connect",
5000
- "type": {
5001
- "text": "Connect"
5002
- }
5003
- },
5004
- {
5005
- "kind": "field",
5006
- "name": "inboxService",
5007
- "type": {
5008
- "text": "FoundationInboxService"
5009
- }
5010
- },
5011
- {
5012
- "kind": "field",
5013
- "name": "connectionSub",
5014
- "type": {
5015
- "text": "Subscription"
5016
- },
5017
- "privacy": "private"
5018
- },
5019
- {
5020
- "kind": "method",
5021
- "name": "subscribeToAlerts",
5022
- "privacy": "private",
5023
- "return": {
5024
- "type": {
5025
- "text": "Promise<void>"
5026
- }
5027
- },
5028
- "description": "Subscribes to alerts from the inbox service"
5029
- },
5030
- {
5031
- "kind": "field",
5032
- "name": "subscriptionHandler",
5033
- "privacy": "private",
5034
- "description": "Handles subscription updates from the inbox service"
5035
- }
5036
- ],
5037
- "superclass": {
5038
- "name": "GenesisElement",
5039
- "package": "@genesislcap/web-core"
5040
- },
5041
- "tagName": "foundation-inbox-counter",
5042
- "customElement": true
5043
- }
5044
- ],
5045
- "exports": [
5046
- {
5047
- "kind": "js",
5048
- "name": "FoundationInboxCounter",
5049
- "declaration": {
5050
- "name": "FoundationInboxCounter",
5051
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
5052
- }
5053
- },
5054
- {
5055
- "kind": "custom-element-definition",
5056
- "name": "foundation-inbox-counter",
5057
- "declaration": {
5058
- "name": "FoundationInboxCounter",
5059
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
5060
- }
5061
- }
5062
- ]
5063
- },
5064
4921
  {
5065
4922
  "kind": "javascript-module",
5066
4923
  "path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts",
@@ -6175,129 +6032,272 @@
6175
6032
  },
6176
6033
  {
6177
6034
  "kind": "javascript-module",
6178
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
6035
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
6179
6036
  "declarations": [
6180
6037
  {
6181
6038
  "kind": "variable",
6182
- "name": "InboxSubscriptionStyles",
6183
- "default": "css`\n .inbox-subscription {\n display: flex;\n flex-direction: column;\n }\n\n .inbox-subscription.inline {\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .inbox-subscription-header {\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription-empty {\n padding: 0 calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 2px) 0 0;\n }\n\n .inbox-subscription-content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 3px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-content {\n overflow: auto;\n max-height: calc(var(--design-unit) * 80px);\n }\n\n .inbox-subscription.inline .inbox-subscription-content {\n margin: calc(var(--design-unit) * 2px) 0 0;\n overflow: visible;\n max-height: none;\n padding-bottom: calc(var(--design-unit) * 4px);\n }\n\n .inbox-subscription.inline .control:focus-within {\n position: relative;\n z-index: 2;\n }\n\n .inbox-subscription-footer {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px) 0 0;\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-footer {\n padding: calc(var(--design-unit) * 2px);\n margin-top: 0;\n }\n\n .inbox-subscription-footer.auto-submit {\n justify-content: flex-end;\n border-top: none;\n margin-top: 0;\n padding-top: 0;\n }\n\n rapid-button.subscribe,\n rapid-button.cancel {\n display: flex;\n margin: 0;\n flex: 1;\n }\n`"
6039
+ "name": "noItemsClass",
6040
+ "type": {
6041
+ "text": "string"
6042
+ },
6043
+ "default": "'no-items'",
6044
+ "description": "Class to use when there are no items"
6045
+ },
6046
+ {
6047
+ "kind": "variable",
6048
+ "name": "FoundationInboxCounterStyles",
6049
+ "default": "css`\n :host {\n display: inline-block;\n min-width: 16px;\n height: 16px;\n border-radius: 9px;\n text-align: center;\n color: #fff;\n line-height: 16px;\n font-size: 9px;\n font-weight: 700;\n background: ${BACKGROUND_COLOR};\n pointer-events: none;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n :host(.${noItemsClass}) {\n display: none;\n }\n`"
6184
6050
  }
6185
6051
  ],
6186
6052
  "exports": [
6187
6053
  {
6188
6054
  "kind": "js",
6189
- "name": "InboxSubscriptionStyles",
6055
+ "name": "noItemsClass",
6190
6056
  "declaration": {
6191
- "name": "InboxSubscriptionStyles",
6192
- "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
6057
+ "name": "noItemsClass",
6058
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
6059
+ }
6060
+ },
6061
+ {
6062
+ "kind": "js",
6063
+ "name": "FoundationInboxCounterStyles",
6064
+ "declaration": {
6065
+ "name": "FoundationInboxCounterStyles",
6066
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
6193
6067
  }
6194
6068
  }
6195
6069
  ]
6196
6070
  },
6197
6071
  {
6198
6072
  "kind": "javascript-module",
6199
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
6073
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
6200
6074
  "declarations": [
6201
6075
  {
6202
6076
  "kind": "variable",
6203
- "name": "InboxSubscriptionTemplate",
6204
- "default": "html<InboxSubscription>`\n <div class=\"inbox-subscription ${(x) => (x.inline ? 'inline' : '')}\">\n ${when(\n (x) => !x.inline,\n html`\n <div class=\"inbox-subscription-header\">\n Subscribe to\n <span style=\"font-weight: bold;\">${(x) => x.template.RULE_NAME}</span>\n </div>\n `,\n )}\n ${when(\n (x) => Object.values(x.template?.PARAMETERS ?? {}).length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => Object.values(x.template?.PARAMETERS ?? {}).length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n // @ts-ignore\n (x) => Object.values(x.template?.PARAMETERS ?? {}),\n html<RuleParameterEntity>`\n <rule-parameter\n :parameter=${(x) => x}\n :isFirstElement=${(x, c) => c.parent.isFirstElement(x)}\n :operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}\n :requireSelection=${(x, c) => c.parent.usesAutoSubmit()}\n @parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}\n ></rule-parameter>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => !x.inline || x.requiresManualSubscribe(),\n html`\n <div class=\"inbox-subscription-footer\">\n ${when(\n (x) => x.inline,\n html`\n <rapid-button\n class=\"cancel\"\n appearance=\"neutral\"\n @click=${(x) => x.cancelSubscribe()}\n >\n Cancel\n </rapid-button>\n `,\n )}\n <rapid-button\n class=\"subscribe\"\n appearance=\"primary\"\n @click=${(x) => x.subscribeTemplate()}\n ?disabled=${(x) => x.subscribeDisabled}\n >\n Subscribe\n </rapid-button>\n </div>\n `,\n )}\n ${when(\n (x) => x.inline && x.usesAutoSubmit(),\n html`\n <div class=\"inbox-subscription-footer auto-submit\">\n <rapid-button class=\"cancel\" appearance=\"neutral\" @click=${(x) => x.cancelSubscribe()}>\n Cancel\n </rapid-button>\n </div>\n `,\n )}\n </div>\n`"
6077
+ "name": "FoundationInboxCounterTemplate",
6078
+ "default": "html<FoundationInboxCounter>`\n <template class=\"${(x) => classNames([noItemsClass, x.value < 1])}\">\n ${when(\n (x) => x.value > 0,\n html`\n ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}\n `,\n )}\n </template>\n`"
6205
6079
  }
6206
6080
  ],
6207
6081
  "exports": [
6208
6082
  {
6209
6083
  "kind": "js",
6210
- "name": "InboxSubscriptionTemplate",
6084
+ "name": "FoundationInboxCounterTemplate",
6211
6085
  "declaration": {
6212
- "name": "InboxSubscriptionTemplate",
6213
- "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
6086
+ "name": "FoundationInboxCounterTemplate",
6087
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
6214
6088
  }
6215
6089
  }
6216
6090
  ]
6217
6091
  },
6218
6092
  {
6219
6093
  "kind": "javascript-module",
6220
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
6094
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
6221
6095
  "declarations": [
6222
6096
  {
6223
6097
  "kind": "class",
6224
- "description": "Inbox subscription configuration UI.",
6225
- "name": "InboxSubscription",
6098
+ "description": "",
6099
+ "name": "FoundationInboxCounter",
6226
6100
  "members": [
6227
6101
  {
6228
6102
  "kind": "field",
6229
- "name": "template"
6230
- },
6231
- {
6232
- "kind": "field",
6233
- "name": "inline",
6234
- "type": {
6235
- "text": "boolean"
6236
- },
6237
- "default": "false"
6238
- },
6239
- {
6240
- "kind": "field",
6241
- "name": "parametersDetails",
6103
+ "name": "value",
6242
6104
  "type": {
6243
- "text": "object"
6105
+ "text": "number"
6244
6106
  },
6245
- "privacy": "private",
6246
- "default": "{}"
6107
+ "default": "0"
6247
6108
  },
6248
6109
  {
6249
6110
  "kind": "field",
6250
- "name": "isSubmitting",
6111
+ "name": "connect",
6251
6112
  "type": {
6252
- "text": "boolean"
6253
- },
6254
- "privacy": "private",
6255
- "default": "false"
6113
+ "text": "Connect"
6114
+ }
6256
6115
  },
6257
6116
  {
6258
6117
  "kind": "field",
6259
- "name": "parametersOperators",
6118
+ "name": "inboxService",
6260
6119
  "type": {
6261
- "text": "object"
6262
- },
6263
- "default": "{}"
6120
+ "text": "FoundationInboxService"
6121
+ }
6264
6122
  },
6265
6123
  {
6266
6124
  "kind": "field",
6267
- "name": "subscribeDisabled",
6125
+ "name": "connectionSub",
6268
6126
  "type": {
6269
- "text": "boolean"
6127
+ "text": "Subscription"
6270
6128
  },
6271
- "default": "true"
6272
- },
6273
- {
6274
- "kind": "field",
6275
- "name": "ruleService",
6276
- "type": {
6277
- "text": "RuleService"
6278
- }
6279
- },
6280
- {
6281
- "kind": "method",
6282
- "name": "templateChanged"
6129
+ "privacy": "private"
6283
6130
  },
6284
6131
  {
6285
6132
  "kind": "method",
6286
- "name": "usesAutoSubmit",
6133
+ "name": "subscribeToAlerts",
6134
+ "privacy": "private",
6287
6135
  "return": {
6288
6136
  "type": {
6289
- "text": "boolean"
6137
+ "text": "Promise<void>"
6290
6138
  }
6291
- }
6139
+ },
6140
+ "description": "Subscribes to alerts from the inbox service"
6292
6141
  },
6293
6142
  {
6294
- "kind": "method",
6295
- "name": "requiresManualSubscribe",
6296
- "return": {
6297
- "type": {
6298
- "text": "boolean"
6299
- }
6300
- }
6143
+ "kind": "field",
6144
+ "name": "subscriptionHandler",
6145
+ "privacy": "private",
6146
+ "description": "Handles subscription updates from the inbox service"
6147
+ }
6148
+ ],
6149
+ "superclass": {
6150
+ "name": "GenesisElement",
6151
+ "package": "@genesislcap/web-core"
6152
+ },
6153
+ "tagName": "foundation-inbox-counter",
6154
+ "customElement": true
6155
+ }
6156
+ ],
6157
+ "exports": [
6158
+ {
6159
+ "kind": "js",
6160
+ "name": "FoundationInboxCounter",
6161
+ "declaration": {
6162
+ "name": "FoundationInboxCounter",
6163
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
6164
+ }
6165
+ },
6166
+ {
6167
+ "kind": "custom-element-definition",
6168
+ "name": "foundation-inbox-counter",
6169
+ "declaration": {
6170
+ "name": "FoundationInboxCounter",
6171
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
6172
+ }
6173
+ }
6174
+ ]
6175
+ },
6176
+ {
6177
+ "kind": "javascript-module",
6178
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
6179
+ "declarations": [
6180
+ {
6181
+ "kind": "variable",
6182
+ "name": "InboxSubscriptionStyles",
6183
+ "default": "css`\n .inbox-subscription {\n display: flex;\n flex-direction: column;\n }\n\n .inbox-subscription.inline {\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .inbox-subscription-header {\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription-empty {\n padding: 0 calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 2px) 0 0;\n }\n\n .inbox-subscription-content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 3px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-content {\n overflow: auto;\n max-height: calc(var(--design-unit) * 80px);\n }\n\n .inbox-subscription.inline .inbox-subscription-content {\n margin: calc(var(--design-unit) * 2px) 0 0;\n overflow: visible;\n max-height: none;\n padding-bottom: calc(var(--design-unit) * 4px);\n }\n\n .inbox-subscription.inline .control:focus-within {\n position: relative;\n z-index: 2;\n }\n\n .inbox-subscription-footer {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px) 0 0;\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-footer {\n padding: calc(var(--design-unit) * 2px);\n margin-top: 0;\n }\n\n .inbox-subscription-footer.auto-submit {\n justify-content: flex-end;\n border-top: none;\n margin-top: 0;\n padding-top: 0;\n }\n\n rapid-button.subscribe,\n rapid-button.cancel {\n display: flex;\n margin: 0;\n flex: 1;\n }\n`"
6184
+ }
6185
+ ],
6186
+ "exports": [
6187
+ {
6188
+ "kind": "js",
6189
+ "name": "InboxSubscriptionStyles",
6190
+ "declaration": {
6191
+ "name": "InboxSubscriptionStyles",
6192
+ "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
6193
+ }
6194
+ }
6195
+ ]
6196
+ },
6197
+ {
6198
+ "kind": "javascript-module",
6199
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
6200
+ "declarations": [
6201
+ {
6202
+ "kind": "variable",
6203
+ "name": "InboxSubscriptionTemplate",
6204
+ "default": "html<InboxSubscription>`\n <div class=\"inbox-subscription ${(x) => (x.inline ? 'inline' : '')}\">\n ${when(\n (x) => !x.inline,\n html`\n <div class=\"inbox-subscription-header\">\n Subscribe to\n <span style=\"font-weight: bold;\">${(x) => x.template.RULE_NAME}</span>\n </div>\n `,\n )}\n ${when(\n (x) => Object.values(x.template?.PARAMETERS ?? {}).length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => Object.values(x.template?.PARAMETERS ?? {}).length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n // @ts-ignore\n (x) => Object.values(x.template?.PARAMETERS ?? {}),\n html<RuleParameterEntity>`\n <rule-parameter\n :parameter=${(x) => x}\n :isFirstElement=${(x, c) => c.parent.isFirstElement(x)}\n :operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}\n :requireSelection=${(x, c) => c.parent.usesAutoSubmit()}\n @parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}\n ></rule-parameter>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => !x.inline || x.requiresManualSubscribe(),\n html`\n <div class=\"inbox-subscription-footer\">\n ${when(\n (x) => x.inline,\n html`\n <rapid-button\n class=\"cancel\"\n appearance=\"neutral\"\n @click=${(x) => x.cancelSubscribe()}\n >\n Cancel\n </rapid-button>\n `,\n )}\n <rapid-button\n class=\"subscribe\"\n appearance=\"primary\"\n @click=${(x) => x.subscribeTemplate()}\n ?disabled=${(x) => x.subscribeDisabled}\n >\n Subscribe\n </rapid-button>\n </div>\n `,\n )}\n ${when(\n (x) => x.inline && x.usesAutoSubmit(),\n html`\n <div class=\"inbox-subscription-footer auto-submit\">\n <rapid-button class=\"cancel\" appearance=\"neutral\" @click=${(x) => x.cancelSubscribe()}>\n Cancel\n </rapid-button>\n </div>\n `,\n )}\n </div>\n`"
6205
+ }
6206
+ ],
6207
+ "exports": [
6208
+ {
6209
+ "kind": "js",
6210
+ "name": "InboxSubscriptionTemplate",
6211
+ "declaration": {
6212
+ "name": "InboxSubscriptionTemplate",
6213
+ "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
6214
+ }
6215
+ }
6216
+ ]
6217
+ },
6218
+ {
6219
+ "kind": "javascript-module",
6220
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
6221
+ "declarations": [
6222
+ {
6223
+ "kind": "class",
6224
+ "description": "Inbox subscription configuration UI.",
6225
+ "name": "InboxSubscription",
6226
+ "members": [
6227
+ {
6228
+ "kind": "field",
6229
+ "name": "template"
6230
+ },
6231
+ {
6232
+ "kind": "field",
6233
+ "name": "inline",
6234
+ "type": {
6235
+ "text": "boolean"
6236
+ },
6237
+ "default": "false"
6238
+ },
6239
+ {
6240
+ "kind": "field",
6241
+ "name": "parametersDetails",
6242
+ "type": {
6243
+ "text": "object"
6244
+ },
6245
+ "privacy": "private",
6246
+ "default": "{}"
6247
+ },
6248
+ {
6249
+ "kind": "field",
6250
+ "name": "isSubmitting",
6251
+ "type": {
6252
+ "text": "boolean"
6253
+ },
6254
+ "privacy": "private",
6255
+ "default": "false"
6256
+ },
6257
+ {
6258
+ "kind": "field",
6259
+ "name": "parametersOperators",
6260
+ "type": {
6261
+ "text": "object"
6262
+ },
6263
+ "default": "{}"
6264
+ },
6265
+ {
6266
+ "kind": "field",
6267
+ "name": "subscribeDisabled",
6268
+ "type": {
6269
+ "text": "boolean"
6270
+ },
6271
+ "default": "true"
6272
+ },
6273
+ {
6274
+ "kind": "field",
6275
+ "name": "ruleService",
6276
+ "type": {
6277
+ "text": "RuleService"
6278
+ }
6279
+ },
6280
+ {
6281
+ "kind": "method",
6282
+ "name": "templateChanged"
6283
+ },
6284
+ {
6285
+ "kind": "method",
6286
+ "name": "usesAutoSubmit",
6287
+ "return": {
6288
+ "type": {
6289
+ "text": "boolean"
6290
+ }
6291
+ }
6292
+ },
6293
+ {
6294
+ "kind": "method",
6295
+ "name": "requiresManualSubscribe",
6296
+ "return": {
6297
+ "type": {
6298
+ "text": "boolean"
6299
+ }
6300
+ }
6301
6301
  },
6302
6302
  {
6303
6303
  "kind": "method",
@@ -8781,113 +8781,327 @@
8781
8781
  },
8782
8782
  {
8783
8783
  "kind": "javascript-module",
8784
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
8784
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
8785
8785
  "declarations": [
8786
8786
  {
8787
8787
  "kind": "variable",
8788
- "name": "TemplateConditionBuilderTemplate",
8789
- "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`"
8788
+ "name": "ParameterBuilderStyles",
8789
+ "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`"
8790
8790
  }
8791
8791
  ],
8792
8792
  "exports": [
8793
8793
  {
8794
8794
  "kind": "js",
8795
- "name": "TemplateConditionBuilderTemplate",
8795
+ "name": "ParameterBuilderStyles",
8796
8796
  "declaration": {
8797
- "name": "TemplateConditionBuilderTemplate",
8798
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
8797
+ "name": "ParameterBuilderStyles",
8798
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
8799
8799
  }
8800
8800
  }
8801
8801
  ]
8802
8802
  },
8803
8803
  {
8804
8804
  "kind": "javascript-module",
8805
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
8805
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
8806
+ "declarations": [
8807
+ {
8808
+ "kind": "variable",
8809
+ "name": "ParameterBuilderTemplate",
8810
+ "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`"
8811
+ }
8812
+ ],
8813
+ "exports": [
8814
+ {
8815
+ "kind": "js",
8816
+ "name": "ParameterBuilderTemplate",
8817
+ "declaration": {
8818
+ "name": "ParameterBuilderTemplate",
8819
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
8820
+ }
8821
+ }
8822
+ ]
8823
+ },
8824
+ {
8825
+ "kind": "javascript-module",
8826
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
8806
8827
  "declarations": [
8807
8828
  {
8808
8829
  "kind": "class",
8809
- "description": "Condition builder for template notification rules.",
8810
- "name": "TemplateConditionBuilder",
8830
+ "description": "Parameter builder for notification templates.",
8831
+ "name": "ParameterBuilder",
8811
8832
  "members": [
8812
8833
  {
8813
8834
  "kind": "field",
8814
- "name": "condition",
8835
+ "name": "parameter",
8815
8836
  "type": {
8816
- "text": "ConditionBuilderEntity"
8837
+ "text": "ParameterBuilderEntity"
8817
8838
  }
8818
8839
  },
8819
8840
  {
8820
8841
  "kind": "field",
8821
- "name": "parameters",
8842
+ "name": "name",
8822
8843
  "type": {
8823
- "text": "Array<ParameterBuilderEntity>"
8824
- },
8825
- "default": "[]"
8844
+ "text": "string"
8845
+ }
8826
8846
  },
8827
8847
  {
8828
8848
  "kind": "field",
8829
- "name": "fields",
8849
+ "name": "label",
8830
8850
  "type": {
8831
- "text": "Field[]"
8832
- },
8833
- "default": "[]"
8851
+ "text": "string"
8852
+ }
8834
8853
  },
8835
8854
  {
8836
8855
  "kind": "field",
8837
- "name": "isFirst",
8856
+ "name": "type",
8838
8857
  "type": {
8839
- "text": "boolean"
8840
- },
8841
- "default": "false"
8858
+ "text": "string"
8859
+ }
8842
8860
  },
8843
8861
  {
8844
8862
  "kind": "field",
8845
- "name": "joinOperator",
8863
+ "name": "sourceType",
8846
8864
  "type": {
8847
8865
  "text": "string"
8848
8866
  }
8849
8867
  },
8850
8868
  {
8851
8869
  "kind": "field",
8852
- "name": "leftValue",
8870
+ "name": "sourceSelected",
8853
8871
  "type": {
8854
- "text": "any"
8855
- },
8856
- "default": "null"
8872
+ "text": "string"
8873
+ }
8857
8874
  },
8858
8875
  {
8859
8876
  "kind": "field",
8860
- "name": "leftValueItems",
8877
+ "name": "sourceTyped",
8861
8878
  "type": {
8862
- "text": "Array<any>"
8863
- },
8864
- "default": "[]"
8879
+ "text": "string"
8880
+ }
8865
8881
  },
8866
8882
  {
8867
8883
  "kind": "field",
8868
- "name": "logicalOperator",
8884
+ "name": "sourceTextField",
8869
8885
  "type": {
8870
- "text": "string"
8871
- },
8872
- "default": "null"
8886
+ "text": "TextField"
8887
+ }
8873
8888
  },
8874
8889
  {
8875
8890
  "kind": "field",
8876
- "name": "rightCriteria",
8891
+ "name": "sourceSelect",
8877
8892
  "type": {
8878
- "text": "string"
8893
+ "text": "Select"
8879
8894
  }
8880
8895
  },
8881
8896
  {
8882
8897
  "kind": "field",
8883
- "name": "rightValueText",
8898
+ "name": "reqRepItems",
8884
8899
  "type": {
8885
- "text": "string"
8900
+ "text": "array"
8886
8901
  },
8887
- "default": "null"
8902
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
8888
8903
  },
8889
8904
  {
8890
- "kind": "field",
8905
+ "kind": "method",
8906
+ "name": "deleteParameter"
8907
+ },
8908
+ {
8909
+ "kind": "method",
8910
+ "name": "parameterChanged"
8911
+ },
8912
+ {
8913
+ "kind": "method",
8914
+ "name": "nameChanged"
8915
+ },
8916
+ {
8917
+ "kind": "method",
8918
+ "name": "labelChanged"
8919
+ },
8920
+ {
8921
+ "kind": "method",
8922
+ "name": "typeChanged"
8923
+ },
8924
+ {
8925
+ "kind": "method",
8926
+ "name": "sourceTypeChanged"
8927
+ },
8928
+ {
8929
+ "kind": "method",
8930
+ "name": "sourceSelectedChanged"
8931
+ },
8932
+ {
8933
+ "kind": "method",
8934
+ "name": "sourceTypedChanged"
8935
+ },
8936
+ {
8937
+ "kind": "method",
8938
+ "name": "genericChanged",
8939
+ "privacy": "private",
8940
+ "parameters": [
8941
+ {
8942
+ "name": "parameterAttribute"
8943
+ },
8944
+ {
8945
+ "name": "value"
8946
+ }
8947
+ ]
8948
+ }
8949
+ ],
8950
+ "events": [
8951
+ {
8952
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
8953
+ "name": "delete"
8954
+ },
8955
+ {
8956
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
8957
+ "name": "edit"
8958
+ }
8959
+ ],
8960
+ "attributes": [
8961
+ {
8962
+ "name": "parameter",
8963
+ "type": {
8964
+ "text": "ParameterBuilderEntity"
8965
+ },
8966
+ "fieldName": "parameter"
8967
+ }
8968
+ ],
8969
+ "superclass": {
8970
+ "name": "GenesisElement",
8971
+ "package": "@genesislcap/web-core"
8972
+ },
8973
+ "tagName": "parameter-builder",
8974
+ "customElement": true
8975
+ }
8976
+ ],
8977
+ "exports": [
8978
+ {
8979
+ "kind": "js",
8980
+ "name": "ParameterBuilder",
8981
+ "declaration": {
8982
+ "name": "ParameterBuilder",
8983
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
8984
+ }
8985
+ },
8986
+ {
8987
+ "kind": "custom-element-definition",
8988
+ "name": "parameter-builder",
8989
+ "declaration": {
8990
+ "name": "ParameterBuilder",
8991
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
8992
+ }
8993
+ }
8994
+ ]
8995
+ },
8996
+ {
8997
+ "kind": "javascript-module",
8998
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
8999
+ "declarations": [
9000
+ {
9001
+ "kind": "variable",
9002
+ "name": "TemplateConditionBuilderTemplate",
9003
+ "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`"
9004
+ }
9005
+ ],
9006
+ "exports": [
9007
+ {
9008
+ "kind": "js",
9009
+ "name": "TemplateConditionBuilderTemplate",
9010
+ "declaration": {
9011
+ "name": "TemplateConditionBuilderTemplate",
9012
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
9013
+ }
9014
+ }
9015
+ ]
9016
+ },
9017
+ {
9018
+ "kind": "javascript-module",
9019
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
9020
+ "declarations": [
9021
+ {
9022
+ "kind": "class",
9023
+ "description": "Condition builder for template notification rules.",
9024
+ "name": "TemplateConditionBuilder",
9025
+ "members": [
9026
+ {
9027
+ "kind": "field",
9028
+ "name": "condition",
9029
+ "type": {
9030
+ "text": "ConditionBuilderEntity"
9031
+ }
9032
+ },
9033
+ {
9034
+ "kind": "field",
9035
+ "name": "parameters",
9036
+ "type": {
9037
+ "text": "Array<ParameterBuilderEntity>"
9038
+ },
9039
+ "default": "[]"
9040
+ },
9041
+ {
9042
+ "kind": "field",
9043
+ "name": "fields",
9044
+ "type": {
9045
+ "text": "Field[]"
9046
+ },
9047
+ "default": "[]"
9048
+ },
9049
+ {
9050
+ "kind": "field",
9051
+ "name": "isFirst",
9052
+ "type": {
9053
+ "text": "boolean"
9054
+ },
9055
+ "default": "false"
9056
+ },
9057
+ {
9058
+ "kind": "field",
9059
+ "name": "joinOperator",
9060
+ "type": {
9061
+ "text": "string"
9062
+ }
9063
+ },
9064
+ {
9065
+ "kind": "field",
9066
+ "name": "leftValue",
9067
+ "type": {
9068
+ "text": "any"
9069
+ },
9070
+ "default": "null"
9071
+ },
9072
+ {
9073
+ "kind": "field",
9074
+ "name": "leftValueItems",
9075
+ "type": {
9076
+ "text": "Array<any>"
9077
+ },
9078
+ "default": "[]"
9079
+ },
9080
+ {
9081
+ "kind": "field",
9082
+ "name": "logicalOperator",
9083
+ "type": {
9084
+ "text": "string"
9085
+ },
9086
+ "default": "null"
9087
+ },
9088
+ {
9089
+ "kind": "field",
9090
+ "name": "rightCriteria",
9091
+ "type": {
9092
+ "text": "string"
9093
+ }
9094
+ },
9095
+ {
9096
+ "kind": "field",
9097
+ "name": "rightValueText",
9098
+ "type": {
9099
+ "text": "string"
9100
+ },
9101
+ "default": "null"
9102
+ },
9103
+ {
9104
+ "kind": "field",
8891
9105
  "name": "rightValueSelect",
8892
9106
  "type": {
8893
9107
  "text": "string"
@@ -9203,220 +9417,6 @@
9203
9417
  }
9204
9418
  }
9205
9419
  ]
9206
- },
9207
- {
9208
- "kind": "javascript-module",
9209
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
9210
- "declarations": [
9211
- {
9212
- "kind": "variable",
9213
- "name": "ParameterBuilderStyles",
9214
- "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`"
9215
- }
9216
- ],
9217
- "exports": [
9218
- {
9219
- "kind": "js",
9220
- "name": "ParameterBuilderStyles",
9221
- "declaration": {
9222
- "name": "ParameterBuilderStyles",
9223
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
9224
- }
9225
- }
9226
- ]
9227
- },
9228
- {
9229
- "kind": "javascript-module",
9230
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
9231
- "declarations": [
9232
- {
9233
- "kind": "variable",
9234
- "name": "ParameterBuilderTemplate",
9235
- "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`"
9236
- }
9237
- ],
9238
- "exports": [
9239
- {
9240
- "kind": "js",
9241
- "name": "ParameterBuilderTemplate",
9242
- "declaration": {
9243
- "name": "ParameterBuilderTemplate",
9244
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
9245
- }
9246
- }
9247
- ]
9248
- },
9249
- {
9250
- "kind": "javascript-module",
9251
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
9252
- "declarations": [
9253
- {
9254
- "kind": "class",
9255
- "description": "Parameter builder for notification templates.",
9256
- "name": "ParameterBuilder",
9257
- "members": [
9258
- {
9259
- "kind": "field",
9260
- "name": "parameter",
9261
- "type": {
9262
- "text": "ParameterBuilderEntity"
9263
- }
9264
- },
9265
- {
9266
- "kind": "field",
9267
- "name": "name",
9268
- "type": {
9269
- "text": "string"
9270
- }
9271
- },
9272
- {
9273
- "kind": "field",
9274
- "name": "label",
9275
- "type": {
9276
- "text": "string"
9277
- }
9278
- },
9279
- {
9280
- "kind": "field",
9281
- "name": "type",
9282
- "type": {
9283
- "text": "string"
9284
- }
9285
- },
9286
- {
9287
- "kind": "field",
9288
- "name": "sourceType",
9289
- "type": {
9290
- "text": "string"
9291
- }
9292
- },
9293
- {
9294
- "kind": "field",
9295
- "name": "sourceSelected",
9296
- "type": {
9297
- "text": "string"
9298
- }
9299
- },
9300
- {
9301
- "kind": "field",
9302
- "name": "sourceTyped",
9303
- "type": {
9304
- "text": "string"
9305
- }
9306
- },
9307
- {
9308
- "kind": "field",
9309
- "name": "sourceTextField",
9310
- "type": {
9311
- "text": "TextField"
9312
- }
9313
- },
9314
- {
9315
- "kind": "field",
9316
- "name": "sourceSelect",
9317
- "type": {
9318
- "text": "Select"
9319
- }
9320
- },
9321
- {
9322
- "kind": "field",
9323
- "name": "reqRepItems",
9324
- "type": {
9325
- "text": "array"
9326
- },
9327
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
9328
- },
9329
- {
9330
- "kind": "method",
9331
- "name": "deleteParameter"
9332
- },
9333
- {
9334
- "kind": "method",
9335
- "name": "parameterChanged"
9336
- },
9337
- {
9338
- "kind": "method",
9339
- "name": "nameChanged"
9340
- },
9341
- {
9342
- "kind": "method",
9343
- "name": "labelChanged"
9344
- },
9345
- {
9346
- "kind": "method",
9347
- "name": "typeChanged"
9348
- },
9349
- {
9350
- "kind": "method",
9351
- "name": "sourceTypeChanged"
9352
- },
9353
- {
9354
- "kind": "method",
9355
- "name": "sourceSelectedChanged"
9356
- },
9357
- {
9358
- "kind": "method",
9359
- "name": "sourceTypedChanged"
9360
- },
9361
- {
9362
- "kind": "method",
9363
- "name": "genericChanged",
9364
- "privacy": "private",
9365
- "parameters": [
9366
- {
9367
- "name": "parameterAttribute"
9368
- },
9369
- {
9370
- "name": "value"
9371
- }
9372
- ]
9373
- }
9374
- ],
9375
- "events": [
9376
- {
9377
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
9378
- "name": "delete"
9379
- },
9380
- {
9381
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
9382
- "name": "edit"
9383
- }
9384
- ],
9385
- "attributes": [
9386
- {
9387
- "name": "parameter",
9388
- "type": {
9389
- "text": "ParameterBuilderEntity"
9390
- },
9391
- "fieldName": "parameter"
9392
- }
9393
- ],
9394
- "superclass": {
9395
- "name": "GenesisElement",
9396
- "package": "@genesislcap/web-core"
9397
- },
9398
- "tagName": "parameter-builder",
9399
- "customElement": true
9400
- }
9401
- ],
9402
- "exports": [
9403
- {
9404
- "kind": "js",
9405
- "name": "ParameterBuilder",
9406
- "declaration": {
9407
- "name": "ParameterBuilder",
9408
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9409
- }
9410
- },
9411
- {
9412
- "kind": "custom-element-definition",
9413
- "name": "parameter-builder",
9414
- "declaration": {
9415
- "name": "ParameterBuilder",
9416
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9417
- }
9418
- }
9419
- ]
9420
9420
  }
9421
9421
  ]
9422
9422
  }