@genesislcap/pbc-notify-ui 15.67.0 → 15.68.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.
@@ -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",
@@ -972,6 +972,7 @@
972
972
  "customElement": true,
973
973
  "attributes": [
974
974
  {
975
+ "name": "hide-severity-filter",
975
976
  "type": {
976
977
  "text": "boolean"
977
978
  },
@@ -982,6 +983,58 @@
982
983
  "name": "FoundationInboxBase",
983
984
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
984
985
  }
986
+ },
987
+ {
988
+ "name": "hide-date-range",
989
+ "type": {
990
+ "text": "boolean"
991
+ },
992
+ "default": "false",
993
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public",
994
+ "fieldName": "hideDateRange",
995
+ "inheritedFrom": {
996
+ "name": "FoundationInboxBase",
997
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
998
+ }
999
+ },
1000
+ {
1001
+ "name": "hide-title-search",
1002
+ "type": {
1003
+ "text": "boolean"
1004
+ },
1005
+ "default": "false",
1006
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public",
1007
+ "fieldName": "hideTitleSearch",
1008
+ "inheritedFrom": {
1009
+ "name": "FoundationInboxBase",
1010
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1011
+ }
1012
+ },
1013
+ {
1014
+ "name": "hide-body-search",
1015
+ "type": {
1016
+ "text": "boolean"
1017
+ },
1018
+ "default": "false",
1019
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
1020
+ "fieldName": "hideBodySearch",
1021
+ "inheritedFrom": {
1022
+ "name": "FoundationInboxBase",
1023
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1024
+ }
1025
+ },
1026
+ {
1027
+ "name": "hide-clear-all",
1028
+ "type": {
1029
+ "text": "boolean"
1030
+ },
1031
+ "default": "false",
1032
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public",
1033
+ "fieldName": "hideClearAll",
1034
+ "inheritedFrom": {
1035
+ "name": "FoundationInboxBase",
1036
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1037
+ }
985
1038
  }
986
1039
  ],
987
1040
  "members": [
@@ -1144,6 +1197,19 @@
1144
1197
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1145
1198
  }
1146
1199
  },
1200
+ {
1201
+ "kind": "field",
1202
+ "name": "hideClearAll",
1203
+ "type": {
1204
+ "text": "boolean"
1205
+ },
1206
+ "default": "false",
1207
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public",
1208
+ "inheritedFrom": {
1209
+ "name": "FoundationInboxBase",
1210
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1211
+ }
1212
+ },
1147
1213
  {
1148
1214
  "kind": "field",
1149
1215
  "name": "onAlertClick",
@@ -4412,6 +4478,15 @@
4412
4478
  "default": "false",
4413
4479
  "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public"
4414
4480
  },
4481
+ {
4482
+ "kind": "field",
4483
+ "name": "hideClearAll",
4484
+ "type": {
4485
+ "text": "boolean"
4486
+ },
4487
+ "default": "false",
4488
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public"
4489
+ },
4415
4490
  {
4416
4491
  "kind": "field",
4417
4492
  "name": "onAlertClick",
@@ -5158,6 +5233,7 @@
5158
5233
  ],
5159
5234
  "attributes": [
5160
5235
  {
5236
+ "name": "hide-severity-filter",
5161
5237
  "type": {
5162
5238
  "text": "boolean"
5163
5239
  },
@@ -5166,6 +5242,7 @@
5166
5242
  "fieldName": "hideSeverityFilter"
5167
5243
  },
5168
5244
  {
5245
+ "name": "hide-date-range",
5169
5246
  "type": {
5170
5247
  "text": "boolean"
5171
5248
  },
@@ -5174,6 +5251,7 @@
5174
5251
  "fieldName": "hideDateRange"
5175
5252
  },
5176
5253
  {
5254
+ "name": "hide-title-search",
5177
5255
  "type": {
5178
5256
  "text": "boolean"
5179
5257
  },
@@ -5182,12 +5260,22 @@
5182
5260
  "fieldName": "hideTitleSearch"
5183
5261
  },
5184
5262
  {
5263
+ "name": "hide-body-search",
5185
5264
  "type": {
5186
5265
  "text": "boolean"
5187
5266
  },
5188
5267
  "default": "false",
5189
5268
  "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
5190
5269
  "fieldName": "hideBodySearch"
5270
+ },
5271
+ {
5272
+ "name": "hide-clear-all",
5273
+ "type": {
5274
+ "text": "boolean"
5275
+ },
5276
+ "default": "false",
5277
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public",
5278
+ "fieldName": "hideClearAll"
5191
5279
  }
5192
5280
  ],
5193
5281
  "superclass": {
@@ -6286,6 +6374,19 @@
6286
6374
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
6287
6375
  }
6288
6376
  },
