@genesislcap/pbc-notify-ui 14.491.0 → 14.491.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,27 +399,6 @@
399
399
  }
400
400
  ]
401
401
  },
402
- {
403
- "kind": "javascript-module",
404
- "path": "src/styles/scrollbar.styles.ts",
405
- "declarations": [
406
- {
407
- "kind": "variable",
408
- "name": "scrollbarStyles",
409
- "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
410
- }
411
- ],
412
- "exports": [
413
- {
414
- "kind": "js",
415
- "name": "scrollbarStyles",
416
- "declaration": {
417
- "name": "scrollbarStyles",
418
- "module": "src/styles/scrollbar.styles.ts"
419
- }
420
- }
421
- ]
422
- },
423
402
  {
424
403
  "kind": "javascript-module",
425
404
  "path": "src/utils/eventDetail.ts",
@@ -741,6 +720,27 @@
741
720
  }
742
721
  ]
743
722
  },
723
+ {
724
+ "kind": "javascript-module",
725
+ "path": "src/styles/scrollbar.styles.ts",
726
+ "declarations": [
727
+ {
728
+ "kind": "variable",
729
+ "name": "scrollbarStyles",
730
+ "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
731
+ }
732
+ ],
733
+ "exports": [
734
+ {
735
+ "kind": "js",
736
+ "name": "scrollbarStyles",
737
+ "declaration": {
738
+ "name": "scrollbarStyles",
739
+ "module": "src/styles/scrollbar.styles.ts"
740
+ }
741
+ }
742
+ ]
743
+ },
744
744
  {
745
745
  "kind": "javascript-module",
746
746
  "path": "src/components/foundation-inbox/inbox.styles.ts",
@@ -3791,6 +3791,149 @@
3791
3791
  }
3792
3792
  ]
3793
3793
  },
3794
+ {
3795
+ "kind": "javascript-module",
3796
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
3797
+ "declarations": [
3798
+ {
3799
+ "kind": "variable",
3800
+ "name": "noItemsClass",
3801
+ "type": {
3802
+ "text": "string"
3803
+ },
3804
+ "default": "'no-items'",
3805
+ "description": "Class to use when there are no items"
3806
+ },
3807
+ {
3808
+ "kind": "variable",
3809
+ "name": "FoundationInboxCounterStyles",
3810
+ "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`"
3811
+ }
3812
+ ],
3813
+ "exports": [
3814
+ {
3815
+ "kind": "js",
3816
+ "name": "noItemsClass",
3817
+ "declaration": {
3818
+ "name": "noItemsClass",
3819
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
3820
+ }
3821
+ },
3822
+ {
3823
+ "kind": "js",
3824
+ "name": "FoundationInboxCounterStyles",
3825
+ "declaration": {
3826
+ "name": "FoundationInboxCounterStyles",
3827
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
3828
+ }
3829
+ }
3830
+ ]
3831
+ },
3832
+ {
3833
+ "kind": "javascript-module",
3834
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
3835
+ "declarations": [
3836
+ {
3837
+ "kind": "variable",
3838
+ "name": "FoundationInboxCounterTemplate",
3839
+ "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`"
3840
+ }
3841
+ ],
3842
+ "exports": [
3843
+ {
3844
+ "kind": "js",
3845
+ "name": "FoundationInboxCounterTemplate",
3846
+ "declaration": {
3847
+ "name": "FoundationInboxCounterTemplate",
3848
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
3849
+ }
3850
+ }
3851
+ ]
3852
+ },
3853
+ {
3854
+ "kind": "javascript-module",
3855
+ "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
3856
+ "declarations": [
3857
+ {
3858
+ "kind": "class",
3859
+ "description": "",
3860
+ "name": "FoundationInboxCounter",
3861
+ "members": [
3862
+ {
3863
+ "kind": "field",
3864
+ "name": "value",
3865
+ "type": {
3866
+ "text": "number"
3867
+ },
3868
+ "default": "0"
3869
+ },
3870
+ {
3871
+ "kind": "field",
3872
+ "name": "connect",
3873
+ "type": {
3874
+ "text": "Connect"
3875
+ }
3876
+ },
3877
+ {
3878
+ "kind": "field",
3879
+ "name": "inboxService",
3880
+ "type": {
3881
+ "text": "FoundationInboxService"
3882
+ }
3883
+ },
3884
+ {
3885
+ "kind": "field",
3886
+ "name": "connectionSub",
3887
+ "type": {
3888
+ "text": "Subscription"
3889
+ },
3890
+ "privacy": "private"
3891
+ },
3892
+ {
3893
+ "kind": "method",
3894
+ "name": "subscribeToAlerts",
3895
+ "privacy": "private",
3896
+ "return": {
3897
+ "type": {
3898
+ "text": "Promise<void>"
3899
+ }
3900
+ },
3901
+ "description": "Subscribes to alerts from the inbox service"
3902
+ },
3903
+ {
3904
+ "kind": "field",
3905
+ "name": "subscriptionHandler",
3906
+ "privacy": "private",
3907
+ "description": "Handles subscription updates from the inbox service"
3908
+ }
3909
+ ],
3910
+ "superclass": {
3911
+ "name": "GenesisElement",
3912
+ "package": "@genesislcap/web-core"
3913
+ },
3914
+ "tagName": "foundation-inbox-counter",
3915
+ "customElement": true
3916
+ }
3917
+ ],
3918
+ "exports": [
3919
+ {
3920
+ "kind": "js",
3921
+ "name": "FoundationInboxCounter",
3922
+ "declaration": {
3923
+ "name": "FoundationInboxCounter",
3924
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
3925
+ }
3926
+ },
3927
+ {
3928
+ "kind": "custom-element-definition",
3929
+ "name": "foundation-inbox-counter",
3930
+ "declaration": {
3931
+ "name": "FoundationInboxCounter",
3932
+ "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
3933
+ }
3934
+ }
3935
+ ]
3936
+ },
3794
3937
  {
3795
3938
  "kind": "javascript-module",
3796
3939
  "path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts",
@@ -5014,213 +5157,265 @@
5014
5157
  },
