@genesislcap/pbc-notify-ui 15.5.0 → 15.6.1-ts7-migration.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.
Files changed (52) hide show
  1. package/dist/custom-elements.json +362 -362
  2. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  3. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
  4. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
  5. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
  7. package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
  8. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +1 -1
  9. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
  11. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
  12. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.d.ts.map +1 -1
  13. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
  14. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +2 -2
  15. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
  16. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
  18. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts.map +1 -1
  20. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.d.ts.map +1 -1
  21. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
  22. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts +2 -2
  23. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
  24. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
  25. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  26. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.utils.d.ts.map +1 -1
  27. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts +4 -4
  28. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts.map +1 -1
  29. package/dist/dts/react.d.ts +22 -22
  30. package/dist/dts/sandbox.d.ts.map +1 -1
  31. package/dist/dts/tsdoc-metadata.json +1 -1
  32. package/dist/dts/utils/gridConfig.d.ts +1 -1
  33. package/dist/dts/utils/gridConfig.d.ts.map +1 -1
  34. package/dist/dts/utils/humanize.d.ts.map +1 -1
  35. package/dist/dts/utils/notifyPermissions.d.ts.map +1 -1
  36. package/dist/dts/utils/toBoolean.d.ts.map +1 -1
  37. package/dist/dts/utils/updateArray.d.ts.map +1 -1
  38. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +2 -1
  39. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +3 -3
  40. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +4 -7
  41. package/dist/esm/components/foundation-inbox/inbox.template.js +1 -4
  42. package/dist/esm/components/foundation-inbox/inbox.utils.js +2 -1
  43. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +4 -3
  44. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +2 -1
  45. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +4 -3
  46. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.utils.js +4 -7
  47. package/dist/esm/index.federated.js +1 -0
  48. package/dist/pbc-notify-ui.api.json +17 -1
  49. package/dist/react.cjs +10 -10
  50. package/dist/react.mjs +8 -8
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +23 -25
@@ -6886,6 +6886,156 @@
6886
6886
  }
6887
6887
  ]
6888
6888
  },