6377
+ {
6378
+ "kind": "field",
6379
+ "name": "hideClearAll",
6380
+ "type": {
6381
+ "text": "boolean"
6382
+ },
6383
+ "default": "false",
6384
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public",
6385
+ "inheritedFrom": {
6386
+ "name": "FoundationInboxBase",
6387
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
6388
+ }
6389
+ },
6289
6390
  {
6290
6391
  "kind": "field",
6291
6392
  "name": "onAlertClick",
@@ -7338,6 +7439,7 @@
7338
7439
  "customElement": true,
7339
7440
  "attributes": [
7340
7441
  {
7442
+ "name": "hide-severity-filter",
7341
7443
  "type": {
7342
7444
  "text": "boolean"
7343
7445
  },
@@ -7348,6 +7450,58 @@
7348
7450
  "name": "FoundationInboxBase",
7349
7451
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
7350
7452
  }
7453
+ },
7454
+ {
7455
+ "name": "hide-date-range",
7456
+ "type": {
7457
+ "text": "boolean"
7458
+ },
7459
+ "default": "false",
7460
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public",
7461
+ "fieldName": "hideDateRange",
7462
+ "inheritedFrom": {
7463
+ "name": "FoundationInboxBase",
7464
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
7465
+ }
7466
+ },
7467
+ {
7468
+ "name": "hide-title-search",
7469
+ "type": {
7470
+ "text": "boolean"
7471
+ },
7472
+ "default": "false",
7473
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public",
7474
+ "fieldName": "hideTitleSearch",
7475
+ "inheritedFrom": {
7476
+ "name": "FoundationInboxBase",
7477
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
7478
+ }
7479
+ },
7480
+ {
7481
+ "name": "hide-body-search",
7482
+ "type": {
7483
+ "text": "boolean"
7484
+ },
7485
+ "default": "false",
7486
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
7487
+ "fieldName": "hideBodySearch",
7488
+ "inheritedFrom": {
7489
+ "name": "FoundationInboxBase",
7490
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
7491
+ }
7492
+ },
7493
+ {
7494
+ "name": "hide-clear-all",
7495
+ "type": {
7496
+ "text": "boolean"
7497
+ },
7498
+ "default": "false",
7499
+ "description": "Hide the Clear All Alerts button on the Alerts tab. Set via the `hide-clear-all`\nattribute or property. Per-item dismiss is unchanged. @public",
7500
+ "fieldName": "hideClearAll",
7501
+ "inheritedFrom": {
7502
+ "name": "FoundationInboxBase",
7503
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
7504
+ }
7351
7505
  }
7352
7506
  ]
7353
7507
  }
@@ -7604,70 +7758,70 @@
7604
7758
  },
7605
7759
  {
7606
7760
  "kind": "javascript-module",
7607
- "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7761
+ "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7608
7762
  "declarations": [
7609
7763
  {
7610
7764
  "kind": "class",
7611
7765
  "description": "",
7612
- "name": "NotifyAuditManagement",
7766
+ "name": "RouteManagement",
7613
7767
  "superclass": {
7614
7768
  "name": "GenesisElement",
7615
7769
  "package": "@genesislcap/web-core"
7616
7770
  },
7617
- "tagName": "notify-audit-management",
7771
+ "tagName": "route-management",
7618
7772
  "customElement": true
7619
7773
  }
7620
7774
  ],
7621
7775
  "exports": [
7622
7776
  {
7623
7777
  "kind": "js",
7624
- "name": "NotifyAuditManagement",
7778
+ "name": "RouteManagement",
7625
7779
  "declaration": {
7626
- "name": "NotifyAuditManagement",
7627
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7780
+ "name": "RouteManagement",
7781
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7628
7782
  }
7629
7783
  },
7630
7784
  {
7631
7785
  "kind": "custom-element-definition",
7632
- "name": "notify-audit-management",
7786
+ "name": "route-management",
7633
7787
  "declaration": {
7634
- "name": "NotifyAuditManagement",
7635
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7788
+ "name": "RouteManagement",
7789
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7636
7790
  }
7637
7791
  }
7638
7792
  ]
7639
7793
  },
7640
7794
  {
7641
7795
  "kind": "javascript-module",
7642
- "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7796
+ "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7643
7797
  "declarations": [
7644
7798
  {
7645
7799
  "kind": "class",
7646
7800
  "description": "",
7647
- "name": "RouteManagement",
7801
+ "name": "NotifyAuditManagement",
7648
7802
  "superclass": {
7649
7803
  "name": "GenesisElement",
7650
7804
  "package": "@genesislcap/web-core"
7651
7805
  },
7652
- "tagName": "route-management",
7806
+ "tagName": "notify-audit-management",
7653
7807
  "customElement": true
7654
7808
  }
7655
7809
  ],
7656
7810
  "exports": [
7657
7811
  {
7658
7812
  "kind": "js",
7659
- "name": "RouteManagement",
7813
+ "name": "NotifyAuditManagement",
7660
7814
  "declaration": {
7661
- "name": "RouteManagement",
7662
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7815
+ "name": "NotifyAuditManagement",
7816
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7663
7817
  }
7664
7818
  },
7665
7819
  {
7666
7820
  "kind": "custom-element-definition",
7667
- "name": "route-management",
7821
+ "name": "notify-audit-management",
7668
7822
  "declaration": {
7669
- "name": "RouteManagement",
7670
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7823
+ "name": "NotifyAuditManagement",
7824
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7671
7825
  }
7672
7826
  }
7673
7827
  ]
@@ -10267,426 +10421,552 @@
10267
10421
  },
