@genesislcap/pbc-notify-ui 15.19.5 → 15.19.6

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.
@@ -8345,290 +8345,6 @@
8345
8345
  }
8346
8346
  ]
8347
8347
  },
8348
- {
8349
- "kind": "javascript-module",
8350
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
8351
- "declarations": [
8352
- {
8353
- "kind": "variable",
8354
- "name": "RuleConditionBuilderTemplate",
8355
- "default": "html<RuleConditionBuilder>`\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 title=${(x) => (x.leftValue ? JSON.parse(x.leftValue).FIELD_NAME : '')}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.getAllFields(),\n html`\n <rapid-option value=${(x) => JSON.stringify(x)} title=${(x) => x.FIELD_NAME}>\n ${(x) => x.FIELD_NAME}\n </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 title=${(x) => x.logicalOperator}\n >\n ${repeat(\n (x) => x.getLogicalOperators(),\n html`\n <rapid-option value=${(x) => x.operator} title=${(x) => x}>\n ${(x) => x.label}\n </rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select\n class=\"right-criteria\"\n :value=${sync((x) => x.rightCriteria)}\n title=${(x) => x.rightCriteria}\n >\n ${repeat(\n (x) => x.getRightCriteria(),\n html`\n <rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html`\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 ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.DATE,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n type=\"date\"\n ></rapid-text-field>\n `,\n html`\n ${whenElse(\n (x) =>\n JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.DATETIME,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n type=\"datetime-local\"\n ></rapid-text-field>\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 `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.FIELD,\n html`\n <rapid-select\n class=\"right-criteria-select\"\n :value=${sync((x) => x.rightValueSelect)}\n title=${(x) => x.rightValueSelect}\n >\n ${repeat(\n (x) => x.getApplicableFields(),\n html`\n <rapid-option value=${(x) => x.FIELD_NAME} title=${(x) => x.FIELD_NAME}>\n ${(x) => x.FIELD_NAME}\n </rapid-option>\n `,\n )}\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`"
8356
- }
8357
- ],
8358
- "exports": [
8359
- {
8360
- "kind": "js",
8361
- "name": "RuleConditionBuilderTemplate",
8362
- "declaration": {
8363
- "name": "RuleConditionBuilderTemplate",
8364
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"
8365
- }
8366
- }
8367
- ]
8368
- },
8369
- {
8370
- "kind": "javascript-module",
8371
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts",
8372
- "declarations": [
8373
- {
8374
- "kind": "class",
8375
- "description": "Condition builder for notification rule criteria.",
8376
- "name": "RuleConditionBuilder",
8377
- "members": [
8378
- {
8379
- "kind": "field",
8380
- "name": "condition",
8381
- "type": {
8382
- "text": "ConditionBuilderEntity"
8383
- }
8384
- },
8385
- {
8386
- "kind": "field",
8387
- "name": "fields",
8388
- "type": {
8389
- "text": "Field[]"
8390
- },
8391
- "default": "[]"
8392
- },
8393
- {
8394
- "kind": "field",
8395
- "name": "isFirst",
8396
- "type": {
8397
- "text": "boolean"
8398
- },
8399
- "default": "false"
8400
- },
8401
- {
8402
- "kind": "field",
8403
- "name": "joinOperator",
8404
- "type": {
8405
- "text": "string"
8406
- }
8407
- },
8408
- {
8409
- "kind": "field",
8410
- "name": "leftValue",
8411
- "type": {
8412
- "text": "string"
8413
- },
8414
- "default": "null"
8415
- },
8416
- {
8417
- "kind": "field",
8418
- "name": "leftValueItems",
8419
- "type": {
8420
- "text": "Array<any>"
8421
- },
8422
- "default": "[]"
8423
- },
8424
- {
8425
- "kind": "field",
8426
- "name": "logicalOperator",
8427
- "type": {
8428
- "text": "string"
8429
- },
8430
- "default": "null"
8431
- },
8432
- {
8433
- "kind": "field",
8434
- "name": "rightCriteria",
8435
- "type": {
8436
- "text": "string"
8437
- }
8438
- },
8439
- {
8440
- "kind": "field",
8441
- "name": "rightValueText",
8442
- "type": {
8443
- "text": "string"
8444
- },
8445
- "default": "null"
8446
- },
8447
- {
8448
- "kind": "field",
8449
- "name": "rightValueSelect",
8450
- "type": {
8451
- "text": "string"
8452
- },
8453
- "default": "null"
8454
- },
8455
- {
8456
- "kind": "field",
8457
- "name": "rightValueMultiSelect",
8458
- "type": {
8459
- "text": "string[]"
8460
- },
8461
- "default": "[]"
8462
- },
8463
- {
8464
- "kind": "method",
8465
- "name": "deleteCondition"
8466
- },
8467
- {
8468
- "kind": "method",
8469
- "name": "conditionChanged"
8470
- },
8471
- {
8472
- "kind": "method",
8473
- "name": "joinOperatorChanged"
8474
- },
8475
- {
8476
- "kind": "method",
8477
- "name": "fieldsChanged"
8478
- },
8479
- {
8480
- "kind": "method",
8481
- "name": "assignLeftValue",
8482
- "privacy": "private"
8483
- },
8484
- {
8485
- "kind": "method",
8486
- "name": "assignRightValue"
8487
- },
8488
- {
8489
- "kind": "method",
8490
- "name": "getRightCriteria",
8491
- "return": {
8492
- "type": {
8493
- "text": "Array<any>"
8494
- }
8495
- }
8496
- },
8497
- {
8498
- "kind": "method",
8499
- "name": "getLogicalOperators",
8500
- "return": {
8501
- "type": {
8502
- "text": "Array<any>"
8503
- }
8504
- }
8505
- },
8506
- {
8507
- "kind": "method",
8508
- "name": "leftValueChanged"
8509
- },
8510
- {
8511
- "kind": "method",
8512
- "name": "logicalOperatorChanged"
8513
- },
8514
- {
8515
- "kind": "method",
8516
- "name": "rightCriteriaChanged"
8517
- },
8518
- {
8519
- "kind": "method",
8520
- "name": "clearRightValueText",
8521
- "privacy": "private"
8522
- },
8523
- {
8524
- "kind": "method",
8525
- "name": "clearRightValueSelect",
8526
- "privacy": "private"
8527
- },
8528
- {
8529
- "kind": "method",
8530
- "name": "rightValueTextChanged"
8531
- },
8532
- {
8533
- "kind": "method",
8534
- "name": "rightValueSelectChanged"
8535
- },
8536
- {
8537
- "kind": "method",
8538
- "name": "rightValueMultiSelectChanged"
8539
- },
8540
- {
8541
- "kind": "method",
8542
- "name": "getEnumValues",
8543
- "return": {
8544
- "type": {
8545
- "text": "string[]"
8546
- }
8547
- }
8548
- },
8549
- {
8550
- "kind": "method",
8551
- "name": "convertDateTime",
8552
- "parameters": [
8553
- {
8554
- "name": "dateTimeStr",
8555
- "type": {
8556
- "text": "string"
8557
- }
8558
- }
8559
- ]
8560
- },
8561
- {
8562
- "kind": "method",
8563
- "name": "convertLongForDatePicker",
8564
- "parameters": [
8565
- {
8566
- "name": "value",
8567
- "type": {
8568
- "text": "number"
8569
- }
8570
- },
8571
- {
8572
- "name": "time",
8573
- "default": "false",
8574
- "type": {
8575
- "text": "boolean"
8576
- }
8577
- }
8578
- ]
8579
- },
8580
- {
8581
- "kind": "method",
8582
- "name": "getAllFields"
8583
- },
8584
- {
8585
- "kind": "method",
8586
- "name": "getApplicableFields"
8587
- }
8588
- ],
8589
- "events": [
8590
- {
8591
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
8592
- "name": "delete"
8593
- },
8594
- {
8595
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
8596
- "name": "edit"
8597
- }
8598
- ],
8599
- "superclass": {
8600
- "name": "GenesisElement",
8601
- "package": "@genesislcap/web-core"
8602
- },
8603
- "tagName": "rule-condition-builder",
8604
- "customElement": true
8605
- }
8606
- ],
8607
- "exports": [
8608
- {
8609
- "kind": "js",
8610
- "name": "RuleConditionBuilder",
8611
- "declaration": {
8612
- "name": "RuleConditionBuilder",
8613
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"
8614
- }
8615
- },
8616
- {
8617
- "kind": "custom-element-definition",
8618
- "name": "rule-condition-builder",
8619
- "declaration": {
8620
- "name": "RuleConditionBuilder",
8621
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"
8622
- }
8623
- }
8624
- ]
8625
- },
8626
- {
8627
- "kind": "javascript-module",
8628
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts",
8629
- "declarations": [],
8630
- "exports": []
8631
- },
8632
8348
  {
8633
8349
  "kind": "javascript-module",
8634
8350
  "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
@@ -8781,218 +8497,288 @@
8781
8497
  },