5015
5158
  {
5016
5159
  "kind": "javascript-module",
5017
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
5160
+ "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts",
5018
5161
  "declarations": [
5019
5162
  {
5020
5163
  "kind": "variable",
5021
- "name": "noItemsClass",
5022
- "type": {
5023
- "text": "string"
5024
- },
5025
- "default": "'no-items'",
5026
- "description": "Class to use when there are no items"
5027
- },
5028
- {
5029
- "kind": "variable",
5030
- "name": "FoundationInboxCounterStyles",
5031
- "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`"
5164
+ "name": "RuleParameterStyles",
5165
+ "default": "css`\n .control {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n label {\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n .input-field {\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n .input-field::part(root) {\n width: 100%;\n }\n\n rapid-select.input-field {\n width: 100%;\n min-width: 0;\n }\n\n rapid-select.input-field::part(control) {\n width: 100%;\n }\n\n rapid-select.input-field::part(listbox) {\n z-index: 1000;\n max-height: min(240px, 50vh);\n overflow-y: auto;\n box-shadow: 0 4px 16px rgb(0 0 0 / 24%);\n }\n`"
5032
5166
  }
5033
5167
  ],
5034
5168
  "exports": [
5035
5169
  {
5036
5170
  "kind": "js",
5037
- "name": "noItemsClass",
5038
- "declaration": {
5039
- "name": "noItemsClass",
5040
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
5041
- }
5042
- },
5043
- {
5044
- "kind": "js",
5045
- "name": "FoundationInboxCounterStyles",
5171
+ "name": "RuleParameterStyles",
5046
5172
  "declaration": {
5047
- "name": "FoundationInboxCounterStyles",
5048
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
5173
+ "name": "RuleParameterStyles",
5174
+ "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts"
5049
5175
  }
5050
5176
  }
5051
5177
  ]
5052
5178
  },
5053
5179
  {
5054
5180
  "kind": "javascript-module",
5055
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
5181
+ "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts",
5056
5182
  "declarations": [
5057
5183
  {
5058
5184
  "kind": "variable",
5059
- "name": "FoundationInboxCounterTemplate",
5060
- "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`"
5185
+ "name": "RuleParameterTemplate",
5186
+ "default": "html<RuleParameter>`\n <div class=\"control\">\n <label>\n <span style=\"font-weight: bold;\">${(x) => x.parameter.PARAM_LABEL}</span>\n ${(x, c) => humanize(x.operator).toLowerCase()}\n </label>\n\n <!-- USER_TEXT -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT,\n html`\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING,\n html`\n <rapid-text-field\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @input=${(x, c) => x.parameterEdit((c.event.target as HTMLInputElement).value)}\n ></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER,\n html`\n <rapid-number-field\n hide-step\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @input=${(x, c) => x.parameterEdit((c.event.target as HTMLInputElement).value)}\n ></rapid-number-field>\n `,\n )}\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN,\n html`\n <rapid-switch\n class=\"input-field\"\n ?checked=${(x) => x.inputValue === 'true'}\n @change=${(x, c) =>\n x.parameterEdit(String((c.event.target as HTMLInputElement).checked))}\n ></rapid-switch>\n `,\n )}\n `,\n )}\n\n <!-- DEFINED_GROUP -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html`\n <rapid-select\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @change=${(x, c) => x.parameterEdit((c.event.currentTarget as HTMLSelectElement).value)}\n >\n ${repeat(\n (x) =>\n (x.parameter.PARAM_SOURCE ?? '')\n .split(',')\n .map((value) => value.trim())\n .filter((value) => value.length),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n\n <!-- TODO: REQ_REP -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP,\n html`\n <rapid-select :value=${sync((x) => x.inputValue)}></rapid-select>\n `,\n )}\n </div>\n`"
5061
5187
  }
5062
5188
  ],
5063
5189
  "exports": [
5064
5190
  {
5065
5191
  "kind": "js",
5066
- "name": "FoundationInboxCounterTemplate",
5192
+ "name": "RuleParameterTemplate",
5067
5193
  "declaration": {
5068
- "name": "FoundationInboxCounterTemplate",
5069
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
5194
+ "name": "RuleParameterTemplate",
5195
+ "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"
5070
5196
  }
5071
5197
  }
5072
5198
  ]
5073
5199
  },
