@genesislcap/pbc-notify-ui 15.10.2 → 15.10.3

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.
@@ -8772,426 +8772,560 @@
8772
8772
  },
8773
8773
  {
8774
8774
  "kind": "javascript-module",
8775
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
8776
- "declarations": [
8777
- {
8778
- "kind": "variable",
8779
- "name": "ParameterBuilderStyles",
8780
- "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`"
8781
- }
8782
- ],
8783
- "exports": [
8784
- {
8785
- "kind": "js",
8786
- "name": "ParameterBuilderStyles",
8787
- "declaration": {
8788
- "name": "ParameterBuilderStyles",
8789
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
8790
- }
8791
- }
8792
- ]
8793
- },
8794
- {
8795
- "kind": "javascript-module",
8796
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
8775
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
8797
8776
  "declarations": [
8798
8777
  {
8799
8778
  "kind": "variable",
8800
- "name": "ParameterBuilderTemplate",
8801
- "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`"
8779
+ "name": "TemplateConditionBuilderTemplate",
8780
+ "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 (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => 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`"
8802
8781
  }
8803
8782
  ],
8804
8783
  "exports": [
8805
8784
  {
8806
8785
  "kind": "js",
8807
- "name": "ParameterBuilderTemplate",
8786
+ "name": "TemplateConditionBuilderTemplate",
8808
8787
  "declaration": {
8809
- "name": "ParameterBuilderTemplate",
8810
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
8788
+ "name": "TemplateConditionBuilderTemplate",
8789
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
8811
8790
  }
8812
8791
  }
8813
8792
  ]
8814
8793
  },
8815
8794
  {
8816
8795
  "kind": "javascript-module",
8817
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
8796
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
8818
8797
  "declarations": [
8819
8798
  {
8820
8799
  "kind": "class",
8821
- "description": "Parameter builder for notification templates.",
8822
- "name": "ParameterBuilder",
8800
+ "description": "Condition builder for template notification rules.",
8801
+ "name": "TemplateConditionBuilder",
8823
8802
  "members": [
8824
8803
  {
8825
8804
  "kind": "field",
8826
- "name": "parameter",
8805
+ "name": "condition",
8827
8806
  "type": {
8828
- "text": "ParameterBuilderEntity"
8807
+ "text": "ConditionBuilderEntity"
8829
8808
  }
8830
8809
  },
8831
8810
  {
8832
8811
  "kind": "field",
8833
- "name": "name",
8812
+ "name": "parameters",
8834
8813
  "type": {
8835
- "text": "string"
8836
- }
8814
+ "text": "Array<ParameterBuilderEntity>"
8815
+ },
8816
+ "default": "[]"
8837
8817
  },
8838
8818
  {
8839
8819
  "kind": "field",
8840
- "name": "label",
8820
+ "name": "fields",
8841
8821
  "type": {
8842
- "text": "string"
8843
- }
8822
+ "text": "Array<string>"
8823
+ },
8824
+ "default": "[]"
8844
8825
  },
8845
8826
  {
8846
8827
  "kind": "field",
8847
- "name": "type",
8828
+ "name": "isFirst",
8829
+ "type": {
8830
+ "text": "boolean"
8831
+ },
8832
+ "default": "false"
8833
+ },
8834
+ {
8835
+ "kind": "field",
8836
+ "name": "joinOperator",
8848
8837
  "type": {
8849
8838
  "text": "string"
8850
8839
  }
8851
8840
  },
8852
8841
  {
8853
8842
  "kind": "field",
8854
- "name": "sourceType",
8843
+ "name": "leftValue",
8844
+ "type": {
8845
+ "text": "any"
8846
+ },
8847
+ "default": "null"
8848
+ },
8849
+ {
8850
+ "kind": "field",
8851
+ "name": "leftValueItems",
8852
+ "type": {
8853
+ "text": "Array<any>"
8854
+ },
8855
+ "default": "[]"
8856
+ },
8857
+ {
8858
+ "kind": "field",
8859
+ "name": "logicalOperator",
8855
8860
  "type": {
8856
8861
  "text": "string"
8857
- }
8862
+ },
8863
+ "default": "null"
8858
8864
  },
8859
8865
  {
8860
8866
  "kind": "field",
8861
- "name": "sourceSelected",
8867
+ "name": "rightCriteria",
8862
8868
  "type": {
8863
8869
  "text": "string"
8864
8870
  }
8865
8871
  },
8866
8872
  {
8867
8873
  "kind": "field",
8868
- "name": "sourceTyped",
8874
+ "name": "rightValueText",
8869
8875
  "type": {
8870
8876
  "text": "string"
8871
- }
8877
+ },
8878
+ "default": "null"
8872
8879
  },