8782
8498
  {
8783
8499
  "kind": "javascript-module",
8784
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
8785
- "declarations": [
8786
- {
8787
- "kind": "variable",
8788
- "name": "ParameterBuilderStyles",
8789
- "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
8790
- }
8791
- ],
8792
- "exports": [
8793
- {
8794
- "kind": "js",
8795
- "name": "ParameterBuilderStyles",
8796
- "declaration": {
8797
- "name": "ParameterBuilderStyles",
8798
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
8799
- }
8800
- }
8801
- ]
8802
- },
8803
- {
8804
- "kind": "javascript-module",
8805
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
8500
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
8806
8501
  "declarations": [
8807
8502
  {
8808
8503
  "kind": "variable",
8809
- "name": "ParameterBuilderTemplate",
8810
- "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
8504
+ "name": "RuleConditionBuilderTemplate",
8505
+ "default": "html<RuleConditionBuilder>`\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 title=${(x) => (x.leftValue ? JSON.parse(x.leftValue).FIELD_NAME : '')}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.getAllFields(),\n html`\n <rapid-option value=${(x) => JSON.stringify(x)} title=${(x) => x.FIELD_NAME}>\n ${(x) => x.FIELD_NAME}\n </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 title=${(x) => x.logicalOperator}\n >\n ${repeat(\n (x) => x.getLogicalOperators(),\n html`\n <rapid-option value=${(x) => x.operator} title=${(x) => x}>\n ${(x) => x.label}\n </rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select\n class=\"right-criteria\"\n :value=${sync((x) => x.rightCriteria)}\n title=${(x) => x.rightCriteria}\n >\n ${repeat(\n (x) => x.getRightCriteria(),\n html`\n <rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html`\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 ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.DATE,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n type=\"date\"\n ></rapid-text-field>\n `,\n html`\n ${whenElse(\n (x) =>\n JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.DATETIME,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n type=\"datetime-local\"\n ></rapid-text-field>\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 `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.FIELD,\n html`\n <rapid-select\n class=\"right-criteria-select\"\n :value=${sync((x) => x.rightValueSelect)}\n title=${(x) => x.rightValueSelect}\n >\n ${repeat(\n (x) => x.getApplicableFields(),\n html`\n <rapid-option value=${(x) => x.FIELD_NAME} title=${(x) => x.FIELD_NAME}>\n ${(x) => x.FIELD_NAME}\n </rapid-option>\n `,\n )}\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`"
8811
8506
  }
8812
8507
  ],
8813
8508
  "exports": [
8814
8509
  {
8815
8510
  "kind": "js",
8816
- "name": "ParameterBuilderTemplate",
8511
+ "name": "RuleConditionBuilderTemplate",
8817
8512
  "declaration": {
8818
- "name": "ParameterBuilderTemplate",
8819
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
8513
+ "name": "RuleConditionBuilderTemplate",
8514
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"
8820
8515
  }
8821
8516
  }
8822
8517
  ]
8823
8518
  },
