@genesislcap/pbc-notify-ui 15.50.1 → 15.50.2

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.
@@ -7604,70 +7604,70 @@
7604
7604
  },
7605
7605
  {
7606
7606
  "kind": "javascript-module",
7607
- "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7607
+ "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7608
7608
  "declarations": [
7609
7609
  {
7610
7610
  "kind": "class",
7611
7611
  "description": "",
7612
- "name": "RouteManagement",
7612
+ "name": "NotifyAuditManagement",
7613
7613
  "superclass": {
7614
7614
  "name": "GenesisElement",
7615
7615
  "package": "@genesislcap/web-core"
7616
7616
  },
7617
- "tagName": "route-management",
7617
+ "tagName": "notify-audit-management",
7618
7618
  "customElement": true
7619
7619
  }
7620
7620
  ],
7621
7621
  "exports": [
7622
7622
  {
7623
7623
  "kind": "js",
7624
- "name": "RouteManagement",
7624
+ "name": "NotifyAuditManagement",
7625
7625
  "declaration": {
7626
- "name": "RouteManagement",
7627
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7626
+ "name": "NotifyAuditManagement",
7627
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7628
7628
  }
7629
7629
  },
7630
7630
  {
7631
7631
  "kind": "custom-element-definition",
7632
- "name": "route-management",
7632
+ "name": "notify-audit-management",
7633
7633
  "declaration": {
7634
- "name": "RouteManagement",
7635
- "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7634
+ "name": "NotifyAuditManagement",
7635
+ "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7636
7636
  }
7637
7637
  }
7638
7638
  ]
7639
7639
  },
7640
7640
  {
7641
7641
  "kind": "javascript-module",
7642
- "path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
7642
+ "path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
7643
7643
  "declarations": [
7644
7644
  {
7645
7645
  "kind": "class",
7646
7646
  "description": "",
7647
- "name": "NotifyAuditManagement",
7647
+ "name": "RouteManagement",
7648
7648
  "superclass": {
7649
7649
  "name": "GenesisElement",
7650
7650
  "package": "@genesislcap/web-core"
7651
7651
  },
7652
- "tagName": "notify-audit-management",
7652
+ "tagName": "route-management",
7653
7653
  "customElement": true
7654
7654
  }
7655
7655
  ],
7656
7656
  "exports": [
7657
7657
  {
7658
7658
  "kind": "js",
7659
- "name": "NotifyAuditManagement",
7659
+ "name": "RouteManagement",
7660
7660
  "declaration": {
7661
- "name": "NotifyAuditManagement",
7662
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7661
+ "name": "RouteManagement",
7662
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7663
7663
  }
7664
7664
  },
7665
7665
  {
7666
7666
  "kind": "custom-element-definition",
7667
- "name": "notify-audit-management",
7667
+ "name": "route-management",
7668
7668
  "declaration": {
7669
- "name": "NotifyAuditManagement",
7670
- "module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
7669
+ "name": "RouteManagement",
7670
+ "module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
7671
7671
  }
7672
7672
  }
7673
7673
  ]
@@ -10267,426 +10267,552 @@
10267
10267
  },
10268
10268
  {
10269
10269
  "kind": "javascript-module",
10270
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10271
- "declarations": [
10272
- {
10273
- "kind": "variable",
10274
- "name": "ParameterBuilderStyles",
10275
- "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
10276
- }
10277
- ],
10278
- "exports": [
10279
- {
10280
- "kind": "js",
10281
- "name": "ParameterBuilderStyles",
10282
- "declaration": {
10283
- "name": "ParameterBuilderStyles",
10284
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10285
- }
10286
- }
10287
- ]
10288
- },
10289
- {
10290
- "kind": "javascript-module",
10291
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10270
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10292
10271
  "declarations": [
10293
10272
  {
10294
10273
  "kind": "variable",
10295
- "name": "ParameterBuilderTemplate",
10296
- "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
10274
+ "name": "TemplateConditionBuilderTemplate",
10275
+ "default": "html<TemplateConditionBuilder>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (x) => x.rightCriteriaOptions,\n html`\n <rapid-option value=${(x) => x}>${(x) => rightCriteriaLabel(x)}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
10297
10276
  }
10298
10277
  ],
10299
10278
  "exports": [
10300
10279
  {
10301
10280
  "kind": "js",
10302
- "name": "ParameterBuilderTemplate",
10281
+ "name": "TemplateConditionBuilderTemplate",
10303
10282
  "declaration": {
10304
- "name": "ParameterBuilderTemplate",
10305
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10283
+ "name": "TemplateConditionBuilderTemplate",
10284
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10306
10285
  }
10307
10286
  }
10308
10287
  ]
10309
10288
  },