6889
+ {
6890
+ "kind": "javascript-module",
6891
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
6892
+ "declarations": [
6893
+ {
6894
+ "kind": "variable",
6895
+ "name": "RuleConditionGroupTemplate",
6896
+ "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`"
6897
+ }
6898
+ ],
6899
+ "exports": [
6900
+ {
6901
+ "kind": "js",
6902
+ "name": "RuleConditionGroupTemplate",
6903
+ "declaration": {
6904
+ "name": "RuleConditionGroupTemplate",
6905
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
6906
+ }
6907
+ }
6908
+ ]
6909
+ },
6910
+ {
6911
+ "kind": "javascript-module",
6912
+ "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
6913
+ "declarations": [
6914
+ {
6915
+ "kind": "class",
6916
+ "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.",
6917
+ "name": "RuleConditionGroup",
6918
+ "members": [
6919
+ {
6920
+ "kind": "field",
6921
+ "name": "node",
6922
+ "type": {
6923
+ "text": "ConditionGroupEntity"
6924
+ }
6925
+ },
6926
+ {
6927
+ "kind": "field",
6928
+ "name": "fields",
6929
+ "type": {
6930
+ "text": "Field[]"
6931
+ },
6932
+ "default": "[]"
6933
+ },
6934
+ {
6935
+ "kind": "field",
6936
+ "name": "isFirst",
6937
+ "type": {
6938
+ "text": "boolean"
6939
+ },
6940
+ "default": "false"
6941
+ },
6942
+ {
6943
+ "kind": "field",
6944
+ "name": "joinOperator",
6945
+ "type": {
6946
+ "text": "string"
6947
+ }
6948
+ },
6949
+ {
6950
+ "kind": "field",
6951
+ "name": "groupChildren",
6952
+ "type": {
6953
+ "text": "ConditionNode[]"
6954
+ },
6955
+ "default": "[]"
6956
+ },
6957
+ {
6958
+ "kind": "method",
6959
+ "name": "nodeChanged"
6960
+ },
6961
+ {
6962
+ "kind": "method",
6963
+ "name": "joinOperatorChanged"
6964
+ },
6965
+ {
6966
+ "kind": "method",
6967
+ "name": "newCondition"
6968
+ },
6969
+ {
6970
+ "kind": "method",
6971
+ "name": "newGroup"
6972
+ },
6973
+ {
6974
+ "kind": "method",
6975
+ "name": "editChild",
6976
+ "parameters": [
6977
+ {
6978
+ "name": "_editedChild",
6979
+ "type": {
6980
+ "text": "ConditionNode"
6981
+ }
6982
+ }
6983
+ ]
6984
+ },
6985
+ {
6986
+ "kind": "method",
6987
+ "name": "deleteChild",
6988
+ "parameters": [
6989
+ {
6990
+ "name": "deletedChild",
6991
+ "type": {
6992
+ "text": "ConditionNode"
6993
+ }
6994
+ }
6995
+ ]
6996
+ },
6997
+ {
6998
+ "kind": "method",
6999
+ "name": "deleteSelf"
7000
+ }
7001
+ ],
7002
+ "events": [
7003
+ {
7004
+ "description": "Fired when this whole group should be removed",
7005
+ "name": "delete"
7006
+ },
7007
+ {
7008
+ "description": "Fired when anything inside this group changes",
7009
+ "name": "edit"
7010
+ }
7011
+ ],
7012
+ "superclass": {
7013
+ "name": "GenesisElement",
7014
+ "package": "@genesislcap/web-core"
7015
+ },
7016
+ "tagName": "rule-condition-group",
7017
+ "customElement": true
7018
+ }
7019
+ ],
7020
+ "exports": [
7021
+ {
7022
+ "kind": "js",
7023
+ "name": "RuleConditionGroup",
7024
+ "declaration": {
7025
+ "name": "RuleConditionGroup",
7026
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7027
+ }
7028
+ },
7029
+ {
7030
+ "kind": "custom-element-definition",
7031
+ "name": "rule-condition-group",
7032
+ "declaration": {
7033
+ "name": "RuleConditionGroup",
7034
+ "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7035
+ }
7036
+ }
7037
+ ]
7038
+ },
6889
7039
  {
6890
7040
  "kind": "javascript-module",
6891
7041
  "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
@@ -7170,156 +7320,6 @@
7170
7320
  "declarations": [],
7171
7321
  "exports": []
7172
7322
  },