8824
8519
  {
8825
8520
  "kind": "javascript-module",
8826
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
8521
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts",
8827
8522
  "declarations": [
8828
8523
  {
8829
8524
  "kind": "class",
8830
- "description": "Parameter builder for notification templates.",
8831
- "name": "ParameterBuilder",
8525
+ "description": "Condition builder for notification rule criteria.",
8526
+ "name": "RuleConditionBuilder",
8832
8527
  "members": [
8833
8528
  {
8834
8529
  "kind": "field",
8835
- "name": "parameter",
8530
+ "name": "condition",
8836
8531
  "type": {
8837
- "text": "ParameterBuilderEntity"
8532
+ "text": "ConditionBuilderEntity"
8838
8533
  }
8839
8534
  },
8840
8535
  {
8841
8536
  "kind": "field",
8842
- "name": "name",
8537
+ "name": "fields",
8843
8538
  "type": {
8844
- "text": "string"
8845
- }
8539
+ "text": "Field[]"
8540
+ },
8541
+ "default": "[]"
8846
8542
  },
8847
8543
  {
8848
8544
  "kind": "field",
8849
- "name": "label",
8545
+ "name": "isFirst",
8850
8546
  "type": {
8851
- "text": "string"
8852
- }
8547
+ "text": "boolean"
8548
+ },
8549
+ "default": "false"
8853
8550
  },
8854
8551
  {
8855
8552
  "kind": "field",
8856
- "name": "type",
8553
+ "name": "joinOperator",
8857
8554
  "type": {
8858
8555
  "text": "string"
8859
8556
  }
8860
8557
  },
8861
8558
  {
8862
8559
  "kind": "field",
8863
- "name": "sourceType",
8560
+ "name": "leftValue",
8864
8561
  "type": {
8865
8562
  "text": "string"
8866
- }
8563
+ },
8564
+ "default": "null"
8867
8565
  },
8868
8566
  {
8869
8567
  "kind": "field",
8870
- "name": "sourceSelected",
8568
+ "name": "leftValueItems",
8569
+ "type": {
8570
+ "text": "Array<any>"
8571
+ },
8572
+ "default": "[]"
8573
+ },
8574
+ {
8575
+ "kind": "field",
8576
+ "name": "logicalOperator",
8871
8577
  "type": {
8872
8578
  "text": "string"
8873
- }
8579
+ },
8580
+ "default": "null"
8874
8581
  },
8875
8582
  {
8876
8583
  "kind": "field",
8877
- "name": "sourceTyped",
8584
+ "name": "rightCriteria",
8878
8585
  "type": {
8879
8586
  "text": "string"
8880
8587
  }
8881
8588
  },
8882
8589
  {
8883
8590
  "kind": "field",
8884
- "name": "sourceTextField",
8591
+ "name": "rightValueText",
8885
8592
  "type": {
8886
- "text": "TextField"
8887
- }
8593
+ "text": "string"
8594
+ },
8595
+ "default": "null"
8888
8596
  },
8889
8597
  {
8890
8598
  "kind": "field",
8891
- "name": "sourceSelect",
8599
+ "name": "rightValueSelect",
8892
8600
  "type": {
8893
- "text": "Select"
8894
- }
8601
+ "text": "string"
8602
+ },
8603
+ "default": "null"
8895
8604
  },