10268
10422
  {
10269
10423
  "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",
10424
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10292
10425
  "declarations": [
10293
10426
  {
10294
10427
  "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`"
10428
+ "name": "TemplateConditionBuilderTemplate",
10429
+ "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
10430
  }
10298
10431
  ],
10299
10432
  "exports": [
10300
10433
  {
10301
10434
  "kind": "js",
10302
- "name": "ParameterBuilderTemplate",
10435
+ "name": "TemplateConditionBuilderTemplate",
10303
10436
  "declaration": {
10304
- "name": "ParameterBuilderTemplate",
10305
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10437
+ "name": "TemplateConditionBuilderTemplate",
10438
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10306
10439
  }
10307
10440
  }
10308
10441
  ]
10309
10442
  },
10310
10443
  {
10311
10444
  "kind": "javascript-module",
10312
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10445
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10313
10446
  "declarations": [
10314
10447
  {
10315
10448
  "kind": "class",
10316
- "description": "Parameter builder for notification templates.",
10317
- "name": "ParameterBuilder",
10449
+ "description": "Condition builder for template notification rules.",
10450
+ "name": "TemplateConditionBuilder",
10318
10451
  "members": [
10319
10452
  {
10320
10453
  "kind": "field",
10321
- "name": "parameter",
10454
+ "name": "condition",
10322
10455
  "type": {
10323
- "text": "ParameterBuilderEntity"
10456
+ "text": "ConditionBuilderEntity"
10324
10457
  }
10325
10458
  },
10326
10459
  {
10327
10460
  "kind": "field",
10328
- "name": "name",
10461
+ "name": "parameters",
10329
10462
  "type": {
10330
- "text": "string"
10331
- }
10463
+ "text": "Array<ParameterBuilderEntity>"
10464
+ },
10465
+ "default": "[]"
10332
10466
  },
10333
10467
  {
10334
10468
  "kind": "field",
10335
- "name": "label",
10469
+ "name": "fields",
10336
10470
  "type": {
10337
- "text": "string"
10338
- }
10471
+ "text": "Field[]"
10472
+ },
10473
+ "default": "[]"
10339
10474
  },
10340
10475
  {
10341
10476
  "kind": "field",
10342
- "name": "type",
10477
+ "name": "isFirst",
10478
+ "type": {
10479
+ "text": "boolean"
10480
+ },
10481
+ "default": "false"
10482
+ },
10483
+ {
10484
+ "kind": "field",
10485
+ "name": "joinOperator",
10343
10486
  "type": {
10344
10487
  "text": "string"
10345
10488
  }
10346
10489
  },
10347
10490
  {
10348
10491
  "kind": "field",
10349
- "name": "sourceType",
10492
+ "name": "leftValue",
10493
+ "type": {
10494
+ "text": "any"
10495
+ },
10496
+ "default": "null"
10497
+ },
10498
+ {
10499
+ "kind": "field",
10500
+ "name": "leftValueItems",
10501
+ "type": {
10502
+ "text": "Array<any>"
10503
+ },
10504
+ "default": "[]"
10505
+ },
10506
+ {
10507
+ "kind": "field",
10508
+ "name": "logicalOperator",
10350
10509
  "type": {
10351
10510
  "text": "string"
10352
- }
10511
+ },
10512
+ "default": "null"
10353
10513
  },
10354
10514
  {
10355
10515
  "kind": "field",
10356
- "name": "sourceSelected",
10516
+ "name": "rightCriteria",
10357
10517
  "type": {
10358
10518
  "text": "string"
10359
10519
  }
10360
10520
  },
10361
10521
  {
10362
10522
  "kind": "field",
10363
- "name": "sourceTyped",
10523
+ "name": "rightValueText",
10364
10524
  "type": {
10365
10525
  "text": "string"
10366
- }
10526
+ },
10527
+ "default": "null"
10367
10528
  },
10368
10529
  {
10369
10530
  "kind": "field",
10370
- "name": "sourceTextField",
10531
+ "name": "rightValueSelect",
10371
10532
  "type": {
10372
- "text": "TextField"
10373
- }
10533
+ "text": "string"
10534
+ },
10535
+ "default": "null"
10374
10536
  },
10375
10537
  {
10376
10538
  "kind": "field",
10377
- "name": "sourceSelect",
10539
+ "name": "rightValueItems",
10378
10540
  "type": {
10379
- "text": "Select"
10380
- }
10541
+ "text": "Array<any>"
10542
+ },
10543
+ "default": "[]"
10381
10544
  },