7173
- {
7174
- "kind": "javascript-module",
7175
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
7176
- "declarations": [
7177
- {
7178
- "kind": "variable",
7179
- "name": "RuleConditionGroupTemplate",
7180
- "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`"
7181
- }
7182
- ],
7183
- "exports": [
7184
- {
7185
- "kind": "js",
7186
- "name": "RuleConditionGroupTemplate",
7187
- "declaration": {
7188
- "name": "RuleConditionGroupTemplate",
7189
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
7190
- }
7191
- }
7192
- ]
7193
- },
7194
- {
7195
- "kind": "javascript-module",
7196
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
7197
- "declarations": [
7198
- {
7199
- "kind": "class",
7200
- "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.",
7201
- "name": "RuleConditionGroup",
7202
- "members": [
7203
- {
7204
- "kind": "field",
7205
- "name": "node",
7206
- "type": {
7207
- "text": "ConditionGroupEntity"
7208
- }
7209
- },
7210
- {
7211
- "kind": "field",
7212
- "name": "fields",
7213
- "type": {
7214
- "text": "Field[]"
7215
- },
7216
- "default": "[]"
7217
- },
7218
- {
7219
- "kind": "field",
7220
- "name": "isFirst",
7221
- "type": {
7222
- "text": "boolean"
7223
- },
7224
- "default": "false"
7225
- },
7226
- {
7227
- "kind": "field",
7228
- "name": "joinOperator",
7229
- "type": {
7230
- "text": "string"
7231
- }
7232
- },
7233
- {
7234
- "kind": "field",
7235
- "name": "groupChildren",
7236
- "type": {
7237
- "text": "ConditionNode[]"
7238
- },
7239
- "default": "[]"
7240
- },
7241
- {
7242
- "kind": "method",
7243
- "name": "nodeChanged"
7244
- },
7245
- {
7246
- "kind": "method",
7247
- "name": "joinOperatorChanged"
7248
- },
7249
- {
7250
- "kind": "method",
7251
- "name": "newCondition"
7252
- },
7253
- {
7254
- "kind": "method",
7255
- "name": "newGroup"
7256
- },
7257
- {
7258
- "kind": "method",
7259
- "name": "editChild",
7260
- "parameters": [
7261
- {
7262
- "name": "_editedChild",
7263
- "type": {
7264
- "text": "ConditionNode"
7265
- }
7266
- }
7267
- ]
7268
- },
7269
- {
7270
- "kind": "method",
7271
- "name": "deleteChild",
7272
- "parameters": [
7273
- {
7274
- "name": "deletedChild",
7275
- "type": {
7276
- "text": "ConditionNode"
7277
- }
7278
- }
7279
- ]
7280
- },
7281
- {
7282
- "kind": "method",
7283
- "name": "deleteSelf"
7284
- }
7285
- ],
7286
- "events": [
7287
- {
7288
- "description": "Fired when this whole group should be removed",
7289
- "name": "delete"
7290
- },
7291
- {
7292
- "description": "Fired when anything inside this group changes",
7293
- "name": "edit"
7294
- }
7295
- ],
7296
- "superclass": {
7297
- "name": "GenesisElement",
7298
- "package": "@genesislcap/web-core"
7299
- },
7300
- "tagName": "rule-condition-group",
7301
- "customElement": true
7302
- }
7303
- ],
7304
- "exports": [
7305
- {
7306
- "kind": "js",
7307
- "name": "RuleConditionGroup",
7308
- "declaration": {
7309
- "name": "RuleConditionGroup",
7310
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7311
- }
7312
- },
7313
- {
7314
- "kind": "custom-element-definition",
7315
- "name": "rule-condition-group",
7316
- "declaration": {
7317
- "name": "RuleConditionGroup",
7318
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7319
- }
7320
- }
7321
- ]
7322
- },
7323
7323
  {
7324
7324
  "kind": "javascript-module",
7325
7325
  "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
@@ -7410,284 +7410,126 @@
7410
7410
  "kind": "field",
7411
7411
  "name": "sourceSelected",
7412
7412
  "type": {
7413
- "text": "string"
7414
- }
7415
- },
7416
- {
7417
- "kind": "field",
7418
- "name": "sourceTyped",
7419
- "type": {
7420
- "text": "string"
7421
- }
7422
- },
7423
- {
7424
- "kind": "field",
7425
- "name": "sourceTextField",
7426
- "type": {
7427
- "text": "TextField"
7428
- }
7429
- },
7430
- {
7431
- "kind": "field",
7432
- "name": "sourceSelect",
7433
- "type": {
7434
- "text": "Select"
7435
- }
7436
- },
7437
- {
7438
- "kind": "field",
7439
- "name": "reqRepItems",
7440
- "type": {
7441
- "text": "array"
7442
- },
7443
- "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7444
- },
7445
- {
7446
- "kind": "method",
7447
- "name": "deleteParameter"
7448
- },
7449
- {
7450
- "kind": "method",
7451
- "name": "parameterChanged"
7452
- },
7453
- {
7454
- "kind": "method",
7455
- "name": "nameChanged"
7456
- },
7457
- {
7458
- "kind": "method",
7459
- "name": "labelChanged"
7460
- },
7461
- {
7462
- "kind": "method",
7463
- "name": "typeChanged"
7464
- },
7465
- {
7466
- "kind": "method",
7467
- "name": "sourceTypeChanged"
7468
- },
7469
- {
7470
- "kind": "method",
7471
- "name": "sourceSelectedChanged"
7472
- },
7473
- {
7474
- "kind": "method",
7475
- "name": "sourceTypedChanged"
7476
- },
7477
- {
7478
- "kind": "method",
7479
- "name": "genericChanged",
7480
- "privacy": "private",
7481
- "parameters": [
7482
- {
7483
- "name": "parameterAttribute"
7484
- },
7485
- {
7486
- "name": "value"
7487
- }
7488
- ]
7489
- }
7490
- ],
7491
- "events": [
7492
- {
7493
- "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7494
- "name": "delete"
7495
- },
7496
- {
7497
- "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7498
- "name": "edit"
7499
- }
7500
- ],
7501
- "attributes": [
7502
- {
7503
- "name": "parameter",
7504
- "type": {
7505
- "text": "ParameterBuilderEntity"
7506
- },
7507
- "fieldName": "parameter"
7508
- }
7509
- ],
7510
- "superclass": {
7511
- "name": "GenesisElement",
7512
- "package": "@genesislcap/web-core"
7513
- },
7514
- "tagName": "parameter-builder",
7515
- "customElement": true
7516
- }
7517
- ],
7518
- "exports": [
7519
- {
7520
- "kind": "js",
7521
- "name": "ParameterBuilder",
7522
- "declaration": {
7523
- "name": "ParameterBuilder",
7524
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7525
- }
7526
- },
7527
- {
7528
- "kind": "custom-element-definition",
7529
- "name": "parameter-builder",
7530
- "declaration": {
7531
- "name": "ParameterBuilder",
7532
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7533
- }
7534
- }
7535
- ]
7536
- },
7537
- {
7538
- "kind": "javascript-module",
7539
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7540
- "declarations": [
7541
- {
7542
- "kind": "variable",
7543
- "name": "TemplateConditionGroupTemplate",
7544
- "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`"
7545
- }
7546
- ],
7547
- "exports": [
7548
- {
7549
- "kind": "js",
7550
- "name": "TemplateConditionGroupTemplate",
7551
- "declaration": {
7552
- "name": "TemplateConditionGroupTemplate",
7553
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7554
- }
7555
- }
7556
- ]
7557
- },
7558
- {
7559
- "kind": "javascript-module",
7560
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7561
- "declarations": [
7562
- {
7563
- "kind": "class",
7564
- "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.",
7565
- "name": "TemplateConditionGroup",
7566
- "members": [
7567
- {
7568
- "kind": "field",
7569
- "name": "node",
7570
- "type": {
7571
- "text": "ConditionGroupEntity"
7572
- }
7573
- },
7574
- {
7575
- "kind": "field",
7576
- "name": "fields",
7577
- "type": {
7578
- "text": "Field[]"
7579
- },
7580
- "default": "[]"
7413
+ "text": "string"
7414
+ }
7581
7415
  },
7582
7416
  {
7583
7417
  "kind": "field",
7584
- "name": "parameters",
7418
+ "name": "sourceTyped",
7585
7419
  "type": {
7586
- "text": "Array<ParameterBuilderEntity>"
7587
- },
7588
- "default": "[]"
7420
+ "text": "string"
7421
+ }
7589
7422
  },
7590
7423
  {
7591
7424
  "kind": "field",
7592
- "name": "isFirst",
7425
+ "name": "sourceTextField",
7593
7426
  "type": {
7594
- "text": "boolean"
7595
- },
7596
- "default": "false"
7427
+ "text": "TextField"
7428
+ }
7597
7429
  },
7598
7430
  {
7599
7431
  "kind": "field",
7600
- "name": "joinOperator",
7432
+ "name": "sourceSelect",
7601
7433
  "type": {
7602
- "text": "string"
7434
+ "text": "Select"
7603
7435
  }
7604
7436
  },
7605
7437
  {
7606
7438
  "kind": "field",
7607
- "name": "groupChildren",
7439
+ "name": "reqRepItems",
7608
7440
  "type": {
7609
- "text": "ConditionNode[]"
7441
+ "text": "array"
7610
7442
  },
7611
- "default": "[]"
7443
+ "default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
7612
7444
  },
7613
7445
  {
7614
7446
  "kind": "method",
7615
- "name": "nodeChanged"
7447
+ "name": "deleteParameter"
7616
7448
  },
7617
7449
  {
7618
7450
  "kind": "method",
7619
- "name": "joinOperatorChanged"
7451
+ "name": "parameterChanged"
7620
7452
  },
7621
7453
  {
7622
7454
  "kind": "method",
7623
- "name": "newCondition"
7455
+ "name": "nameChanged"
7624
7456
  },
7625
7457
  {
7626
7458
  "kind": "method",
7627
- "name": "newGroup"
7459
+ "name": "labelChanged"
7628
7460
  },
7629
7461
  {
7630
7462
  "kind": "method",
7631
- "name": "editChild",
7632
- "parameters": [
7633
- {
7634
- "name": "_editedChild",
7635
- "type": {
7636
- "text": "ConditionNode"
7637
- }
7638
- }
7639
- ]
7463
+ "name": "typeChanged"
7640
7464
  },
7641
7465
  {
7642
7466
  "kind": "method",
7643
- "name": "deleteChild",
7467
+ "name": "sourceTypeChanged"
7468
+ },
7469
+ {
7470
+ "kind": "method",
7471
+ "name": "sourceSelectedChanged"
7472
+ },
7473
+ {
7474
+ "kind": "method",
7475
+ "name": "sourceTypedChanged"
7476
+ },
7477
+ {
7478
+ "kind": "method",
7479
+ "name": "genericChanged",
7480
+ "privacy": "private",
7644
7481
  "parameters": [
7645
7482
  {
7646
- "name": "deletedChild",
7647
- "type": {
7648
- "text": "ConditionNode"
7649
- }
7483
+ "name": "parameterAttribute"
7484
+ },
7485
+ {
7486
+ "name": "value"
7650
7487
  }
7651
7488
  ]
7652
- },
7653
- {
7654
- "kind": "method",
7655
- "name": "deleteSelf"
7656
7489
  }
7657
7490
  ],