8873
8880
  {
8874
8881
  "kind": "field",
8875
- "name": "sourceTextField",
8882
+ "name": "rightValueSelect",
8876
8883
  "type": {
8877
- "text": "TextField"
8878
- }
8884
+ "text": "string"
8885
+ },
8886
+ "default": "null"
8879
8887
  },
8880
8888
  {
8881
8889
  "kind": "field",
8882
- "name": "sourceSelect",
8890
+ "name": "rightValueItems",
8883
8891
  "type": {
8884
- "text": "Select"
8885
- }
8892
+ "text": "Array<any>"
8893
+ },
8894
+ "default": "[]"
8886
8895
  },
8887
8896
  {
8888
8897
  "kind": "field",
8889
- "name": "reqRepItems",
8898
+ "name": "rightValueMultiSelect",
8890
8899
  "type": {
8891
- "text": "array"
8900
+ "text": "string[]"
8892
8901
  },
8893
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
8902
+ "default": "[]"
8894
8903
  },
8895
8904
  {
8896
8905
  "kind": "method",
8897
- "name": "deleteParameter"
8906
+ "name": "deleteCondition"
8898
8907
  },
8899
8908
  {
8900
8909
  "kind": "method",
8901
- "name": "parameterChanged"
8910
+ "name": "conditionChanged"
8902
8911
  },
8903
8912
  {
8904
8913
  "kind": "method",
8905
- "name": "nameChanged"
8914
+ "name": "joinOperatorChanged"
8906
8915
  },
8907
8916
  {
8908
8917
  "kind": "method",
8909
- "name": "labelChanged"
8918
+ "name": "parametersChanged"
8910
8919
  },
8911
8920
  {
8912
8921
  "kind": "method",
8913
- "name": "typeChanged"
8922
+ "name": "getMatchingParameter",
8923
+ "privacy": "private",
8924
+ "return": {
8925
+ "type": {
8926
+ "text": "ParameterBuilderEntity | undefined"
8927
+ }
8928
+ }
8914
8929
  },
8915
8930
  {
8916
8931
  "kind": "method",
8917
- "name": "sourceTypeChanged"
8932
+ "name": "syncParameterBinding",
8933
+ "privacy": "private",
8934
+ "return": {
8935
+ "type": {
8936
+ "text": "boolean"
8937
+ }
8938
+ }
8918
8939
  },
8919
8940
  {
8920
8941
  "kind": "method",
8921
- "name": "sourceSelectedChanged"
8942
+ "name": "resetToValueEditor",
8943
+ "privacy": "private"
8922
8944
  },
8923
8945
  {
8924
8946
  "kind": "method",
8925
- "name": "sourceTypedChanged"
8947
+ "name": "fieldsChanged"
8926
8948
  },
8927
8949
  {
8928
8950
  "kind": "method",
8929
- "name": "genericChanged",
8930
- "privacy": "private",
8931
- "parameters": [
8932
- {
8933
- "name": "parameterAttribute"
8934
- },
8935
- {
8936
- "name": "value"
8951
+ "name": "logicalOperatorChanged"
8952
+ },
8953
+ {
8954
+ "kind": "method",
8955
+ "name": "assignLeftValue",
8956
+ "privacy": "private"
8957
+ },
8958
+ {
8959
+ "kind": "method",
8960
+ "name": "leftValueChanged"
8961
+ },
8962
+ {
8963
+ "kind": "method",
8964
+ "name": "assignRightValue",
8965
+ "privacy": "private"
8966
+ },
8967
+ {
8968
+ "kind": "method",
8969
+ "name": "rightCriteriaChanged"
8970
+ },
8971
+ {
8972
+ "kind": "method",
8973
+ "name": "clearRightValueText",
8974
+ "privacy": "private"
8975
+ },
8976
+ {
8977
+ "kind": "method",
8978
+ "name": "clearRightValueSelect",
8979
+ "privacy": "private"
8980
+ },
8981
+ {
8982
+ "kind": "method",
8983
+ "name": "rightValueTextChanged"
8984
+ },
8985
+ {
8986
+ "kind": "method",
8987
+ "name": "rightValueSelectChanged"
8988
+ },
8989
+ {
8990
+ "kind": "method",
8991
+ "name": "rightValueMultiSelectChanged"
8992
+ },
8993
+ {
8994
+ "kind": "method",
8995
+ "name": "getEnumValues",
8996
+ "return": {
8997
+ "type": {
8998
+ "text": "string[]"
8937
8999
  }
8938
- ]
9000
+ }
8939
9001
  }
8940
9002
  ],