5074
5200
  {
5075
5201
  "kind": "javascript-module",
5076
- "path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
5202
+ "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts",
5077
5203
  "declarations": [
5078
5204
  {
5079
5205
  "kind": "class",
5080
- "description": "",
5081
- "name": "FoundationInboxCounter",
5206
+ "description": "Editable rule parameter row for inbox subscriptions.",
5207
+ "name": "RuleParameter",
5082
5208
  "members": [
5083
5209
  {
5084
5210
  "kind": "field",
5085
- "name": "value",
5211
+ "name": "parameter",
5086
5212
  "type": {
5087
- "text": "number"
5088
- },
5089
- "default": "0"
5213
+ "text": "RuleParameterEntity"
5214
+ }
5090
5215
  },
5091
5216
  {
5092
5217
  "kind": "field",
5093
- "name": "connect",
5218
+ "name": "requireSelection",
5094
5219
  "type": {
5095
- "text": "Connect"
5096
- }
5220
+ "text": "boolean"
5221
+ },
5222
+ "default": "false"
5097
5223
  },
5098
5224
  {
5099
5225
  "kind": "field",
5100
- "name": "inboxService",
5226
+ "name": "isFirstElement",
5101
5227
  "type": {
5102
- "text": "FoundationInboxService"
5103
- }
5228
+ "text": "boolean"
5229
+ },
5230
+ "default": "false"
5104
5231
  },
5105
5232
  {
5106
5233
  "kind": "field",
5107
- "name": "connectionSub",
5234
+ "name": "operator",
5108
5235
  "type": {
5109
- "text": "Subscription"
5236
+ "text": "string"
5110
5237
  },
5238
+ "default": "null"
5239
+ },
5240
+ {
5241
+ "kind": "field",
5242
+ "name": "inputValue",
5243
+ "type": {
5244
+ "text": "string"
5245
+ },
5246
+ "default": "''"
5247
+ },
5248
+ {
5249
+ "kind": "method",
5250
+ "name": "parameterChanged"
5251
+ },
5252
+ {
5253
+ "kind": "method",
5254
+ "name": "requireSelectionChanged"
5255
+ },
5256
+ {
5257
+ "kind": "method",
5258
+ "name": "inputValueChanged"
5259
+ },
5260
+ {
5261
+ "kind": "method",
5262
+ "name": "initParameter",
5111
5263
  "privacy": "private"
5112
5264
  },
5113
5265
  {
5114
5266
  "kind": "method",
5115
- "name": "subscribeToAlerts",
5116
- "privacy": "private",
5117
- "return": {
5118
- "type": {
5119
- "text": "Promise<void>"
5267
+ "name": "checkAndClearForcedSelection",
5268
+ "privacy": "private"
5269
+ },
5270
+ {
5271
+ "kind": "method",
5272
+ "name": "clearForcedSelection",
5273
+ "privacy": "private"
5274
+ },
5275
+ {
5276
+ "kind": "method",
5277
+ "name": "parameterEdit",
5278
+ "parameters": [
5279
+ {
5280
+ "name": "inputValue",
5281
+ "type": {
5282
+ "text": "string"
5283
+ }
5120
5284
  }
5285
+ ]
5286
+ }
5287
+ ],
5288
+ "events": [
5289
+ {
5290
+ "description": "Fired when the parameter value is edited. detail: `ParameterEditedEventDetail`",
5291
+ "name": "parameterEdited"
5292
+ }
5293
+ ],
5294
+ "attributes": [
5295
+ {
5296
+ "name": "parameter",
5297
+ "type": {
5298
+ "text": "RuleParameterEntity"
5121
5299
  },
5122
- "description": "Subscribes to alerts from the inbox service"
5300
+ "fieldName": "parameter"
5123
5301
  },
5124
5302
  {
5125
- "kind": "field",
5126
- "name": "subscriptionHandler",
5127
- "privacy": "private",
5128
- "description": "Handles subscription updates from the inbox service"
5303
+ "type": {
5304
+ "text": "boolean"
5305
+ },
5306
+ "default": "false",
5307
+ "fieldName": "requireSelection"
5308
+ },
5309
+ {
5310
+ "name": "isFirstElement",
5311
+ "type": {
5312
+ "text": "boolean"
5313
+ },
5314
+ "default": "false",
5315
+ "fieldName": "isFirstElement"
5316
+ },
5317
+ {
5318
+ "name": "operator",
5319
+ "type": {
5320
+ "text": "string"
5321
+ },
5322
+ "default": "null",
5323
+ "fieldName": "operator"
5129
5324
  }
5130
5325
  ],
5131
5326
  "superclass": {
5132
5327
  "name": "GenesisElement",
5133
5328
  "package": "@genesislcap/web-core"
5134
5329
  },
5135
- "tagName": "foundation-inbox-counter",
5330
+ "tagName": "rule-parameter",
5136
5331
  "customElement": true
5137
5332
  }
5138
5333
  ],
5139
5334
  "exports": [
5140
5335
  {
5141
5336
  "kind": "js",
5142
- "name": "FoundationInboxCounter",
5337
+ "name": "RuleParameter",
5143
5338
  "declaration": {
5144
- "name": "FoundationInboxCounter",
5145
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
5339
+ "name": "RuleParameter",
5340
+ "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"
5146
5341
  }
5147
5342
  },
5148
5343
  {
5149
5344
  "kind": "custom-element-definition",
5150
- "name": "foundation-inbox-counter",
5345
+ "name": "rule-parameter",
5151
5346
  "declaration": {
5152
- "name": "FoundationInboxCounter",
5153
- "module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
5347
+ "name": "RuleParameter",
5348
+ "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"
5154
5349
  }
5155
5350
  }
5156
5351
  ]
5157
5352
  },
