@genesislcap/pbc-notify-ui 15.94.1-alpha-6f4e61418f.0 → 15.95.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -505,27 +505,6 @@
505
505
  }
506
506
  ]
507
507
  },
508
- {
509
- "kind": "javascript-module",
510
- "path": "src/styles/scrollbar.styles.ts",
511
- "declarations": [
512
- {
513
- "kind": "variable",
514
- "name": "scrollbarStyles",
515
- "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
516
- }
517
- ],
518
- "exports": [
519
- {
520
- "kind": "js",
521
- "name": "scrollbarStyles",
522
- "declaration": {
523
- "name": "scrollbarStyles",
524
- "module": "src/styles/scrollbar.styles.ts"
525
- }
526
- }
527
- ]
528
- },
529
508
  {
530
509
  "kind": "javascript-module",
531
510
  "path": "src/utils/default-sounds.ts",
@@ -1036,6 +1015,27 @@
1036
1015
  }
1037
1016
  ]
1038
1017
  },
1018
+ {
1019
+ "kind": "javascript-module",
1020
+ "path": "src/styles/scrollbar.styles.ts",
1021
+ "declarations": [
1022
+ {
1023
+ "kind": "variable",
1024
+ "name": "scrollbarStyles",
1025
+ "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
1026
+ }
1027
+ ],
1028
+ "exports": [
1029
+ {
1030
+ "kind": "js",
1031
+ "name": "scrollbarStyles",
1032
+ "declaration": {
1033
+ "name": "scrollbarStyles",
1034
+ "module": "src/styles/scrollbar.styles.ts"
1035
+ }
1036
+ }
1037
+ ]
1038
+ },
1039
1039
  {
1040
1040
  "kind": "javascript-module",
1041
1041
  "path": "src/components/foundation-inbox/inbox.styles.ts",
@@ -10738,552 +10738,426 @@
10738
10738
  },
10739
10739
  {
10740
10740
  "kind": "javascript-module",
10741
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
10741
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
10742
10742
  "declarations": [
10743
10743
  {
10744
10744
  "kind": "variable",
10745
- "name": "TemplateConditionBuilderTemplate",
10746
- "default": "html<TemplateConditionBuilder>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (x) => x.rightCriteriaOptions,\n html`\n <rapid-option value=${(x) => x}>${(x) => rightCriteriaLabel(x)}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
10745
+ "name": "ParameterBuilderStyles",
10746
+ "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`"
10747
10747
  }
10748
10748
  ],
10749
10749
  "exports": [
10750
10750
  {
10751
10751
  "kind": "js",
10752
- "name": "TemplateConditionBuilderTemplate",
10752
+ "name": "ParameterBuilderStyles",
10753
10753
  "declaration": {
10754
- "name": "TemplateConditionBuilderTemplate",
10755
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
10754
+ "name": "ParameterBuilderStyles",
10755
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10756
10756
  }
10757
10757
  }
10758
10758
  ]
10759
10759
  },
