@genesislcap/pbc-notify-ui 15.46.6-alpha-606571609.0 → 15.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -505,27 +505,6 @@
505
505
  }
506
506
  ]
507
507
  },
508
- {
509
- "kind": "javascript-module",
510
- "path": "src/styles/scrollbar.styles.ts",
511
- "declarations": [
512
- {
513
- "kind": "variable",
514
- "name": "scrollbarStyles",
515
- "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`"
516
- }
517
- ],
518
- "exports": [
519
- {
520
- "kind": "js",
521
- "name": "scrollbarStyles",
522
- "declaration": {
523
- "name": "scrollbarStyles",
524
- "module": "src/styles/scrollbar.styles.ts"
525
- }
526
- }
527
- ]
528
- },
529
508
  {
530
509
  "kind": "javascript-module",
531
510
  "path": "src/utils/eventDetail.ts",
@@ -847,6 +826,27 @@
847
826
  }
848
827
  ]
849
828
  },
829
+ {
830
+ "kind": "javascript-module",
831
+ "path": "src/styles/scrollbar.styles.ts",
832
+ "declarations": [
833
+ {
834
+ "kind": "variable",
835
+ "name": "scrollbarStyles",
836
+ "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`"
837
+ }
838
+ ],
839
+ "exports": [
840
+ {
841
+ "kind": "js",
842
+ "name": "scrollbarStyles",
843
+ "declaration": {
844
+ "name": "scrollbarStyles",
845
+ "module": "src/styles/scrollbar.styles.ts"
846
+ }
847
+ }
848
+ ]
849
+ },
850
850
  {
851
851
  "kind": "javascript-module",
852
852
  "path": "src/components/foundation-inbox/inbox.styles.ts",
@@ -5896,6 +5896,149 @@
5896
5896
  }
5897
5897
  ]
5898
5898
  },
5899
+ {
5900
+ "kind": "javascript-module",
5901
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
5902
+ "declarations": [
5903
+ {
5904
+ "kind": "variable",
5905
+ "name": "noItemsClass",
5906
+ "type": {
5907
+ "text": "string"
5908
+ },
5909
+ "default": "'no-items'",
5910
+ "description": "Class to use when there are no items"
5911
+ },
5912
+ {
5913
+ "kind": "variable",
5914
+ "name": "FoundationInboxCounterStyles",
5915
+ "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`"
5916
+ }
5917
+ ],
5918
+ "exports": [
5919
+ {
5920
+ "kind": "js",
5921
+ "name": "noItemsClass",
5922
+ "declaration": {
5923
+ "name": "noItemsClass",
5924
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
5925
+ }
5926
+ },
5927
+ {
5928
+ "kind": "js",
5929
+ "name": "FoundationInboxCounterStyles",
5930
+ "declaration": {
5931
+ "name": "FoundationInboxCounterStyles",
5932
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
5933
+ }
5934
+ }
5935
+ ]
5936
+ },
5937
+ {
5938
+ "kind": "javascript-module",
5939
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
5940
+ "declarations": [
5941
+ {
5942
+ "kind": "variable",
5943
+ "name": "FoundationInboxCounterTemplate",
5944
+ "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`"
5945
+ }
5946
+ ],
5947
+ "exports": [
5948
+ {
5949
+ "kind": "js",
5950
+ "name": "FoundationInboxCounterTemplate",
5951
+ "declaration": {
5952
+ "name": "FoundationInboxCounterTemplate",
5953
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
5954
+ }
5955
+ }
5956
+ ]
5957
+ },
5958
+ {
5959
+ "kind": "javascript-module",
5960
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
5961
+ "declarations": [
5962
+ {
5963
+ "kind": "class",
5964
+ "description": "",
5965
+ "name": "FoundationInboxCounter",
5966
+ "members": [
5967
+ {
5968
+ "kind": "field",
5969
+ "name": "value",
5970
+ "type": {
5971
+ "text": "number"
5972
+ },
5973
+ "default": "0"
5974
+ },
5975
+ {
5976
+ "kind": "field",
5977
+ "name": "connect",
5978
+ "type": {
5979
+ "text": "Connect"
5980
+ }
5981
+ },
5982
+ {
5983
+ "kind": "field",
5984
+ "name": "inboxService",
5985
+ "type": {
5986
+ "text": "FoundationInboxService"
5987
+ }
5988
+ },
5989
+ {
5990
+ "kind": "field",
5991
+ "name": "connectionSub",
5992
+ "type": {
5993
+ "text": "Subscription"
5994
+ },
5995
+ "privacy": "private"
5996
+ },
5997
+ {
5998
+ "kind": "method",
5999
+ "name": "subscribeToAlerts",
6000
+ "privacy": "private",
6001
+ "return": {
6002
+ "type": {
6003
+ "text": "Promise<void>"
6004
+ }
6005
+ },
6006
+ "description": "Subscribes to alerts from the inbox service"
6007
+ },
6008
+ {
6009
+ "kind": "field",
6010
+ "name": "subscriptionHandler",
6011
+ "privacy": "private",
6012
+ "description": "Handles subscription updates from the inbox service"
6013
+ }
6014
+ ],
6015
+ "superclass": {
6016
+ "name": "GenesisElement",
6017
+ "package": "@genesislcap/web-core"
6018
+ },
6019
+ "tagName": "foundation-inbox-counter",
6020
+ "customElement": true
6021
+ }
6022
+ ],
6023
+ "exports": [
6024
+ {
6025
+ "kind": "js",
6026
+ "name": "FoundationInboxCounter",
6027
+ "declaration": {
6028
+ "name": "FoundationInboxCounter",
6029
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
6030
+ }
6031
+ },
6032
+ {
6033
+ "kind": "custom-element-definition",
6034
+ "name": "foundation-inbox-counter",
6035
+ "declaration": {
6036
+ "name": "FoundationInboxCounter",
6037
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
6038
+ }
6039
+ }
6040
+ ]
6041
+ },
5899
6042
  {
5900
6043
  "kind": "javascript-module",
5901
6044
  "path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts",
@@ -7230,222 +7373,79 @@
7230
7373
  },