8896
8605
  {
8897
8606
  "kind": "field",
8898
- "name": "reqRepItems",
8607
+ "name": "rightValueMultiSelect",
8899
8608
  "type": {
8900
- "text": "array"
8609
+ "text": "string[]"
8901
8610
  },
8902
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
8611
+ "default": "[]"
8903
8612
  },
8904
8613
  {
8905
8614
  "kind": "method",
8906
- "name": "deleteParameter"
8615
+ "name": "deleteCondition"
8907
8616
  },
8908
8617
  {
8909
8618
  "kind": "method",
8910
- "name": "parameterChanged"
8619
+ "name": "conditionChanged"
8911
8620
  },
8912
8621
  {
8913
8622
  "kind": "method",
8914
- "name": "nameChanged"
8623
+ "name": "joinOperatorChanged"
8915
8624
  },
8916
8625
  {
8917
8626
  "kind": "method",
8918
- "name": "labelChanged"
8627
+ "name": "fieldsChanged"
8919
8628
  },
8920
8629
  {
8921
8630
  "kind": "method",
8922
- "name": "typeChanged"
8631
+ "name": "assignLeftValue",
8632
+ "privacy": "private"
8923
8633
  },
8924
8634
  {
8925
8635
  "kind": "method",
8926
- "name": "sourceTypeChanged"
8636
+ "name": "assignRightValue"
8927
8637
  },
8928
8638
  {
8929
8639
  "kind": "method",
8930
- "name": "sourceSelectedChanged"
8640
+ "name": "getRightCriteria",
8641
+ "return": {
8642
+ "type": {
8643
+ "text": "Array<any>"
8644
+ }
8645
+ }
8931
8646
  },
8932
8647
  {
8933
8648
  "kind": "method",
8934
- "name": "sourceTypedChanged"
8649
+ "name": "getLogicalOperators",
8650
+ "return": {
8651
+ "type": {
8652
+ "text": "Array<any>"
8653
+ }
8654
+ }
8935
8655
  },
8936
8656
  {
8937
8657
  "kind": "method",
8938
- "name": "genericChanged",
8939
- "privacy": "private",
8658
+ "name": "leftValueChanged"
8659
+ },
8660
+ {
8661
+ "kind": "method",
8662
+ "name": "logicalOperatorChanged"
8663
+ },
8664
+ {
8665
+ "kind": "method",
8666
+ "name": "rightCriteriaChanged"
8667
+ },
8668
+ {
8669
+ "kind": "method",
8670
+ "name": "clearRightValueText",
8671
+ "privacy": "private"
8672
+ },
8673
+ {
8674
+ "kind": "method",
8675
+ "name": "clearRightValueSelect",
8676
+ "privacy": "private"
8677
+ },
8678
+ {
8679
+ "kind": "method",
8680
+ "name": "rightValueTextChanged"
8681
+ },
8682
+ {
8683
+ "kind": "method",
8684
+ "name": "rightValueSelectChanged"
8685
+ },
8686
+ {
8687
+ "kind": "method",
8688
+ "name": "rightValueMultiSelectChanged"
8689
+ },
8690
+ {
8691
+ "kind": "method",
8692
+ "name": "getEnumValues",
8693
+ "return": {
8694
+ "type": {
8695
+ "text": "string[]"
8696
+ }
8697
+ }
8698
+ },
8699
+ {
8700
+ "kind": "method",
8701
+ "name": "convertDateTime",
8940
8702
  "parameters": [
8941
8703
  {
8942
- "name": "parameterAttribute"
8704
+ "name": "dateTimeStr",
8705
+ "type": {
8706
+ "text": "string"
8707
+ }
8708
+ }
8709
+ ]
8710
+ },
8711
+ {
8712
+ "kind": "method",
8713
+ "name": "convertLongForDatePicker",
8714
+ "parameters": [
8715
+ {
8716
+ "name": "value",
8717
+ "type": {
8718
+ "text": "number"
8719
+ }
8943
8720
  },
8944
8721
  {
8945
- "name": "value"
8722
+ "name": "time",
8723
+ "default": "false",
8724
+ "type": {
8725
+ "text": "boolean"
8726
+ }
8946
8727
  }
8947
8728
  ]
8729
+ },
8730
+ {
8731
+ "kind": "method",
8732
+ "name": "getAllFields"
8733
+ },
8734
+ {
8735
+ "kind": "method",
8736
+ "name": "getApplicableFields"
8948
8737
  }
8949
8738
  ],
8950
8739
  "events": [
8951
8740
  {
8952
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
8741
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
8953
8742
  "name": "delete"
8954
8743
  },
8955
8744
  {
8956
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
8745
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
8957
8746
  "name": "edit"
8958
8747
  }
8959
8748
  ],
8960
- "attributes": [
8961
- {
8962
- "name": "parameter",
8963
- "type": {
8964
- "text": "ParameterBuilderEntity"
8965
- },
8966
- "fieldName": "parameter"
8967
- }
8968
- ],
8969
8749
  "superclass": {
8970
8750
  "name": "GenesisElement",
8971
8751
  "package": "@genesislcap/web-core"
8972
8752
  },