10760
10760
  {
10761
10761
  "kind": "javascript-module",
10762
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
10762
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10763
+ "declarations": [
10764
+ {
10765
+ "kind": "variable",
10766
+ "name": "ParameterBuilderTemplate",
10767
+ "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`"
10768
+ }
10769
+ ],
10770
+ "exports": [
10771
+ {
10772
+ "kind": "js",
10773
+ "name": "ParameterBuilderTemplate",
10774
+ "declaration": {
10775
+ "name": "ParameterBuilderTemplate",
10776
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10777
+ }
10778
+ }
10779
+ ]
10780
+ },
10781
+ {
10782
+ "kind": "javascript-module",
10783
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10763
10784
  "declarations": [
10764
10785
  {
10765
10786
  "kind": "class",
10766
- "description": "Condition builder for template notification rules.",
10767
- "name": "TemplateConditionBuilder",
10787
+ "description": "Parameter builder for notification templates.",
10788
+ "name": "ParameterBuilder",
10768
10789
  "members": [
10769
10790
  {
10770
10791
  "kind": "field",
10771
- "name": "condition",
10792
+ "name": "parameter",
10772
10793
  "type": {
10773
- "text": "ConditionBuilderEntity"
10794
+ "text": "ParameterBuilderEntity"
10774
10795
  }
10775
10796
  },
10776
10797
  {
10777
10798
  "kind": "field",
10778
- "name": "parameters",
10779
- "type": {
10780
- "text": "Array<ParameterBuilderEntity>"
10781
- },
10782
- "default": "[]"
10783
- },
10784
- {
10785
- "kind": "field",
10786
- "name": "fields",
10787
- "type": {
10788
- "text": "Field[]"
10789
- },
10790
- "default": "[]"
10791
- },
10792
- {
10793
- "kind": "field",
10794
- "name": "isFirst",
10795
- "type": {
10796
- "text": "boolean"
10797
- },
10798
- "default": "false"
10799
- },
10800
- {
10801
- "kind": "field",
10802
- "name": "joinOperator",
10799
+ "name": "name",
10803
10800
  "type": {
10804
10801
  "text": "string"
10805
10802
  }
10806
10803
  },
10807
10804
  {
10808
10805
  "kind": "field",
10809
- "name": "leftValue",
10810
- "type": {
10811
- "text": "any"
10812
- },
10813
- "default": "null"
10814
- },
10815
- {
10816
- "kind": "field",
10817
- "name": "leftValueItems",
10818
- "type": {
10819
- "text": "Array<any>"
10820
- },
10821
- "default": "[]"
10822
- },
10823
- {
10824
- "kind": "field",
10825
- "name": "logicalOperator",
10806
+ "name": "label",
10826
10807
  "type": {
10827
10808
  "text": "string"
10828
- },
10829
- "default": "null"
10809
+ }
10830
10810
  },
10831
10811
  {
10832
10812
  "kind": "field",
10833
- "name": "rightCriteria",
10813
+ "name": "type",
10834
10814
  "type": {
10835
10815
  "text": "string"
10836
10816
  }
10837
10817
  },
10838
10818
  {
10839
10819
  "kind": "field",
10840
- "name": "rightValueText",
10820
+ "name": "sourceType",
10841
10821
  "type": {
10842
10822
  "text": "string"
10843
- },
10844
- "default": "null"
10823
+ }
10845
10824
  },
10846
10825
  {
10847
10826
  "kind": "field",
10848
- "name": "rightValueSelect",
10827
+ "name": "sourceSelected",
10849
10828
  "type": {
10850
10829
  "text": "string"
10851
- },
10852
- "default": "null"
10830
+ }
10853
10831
  },
10854
10832
  {
10855
10833
  "kind": "field",
10856
- "name": "rightValueItems",
10834
+ "name": "sourceTyped",
10857
10835
  "type": {
10858
- "text": "Array<any>"
10859
- },
10860
- "default": "[]"
10836
+ "text": "string"
10837
+ }
10861
10838
  },
10862
10839
  {
10863
10840
  "kind": "field",
10864
- "name": "rightValueMultiSelect",
10841
+ "name": "sourceTextField",
10865
10842
  "type": {
10866
- "text": "string[]"
10867
- },
10868
- "default": "[]"
10843
+ "text": "TextField"
10844
+ }
10869
10845
  },
10870
10846
  {
10871
10847
  "kind": "field",
10872
- "name": "rightCriteriaOptions",
10848
+ "name": "sourceSelect",
10873
10849
  "type": {
10874
- "text": "RightCriteria[]"
10875
- },
10876
- "readonly": true
10850
+ "text": "Select"
10851
+ }
10877
10852
  },
10878
10853
  {
10879
10854
  "kind": "field",
10880
- "name": "isStringLeftValue",
10855
+ "name": "reqRepItems",
10881
10856
  "type": {
10882
- "text": "boolean"
10857
+ "text": "array"
10883
10858
  },
10884
- "privacy": "private",
10885
- "readonly": true
10886
- },
10887
- {
10888
- "kind": "method",
10889
- "name": "deleteCondition"
10890
- },
10891
- {
10892
- "kind": "method",
10893
- "name": "conditionChanged"
10894
- },
10895
- {
10896
- "kind": "method",
10897
- "name": "joinOperatorChanged"
10898
- },
10899
- {
10900
- "kind": "method",
10901
- "name": "parametersChanged"
10902
- },
10903
- {
10904
- "kind": "method",
10905
- "name": "getMatchingParameter",
10906
- "privacy": "private",
10907
- "return": {
10908
- "type": {
10909
- "text": "ParameterBuilderEntity | undefined"
10910
- }
10911
- }
10912
- },
10913
- {
10914
- "kind": "method",
10915
- "name": "syncParameterBinding",
10916
- "privacy": "private",
10917
- "return": {
10918
- "type": {
10919
- "text": "boolean"
10920
- }
10921
- }
10859
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
10922
10860
  },
10923
10861
  {
10924
10862
  "kind": "method",
10925
- "name": "resetToValueEditor",
10926
- "privacy": "private"
10863
+ "name": "deleteParameter"
10927
10864
  },