8941
9003
  "events": [
8942
9004
  {
8943
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
9005
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
8944
9006
  "name": "delete"
8945
9007
  },
8946
9008
  {
8947
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
9009
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
8948
9010
  "name": "edit"
8949
9011
  }
8950
9012
  ],
8951
9013
  "attributes": [
8952
9014
  {
8953
- "name": "parameter",
9015
+ "name": "condition",
8954
9016
  "type": {
8955
- "text": "ParameterBuilderEntity"
9017
+ "text": "ConditionBuilderEntity"
8956
9018
  },
8957
- "fieldName": "parameter"
9019
+ "fieldName": "condition"
9020
+ },
9021
+ {
9022
+ "name": "parameters",
9023
+ "type": {
9024
+ "text": "Array<ParameterBuilderEntity>"
9025
+ },
9026
+ "default": "[]",
9027
+ "fieldName": "parameters"
9028
+ },
9029
+ {
9030
+ "name": "fields",
9031
+ "type": {
9032
+ "text": "Array<string>"
9033
+ },
9034
+ "default": "[]",
9035
+ "fieldName": "fields"
8958
9036
  }
8959
9037
  ],
8960
9038
  "superclass": {
8961
9039
  "name": "GenesisElement",
8962
9040
  "package": "@genesislcap/web-core"
8963
9041
  },
8964
- "tagName": "parameter-builder",
9042
+ "tagName": "template-condition-builder",
8965
9043
  "customElement": true
8966
9044
  }
8967
9045
  ],
8968
9046
  "exports": [
8969
9047
  {
8970
9048
  "kind": "js",
8971
- "name": "ParameterBuilder",
9049
+ "name": "TemplateConditionBuilder",
8972
9050
  "declaration": {
8973
- "name": "ParameterBuilder",
8974
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9051
+ "name": "TemplateConditionBuilder",
9052
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
8975
9053
  }
8976
9054
  },
8977
9055
  {
8978
9056
  "kind": "custom-element-definition",
8979
- "name": "parameter-builder",
9057
+ "name": "template-condition-builder",
8980
9058
  "declaration": {
8981
- "name": "ParameterBuilder",
8982
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9059
+ "name": "TemplateConditionBuilder",
9060
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
8983
9061
  }
8984
9062
  }
8985
9063
  ]
8986
9064
  },
8987
9065
  {
8988
9066
  "kind": "javascript-module",
8989
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
9067
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
8990
9068
  "declarations": [
8991
9069
  {
8992
9070
  "kind": "variable",
8993
- "name": "TemplateConditionGroupTemplate",
8994
- "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`"
9071
+ "name": "ParameterBuilderStyles",
9072
+ "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`"
8995
9073
  }
8996
9074
  ],
8997
9075
  "exports": [
8998
9076
  {
8999
9077
  "kind": "js",
9000
- "name": "TemplateConditionGroupTemplate",
9078
+ "name": "ParameterBuilderStyles",
9001
9079
  "declaration": {
9002
- "name": "TemplateConditionGroupTemplate",
9003
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
9080
+ "name": "ParameterBuilderStyles",
9081
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
9004
9082
  }
9005
9083
  }
9006
9084
  ]
9007
9085
  },