7231
7374
  {
7232
7375
  "kind": "javascript-module",
7233
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
7376
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
7234
7377
  "declarations": [
7235
7378
  {
7236
7379
  "kind": "variable",
7237
- "name": "noItemsClass",
7238
- "type": {
7239
- "text": "string"
7240
- },
7241
- "default": "'no-items'",
7242
- "description": "Class to use when there are no items"
7243
- },
7244
- {
7245
- "kind": "variable",
7246
- "name": "FoundationInboxCounterStyles",
7247
- "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`"
7380
+ "name": "InboxSubscriptionStyles",
7381
+ "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`"
7248
7382
  }
7249
7383
  ],
7250
7384
  "exports": [
7251
7385
  {
7252
7386
  "kind": "js",
7253
- "name": "noItemsClass",
7254
- "declaration": {
7255
- "name": "noItemsClass",
7256
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
7257
- }
7258
- },
7259
- {
7260
- "kind": "js",
7261
- "name": "FoundationInboxCounterStyles",
7387
+ "name": "InboxSubscriptionStyles",
7262
7388
  "declaration": {
7263
- "name": "FoundationInboxCounterStyles",
7264
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
7389
+ "name": "InboxSubscriptionStyles",
7390
+ "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
7265
7391
  }
7266
7392
  }
7267
7393
  ]
7268
7394
  },
7269
7395
  {
7270
7396
  "kind": "javascript-module",
7271
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
7397
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
7272
7398
  "declarations": [
7273
7399
  {
7274
7400
  "kind": "variable",
7275
- "name": "FoundationInboxCounterTemplate",
7276
- "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`"
7401
+ "name": "InboxSubscriptionTemplate",
7402
+ "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) => x.visibleParameters.length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n (x) => x.visibleParameters,\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`"
7277
7403
  }
7278
7404
  ],
7279
7405
  "exports": [
7280
7406
  {
7281
7407
  "kind": "js",
7282
- "name": "FoundationInboxCounterTemplate",
7408
+ "name": "InboxSubscriptionTemplate",
7283
7409
  "declaration": {
7284
- "name": "FoundationInboxCounterTemplate",
7285
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
7410
+ "name": "InboxSubscriptionTemplate",
7411
+ "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
7286
7412
  }
7287
7413
  }
7288
7414
  ]
7289
7415
  },