8973
- "tagName": "parameter-builder",
8753
+ "tagName": "rule-condition-builder",
8974
8754
  "customElement": true
8975
8755
  }
8976
8756
  ],
8977
8757
  "exports": [
8978
8758
  {
8979
8759
  "kind": "js",
8980
- "name": "ParameterBuilder",
8760
+ "name": "RuleConditionBuilder",
8981
8761
  "declaration": {
8982
- "name": "ParameterBuilder",
8983
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
8762
+ "name": "RuleConditionBuilder",
8763
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"
8984
8764
  }
8985
8765
  },
8986
8766
  {
8987
8767
  "kind": "custom-element-definition",
8988
- "name": "parameter-builder",
8768
+ "name": "rule-condition-builder",
8989
8769
  "declaration": {
8990
- "name": "ParameterBuilder",
8991
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
8770
+ "name": "RuleConditionBuilder",
8771
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.ts"
8992
8772
  }
8993
8773
  }
8994
8774
  ]
8995
8775
  },
8776
+ {
8777
+ "kind": "javascript-module",
8778
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.ts",
8779
+ "declarations": [],
8780
+ "exports": []
8781
+ },
8996
8782
  {
8997
8783
  "kind": "javascript-module",
8998
8784
  "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
@@ -9417,6 +9203,220 @@
9417
9203
  }
9418
9204
  }
9419
9205
  ]