5158
5353
  {
5159
5354
  "kind": "javascript-module",
5160
- "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
5355
+ "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
5161
5356
  "declarations": [
5162
5357
  {
5163
5358
  "kind": "class",
5164
5359
  "description": "",
5165
- "name": "NotifyAuditManagement",
5360
+ "name": "RouteManagement",
5166
5361
  "superclass": {
5167
5362
  "name": "GenesisElement",
5168
5363
  "package": "@genesislcap/web-core"
5169
5364
  },
5170
- "tagName": "notify-audit-management",
5365
+ "tagName": "route-management",
5171
5366
  "customElement": true
5172
5367
  }
5173
5368
  ],
5174
5369
  "exports": [
5175
5370
  {
5176
5371
  "kind": "js",
5177
- "name": "NotifyAuditManagement",
5372
+ "name": "RouteManagement",
5178
5373
  "declaration": {
5179
- "name": "NotifyAuditManagement",
5180
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5374
+ "name": "RouteManagement",
5375
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5181
5376
  }
5182
5377
  },
5183
5378
  {
5184
5379
  "kind": "custom-element-definition",
5185
- "name": "notify-audit-management",
5380
+ "name": "route-management",
5186
5381
  "declaration": {
5187
- "name": "NotifyAuditManagement",
5188
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5382
+ "name": "RouteManagement",
5383
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5189
5384
  }
5190
5385
  }
5191
5386
  ]
5192
5387
  },