7658
7491
  "events": [
7659
7492
  {
7660
- "description": "Fired when this whole group should be removed",
7493
+ "description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
7661
7494
  "name": "delete"
7662
7495
  },
7663
7496
  {
7664
- "description": "Fired when anything inside this group changes",
7497
+ "description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
7665
7498
  "name": "edit"
7666
7499
  }
7667
7500
  ],
7501
+ "attributes": [
7502
+ {
7503
+ "name": "parameter",
7504
+ "type": {
7505
+ "text": "ParameterBuilderEntity"
7506
+ },
7507
+ "fieldName": "parameter"
7508
+ }
7509
+ ],
7668
7510
  "superclass": {
7669
7511
  "name": "GenesisElement",
7670
7512
  "package": "@genesislcap/web-core"
7671
7513
  },
7672
- "tagName": "template-condition-group",
7514
+ "tagName": "parameter-builder",
7673
7515
  "customElement": true
7674
7516
  }
7675
7517
  ],
7676
7518
  "exports": [
7677
7519
  {
7678
7520
  "kind": "js",
7679
- "name": "TemplateConditionGroup",
7521
+ "name": "ParameterBuilder",
7680
7522
  "declaration": {
7681
- "name": "TemplateConditionGroup",
7682
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7523
+ "name": "ParameterBuilder",
7524
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7683
7525
  }
7684
7526
  },
7685
7527
  {
7686
7528
  "kind": "custom-element-definition",
7687
- "name": "template-condition-group",
7529
+ "name": "parameter-builder",
7688
7530
  "declaration": {
7689
- "name": "TemplateConditionGroup",
7690
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7531
+ "name": "ParameterBuilder",
7532
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
7691
7533
  }
7692
7534
  }
7693
7535
  ]