10928
10865
  {
10929
10866
  "kind": "method",
10930
- "name": "fieldsChanged"
10867
+ "name": "parameterChanged"
10931
10868
  },
10932
10869
  {
10933
10870
  "kind": "method",
10934
- "name": "logicalOperatorChanged"
10871
+ "name": "nameChanged"
10935
10872
  },
10936
10873
  {
10937
10874
  "kind": "method",
10938
- "name": "assignLeftValue",
10939
- "privacy": "private"
10875
+ "name": "labelChanged"
10940
10876
  },
10941
10877
  {
10942
10878
  "kind": "method",
10943
- "name": "leftValueChanged"
10879
+ "name": "typeChanged"
10944
10880
  },
10945
10881
  {
10946
10882
  "kind": "method",
10947
- "name": "assignRightValue",
10948
- "privacy": "private"
10883
+ "name": "sourceTypeChanged"
10949
10884
  },
10950
10885
  {
10951
10886
  "kind": "method",
10952
- "name": "rightCriteriaChanged"
10887
+ "name": "sourceSelectedChanged"
10953
10888
  },
10954
10889
  {
10955
10890
  "kind": "method",
10956
- "name": "clearRightValueText",
10957
- "privacy": "private"
10891
+ "name": "sourceTypedChanged"
10958
10892
  },
10959
10893
  {
10960
10894
  "kind": "method",
10961
- "name": "clearRightValueSelect",
10962
- "privacy": "private"
10963
- },
10895
+ "name": "genericChanged",
10896
+ "privacy": "private",
10897
+ "parameters": [
10898
+ {
10899
+ "name": "parameterAttribute"
10900
+ },
10901
+ {
10902
+ "name": "value"
10903
+ }
10904
+ ]
10905
+ }
10906
+ ],
10907
+ "events": [
10964
10908
  {
10965
- "kind": "method",
10966
- "name": "rightValueTextChanged"
10909
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
10910
+ "name": "delete"
10967
10911
  },
10968
10912
  {
10969
- "kind": "method",
10970
- "name": "rightValueSelectChanged"
10971
- },
10913
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
10914
+ "name": "edit"
10915
+ }
10916
+ ],
10917
+ "attributes": [
10972
10918
  {
10973
- "kind": "method",
10974
- "name": "rightValueMultiSelectChanged"
10975
- },
10976
- {
10977
- "kind": "method",
10978
- "name": "getEnumValues",
10979
- "return": {
10980
- "type": {
10981
- "text": "string[]"
10982
- }
10983
- }
10984
- }
10985
- ],
10986
- "events": [
10987
- {
10988
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
10989
- "name": "delete"
10990
- },
10991
- {
10992
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
10993
- "name": "edit"
10919
+ "name": "parameter",
10920
+ "type": {
10921
+ "text": "ParameterBuilderEntity"
10922
+ },
10923
+ "fieldName": "parameter"
10994
10924
  }
10995
10925
  ],
10996
10926
  "superclass": {
10997
10927
  "name": "GenesisElement",
10998
10928
  "package": "@genesislcap/web-core"
10999
10929
  },
11000
- "tagName": "template-condition-builder",
10930
+ "tagName": "parameter-builder",
11001
10931
  "customElement": true
11002
10932
  }
11003
10933
  ],
11004
10934
  "exports": [
11005
10935
  {
11006
10936
  "kind": "js",
11007
- "name": "TemplateConditionBuilder",
10937
+ "name": "ParameterBuilder",
11008
10938
  "declaration": {
11009
- "name": "TemplateConditionBuilder",
11010
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
10939
+ "name": "ParameterBuilder",
10940
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
11011
10941
  }
11012
10942
  },
11013
10943
  {
11014
10944
  "kind": "custom-element-definition",
11015
- "name": "template-condition-builder",
11016
- "declaration": {
11017
- "name": "TemplateConditionBuilder",
11018
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
11019
- }
11020
- }
11021
- ]
11022
- },
11023
- {
11024
- "kind": "javascript-module",
11025
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
11026
- "declarations": [
11027
- {
11028
- "kind": "variable",
11029
- "name": "ParameterBuilderStyles",
11030
- "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`"
11031
- }
11032
- ],
11033
- "exports": [
11034
- {
11035
- "kind": "js",
11036
- "name": "ParameterBuilderStyles",
10945
+ "name": "parameter-builder",
11037
10946
  "declaration": {
11038
- "name": "ParameterBuilderStyles",
11039
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
10947
+ "name": "ParameterBuilder",
10948
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
11040
10949
  }
11041
10950
  }
11042
10951
  ]
11043
10952
  },