10382
10545
  {
10383
10546
  "kind": "field",
10384
- "name": "reqRepItems",
10547
+ "name": "rightValueMultiSelect",
10385
10548
  "type": {
10386
- "text": "array"
10549
+ "text": "string[]"
10387
10550
  },
10388
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10551
+ "default": "[]"
10552
+ },
10553
+ {
10554
+ "kind": "field",
10555
+ "name": "rightCriteriaOptions",
10556
+ "type": {
10557
+ "text": "RightCriteria[]"
10558
+ },
10559
+ "readonly": true
10560
+ },
10561
+ {
10562
+ "kind": "field",
10563
+ "name": "isStringLeftValue",
10564
+ "type": {
10565
+ "text": "boolean"
10566
+ },
10567
+ "privacy": "private",
10568
+ "readonly": true
10389
10569
  },
10390
10570
  {
10391
10571
  "kind": "method",
10392
- "name": "deleteParameter"
10572
+ "name": "deleteCondition"
10393
10573
  },
10394
10574
  {
10395
10575
  "kind": "method",
10396
- "name": "parameterChanged"
10576
+ "name": "conditionChanged"
10397
10577
  },
10398
10578
  {
10399
10579
  "kind": "method",
10400
- "name": "nameChanged"
10580
+ "name": "joinOperatorChanged"
10401
10581
  },
10402
10582
  {
10403
10583
  "kind": "method",
10404
- "name": "labelChanged"
10584
+ "name": "parametersChanged"
10405
10585
  },
10406
10586
  {
10407
10587
  "kind": "method",
10408
- "name": "typeChanged"
10588
+ "name": "getMatchingParameter",
10589
+ "privacy": "private",
10590
+ "return": {
10591
+ "type": {
10592
+ "text": "ParameterBuilderEntity | undefined"
10593
+ }
10594
+ }
10409
10595
  },
10410
10596
  {
10411
10597
  "kind": "method",
10412
- "name": "sourceTypeChanged"
10598
+ "name": "syncParameterBinding",
10599
+ "privacy": "private",
10600
+ "return": {
10601
+ "type": {
10602
+ "text": "boolean"
10603
+ }
10604
+ }
10413
10605
  },
10414
10606
  {
10415
10607
  "kind": "method",
10416
- "name": "sourceSelectedChanged"
10608
+ "name": "resetToValueEditor",
10609
+ "privacy": "private"
10417
10610
  },
10418
10611
  {
10419
10612
  "kind": "method",
10420
- "name": "sourceTypedChanged"
10613
+ "name": "fieldsChanged"
10421
10614
  },
10422
10615
  {
10423
10616
  "kind": "method",
10424
- "name": "genericChanged",
10425
- "privacy": "private",
10426
- "parameters": [
10427
- {
10428
- "name": "parameterAttribute"
10429
- },
10430
- {
10431
- "name": "value"
10617
+ "name": "logicalOperatorChanged"
10618
+ },
10619
+ {
10620
+ "kind": "method",
10621
+ "name": "assignLeftValue",
10622
+ "privacy": "private"
10623
+ },
10624
+ {
10625
+ "kind": "method",
10626
+ "name": "leftValueChanged"
10627
+ },
10628
+ {
10629
+ "kind": "method",
10630
+ "name": "assignRightValue",
10631
+ "privacy": "private"
10632
+ },
10633
+ {
10634
+ "kind": "method",
10635
+ "name": "rightCriteriaChanged"
10636
+ },
10637
+ {
10638
+ "kind": "method",
10639
+ "name": "clearRightValueText",
10640
+ "privacy": "private"
10641
+ },
10642
+ {
10643
+ "kind": "method",
10644
+ "name": "clearRightValueSelect",
10645
+ "privacy": "private"
10646
+ },
10647
+ {
10648
+ "kind": "method",
10649
+ "name": "rightValueTextChanged"
10650
+ },
10651
+ {
10652
+ "kind": "method",
10653
+ "name": "rightValueSelectChanged"
10654
+ },
10655
+ {
10656
+ "kind": "method",
10657
+ "name": "rightValueMultiSelectChanged"
10658
+ },
10659
+ {
10660
+ "kind": "method",
10661
+ "name": "getEnumValues",
10662
+ "return": {
10663
+ "type": {
10664
+ "text": "string[]"
10432
10665
  }
10433
- ]
10666
+ }
10434
10667
  }
10435
10668
  ],
10436
10669
  "events": [
10437
10670
  {
10438
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10671
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10439
10672
  "name": "delete"
10440
10673
  },
10441
10674
  {
10442
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10675
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10443
10676
  "name": "edit"
10444
10677
  }
10445
10678
  ],
10446
- "attributes": [
10447
- {
10448
- "name": "parameter",
10449
- "type": {
10450
- "text": "ParameterBuilderEntity"
10451
- },
10452
- "fieldName": "parameter"
10453
- }
10454
- ],
10455
10679
  "superclass": {
10456
10680
  "name": "GenesisElement",
10457
10681
  "package": "@genesislcap/web-core"
10458
10682
  },
10459
- "tagName": "parameter-builder",
10683
+ "tagName": "template-condition-builder",
10460
10684
  "customElement": true
10461
10685
  }
10462
10686
  ],
