@genesislcap/pbc-notify-ui 14.488.1-FUI-2571.1 → 14.488.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.
- package/dist/custom-elements.json +321 -321
- package/dist/dts/react.d.ts +11 -11
- package/dist/react.cjs +7 -7
- package/dist/react.mjs +6 -6
- package/package.json +23 -23
|
@@ -6996,560 +6996,426 @@
|
|
|
6996
6996
|
},
|
|
6997
6997
|
{
|
|
6998
6998
|
"kind": "javascript-module",
|
|
6999
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
6999
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
|
|
7000
7000
|
"declarations": [
|
|
7001
7001
|
{
|
|
7002
7002
|
"kind": "variable",
|
|
7003
|
-
"name": "
|
|
7004
|
-
"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`"
|
|
7005
7005
|
}
|
|
7006
7006
|
],
|
|
7007
7007
|
"exports": [
|
|
7008
7008
|
{
|
|
7009
7009
|
"kind": "js",
|
|
7010
|
-
"name": "
|
|
7010
|
+
"name": "ParameterBuilderStyles",
|
|
7011
7011
|
"declaration": {
|
|
7012
|
-
"name": "
|
|
7013
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7012
|
+
"name": "ParameterBuilderStyles",
|
|
7013
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
|
|
7014
7014
|
}
|
|
7015
7015
|
}
|
|
7016
7016
|
]
|
|
7017
7017
|
},
|
|
7018
7018
|
{
|
|
7019
7019
|
"kind": "javascript-module",
|
|
7020
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
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",
|
|
7021
7042
|
"declarations": [
|
|
7022
7043
|
{
|
|
7023
7044
|
"kind": "class",
|
|
7024
|
-
"description": "
|
|
7025
|
-
"name": "
|
|
7045
|
+
"description": "Parameter builder for notification templates.",
|
|
7046
|
+
"name": "ParameterBuilder",
|
|
7026
7047
|
"members": [
|
|
7027
7048
|
{
|
|
7028
7049
|
"kind": "field",
|
|
7029
|
-
"name": "
|
|
7050
|
+
"name": "parameter",
|
|
7030
7051
|
"type": {
|
|
7031
|
-
"text": "
|
|
7052
|
+
"text": "ParameterBuilderEntity"
|
|
7032
7053
|
}
|
|
7033
7054
|
},
|
|
7034
7055
|
{
|
|
7035
7056
|
"kind": "field",
|
|
7036
|
-
"name": "
|
|
7037
|
-
"type": {
|
|
7038
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
7039
|
-
},
|
|
7040
|
-
"default": "[]"
|
|
7041
|
-
},
|
|
7042
|
-
{
|
|
7043
|
-
"kind": "field",
|
|
7044
|
-
"name": "fields",
|
|
7045
|
-
"type": {
|
|
7046
|
-
"text": "Array<string>"
|
|
7047
|
-
},
|
|
7048
|
-
"default": "[]"
|
|
7049
|
-
},
|
|
7050
|
-
{
|
|
7051
|
-
"kind": "field",
|
|
7052
|
-
"name": "isFirst",
|
|
7053
|
-
"type": {
|
|
7054
|
-
"text": "boolean"
|
|
7055
|
-
},
|
|
7056
|
-
"default": "false"
|
|
7057
|
-
},
|
|
7058
|
-
{
|
|
7059
|
-
"kind": "field",
|
|
7060
|
-
"name": "joinOperator",
|
|
7057
|
+
"name": "name",
|
|
7061
7058
|
"type": {
|
|
7062
7059
|
"text": "string"
|
|
7063
7060
|
}
|
|
7064
7061
|
},
|
|
7065
7062
|
{
|
|
7066
7063
|
"kind": "field",
|
|
7067
|
-
"name": "
|
|
7064
|
+
"name": "label",
|
|
7068
7065
|
"type": {
|
|
7069
|
-
"text": "
|
|
7070
|
-
}
|
|
7071
|
-
"default": "null"
|
|
7066
|
+
"text": "string"
|
|
7067
|
+
}
|
|
7072
7068
|
},
|
|
7073
7069
|
{
|
|
7074
7070
|
"kind": "field",
|
|
7075
|
-
"name": "
|
|
7071
|
+
"name": "type",
|
|
7076
7072
|
"type": {
|
|
7077
|
-
"text": "
|
|
7078
|
-
}
|
|
7079
|
-
"default": "[]"
|
|
7073
|
+
"text": "string"
|
|
7074
|
+
}
|
|
7080
7075
|
},
|
|
7081
7076
|
{
|
|
7082
7077
|
"kind": "field",
|
|
7083
|
-
"name": "
|
|
7078
|
+
"name": "sourceType",
|
|
7084
7079
|
"type": {
|
|
7085
7080
|
"text": "string"
|
|
7086
|
-
}
|
|
7087
|
-
"default": "null"
|
|
7081
|
+
}
|
|
7088
7082
|
},
|
|
7089
7083
|
{
|
|
7090
7084
|
"kind": "field",
|
|
7091
|
-
"name": "
|
|
7085
|
+
"name": "sourceSelected",
|
|
7092
7086
|
"type": {
|
|
7093
7087
|
"text": "string"
|
|
7094
7088
|
}
|
|
7095
7089
|
},
|
|
7096
7090
|
{
|
|
7097
7091
|
"kind": "field",
|
|
7098
|
-
"name": "
|
|
7092
|
+
"name": "sourceTyped",
|
|
7099
7093
|
"type": {
|
|
7100
7094
|
"text": "string"
|
|
7101
|
-
}
|
|
7102
|
-
"default": "null"
|
|
7095
|
+
}
|
|
7103
7096
|
},
|
|
7104
7097
|
{
|
|
7105
7098
|
"kind": "field",
|
|
7106
|
-
"name": "
|
|
7099
|
+
"name": "sourceTextField",
|
|
7107
7100
|
"type": {
|
|
7108
|
-
"text": "
|
|
7109
|
-
}
|
|
7110
|
-
"default": "null"
|
|
7101
|
+
"text": "TextField"
|
|
7102
|
+
}
|
|
7111
7103
|
},
|
|
7112
7104
|
{
|
|
7113
7105
|
"kind": "field",
|
|
7114
|
-
"name": "
|
|
7106
|
+
"name": "sourceSelect",
|
|
7115
7107
|
"type": {
|
|
7116
|
-
"text": "
|
|
7117
|
-
}
|
|
7118
|
-
"default": "[]"
|
|
7108
|
+
"text": "Select"
|
|
7109
|
+
}
|
|
7119
7110
|
},
|
|
7120
7111
|
{
|
|
7121
7112
|
"kind": "field",
|
|
7122
|
-
"name": "
|
|
7113
|
+
"name": "reqRepItems",
|
|
7123
7114
|
"type": {
|
|
7124
|
-
"text": "
|
|
7115
|
+
"text": "array"
|
|
7125
7116
|
},
|
|
7126
|
-
"default": "[]"
|
|
7127
|
-
},
|
|
7128
|
-
{
|
|
7129
|
-
"kind": "method",
|
|
7130
|
-
"name": "deleteCondition"
|
|
7131
|
-
},
|
|
7132
|
-
{
|
|
7133
|
-
"kind": "method",
|
|
7134
|
-
"name": "conditionChanged"
|
|
7135
|
-
},
|
|
7136
|
-
{
|
|
7137
|
-
"kind": "method",
|
|
7138
|
-
"name": "joinOperatorChanged"
|
|
7139
|
-
},
|
|
7140
|
-
{
|
|
7141
|
-
"kind": "method",
|
|
7142
|
-
"name": "parametersChanged"
|
|
7143
|
-
},
|
|
7144
|
-
{
|
|
7145
|
-
"kind": "method",
|
|
7146
|
-
"name": "getMatchingParameter",
|
|
7147
|
-
"privacy": "private",
|
|
7148
|
-
"return": {
|
|
7149
|
-
"type": {
|
|
7150
|
-
"text": "ParameterBuilderEntity | undefined"
|
|
7151
|
-
}
|
|
7152
|
-
}
|
|
7153
|
-
},
|
|
7154
|
-
{
|
|
7155
|
-
"kind": "method",
|
|
7156
|
-
"name": "syncParameterBinding",
|
|
7157
|
-
"privacy": "private",
|
|
7158
|
-
"return": {
|
|
7159
|
-
"type": {
|
|
7160
|
-
"text": "boolean"
|
|
7161
|
-
}
|
|
7162
|
-
}
|
|
7163
|
-
},
|
|
7164
|
-
{
|
|
7165
|
-
"kind": "method",
|
|
7166
|
-
"name": "resetToValueEditor",
|
|
7167
|
-
"privacy": "private"
|
|
7168
|
-
},
|
|
7169
|
-
{
|
|
7170
|
-
"kind": "method",
|
|
7171
|
-
"name": "fieldsChanged"
|
|
7172
|
-
},
|
|
7173
|
-
{
|
|
7174
|
-
"kind": "method",
|
|
7175
|
-
"name": "logicalOperatorChanged"
|
|
7176
|
-
},
|
|
7177
|
-
{
|
|
7178
|
-
"kind": "method",
|
|
7179
|
-
"name": "assignLeftValue",
|
|
7180
|
-
"privacy": "private"
|
|
7117
|
+
"default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
|
|
7181
7118
|
},
|
|
7182
7119
|
{
|
|
7183
7120
|
"kind": "method",
|
|
7184
|
-
"name": "
|
|
7121
|
+
"name": "deleteParameter"
|
|
7185
7122
|
},
|
|
7186
7123
|
{
|
|
7187
7124
|
"kind": "method",
|
|
7188
|
-
"name": "
|
|
7189
|
-
"privacy": "private"
|
|
7125
|
+
"name": "parameterChanged"
|
|
7190
7126
|
},
|
|
7191
7127
|
{
|
|
7192
7128
|
"kind": "method",
|
|
7193
|
-
"name": "
|
|
7129
|
+
"name": "nameChanged"
|
|
7194
7130
|
},
|
|
7195
7131
|
{
|
|
7196
7132
|
"kind": "method",
|
|
7197
|
-
"name": "
|
|
7198
|
-
"privacy": "private"
|
|
7133
|
+
"name": "labelChanged"
|
|
7199
7134
|
},
|
|
7200
7135
|
{
|
|
7201
7136
|
"kind": "method",
|
|
7202
|
-
"name": "
|
|
7203
|
-
"privacy": "private"
|
|
7137
|
+
"name": "typeChanged"
|
|
7204
7138
|
},
|
|
7205
7139
|
{
|
|
7206
7140
|
"kind": "method",
|
|
7207
|
-
"name": "
|
|
7141
|
+
"name": "sourceTypeChanged"
|
|
7208
7142
|
},
|
|
7209
7143
|
{
|
|
7210
7144
|
"kind": "method",
|
|
7211
|
-
"name": "
|
|
7145
|
+
"name": "sourceSelectedChanged"
|
|
7212
7146
|
},
|
|
7213
7147
|
{
|
|
7214
7148
|
"kind": "method",
|
|
7215
|
-
"name": "
|
|
7149
|
+
"name": "sourceTypedChanged"
|
|
7216
7150
|
},
|
|
7217
7151
|
{
|
|
7218
7152
|
"kind": "method",
|
|
7219
|
-
"name": "
|
|
7220
|
-
"
|
|
7221
|
-
|
|
7222
|
-
|
|
7153
|
+
"name": "genericChanged",
|
|
7154
|
+
"privacy": "private",
|
|
7155
|
+
"parameters": [
|
|
7156
|
+
{
|
|
7157
|
+
"name": "parameterAttribute"
|
|
7158
|
+
},
|
|
7159
|
+
{
|
|
7160
|
+
"name": "value"
|
|
7223
7161
|
}
|
|
7224
|
-
|
|
7162
|
+
]
|
|
7225
7163
|
}
|
|
7226
7164
|
],
|
|
7227
7165
|
"events": [
|
|
7228
7166
|
{
|
|
7229
|
-
"description": "Fired when a
|
|
7167
|
+
"description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
|
|
7230
7168
|
"name": "delete"
|
|
7231
7169
|
},
|
|
7232
7170
|
{
|
|
7233
|
-
"description": "Fired when a
|
|
7171
|
+
"description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
|
|
7234
7172
|
"name": "edit"
|
|
7235
7173
|
}
|
|
7236
7174
|
],
|
|
7237
7175
|
"attributes": [
|
|
7238
7176
|
{
|
|
7239
|
-
"name": "
|
|
7240
|
-
"type": {
|
|
7241
|
-
"text": "ConditionBuilderEntity"
|
|
7242
|
-
},
|
|
7243
|
-
"fieldName": "condition"
|
|
7244
|
-
},
|
|
7245
|
-
{
|
|
7246
|
-
"name": "parameters",
|
|
7247
|
-
"type": {
|
|
7248
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
7249
|
-
},
|
|
7250
|
-
"default": "[]",
|
|
7251
|
-
"fieldName": "parameters"
|
|
7252
|
-
},
|
|
7253
|
-
{
|
|
7254
|
-
"name": "fields",
|
|
7177
|
+
"name": "parameter",
|
|
7255
7178
|
"type": {
|
|
7256
|
-
"text": "
|
|
7179
|
+
"text": "ParameterBuilderEntity"
|
|
7257
7180
|
},
|
|
7258
|
-
"
|
|
7259
|
-
"fieldName": "fields"
|
|
7181
|
+
"fieldName": "parameter"
|
|
7260
7182
|
}
|
|
7261
7183
|
],
|
|
7262
7184
|
"superclass": {
|
|
7263
7185
|
"name": "GenesisElement",
|
|
7264
7186
|
"package": "@genesislcap/web-core"
|
|
7265
7187
|
},
|
|
7266
|
-
"tagName": "
|
|
7188
|
+
"tagName": "parameter-builder",
|
|
7267
7189
|
"customElement": true
|
|
7268
7190
|
}
|
|
7269
7191
|
],
|
|
7270
7192
|
"exports": [
|
|
7271
7193
|
{
|
|
7272
7194
|
"kind": "js",
|
|
7273
|
-
"name": "
|
|
7195
|
+
"name": "ParameterBuilder",
|
|
7274
7196
|
"declaration": {
|
|
7275
|
-
"name": "
|
|
7276
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7197
|
+
"name": "ParameterBuilder",
|
|
7198
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7277
7199
|
}
|
|
7278
7200
|
},
|
|
7279
7201
|
{
|
|
7280
7202
|
"kind": "custom-element-definition",
|
|
7281
|
-
"name": "
|
|
7203
|
+
"name": "parameter-builder",
|
|
7282
7204
|
"declaration": {
|
|
7283
|
-
"name": "
|
|
7284
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7205
|
+
"name": "ParameterBuilder",
|
|
7206
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7285
7207
|
}
|
|
7286
7208
|
}
|
|
7287
7209
|
]
|
|
7288
7210
|
},
|
|
7289
7211
|
{
|
|
7290
7212
|
"kind": "javascript-module",
|
|
7291
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7213
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7292
7214
|
"declarations": [
|
|
7293
7215
|
{
|
|
7294
7216
|
"kind": "variable",
|
|
7295
|
-
"name": "
|
|
7296
|
-
"default": "
|
|
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`"
|
|
7297
7219
|
}
|
|
7298
7220
|
],
|
|
7299
7221
|
"exports": [
|
|
7300
7222
|
{
|
|
7301
7223
|
"kind": "js",
|
|
7302
|
-
"name": "
|
|
7224
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7303
7225
|
"declaration": {
|
|
7304
|
-
"name": "
|
|
7305
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7226
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7227
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7306
7228
|
}
|
|
7307
7229
|
}
|
|
7308
7230
|
]
|
|
7309
7231
|
},
|
|
7310
7232
|
{
|
|
7311
7233
|
"kind": "javascript-module",
|
|
7312
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
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",
|
|
7234
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7334
7235
|
"declarations": [
|
|
7335
7236
|
{
|
|
7336
7237
|
"kind": "class",
|
|
7337
|
-
"description": "
|
|
7338
|
-
"name": "
|
|
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",
|
|
7339
7240
|
"members": [
|
|
7340
7241
|
{
|
|
7341
7242
|
"kind": "field",
|
|
7342
|
-
"name": "
|
|
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",
|
|
7243
|
+
"name": "node",
|
|
7357
7244
|
"type": {
|
|
7358
|
-
"text": "
|
|
7245
|
+
"text": "ConditionGroupEntity"
|
|
7359
7246
|
}
|
|
7360
7247
|
},
|
|
7361
7248
|
{
|
|
7362
7249
|
"kind": "field",
|
|
7363
|
-
"name": "
|
|
7250
|
+
"name": "fields",
|
|
7364
7251
|
"type": {
|
|
7365
|
-
"text": "
|
|
7366
|
-
}
|
|
7252
|
+
"text": "Field[]"
|
|
7253
|
+
},
|
|
7254
|
+
"default": "[]"
|
|
7367
7255
|
},
|
|
7368
7256
|
{
|
|
7369
7257
|
"kind": "field",
|
|
7370
|
-
"name": "
|
|
7258
|
+
"name": "parameters",
|
|
7371
7259
|
"type": {
|
|
7372
|
-
"text": "
|
|
7373
|
-
}
|
|
7260
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7261
|
+
},
|
|
7262
|
+
"default": "[]"
|
|
7374
7263
|
},
|
|
7375
7264
|
{
|
|
7376
7265
|
"kind": "field",
|
|
7377
|
-
"name": "
|
|
7266
|
+
"name": "isFirst",
|
|
7378
7267
|
"type": {
|
|
7379
|
-
"text": "
|
|
7380
|
-
}
|
|
7268
|
+
"text": "boolean"
|
|
7269
|
+
},
|
|
7270
|
+
"default": "false"
|
|
7381
7271
|
},
|
|
7382
7272
|
{
|
|
7383
7273
|
"kind": "field",
|
|
7384
|
-
"name": "
|
|
7274
|
+
"name": "joinOperator",
|
|
7385
7275
|
"type": {
|
|
7386
7276
|
"text": "string"
|
|
7387
7277
|
}
|
|
7388
7278
|
},
|
|
7389
7279
|
{
|
|
7390
7280
|
"kind": "field",
|
|
7391
|
-
"name": "
|
|
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",
|
|
7281
|
+
"name": "groupChildren",
|
|
7406
7282
|
"type": {
|
|
7407
|
-
"text": "
|
|
7283
|
+
"text": "ConditionNode[]"
|
|
7408
7284
|
},
|
|
7409
|
-
"default": "[
|
|
7410
|
-
},
|
|
7411
|
-
{
|
|
7412
|
-
"kind": "method",
|
|
7413
|
-
"name": "deleteParameter"
|
|
7414
|
-
},
|
|
7415
|
-
{
|
|
7416
|
-
"kind": "method",
|
|
7417
|
-
"name": "parameterChanged"
|
|
7418
|
-
},
|
|
7419
|
-
{
|
|
7420
|
-
"kind": "method",
|
|
7421
|
-
"name": "nameChanged"
|
|
7285
|
+
"default": "[]"
|
|
7422
7286
|
},
|
|
7423
7287
|
{
|
|
7424
7288
|
"kind": "method",
|
|
7425
|
-
"name": "
|
|
7289
|
+
"name": "nodeChanged"
|
|
7426
7290
|
},
|
|
7427
7291
|
{
|
|
7428
7292
|
"kind": "method",
|
|
7429
|
-
"name": "
|
|
7293
|
+
"name": "joinOperatorChanged"
|
|
7430
7294
|
},
|
|
7431
7295
|
{
|
|
7432
7296
|
"kind": "method",
|
|
7433
|
-
"name": "
|
|
7297
|
+
"name": "newCondition"
|
|
7434
7298
|
},
|
|
7435
7299
|
{
|
|
7436
7300
|
"kind": "method",
|
|
7437
|
-
"name": "
|
|
7301
|
+
"name": "newGroup"
|
|
7438
7302
|
},
|
|
7439
7303
|
{
|
|
7440
7304
|
"kind": "method",
|
|
7441
|
-
"name": "
|
|
7305
|
+
"name": "editChild",
|
|
7306
|
+
"parameters": [
|
|
7307
|
+
{
|
|
7308
|
+
"name": "_editedChild",
|
|
7309
|
+
"type": {
|
|
7310
|
+
"text": "ConditionNode"
|
|
7311
|
+
}
|
|
7312
|
+
}
|
|
7313
|
+
]
|
|
7442
7314
|
},
|
|
7443
7315
|
{
|
|
7444
7316
|
"kind": "method",
|
|
7445
|
-
"name": "
|
|
7446
|
-
"privacy": "private",
|
|
7317
|
+
"name": "deleteChild",
|
|
7447
7318
|
"parameters": [
|
|
7448
7319
|
{
|
|
7449
|
-
"name": "
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7320
|
+
"name": "deletedChild",
|
|
7321
|
+
"type": {
|
|
7322
|
+
"text": "ConditionNode"
|
|
7323
|
+
}
|
|
7453
7324
|
}
|
|
7454
7325
|
]
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"kind": "method",
|
|
7329
|
+
"name": "deleteSelf"
|
|
7455
7330
|
}
|
|
7456
7331
|
],
|
|
7457
7332
|
"events": [
|
|
7458
7333
|
{
|
|
7459
|
-
"description": "Fired when
|
|
7334
|
+
"description": "Fired when this whole group should be removed",
|
|
7460
7335
|
"name": "delete"
|
|
7461
7336
|
},
|
|
7462
7337
|
{
|
|
7463
|
-
"description": "Fired when
|
|
7338
|
+
"description": "Fired when anything inside this group changes",
|
|
7464
7339
|
"name": "edit"
|
|
7465
7340
|
}
|
|
7466
7341
|
],
|
|
7467
|
-
"attributes": [
|
|
7468
|
-
{
|
|
7469
|
-
"name": "parameter",
|
|
7470
|
-
"type": {
|
|
7471
|
-
"text": "ParameterBuilderEntity"
|
|
7472
|
-
},
|
|
7473
|
-
"fieldName": "parameter"
|
|
7474
|
-
}
|
|
7475
|
-
],
|
|
7476
7342
|
"superclass": {
|
|
7477
7343
|
"name": "GenesisElement",
|
|
7478
7344
|
"package": "@genesislcap/web-core"
|
|
7479
7345
|
},
|
|
7480
|
-
"tagName": "
|
|
7346
|
+
"tagName": "template-condition-group",
|
|
7481
7347
|
"customElement": true
|
|
7482
7348
|
}
|
|
7483
7349
|
],
|
|
7484
7350
|
"exports": [
|
|
7485
7351
|
{
|
|
7486
7352
|
"kind": "js",
|
|
7487
|
-
"name": "
|
|
7353
|
+
"name": "TemplateConditionGroup",
|
|
7488
7354
|
"declaration": {
|
|
7489
|
-
"name": "
|
|
7490
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7355
|
+
"name": "TemplateConditionGroup",
|
|
7356
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7491
7357
|
}
|
|
7492
7358
|
},
|
|
7493
7359
|
{
|
|
7494
7360
|
"kind": "custom-element-definition",
|
|
7495
|
-
"name": "
|
|
7361
|
+
"name": "template-condition-group",
|
|
7496
7362
|
"declaration": {
|
|
7497
|
-
"name": "
|
|
7498
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7363
|
+
"name": "TemplateConditionGroup",
|
|
7364
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7499
7365
|
}
|
|
7500
7366
|
}
|
|
7501
7367
|
]
|
|
7502
7368
|
},
|
|
7503
7369
|
{
|
|
7504
7370
|
"kind": "javascript-module",
|
|
7505
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7371
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
7506
7372
|
"declarations": [
|
|
7507
7373
|
{
|
|
7508
7374
|
"kind": "variable",
|
|
7509
|
-
"name": "
|
|
7510
|
-
"default": "html<
|
|
7375
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7376
|
+
"default": "html<TemplateConditionBuilder>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
|
|
7511
7377
|
}
|
|
7512
7378
|
],
|
|
7513
7379
|
"exports": [
|
|
7514
7380
|
{
|
|
7515
7381
|
"kind": "js",
|
|
7516
|
-
"name": "
|
|
7382
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7517
7383
|
"declaration": {
|
|
7518
|
-
"name": "
|
|
7519
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7384
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7385
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
|
|
7520
7386
|
}
|
|
7521
7387
|
}
|
|
7522
7388
|
]
|
|
7523
7389
|
},
|
|
7524
7390
|
{
|
|
7525
7391
|
"kind": "javascript-module",
|
|
7526
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7392
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
|
|
7527
7393
|
"declarations": [
|
|
7528
7394
|
{
|
|
7529
7395
|
"kind": "class",
|
|
7530
|
-
"description": "
|
|
7531
|
-
"name": "
|
|
7396
|
+
"description": "Condition builder for template notification rules.",
|
|
7397
|
+
"name": "TemplateConditionBuilder",
|
|
7532
7398
|
"members": [
|
|
7533
7399
|
{
|
|
7534
7400
|
"kind": "field",
|
|
7535
|
-
"name": "
|
|
7401
|
+
"name": "condition",
|
|
7536
7402
|
"type": {
|
|
7537
|
-
"text": "
|
|
7403
|
+
"text": "ConditionBuilderEntity"
|
|
7538
7404
|
}
|
|
7539
7405
|
},
|
|
7540
7406
|
{
|
|
7541
7407
|
"kind": "field",
|
|
7542
|
-
"name": "
|
|
7408
|
+
"name": "parameters",
|
|
7543
7409
|
"type": {
|
|
7544
|
-
"text": "
|
|
7410
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7545
7411
|
},
|
|
7546
7412
|
"default": "[]"
|
|
7547
7413
|
},
|
|
7548
7414
|
{
|
|
7549
7415
|
"kind": "field",
|
|
7550
|
-
"name": "
|
|
7416
|
+
"name": "fields",
|
|
7551
7417
|
"type": {
|
|
7552
|
-
"text": "Array<
|
|
7418
|
+
"text": "Array<string>"
|
|
7553
7419
|
},
|
|
7554
7420
|
"default": "[]"
|
|
7555
7421
|
},
|
|
@@ -7570,90 +7436,224 @@
|
|
|
7570
7436
|
},
|
|
7571
7437
|
{
|
|
7572
7438
|
"kind": "field",
|
|
7573
|
-
"name": "
|
|
7439
|
+
"name": "leftValue",
|
|
7574
7440
|
"type": {
|
|
7575
|
-
"text": "
|
|
7441
|
+
"text": "any"
|
|
7442
|
+
},
|
|
7443
|
+
"default": "null"
|
|
7444
|
+
},
|
|
7445
|
+
{
|
|
7446
|
+
"kind": "field",
|
|
7447
|
+
"name": "leftValueItems",
|
|
7448
|
+
"type": {
|
|
7449
|
+
"text": "Array<any>"
|
|
7450
|
+
},
|
|
7451
|
+
"default": "[]"
|
|
7452
|
+
},
|
|
7453
|
+
{
|
|
7454
|
+
"kind": "field",
|
|
7455
|
+
"name": "logicalOperator",
|
|
7456
|
+
"type": {
|
|
7457
|
+
"text": "string"
|
|
7458
|
+
},
|
|
7459
|
+
"default": "null"
|
|
7460
|
+
},
|
|
7461
|
+
{
|
|
7462
|
+
"kind": "field",
|
|
7463
|
+
"name": "rightCriteria",
|
|
7464
|
+
"type": {
|
|
7465
|
+
"text": "string"
|
|
7466
|
+
}
|
|
7467
|
+
},
|
|
7468
|
+
{
|
|
7469
|
+
"kind": "field",
|
|
7470
|
+
"name": "rightValueText",
|
|
7471
|
+
"type": {
|
|
7472
|
+
"text": "string"
|
|
7473
|
+
},
|
|
7474
|
+
"default": "null"
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
"kind": "field",
|
|
7478
|
+
"name": "rightValueSelect",
|
|
7479
|
+
"type": {
|
|
7480
|
+
"text": "string"
|
|
7481
|
+
},
|
|
7482
|
+
"default": "null"
|
|
7483
|
+
},
|
|
7484
|
+
{
|
|
7485
|
+
"kind": "field",
|
|
7486
|
+
"name": "rightValueItems",
|
|
7487
|
+
"type": {
|
|
7488
|
+
"text": "Array<any>"
|
|
7489
|
+
},
|
|
7490
|
+
"default": "[]"
|
|
7491
|
+
},
|
|
7492
|
+
{
|
|
7493
|
+
"kind": "field",
|
|
7494
|
+
"name": "rightValueMultiSelect",
|
|
7495
|
+
"type": {
|
|
7496
|
+
"text": "string[]"
|
|
7576
7497
|
},
|
|
7577
7498
|
"default": "[]"
|
|
7578
7499
|
},
|
|
7579
7500
|
{
|
|
7580
7501
|
"kind": "method",
|
|
7581
|
-
"name": "
|
|
7502
|
+
"name": "deleteCondition"
|
|
7582
7503
|
},
|
|
7583
7504
|
{
|
|
7584
7505
|
"kind": "method",
|
|
7585
|
-
"name": "
|
|
7506
|
+
"name": "conditionChanged"
|
|
7586
7507
|
},
|
|
7587
7508
|
{
|
|
7588
7509
|
"kind": "method",
|
|
7589
|
-
"name": "
|
|
7510
|
+
"name": "joinOperatorChanged"
|
|
7590
7511
|
},
|
|
7591
7512
|
{
|
|
7592
7513
|
"kind": "method",
|
|
7593
|
-
"name": "
|
|
7514
|
+
"name": "parametersChanged"
|
|
7594
7515
|
},
|
|
7595
7516
|
{
|
|
7596
7517
|
"kind": "method",
|
|
7597
|
-
"name": "
|
|
7598
|
-
"
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
"
|
|
7602
|
-
"text": "ConditionNode"
|
|
7603
|
-
}
|
|
7518
|
+
"name": "getMatchingParameter",
|
|
7519
|
+
"privacy": "private",
|
|
7520
|
+
"return": {
|
|
7521
|
+
"type": {
|
|
7522
|
+
"text": "ParameterBuilderEntity | undefined"
|
|
7604
7523
|
}
|
|
7605
|
-
|
|
7524
|
+
}
|
|
7606
7525
|
},
|
|
7607
7526
|
{
|
|
7608
7527
|
"kind": "method",
|
|
7609
|
-
"name": "
|
|
7610
|
-
"
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
"
|
|
7614
|
-
"text": "ConditionNode"
|
|
7615
|
-
}
|
|
7528
|
+
"name": "syncParameterBinding",
|
|
7529
|
+
"privacy": "private",
|
|
7530
|
+
"return": {
|
|
7531
|
+
"type": {
|
|
7532
|
+
"text": "boolean"
|
|
7616
7533
|
}
|
|
7617
|
-
|
|
7534
|
+
}
|
|
7618
7535
|
},
|
|
7619
7536
|
{
|
|
7620
7537
|
"kind": "method",
|
|
7621
|
-
"name": "
|
|
7538
|
+
"name": "resetToValueEditor",
|
|
7539
|
+
"privacy": "private"
|
|
7540
|
+
},
|
|
7541
|
+
{
|
|
7542
|
+
"kind": "method",
|
|
7543
|
+
"name": "fieldsChanged"
|
|
7544
|
+
},
|
|
7545
|
+
{
|
|
7546
|
+
"kind": "method",
|
|
7547
|
+
"name": "logicalOperatorChanged"
|
|
7548
|
+
},
|
|
7549
|
+
{
|
|
7550
|
+
"kind": "method",
|
|
7551
|
+
"name": "assignLeftValue",
|
|
7552
|
+
"privacy": "private"
|
|
7553
|
+
},
|
|
7554
|
+
{
|
|
7555
|
+
"kind": "method",
|
|
7556
|
+
"name": "leftValueChanged"
|
|
7557
|
+
},
|
|
7558
|
+
{
|
|
7559
|
+
"kind": "method",
|
|
7560
|
+
"name": "assignRightValue",
|
|
7561
|
+
"privacy": "private"
|
|
7562
|
+
},
|
|
7563
|
+
{
|
|
7564
|
+
"kind": "method",
|
|
7565
|
+
"name": "rightCriteriaChanged"
|
|
7566
|
+
},
|
|
7567
|
+
{
|
|
7568
|
+
"kind": "method",
|
|
7569
|
+
"name": "clearRightValueText",
|
|
7570
|
+
"privacy": "private"
|
|
7571
|
+
},
|
|
7572
|
+
{
|
|
7573
|
+
"kind": "method",
|
|
7574
|
+
"name": "clearRightValueSelect",
|
|
7575
|
+
"privacy": "private"
|
|
7576
|
+
},
|
|
7577
|
+
{
|
|
7578
|
+
"kind": "method",
|
|
7579
|
+
"name": "rightValueTextChanged"
|
|
7580
|
+
},
|
|
7581
|
+
{
|
|
7582
|
+
"kind": "method",
|
|
7583
|
+
"name": "rightValueSelectChanged"
|
|
7584
|
+
},
|
|
7585
|
+
{
|
|
7586
|
+
"kind": "method",
|
|
7587
|
+
"name": "rightValueMultiSelectChanged"
|
|
7588
|
+
},
|
|
7589
|
+
{
|
|
7590
|
+
"kind": "method",
|
|
7591
|
+
"name": "getEnumValues",
|
|
7592
|
+
"return": {
|
|
7593
|
+
"type": {
|
|
7594
|
+
"text": "string[]"
|
|
7595
|
+
}
|
|
7596
|
+
}
|
|
7622
7597
|
}
|
|
7623
7598
|
],
|
|
7624
7599
|
"events": [
|
|
7625
7600
|
{
|
|
7626
|
-
"description": "Fired when
|
|
7601
|
+
"description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
|
|
7627
7602
|
"name": "delete"
|
|
7628
7603
|
},
|
|
7629
7604
|
{
|
|
7630
|
-
"description": "Fired when
|
|
7605
|
+
"description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
|
|
7631
7606
|
"name": "edit"
|
|
7632
7607
|
}
|
|
7633
7608
|
],
|
|
7609
|
+
"attributes": [
|
|
7610
|
+
{
|
|
7611
|
+
"name": "condition",
|
|
7612
|
+
"type": {
|
|
7613
|
+
"text": "ConditionBuilderEntity"
|
|
7614
|
+
},
|
|
7615
|
+
"fieldName": "condition"
|
|
7616
|
+
},
|
|
7617
|
+
{
|
|
7618
|
+
"name": "parameters",
|
|
7619
|
+
"type": {
|
|
7620
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7621
|
+
},
|
|
7622
|
+
"default": "[]",
|
|
7623
|
+
"fieldName": "parameters"
|
|
7624
|
+
},
|
|
7625
|
+
{
|
|
7626
|
+
"name": "fields",
|
|
7627
|
+
"type": {
|
|
7628
|
+
"text": "Array<string>"
|
|
7629
|
+
},
|
|
7630
|
+
"default": "[]",
|
|
7631
|
+
"fieldName": "fields"
|
|
7632
|
+
}
|
|
7633
|
+
],
|
|
7634
7634
|
"superclass": {
|
|
7635
7635
|
"name": "GenesisElement",
|
|
7636
7636
|
"package": "@genesislcap/web-core"
|
|
7637
7637
|
},
|
|
7638
|
-
"tagName": "template-condition-
|
|
7638
|
+
"tagName": "template-condition-builder",
|
|
7639
7639
|
"customElement": true
|
|
7640
7640
|
}
|
|
7641
7641
|
],
|
|
7642
7642
|
"exports": [
|
|
7643
7643
|
{
|
|
7644
7644
|
"kind": "js",
|
|
7645
|
-
"name": "
|
|
7645
|
+
"name": "TemplateConditionBuilder",
|
|
7646
7646
|
"declaration": {
|
|
7647
|
-
"name": "
|
|
7648
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7647
|
+
"name": "TemplateConditionBuilder",
|
|
7648
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
7649
7649
|
}
|
|
7650
7650
|
},
|
|
7651
7651
|
{
|
|
7652
7652
|
"kind": "custom-element-definition",
|
|
7653
|
-
"name": "template-condition-
|
|
7653
|
+
"name": "template-condition-builder",
|
|
7654
7654
|
"declaration": {
|
|
7655
|
-
"name": "
|
|
7656
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7655
|
+
"name": "TemplateConditionBuilder",
|
|
7656
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
7657
7657
|
}
|
|
7658
7658
|
}
|
|
7659
7659
|
]
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -247,17 +247,6 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
|
|
|
247
247
|
>;
|
|
248
248
|
export type RuleConditionGroupRef = RuleConditionGroupWC;
|
|
249
249
|
|
|
250
|
-
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
251
|
-
React.PropsWithChildren<
|
|
252
|
-
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
253
|
-
HTMLWCProps & {
|
|
254
|
-
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
255
|
-
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
256
|
-
}
|
|
257
|
-
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
258
|
-
>;
|
|
259
|
-
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
260
|
-
|
|
261
250
|
export declare const ParameterBuilder: React.ForwardRefExoticComponent<
|
|
262
251
|
React.PropsWithChildren<
|
|
263
252
|
Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
|
|
@@ -280,4 +269,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
|
|
|
280
269
|
>;
|
|
281
270
|
export type TemplateConditionGroupRef = TemplateConditionGroupWC;
|
|
282
271
|
|
|
272
|
+
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
273
|
+
React.PropsWithChildren<
|
|
274
|
+
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
275
|
+
HTMLWCProps & {
|
|
276
|
+
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
277
|
+
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
278
|
+
}
|
|
279
|
+
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
280
|
+
>;
|
|
281
|
+
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
282
|
+
|
|
283
283
|
export {};
|
package/dist/react.cjs
CHANGED
|
@@ -226,7 +226,7 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
|
|
|
226
226
|
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
const
|
|
229
|
+
const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
230
230
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
231
231
|
const _innerRef = React.useRef(null);
|
|
232
232
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -245,10 +245,10 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
|
|
|
245
245
|
el.removeEventListener('edit', _onEditFn);
|
|
246
246
|
};
|
|
247
247
|
}, []);
|
|
248
|
-
return React.createElement(customElements.getName(
|
|
248
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
const
|
|
251
|
+
const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
|
252
252
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
253
253
|
const _innerRef = React.useRef(null);
|
|
254
254
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -267,10 +267,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
|
|
|
267
267
|
el.removeEventListener('edit', _onEditFn);
|
|
268
268
|
};
|
|
269
269
|
}, []);
|
|
270
|
-
return React.createElement(customElements.getName(
|
|
270
|
+
return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
const
|
|
273
|
+
const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
274
274
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
275
275
|
const _innerRef = React.useRef(null);
|
|
276
276
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -289,7 +289,7 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
|
|
|
289
289
|
el.removeEventListener('edit', _onEditFn);
|
|
290
290
|
};
|
|
291
291
|
}, []);
|
|
292
|
-
return React.createElement(customElements.getName(
|
|
292
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
293
293
|
});
|
|
294
294
|
|
|
295
295
|
module.exports = {
|
|
@@ -313,7 +313,7 @@ module.exports = {
|
|
|
313
313
|
TemplateDialog,
|
|
314
314
|
RuleConditionBuilder,
|
|
315
315
|
RuleConditionGroup,
|
|
316
|
-
TemplateConditionBuilder,
|
|
317
316
|
ParameterBuilder,
|
|
318
317
|
TemplateConditionGroup,
|
|
318
|
+
TemplateConditionBuilder,
|
|
319
319
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -224,7 +224,7 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
|
|
|
224
224
|
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
export const
|
|
227
|
+
export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
228
228
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
229
229
|
const _innerRef = React.useRef(null);
|
|
230
230
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -243,10 +243,10 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
|
|
|
243
243
|
el.removeEventListener('edit', _onEditFn);
|
|
244
244
|
};
|
|
245
245
|
}, []);
|
|
246
|
-
return React.createElement(customElements.getName(
|
|
246
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
247
247
|
});
|
|
248
248
|
|
|
249
|
-
export const
|
|
249
|
+
export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
|
250
250
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
251
251
|
const _innerRef = React.useRef(null);
|
|
252
252
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -265,10 +265,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
|
|
|
265
265
|
el.removeEventListener('edit', _onEditFn);
|
|
266
266
|
};
|
|
267
267
|
}, []);
|
|
268
|
-
return React.createElement(customElements.getName(
|
|
268
|
+
return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
export const
|
|
271
|
+
export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
272
272
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
273
273
|
const _innerRef = React.useRef(null);
|
|
274
274
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -287,5 +287,5 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
|
|
|
287
287
|
el.removeEventListener('edit', _onEditFn);
|
|
288
288
|
};
|
|
289
289
|
}, []);
|
|
290
|
-
return React.createElement(customElements.getName(
|
|
290
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
291
291
|
});
|
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": "14.488.1
|
|
4
|
+
"version": "14.488.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -83,30 +83,30 @@
|
|
|
83
83
|
"@commitlint/format": "^19.0.3",
|
|
84
84
|
"@genesiscommunitysuccess/cep-fast-plugin": "5.0.3",
|
|
85
85
|
"@genesiscommunitysuccess/custom-elements-lsp": "5.0.3",
|
|
86
|
-
"@genesislcap/design-system-configurator": "14.488.1
|
|
87
|
-
"@genesislcap/eslint-config": "14.488.1
|
|
88
|
-
"@genesislcap/eslint-stylelint-builder": "14.488.1
|
|
89
|
-
"@genesislcap/foundation-testing": "14.488.1
|
|
90
|
-
"@genesislcap/genx": "14.488.1
|
|
91
|
-
"@genesislcap/prettier-config": "14.488.1
|
|
92
|
-
"@genesislcap/stylelint-config": "14.488.1
|
|
93
|
-
"@genesislcap/vite-builder": "14.488.1
|
|
94
|
-
"@genesislcap/webpack-builder": "14.488.1
|
|
86
|
+
"@genesislcap/design-system-configurator": "14.488.1",
|
|
87
|
+
"@genesislcap/eslint-config": "14.488.1",
|
|
88
|
+
"@genesislcap/eslint-stylelint-builder": "14.488.1",
|
|
89
|
+
"@genesislcap/foundation-testing": "14.488.1",
|
|
90
|
+
"@genesislcap/genx": "14.488.1",
|
|
91
|
+
"@genesislcap/prettier-config": "14.488.1",
|
|
92
|
+
"@genesislcap/stylelint-config": "14.488.1",
|
|
93
|
+
"@genesislcap/vite-builder": "14.488.1",
|
|
94
|
+
"@genesislcap/webpack-builder": "14.488.1",
|
|
95
95
|
"dayjs": "^1.11.7"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@genesislcap/foundation-comms": "14.488.1
|
|
99
|
-
"@genesislcap/foundation-criteria": "14.488.1
|
|
100
|
-
"@genesislcap/foundation-entity-management": "14.488.1
|
|
101
|
-
"@genesislcap/foundation-forms": "14.488.1
|
|
102
|
-
"@genesislcap/foundation-layout": "14.488.1
|
|
103
|
-
"@genesislcap/foundation-logger": "14.488.1
|
|
104
|
-
"@genesislcap/foundation-notifications": "14.488.1
|
|
105
|
-
"@genesislcap/foundation-ui": "14.488.1
|
|
106
|
-
"@genesislcap/foundation-utils": "14.488.1
|
|
107
|
-
"@genesislcap/rapid-design-system": "14.488.1
|
|
108
|
-
"@genesislcap/rapid-grid-pro": "14.488.1
|
|
109
|
-
"@genesislcap/web-core": "14.488.1
|
|
98
|
+
"@genesislcap/foundation-comms": "14.488.1",
|
|
99
|
+
"@genesislcap/foundation-criteria": "14.488.1",
|
|
100
|
+
"@genesislcap/foundation-entity-management": "14.488.1",
|
|
101
|
+
"@genesislcap/foundation-forms": "14.488.1",
|
|
102
|
+
"@genesislcap/foundation-layout": "14.488.1",
|
|
103
|
+
"@genesislcap/foundation-logger": "14.488.1",
|
|
104
|
+
"@genesislcap/foundation-notifications": "14.488.1",
|
|
105
|
+
"@genesislcap/foundation-ui": "14.488.1",
|
|
106
|
+
"@genesislcap/foundation-utils": "14.488.1",
|
|
107
|
+
"@genesislcap/rapid-design-system": "14.488.1",
|
|
108
|
+
"@genesislcap/rapid-grid-pro": "14.488.1",
|
|
109
|
+
"@genesislcap/web-core": "14.488.1",
|
|
110
110
|
"lodash.debounce": "^4.0.8",
|
|
111
111
|
"rxjs": "^7.5.4"
|
|
112
112
|
},
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"customElements": "dist/custom-elements.json",
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "59f08be328928035b4591fa97da580cc650f96c3"
|
|
118
118
|
}
|