11044
10953
  {
11045
10954
  "kind": "javascript-module",
11046
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
10955
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
11047
10956
  "declarations": [
11048
10957
  {
11049
10958
  "kind": "variable",
11050
- "name": "ParameterBuilderTemplate",
11051
- "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`"
10959
+ "name": "TemplateConditionGroupTemplate",
10960
+ "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`"
11052
10961
  }
11053
10962
  ],
11054
10963
  "exports": [
11055
10964
  {
11056
10965
  "kind": "js",
11057
- "name": "ParameterBuilderTemplate",
10966
+ "name": "TemplateConditionGroupTemplate",
11058
10967
  "declaration": {
11059
- "name": "ParameterBuilderTemplate",
11060
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
10968
+ "name": "TemplateConditionGroupTemplate",
10969
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
11061
10970
  }
11062
10971
  }
11063
10972
  ]
11064
10973
  },
11065
10974
  {
11066
10975
  "kind": "javascript-module",
11067
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
10976
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
11068
10977
  "declarations": [
11069
10978
  {
11070
10979
  "kind": "class",
11071
- "description": "Parameter builder for notification templates.",
11072
- "name": "ParameterBuilder",
10980
+ "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.",
10981
+ "name": "TemplateConditionGroup",
11073
10982
  "members": [
11074
10983
  {
11075
10984
  "kind": "field",
11076
- "name": "parameter",
11077
- "type": {
11078
- "text": "ParameterBuilderEntity"
11079
- }
11080
- },
11081
- {
11082
- "kind": "field",
11083
- "name": "name",
11084
- "type": {
11085
- "text": "string"
11086
- }
11087
- },
11088
- {
11089
- "kind": "field",
11090
- "name": "label",
10985
+ "name": "node",
11091
10986
  "type": {
11092
- "text": "string"
10987
+ "text": "ConditionGroupEntity"
11093
10988
  }
11094
10989
  },
11095
10990
  {
11096
10991
  "kind": "field",
11097
- "name": "type",
10992
+ "name": "fields",
11098
10993
  "type": {
11099
- "text": "string"
11100
- }
10994
+ "text": "Field[]"
10995
+ },
10996
+ "default": "[]"
11101
10997
  },
11102
10998
  {
11103
10999
  "kind": "field",
11104
- "name": "sourceType",
11000
+ "name": "parameters",
11105
11001
  "type": {
11106
- "text": "string"
11107
- }
11002
+ "text": "Array<ParameterBuilderEntity>"
11003
+ },
11004
+ "default": "[]"
11108
11005
  },
11109
11006
  {
11110
11007
  "kind": "field",
11111
- "name": "sourceSelected",
11008
+ "name": "isFirst",
11112
11009
  "type": {
11113
- "text": "string"
11114
- }
11010
+ "text": "boolean"
11011
+ },
11012
+ "default": "false"
11115
11013
  },
11116
11014
  {
11117
11015
  "kind": "field",
11118
- "name": "sourceTyped",
11016
+ "name": "joinOperator",
11119
11017
  "type": {
11120
11018
  "text": "string"
11121
11019
  }
11122
11020
  },
11123
11021
  {
11124
11022
  "kind": "field",
11125
- "name": "sourceTextField",
11126
- "type": {
11127
- "text": "TextField"
11128
- }
11129
- },
11130
- {
11131
- "kind": "field",
11132
- "name": "sourceSelect",
11133
- "type": {
11134
- "text": "Select"
11135
- }
11136
- },
11137
- {
11138
- "kind": "field",
11139
- "name": "reqRepItems",
11023
+ "name": "groupChildren",
11140
11024
  "type": {
11141
- "text": "array"
11025
+ "text": "ConditionNode[]"
11142
11026
  },
11143
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
11144
- },
11145
- {
11146
- "kind": "method",
11147
- "name": "deleteParameter"
11148
- },
11149
- {
11150
- "kind": "method",
11151
- "name": "parameterChanged"
11152
- },
11153
- {
11154
- "kind": "method",
11155
- "name": "nameChanged"
11027
+ "default": "[]"
11156
11028
  },
11157
11029
  {
11158
11030
  "kind": "method",
11159
- "name": "labelChanged"
11031
+ "name": "nodeChanged"
11160
11032
  },
11161
11033
  {
11162
11034
  "kind": "method",
11163
- "name": "typeChanged"
11035
+ "name": "joinOperatorChanged"
11164
11036
  },
11165
11037
  {
11166
11038
  "kind": "method",
11167
- "name": "sourceTypeChanged"
11039
+ "name": "newCondition"
11168
11040
  },
11169
11041
  {
11170
11042
  "kind": "method",
11171
- "name": "sourceSelectedChanged"
11043
+ "name": "newGroup"
11172
11044
  },
11173
11045
  {
11174
11046
  "kind": "method",
11175
- "name": "sourceTypedChanged"
11047
+ "name": "editChild",
11048
+ "parameters": [
11049
+ {
11050
+ "name": "_editedChild",
11051
+ "type": {
11052
+ "text": "ConditionNode"
11053
+ }
11054
+ }
11055
+ ]
11176
11056
  },
11177
11057
  {
11178
11058
  "kind": "method",
11179
- "name": "genericChanged",
11180
- "privacy": "private",
11059
+ "name": "deleteChild",
11181
11060
  "parameters": [
11182
11061
  {
11183
- "name": "parameterAttribute"
11184
- },
11185
- {
11186
- "name": "value"
11062
+ "name": "deletedChild",
11063
+ "type": {
11064
+ "text": "ConditionNode"
11065
+ }
11187
11066
  }
11188
11067
  ]
11068
+ },
11069
+ {
11070
+ "kind": "method",
11071
+ "name": "deleteSelf"
11189
11072
  }
11190
11073
  ],