10463
10687
  "exports": [
10464
10688
  {
10465
10689
  "kind": "js",
10466
- "name": "ParameterBuilder",
10690
+ "name": "TemplateConditionBuilder",
10467
10691
  "declaration": {
10468
- "name": "ParameterBuilder",
10469
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10692
+ "name": "TemplateConditionBuilder",
10693
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10470
10694
  }
10471
10695
  },
10472
10696
  {
10473
10697
  "kind": "custom-element-definition",
10474
- "name": "parameter-builder",
10698
+ "name": "template-condition-builder",
10475
10699
  "declaration": {
10476
- "name": "ParameterBuilder",
10477
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10700
+ "name": "TemplateConditionBuilder",
10701
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10478
10702
  }
10479
10703
  }
10480
10704
  ]
10481
10705
  },
10482
10706
  {
10483
10707
  "kind": "javascript-module",
10484
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
10708
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10485
10709
  "declarations": [
10486
10710
  {
10487
10711
  "kind": "variable",
10488
- "name": "TemplateConditionGroupTemplate",
10489
- "default": "html<TemplateConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, TemplateConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <template-condition-group\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <template-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
10712
+ "name": "ParameterBuilderStyles",
10713
+ "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
10714
  }
10491
10715
  ],
10492
10716
  "exports": [
10493
10717
  {
10494
10718
  "kind": "js",
10495
- "name": "TemplateConditionGroupTemplate",
10719
+ "name": "ParameterBuilderStyles",
10496
10720
  "declaration": {
10497
- "name": "TemplateConditionGroupTemplate",
10498
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
10721
+ "name": "ParameterBuilderStyles",
10722
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10499
10723
  }
10500
10724
  }
10501
10725
  ]
10502
10726
  },
10503
10727
  {
10504
10728
  "kind": "javascript-module",
10505
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
10729
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10730
+ "declarations": [
10731
+ {
10732
+ "kind": "variable",
10733
+ "name": "ParameterBuilderTemplate",
10734
+ "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`"
10735
+ }
10736
+ ],
10737
+ "exports": [
10738
+ {
10739
+ "kind": "js",
10740
+ "name": "ParameterBuilderTemplate",
10741
+ "declaration": {
10742
+ "name": "ParameterBuilderTemplate",
10743
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10744
+ }
10745
+ }
10746
+ ]
10747
+ },
10748
+ {
10749
+ "kind": "javascript-module",
10750
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10506
10751
  "declarations": [
10507
10752
  {
10508
10753
  "kind": "class",
10509
- "description": "Parenthesized group of conditions/nested groups for notification template\ncriteria - see rule-condition-group for the rationale. Also forwards\n:parameters down to nested template-condition-builder rows so parameter\nbinding (USER_ENTRY) keeps working inside a group.",
10510
- "name": "TemplateConditionGroup",
10754
+ "description": "Parameter builder for notification templates.",
10755
+ "name": "ParameterBuilder",
10511
10756
  "members": [
10512
10757
  {
10513
10758
  "kind": "field",
10514
- "name": "node",
10759
+ "name": "parameter",
10515
10760
  "type": {
10516
- "text": "ConditionGroupEntity"
10761
+ "text": "ParameterBuilderEntity"
10517
10762
  }
10518
10763
  },
10519
10764
  {
10520
10765
  "kind": "field",
10521
- "name": "fields",
10766
+ "name": "name",
10522
10767
  "type": {
10523
- "text": "Field[]"
10524
- },
10525
- "default": "[]"
10768
+ "text": "string"
10769
+ }
10526
10770
  },
10527
10771
  {
10528
10772
  "kind": "field",
10529
- "name": "parameters",
10773
+ "name": "label",
10530
10774
  "type": {
10531
- "text": "Array<ParameterBuilderEntity>"
10532
- },
10533
- "default": "[]"
10775
+ "text": "string"
10776
+ }
10534
10777
  },
10535
10778
  {
10536
10779
  "kind": "field",
10537
- "name": "isFirst",
10780
+ "name": "type",
10538
10781
  "type": {
10539
- "text": "boolean"
10540
- },
10541
- "default": "false"
10782
+ "text": "string"
10783
+ }
10542
10784
  },
10543
10785
  {
10544
10786
  "kind": "field",
10545
- "name": "joinOperator",
10787
+ "name": "sourceType",
10546
10788
  "type": {
10547
10789
  "text": "string"
10548
10790
  }
10549
10791
  },
10550
10792
  {
10551
10793
  "kind": "field",
10552
- "name": "groupChildren",
10794
+ "name": "sourceSelected",
10553
10795
  "type": {
10554
- "text": "ConditionNode[]"
10796
+ "text": "string"
10797
+ }
10798
+ },
10799
+ {
10800
+ "kind": "field",
10801
+ "name": "sourceTyped",
10802
+ "type": {
10803
+ "text": "string"
10804
+ }
10805
+ },
10806
+ {
10807
+ "kind": "field",
10808
+ "name": "sourceTextField",
10809
+ "type": {
10810
+ "text": "TextField"
10811
+ }
10812
+ },
10813
+ {
10814
+ "kind": "field",
10815
+ "name": "sourceSelect",
10816
+ "type": {
10817
+ "text": "Select"
10818
+ }
10819
+ },
10820
+ {
10821
+ "kind": "field",
10822
+ "name": "reqRepItems",
10823
+ "type": {
10824
+ "text": "array"
10555
10825
  },
10556
- "default": "[]"
10826
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10557
10827
  },
10558
10828
  {
10559
10829
  "kind": "method",
10560
- "name": "nodeChanged"
10830
+ "name": "deleteParameter"
10561
10831
  },
10562
10832
  {
10563
10833
  "kind": "method",
10564
- "name": "joinOperatorChanged"
10834
+ "name": "parameterChanged"
10565
10835
  },
10566
10836
  {
10567
10837
  "kind": "method",
10568
- "name": "newCondition"
10838
+ "name": "nameChanged"
10569
10839
  },
10570
10840
  {
10571
10841
  "kind": "method",
10572
- "name": "newGroup"
10842
+ "name": "labelChanged"
10573
10843
  },
10574
10844
  {
10575
10845
  "kind": "method",
10576
- "name": "editChild",
10577
- "parameters": [
10578
- {
10579
- "name": "_editedChild",
10580
- "type": {
10581
- "text": "ConditionNode"
10582
- }
10583
- }
10584
- ]
10846
+ "name": "typeChanged"
10585
10847
  },
10586
10848
  {
10587
10849
  "kind": "method",
10588
- "name": "deleteChild",
10850
+ "name": "sourceTypeChanged"
10851
+ },
10852
+ {
10853
+ "kind": "method",
10854
+ "name": "sourceSelectedChanged"
10855
+ },
10856
+ {
10857
+ "kind": "method",
10858
+ "name": "sourceTypedChanged"
10859
+ },
10860
+ {
10861
+ "kind": "method",
10862
+ "name": "genericChanged",
10863
+ "privacy": "private",
10589
10864
  "parameters": [
10590
10865
  {
10591
- "name": "deletedChild",
10592
- "type": {
10593
- "text": "ConditionNode"
10594
- }
10866
+ "name": "parameterAttribute"
10867
+ },
10868
+ {
10869
+ "name": "value"
10595
10870
  }
10596
10871
  ]
10597
- },
10598
- {
10599
- "kind": "method",
10600
- "name": "deleteSelf"
10601
10872
  }
10602
10873
  ],