9008
9086
  {
9009
9087
  "kind": "javascript-module",
9010
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
9088
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
9089
+ "declarations": [
9090
+ {
9091
+ "kind": "variable",
9092
+ "name": "ParameterBuilderTemplate",
9093
+ "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`"
9094
+ }
9095
+ ],
9096
+ "exports": [
9097
+ {
9098
+ "kind": "js",
9099
+ "name": "ParameterBuilderTemplate",
9100
+ "declaration": {
9101
+ "name": "ParameterBuilderTemplate",
9102
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
9103
+ }
9104
+ }
9105
+ ]
9106
+ },
9107
+ {
9108
+ "kind": "javascript-module",
9109
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
9011
9110
  "declarations": [
9012
9111
  {
9013
9112
  "kind": "class",
9014
- "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.",
9015
- "name": "TemplateConditionGroup",
9113
+ "description": "Parameter builder for notification templates.",
9114
+ "name": "ParameterBuilder",
9016
9115
  "members": [
9017
9116
  {
9018
9117
  "kind": "field",
9019
- "name": "node",
9118
+ "name": "parameter",
9020
9119
  "type": {
9021
- "text": "ConditionGroupEntity"
9120
+ "text": "ParameterBuilderEntity"
9022
9121
  }
9023
9122
  },
9024
9123
  {
9025
9124
  "kind": "field",
9026
- "name": "fields",
9125
+ "name": "name",
9027
9126
  "type": {
9028
- "text": "Field[]"
9029
- },
9030
- "default": "[]"
9127
+ "text": "string"
9128
+ }
9031
9129
  },
9032
9130
  {
9033
9131
  "kind": "field",
9034
- "name": "parameters",
9132
+ "name": "label",
9035
9133
  "type": {
9036
- "text": "Array<ParameterBuilderEntity>"
9037
- },
9038
- "default": "[]"
9134
+ "text": "string"
9135
+ }
9039
9136
  },
9040
9137
  {
9041
9138
  "kind": "field",
9042
- "name": "isFirst",
9139
+ "name": "type",
9043
9140
  "type": {
9044
- "text": "boolean"
9045
- },
9046
- "default": "false"
9141
+ "text": "string"
9142
+ }
9047
9143
  },
9048
9144
  {
9049
9145
  "kind": "field",
9050
- "name": "joinOperator",
9146
+ "name": "sourceType",
9051
9147
  "type": {
9052
9148
  "text": "string"
9053
9149
  }
9054
9150
  },
9055
9151
  {
9056
9152
  "kind": "field",
9057
- "name": "groupChildren",
9153
+ "name": "sourceSelected",
9058
9154
  "type": {
9059
- "text": "ConditionNode[]"
9155
+ "text": "string"
9156
+ }
9157
+ },
9158
+ {
9159
+ "kind": "field",
9160
+ "name": "sourceTyped",
9161
+ "type": {
9162
+ "text": "string"
9163
+ }
9164
+ },
9165
+ {
9166
+ "kind": "field",
9167
+ "name": "sourceTextField",
9168
+ "type": {
9169
+ "text": "TextField"
9170
+ }
9171
+ },
9172
+ {
9173
+ "kind": "field",
9174
+ "name": "sourceSelect",
9175
+ "type": {
9176
+ "text": "Select"
9177
+ }
9178
+ },
9179
+ {
9180
+ "kind": "field",
9181
+ "name": "reqRepItems",
9182
+ "type": {
9183
+ "text": "array"
9060
9184
  },
9061
- "default": "[]"
9185
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
9062
9186
  },
9063
9187
  {
9064
9188
  "kind": "method",
9065
- "name": "nodeChanged"
9189
+ "name": "deleteParameter"
9066
9190
  },
9067
9191
  {
9068
9192
  "kind": "method",
9069
- "name": "joinOperatorChanged"
9193
+ "name": "parameterChanged"
9070
9194
  },
9071
9195
  {
9072
9196
  "kind": "method",
9073
- "name": "newCondition"
9197
+ "name": "nameChanged"
9074
9198
  },
9075
9199
  {
9076
9200
  "kind": "method",
9077
- "name": "newGroup"
9201
+ "name": "labelChanged"
9078
9202
  },
9079
9203
  {
9080
9204
  "kind": "method",
9081
- "name": "editChild",
9082
- "parameters": [
9083
- {
9084
- "name": "_editedChild",
9085
- "type": {
9086
- "text": "ConditionNode"
9087
- }
9088
- }
9089
- ]
9205
+ "name": "typeChanged"
9090
9206
  },
9091
9207
  {
9092
9208
  "kind": "method",
9093
- "name": "deleteChild",
9209
+ "name": "sourceTypeChanged"
9210
+ },
9211
+ {
9212
+ "kind": "method",
9213
+ "name": "sourceSelectedChanged"
9214
+ },
9215
+ {
9216
+ "kind": "method",
9217
+ "name": "sourceTypedChanged"
9218
+ },
9219
+ {
9220
+ "kind": "method",
9221
+ "name": "genericChanged",
9222
+ "privacy": "private",
9094
9223
  "parameters": [
9095
9224
  {
9096
- "name": "deletedChild",
9097
- "type": {
9098
- "text": "ConditionNode"
9099
- }
9225
+ "name": "parameterAttribute"
9226
+ },
9227
+ {
9228
+ "name": "value"
9100
9229
  }
9101
9230
  ]
9102
- },
9103
- {
9104
- "kind": "method",
9105
- "name": "deleteSelf"
9106
9231
  }
9107
9232
  ],