5193
5388
  {
5194
5389
  "kind": "javascript-module",
5195
- "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
5390
+ "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
5196
5391
  "declarations": [
5197
5392
  {
5198
5393
  "kind": "class",
5199
5394
  "description": "",
5200
- "name": "RouteManagement",
5395
+ "name": "NotifyAuditManagement",
5201
5396
  "superclass": {
5202
5397
  "name": "GenesisElement",
5203
5398
  "package": "@genesislcap/web-core"
5204
5399
  },
5205
- "tagName": "route-management",
5400
+ "tagName": "notify-audit-management",
5206
5401
  "customElement": true
5207
5402
  }
5208
5403
  ],
5209
5404
  "exports": [
5210
5405
  {
5211
5406
  "kind": "js",
5212
- "name": "RouteManagement",
5407
+ "name": "NotifyAuditManagement",
5213
5408
  "declaration": {
5214
- "name": "RouteManagement",
5215
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5409
+ "name": "NotifyAuditManagement",
5410
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5216
5411
  }
5217
5412
  },
5218
5413
  {
5219
5414
  "kind": "custom-element-definition",
5220
- "name": "route-management",
5415
+ "name": "notify-audit-management",
5221
5416
  "declaration": {
5222
- "name": "RouteManagement",
5223
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
5417
+ "name": "NotifyAuditManagement",
5418
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
5224
5419
  }
5225
5420
  }
5226
5421
  ]
@@ -5369,255 +5564,60 @@
5369
5564
  "type": {
5370
5565
  "text": "TemplateService"
5371
5566
  }
5372
- },
5373
- {
5374
- "kind": "field",
5375
- "name": "templateDialog",
5376
- "type": {
5377
- "text": "TemplateDialog"
5378
- }
5379
- },
5380
- {
5381
- "kind": "method",
5382
- "name": "openTemplateDialog"
5383
- },
5384
- {
5385
- "kind": "method",
5386
- "name": "editTemplate",
5387
- "parameters": [
5388
- {
5389
- "name": "row"
5390
- }
5391
- ]
5392
- },
5393
- {
5394
- "kind": "method",
5395
- "name": "deleteTemplate",
5396
- "parameters": [
5397
- {
5398
- "name": "template"
5399
- }
5400
- ]
5401
- }
5402
- ],
5403
- "superclass": {
5404
- "name": "GenesisElement",
5405
- "package": "@genesislcap/web-core"
5406
- },
5407
- "tagName": "template-management",
5408
- "customElement": true
5409
- }
5410
- ],
5411
- "exports": [
5412
- {
5413
- "kind": "js",
5414
- "name": "TemplateManagement",
5415
- "declaration": {
5416
- "name": "TemplateManagement",
5417
- "module": "src/components/foundation-notification-dashboard/components/templates/template-management.ts"
5418
- }
5419
- },
5420
- {
5421
- "kind": "custom-element-definition",
5422
- "name": "template-management",
5423
- "declaration": {
5424
- "name": "TemplateManagement",
5425
- "module": "src/components/foundation-notification-dashboard/components/templates/template-management.ts"
5426
- }
5427
- }
5428
- ]
5429
- },
5430
- {
5431
- "kind": "javascript-module",
5432
- "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts",
5433
- "declarations": [
5434
- {
5435
- "kind": "variable",
5436
- "name": "RuleParameterStyles",
5437
- "default": "css`\n .control {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n label {\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n .input-field {\n display: flex;\n width: 100%;\n min-width: 0;\n }\n\n .input-field::part(root) {\n width: 100%;\n }\n\n rapid-select.input-field {\n width: 100%;\n min-width: 0;\n }\n\n rapid-select.input-field::part(control) {\n width: 100%;\n }\n\n rapid-select.input-field::part(listbox) {\n z-index: 1000;\n max-height: min(240px, 50vh);\n overflow-y: auto;\n box-shadow: 0 4px 16px rgb(0 0 0 / 24%);\n }\n`"
5438
- }
5439
- ],
5440
- "exports": [
5441
- {
5442
- "kind": "js",
5443
- "name": "RuleParameterStyles",
5444
- "declaration": {
5445
- "name": "RuleParameterStyles",
5446
- "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.ts"
5447
- }
5448
- }
5449
- ]
5450
- },
5451
- {
5452
- "kind": "javascript-module",
5453
- "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts",
5454
- "declarations": [
5455
- {
5456
- "kind": "variable",
5457
- "name": "RuleParameterTemplate",
5458
- "default": "html<RuleParameter>`\n <div class=\"control\">\n <label>\n <span style=\"font-weight: bold;\">${(x) => x.parameter.PARAM_LABEL}</span>\n ${(x, c) => humanize(x.operator).toLowerCase()}\n </label>\n\n <!-- USER_TEXT -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT,\n html`\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING,\n html`\n <rapid-text-field\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @input=${(x, c) => x.parameterEdit((c.event.target as HTMLInputElement).value)}\n ></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER,\n html`\n <rapid-number-field\n hide-step\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @input=${(x, c) => x.parameterEdit((c.event.target as HTMLInputElement).value)}\n ></rapid-number-field>\n `,\n )}\n ${when(\n (x) => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN,\n html`\n <rapid-switch\n class=\"input-field\"\n ?checked=${(x) => x.inputValue === 'true'}\n @change=${(x, c) =>\n x.parameterEdit(String((c.event.target as HTMLInputElement).checked))}\n ></rapid-switch>\n `,\n )}\n `,\n )}\n\n <!-- DEFINED_GROUP -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html`\n <rapid-select\n autofocus=${(x) => x.isFirstElement}\n class=\"input-field\"\n :value=${sync((x) => x.inputValue)}\n @change=${(x, c) => x.parameterEdit((c.event.currentTarget as HTMLSelectElement).value)}\n >\n ${repeat(\n (x) =>\n (x.parameter.PARAM_SOURCE ?? '')\n .split(',')\n .map((value) => value.trim())\n .filter((value) => value.length),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n\n <!-- TODO: REQ_REP -->\n ${when(\n (x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP,\n html`\n <rapid-select :value=${sync((x) => x.inputValue)}></rapid-select>\n `,\n )}\n </div>\n`"
5459
- }
5460
- ],
5461
- "exports": [
5462
- {
5463
- "kind": "js",
5464
- "name": "RuleParameterTemplate",
5465
- "declaration": {
5466
- "name": "RuleParameterTemplate",
5467
- "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"
5468
- }
5469
- }
5470
- ]
5471
- },
5472
- {
5473
- "kind": "javascript-module",
5474
- "path": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts",
5475
- "declarations": [
5476
- {
5477
- "kind": "class",
5478
- "description": "Editable rule parameter row for inbox subscriptions.",
5479
- "name": "RuleParameter",
5480
- "members": [
5481
- {
5482
- "kind": "field",
5483
- "name": "parameter",
5484
- "type": {
5485
- "text": "RuleParameterEntity"
5486
- }
5487
- },
5488
- {
5489
- "kind": "field",
5490
- "name": "requireSelection",
5491
- "type": {
5492
- "text": "boolean"
5493
- },
5494
- "default": "false"
5495
- },
5496
- {
5497
- "kind": "field",
5498
- "name": "isFirstElement",
5499
- "type": {
5500
- "text": "boolean"
5501
- },
5502
- "default": "false"
5503
- },
5504
- {
5505
- "kind": "field",
5506
- "name": "operator",
5507
- "type": {
5508
- "text": "string"
5509
- },
5510
- "default": "null"
5511
- },
5512
- {
5513
- "kind": "field",
5514
- "name": "inputValue",
5515
- "type": {
5516
- "text": "string"
5517
- },
5518
- "default": "''"
5519
- },
5520
- {
5521
- "kind": "method",
5522
- "name": "parameterChanged"
5523
- },
5524
- {
5525
- "kind": "method",
5526
- "name": "requireSelectionChanged"
5527
- },
5528
- {
5529
- "kind": "method",
5530
- "name": "inputValueChanged"
5531
- },
5532
- {
5533
- "kind": "method",
5534
- "name": "initParameter",
5535
- "privacy": "private"
5536
- },
5537
- {
5538
- "kind": "method",
5539
- "name": "checkAndClearForcedSelection",
5540
- "privacy": "private"
5541
- },
5542
- {
5543
- "kind": "method",
5544
- "name": "clearForcedSelection",
5545
- "privacy": "private"
5546
- },
5547
- {
5548
- "kind": "method",
5549
- "name": "parameterEdit",
5550
- "parameters": [
5551
- {
5552
- "name": "inputValue",
5553
- "type": {
5554
- "text": "string"
5555
- }
5556
- }
5557
- ]
5558
- }
5559
- ],
5560
- "events": [
5561
- {
5562
- "description": "Fired when the parameter value is edited. detail: `ParameterEditedEventDetail`",
5563
- "name": "parameterEdited"
5564
- }
5565
- ],
5566
- "attributes": [
5567
+ },
5567
5568
  {
5568
- "name": "parameter",
5569
+ "kind": "field",
5570
+ "name": "templateDialog",
5569
5571
  "type": {
5570
- "text": "RuleParameterEntity"
5571
- },
5572
- "fieldName": "parameter"
5572
+ "text": "TemplateDialog"
5573
+ }
5573
5574
  },
5574
5575
  {
5575
- "type": {
5576
- "text": "boolean"
5577
- },
5578
- "default": "false",
5579
- "fieldName": "requireSelection"
5576
+ "kind": "method",
5577
+ "name": "openTemplateDialog"
5580
5578
  },
5581
5579
  {
5582
- "name": "isFirstElement",
5583
- "type": {
5584
- "text": "boolean"
5585
- },
5586
- "default": "false",
5587
- "fieldName": "isFirstElement"
5580
+ "kind": "method",
5581
+ "name": "editTemplate",
5582
+ "parameters": [
5583
+ {
5584
+ "name": "row"
5585
+ }
5586
+ ]
5588
5587
  },
5589
5588
  {
5590
- "name": "operator",
5591
- "type": {
5592
- "text": "string"
5593
- },
5594
- "default": "null",
5595
- "fieldName": "operator"
5589
+ "kind": "method",
5590
+ "name": "deleteTemplate",
5591
+ "parameters": [
5592
+ {
5593
+ "name": "template"
5594
+ }
5595
+ ]
5596
5596
  }
5597
5597
  ],
5598
5598
  "superclass": {
5599
5599
  "name": "GenesisElement",
5600
5600
  "package": "@genesislcap/web-core"
5601
5601
  },
5602
- "tagName": "rule-parameter",
5602
+ "tagName": "template-management",
5603
5603
  "customElement": true
5604
5604
  }