10310
10289
  {
10311
10290
  "kind": "javascript-module",
10312
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10291
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10313
10292
  "declarations": [
10314
10293
  {
10315
10294
  "kind": "class",
10316
- "description": "Parameter builder for notification templates.",
10317
- "name": "ParameterBuilder",
10295
+ "description": "Condition builder for template notification rules.",
10296
+ "name": "TemplateConditionBuilder",
10318
10297
  "members": [
10319
10298
  {
10320
10299
  "kind": "field",
10321
- "name": "parameter",
10300
+ "name": "condition",
10322
10301
  "type": {
10323
- "text": "ParameterBuilderEntity"
10302
+ "text": "ConditionBuilderEntity"
10324
10303
  }
10325
10304
  },
10326
10305
  {
10327
10306
  "kind": "field",
10328
- "name": "name",
10307
+ "name": "parameters",
10329
10308
  "type": {
10330
- "text": "string"
10331
- }
10309
+ "text": "Array<ParameterBuilderEntity>"
10310
+ },
10311
+ "default": "[]"
10332
10312
  },
10333
10313
  {
10334
10314
  "kind": "field",
10335
- "name": "label",
10315
+ "name": "fields",
10316
+ "type": {
10317
+ "text": "Field[]"
10318
+ },
10319
+ "default": "[]"
10320
+ },
10321
+ {
10322
+ "kind": "field",
10323
+ "name": "isFirst",
10324
+ "type": {
10325
+ "text": "boolean"
10326
+ },
10327
+ "default": "false"
10328
+ },
10329
+ {
10330
+ "kind": "field",
10331
+ "name": "joinOperator",
10336
10332
  "type": {
10337
10333
  "text": "string"
10338
10334
  }
10339
10335
  },
10340
10336
  {
10341
10337
  "kind": "field",
10342
- "name": "type",
10338
+ "name": "leftValue",
10339
+ "type": {
10340
+ "text": "any"
10341
+ },
10342
+ "default": "null"
10343
+ },
10344
+ {
10345
+ "kind": "field",
10346
+ "name": "leftValueItems",
10347
+ "type": {
10348
+ "text": "Array<any>"
10349
+ },
10350
+ "default": "[]"
10351
+ },
10352
+ {
10353
+ "kind": "field",
10354
+ "name": "logicalOperator",
10343
10355
  "type": {
10344
10356
  "text": "string"
10345
- }
10357
+ },
10358
+ "default": "null"
10346
10359
  },
10347
10360
  {
10348
10361
  "kind": "field",
10349
- "name": "sourceType",
10362
+ "name": "rightCriteria",
10350
10363
  "type": {
10351
10364
  "text": "string"
10352
10365
  }
10353
10366
  },
10354
10367
  {
10355
10368
  "kind": "field",
10356
- "name": "sourceSelected",
10369
+ "name": "rightValueText",
10357
10370
  "type": {
10358
10371
  "text": "string"
10359
- }
10372
+ },
10373
+ "default": "null"
10360
10374
  },
10361
10375
  {
10362
10376
  "kind": "field",
10363
- "name": "sourceTyped",
10377
+ "name": "rightValueSelect",
10364
10378
  "type": {
10365
10379
  "text": "string"
10366
- }
10380
+ },
10381
+ "default": "null"
10367
10382
  },
10368
10383
  {
10369
10384
  "kind": "field",
10370
- "name": "sourceTextField",
10385
+ "name": "rightValueItems",
10371
10386
  "type": {
10372
- "text": "TextField"
10373
- }
10387
+ "text": "Array<any>"
10388
+ },
10389
+ "default": "[]"
10374
10390
  },