@@ -7983,6 +7825,164 @@
7983
7825
  }
7984
7826
  }
7985
7827
  ]
7828
+ },
7829
+ {
7830
+ "kind": "javascript-module",
7831
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
7832
+ "declarations": [
7833
+ {
7834
+ "kind": "variable",
7835
+ "name": "TemplateConditionGroupTemplate",
7836
+ "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`"
7837
+ }
7838
+ ],
7839
+ "exports": [
7840
+ {
7841
+ "kind": "js",
7842
+ "name": "TemplateConditionGroupTemplate",
7843
+ "declaration": {
7844
+ "name": "TemplateConditionGroupTemplate",
7845
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
7846
+ }
7847
+ }
7848
+ ]
7849
+ },
7850
+ {
7851
+ "kind": "javascript-module",
7852
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
7853
+ "declarations": [
7854
+ {
7855
+ "kind": "class",
7856
+ "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.",
7857
+ "name": "TemplateConditionGroup",
7858
+ "members": [
7859
+ {
7860
+ "kind": "field",
7861
+ "name": "node",
7862
+ "type": {
7863
+ "text": "ConditionGroupEntity"
7864
+ }
7865
+ },
7866
+ {
7867
+ "kind": "field",
7868
+ "name": "fields",
7869
+ "type": {
7870
+ "text": "Field[]"
7871
+ },
7872
+ "default": "[]"
7873
+ },
7874
+ {
7875
+ "kind": "field",
7876
+ "name": "parameters",
7877
+ "type": {
7878
+ "text": "Array<ParameterBuilderEntity>"
7879
+ },
7880
+ "default": "[]"
7881
+ },
7882
+ {
7883
+ "kind": "field",
7884
+ "name": "isFirst",
7885
+ "type": {
7886
+ "text": "boolean"
7887
+ },
7888
+ "default": "false"
7889
+ },
7890
+ {
7891
+ "kind": "field",
7892
+ "name": "joinOperator",
7893
+ "type": {
7894
+ "text": "string"
7895
+ }
7896
+ },
7897
+ {
7898
+ "kind": "field",
7899
+ "name": "groupChildren",
7900
+ "type": {
7901
+ "text": "ConditionNode[]"
7902
+ },
7903
+ "default": "[]"
7904
+ },
7905
+ {
7906
+ "kind": "method",
7907
+ "name": "nodeChanged"
7908
+ },
7909
+ {
7910
+ "kind": "method",
7911
+ "name": "joinOperatorChanged"
7912
+ },
7913
+ {
7914
+ "kind": "method",
7915
+ "name": "newCondition"
7916
+ },
7917
+ {
7918
+ "kind": "method",
7919
+ "name": "newGroup"
7920
+ },
7921
+ {
7922
+ "kind": "method",
7923
+ "name": "editChild",
7924
+ "parameters": [
7925
+ {
7926
+ "name": "_editedChild",
7927
+ "type": {
7928
+ "text": "ConditionNode"
7929
+ }
7930
+ }
7931
+ ]
7932
+ },
7933
+ {
7934
+ "kind": "method",
7935
+ "name": "deleteChild",
7936
+ "parameters": [
7937
+ {
7938
+ "name": "deletedChild",
7939
+ "type": {
7940
+ "text": "ConditionNode"
7941
+ }
7942
+ }
7943
+ ]
7944
+ },
7945
+ {
7946
+ "kind": "method",
7947
+ "name": "deleteSelf"
7948
+ }
7949
+ ],
7950
+ "events": [
7951
+ {
7952
+ "description": "Fired when this whole group should be removed",
7953
+ "name": "delete"
7954
+ },
7955
+ {
7956
+ "description": "Fired when anything inside this group changes",
7957
+ "name": "edit"
7958
+ }
7959
+ ],
7960
+ "superclass": {
7961
+ "name": "GenesisElement",
7962
+ "package": "@genesislcap/web-core"
7963
+ },
7964
+ "tagName": "template-condition-group",
7965
+ "customElement": true
7966
+ }
7967
+ ],
7968
+ "exports": [
7969
+ {
7970
+ "kind": "js",
7971
+ "name": "TemplateConditionGroup",
7972
+ "declaration": {
7973
+ "name": "TemplateConditionGroup",
7974
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7975
+ }
7976
+ },
7977
+ {
7978
+ "kind": "custom-element-definition",
7979
+ "name": "template-condition-group",
7980
+ "declaration": {
7981
+ "name": "TemplateConditionGroup",
7982
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7983
+ }
7984
+ }
7985
+ ]
7986
7986
  }
7987
7987
  ]
7988
7988
  }