10603
10874
  "events": [
10604
10875
  {
10605
- "description": "Fired when this whole group should be removed",
10876
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10606
10877
  "name": "delete"
10607
10878
  },
10608
10879
  {
10609
- "description": "Fired when anything inside this group changes",
10880
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10610
10881
  "name": "edit"
10611
10882
  }
10612
10883
  ],
10884
+ "attributes": [
10885
+ {
10886
+ "name": "parameter",
10887
+ "type": {
10888
+ "text": "ParameterBuilderEntity"
10889
+ },
10890
+ "fieldName": "parameter"
10891
+ }
10892
+ ],
10613
10893
  "superclass": {
10614
10894
  "name": "GenesisElement",
10615
10895
  "package": "@genesislcap/web-core"
10616
10896
  },
10617
- "tagName": "template-condition-group",
10897
+ "tagName": "parameter-builder",
10618
10898
  "customElement": true
10619
10899
  }
10620
10900
  ],
10621
10901
  "exports": [
10622
10902
  {
10623
10903
  "kind": "js",
10624
- "name": "TemplateConditionGroup",
10904
+ "name": "ParameterBuilder",
10625
10905
  "declaration": {
10626
- "name": "TemplateConditionGroup",
10627
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10906
+ "name": "ParameterBuilder",
10907
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10628
10908
  }
10629
10909
  },
10630
10910
  {
10631
10911
  "kind": "custom-element-definition",
10632
- "name": "template-condition-group",
10912
+ "name": "parameter-builder",
10633
10913
  "declaration": {
10634
- "name": "TemplateConditionGroup",
10635
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10914
+ "name": "ParameterBuilder",
10915
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10636
10916
  }
10637
10917
  }
10638
10918
  ]
10639
10919
  },