9206
+ },
9207
+ {
9208
+ "kind": "javascript-module",
9209
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
9210
+ "declarations": [
9211
+ {
9212
+ "kind": "variable",
9213
+ "name": "ParameterBuilderStyles",
9214
+ "default": "css`\n .parameter-builder {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n margin-bottom: calc(var(--design-unit) * 2px);\n }\n\n rapid-button {\n margin: 0;\n }\n\n .delete {\n margin: 0;\n display: flex;\n justify-content: center;\n height: calc(var(--design-unit) * 9px);\n }\n\n .delete:hover {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);\n }\n\n rapid-text-field {\n width: 100%;\n margin-bottom: 0;\n }\n\n rapid-text-field::part(root) {\n height: calc(var(--design-unit) * 9px);\n }\n\n rapid-select {\n min-width: auto;\n }\n\n rapid-select.param-type::part(control) {\n width: 115px;\n }\n\n rapid-select.param-source-type::part(control) {\n width: 160px;\n }\n\n rapid-select.param-source::part(control) {\n width: ${PARAM_SOURCE_WIDTH}px;\n }\n\n rapid-text-field.param-source::part(root) {\n width: calc(${PARAM_SOURCE_WIDTH}px + 2px);\n }\n\n rapid-select::part(listbox) {\n max-height: 160px;\n }\n`"
9215
+ }
9216
+ ],
9217
+ "exports": [
9218
+ {
9219
+ "kind": "js",
9220
+ "name": "ParameterBuilderStyles",
9221
+ "declaration": {
9222
+ "name": "ParameterBuilderStyles",
9223
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
9224
+ }
9225
+ }
9226
+ ]
9227
+ },
9228
+ {
9229
+ "kind": "javascript-module",
9230
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
9231
+ "declarations": [
9232
+ {
9233
+ "kind": "variable",
9234
+ "name": "ParameterBuilderTemplate",
9235
+ "default": "html<ParameterBuilder>`\n <div class=\"parameter-builder\">\n <rapid-text-field\n id=\"param-name\"\n placeholder=\"Name\"\n :value=${sync((x) => x.name)}\n ></rapid-text-field>\n\n <rapid-text-field\n id=\"param-label\"\n placeholder=\"Label\"\n :value=${sync((x) => x.label)}\n ></rapid-text-field>\n\n <rapid-select\n id=\"param-source-type\"\n :value=${sync((x) => x.sourceType)}\n class=\"param-source-type\"\n >\n ${repeat(\n (x) => ALL_PARAM_SOURCE_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT,\n html<ParameterBuilder>`\n <rapid-text-field class=\"param-source\" disabled></rapid-text-field>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP,\n html<ParameterBuilder>`\n <rapid-select\n ${ref('sourceSelect')}\n id=\"param-source\"\n :value=${sync((x) => x.sourceSelected)}\n class=\"param-source\"\n ?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}\n >\n ${repeat(\n (x) => x.reqRepItems,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n `,\n )}\n ${when(\n (x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP,\n html<ParameterBuilder>`\n <rapid-text-field\n ${ref('sourceTextField')}\n class=\"param-source\"\n placeholder=\"item1,item2,item3\"\n :value=${sync((x) => x.sourceTyped)}\n ></rapid-text-field>\n `,\n )}\n\n <rapid-select id=\"param-type\" :value=${sync((x) => x.type)} class=\"param-type\">\n ${repeat(\n (x) => ALL_PARAM_TYPES,\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteParameter()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
9236
+ }
9237
+ ],
9238
+ "exports": [
9239
+ {
9240
+ "kind": "js",
9241
+ "name": "ParameterBuilderTemplate",
9242
+ "declaration": {
9243
+ "name": "ParameterBuilderTemplate",
9244
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
9245
+ }
9246
+ }
9247
+ ]
9248
+ },
9249
+ {
9250
+ "kind": "javascript-module",
9251
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
9252
+ "declarations": [
9253
+ {
9254
+ "kind": "class",
9255
+ "description": "Parameter builder for notification templates.",
9256
+ "name": "ParameterBuilder",
9257
+ "members": [
9258
+ {
9259
+ "kind": "field",
9260
+ "name": "parameter",
9261
+ "type": {
9262
+ "text": "ParameterBuilderEntity"
9263
+ }
9264
+ },
9265
+ {
9266
+ "kind": "field",
9267
+ "name": "name",
9268
+ "type": {
9269
+ "text": "string"
9270
+ }
9271
+ },
9272
+ {
9273
+ "kind": "field",
9274
+ "name": "label",
9275
+ "type": {
9276
+ "text": "string"
9277
+ }
9278
+ },
9279
+ {
9280
+ "kind": "field",
9281
+ "name": "type",
9282
+ "type": {
9283
+ "text": "string"
9284
+ }
9285
+ },
9286
+ {
9287
+ "kind": "field",
9288
+ "name": "sourceType",
9289
+ "type": {
9290
+ "text": "string"
9291
+ }
9292
+ },
9293
+ {
9294
+ "kind": "field",
9295
+ "name": "sourceSelected",
9296
+ "type": {
9297
+ "text": "string"
9298
+ }
9299
+ },
9300
+ {
9301
+ "kind": "field",
9302
+ "name": "sourceTyped",
9303
+ "type": {
9304
+ "text": "string"
9305
+ }
9306
+ },
9307
+ {
9308
+ "kind": "field",
9309
+ "name": "sourceTextField",
9310
+ "type": {
9311
+ "text": "TextField"
9312
+ }
9313
+ },
9314
+ {
9315
+ "kind": "field",
9316
+ "name": "sourceSelect",
9317
+ "type": {
9318
+ "text": "Select"
9319
+ }
9320
+ },
9321
+ {
9322
+ "kind": "field",
9323
+ "name": "reqRepItems",
9324
+ "type": {
9325
+ "text": "array"
9326
+ },
9327
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
9328
+ },
9329
+ {
9330
+ "kind": "method",
9331
+ "name": "deleteParameter"
9332
+ },
9333
+ {
9334
+ "kind": "method",
9335
+ "name": "parameterChanged"
9336
+ },
9337
+ {
9338
+ "kind": "method",
9339
+ "name": "nameChanged"
9340
+ },
9341
+ {
9342
+ "kind": "method",
9343
+ "name": "labelChanged"
9344
+ },
9345
+ {
9346
+ "kind": "method",
9347
+ "name": "typeChanged"
9348
+ },
9349
+ {
9350
+ "kind": "method",
9351
+ "name": "sourceTypeChanged"
9352
+ },
9353
+ {
9354
+ "kind": "method",
9355
+ "name": "sourceSelectedChanged"
9356
+ },
9357
+ {
9358
+ "kind": "method",
9359
+ "name": "sourceTypedChanged"
9360
+ },
9361
+ {
9362
+ "kind": "method",
9363
+ "name": "genericChanged",
9364
+ "privacy": "private",
9365
+ "parameters": [
9366
+ {
9367
+ "name": "parameterAttribute"
9368
+ },
9369
+ {
9370
+ "name": "value"
9371
+ }
9372
+ ]
9373
+ }
9374
+ ],
9375
+ "events": [
9376
+ {
9377
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
9378
+ "name": "delete"
9379
+ },
9380
+ {
9381
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
9382
+ "name": "edit"
9383
+ }
9384
+ ],
9385
+ "attributes": [
9386
+ {
9387
+ "name": "parameter",
9388
+ "type": {
9389
+ "text": "ParameterBuilderEntity"
9390
+ },
9391
+ "fieldName": "parameter"
9392
+ }
9393
+ ],
9394
+ "superclass": {
9395
+ "name": "GenesisElement",
9396
+ "package": "@genesislcap/web-core"
9397
+ },
9398
+ "tagName": "parameter-builder",
9399
+ "customElement": true
9400
+ }
9401
+ ],
9402
+ "exports": [
9403
+ {
9404
+ "kind": "js",
9405
+ "name": "ParameterBuilder",
9406
+ "declaration": {
9407
+ "name": "ParameterBuilder",
9408
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9409
+ }
9410
+ },
9411
+ {
9412
+ "kind": "custom-element-definition",
9413
+ "name": "parameter-builder",
9414
+ "declaration": {
9415
+ "name": "ParameterBuilder",
9416
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9417
+ }
9418
+ }
9419
+ ]
9420
9420
  }
9421
9421
  ]
9422
9422
  }
@@ -255,17 +255,6 @@ export declare const TemplateDialog: React.ForwardRefExoticComponent<
255
255
  >;
256
256
  export type TemplateDialogRef = TemplateDialogWC;
257
257
 