9108
9233
  "events": [
9109
9234
  {
9110
- "description": "Fired when this whole group should be removed",
9235
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
9111
9236
  "name": "delete"
9112
9237
  },
9113
9238
  {
9114
- "description": "Fired when anything inside this group changes",
9239
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
9115
9240
  "name": "edit"
9116
9241
  }
9117
9242
  ],
9243
+ "attributes": [
9244
+ {
9245
+ "name": "parameter",
9246
+ "type": {
9247
+ "text": "ParameterBuilderEntity"
9248
+ },
9249
+ "fieldName": "parameter"
9250
+ }
9251
+ ],
9118
9252
  "superclass": {
9119
9253
  "name": "GenesisElement",
9120
9254
  "package": "@genesislcap/web-core"
9121
9255
  },
9122
- "tagName": "template-condition-group",
9256
+ "tagName": "parameter-builder",
9123
9257
  "customElement": true
9124
9258
  }
9125
9259
  ],
9126
9260
  "exports": [
9127
9261
  {
9128
9262
  "kind": "js",
9129
- "name": "TemplateConditionGroup",
9263
+ "name": "ParameterBuilder",
9130
9264
  "declaration": {
9131
- "name": "TemplateConditionGroup",
9132
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
9265
+ "name": "ParameterBuilder",
9266
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9133
9267
  }
9134
9268
  },
9135
9269
  {
9136
9270
  "kind": "custom-element-definition",
9137
- "name": "template-condition-group",
9271
+ "name": "parameter-builder",
9138
9272
  "declaration": {
9139
- "name": "TemplateConditionGroup",
9140
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
9273
+ "name": "ParameterBuilder",
9274
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
9141
9275
  }
9142
9276
  }
9143
9277
  ]
9144
9278
  },
9145
9279
  {
9146
9280
  "kind": "javascript-module",
9147
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
9281
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
9148
9282
  "declarations": [
9149
9283
  {
9150
9284
  "kind": "variable",
9151
- "name": "TemplateConditionBuilderTemplate",
9152
- "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 (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => 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`"
9285
+ "name": "TemplateConditionGroupTemplate",
9286
+ "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`"
9153
9287
  }
9154
9288
  ],
9155
9289
  "exports": [
9156
9290
  {
9157
9291
  "kind": "js",
9158
- "name": "TemplateConditionBuilderTemplate",
9292
+ "name": "TemplateConditionGroupTemplate",
9159
9293
  "declaration": {
9160
- "name": "TemplateConditionBuilderTemplate",
9161
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
9294
+ "name": "TemplateConditionGroupTemplate",
9295
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
9162
9296
  }
9163
9297
  }
9164
9298
  ]
9165
9299
  },