7290
7416
  {
7291
7417
  "kind": "javascript-module",
7292
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
7418
+ "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
7293
7419
  "declarations": [
7294
7420
  {
7295
7421
  "kind": "class",
7296
- "description": "",
7297
- "name": "FoundationInboxCounter",
7422
+ "description": "Inbox subscription configuration UI.",
7423
+ "name": "InboxSubscription",
7298
7424
  "members": [
7299
7425
  {
7300
7426
  "kind": "field",
7301
- "name": "value",
7302
- "type": {
7303
- "text": "number"
7304
- },
7305
- "default": "0"
7427
+ "name": "template"
7306
7428
  },
7307
7429
  {
7308
7430
  "kind": "field",
7309
- "name": "connect",
7431
+ "name": "inline",
7310
7432
  "type": {
7311
- "text": "Connect"
7312
- }
7433
+ "text": "boolean"
7434
+ },
7435
+ "default": "false"
7313
7436
  },
7314
7437
  {
7315
7438
  "kind": "field",
7316
- "name": "inboxService",
7439
+ "name": "extraParameterDetails",
7317
7440
  "type": {
7318
- "text": "FoundationInboxService"
7319
- }
7441
+ "text": "Record<string, string>"
7442
+ },
7443
+ "default": "{}",
7444
+ "description": "Merged into subscribe payload (e.g. CHANNEL topic). Hidden from the form."
7320
7445
  },
7321
7446
  {
7322
7447
  "kind": "field",
7323
- "name": "connectionSub",
7324
- "type": {
7325
- "text": "Subscription"
7326
- },
7327
- "privacy": "private"
7328
- },
7329
- {
7330
- "kind": "method",
7331
- "name": "subscribeToAlerts",
7332
- "privacy": "private",
7333
- "return": {
7334
- "type": {
7335
- "text": "Promise<void>"
7336
- }
7337
- },
7338
- "description": "Subscribes to alerts from the inbox service"
7339
- },
7340
- {
7341
- "kind": "field",
7342
- "name": "subscriptionHandler",
7343
- "privacy": "private",
7344
- "description": "Handles subscription updates from the inbox service"
7345
- }
7346
- ],
7347
- "superclass": {
7348
- "name": "GenesisElement",
7349
- "package": "@genesislcap/web-core"
7350
- },
7351
- "tagName": "foundation-inbox-counter",
7352
- "customElement": true
7353
- }
7354
- ],
7355
- "exports": [
7356
- {
7357
- "kind": "js",
7358
- "name": "FoundationInboxCounter",
7359
- "declaration": {
7360
- "name": "FoundationInboxCounter",
7361
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
7362
- }
7363
- },
7364
- {
7365
- "kind": "custom-element-definition",
7366
- "name": "foundation-inbox-counter",
7367
- "declaration": {
7368
- "name": "FoundationInboxCounter",
7369
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
7370
- }
7371
- }
7372
- ]
7373
- },
7374
- {
7375
- "kind": "javascript-module",
7376
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
7377
- "declarations": [
7378
- {
7379
- "kind": "variable",
7380
- "name": "InboxSubscriptionStyles",
7381
- "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`"
7382
- }
7383
- ],
7384
- "exports": [
7385
- {
7386
- "kind": "js",
7387
- "name": "InboxSubscriptionStyles",
7388
- "declaration": {
7389
- "name": "InboxSubscriptionStyles",
7390
- "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
7391
- }
7392
- }
7393
- ]
7394
- },
7395
- {
7396
- "kind": "javascript-module",
7397
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
7398
- "declarations": [
7399
- {
7400
- "kind": "variable",
7401
- "name": "InboxSubscriptionTemplate",
7402
- "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) => x.visibleParameters.length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n (x) => x.visibleParameters,\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`"
7403
- }
7404
- ],
7405
- "exports": [
7406
- {
7407
- "kind": "js",
7408
- "name": "InboxSubscriptionTemplate",
7409
- "declaration": {
7410
- "name": "InboxSubscriptionTemplate",
7411
- "module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
7412
- }
7413
- }
7414
- ]
7415
- },
7416
- {
7417
- "kind": "javascript-module",
7418
- "path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
7419
- "declarations": [
7420
- {
7421
- "kind": "class",
7422
- "description": "Inbox subscription configuration UI.",
7423
- "name": "InboxSubscription",
7424
- "members": [
7425
- {
7426
- "kind": "field",
7427
- "name": "template"
7428
- },
7429
- {
7430
- "kind": "field",
7431
- "name": "inline",
7432
- "type": {
7433
- "text": "boolean"
7434
- },
7435
- "default": "false"
7436
- },
7437
- {
7438
- "kind": "field",
7439
- "name": "extraParameterDetails",
7440
- "type": {
7441
- "text": "Record<string, string>"
7442
- },
7443
- "default": "{}",
7444
- "description": "Merged into subscribe payload (e.g. CHANNEL topic). Hidden from the form."
7445
- },
7446
- {
7447
- "kind": "field",
7448
- "name": "parametersDetails",
7448
+ "name": "parametersDetails",
7449
7449
  "type": {
7450
7450
  "text": "object"
7451
7451
  },
@@ -7604,70 +7604,70 @@
7604
7604
  },
7605
7605
  {
7606
7606
  "kind": "javascript-module",
7607
- "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7607
+ "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7608
7608
  "declarations": [
7609
7609
  {
7610
7610
  "kind": "class",
7611
7611
  "description": "",
7612
- "name": "NotifyAuditManagement",
7612
+ "name": "RouteManagement",
7613
7613
  "superclass": {
7614
7614
  "name": "GenesisElement",
7615
7615
  "package": "@genesislcap/web-core"
7616
7616
  },
7617
- "tagName": "notify-audit-management",
7617
+ "tagName": "route-management",
7618
7618
  "customElement": true
7619
7619
  }
7620
7620
  ],
7621
7621
  "exports": [
7622
7622
  {
7623
7623
  "kind": "js",
7624
- "name": "NotifyAuditManagement",
7624
+ "name": "RouteManagement",
7625
7625
  "declaration": {
7626
- "name": "NotifyAuditManagement",
7627
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7626
+ "name": "RouteManagement",
7627
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7628
7628
  }
7629
7629
  },
7630
7630
  {
7631
7631
  "kind": "custom-element-definition",
7632
- "name": "notify-audit-management",
7632
+ "name": "route-management",
7633
7633
  "declaration": {
7634
- "name": "NotifyAuditManagement",
7635
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7634
+ "name": "RouteManagement",
7635
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7636
7636
  }
7637
7637
  }
7638
7638
  ]
7639
7639
  },
7640
7640
  {
7641
7641
  "kind": "javascript-module",
7642
- "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7642
+ "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7643
7643
  "declarations": [
7644
7644
  {
7645
7645
  "kind": "class",
7646
7646
  "description": "",
7647
- "name": "RouteManagement",
7647
+ "name": "NotifyAuditManagement",
7648
7648
  "superclass": {
7649
7649
  "name": "GenesisElement",
7650
7650
  "package": "@genesislcap/web-core"
7651
7651
  },
7652
- "tagName": "route-management",
7652
+ "tagName": "notify-audit-management",
7653
7653
  "customElement": true
7654
7654
  }
7655
7655
  ],
7656
7656
  "exports": [
7657
7657
  {
7658
7658
  "kind": "js",
7659
- "name": "RouteManagement",
7659
+ "name": "NotifyAuditManagement",
7660
7660
  "declaration": {
7661
- "name": "RouteManagement",
7662
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7661
+ "name": "NotifyAuditManagement",
7662
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7663
7663
  }
7664
7664
  },
7665
7665
  {
7666
7666
  "kind": "custom-element-definition",
7667
- "name": "route-management",
7667
+ "name": "notify-audit-management",
7668
7668
  "declaration": {
7669
- "name": "RouteManagement",
7670
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7669
+ "name": "NotifyAuditManagement",
7670
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7671
7671
  }
7672
7672
  }
7673
7673
  ]
@@ -10267,498 +10267,498 @@
10267
10267
  },
10268
10268
  {
10269
10269
  "kind": "javascript-module",
10270
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10271
- "declarations": [
10272
- {
10273
- "kind": "variable",
10274
- "name": "ParameterBuilderStyles",
10275
- "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`"
10276
- }
10277
- ],
10278
- "exports": [
10279
- {
10280
- "kind": "js",
10281
- "name": "ParameterBuilderStyles",
10282
- "declaration": {
10283
- "name": "ParameterBuilderStyles",
10284
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10285
- }
10286
- }
10287
- ]
10288
- },
10289
- {
10290
- "kind": "javascript-module",
10291
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10270
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10292
10271
  "declarations": [
10293
10272
  {
10294
10273
  "kind": "variable",
10295
- "name": "ParameterBuilderTemplate",
10296
- "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`"
10274
+ "name": "TemplateConditionBuilderTemplate",
10275
+ "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 (x) => x.rightCriteriaOptions,\n html`\n <rapid-option value=${(x) => x}>${(x) => rightCriteriaLabel(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`"
10297
10276
  }
10298
10277
  ],
10299
10278
  "exports": [
10300
10279
  {
10301
10280
  "kind": "js",
10302
- "name": "ParameterBuilderTemplate",
10281
+ "name": "TemplateConditionBuilderTemplate",
10303
10282
  "declaration": {
10304
- "name": "ParameterBuilderTemplate",
10305
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10283
+ "name": "TemplateConditionBuilderTemplate",
10284
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10306
10285
  }
10307
10286
  }
10308
10287
  ]
10309
10288
  },
10310
10289
  {
10311
10290
  "kind": "javascript-module",
10312
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10291
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10313
10292
  "declarations": [
10314
10293
  {
10315
10294
  "kind": "class",
10316
- "description": "Parameter builder for notification templates.",
10317
- "name": "ParameterBuilder",
10295
+ "description": "Condition builder for template notification rules.",
10296
+ "name": "TemplateConditionBuilder",
10318
10297
  "members": [
10319
10298
  {
10320
10299
  "kind": "field",
10321
- "name": "parameter",
10300
+ "name": "condition",
10322
10301
  "type": {
10323
- "text": "ParameterBuilderEntity"
10302
+ "text": "ConditionBuilderEntity"
10324
10303
  }
10325
10304
  },
10326
10305
  {
10327
10306
  "kind": "field",
10328
- "name": "name",
10307
+ "name": "parameters",
10329
10308
  "type": {
10330
- "text": "string"
10331
- }
10309
+ "text": "Array<ParameterBuilderEntity>"
10310
+ },
10311
+ "default": "[]"
10332
10312
  },
10333
10313
  {
10334
10314
  "kind": "field",
10335
- "name": "label",
10315
+ "name": "fields",
10336
10316
  "type": {
10337
- "text": "string"
10338
- }
10317
+ "text": "Field[]"
10318
+ },
10319
+ "default": "[]"
10339
10320
  },
10340
10321
  {
10341
10322
  "kind": "field",
10342
- "name": "type",
10323
+ "name": "isFirst",
10343
10324
  "type": {
10344
- "text": "string"
10345
- }
10325
+ "text": "boolean"
10326
+ },
10327
+ "default": "false"
10346
10328
  },
10347
10329
  {
10348
10330
  "kind": "field",
10349
- "name": "sourceType",
10331
+ "name": "joinOperator",
10350
10332
  "type": {
10351
10333
  "text": "string"
10352
10334
  }
10353
10335
  },
10354
10336
  {
10355
10337
  "kind": "field",
10356
- "name": "sourceSelected",
10338
+ "name": "leftValue",
10357
10339
  "type": {
10358
- "text": "string"
10359
- }
10340
+ "text": "any"
10341
+ },
10342
+ "default": "null"
10360
10343
  },
10361
10344
  {
10362
10345
  "kind": "field",
10363
- "name": "sourceTyped",
10346
+ "name": "leftValueItems",
10364
10347
  "type": {
10365
- "text": "string"
10366
- }
10348
+ "text": "Array<any>"
10349
+ },
10350
+ "default": "[]"
10367
10351
  },
10368
10352
  {
10369
10353
  "kind": "field",
10370
- "name": "sourceTextField",
10354
+ "name": "logicalOperator",
10371
10355
  "type": {
10372
- "text": "TextField"
10373
- }
10356
+ "text": "string"
10357
+ },
10358
+ "default": "null"
10374
10359
  },
10375
10360
  {
10376
10361
  "kind": "field",
10377
- "name": "sourceSelect",
10362
+ "name": "rightCriteria",
10378
10363
  "type": {
10379
- "text": "Select"
10364
+ "text": "string"
10380
10365
  }
10381
10366
  },
10382
10367
  {
10383
10368
  "kind": "field",
10384
- "name": "reqRepItems",
10369
+ "name": "rightValueText",
10385
10370
  "type": {
10386
- "text": "array"
10371
+ "text": "string"
10387
10372
  },
10388
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10373
+ "default": "null"
10374
+ },
10375
+ {
10376
+ "kind": "field",
10377
+ "name": "rightValueSelect",
10378
+ "type": {
10379
+ "text": "string"
10380
+ },
10381
+ "default": "null"
10382
+ },
10383
+ {
10384
+ "kind": "field",
10385
+ "name": "rightValueItems",
10386
+ "type": {
10387
+ "text": "Array<any>"
10388
+ },
10389
+ "default": "[]"
10390
+ },
10391
+ {
10392
+ "kind": "field",
10393
+ "name": "rightValueMultiSelect",
10394
+ "type": {
10395
+ "text": "string[]"
10396
+ },
10397
+ "default": "[]"
10398
+ },
10399
+ {
10400
+ "kind": "field",
10401
+ "name": "rightCriteriaOptions",
10402
+ "type": {
10403
+ "text": "RightCriteria[]"
10404
+ },
10405
+ "readonly": true
10406
+ },
10407
+ {
10408
+ "kind": "field",
10409
+ "name": "isStringLeftValue",
10410
+ "type": {
10411
+ "text": "boolean"
10412
+ },
10413
+ "privacy": "private",
10414
+ "readonly": true
10389
10415
  },
10390
10416
  {
10391
10417
  "kind": "method",
10392
- "name": "deleteParameter"
10418
+ "name": "deleteCondition"
10393
10419
  },
10394
10420
  {
10395
10421
  "kind": "method",
10396
- "name": "parameterChanged"
10422
+ "name": "conditionChanged"
10397
10423
  },
10398
10424
  {
10399
10425
  "kind": "method",
10400
- "name": "nameChanged"
10426
+ "name": "joinOperatorChanged"
10401
10427
  },
10402
10428
  {
10403
10429
  "kind": "method",
10404
- "name": "labelChanged"
10430
+ "name": "parametersChanged"
10405
10431
  },
10406
10432
  {
10407
10433
  "kind": "method",
10408
- "name": "typeChanged"
10434
+ "name": "getMatchingParameter",
10435
+ "privacy": "private",
10436
+ "return": {
10437
+ "type": {
10438
+ "text": "ParameterBuilderEntity | undefined"
10439
+ }
10440
+ }
10409
10441
  },
10410
10442
  {
10411
10443
  "kind": "method",
10412
- "name": "sourceTypeChanged"
10444
+ "name": "syncParameterBinding",
10445
+ "privacy": "private",
10446
+ "return": {
10447
+ "type": {
10448
+ "text": "boolean"
10449
+ }
10450
+ }
10413
10451
  },
10414
10452
  {
10415
10453
  "kind": "method",
10416
- "name": "sourceSelectedChanged"
10454
+ "name": "resetToValueEditor",
10455
+ "privacy": "private"
10417
10456
  },
10418
10457
  {
10419
10458
  "kind": "method",
10420
- "name": "sourceTypedChanged"
10459
+ "name": "fieldsChanged"
10421
10460
  },
10422
10461
  {
10423
10462
  "kind": "method",
10424
- "name": "genericChanged",
10425
- "privacy": "private",
10426
- "parameters": [
10427
- {
10428
- "name": "parameterAttribute"
10429
- },
10430
- {
10431
- "name": "value"
10463
+ "name": "logicalOperatorChanged"
10464
+ },
10465
+ {
10466
+ "kind": "method",
10467
+ "name": "assignLeftValue",
10468
+ "privacy": "private"
10469
+ },
10470
+ {
10471
+ "kind": "method",
10472
+ "name": "leftValueChanged"
10473
+ },
10474
+ {
10475
+ "kind": "method",
10476
+ "name": "assignRightValue",
10477
+ "privacy": "private"
10478
+ },
10479
+ {
10480
+ "kind": "method",
10481
+ "name": "rightCriteriaChanged"
10482
+ },
10483
+ {
10484
+ "kind": "method",
10485
+ "name": "clearRightValueText",
10486
+ "privacy": "private"
10487
+ },
10488
+ {
10489
+ "kind": "method",
10490
+ "name": "clearRightValueSelect",
10491
+ "privacy": "private"
10492
+ },
10493
+ {
10494
+ "kind": "method",
10495
+ "name": "rightValueTextChanged"
10496
+ },
10497
+ {
10498
+ "kind": "method",
10499
+ "name": "rightValueSelectChanged"
10500
+ },
10501
+ {
10502
+ "kind": "method",
10503
+ "name": "rightValueMultiSelectChanged"
10504
+ },
10505
+ {
10506
+ "kind": "method",
10507
+ "name": "getEnumValues",
10508
+ "return": {
10509
+ "type": {
10510
+ "text": "string[]"
10432
10511
  }
10433
- ]
10512
+ }
10434
10513
  }
10435
10514
  ],
10436
10515
  "events": [
10437
10516
  {
10438
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10517
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10439
10518
  "name": "delete"
10440
10519
  },
10441
10520
  {
10442
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10521
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10443
10522
  "name": "edit"
10444
10523
  }
10445
10524
  ],
10446
- "attributes": [
10447
- {
10448
- "name": "parameter",
10449
- "type": {
10450
- "text": "ParameterBuilderEntity"
10451
- },
10452
- "fieldName": "parameter"
10453
- }
10454
- ],
10455
10525
  "superclass": {
10456
10526
  "name": "GenesisElement",
10457
10527
  "package": "@genesislcap/web-core"
10458
10528
  },
10459
- "tagName": "parameter-builder",
10529
+ "tagName": "template-condition-builder",
10460
10530
  "customElement": true
10461
10531
  }
10462
10532
  ],