5605
5605
  ],
5606
5606
  "exports": [
5607
5607
  {
5608
5608
  "kind": "js",
5609
- "name": "RuleParameter",
5609
+ "name": "TemplateManagement",
5610
5610
  "declaration": {
5611
- "name": "RuleParameter",
5612
- "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"
5611
+ "name": "TemplateManagement",
5612
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-management.ts"
5613
5613
  }
5614
5614
  },
5615
5615
  {
5616
5616
  "kind": "custom-element-definition",
5617
- "name": "rule-parameter",
5617
+ "name": "template-management",
5618
5618
  "declaration": {
5619
- "name": "RuleParameter",
5620
- "module": "src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.ts"
5619
+ "name": "TemplateManagement",
5620
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-management.ts"
5621
5621
  }
5622
5622
  }
5623
5623
  ]
@@ -6422,219 +6422,16 @@
6422
6422
  },
6423
6423
  {
6424
6424
  "kind": "method",
6425
- "name": "validateResponse",
6426
- "parameters": [
6427
- {
6428
- "name": "response"
6429
- }
6430
- ]
6431
- },
6432
- {
6433
- "kind": "method",
6434
- "name": "resourceChanged"
6435
- },
6436
- {
6437
- "kind": "method",
6438
- "name": "newCondition"
6439
- },
6440
- {
6441
- "kind": "method",
6442
- "name": "newGroup"
6443
- },
6444
- {
6445
- "kind": "method",
6446
- "name": "editCondition",
6447
- "parameters": [
6448
- {
6449
- "name": "editedCondition",
6450
- "type": {
6451
- "text": "ConditionNode"
6452
- }
6453
- }
6454
- ]
6455
- },
6456
- {
6457
- "kind": "method",
6458
- "name": "deleteCondition",
6459
- "parameters": [
6460
- {
6461
- "name": "deletedCondition",
6462
- "type": {
6463
- "text": "ConditionNode"
6464
- }
6465
- }
6466
- ]
6467
- },
6468
- {
6469
- "kind": "method",
6470
- "name": "newParameter"
6471
- },
6472
- {
6473
- "kind": "method",
6474
- "name": "editParameter",
6475
- "parameters": [
6476
- {
6477
- "name": "editedParameter",
6478
- "type": {
6479
- "text": "ParameterBuilderEntity"
6480
- }
6481
- }
6482
- ]
6483
- },
6484
- {
6485
- "kind": "method",
6486
- "name": "deleteParameter",
6487
- "parameters": [
6488
- {
6489
- "name": "deletedParameter",
6490
- "type": {
6491
- "text": "ParameterBuilderEntity"
6492
- }
6493
- }
6494
- ]
6495
- },
6496
- {
6497
- "kind": "field",
6498
- "name": "validateRequiredFields",
6499
- "type": {
6500
- "text": "boolean"
6501
- },
6502
- "privacy": "public",
6503
- "readonly": true
6504
- }
6505
- ],
6506
- "events": [
6507
- {
6508
- "description": "Fired when the dialog should close",
6509
- "name": "close"
6510
- }
6511
- ],
6512
- "superclass": {
6513
- "name": "GenesisElement",
6514
- "package": "@genesislcap/web-core"
6515
- },
6516
- "tagName": "template-dialog",
6517
- "customElement": true
6518
- }
6519
- ],
6520
- "exports": [
6521
- {
6522
- "kind": "js",
6523
- "name": "TemplateDialog",
6524
- "declaration": {
6525
- "name": "TemplateDialog",
6526
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"
6527
- }
6528
- },
6529
- {
6530
- "kind": "custom-element-definition",
6531
- "name": "template-dialog",
6532
- "declaration": {
6533
- "name": "TemplateDialog",
6534
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"
6535
- }
6536
- }
6537
- ]
6538
- },
6539
- {
6540
- "kind": "javascript-module",
6541
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts",
6542
- "declarations": [
6543
- {
6544
- "kind": "variable",
6545
- "name": "TemplateDialogMode",
6546
- "type": {
6547
- "text": "{\n CREATE: 'create',\n EDIT: 'edit',\n}"
6548
- },
6549
- "default": "{\n CREATE: 'create',\n EDIT: 'edit',\n}"
6550
- }
6551
- ],
6552
- "exports": [
6553
- {
6554
- "kind": "js",
6555
- "name": "TemplateDialogMode",
6556
- "declaration": {
6557
- "name": "TemplateDialogMode",
6558
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"
6559
- }
6560
- }
6561
- ]
6562
- },
6563
- {
6564
- "kind": "javascript-module",
6565
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
6566
- "declarations": [
6567
- {
6568
- "kind": "variable",
6569
- "name": "RuleConditionGroupTemplate",
6570
- "default": "html<RuleConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, RuleConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <rule-condition-group\n :fields=${(x, c) => c.parent.fields}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <rule-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
6571
- }
6572
- ],
6573
- "exports": [
6574
- {
6575
- "kind": "js",
6576
- "name": "RuleConditionGroupTemplate",
6577
- "declaration": {
6578
- "name": "RuleConditionGroupTemplate",
6579
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
6580
- }
6581
- }
6582
- ]
6583
- },
6584
- {
6585
- "kind": "javascript-module",
6586
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
6587
- "declarations": [
6588
- {
6589
- "kind": "class",
6590
- "description": "Parenthesized group of conditions/nested groups for notification rule\ncriteria, joined to the previous sibling via AND/OR like a single\ncondition row - but bracketing its own children off from the rest of the\nlist, so e.g. \"(A && B) || C\" can be expressed without the AND silently\nspanning more than intended.",
6591
- "name": "RuleConditionGroup",
6592
- "members": [
6593
- {
6594
- "kind": "field",
6595
- "name": "node",
6596
- "type": {
6597
- "text": "ConditionGroupEntity"
6598
- }
6599
- },
6600
- {
6601
- "kind": "field",
6602
- "name": "fields",
6603
- "type": {
6604
- "text": "Field[]"
6605
- },
6606
- "default": "[]"
6607
- },
6608
- {
6609
- "kind": "field",
6610
- "name": "isFirst",
6611
- "type": {
6612
- "text": "boolean"
6613
- },
6614
- "default": "false"
6615
- },
6616
- {
6617
- "kind": "field",
6618
- "name": "joinOperator",
6619
- "type": {
6620
- "text": "string"
6621
- }
6622
- },
6623
- {
6624
- "kind": "field",
6625
- "name": "groupChildren",
6626
- "type": {
6627
- "text": "ConditionNode[]"
6628
- },
6629
- "default": "[]"
6630
- },
6631
- {
6632
- "kind": "method",
6633
- "name": "nodeChanged"
6425
+ "name": "validateResponse",
6426
+ "parameters": [
6427
+ {
6428
+ "name": "response"
6429
+ }
6430
+ ]
6634
6431
  },
6635
6432
  {
6636
6433
  "kind": "method",
6637
- "name": "joinOperatorChanged"
6434
+ "name": "resourceChanged"
6638
6435
  },
6639
6436
  {
6640
6437
  "kind": "method",
@@ -6646,10 +6443,10 @@
6646
6443
  },
6647
6444
  {
6648
6445
  "kind": "method",
6649
- "name": "editChild",
6446
+ "name": "editCondition",
6650
6447
  "parameters": [
6651
6448
  {
6652
- "name": "_editedChild",
6449
+ "name": "editedCondition",
6653
6450
  "type": {
6654
6451
  "text": "ConditionNode"
6655
6452
  }
@@ -6658,10 +6455,10 @@
6658
6455
  },
6659
6456
  {
6660
6457
  "kind": "method",
6661
- "name": "deleteChild",
6458
+ "name": "deleteCondition",
6662
6459
  "parameters": [
6663
6460
  {
6664
- "name": "deletedChild",
6461
+ "name": "deletedCondition",
6665
6462
  "type": {
6666
6463
  "text": "ConditionNode"
6667
6464
  }
@@ -6670,42 +6467,95 @@
6670
6467
  },
6671
6468
  {
6672
6469
  "kind": "method",
6673
- "name": "deleteSelf"
6470
+ "name": "newParameter"
6471
+ },
6472
+ {
6473
+ "kind": "method",
6474
+ "name": "editParameter",
6475
+ "parameters": [
6476
+ {
6477
+ "name": "editedParameter",
6478
+ "type": {
6479
+ "text": "ParameterBuilderEntity"
6480
+ }
6481
+ }
6482
+ ]
6483
+ },
6484
+ {
6485
+ "kind": "method",
6486
+ "name": "deleteParameter",
6487
+ "parameters": [
6488
+ {
6489
+ "name": "deletedParameter",
6490
+ "type": {
6491
+ "text": "ParameterBuilderEntity"
6492
+ }
6493
+ }
6494
+ ]
6495
+ },
6496
+ {
6497
+ "kind": "field",
6498
+ "name": "validateRequiredFields",
6499
+ "type": {
6500
+ "text": "boolean"
6501
+ },
6502
+ "privacy": "public",
6503
+ "readonly": true
6674
6504
  }
6675
6505
  ],
6676
6506
  "events": [
6677
6507
  {
6678
- "description": "Fired when this whole group should be removed",
6679
- "name": "delete"
6680
- },
6681
- {
6682
- "description": "Fired when anything inside this group changes",
6683
- "name": "edit"
6508
+ "description": "Fired when the dialog should close",
6509
+ "name": "close"
6684
6510
  }
6685
6511
  ],
6686
6512
  "superclass": {
6687
6513
  "name": "GenesisElement",
6688
6514
  "package": "@genesislcap/web-core"
6689
6515
  },
6690
- "tagName": "rule-condition-group",
6516
+ "tagName": "template-dialog",
6691
6517
  "customElement": true
6692
6518
  }
6693
6519
  ],
6694
6520
  "exports": [
6695
6521
  {
6696
6522
  "kind": "js",
6697
- "name": "RuleConditionGroup",
6523
+ "name": "TemplateDialog",
6698
6524
  "declaration": {
6699
- "name": "RuleConditionGroup",
6700
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6525
+ "name": "TemplateDialog",
6526
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"
6701
6527
  }
6702
6528
  },
6703
6529
  {
6704
6530
  "kind": "custom-element-definition",
6705
- "name": "rule-condition-group",
6531
+ "name": "template-dialog",
6706
6532
  "declaration": {
6707
- "name": "RuleConditionGroup",
6708
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6533
+ "name": "TemplateDialog",
6534
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"
6535
+ }
6536
+ }
6537
+ ]
6538
+ },
6539
+ {
6540
+ "kind": "javascript-module",
6541
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts",
6542
+ "declarations": [
6543
+ {
6544
+ "kind": "variable",
6545
+ "name": "TemplateDialogMode",
6546
+ "type": {
6547
+ "text": "{\n CREATE: 'create',\n EDIT: 'edit',\n}"
6548
+ },
6549
+ "default": "{\n CREATE: 'create',\n EDIT: 'edit',\n}"
6550
+ }
6551
+ ],
6552
+ "exports": [
6553
+ {
6554
+ "kind": "js",
6555
+ "name": "TemplateDialogMode",
6556
+ "declaration": {
6557
+ "name": "TemplateDialogMode",
6558
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"
6709
6559
  }
6710
6560
  }
6711
6561
  ]
@@ -6994,6 +6844,156 @@
6994
6844
  "declarations": [],
6995
6845
  "exports": []
6996
6846
  },
6847
+ {
6848
+ "kind": "javascript-module",
6849
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
6850
+ "declarations": [
6851
+ {
6852
+ "kind": "variable",
6853
+ "name": "RuleConditionGroupTemplate",
6854
+ "default": "html<RuleConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, RuleConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <rule-condition-group\n :fields=${(x, c) => c.parent.fields}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <rule-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></rule-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
6855
+ }
6856
+ ],
6857
+ "exports": [
6858
+ {
6859
+ "kind": "js",
6860
+ "name": "RuleConditionGroupTemplate",
6861
+ "declaration": {
6862
+ "name": "RuleConditionGroupTemplate",
6863
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
6864
+ }
6865
+ }
6866
+ ]
6867
+ },
6868
+ {
6869
+ "kind": "javascript-module",
6870
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
6871
+ "declarations": [
6872
+ {
6873
+ "kind": "class",
6874
+ "description": "Parenthesized group of conditions/nested groups for notification rule\ncriteria, joined to the previous sibling via AND/OR like a single\ncondition row - but bracketing its own children off from the rest of the\nlist, so e.g. \"(A && B) || C\" can be expressed without the AND silently\nspanning more than intended.",
6875
+ "name": "RuleConditionGroup",
6876
+ "members": [
6877
+ {
6878
+ "kind": "field",
6879
+ "name": "node",
6880
+ "type": {
6881
+ "text": "ConditionGroupEntity"
6882
+ }
6883
+ },
6884
+ {
6885
+ "kind": "field",
6886
+ "name": "fields",
6887
+ "type": {
6888
+ "text": "Field[]"
6889
+ },
6890
+ "default": "[]"
6891
+ },
6892
+ {
6893
+ "kind": "field",
6894
+ "name": "isFirst",
6895
+ "type": {
6896
+ "text": "boolean"
6897
+ },
6898
+ "default": "false"
6899
+ },
6900
+ {
6901
+ "kind": "field",
6902
+ "name": "joinOperator",
6903
+ "type": {
6904
+ "text": "string"
6905
+ }
6906
+ },
6907
+ {
6908
+ "kind": "field",
6909
+ "name": "groupChildren",
6910
+ "type": {
6911
+ "text": "ConditionNode[]"
6912
+ },
6913
+ "default": "[]"
6914
+ },
6915
+ {
6916
+ "kind": "method",
6917
+ "name": "nodeChanged"
6918
+ },
6919
+ {
6920
+ "kind": "method",
6921
+ "name": "joinOperatorChanged"
6922
+ },
6923
+ {
6924
+ "kind": "method",
6925
+ "name": "newCondition"
6926
+ },
6927
+ {
6928
+ "kind": "method",
6929
+ "name": "newGroup"
6930
+ },
6931
+ {
6932
+ "kind": "method",
6933
+ "name": "editChild",
6934
+ "parameters": [
6935
+ {
6936
+ "name": "_editedChild",
6937
+ "type": {
6938
+ "text": "ConditionNode"
6939
+ }
6940
+ }
6941
+ ]
6942
+ },
6943
+ {
6944
+ "kind": "method",
6945
+ "name": "deleteChild",
6946
+ "parameters": [
6947
+ {
6948
+ "name": "deletedChild",
6949
+ "type": {
6950
+ "text": "ConditionNode"
6951
+ }
6952
+ }
6953
+ ]
6954
+ },
6955
+ {
6956
+ "kind": "method",
6957
+ "name": "deleteSelf"
6958
+ }
6959
+ ],
6960
+ "events": [
6961
+ {
6962
+ "description": "Fired when this whole group should be removed",
6963
+ "name": "delete"
6964
+ },
6965
+ {
6966
+ "description": "Fired when anything inside this group changes",
6967
+ "name": "edit"
6968
+ }
6969
+ ],
6970
+ "superclass": {
6971
+ "name": "GenesisElement",
6972
+ "package": "@genesislcap/web-core"
6973
+ },
6974
+ "tagName": "rule-condition-group",
6975
+ "customElement": true
6976
+ }
6977
+ ],
6978
+ "exports": [
6979
+ {
6980
+ "kind": "js",
6981
+ "name": "RuleConditionGroup",
6982
+ "declaration": {
6983
+ "name": "RuleConditionGroup",
6984
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6985
+ }
6986
+ },
6987
+ {
6988
+ "kind": "custom-element-definition",
6989
+ "name": "rule-condition-group",
6990
+ "declaration": {
6991
+ "name": "RuleConditionGroup",
6992
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
6993
+ }
6994
+ }
6995
+ ]
6996
+ },
6997
6997
  {
6998
6998
  "kind": "javascript-module",
6999
6999
  "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",