10375
10391
  {
10376
10392
  "kind": "field",
10377
- "name": "sourceSelect",
10393
+ "name": "rightValueMultiSelect",
10378
10394
  "type": {
10379
- "text": "Select"
10380
- }
10395
+ "text": "string[]"
10396
+ },
10397
+ "default": "[]"
10381
10398
  },
10382
10399
  {
10383
10400
  "kind": "field",
10384
- "name": "reqRepItems",
10401
+ "name": "rightCriteriaOptions",
10385
10402
  "type": {
10386
- "text": "array"
10403
+ "text": "RightCriteria[]"
10387
10404
  },
10388
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10405
+ "readonly": true
10406
+ },
10407
+ {
10408
+ "kind": "field",
10409
+ "name": "isStringLeftValue",
10410
+ "type": {
10411
+ "text": "boolean"
10412
+ },
10413
+ "privacy": "private",
10414
+ "readonly": true
10389
10415
  },
10390
10416
  {
10391
10417
  "kind": "method",
10392
- "name": "deleteParameter"
10418
+ "name": "deleteCondition"
10393
10419
  },
10394
10420
  {
10395
10421
  "kind": "method",
10396
- "name": "parameterChanged"
10422
+ "name": "conditionChanged"
10397
10423
  },
10398
10424
  {
10399
10425
  "kind": "method",
10400
- "name": "nameChanged"
10426
+ "name": "joinOperatorChanged"
10401
10427
  },
10402
10428
  {
10403
10429
  "kind": "method",
10404
- "name": "labelChanged"
10430
+ "name": "parametersChanged"
10405
10431
  },
10406
10432
  {
10407
10433
  "kind": "method",
10408
- "name": "typeChanged"
10434
+ "name": "getMatchingParameter",
10435
+ "privacy": "private",
10436
+ "return": {
10437
+ "type": {
10438
+ "text": "ParameterBuilderEntity | undefined"
10439
+ }
10440
+ }
10409
10441
  },
10410
10442
  {
10411
10443
  "kind": "method",
10412
- "name": "sourceTypeChanged"
10444
+ "name": "syncParameterBinding",
10445
+ "privacy": "private",
10446
+ "return": {
10447
+ "type": {
10448
+ "text": "boolean"
10449
+ }
10450
+ }
10413
10451
  },
10414
10452
  {
10415
10453
  "kind": "method",
10416
- "name": "sourceSelectedChanged"
10454
+ "name": "resetToValueEditor",
10455
+ "privacy": "private"
10417
10456
  },
10418
10457
  {
10419
10458
  "kind": "method",
10420
- "name": "sourceTypedChanged"
10459
+ "name": "fieldsChanged"
10421
10460
  },
10422
10461
  {
10423
10462
  "kind": "method",
10424
- "name": "genericChanged",
10425
- "privacy": "private",
10426
- "parameters": [
10427
- {
10428
- "name": "parameterAttribute"
10429
- },
10430
- {
10431
- "name": "value"
10463
+ "name": "logicalOperatorChanged"
10464
+ },
10465
+ {
10466
+ "kind": "method",
10467
+ "name": "assignLeftValue",
10468
+ "privacy": "private"
10469
+ },
10470
+ {
10471
+ "kind": "method",
10472
+ "name": "leftValueChanged"
10473
+ },
10474
+ {
10475
+ "kind": "method",
10476
+ "name": "assignRightValue",
10477
+ "privacy": "private"
10478
+ },
10479
+ {
10480
+ "kind": "method",
10481
+ "name": "rightCriteriaChanged"
10482
+ },
10483
+ {
10484
+ "kind": "method",
10485
+ "name": "clearRightValueText",
10486
+ "privacy": "private"
10487
+ },
10488
+ {
10489
+ "kind": "method",
10490
+ "name": "clearRightValueSelect",
10491
+ "privacy": "private"
10492
+ },
10493
+ {
10494
+ "kind": "method",
10495
+ "name": "rightValueTextChanged"
10496
+ },
10497
+ {
10498
+ "kind": "method",
10499
+ "name": "rightValueSelectChanged"
10500
+ },
10501
+ {
10502
+ "kind": "method",
10503
+ "name": "rightValueMultiSelectChanged"
10504
+ },
10505
+ {
10506
+ "kind": "method",
10507
+ "name": "getEnumValues",
10508
+ "return": {
10509
+ "type": {
10510
+ "text": "string[]"
10432
10511
  }
10433
- ]
10512
+ }
10434
10513
  }
10435
10514
  ],