10463
10533
  "exports": [
10464
10534
  {
10465
10535
  "kind": "js",
10466
- "name": "ParameterBuilder",
10536
+ "name": "TemplateConditionBuilder",
10467
10537
  "declaration": {
10468
- "name": "ParameterBuilder",
10469
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10538
+ "name": "TemplateConditionBuilder",
10539
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10470
10540
  }
10471
10541
  },
10472
10542
  {
10473
10543
  "kind": "custom-element-definition",
10474
- "name": "parameter-builder",
10544
+ "name": "template-condition-builder",
10475
10545
  "declaration": {
10476
- "name": "ParameterBuilder",
10477
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10546
+ "name": "TemplateConditionBuilder",
10547
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10478
10548
  }
10479
10549
  }
10480
10550
  ]
10481
10551
  },
10482
10552
  {
10483
10553
  "kind": "javascript-module",
10484
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10554
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10485
10555
  "declarations": [
10486
10556
  {
10487
10557
  "kind": "variable",
10488
- "name": "TemplateConditionBuilderTemplate",
10489
- "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 (x) => x.rightCriteriaOptions,\n html`\n <rapid-option value=${(x) => x}>${(x) => rightCriteriaLabel(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`"
10558
+ "name": "ParameterBuilderStyles",
10559
+ "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`"
10490
10560
  }
10491
10561
  ],
10492
10562
  "exports": [
10493
10563
  {
10494
10564
  "kind": "js",
10495
- "name": "TemplateConditionBuilderTemplate",
10565
+ "name": "ParameterBuilderStyles",
10496
10566
  "declaration": {
10497
- "name": "TemplateConditionBuilderTemplate",
10498
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10567
+ "name": "ParameterBuilderStyles",
10568
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10499
10569
  }
10500
10570
  }
10501
10571
  ]
10502
10572
  },