10640
10920
  {
10641
10921
  "kind": "javascript-module",
10642
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10922
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
10643
10923
  "declarations": [
10644
10924
  {
10645
10925
  "kind": "variable",
10646
- "name": "TemplateConditionBuilderTemplate",
10647
- "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`"
10926
+ "name": "TemplateConditionGroupTemplate",
10927
+ "default": "html<TemplateConditionGroup>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-group-row\">\n <div class=\"condition-group-box\">\n ${repeat(\n (x) => x.groupChildren,\n html<ConditionNode, TemplateConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <template-condition-group\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :node=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <template-condition-builder\n :fields=${(x, c) => c.parent.fields}\n :parameters=${(x, c) => c.parent.parameters}\n :condition=${(x) => x}\n :isFirst=${(x, c) => c.index === 0}\n @edit=${(x, c) => c.parent.editChild(eventDetail(c))}\n @delete=${(x, c) => c.parent.deleteChild(eventDetail(c))}\n ></template-condition-builder>\n `,\n )}\n `,\n { positioning: true },\n )}\n\n <div class=\"content-row\">\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newCondition()}>\n + Condition\n </rapid-button>\n <rapid-button appearance=\"lightweight\" @click=${(x) => x.newGroup()}>+ Group</rapid-button>\n <rapid-button appearance=\"icon\" class=\"delete-group\" @click=${(x) => x.deleteSelf()}>\n <rapid-icon variant=\"regular\" name=\"trash-alt\" size=\"lg\" part=\"icon\"></rapid-icon>\n </rapid-button>\n </div>\n </div>\n </div>\n`"
10648
10928
  }
10649
10929
  ],
10650
10930
  "exports": [
10651
10931
  {
10652
10932
  "kind": "js",
10653
- "name": "TemplateConditionBuilderTemplate",
10933
+ "name": "TemplateConditionGroupTemplate",
10654
10934
  "declaration": {
10655
- "name": "TemplateConditionBuilderTemplate",
10656
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10935
+ "name": "TemplateConditionGroupTemplate",
10936
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
10657
10937
  }
10658
10938
  }
10659
10939
  ]
10660
10940
  },