10436
10515
  "events": [
10437
10516
  {
10438
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10517
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10439
10518
  "name": "delete"
10440
10519
  },
10441
10520
  {
10442
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10521
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10443
10522
  "name": "edit"
10444
10523
  }
10445
10524
  ],
10446
- "attributes": [
10447
- {
10448
- "name": "parameter",
10449
- "type": {
10450
- "text": "ParameterBuilderEntity"
10451
- },
10452
- "fieldName": "parameter"
10453
- }
10454
- ],
10455
10525
  "superclass": {
10456
10526
  "name": "GenesisElement",
10457
10527
  "package": "@genesislcap/web-core"
10458
10528
  },
10459
- "tagName": "parameter-builder",
10529
+ "tagName": "template-condition-builder",
10460
10530
  "customElement": true
10461
10531
  }
10462
10532
  ],
10463
10533
  "exports": [
10464
10534
  {
10465
10535
  "kind": "js",
10466
- "name": "ParameterBuilder",
10536
+ "name": "TemplateConditionBuilder",
10467
10537
  "declaration": {
10468
- "name": "ParameterBuilder",
10469
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10538
+ "name": "TemplateConditionBuilder",
10539
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10470
10540
  }
10471
10541
  },
10472
10542
  {
10473
10543
  "kind": "custom-element-definition",
10474
- "name": "parameter-builder",
10544
+ "name": "template-condition-builder",
10475
10545
  "declaration": {
10476
- "name": "ParameterBuilder",
10477
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10546
+ "name": "TemplateConditionBuilder",
10547
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10478
10548
  }
10479
10549
  }
10480
10550
  ]
10481
10551
  },
10482
10552
  {
10483
10553
  "kind": "javascript-module",
10484
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
10554
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10485
10555
  "declarations": [
10486
10556
  {
10487
10557
  "kind": "variable",
10488
- "name": "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`"
10558
+ "name": "ParameterBuilderStyles",
10559
+ "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
10490
10560
  }
10491
10561
  ],
10492
10562
  "exports": [
10493
10563
  {
10494
10564
  "kind": "js",
10495
- "name": "TemplateConditionGroupTemplate",
10565
+ "name": "ParameterBuilderStyles",
10496
10566
  "declaration": {
10497
- "name": "TemplateConditionGroupTemplate",
10498
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
10567
+ "name": "ParameterBuilderStyles",
10568
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10499
10569
  }
10500
10570
  }
10501
10571
  ]
10502
10572
  },