9166
9300
  {
9167
9301
  "kind": "javascript-module",
9168
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
9302
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
9169
9303
  "declarations": [
9170
9304
  {
9171
9305
  "kind": "class",
9172
- "description": "Condition builder for template notification rules.",
9173
- "name": "TemplateConditionBuilder",
9306
+ "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.",
9307
+ "name": "TemplateConditionGroup",
9174
9308
  "members": [
9175
9309
  {
9176
9310
  "kind": "field",
9177
- "name": "condition",
9311
+ "name": "node",
9178
9312
  "type": {
9179
- "text": "ConditionBuilderEntity"
9313
+ "text": "ConditionGroupEntity"
9180
9314
  }
9181
9315
  },
9182
9316
  {
9183
9317
  "kind": "field",
9184
- "name": "parameters",
9318
+ "name": "fields",
9185
9319
  "type": {
9186
- "text": "Array<ParameterBuilderEntity>"
9320
+ "text": "Field[]"
9187
9321
  },
9188
9322
  "default": "[]"
9189
9323
  },
9190
9324
  {
9191
9325
  "kind": "field",
9192
- "name": "fields",
9326
+ "name": "parameters",
9193
9327
  "type": {
9194
- "text": "Array<string>"
9328
+ "text": "Array<ParameterBuilderEntity>"
9195
9329
  },
9196
9330
  "default": "[]"
9197
9331
  },
@@ -9212,74 +9346,15 @@
9212
9346
  },
9213
9347
  {
9214
9348
  "kind": "field",
9215
- "name": "leftValue",
9216
- "type": {
9217
- "text": "any"
9218
- },
9219
- "default": "null"
9220
- },
9221
- {
9222
- "kind": "field",
9223
- "name": "leftValueItems",
9224
- "type": {
9225
- "text": "Array<any>"
9226
- },
9227
- "default": "[]"
9228
- },
9229
- {
9230
- "kind": "field",
9231
- "name": "logicalOperator",
9232
- "type": {
9233
- "text": "string"
9234
- },
9235
- "default": "null"
9236
- },
9237
- {
9238
- "kind": "field",
9239
- "name": "rightCriteria",
9240
- "type": {
9241
- "text": "string"
9242
- }
9243
- },
9244
- {
9245
- "kind": "field",
9246
- "name": "rightValueText",
9247
- "type": {
9248
- "text": "string"
9249
- },
9250
- "default": "null"
9251
- },
9252
- {
9253
- "kind": "field",
9254
- "name": "rightValueSelect",
9255
- "type": {
9256
- "text": "string"
9257
- },
9258
- "default": "null"
9259
- },
9260
- {
9261
- "kind": "field",
9262
- "name": "rightValueItems",
9263
- "type": {
9264
- "text": "Array<any>"
9265
- },
9266
- "default": "[]"
9267
- },
9268
- {
9269
- "kind": "field",
9270
- "name": "rightValueMultiSelect",
9349
+ "name": "groupChildren",
9271
9350
  "type": {
9272
- "text": "string[]"
9351
+ "text": "ConditionNode[]"
9273
9352
  },
9274
9353
  "default": "[]"
9275
9354
  },
9276
9355
  {
9277
9356
  "kind": "method",
9278
- "name": "deleteCondition"
9279
- },
9280
- {
9281
- "kind": "method",
9282
- "name": "conditionChanged"
9357
+ "name": "nodeChanged"
9283
9358
  },
9284
9359
  {
9285
9360
  "kind": "method",
@@ -9287,149 +9362,74 @@
9287
9362
  },
9288
9363
  {
9289
9364
  "kind": "method",
9290
- "name": "parametersChanged"
9365
+ "name": "newCondition"
9291
9366
  },
9292
9367
  {
9293
9368
  "kind": "method",
9294
- "name": "getMatchingParameter",
9295
- "privacy": "private",
9296
- "return": {
9297
- "type": {
9298
- "text": "ParameterBuilderEntity | undefined"
9299
- }
9300
- }
9369
+ "name": "newGroup"
9301
9370
  },
9302
9371
  {
9303
9372
  "kind": "method",
9304
- "name": "syncParameterBinding",
9305
- "privacy": "private",
9306
- "return": {
9307
- "type": {
9308
- "text": "boolean"
9373
+ "name": "editChild",
9374
+ "parameters": [
9375
+ {
9376
+ "name": "_editedChild",
9377
+ "type": {
9378
+ "text": "ConditionNode"
9379
+ }
9309
9380
  }
9310
- }
9311
- },
9312
- {
9313
- "kind": "method",
9314
- "name": "resetToValueEditor",
9315
- "privacy": "private"
9316
- },
9317
- {
9318
- "kind": "method",
9319
- "name": "fieldsChanged"
9320
- },
9321
- {
9322
- "kind": "method",
9323
- "name": "logicalOperatorChanged"
9324
- },
9325
- {
9326
- "kind": "method",
9327
- "name": "assignLeftValue",
9328
- "privacy": "private"
9329
- },
9330
- {
9331
- "kind": "method",
9332
- "name": "leftValueChanged"
9333
- },
9334
- {
9335
- "kind": "method",
9336
- "name": "assignRightValue",
9337
- "privacy": "private"
9338
- },
9339
- {
9340
- "kind": "method",
9341
- "name": "rightCriteriaChanged"
9342
- },
9343
- {
9344
- "kind": "method",
9345
- "name": "clearRightValueText",
9346
- "privacy": "private"
9347
- },
9348
- {
9349
- "kind": "method",
9350
- "name": "clearRightValueSelect",
9351
- "privacy": "private"
9352
- },
9353
- {
9354
- "kind": "method",
9355
- "name": "rightValueTextChanged"
9356
- },
9357
- {
9358
- "kind": "method",
9359
- "name": "rightValueSelectChanged"
9381
+ ]
9360
9382
  },
9361
9383
  {
9362
9384
  "kind": "method",
9363
- "name": "rightValueMultiSelectChanged"
9385
+ "name": "deleteChild",
9386
+ "parameters": [
9387
+ {
9388
+ "name": "deletedChild",
9389
+ "type": {
9390
+ "text": "ConditionNode"
9391
+ }
9392
+ }
9393
+ ]
9364
9394
  },
9365
9395
  {
9366
9396
  "kind": "method",
9367
- "name": "getEnumValues",
9368
- "return": {
9369
- "type": {
9370
- "text": "string[]"
9371
- }
9372
- }
9397
+ "name": "deleteSelf"
9373
9398
  }
9374
9399
  ],
9375
9400
  "events": [
9376
9401
  {
9377
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
9402
+ "description": "Fired when this whole group should be removed",
9378
9403
  "name": "delete"
9379
9404
  },
9380
9405
  {
9381
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
9406
+ "description": "Fired when anything inside this group changes",
9382
9407
  "name": "edit"
9383
9408
  }
9384
9409
  ],
9385
- "attributes": [
9386
- {
9387
- "name": "condition",
9388
- "type": {
9389
- "text": "ConditionBuilderEntity"
9390
- },
9391
- "fieldName": "condition"
9392
- },
9393
- {
9394
- "name": "parameters",
9395
- "type": {
9396
- "text": "Array<ParameterBuilderEntity>"
9397
- },
9398
- "default": "[]",
9399
- "fieldName": "parameters"
9400
- },
9401
- {
9402
- "name": "fields",
9403
- "type": {
9404
- "text": "Array<string>"
9405
- },
9406
- "default": "[]",
9407
- "fieldName": "fields"
9408
- }
9409
- ],
9410
9410
  "superclass": {
9411
9411
  "name": "GenesisElement",
9412
9412
  "package": "@genesislcap/web-core"
9413
9413
  },
9414
- "tagName": "template-condition-builder",
9414
+ "tagName": "template-condition-group",
9415
9415
  "customElement": true
9416
9416
  }
9417
9417
  ],
9418
9418
  "exports": [
9419
9419
  {
9420
9420
  "kind": "js",
9421
- "name": "TemplateConditionBuilder",
9421
+ "name": "TemplateConditionGroup",
9422
9422
  "declaration": {
9423
- "name": "TemplateConditionBuilder",
9424
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
9423
+ "name": "TemplateConditionGroup",
9424
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
9425
9425
  }
9426
9426
  },
9427
9427
  {
9428
9428
  "kind": "custom-element-definition",
9429
- "name": "template-condition-builder",
9429
+ "name": "template-condition-group",
9430
9430
  "declaration": {
9431
- "name": "TemplateConditionBuilder",
9432
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
9431
+ "name": "TemplateConditionGroup",
9432
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
9433
9433
  }
9434
9434
  }
9435
9435
  ]
@@ -277,6 +277,17 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
277
277
  >;
278
278
  export type RuleConditionGroupRef = RuleConditionGroupWC;
279
279
 
280
+ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
281
+ React.PropsWithChildren<
282
+ Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
283
+ HTMLWCProps & {
284
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
285
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
286
+ }
287
+ > & React.RefAttributes<TemplateConditionBuilderWC>
288
+ >;
289
+ export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
290
+
280
291
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
281
292
  React.PropsWithChildren<
282
293
  Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
@@ -299,15 +310,4 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
299
310
  >;
300
311
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
301
312
 
302
- export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
303
- React.PropsWithChildren<
304
- Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
305
- HTMLWCProps & {
306
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
307
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
308
- }
309
- > & React.RefAttributes<TemplateConditionBuilderWC>
310
- >;
311
- export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
312
-
313
313
  export {};
package/dist/react.cjs CHANGED
@@ -244,7 +244,7 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
244
244
  return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
269
+ const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
285
285
  el.removeEventListener('edit', _onEditFn);
286
286
  };