11191
11074
  "events": [
11192
11075
  {
11193
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
11076
+ "description": "Fired when this whole group should be removed",
11194
11077
  "name": "delete"
11195
11078
  },
11196
11079
  {
11197
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
11080
+ "description": "Fired when anything inside this group changes",
11198
11081
  "name": "edit"
11199
11082
  }
11200
11083
  ],
11201
- "attributes": [
11202
- {
11203
- "name": "parameter",
11204
- "type": {
11205
- "text": "ParameterBuilderEntity"
11206
- },
11207
- "fieldName": "parameter"
11208
- }
11209
- ],
11210
11084
  "superclass": {
11211
11085
  "name": "GenesisElement",
11212
11086
  "package": "@genesislcap/web-core"
11213
11087
  },
11214
- "tagName": "parameter-builder",
11088
+ "tagName": "template-condition-group",
11215
11089
  "customElement": true
11216
11090
  }
11217
11091
  ],
11218
11092
  "exports": [
11219
11093
  {
11220
11094
  "kind": "js",
11221
- "name": "ParameterBuilder",
11095
+ "name": "TemplateConditionGroup",
11222
11096
  "declaration": {
11223
- "name": "ParameterBuilder",
11224
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
11097
+ "name": "TemplateConditionGroup",
11098
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
11225
11099
  }
11226
11100
  },
11227
11101
  {
11228
11102
  "kind": "custom-element-definition",
11229
- "name": "parameter-builder",
11103
+ "name": "template-condition-group",
11230
11104
  "declaration": {
11231
- "name": "ParameterBuilder",
11232
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
11105
+ "name": "TemplateConditionGroup",
11106
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
11233
11107
  }
11234
11108
  }
11235
11109
  ]
11236
11110
  },
11237
11111
  {
11238
11112
  "kind": "javascript-module",
11239
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
11113
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
11240
11114
  "declarations": [
11241
11115
  {
11242
11116
  "kind": "variable",
11243
- "name": "TemplateConditionGroupTemplate",
11244
- "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`"
11117
+ "name": "TemplateConditionBuilderTemplate",
11118
+ "default": "html<TemplateConditionBuilder>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (x) => x.rightCriteriaOptions,\n html`\n <rapid-option value=${(x) => x}>${(x) => rightCriteriaLabel(x)}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
11245
11119
  }
11246
11120
  ],
11247
11121
  "exports": [
11248
11122
  {
11249
11123
  "kind": "js",
11250
- "name": "TemplateConditionGroupTemplate",
11124
+ "name": "TemplateConditionBuilderTemplate",
11251
11125
  "declaration": {
11252
- "name": "TemplateConditionGroupTemplate",
11253
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
11126
+ "name": "TemplateConditionBuilderTemplate",
11127
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
11254
11128
  }
11255
11129
  }
11256
11130
  ]
11257
11131
  },