10503
10573
  {
10504
10574
  "kind": "javascript-module",
10505
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10575
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10576
+ "declarations": [
10577
+ {
10578
+ "kind": "variable",
10579
+ "name": "ParameterBuilderTemplate",
10580
+ "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`"
10581
+ }
10582
+ ],
10583
+ "exports": [
10584
+ {
10585
+ "kind": "js",
10586
+ "name": "ParameterBuilderTemplate",
10587
+ "declaration": {
10588
+ "name": "ParameterBuilderTemplate",
10589
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10590
+ }
10591
+ }
10592
+ ]
10593
+ },
10594
+ {
10595
+ "kind": "javascript-module",
10596
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10506
10597
  "declarations": [
10507
10598
  {
10508
10599
  "kind": "class",
10509
- "description": "Condition builder for template notification rules.",
10510
- "name": "TemplateConditionBuilder",
10600
+ "description": "Parameter builder for notification templates.",
10601
+ "name": "ParameterBuilder",
10511
10602
  "members": [
10512
10603
  {
10513
10604
  "kind": "field",
10514
- "name": "condition",
10605
+ "name": "parameter",
10515
10606
  "type": {
10516
- "text": "ConditionBuilderEntity"
10607
+ "text": "ParameterBuilderEntity"
10517
10608
  }
10518
10609
  },
10519
10610
  {
10520
10611
  "kind": "field",
10521
- "name": "parameters",
10522
- "type": {
10523
- "text": "Array<ParameterBuilderEntity>"
10524
- },
10525
- "default": "[]"
10526
- },
10527
- {
10528
- "kind": "field",
10529
- "name": "fields",
10530
- "type": {
10531
- "text": "Field[]"
10532
- },
10533
- "default": "[]"
10534
- },
10535
- {
10536
- "kind": "field",
10537
- "name": "isFirst",
10538
- "type": {
10539
- "text": "boolean"
10540
- },
10541
- "default": "false"
10542
- },
10543
- {
10544
- "kind": "field",
10545
- "name": "joinOperator",
10612
+ "name": "name",
10546
10613
  "type": {
10547
10614
  "text": "string"
10548
10615
  }
10549
10616
  },
10550
10617
  {
10551
10618
  "kind": "field",
10552
- "name": "leftValue",
10553
- "type": {
10554
- "text": "any"
10555
- },
10556
- "default": "null"
10557
- },
10558
- {
10559
- "kind": "field",
10560
- "name": "leftValueItems",
10561
- "type": {
10562
- "text": "Array<any>"
10563
- },
10564
- "default": "[]"
10565
- },
10566
- {
10567
- "kind": "field",
10568
- "name": "logicalOperator",
10619
+ "name": "label",
10569
10620
  "type": {
10570
10621
  "text": "string"
10571
- },
10572
- "default": "null"
10622
+ }
10573
10623
  },
10574
10624
  {
10575
10625
  "kind": "field",
10576
- "name": "rightCriteria",
10626
+ "name": "type",
10577
10627
  "type": {
10578
10628
  "text": "string"
10579
10629
  }
10580
10630
  },
10581
10631
  {
10582
10632
  "kind": "field",
10583
- "name": "rightValueText",
10633
+ "name": "sourceType",
10584
10634
  "type": {
10585
10635
  "text": "string"
10586
- },
10587
- "default": "null"
10636
+ }
10588
10637
  },
10589
10638
  {
10590
10639
  "kind": "field",
10591
- "name": "rightValueSelect",
10640
+ "name": "sourceSelected",
10592
10641
  "type": {
10593
10642
  "text": "string"
10594
- },
10595
- "default": "null"
10643
+ }
10596
10644
  },
10597
10645
  {
10598
10646
  "kind": "field",
10599
- "name": "rightValueItems",
10647
+ "name": "sourceTyped",
10600
10648
  "type": {
10601
- "text": "Array<any>"
10602
- },
10603
- "default": "[]"
10649
+ "text": "string"
10650
+ }
10604
10651
  },