287
287
  }, []);
288
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
288
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
289
289
  });
290
290
 
291
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
291
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
307
307
  el.removeEventListener('edit', _onEditFn);
308
308
  };
309
309
  }, []);
310
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
310
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
311
311
  });
312
312
 
313
313
  module.exports = {
@@ -334,7 +334,7 @@ module.exports = {
334
334
  TemplateDialog,
335
335
  RuleConditionBuilder,
336
336
  RuleConditionGroup,
337
+ TemplateConditionBuilder,
337
338
  ParameterBuilder,
338
339
  TemplateConditionGroup,
339
- TemplateConditionBuilder,
340
340
  };
package/dist/react.mjs CHANGED
@@ -242,7 +242,7 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
242
242
  return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...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 TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
267
+ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 TemplateConditionGroup = React.forwardRef(function TemplateConditio
283
283
  el.removeEventListener('edit', _onEditFn);
284
284
  };
285
285
  }, []);
286
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
286
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
287
287
  });
288
288
 
289
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
289
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(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 TemplateConditionBuilder = React.forwardRef(function TemplateCondit
305
305
  el.removeEventListener('edit', _onEditFn);
306
306
  };
307
307
  }, []);
308
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
308
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...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.10.2",
4
+ "version": "15.10.3",
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.10.2",
85
- "@genesislcap/eslint-config": "15.10.2",
86
- "@genesislcap/eslint-stylelint-builder": "15.10.2",
87
- "@genesislcap/foundation-testing": "15.10.2",
88
- "@genesislcap/genx": "15.10.2",
89
- "@genesislcap/prettier-config": "15.10.2",
90
- "@genesislcap/stylelint-config": "15.10.2",
91
- "@genesislcap/vite-builder": "15.10.2",
92
- "@genesislcap/webpack-builder": "15.10.2",
84
+ "@genesislcap/design-system-configurator": "15.10.3",
85
+ "@genesislcap/eslint-config": "15.10.3",
86
+ "@genesislcap/eslint-stylelint-builder": "15.10.3",
87
+ "@genesislcap/foundation-testing": "15.10.3",
88
+ "@genesislcap/genx": "15.10.3",
89
+ "@genesislcap/prettier-config": "15.10.3",
90
+ "@genesislcap/stylelint-config": "15.10.3",
91
+ "@genesislcap/vite-builder": "15.10.3",
92
+ "@genesislcap/webpack-builder": "15.10.3",
93
93
  "dayjs": "^1.11.7"