11258
11132
  {
11259
11133
  "kind": "javascript-module",
11260
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
11134
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
11261
11135
  "declarations": [
11262
11136
  {
11263
11137
  "kind": "class",
11264
- "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.",
11265
- "name": "TemplateConditionGroup",
11138
+ "description": "Condition builder for template notification rules.",
11139
+ "name": "TemplateConditionBuilder",
11266
11140
  "members": [
11267
11141
  {
11268
11142
  "kind": "field",
11269
- "name": "node",
11143
+ "name": "condition",
11270
11144
  "type": {
11271
- "text": "ConditionGroupEntity"
11145
+ "text": "ConditionBuilderEntity"
11272
11146
  }
11273
11147
  },
11274
11148
  {
11275
11149
  "kind": "field",
11276
- "name": "fields",
11150
+ "name": "parameters",
11277
11151
  "type": {
11278
- "text": "Field[]"
11152
+ "text": "Array<ParameterBuilderEntity>"
11279
11153
  },
11280
11154
  "default": "[]"
11281
11155
  },
11282
11156
  {
11283
11157
  "kind": "field",
11284
- "name": "parameters",
11158
+ "name": "fields",
11285
11159
  "type": {
11286
- "text": "Array<ParameterBuilderEntity>"
11160
+ "text": "Field[]"
11287
11161
  },
11288
11162
  "default": "[]"
11289
11163
  },
@@ -11304,64 +11178,190 @@
11304
11178
  },
11305
11179
  {
11306
11180
  "kind": "field",
11307
- "name": "groupChildren",
11181
+ "name": "leftValue",
11308
11182
  "type": {
11309
- "text": "ConditionNode[]"
11183
+ "text": "any"
11184
+ },
11185
+ "default": "null"
11186
+ },
11187
+ {
11188
+ "kind": "field",
11189
+ "name": "leftValueItems",
11190
+ "type": {
11191
+ "text": "Array<any>"
11192
+ },
11193
+ "default": "[]"
11194
+ },
11195
+ {
11196
+ "kind": "field",
11197
+ "name": "logicalOperator",
11198
+ "type": {
11199
+ "text": "string"
11200
+ },
11201
+ "default": "null"
11202
+ },
11203
+ {
11204
+ "kind": "field",
11205
+ "name": "rightCriteria",
11206
+ "type": {
11207
+ "text": "string"
11208
+ }
11209
+ },
11210
+ {
11211
+ "kind": "field",
11212
+ "name": "rightValueText",
11213
+ "type": {
11214
+ "text": "string"
11215
+ },
11216
+ "default": "null"
11217
+ },
11218
+ {
11219
+ "kind": "field",
11220
+ "name": "rightValueSelect",
11221
+ "type": {
11222
+ "text": "string"
11223
+ },
11224
+ "default": "null"
11225
+ },
11226
+ {
11227
+ "kind": "field",
11228
+ "name": "rightValueItems",
11229
+ "type": {
11230
+ "text": "Array<any>"
11231
+ },
11232
+ "default": "[]"
11233
+ },
11234
+ {
11235
+ "kind": "field",
11236
+ "name": "rightValueMultiSelect",
11237
+ "type": {
11238
+ "text": "string[]"
11310
11239
  },
11311
11240
  "default": "[]"
11312
11241
  },
11242
+ {
11243
+ "kind": "field",
11244
+ "name": "rightCriteriaOptions",
11245
+ "type": {
11246
+ "text": "RightCriteria[]"
11247
+ },
11248
+ "readonly": true
11249
+ },
11250
+ {
11251
+ "kind": "field",
11252
+ "name": "isStringLeftValue",
11253
+ "type": {
11254
+ "text": "boolean"
11255
+ },
11256
+ "privacy": "private",
11257
+ "readonly": true
11258
+ },
11313
11259
  {
11314
11260
  "kind": "method",
11315
- "name": "nodeChanged"
11261
+ "name": "deleteCondition"
11316
11262
  },
11317
11263
  {
11318
11264
  "kind": "method",
11319
- "name": "joinOperatorChanged"
11265
+ "name": "conditionChanged"
11320
11266
  },
11321
11267
  {
11322
11268
  "kind": "method",
11323
- "name": "newCondition"
11269
+ "name": "joinOperatorChanged"
11324
11270
  },
11325
11271
  {
11326
11272
  "kind": "method",
11327
- "name": "newGroup"
11273
+ "name": "parametersChanged"
11328
11274
  },
11329
11275
  {
11330
11276
  "kind": "method",
11331
- "name": "editChild",
11332
- "parameters": [
11333
- {
11334
- "name": "_editedChild",
11335
- "type": {
11336
- "text": "ConditionNode"
11337
- }
11277
+ "name": "getMatchingParameter",
11278
+ "privacy": "private",
11279
+ "return": {
11280
+ "type": {
11281
+ "text": "ParameterBuilderEntity | undefined"
11338
11282
  }
11339
- ]
11283
+ }
11340
11284
  },
11341
11285
  {
11342
11286
  "kind": "method",
11343
- "name": "deleteChild",
11344
- "parameters": [
11345
- {
11346
- "name": "deletedChild",
11347
- "type": {
11348
- "text": "ConditionNode"
11349
- }
11287
+ "name": "syncParameterBinding",
11288
+ "privacy": "private",
11289
+ "return": {
11290
+ "type": {
11291
+ "text": "boolean"
11350
11292
  }
11351
- ]
11293
+ }
11352
11294
  },
11353
11295
  {
11354
11296
  "kind": "method",
11355
- "name": "deleteSelf"
11297
+ "name": "resetToValueEditor",
11298
+ "privacy": "private"
11299
+ },
11300
+ {
11301
+ "kind": "method",
11302
+ "name": "fieldsChanged"
11303
+ },
11304
+ {
11305
+ "kind": "method",
11306
+ "name": "logicalOperatorChanged"
11307
+ },
11308
+ {
11309
+ "kind": "method",
11310
+ "name": "assignLeftValue",
11311
+ "privacy": "private"
11312
+ },
11313
+ {
11314
+ "kind": "method",
11315
+ "name": "leftValueChanged"
11316
+ },
11317
+ {
11318
+ "kind": "method",
11319
+ "name": "assignRightValue",
11320
+ "privacy": "private"
11321
+ },
11322
+ {
11323
+ "kind": "method",
11324
+ "name": "rightCriteriaChanged"
11325
+ },
11326
+ {
11327
+ "kind": "method",
11328
+ "name": "clearRightValueText",
11329
+ "privacy": "private"
11330
+ },
11331
+ {
11332
+ "kind": "method",
11333
+ "name": "clearRightValueSelect",
11334
+ "privacy": "private"
11335
+ },
11336
+ {
11337
+ "kind": "method",
11338
+ "name": "rightValueTextChanged"
11339
+ },
11340
+ {
11341
+ "kind": "method",
11342
+ "name": "rightValueSelectChanged"
11343
+ },
11344
+ {
11345
+ "kind": "method",
11346
+ "name": "rightValueMultiSelectChanged"
11347
+ },
11348
+ {
11349
+ "kind": "method",
11350
+ "name": "getEnumValues",
11351
+ "return": {
11352
+ "type": {
11353
+ "text": "string[]"
11354
+ }
11355
+ }
11356
11356
  }
11357
11357
  ],
11358
11358
  "events": [
11359
11359
  {
11360
- "description": "Fired when this whole group should be removed",
11360
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
11361
11361
  "name": "delete"
11362
11362
  },
11363
11363
  {
11364
- "description": "Fired when anything inside this group changes",
11364
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
11365
11365
  "name": "edit"
11366
11366
  }
11367
11367
  ],
@@ -11369,25 +11369,25 @@
11369
11369
  "name": "GenesisElement",
11370
11370
  "package": "@genesislcap/web-core"
11371
11371
  },
11372
- "tagName": "template-condition-group",
11372
+ "tagName": "template-condition-builder",
11373
11373
  "customElement": true
11374
11374
  }
11375
11375
  ],
11376
11376
  "exports": [
11377
11377
  {
11378
11378
  "kind": "js",
11379
- "name": "TemplateConditionGroup",
11379
+ "name": "TemplateConditionBuilder",
11380
11380
  "declaration": {
11381
- "name": "TemplateConditionGroup",
11382
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
11381
+ "name": "TemplateConditionBuilder",
11382
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
11383
11383
  }
11384
11384
  },
11385
11385
  {
11386
11386
  "kind": "custom-element-definition",
11387
- "name": "template-condition-group",
11387
+ "name": "template-condition-builder",
11388
11388
  "declaration": {
11389
- "name": "TemplateConditionGroup",
11390
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
11389
+ "name": "TemplateConditionBuilder",
11390
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
11391
11391
  }
11392
11392
  }
11393
11393
  ]
@@ -277,17 +277,6 @@ 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
-
291
280
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
292
281
  React.PropsWithChildren<
293
282
  Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
@@ -310,4 +299,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
310
299
  >;
311
300
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
312
301
 
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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
247
+ const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
263
263
  el.removeEventListener('edit', _onEditFn);
264
264
  };