258
- export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
259
- React.PropsWithChildren<
260
- Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
261
- HTMLWCProps & {
262
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
263
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
264
- }
265
- > & React.RefAttributes<RuleConditionBuilderWC>
266
- >;
267
- export type RuleConditionBuilderRef = RuleConditionBuilderWC;
268
-
269
258
  export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
270
259
  React.PropsWithChildren<
271
260
  Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
@@ -277,16 +266,16 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
277
266
  >;
278
267
  export type RuleConditionGroupRef = RuleConditionGroupWC;
279
268
 
280
- export declare const ParameterBuilder: React.ForwardRefExoticComponent<
269
+ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
281
270
  React.PropsWithChildren<
282
- Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
271
+ Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
283
272
  HTMLWCProps & {
284
- onDelete?: (event: CustomEvent<ParameterBuilderEntity>) => void;
285
- onEdit?: (event: CustomEvent<ParameterBuilderEntity>) => void;
273
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
274
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
286
275
  }
287
- > & React.RefAttributes<ParameterBuilderWC>
276
+ > & React.RefAttributes<RuleConditionBuilderWC>
288
277
  >;
289
- export type ParameterBuilderRef = ParameterBuilderWC;
278
+ export type RuleConditionBuilderRef = RuleConditionBuilderWC;
290
279
 
291
280
  export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
292
281
  React.PropsWithChildren<
@@ -310,4 +299,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
310
299
  >;
311
300
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
312
301
 
302
+ export declare const ParameterBuilder: React.ForwardRefExoticComponent<
303
+ React.PropsWithChildren<
304
+ Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
305
+ HTMLWCProps & {
306
+ onDelete?: (event: CustomEvent<ParameterBuilderEntity>) => void;
307
+ onEdit?: (event: CustomEvent<ParameterBuilderEntity>) => void;
308
+ }
309
+ > & React.RefAttributes<ParameterBuilderWC>
310
+ >;
311
+ export type ParameterBuilderRef = ParameterBuilderWC;
312
+
313
313
  export {};
package/dist/react.cjs CHANGED
@@ -200,7 +200,7 @@ const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
200
200
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
201
201
  });
202
202
 
203
- const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
203
+ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
204
204
  const { onDelete, onEdit, children, ...rest } = props;
205
205
  const _innerRef = React.useRef(null);
206
206
  const _onDeleteRef = React.useRef(onDelete);
@@ -219,10 +219,10 @@ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(prop
219
219
  el.removeEventListener('edit', _onEditFn);
220
220
  };
221
221
  }, []);
222
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
222
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
223
223
  });
224
224
 
225
- const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
225
+ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
226
226
  const { onDelete, onEdit, children, ...rest } = props;
227
227
  const _innerRef = React.useRef(null);
228
228
  const _onDeleteRef = React.useRef(onDelete);
@@ -241,10 +241,10 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
241
241
  el.removeEventListener('edit', _onEditFn);
242
242
  };
243
243
  }, []);
244
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
244
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
245
245
  });
246
246
 
247
- const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
247
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
248
248
  const { onDelete, onEdit, children, ...rest } = props;
249
249
  const _innerRef = React.useRef(null);
250
250
  const _onDeleteRef = React.useRef(onDelete);
@@ -263,10 +263,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
263
263
  el.removeEventListener('edit', _onEditFn);
264
264
  };
265
265
  }, []);
266
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
266
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
267
267
  });
268
268
 
269
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
269
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
270
270
  const { onDelete, onEdit, children, ...rest } = props;
271
271
  const _innerRef = React.useRef(null);
272
272
  const _onDeleteRef = React.useRef(onDelete);
@@ -285,10 +285,10 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
285
285
  el.removeEventListener('edit', _onEditFn);
286
286
  };
287
287
  }, []);
288
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
288
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
289
289
  });
290
290
 
291
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
291
+ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
292
292
  const { onDelete, onEdit, children, ...rest } = props;
293
293
  const _innerRef = React.useRef(null);
294
294
  const _onDeleteRef = React.useRef(onDelete);
@@ -307,7 +307,7 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
307
307
  el.removeEventListener('edit', _onEditFn);
308
308
  };
309
309
  }, []);
310
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
310
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
311
311
  });
312
312
 
313
313
  module.exports = {
@@ -332,9 +332,9 @@ module.exports = {
332
332
  SlackRouteManagement,
333
333
  RuleDialog,
334
334
  TemplateDialog,
335
- RuleConditionBuilder,
336
335
  RuleConditionGroup,
337
- ParameterBuilder,
336
+ RuleConditionBuilder,
338
337
  TemplateConditionBuilder,
339
338
  TemplateConditionGroup,
339
+ ParameterBuilder,
340
340
  };
package/dist/react.mjs CHANGED
@@ -198,7 +198,7 @@ export const TemplateDialog = React.forwardRef(function TemplateDialog(props, re
198
198
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
199
199
  });
200
200
 
201
- export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
201
+ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
202
202
  const { onDelete, onEdit, children, ...rest } = props;
203
203
  const _innerRef = React.useRef(null);
204
204
  const _onDeleteRef = React.useRef(onDelete);
@@ -217,10 +217,10 @@ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuild
217
217
  el.removeEventListener('edit', _onEditFn);
218
218
  };