10503
10573
  {
10504
10574
  "kind": "javascript-module",
10505
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
10575
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10576
+ "declarations": [
10577
+ {
10578
+ "kind": "variable",
10579
+ "name": "ParameterBuilderTemplate",
10580
+ "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
10581
+ }
10582
+ ],
10583
+ "exports": [
10584
+ {
10585
+ "kind": "js",
10586
+ "name": "ParameterBuilderTemplate",
10587
+ "declaration": {
10588
+ "name": "ParameterBuilderTemplate",
10589
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10590
+ }
10591
+ }
10592
+ ]
10593
+ },
10594
+ {
10595
+ "kind": "javascript-module",
10596
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10506
10597
  "declarations": [
10507
10598
  {
10508
10599
  "kind": "class",
10509
- "description": "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",
10600
+ "description": "Parameter builder for notification templates.",
10601
+ "name": "ParameterBuilder",
10511
10602
  "members": [
10512
10603
  {
10513
10604
  "kind": "field",
10514
- "name": "node",
10605
+ "name": "parameter",
10515
10606
  "type": {
10516
- "text": "ConditionGroupEntity"
10607
+ "text": "ParameterBuilderEntity"
10517
10608
  }
10518
10609
  },
10519
10610
  {
10520
10611
  "kind": "field",
10521
- "name": "fields",
10612
+ "name": "name",
10522
10613
  "type": {
10523
- "text": "Field[]"
10524
- },
10525
- "default": "[]"
10614
+ "text": "string"
10615
+ }
10526
10616
  },
10527
10617
  {
10528
10618
  "kind": "field",
10529
- "name": "parameters",
10619
+ "name": "label",
10530
10620
  "type": {
10531
- "text": "Array<ParameterBuilderEntity>"
10532
- },
10533
- "default": "[]"
10621
+ "text": "string"
10622
+ }
10534
10623
  },
10535
10624
  {
10536
10625
  "kind": "field",
10537
- "name": "isFirst",
10626
+ "name": "type",
10538
10627
  "type": {
10539
- "text": "boolean"
10540
- },
10541
- "default": "false"
10628
+ "text": "string"
10629
+ }
10542
10630
  },
10543
10631
  {
10544
10632
  "kind": "field",
10545
- "name": "joinOperator",
10633
+ "name": "sourceType",
10546
10634
  "type": {
10547
10635
  "text": "string"
10548
10636
  }
10549
10637
  },
10550
10638
  {
10551
10639
  "kind": "field",
10552
- "name": "groupChildren",
10640
+ "name": "sourceSelected",
10553
10641
  "type": {
10554
- "text": "ConditionNode[]"
10642
+ "text": "string"
10643
+ }
10644
+ },
10645
+ {
10646
+ "kind": "field",
10647
+ "name": "sourceTyped",
10648
+ "type": {
10649
+ "text": "string"
10650
+ }
10651
+ },
10652
+ {
10653
+ "kind": "field",
10654
+ "name": "sourceTextField",
10655
+ "type": {
10656
+ "text": "TextField"
10657
+ }
10658
+ },
10659
+ {
10660
+ "kind": "field",
10661
+ "name": "sourceSelect",
10662
+ "type": {
10663
+ "text": "Select"
10664
+ }
10665
+ },
10666
+ {
10667
+ "kind": "field",
10668
+ "name": "reqRepItems",
10669
+ "type": {
10670
+ "text": "array"
10555
10671
  },
10556
- "default": "[]"
10672
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10557
10673
  },
10558
10674
  {
10559
10675
  "kind": "method",
10560
- "name": "nodeChanged"
10676
+ "name": "deleteParameter"
10561
10677
  },
10562
10678
  {
10563
10679
  "kind": "method",
10564
- "name": "joinOperatorChanged"
10680
+ "name": "parameterChanged"
10565
10681
  },
10566
10682
  {
10567
10683
  "kind": "method",
10568
- "name": "newCondition"
10684
+ "name": "nameChanged"
10569
10685
  },
10570
10686
  {
10571
10687
  "kind": "method",
10572
- "name": "newGroup"
10688
+ "name": "labelChanged"
10573
10689
  },
10574
10690
  {
10575
10691
  "kind": "method",
10576
- "name": "editChild",
10577
- "parameters": [
10578
- {
10579
- "name": "_editedChild",
10580
- "type": {
10581
- "text": "ConditionNode"
10582
- }
10583
- }
10584
- ]
10692
+ "name": "typeChanged"
10585
10693
  },
10586
10694
  {
10587
10695
  "kind": "method",
10588
- "name": "deleteChild",
10696
+ "name": "sourceTypeChanged"
10697
+ },
10698
+ {
10699
+ "kind": "method",
10700
+ "name": "sourceSelectedChanged"
10701
+ },
10702
+ {
10703
+ "kind": "method",
10704
+ "name": "sourceTypedChanged"
10705
+ },
10706
+ {
10707
+ "kind": "method",
10708
+ "name": "genericChanged",
10709
+ "privacy": "private",
10589
10710
  "parameters": [
10590
10711
  {
10591
- "name": "deletedChild",
10592
- "type": {
10593
- "text": "ConditionNode"
10594
- }
10712
+ "name": "parameterAttribute"
10713
+ },
10714
+ {
10715
+ "name": "value"
10595
10716
  }
10596
10717
  ]
10597
- },
10598
- {
10599
- "kind": "method",
10600
- "name": "deleteSelf"
10601
10718
  }
10602
10719
  ],