265
265
  }, []);
266
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
266
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
267
267
  });
268
268
 
269
- const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
285
285
  el.removeEventListener('edit', _onEditFn);
286
286
  };
287
287
  }, []);
288
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...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,
338
337
  ParameterBuilder,
339
338
  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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
245
+ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 TemplateConditionBuilder = React.forwardRef(function TemplateCondit
261
261
  el.removeEventListener('edit', _onEditFn);
262
262
  };
263
263
  }, []);
264
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
264
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
265
265
  });
266
266
 
267
- export const ParameterBuilder = React.forwardRef(function ParameterBuilder(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 ParameterBuilder = React.forwardRef(function ParameterBuilder(props
283
283
  el.removeEventListener('edit', _onEditFn);
284
284
  };
285
285
  }, []);
286
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-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 TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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(TemplateConditionBuilderWC) ?? 'template-condition-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.94.1-alpha-6f4e61418f.0",
4
+ "version": "15.95.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -80,30 +80,30 @@
80
80
  "@commitlint/cli": "^19.2.1",
81
81
  "@commitlint/config-conventional": "^19.1.0",
82
82
  "@commitlint/format": "^19.0.3",
83
- "@genesislcap/design-system-configurator": "15.94.1-alpha-6f4e61418f.0",
84
- "@genesislcap/eslint-config": "15.94.1-alpha-6f4e61418f.0",
85
- "@genesislcap/eslint-stylelint-builder": "15.94.1-alpha-6f4e61418f.0",
86
- "@genesislcap/foundation-testing": "15.94.1-alpha-6f4e61418f.0",
87
- "@genesislcap/genx": "15.94.1-alpha-6f4e61418f.0",
88
- "@genesislcap/prettier-config": "15.94.1-alpha-6f4e61418f.0",
89
- "@genesislcap/stylelint-config": "15.94.1-alpha-6f4e61418f.0",
90
- "@genesislcap/vite-builder": "15.94.1-alpha-6f4e61418f.0",
91
- "@genesislcap/webpack-builder": "15.94.1-alpha-6f4e61418f.0",
83
+ "@genesislcap/design-system-configurator": "15.95.1",
84
+ "@genesislcap/eslint-config": "15.95.1",
85
+ "@genesislcap/eslint-stylelint-builder": "15.95.1",
86
+ "@genesislcap/foundation-testing": "15.95.1",
87
+ "@genesislcap/genx": "15.95.1",
88
+ "@genesislcap/prettier-config": "15.95.1",
89
+ "@genesislcap/stylelint-config": "15.95.1",
90
+ "@genesislcap/vite-builder": "15.95.1",
91
+ "@genesislcap/webpack-builder": "15.95.1",
92
92
  "dayjs": "^1.11.7"
93
93
  },