10605
10652
  {
10606
10653
  "kind": "field",
10607
- "name": "rightValueMultiSelect",
10654
+ "name": "sourceTextField",
10608
10655
  "type": {
10609
- "text": "string[]"
10610
- },
10611
- "default": "[]"
10656
+ "text": "TextField"
10657
+ }
10612
10658
  },
10613
10659
  {
10614
10660
  "kind": "field",
10615
- "name": "rightCriteriaOptions",
10661
+ "name": "sourceSelect",
10616
10662
  "type": {
10617
- "text": "RightCriteria[]"
10618
- },
10619
- "readonly": true
10663
+ "text": "Select"
10664
+ }
10620
10665
  },
10621
10666
  {
10622
10667
  "kind": "field",
10623
- "name": "isStringLeftValue",
10668
+ "name": "reqRepItems",
10624
10669
  "type": {
10625
- "text": "boolean"
10670
+ "text": "array"
10626
10671
  },
10627
- "privacy": "private",
10628
- "readonly": true
10629
- },
10630
- {
10631
- "kind": "method",
10632
- "name": "deleteCondition"
10633
- },
10634
- {
10635
- "kind": "method",
10636
- "name": "conditionChanged"
10637
- },
10638
- {
10639
- "kind": "method",
10640
- "name": "joinOperatorChanged"
10641
- },
10642
- {
10643
- "kind": "method",
10644
- "name": "parametersChanged"
10645
- },
10646
- {
10647
- "kind": "method",
10648
- "name": "getMatchingParameter",
10649
- "privacy": "private",
10650
- "return": {
10651
- "type": {
10652
- "text": "ParameterBuilderEntity | undefined"
10653
- }
10654
- }
10655
- },
10656
- {
10657
- "kind": "method",
10658
- "name": "syncParameterBinding",
10659
- "privacy": "private",
10660
- "return": {
10661
- "type": {
10662
- "text": "boolean"
10663
- }
10664
- }
10665
- },
10666
- {
10667
- "kind": "method",
10668
- "name": "resetToValueEditor",
10669
- "privacy": "private"
10670
- },
10671
- {
10672
- "kind": "method",
10673
- "name": "fieldsChanged"
10674
- },
10675
- {
10676
- "kind": "method",
10677
- "name": "logicalOperatorChanged"
10678
- },
10679
- {
10680
- "kind": "method",
10681
- "name": "assignLeftValue",
10682
- "privacy": "private"
10672
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10683
10673
  },