10603
10720
  "events": [
10604
10721
  {
10605
- "description": "Fired when this whole group should be removed",
10722
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10606
10723
  "name": "delete"
10607
10724
  },
10608
10725
  {
10609
- "description": "Fired when anything inside this group changes",
10726
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10610
10727
  "name": "edit"
10611
10728
  }
10612
10729
  ],
10730
+ "attributes": [
10731
+ {
10732
+ "name": "parameter",
10733
+ "type": {
10734
+ "text": "ParameterBuilderEntity"
10735
+ },
10736
+ "fieldName": "parameter"
10737
+ }
10738
+ ],
10613
10739
  "superclass": {
10614
10740
  "name": "GenesisElement",
10615
10741
  "package": "@genesislcap/web-core"
10616
10742
  },
10617
- "tagName": "template-condition-group",
10743
+ "tagName": "parameter-builder",
10618
10744
  "customElement": true
10619
10745
  }
10620
10746
  ],
10621
10747
  "exports": [
10622
10748
  {
10623
10749
  "kind": "js",
10624
- "name": "TemplateConditionGroup",
10750
+ "name": "ParameterBuilder",
10625
10751
  "declaration": {
10626
- "name": "TemplateConditionGroup",
10627
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10752
+ "name": "ParameterBuilder",
10753
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10628
10754
  }
10629
10755
  },
10630
10756
  {
10631
10757
  "kind": "custom-element-definition",
10632
- "name": "template-condition-group",
10758
+ "name": "parameter-builder",
10633
10759
  "declaration": {
10634
- "name": "TemplateConditionGroup",
10635
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10760
+ "name": "ParameterBuilder",
10761
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
10636
10762
  }
10637
10763
  }
10638
10764
  ]
10639
10765
  },
10640
10766
  {
10641
10767
  "kind": "javascript-module",
10642
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10768
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
10643
10769
  "declarations": [
10644
10770
  {
10645
10771
  "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`"
10772
+ "name": "TemplateConditionGroupTemplate",
10773
+ "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
10774
  }
10649
10775
  ],
10650
10776
  "exports": [
10651
10777
  {
10652
10778
  "kind": "js",
10653
- "name": "TemplateConditionBuilderTemplate",
10779
+ "name": "TemplateConditionGroupTemplate",
10654
10780
  "declaration": {
10655
- "name": "TemplateConditionBuilderTemplate",
10656
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10781
+ "name": "TemplateConditionGroupTemplate",
10782
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
10657
10783
  }
10658
10784
  }
10659
10785
  ]
10660
10786
  },