94
94
  "dependencies": {
95
- "@genesislcap/foundation-comms": "15.94.1-alpha-6f4e61418f.0",
96
- "@genesislcap/foundation-criteria": "15.94.1-alpha-6f4e61418f.0",
97
- "@genesislcap/foundation-entity-management": "15.94.1-alpha-6f4e61418f.0",
98
- "@genesislcap/foundation-forms": "15.94.1-alpha-6f4e61418f.0",
99
- "@genesislcap/foundation-layout": "15.94.1-alpha-6f4e61418f.0",
100
- "@genesislcap/foundation-logger": "15.94.1-alpha-6f4e61418f.0",
101
- "@genesislcap/foundation-notifications": "15.94.1-alpha-6f4e61418f.0",
102
- "@genesislcap/foundation-ui": "15.94.1-alpha-6f4e61418f.0",
103
- "@genesislcap/foundation-utils": "15.94.1-alpha-6f4e61418f.0",
104
- "@genesislcap/rapid-design-system": "15.94.1-alpha-6f4e61418f.0",
105
- "@genesislcap/rapid-grid-pro": "15.94.1-alpha-6f4e61418f.0",
106
- "@genesislcap/web-core": "15.94.1-alpha-6f4e61418f.0",
95
+ "@genesislcap/foundation-comms": "15.95.1",
96
+ "@genesislcap/foundation-criteria": "15.95.1",
97
+ "@genesislcap/foundation-entity-management": "15.95.1",
98
+ "@genesislcap/foundation-forms": "15.95.1",
99
+ "@genesislcap/foundation-layout": "15.95.1",
100
+ "@genesislcap/foundation-logger": "15.95.1",
101
+ "@genesislcap/foundation-notifications": "15.95.1",
102
+ "@genesislcap/foundation-ui": "15.95.1",
103
+ "@genesislcap/foundation-utils": "15.95.1",
104
+ "@genesislcap/rapid-design-system": "15.95.1",
105
+ "@genesislcap/rapid-grid-pro": "15.95.1",
106
+ "@genesislcap/web-core": "15.95.1",
107
107
  "lodash.debounce": "^4.0.8",
108
108
  "rxjs": "^7.5.4"
109
109
  },