10661
10941
  {
10662
10942
  "kind": "javascript-module",
10663
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10943
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
10664
10944
  "declarations": [
10665
10945
  {
10666
10946
  "kind": "class",
10667
- "description": "Condition builder for template notification rules.",
10668
- "name": "TemplateConditionBuilder",
10947
+ "description": "Parenthesized group of conditions/nested groups for notification template\ncriteria - see rule-condition-group for the rationale. Also forwards\n:parameters down to nested template-condition-builder rows so parameter\nbinding (USER_ENTRY) keeps working inside a group.",
10948
+ "name": "TemplateConditionGroup",
10669
10949
  "members": [
10670
10950
  {
10671
10951
  "kind": "field",
10672
- "name": "condition",
10952
+ "name": "node",
10673
10953
  "type": {
10674
- "text": "ConditionBuilderEntity"
10954
+ "text": "ConditionGroupEntity"
10675
10955
  }
10676
10956
  },
10677
10957
  {
10678
10958
  "kind": "field",
10679
- "name": "parameters",
10959
+ "name": "fields",
10680
10960
  "type": {
10681
- "text": "Array<ParameterBuilderEntity>"
10961
+ "text": "Field[]"
10682
10962
  },
10683
10963
  "default": "[]"
10684
10964
  },
10685
10965
  {
10686
10966
  "kind": "field",
10687
- "name": "fields",
10967
+ "name": "parameters",
10688
10968
  "type": {
10689
- "text": "Field[]"
10969
+ "text": "Array<ParameterBuilderEntity>"
10690
10970
  },
10691
10971
  "default": "[]"
10692
10972
  },
@@ -10707,91 +10987,15 @@
10707
10987
  },
10708
10988
  {
10709
10989
  "kind": "field",
10710
- "name": "leftValue",
10711
- "type": {
10712
- "text": "any"
10713
- },
10714
- "default": "null"
10715
- },
10716
- {
10717
- "kind": "field",
10718
- "name": "leftValueItems",
10719
- "type": {
10720
- "text": "Array<any>"
10721
- },
10722
- "default": "[]"
10723
- },
10724
- {
10725
- "kind": "field",
10726
- "name": "logicalOperator",
10727
- "type": {
10728
- "text": "string"
10729
- },
10730
- "default": "null"
10731
- },
10732
- {
10733
- "kind": "field",
10734
- "name": "rightCriteria",
10735
- "type": {
10736
- "text": "string"
10737
- }
10738
- },
10739
- {
10740
- "kind": "field",
10741
- "name": "rightValueText",
10742
- "type": {
10743
- "text": "string"
10744
- },
10745
- "default": "null"
10746
- },
10747
- {
10748
- "kind": "field",
10749
- "name": "rightValueSelect",
10750
- "type": {
10751
- "text": "string"
10752
- },
10753
- "default": "null"
10754
- },
10755
- {
10756
- "kind": "field",
10757
- "name": "rightValueItems",
10758
- "type": {
10759
- "text": "Array<any>"
10760
- },
10761
- "default": "[]"
10762
- },
10763
- {
10764
- "kind": "field",
10765
- "name": "rightValueMultiSelect",
10990
+ "name": "groupChildren",
10766
10991
  "type": {
10767
- "text": "string[]"
10992
+ "text": "ConditionNode[]"
10768
10993
  },
10769
10994
  "default": "[]"
10770
10995
  },
10771
- {
10772
- "kind": "field",
10773
- "name": "rightCriteriaOptions",
10774
- "type": {
10775
- "text": "RightCriteria[]"
10776
- },
10777
- "readonly": true
10778
- },
10779
- {
10780
- "kind": "field",
10781
- "name": "isStringLeftValue",
10782
- "type": {
10783
- "text": "boolean"
10784
- },
10785
- "privacy": "private",
10786
- "readonly": true
10787
- },
10788
- {
10789
- "kind": "method",
10790
- "name": "deleteCondition"
10791
- },
10792
10996
  {
10793
10997
  "kind": "method",
10794
- "name": "conditionChanged"
10998
+ "name": "nodeChanged"
10795
10999
  },
10796
11000
  {
10797
11001
  "kind": "method",
@@ -10799,98 +11003,48 @@
10799
11003
  },
10800
11004
  {
10801
11005
  "kind": "method",
10802
- "name": "parametersChanged"
11006
+ "name": "newCondition"
10803
11007
  },
10804
11008
  {
10805
11009
  "kind": "method",
10806
- "name": "getMatchingParameter",
10807
- "privacy": "private",
10808
- "return": {
10809
- "type": {
10810
- "text": "ParameterBuilderEntity | undefined"
10811
- }
10812
- }
11010
+ "name": "newGroup"
10813
11011
  },
10814
11012
  {
10815
11013
  "kind": "method",
10816
- "name": "syncParameterBinding",
10817
- "privacy": "private",
10818
- "return": {
10819
- "type": {
10820
- "text": "boolean"
11014
+ "name": "editChild",
11015
+ "parameters": [
11016
+ {
11017
+ "name": "_editedChild",
11018
+ "type": {
11019
+ "text": "ConditionNode"
11020
+ }
10821
11021
  }
10822
- }
10823
- },
10824
- {
10825
- "kind": "method",
10826
- "name": "resetToValueEditor",
10827
- "privacy": "private"
10828
- },
10829
- {
10830
- "kind": "method",
10831
- "name": "fieldsChanged"
10832
- },
10833
- {
10834
- "kind": "method",
10835
- "name": "logicalOperatorChanged"
10836
- },
10837
- {
10838
- "kind": "method",
10839
- "name": "assignLeftValue",
10840
- "privacy": "private"
10841
- },
10842
- {
10843
- "kind": "method",
10844
- "name": "leftValueChanged"
10845
- },
10846
- {
10847
- "kind": "method",
10848
- "name": "assignRightValue",
10849
- "privacy": "private"
10850
- },
10851
- {
10852
- "kind": "method",
10853
- "name": "rightCriteriaChanged"
10854
- },
10855
- {
10856
- "kind": "method",
10857
- "name": "clearRightValueText",
10858
- "privacy": "private"
10859
- },
10860
- {
10861
- "kind": "method",
10862
- "name": "clearRightValueSelect",
10863
- "privacy": "private"
10864
- },
10865
- {
10866
- "kind": "method",
10867
- "name": "rightValueTextChanged"
10868
- },
10869
- {
10870
- "kind": "method",
10871
- "name": "rightValueSelectChanged"
11022
+ ]
10872
11023
  },
10873
11024
  {
10874
11025
  "kind": "method",
10875
- "name": "rightValueMultiSelectChanged"
11026
+ "name": "deleteChild",
11027
+ "parameters": [
11028
+ {
11029
+ "name": "deletedChild",
11030
+ "type": {
11031
+ "text": "ConditionNode"
11032
+ }
11033
+ }
11034
+ ]
10876
11035
  },
10877
11036
  {
10878
11037
  "kind": "method",
10879
- "name": "getEnumValues",
10880
- "return": {
10881
- "type": {
10882
- "text": "string[]"
10883
- }
10884
- }
11038
+ "name": "deleteSelf"
10885
11039
  }
10886
11040
  ],
10887
11041
  "events": [
10888
11042
  {
10889
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
11043
+ "description": "Fired when this whole group should be removed",
10890
11044
  "name": "delete"
10891
11045
  },
10892
11046
  {
10893
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
11047
+ "description": "Fired when anything inside this group changes",
10894
11048
  "name": "edit"
10895
11049
  }
10896
11050
  ],
@@ -10898,25 +11052,25 @@
10898
11052
  "name": "GenesisElement",
10899
11053
  "package": "@genesislcap/web-core"
10900
11054
  },
10901
- "tagName": "template-condition-builder",
11055
+ "tagName": "template-condition-group",
10902
11056
  "customElement": true
10903
11057
  }
10904
11058
  ],
10905
11059
  "exports": [
10906
11060
  {
10907
11061
  "kind": "js",
10908
- "name": "TemplateConditionBuilder",
11062
+ "name": "TemplateConditionGroup",
10909
11063
  "declaration": {
10910
- "name": "TemplateConditionBuilder",
10911
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
11064
+ "name": "TemplateConditionGroup",
11065
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10912
11066
  }
10913
11067
  },
10914
11068
  {
10915
11069
  "kind": "custom-element-definition",
10916
- "name": "template-condition-builder",
11070
+ "name": "template-condition-group",
10917
11071
  "declaration": {
10918
- "name": "TemplateConditionBuilder",
10919
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
11072
+ "name": "TemplateConditionGroup",
11073
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10920
11074
  }
10921
11075
  }
10922
11076
  ]