10661
10787
  {
10662
10788
  "kind": "javascript-module",
10663
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10789
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
10664
10790
  "declarations": [
10665
10791
  {
10666
10792
  "kind": "class",
10667
- "description": "Condition builder for template notification rules.",
10668
- "name": "TemplateConditionBuilder",
10793
+ "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.",
10794
+ "name": "TemplateConditionGroup",
10669
10795
  "members": [
10670
10796
  {
10671
10797
  "kind": "field",
10672
- "name": "condition",
10798
+ "name": "node",
10673
10799
  "type": {
10674
- "text": "ConditionBuilderEntity"
10800
+ "text": "ConditionGroupEntity"
10675
10801
  }
10676
10802
  },
10677
10803
  {
10678
10804
  "kind": "field",
10679
- "name": "parameters",
10805
+ "name": "fields",
10680
10806
  "type": {
10681
- "text": "Array<ParameterBuilderEntity>"
10807
+ "text": "Field[]"
10682
10808
  },
10683
10809
  "default": "[]"
10684
10810
  },
10685
10811
  {
10686
10812
  "kind": "field",
10687
- "name": "fields",
10813
+ "name": "parameters",
10688
10814
  "type": {
10689
- "text": "Field[]"
10815
+ "text": "Array<ParameterBuilderEntity>"
10690
10816
  },
10691
10817
  "default": "[]"
10692
10818
  },
@@ -10707,91 +10833,15 @@
10707
10833
  },
10708
10834
  {
10709
10835
  "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",
10836
+ "name": "groupChildren",
10766
10837
  "type": {
10767
- "text": "string[]"
10838
+ "text": "ConditionNode[]"
10768
10839
  },
10769
10840
  "default": "[]"
10770
10841
  },
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
10842
  {
10793
10843
  "kind": "method",
10794
- "name": "conditionChanged"
10844
+ "name": "nodeChanged"
10795
10845
  },
10796
10846
  {
10797
10847
  "kind": "method",
@@ -10799,98 +10849,48 @@
10799
10849
  },
10800
10850
  {
10801
10851
  "kind": "method",
10802
- "name": "parametersChanged"
10852
+ "name": "newCondition"
10803
10853
  },
10804
10854
  {
10805
10855
  "kind": "method",
10806
- "name": "getMatchingParameter",
10807
- "privacy": "private",
10808
- "return": {
10809
- "type": {
10810
- "text": "ParameterBuilderEntity | undefined"
10811
- }
10812
- }
10856
+ "name": "newGroup"
10813
10857
  },
10814
10858
  {
10815
10859
  "kind": "method",
10816
- "name": "syncParameterBinding",
10817
- "privacy": "private",
10818
- "return": {
10819
- "type": {
10820
- "text": "boolean"
10860
+ "name": "editChild",
10861
+ "parameters": [
10862
+ {
10863
+ "name": "_editedChild",
10864
+ "type": {
10865
+ "text": "ConditionNode"
10866
+ }
10821
10867
  }
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"
10868
+ ]
10872
10869
  },
10873
10870
  {
10874
10871
  "kind": "method",
10875
- "name": "rightValueMultiSelectChanged"
10872
+ "name": "deleteChild",
10873
+ "parameters": [
10874
+ {
10875
+ "name": "deletedChild",
10876
+ "type": {
10877
+ "text": "ConditionNode"
10878
+ }
10879
+ }
10880
+ ]
10876
10881
  },
10877
10882
  {
10878
10883
  "kind": "method",
10879
- "name": "getEnumValues",
10880
- "return": {
10881
- "type": {
10882
- "text": "string[]"
10883
- }
10884
- }
10884
+ "name": "deleteSelf"
10885
10885
  }
10886
10886
  ],
10887
10887
  "events": [
10888
10888
  {
10889
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10889
+ "description": "Fired when this whole group should be removed",
10890
10890
  "name": "delete"
10891
10891
  },
10892
10892
  {
10893
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10893
+ "description": "Fired when anything inside this group changes",
10894
10894
  "name": "edit"
10895
10895
  }
10896
10896
  ],
@@ -10898,25 +10898,25 @@
10898
10898
  "name": "GenesisElement",
10899
10899
  "package": "@genesislcap/web-core"
10900
10900
  },
10901
- "tagName": "template-condition-builder",
10901
+ "tagName": "template-condition-group",
10902
10902
  "customElement": true
10903
10903
  }
10904
10904
  ],
10905
10905
  "exports": [
10906
10906
  {
10907
10907
  "kind": "js",
10908
- "name": "TemplateConditionBuilder",
10908
+ "name": "TemplateConditionGroup",
10909
10909
  "declaration": {
10910
- "name": "TemplateConditionBuilder",
10911
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10910
+ "name": "TemplateConditionGroup",
10911
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10912
10912
  }
10913
10913
  },
10914
10914
  {
10915
10915
  "kind": "custom-element-definition",
10916
- "name": "template-condition-builder",
10916
+ "name": "template-condition-group",
10917
10917
  "declaration": {
10918
- "name": "TemplateConditionBuilder",
10919
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10918
+ "name": "TemplateConditionGroup",
10919
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
10920
10920
  }
10921
10921
  }
10922
10922
  ]