219
219
  }, []);
220
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
220
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
221
221
  });
222
222
 
223
- export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
223
+ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
224
224
  const { onDelete, onEdit, children, ...rest } = props;
225
225
  const _innerRef = React.useRef(null);
226
226
  const _onDeleteRef = React.useRef(onDelete);
@@ -239,10 +239,10 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
239
239
  el.removeEventListener('edit', _onEditFn);
240
240
  };
241
241
  }, []);
242
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
242
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
243
243
  });
244
244
 
245
- export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
245
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
246
246
  const { onDelete, onEdit, children, ...rest } = props;
247
247
  const _innerRef = React.useRef(null);
248
248
  const _onDeleteRef = React.useRef(onDelete);
@@ -261,10 +261,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
261
261
  el.removeEventListener('edit', _onEditFn);
262
262
  };
263
263
  }, []);
264
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
264
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
265
265
  });
266
266
 
267
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
267
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
268
268
  const { onDelete, onEdit, children, ...rest } = props;
269
269
  const _innerRef = React.useRef(null);
270
270
  const _onDeleteRef = React.useRef(onDelete);
@@ -283,10 +283,10 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
283
283
  el.removeEventListener('edit', _onEditFn);
284
284
  };
285
285
  }, []);
286
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
286
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
287
287
  });
288
288
 
289
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
289
+ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
290
290
  const { onDelete, onEdit, children, ...rest } = props;
291
291
  const _innerRef = React.useRef(null);
292
292
  const _onDeleteRef = React.useRef(onDelete);
@@ -305,5 +305,5 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
305
305
  el.removeEventListener('edit', _onEditFn);
306
306
  };
307
307
  }, []);
308
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
308
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
309
309
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "15.19.5",
4
+ "version": "15.19.6",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -81,30 +81,30 @@
81
81
  "@commitlint/cli": "^19.2.1",
82
82
  "@commitlint/config-conventional": "^19.1.0",
83
83
  "@commitlint/format": "^19.0.3",
84
- "@genesislcap/design-system-configurator": "15.19.5",
85
- "@genesislcap/eslint-config": "15.19.5",
86
- "@genesislcap/eslint-stylelint-builder": "15.19.5",
87
- "@genesislcap/foundation-testing": "15.19.5",
88
- "@genesislcap/genx": "15.19.5",
89
- "@genesislcap/prettier-config": "15.19.5",
90
- "@genesislcap/stylelint-config": "15.19.5",
91
- "@genesislcap/vite-builder": "15.19.5",
92
- "@genesislcap/webpack-builder": "15.19.5",
84
+ "@genesislcap/design-system-configurator": "15.19.6",
85
+ "@genesislcap/eslint-config": "15.19.6",
86
+ "@genesislcap/eslint-stylelint-builder": "15.19.6",
87
+ "@genesislcap/foundation-testing": "15.19.6",
88
+ "@genesislcap/genx": "15.19.6",
89
+ "@genesislcap/prettier-config": "15.19.6",
90
+ "@genesislcap/stylelint-config": "15.19.6",
91
+ "@genesislcap/vite-builder": "15.19.6",
92
+ "@genesislcap/webpack-builder": "15.19.6",
93
93
  "dayjs": "^1.11.7"
94
94
  },
95
95
  "dependencies": {
96
- "@genesislcap/foundation-comms": "15.19.5",
97
- "@genesislcap/foundation-criteria": "15.19.5",
98
- "@genesislcap/foundation-entity-management": "15.19.5",
99
- "@genesislcap/foundation-forms": "15.19.5",
100
- "@genesislcap/foundation-layout": "15.19.5",
101
- "@genesislcap/foundation-logger": "15.19.5",
102
- "@genesislcap/foundation-notifications": "15.19.5",
103
- "@genesislcap/foundation-ui": "15.19.5",
104
- "@genesislcap/foundation-utils": "15.19.5",
105
- "@genesislcap/rapid-design-system": "15.19.5",
106
- "@genesislcap/rapid-grid-pro": "15.19.5",
107
- "@genesislcap/web-core": "15.19.5",
96
+ "@genesislcap/foundation-comms": "15.19.6",
97
+ "@genesislcap/foundation-criteria": "15.19.6",
98
+ "@genesislcap/foundation-entity-management": "15.19.6",
99
+ "@genesislcap/foundation-forms": "15.19.6",
100
+ "@genesislcap/foundation-layout": "15.19.6",
101
+ "@genesislcap/foundation-logger": "15.19.6",
102
+ "@genesislcap/foundation-notifications": "15.19.6",
103
+ "@genesislcap/foundation-ui": "15.19.6",
104
+ "@genesislcap/foundation-utils": "15.19.6",
105
+ "@genesislcap/rapid-design-system": "15.19.6",
106
+ "@genesislcap/rapid-grid-pro": "15.19.6",
107
+ "@genesislcap/web-core": "15.19.6",
108
108
  "lodash.debounce": "^4.0.8",
109
109
  "rxjs": "^7.5.4"
110
110
  },