@genesislcap/pbc-notify-ui 14.501.0 → 15.0.0
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.
- package/dist/custom-elements.json +425 -425
- package/dist/dts/react.d.ts +23 -23
- package/dist/react.cjs +17 -17
- package/dist/react.mjs +14 -14
- package/package.json +23 -23
|
@@ -5157,70 +5157,70 @@
|
|
|
5157
5157
|
},
|
|
5158
5158
|
{
|
|
5159
5159
|
"kind": "javascript-module",
|
|
5160
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
5160
|
+
"path": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts",
|
|
5161
5161
|
"declarations": [
|
|
5162
5162
|
{
|
|
5163
5163
|
"kind": "class",
|
|
5164
5164
|
"description": "",
|
|
5165
|
-
"name": "
|
|
5165
|
+
"name": "NotifyAuditManagement",
|
|
5166
5166
|
"superclass": {
|
|
5167
5167
|
"name": "GenesisElement",
|
|
5168
5168
|
"package": "@genesislcap/web-core"
|
|
5169
5169
|
},
|
|
5170
|
-
"tagName": "
|
|
5170
|
+
"tagName": "notify-audit-management",
|
|
5171
5171
|
"customElement": true
|
|
5172
5172
|
}
|
|
5173
5173
|
],
|
|
5174
5174
|
"exports": [
|
|
5175
5175
|
{
|
|
5176
5176
|
"kind": "js",
|
|
5177
|
-
"name": "
|
|
5177
|
+
"name": "NotifyAuditManagement",
|
|
5178
5178
|
"declaration": {
|
|
5179
|
-
"name": "
|
|
5180
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
5179
|
+
"name": "NotifyAuditManagement",
|
|
5180
|
+
"module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
|
|
5181
5181
|
}
|
|
5182
5182
|
},
|
|
5183
5183
|
{
|
|
5184
5184
|
"kind": "custom-element-definition",
|
|
5185
|
-
"name": "
|
|
5185
|
+
"name": "notify-audit-management",
|
|
5186
5186
|
"declaration": {
|
|
5187
|
-
"name": "
|
|
5188
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
5187
|
+
"name": "NotifyAuditManagement",
|
|
5188
|
+
"module": "src/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.ts"
|
|
5189
5189
|
}
|
|
5190
5190
|
}
|
|
5191
5191
|
]
|
|
5192
5192
|
},
|
|
5193
5193
|
{
|
|
5194
5194
|
"kind": "javascript-module",
|
|
5195
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
5195
|
+
"path": "src/components/foundation-notification-dashboard/components/routes/route-management.ts",
|
|
5196
5196
|
"declarations": [
|
|
5197
5197
|
{
|
|
5198
5198
|
"kind": "class",
|
|
5199
5199
|
"description": "",
|
|
5200
|
-
"name": "
|
|
5200
|
+
"name": "RouteManagement",
|
|
5201
5201
|
"superclass": {
|
|
5202
5202
|
"name": "GenesisElement",
|
|
5203
5203
|
"package": "@genesislcap/web-core"
|
|
5204
5204
|
},
|
|
5205
|
-
"tagName": "
|
|
5205
|
+
"tagName": "route-management",
|
|
5206
5206
|
"customElement": true
|
|
5207
5207
|
}
|
|
5208
5208
|
],
|
|
5209
5209
|
"exports": [
|
|
5210
5210
|
{
|
|
5211
5211
|
"kind": "js",
|
|
5212
|
-
"name": "
|
|
5212
|
+
"name": "RouteManagement",
|
|
5213
5213
|
"declaration": {
|
|
5214
|
-
"name": "
|
|
5215
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
5214
|
+
"name": "RouteManagement",
|
|
5215
|
+
"module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
|
|
5216
5216
|
}
|
|
5217
5217
|
},
|
|
5218
5218
|
{
|
|
5219
5219
|
"kind": "custom-element-definition",
|
|
5220
|
-
"name": "
|
|
5220
|
+
"name": "route-management",
|
|
5221
5221
|
"declaration": {
|
|
5222
|
-
"name": "
|
|
5223
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
5222
|
+
"name": "RouteManagement",
|
|
5223
|
+
"module": "src/components/foundation-notification-dashboard/components/routes/route-management.ts"
|
|
5224
5224
|
}
|
|
5225
5225
|
}
|
|
5226
5226
|
]
|
|
@@ -6560,6 +6560,156 @@
|
|
|
6560
6560
|
}
|
|
6561
6561
|
]
|
|
6562
6562
|
},
|
|
6563
|
+
{
|
|
6564
|
+
"kind": "javascript-module",
|
|
6565
|
+
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
|
|
6566
|
+
"declarations": [
|
|
6567
|
+
{
|
|
6568
|
+
"kind": "variable",
|
|
6569
|
+
"name": "RuleConditionGroupTemplate",
|
|
6570
|
+
"default": "html<RuleConditionGroup>`\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, RuleConditionGroup>`\n ${when(\n (x) => isGroup(x),\n html<ConditionNode>`\n <rule-condition-group\n :fields=${(x, c) => c.parent.fields}\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 ></rule-condition-group>\n `,\n )}\n ${when(\n (x) => !isGroup(x),\n html<ConditionNode>`\n <rule-condition-builder\n :fields=${(x, c) => c.parent.fields}\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 ></rule-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`"
|
|
6571
|
+
}
|
|
6572
|
+
],
|
|
6573
|
+
"exports": [
|
|
6574
|
+
{
|
|
6575
|
+
"kind": "js",
|
|
6576
|
+
"name": "RuleConditionGroupTemplate",
|
|
6577
|
+
"declaration": {
|
|
6578
|
+
"name": "RuleConditionGroupTemplate",
|
|
6579
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
|
|
6580
|
+
}
|
|
6581
|
+
}
|
|
6582
|
+
]
|
|
6583
|
+
},
|
|
6584
|
+
{
|
|
6585
|
+
"kind": "javascript-module",
|
|
6586
|
+
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
|
|
6587
|
+
"declarations": [
|
|
6588
|
+
{
|
|
6589
|
+
"kind": "class",
|
|
6590
|
+
"description": "Parenthesized group of conditions/nested groups for notification rule\ncriteria, joined to the previous sibling via AND/OR like a single\ncondition row - but bracketing its own children off from the rest of the\nlist, so e.g. \"(A && B) || C\" can be expressed without the AND silently\nspanning more than intended.",
|
|
6591
|
+
"name": "RuleConditionGroup",
|
|
6592
|
+
"members": [
|
|
6593
|
+
{
|
|
6594
|
+
"kind": "field",
|
|
6595
|
+
"name": "node",
|
|
6596
|
+
"type": {
|
|
6597
|
+
"text": "ConditionGroupEntity"
|
|
6598
|
+
}
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
"kind": "field",
|
|
6602
|
+
"name": "fields",
|
|
6603
|
+
"type": {
|
|
6604
|
+
"text": "Field[]"
|
|
6605
|
+
},
|
|
6606
|
+
"default": "[]"
|
|
6607
|
+
},
|
|
6608
|
+
{
|
|
6609
|
+
"kind": "field",
|
|
6610
|
+
"name": "isFirst",
|
|
6611
|
+
"type": {
|
|
6612
|
+
"text": "boolean"
|
|
6613
|
+
},
|
|
6614
|
+
"default": "false"
|
|
6615
|
+
},
|
|
6616
|
+
{
|
|
6617
|
+
"kind": "field",
|
|
6618
|
+
"name": "joinOperator",
|
|
6619
|
+
"type": {
|
|
6620
|
+
"text": "string"
|
|
6621
|
+
}
|
|
6622
|
+
},
|
|
6623
|
+
{
|
|
6624
|
+
"kind": "field",
|
|
6625
|
+
"name": "groupChildren",
|
|
6626
|
+
"type": {
|
|
6627
|
+
"text": "ConditionNode[]"
|
|
6628
|
+
},
|
|
6629
|
+
"default": "[]"
|
|
6630
|
+
},
|
|
6631
|
+
{
|
|
6632
|
+
"kind": "method",
|
|
6633
|
+
"name": "nodeChanged"
|
|
6634
|
+
},
|
|
6635
|
+
{
|
|
6636
|
+
"kind": "method",
|
|
6637
|
+
"name": "joinOperatorChanged"
|
|
6638
|
+
},
|
|
6639
|
+
{
|
|
6640
|
+
"kind": "method",
|
|
6641
|
+
"name": "newCondition"
|
|
6642
|
+
},
|
|
6643
|
+
{
|
|
6644
|
+
"kind": "method",
|
|
6645
|
+
"name": "newGroup"
|
|
6646
|
+
},
|
|
6647
|
+
{
|
|
6648
|
+
"kind": "method",
|
|
6649
|
+
"name": "editChild",
|
|
6650
|
+
"parameters": [
|
|
6651
|
+
{
|
|
6652
|
+
"name": "_editedChild",
|
|
6653
|
+
"type": {
|
|
6654
|
+
"text": "ConditionNode"
|
|
6655
|
+
}
|
|
6656
|
+
}
|
|
6657
|
+
]
|
|
6658
|
+
},
|
|
6659
|
+
{
|
|
6660
|
+
"kind": "method",
|
|
6661
|
+
"name": "deleteChild",
|
|
6662
|
+
"parameters": [
|
|
6663
|
+
{
|
|
6664
|
+
"name": "deletedChild",
|
|
6665
|
+
"type": {
|
|
6666
|
+
"text": "ConditionNode"
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
]
|
|
6670
|
+
},
|
|
6671
|
+
{
|
|
6672
|
+
"kind": "method",
|
|
6673
|
+
"name": "deleteSelf"
|
|
6674
|
+
}
|
|
6675
|
+
],
|
|
6676
|
+
"events": [
|
|
6677
|
+
{
|
|
6678
|
+
"description": "Fired when this whole group should be removed",
|
|
6679
|
+
"name": "delete"
|
|
6680
|
+
},
|
|
6681
|
+
{
|
|
6682
|
+
"description": "Fired when anything inside this group changes",
|
|
6683
|
+
"name": "edit"
|
|
6684
|
+
}
|
|
6685
|
+
],
|
|
6686
|
+
"superclass": {
|
|
6687
|
+
"name": "GenesisElement",
|
|
6688
|
+
"package": "@genesislcap/web-core"
|
|
6689
|
+
},
|
|
6690
|
+
"tagName": "rule-condition-group",
|
|
6691
|
+
"customElement": true
|
|
6692
|
+
}
|
|
6693
|
+
],
|
|
6694
|
+
"exports": [
|
|
6695
|
+
{
|
|
6696
|
+
"kind": "js",
|
|
6697
|
+
"name": "RuleConditionGroup",
|
|
6698
|
+
"declaration": {
|
|
6699
|
+
"name": "RuleConditionGroup",
|
|
6700
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
|
|
6701
|
+
}
|
|
6702
|
+
},
|
|
6703
|
+
{
|
|
6704
|
+
"kind": "custom-element-definition",
|
|
6705
|
+
"name": "rule-condition-group",
|
|
6706
|
+
"declaration": {
|
|
6707
|
+
"name": "RuleConditionGroup",
|
|
6708
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
]
|
|
6712
|
+
},
|
|
6563
6713
|
{
|
|
6564
6714
|
"kind": "javascript-module",
|
|
6565
6715
|
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
|
|
@@ -6846,75 +6996,297 @@
|
|
|
6846
6996
|
},
|
|
6847
6997
|
{
|
|
6848
6998
|
"kind": "javascript-module",
|
|
6849
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
6999
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
|
|
6850
7000
|
"declarations": [
|
|
6851
7001
|
{
|
|
6852
7002
|
"kind": "variable",
|
|
6853
|
-
"name": "
|
|
6854
|
-
"default": "
|
|
7003
|
+
"name": "ParameterBuilderStyles",
|
|
7004
|
+
"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`"
|
|
6855
7005
|
}
|
|
6856
7006
|
],
|
|
6857
7007
|
"exports": [
|
|
6858
7008
|
{
|
|
6859
7009
|
"kind": "js",
|
|
6860
|
-
"name": "
|
|
7010
|
+
"name": "ParameterBuilderStyles",
|
|
6861
7011
|
"declaration": {
|
|
6862
|
-
"name": "
|
|
6863
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
7012
|
+
"name": "ParameterBuilderStyles",
|
|
7013
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
|
|
6864
7014
|
}
|
|
6865
7015
|
}
|
|
6866
7016
|
]
|
|
6867
7017
|
},
|
|
6868
7018
|
{
|
|
6869
7019
|
"kind": "javascript-module",
|
|
6870
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
7020
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
|
|
7021
|
+
"declarations": [
|
|
7022
|
+
{
|
|
7023
|
+
"kind": "variable",
|
|
7024
|
+
"name": "ParameterBuilderTemplate",
|
|
7025
|
+
"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`"
|
|
7026
|
+
}
|
|
7027
|
+
],
|
|
7028
|
+
"exports": [
|
|
7029
|
+
{
|
|
7030
|
+
"kind": "js",
|
|
7031
|
+
"name": "ParameterBuilderTemplate",
|
|
7032
|
+
"declaration": {
|
|
7033
|
+
"name": "ParameterBuilderTemplate",
|
|
7034
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
|
|
7035
|
+
}
|
|
7036
|
+
}
|
|
7037
|
+
]
|
|
7038
|
+
},
|
|
7039
|
+
{
|
|
7040
|
+
"kind": "javascript-module",
|
|
7041
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
|
|
6871
7042
|
"declarations": [
|
|
6872
7043
|
{
|
|
6873
7044
|
"kind": "class",
|
|
6874
|
-
"description": "
|
|
6875
|
-
"name": "
|
|
7045
|
+
"description": "Parameter builder for notification templates.",
|
|
7046
|
+
"name": "ParameterBuilder",
|
|
6876
7047
|
"members": [
|
|
6877
7048
|
{
|
|
6878
7049
|
"kind": "field",
|
|
6879
|
-
"name": "
|
|
7050
|
+
"name": "parameter",
|
|
6880
7051
|
"type": {
|
|
6881
|
-
"text": "
|
|
7052
|
+
"text": "ParameterBuilderEntity"
|
|
6882
7053
|
}
|
|
6883
7054
|
},
|
|
6884
7055
|
{
|
|
6885
7056
|
"kind": "field",
|
|
6886
|
-
"name": "
|
|
7057
|
+
"name": "name",
|
|
6887
7058
|
"type": {
|
|
6888
|
-
"text": "
|
|
6889
|
-
}
|
|
6890
|
-
"default": "[]"
|
|
7059
|
+
"text": "string"
|
|
7060
|
+
}
|
|
6891
7061
|
},
|
|
6892
7062
|
{
|
|
6893
7063
|
"kind": "field",
|
|
6894
|
-
"name": "
|
|
7064
|
+
"name": "label",
|
|
6895
7065
|
"type": {
|
|
6896
|
-
"text": "
|
|
6897
|
-
}
|
|
6898
|
-
"default": "false"
|
|
7066
|
+
"text": "string"
|
|
7067
|
+
}
|
|
6899
7068
|
},
|
|
6900
7069
|
{
|
|
6901
7070
|
"kind": "field",
|
|
6902
|
-
"name": "
|
|
7071
|
+
"name": "type",
|
|
6903
7072
|
"type": {
|
|
6904
7073
|
"text": "string"
|
|
6905
7074
|
}
|
|
6906
7075
|
},
|
|
6907
7076
|
{
|
|
6908
7077
|
"kind": "field",
|
|
6909
|
-
"name": "
|
|
7078
|
+
"name": "sourceType",
|
|
6910
7079
|
"type": {
|
|
6911
|
-
"text": "
|
|
6912
|
-
}
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
"
|
|
6917
|
-
"
|
|
7080
|
+
"text": "string"
|
|
7081
|
+
}
|
|
7082
|
+
},
|
|
7083
|
+
{
|
|
7084
|
+
"kind": "field",
|
|
7085
|
+
"name": "sourceSelected",
|
|
7086
|
+
"type": {
|
|
7087
|
+
"text": "string"
|
|
7088
|
+
}
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
"kind": "field",
|
|
7092
|
+
"name": "sourceTyped",
|
|
7093
|
+
"type": {
|
|
7094
|
+
"text": "string"
|
|
7095
|
+
}
|
|
7096
|
+
},
|
|
7097
|
+
{
|
|
7098
|
+
"kind": "field",
|
|
7099
|
+
"name": "sourceTextField",
|
|
7100
|
+
"type": {
|
|
7101
|
+
"text": "TextField"
|
|
7102
|
+
}
|
|
7103
|
+
},
|
|
7104
|
+
{
|
|
7105
|
+
"kind": "field",
|
|
7106
|
+
"name": "sourceSelect",
|
|
7107
|
+
"type": {
|
|
7108
|
+
"text": "Select"
|
|
7109
|
+
}
|
|
7110
|
+
},
|
|
7111
|
+
{
|
|
7112
|
+
"kind": "field",
|
|
7113
|
+
"name": "reqRepItems",
|
|
7114
|
+
"type": {
|
|
7115
|
+
"text": "array"
|
|
7116
|
+
},
|
|
7117
|
+
"default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
|
|
7118
|
+
},
|
|
7119
|
+
{
|
|
7120
|
+
"kind": "method",
|
|
7121
|
+
"name": "deleteParameter"
|
|
7122
|
+
},
|
|
7123
|
+
{
|
|
7124
|
+
"kind": "method",
|
|
7125
|
+
"name": "parameterChanged"
|
|
7126
|
+
},
|
|
7127
|
+
{
|
|
7128
|
+
"kind": "method",
|
|
7129
|
+
"name": "nameChanged"
|
|
7130
|
+
},
|
|
7131
|
+
{
|
|
7132
|
+
"kind": "method",
|
|
7133
|
+
"name": "labelChanged"
|
|
7134
|
+
},
|
|
7135
|
+
{
|
|
7136
|
+
"kind": "method",
|
|
7137
|
+
"name": "typeChanged"
|
|
7138
|
+
},
|
|
7139
|
+
{
|
|
7140
|
+
"kind": "method",
|
|
7141
|
+
"name": "sourceTypeChanged"
|
|
7142
|
+
},
|
|
7143
|
+
{
|
|
7144
|
+
"kind": "method",
|
|
7145
|
+
"name": "sourceSelectedChanged"
|
|
7146
|
+
},
|
|
7147
|
+
{
|
|
7148
|
+
"kind": "method",
|
|
7149
|
+
"name": "sourceTypedChanged"
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"kind": "method",
|
|
7153
|
+
"name": "genericChanged",
|
|
7154
|
+
"privacy": "private",
|
|
7155
|
+
"parameters": [
|
|
7156
|
+
{
|
|
7157
|
+
"name": "parameterAttribute"
|
|
7158
|
+
},
|
|
7159
|
+
{
|
|
7160
|
+
"name": "value"
|
|
7161
|
+
}
|
|
7162
|
+
]
|
|
7163
|
+
}
|
|
7164
|
+
],
|
|
7165
|
+
"events": [
|
|
7166
|
+
{
|
|
7167
|
+
"description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
|
|
7168
|
+
"name": "delete"
|
|
7169
|
+
},
|
|
7170
|
+
{
|
|
7171
|
+
"description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
|
|
7172
|
+
"name": "edit"
|
|
7173
|
+
}
|
|
7174
|
+
],
|
|
7175
|
+
"attributes": [
|
|
7176
|
+
{
|
|
7177
|
+
"name": "parameter",
|
|
7178
|
+
"type": {
|
|
7179
|
+
"text": "ParameterBuilderEntity"
|
|
7180
|
+
},
|
|
7181
|
+
"fieldName": "parameter"
|
|
7182
|
+
}
|
|
7183
|
+
],
|
|
7184
|
+
"superclass": {
|
|
7185
|
+
"name": "GenesisElement",
|
|
7186
|
+
"package": "@genesislcap/web-core"
|
|
7187
|
+
},
|
|
7188
|
+
"tagName": "parameter-builder",
|
|
7189
|
+
"customElement": true
|
|
7190
|
+
}
|
|
7191
|
+
],
|
|
7192
|
+
"exports": [
|
|
7193
|
+
{
|
|
7194
|
+
"kind": "js",
|
|
7195
|
+
"name": "ParameterBuilder",
|
|
7196
|
+
"declaration": {
|
|
7197
|
+
"name": "ParameterBuilder",
|
|
7198
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7199
|
+
}
|
|
7200
|
+
},
|
|
7201
|
+
{
|
|
7202
|
+
"kind": "custom-element-definition",
|
|
7203
|
+
"name": "parameter-builder",
|
|
7204
|
+
"declaration": {
|
|
7205
|
+
"name": "ParameterBuilder",
|
|
7206
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7207
|
+
}
|
|
7208
|
+
}
|
|
7209
|
+
]
|
|
7210
|
+
},
|
|
7211
|
+
{
|
|
7212
|
+
"kind": "javascript-module",
|
|
7213
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7214
|
+
"declarations": [
|
|
7215
|
+
{
|
|
7216
|
+
"kind": "variable",
|
|
7217
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7218
|
+
"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`"
|
|
7219
|
+
}
|
|
7220
|
+
],
|
|
7221
|
+
"exports": [
|
|
7222
|
+
{
|
|
7223
|
+
"kind": "js",
|
|
7224
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7225
|
+
"declaration": {
|
|
7226
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7227
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7228
|
+
}
|
|
7229
|
+
}
|
|
7230
|
+
]
|
|
7231
|
+
},
|
|
7232
|
+
{
|
|
7233
|
+
"kind": "javascript-module",
|
|
7234
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7235
|
+
"declarations": [
|
|
7236
|
+
{
|
|
7237
|
+
"kind": "class",
|
|
7238
|
+
"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.",
|
|
7239
|
+
"name": "TemplateConditionGroup",
|
|
7240
|
+
"members": [
|
|
7241
|
+
{
|
|
7242
|
+
"kind": "field",
|
|
7243
|
+
"name": "node",
|
|
7244
|
+
"type": {
|
|
7245
|
+
"text": "ConditionGroupEntity"
|
|
7246
|
+
}
|
|
7247
|
+
},
|
|
7248
|
+
{
|
|
7249
|
+
"kind": "field",
|
|
7250
|
+
"name": "fields",
|
|
7251
|
+
"type": {
|
|
7252
|
+
"text": "Field[]"
|
|
7253
|
+
},
|
|
7254
|
+
"default": "[]"
|
|
7255
|
+
},
|
|
7256
|
+
{
|
|
7257
|
+
"kind": "field",
|
|
7258
|
+
"name": "parameters",
|
|
7259
|
+
"type": {
|
|
7260
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7261
|
+
},
|
|
7262
|
+
"default": "[]"
|
|
7263
|
+
},
|
|
7264
|
+
{
|
|
7265
|
+
"kind": "field",
|
|
7266
|
+
"name": "isFirst",
|
|
7267
|
+
"type": {
|
|
7268
|
+
"text": "boolean"
|
|
7269
|
+
},
|
|
7270
|
+
"default": "false"
|
|
7271
|
+
},
|
|
7272
|
+
{
|
|
7273
|
+
"kind": "field",
|
|
7274
|
+
"name": "joinOperator",
|
|
7275
|
+
"type": {
|
|
7276
|
+
"text": "string"
|
|
7277
|
+
}
|
|
7278
|
+
},
|
|
7279
|
+
{
|
|
7280
|
+
"kind": "field",
|
|
7281
|
+
"name": "groupChildren",
|
|
7282
|
+
"type": {
|
|
7283
|
+
"text": "ConditionNode[]"
|
|
7284
|
+
},
|
|
7285
|
+
"default": "[]"
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"kind": "method",
|
|
7289
|
+
"name": "nodeChanged"
|
|
6918
7290
|
},
|
|
6919
7291
|
{
|
|
6920
7292
|
"kind": "method",
|
|
@@ -6971,25 +7343,25 @@
|
|
|
6971
7343
|
"name": "GenesisElement",
|
|
6972
7344
|
"package": "@genesislcap/web-core"
|
|
6973
7345
|
},
|
|
6974
|
-
"tagName": "
|
|
7346
|
+
"tagName": "template-condition-group",
|
|
6975
7347
|
"customElement": true
|
|
6976
7348
|
}
|
|
6977
7349
|
],
|
|
6978
7350
|
"exports": [
|
|
6979
7351
|
{
|
|
6980
7352
|
"kind": "js",
|
|
6981
|
-
"name": "
|
|
7353
|
+
"name": "TemplateConditionGroup",
|
|
6982
7354
|
"declaration": {
|
|
6983
|
-
"name": "
|
|
6984
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
7355
|
+
"name": "TemplateConditionGroup",
|
|
7356
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
6985
7357
|
}
|
|
6986
7358
|
},
|
|
6987
7359
|
{
|
|
6988
7360
|
"kind": "custom-element-definition",
|
|
6989
|
-
"name": "
|
|
7361
|
+
"name": "template-condition-group",
|
|
6990
7362
|
"declaration": {
|
|
6991
|
-
"name": "
|
|
6992
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
7363
|
+
"name": "TemplateConditionGroup",
|
|
7364
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
6993
7365
|
}
|
|
6994
7366
|
}
|
|
6995
7367
|
]
|
|
@@ -7285,378 +7657,6 @@
|
|
|
7285
7657
|
}
|
|
7286
7658
|
}
|
|
7287
7659
|
]
|
|
7288
|
-
},
|
|
7289
|
-
{
|
|
7290
|
-
"kind": "javascript-module",
|
|
7291
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
|
|
7292
|
-
"declarations": [
|
|
7293
|
-
{
|
|
7294
|
-
"kind": "variable",
|
|
7295
|
-
"name": "ParameterBuilderStyles",
|
|
7296
|
-
"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`"
|
|
7297
|
-
}
|
|
7298
|
-
],
|
|
7299
|
-
"exports": [
|
|
7300
|
-
{
|
|
7301
|
-
"kind": "js",
|
|
7302
|
-
"name": "ParameterBuilderStyles",
|
|
7303
|
-
"declaration": {
|
|
7304
|
-
"name": "ParameterBuilderStyles",
|
|
7305
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
|
|
7306
|
-
}
|
|
7307
|
-
}
|
|
7308
|
-
]
|
|
7309
|
-
},
|
|
7310
|
-
{
|
|
7311
|
-
"kind": "javascript-module",
|
|
7312
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
|
|
7313
|
-
"declarations": [
|
|
7314
|
-
{
|
|
7315
|
-
"kind": "variable",
|
|
7316
|
-
"name": "ParameterBuilderTemplate",
|
|
7317
|
-
"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`"
|
|
7318
|
-
}
|
|
7319
|
-
],
|
|
7320
|
-
"exports": [
|
|
7321
|
-
{
|
|
7322
|
-
"kind": "js",
|
|
7323
|
-
"name": "ParameterBuilderTemplate",
|
|
7324
|
-
"declaration": {
|
|
7325
|
-
"name": "ParameterBuilderTemplate",
|
|
7326
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
|
|
7327
|
-
}
|
|
7328
|
-
}
|
|
7329
|
-
]
|
|
7330
|
-
},
|
|
7331
|
-
{
|
|
7332
|
-
"kind": "javascript-module",
|
|
7333
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
|
|
7334
|
-
"declarations": [
|
|
7335
|
-
{
|
|
7336
|
-
"kind": "class",
|
|
7337
|
-
"description": "Parameter builder for notification templates.",
|
|
7338
|
-
"name": "ParameterBuilder",
|
|
7339
|
-
"members": [
|
|
7340
|
-
{
|
|
7341
|
-
"kind": "field",
|
|
7342
|
-
"name": "parameter",
|
|
7343
|
-
"type": {
|
|
7344
|
-
"text": "ParameterBuilderEntity"
|
|
7345
|
-
}
|
|
7346
|
-
},
|
|
7347
|
-
{
|
|
7348
|
-
"kind": "field",
|
|
7349
|
-
"name": "name",
|
|
7350
|
-
"type": {
|
|
7351
|
-
"text": "string"
|
|
7352
|
-
}
|
|
7353
|
-
},
|
|
7354
|
-
{
|
|
7355
|
-
"kind": "field",
|
|
7356
|
-
"name": "label",
|
|
7357
|
-
"type": {
|
|
7358
|
-
"text": "string"
|
|
7359
|
-
}
|
|
7360
|
-
},
|
|
7361
|
-
{
|
|
7362
|
-
"kind": "field",
|
|
7363
|
-
"name": "type",
|
|
7364
|
-
"type": {
|
|
7365
|
-
"text": "string"
|
|
7366
|
-
}
|
|
7367
|
-
},
|
|
7368
|
-
{
|
|
7369
|
-
"kind": "field",
|
|
7370
|
-
"name": "sourceType",
|
|
7371
|
-
"type": {
|
|
7372
|
-
"text": "string"
|
|
7373
|
-
}
|
|
7374
|
-
},
|
|
7375
|
-
{
|
|
7376
|
-
"kind": "field",
|
|
7377
|
-
"name": "sourceSelected",
|
|
7378
|
-
"type": {
|
|
7379
|
-
"text": "string"
|
|
7380
|
-
}
|
|
7381
|
-
},
|
|
7382
|
-
{
|
|
7383
|
-
"kind": "field",
|
|
7384
|
-
"name": "sourceTyped",
|
|
7385
|
-
"type": {
|
|
7386
|
-
"text": "string"
|
|
7387
|
-
}
|
|
7388
|
-
},
|
|
7389
|
-
{
|
|
7390
|
-
"kind": "field",
|
|
7391
|
-
"name": "sourceTextField",
|
|
7392
|
-
"type": {
|
|
7393
|
-
"text": "TextField"
|
|
7394
|
-
}
|
|
7395
|
-
},
|
|
7396
|
-
{
|
|
7397
|
-
"kind": "field",
|
|
7398
|
-
"name": "sourceSelect",
|
|
7399
|
-
"type": {
|
|
7400
|
-
"text": "Select"
|
|
7401
|
-
}
|
|
7402
|
-
},
|
|
7403
|
-
{
|
|
7404
|
-
"kind": "field",
|
|
7405
|
-
"name": "reqRepItems",
|
|
7406
|
-
"type": {
|
|
7407
|
-
"text": "array"
|
|
7408
|
-
},
|
|
7409
|
-
"default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
|
|
7410
|
-
},
|
|
7411
|
-
{
|
|
7412
|
-
"kind": "method",
|
|
7413
|
-
"name": "deleteParameter"
|
|
7414
|
-
},
|
|
7415
|
-
{
|
|
7416
|
-
"kind": "method",
|
|
7417
|
-
"name": "parameterChanged"
|
|
7418
|
-
},
|
|
7419
|
-
{
|
|
7420
|
-
"kind": "method",
|
|
7421
|
-
"name": "nameChanged"
|
|
7422
|
-
},
|
|
7423
|
-
{
|
|
7424
|
-
"kind": "method",
|
|
7425
|
-
"name": "labelChanged"
|
|
7426
|
-
},
|
|
7427
|
-
{
|
|
7428
|
-
"kind": "method",
|
|
7429
|
-
"name": "typeChanged"
|
|
7430
|
-
},
|
|
7431
|
-
{
|
|
7432
|
-
"kind": "method",
|
|
7433
|
-
"name": "sourceTypeChanged"
|
|
7434
|
-
},
|
|
7435
|
-
{
|
|
7436
|
-
"kind": "method",
|
|
7437
|
-
"name": "sourceSelectedChanged"
|
|
7438
|
-
},
|
|
7439
|
-
{
|
|
7440
|
-
"kind": "method",
|
|
7441
|
-
"name": "sourceTypedChanged"
|
|
7442
|
-
},
|
|
7443
|
-
{
|
|
7444
|
-
"kind": "method",
|
|
7445
|
-
"name": "genericChanged",
|
|
7446
|
-
"privacy": "private",
|
|
7447
|
-
"parameters": [
|
|
7448
|
-
{
|
|
7449
|
-
"name": "parameterAttribute"
|
|
7450
|
-
},
|
|
7451
|
-
{
|
|
7452
|
-
"name": "value"
|
|
7453
|
-
}
|
|
7454
|
-
]
|
|
7455
|
-
}
|
|
7456
|
-
],
|
|
7457
|
-
"events": [
|
|
7458
|
-
{
|
|
7459
|
-
"description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
|
|
7460
|
-
"name": "delete"
|
|
7461
|
-
},
|
|
7462
|
-
{
|
|
7463
|
-
"description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
|
|
7464
|
-
"name": "edit"
|
|
7465
|
-
}
|
|
7466
|
-
],
|
|
7467
|
-
"attributes": [
|
|
7468
|
-
{
|
|
7469
|
-
"name": "parameter",
|
|
7470
|
-
"type": {
|
|
7471
|
-
"text": "ParameterBuilderEntity"
|
|
7472
|
-
},
|
|
7473
|
-
"fieldName": "parameter"
|
|
7474
|
-
}
|
|
7475
|
-
],
|
|
7476
|
-
"superclass": {
|
|
7477
|
-
"name": "GenesisElement",
|
|
7478
|
-
"package": "@genesislcap/web-core"
|
|
7479
|
-
},
|
|
7480
|
-
"tagName": "parameter-builder",
|
|
7481
|
-
"customElement": true
|
|
7482
|
-
}
|
|
7483
|
-
],
|
|
7484
|
-
"exports": [
|
|
7485
|
-
{
|
|
7486
|
-
"kind": "js",
|
|
7487
|
-
"name": "ParameterBuilder",
|
|
7488
|
-
"declaration": {
|
|
7489
|
-
"name": "ParameterBuilder",
|
|
7490
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7491
|
-
}
|
|
7492
|
-
},
|
|
7493
|
-
{
|
|
7494
|
-
"kind": "custom-element-definition",
|
|
7495
|
-
"name": "parameter-builder",
|
|
7496
|
-
"declaration": {
|
|
7497
|
-
"name": "ParameterBuilder",
|
|
7498
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7499
|
-
}
|
|
7500
|
-
}
|
|
7501
|
-
]
|
|
7502
|
-
},
|
|
7503
|
-
{
|
|
7504
|
-
"kind": "javascript-module",
|
|
7505
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7506
|
-
"declarations": [
|
|
7507
|
-
{
|
|
7508
|
-
"kind": "variable",
|
|
7509
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7510
|
-
"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`"
|
|
7511
|
-
}
|
|
7512
|
-
],
|
|
7513
|
-
"exports": [
|
|
7514
|
-
{
|
|
7515
|
-
"kind": "js",
|
|
7516
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7517
|
-
"declaration": {
|
|
7518
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7519
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7520
|
-
}
|
|
7521
|
-
}
|
|
7522
|
-
]
|
|
7523
|
-
},
|
|
7524
|
-
{
|
|
7525
|
-
"kind": "javascript-module",
|
|
7526
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7527
|
-
"declarations": [
|
|
7528
|
-
{
|
|
7529
|
-
"kind": "class",
|
|
7530
|
-
"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.",
|
|
7531
|
-
"name": "TemplateConditionGroup",
|
|
7532
|
-
"members": [
|
|
7533
|
-
{
|
|
7534
|
-
"kind": "field",
|
|
7535
|
-
"name": "node",
|
|
7536
|
-
"type": {
|
|
7537
|
-
"text": "ConditionGroupEntity"
|
|
7538
|
-
}
|
|
7539
|
-
},
|
|
7540
|
-
{
|
|
7541
|
-
"kind": "field",
|
|
7542
|
-
"name": "fields",
|
|
7543
|
-
"type": {
|
|
7544
|
-
"text": "Field[]"
|
|
7545
|
-
},
|
|
7546
|
-
"default": "[]"
|
|
7547
|
-
},
|
|
7548
|
-
{
|
|
7549
|
-
"kind": "field",
|
|
7550
|
-
"name": "parameters",
|
|
7551
|
-
"type": {
|
|
7552
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
7553
|
-
},
|
|
7554
|
-
"default": "[]"
|
|
7555
|
-
},
|
|
7556
|
-
{
|
|
7557
|
-
"kind": "field",
|
|
7558
|
-
"name": "isFirst",
|
|
7559
|
-
"type": {
|
|
7560
|
-
"text": "boolean"
|
|
7561
|
-
},
|
|
7562
|
-
"default": "false"
|
|
7563
|
-
},
|
|
7564
|
-
{
|
|
7565
|
-
"kind": "field",
|
|
7566
|
-
"name": "joinOperator",
|
|
7567
|
-
"type": {
|
|
7568
|
-
"text": "string"
|
|
7569
|
-
}
|
|
7570
|
-
},
|
|
7571
|
-
{
|
|
7572
|
-
"kind": "field",
|
|
7573
|
-
"name": "groupChildren",
|
|
7574
|
-
"type": {
|
|
7575
|
-
"text": "ConditionNode[]"
|
|
7576
|
-
},
|
|
7577
|
-
"default": "[]"
|
|
7578
|
-
},
|
|
7579
|
-
{
|
|
7580
|
-
"kind": "method",
|
|
7581
|
-
"name": "nodeChanged"
|
|
7582
|
-
},
|
|
7583
|
-
{
|
|
7584
|
-
"kind": "method",
|
|
7585
|
-
"name": "joinOperatorChanged"
|
|
7586
|
-
},
|
|
7587
|
-
{
|
|
7588
|
-
"kind": "method",
|
|
7589
|
-
"name": "newCondition"
|
|
7590
|
-
},
|
|
7591
|
-
{
|
|
7592
|
-
"kind": "method",
|
|
7593
|
-
"name": "newGroup"
|
|
7594
|
-
},
|
|
7595
|
-
{
|
|
7596
|
-
"kind": "method",
|
|
7597
|
-
"name": "editChild",
|
|
7598
|
-
"parameters": [
|
|
7599
|
-
{
|
|
7600
|
-
"name": "_editedChild",
|
|
7601
|
-
"type": {
|
|
7602
|
-
"text": "ConditionNode"
|
|
7603
|
-
}
|
|
7604
|
-
}
|
|
7605
|
-
]
|
|
7606
|
-
},
|
|
7607
|
-
{
|
|
7608
|
-
"kind": "method",
|
|
7609
|
-
"name": "deleteChild",
|
|
7610
|
-
"parameters": [
|
|
7611
|
-
{
|
|
7612
|
-
"name": "deletedChild",
|
|
7613
|
-
"type": {
|
|
7614
|
-
"text": "ConditionNode"
|
|
7615
|
-
}
|
|
7616
|
-
}
|
|
7617
|
-
]
|
|
7618
|
-
},
|
|
7619
|
-
{
|
|
7620
|
-
"kind": "method",
|
|
7621
|
-
"name": "deleteSelf"
|
|
7622
|
-
}
|
|
7623
|
-
],
|
|
7624
|
-
"events": [
|
|
7625
|
-
{
|
|
7626
|
-
"description": "Fired when this whole group should be removed",
|
|
7627
|
-
"name": "delete"
|
|
7628
|
-
},
|
|
7629
|
-
{
|
|
7630
|
-
"description": "Fired when anything inside this group changes",
|
|
7631
|
-
"name": "edit"
|
|
7632
|
-
}
|
|
7633
|
-
],
|
|
7634
|
-
"superclass": {
|
|
7635
|
-
"name": "GenesisElement",
|
|
7636
|
-
"package": "@genesislcap/web-core"
|
|
7637
|
-
},
|
|
7638
|
-
"tagName": "template-condition-group",
|
|
7639
|
-
"customElement": true
|
|
7640
|
-
}
|
|
7641
|
-
],
|
|
7642
|
-
"exports": [
|
|
7643
|
-
{
|
|
7644
|
-
"kind": "js",
|
|
7645
|
-
"name": "TemplateConditionGroup",
|
|
7646
|
-
"declaration": {
|
|
7647
|
-
"name": "TemplateConditionGroup",
|
|
7648
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7649
|
-
}
|
|
7650
|
-
},
|
|
7651
|
-
{
|
|
7652
|
-
"kind": "custom-element-definition",
|
|
7653
|
-
"name": "template-condition-group",
|
|
7654
|
-
"declaration": {
|
|
7655
|
-
"name": "TemplateConditionGroup",
|
|
7656
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7657
|
-
}
|
|
7658
|
-
}
|
|
7659
|
-
]
|
|
7660
7660
|
}
|
|
7661
7661
|
]
|
|
7662
7662
|
}
|