10684
10674
  {
10685
10675
  "kind": "method",
10686
- "name": "leftValueChanged"
10676
+ "name": "deleteParameter"
10687
10677
  },
10688
10678
  {
10689
10679
  "kind": "method",
10690
- "name": "assignRightValue",
10691
- "privacy": "private"
10680
+ "name": "parameterChanged"
10692
10681
  },
10693
10682
  {
10694
10683
  "kind": "method",
10695
- "name": "rightCriteriaChanged"
10684
+ "name": "nameChanged"
10696
10685
  },
10697
10686
  {
10698
10687
  "kind": "method",
10699
- "name": "clearRightValueText",
10700
- "privacy": "private"
10688
+ "name": "labelChanged"
10701
10689
  },
10702
10690
  {
10703
10691
  "kind": "method",
10704
- "name": "clearRightValueSelect",
10705
- "privacy": "private"
10692
+ "name": "typeChanged"
10706
10693
  },
10707
10694
  {
10708
10695
  "kind": "method",
10709
- "name": "rightValueTextChanged"
10696
+ "name": "sourceTypeChanged"
10710
10697
  },
10711
10698
  {
10712
10699
  "kind": "method",
10713
- "name": "rightValueSelectChanged"
10700
+ "name": "sourceSelectedChanged"
10714
10701
  },