94
94
  },
95
95
  "dependencies": {
96
- "@genesislcap/foundation-comms": "15.10.2",
97
- "@genesislcap/foundation-criteria": "15.10.2",
98
- "@genesislcap/foundation-entity-management": "15.10.2",
99
- "@genesislcap/foundation-forms": "15.10.2",
100
- "@genesislcap/foundation-layout": "15.10.2",
101
- "@genesislcap/foundation-logger": "15.10.2",
102
- "@genesislcap/foundation-notifications": "15.10.2",
103
- "@genesislcap/foundation-ui": "15.10.2",
104
- "@genesislcap/foundation-utils": "15.10.2",
105
- "@genesislcap/rapid-design-system": "15.10.2",
106
- "@genesislcap/rapid-grid-pro": "15.10.2",
107
- "@genesislcap/web-core": "15.10.2",
96
+ "@genesislcap/foundation-comms": "15.10.3",
97
+ "@genesislcap/foundation-criteria": "15.10.3",
98
+ "@genesislcap/foundation-entity-management": "15.10.3",
99
+ "@genesislcap/foundation-forms": "15.10.3",
100
+ "@genesislcap/foundation-layout": "15.10.3",
101
+ "@genesislcap/foundation-logger": "15.10.3",
102
+ "@genesislcap/foundation-notifications": "15.10.3",
103
+ "@genesislcap/foundation-ui": "15.10.3",
104
+ "@genesislcap/foundation-utils": "15.10.3",
105
+ "@genesislcap/rapid-design-system": "15.10.3",
106
+ "@genesislcap/rapid-grid-pro": "15.10.3",
107
+ "@genesislcap/web-core": "15.10.3",
108
108
  "lodash.debounce": "^4.0.8",
109
109
  "rxjs": "^7.5.4"
110
110
  },
@@ -112,5 +112,5 @@
112
112
  "access": "public"
113
113
  },
114
114
  "customElements": "dist/custom-elements.json",
115
- "gitHead": "85189092e1be3c1876961cce085154f263c11cb1"
115
+ "gitHead": "6e5c9bb135b3da6792c4c3a8e632b09b0bc3fbca"
116
116
  }