10715
10702
  {
10716
10703
  "kind": "method",
10717
- "name": "rightValueMultiSelectChanged"
10704
+ "name": "sourceTypedChanged"
10718
10705
  },
10719
10706
  {
10720
10707
  "kind": "method",
10721
- "name": "getEnumValues",
10722
- "return": {
10723
- "type": {
10724
- "text": "string[]"
10708
+ "name": "genericChanged",
10709
+ "privacy": "private",
10710
+ "parameters": [
10711
+ {
10712
+ "name": "parameterAttribute"
10713
+ },
10714
+ {
10715
+ "name": "value"
10725
10716
  }
10726
- }
10717
+ ]
10727
10718
  }
10728
10719
  ],
10729
10720
  "events": [
10730
10721
  {
10731
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10722
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10732
10723
  "name": "delete"
10733
10724
  },
10734
10725
  {
10735
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10726
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10736
10727
  "name": "edit"
10737
10728
  }
10738
10729
  ],
10730
+ "attributes": [
10731
+ {
10732
+ "name": "parameter",
10733
+ "type": {
10734
+ "text": "ParameterBuilderEntity"
10735
+ },
10736
+ "fieldName": "parameter"
10737
+ }
10738
+ ],
10739
10739
  "superclass": {
10740
10740
  "name": "GenesisElement",
10741
10741
  "package": "@genesislcap/web-core"
10742
10742
  },
10743
- "tagName": "template-condition-builder",
10743
+ "tagName": "parameter-builder",
10744
10744
  "customElement": true
10745
10745
  }
10746
10746
  ],
10747
10747
  "exports": [
10748
10748
  {
10749
10749
  "kind": "js",
10750
- "name": "TemplateConditionBuilder",
10750
+ "name": "ParameterBuilder",
10751
10751
  "declaration": {
10752
- "name": "TemplateConditionBuilder",
10753
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10752
+ "name": "ParameterBuilder",
10753
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10754
10754
  }
10755
10755
  },
10756
10756
  {
10757
10757
  "kind": "custom-element-definition",
10758
- "name": "template-condition-builder",
10758
+ "name": "parameter-builder",
10759
10759
  "declaration": {
10760
- "name": "TemplateConditionBuilder",
10761
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10760
+ "name": "ParameterBuilder",
10761
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10762
10762
  }
10763
10763
  }
10764
10764
  ]