@genesislcap/pbc-notify-ui 15.8.1-PTC-0.1 → 15.8.2

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.
@@ -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",
@@ -7172,46 +7322,54 @@
7172
7322
  },
7173
7323
  {
7174
7324
  "kind": "javascript-module",
7175
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
7325
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
7176
7326
  "declarations": [
7177
7327
  {
7178
7328
  "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`"
7329
+ "name": "TemplateConditionBuilderTemplate",
7330
+ "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`"
7181
7331
  }
7182
7332
  ],
7183
7333
  "exports": [
7184
7334
  {
7185
7335
  "kind": "js",
7186
- "name": "RuleConditionGroupTemplate",
7336
+ "name": "TemplateConditionBuilderTemplate",
7187
7337
  "declaration": {
7188
- "name": "RuleConditionGroupTemplate",
7189
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
7338
+ "name": "TemplateConditionBuilderTemplate",
7339
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
7190
7340
  }
7191
7341
  }
7192
7342
  ]
7193
7343
  },
7194
7344
  {
7195
7345
  "kind": "javascript-module",
7196
- "path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
7346
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
7197
7347
  "declarations": [
7198
7348
  {
7199
7349
  "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",
7350
+ "description": "Condition builder for template notification rules.",
7351
+ "name": "TemplateConditionBuilder",
7202
7352
  "members": [
7203
7353
  {
7204
7354
  "kind": "field",
7205
- "name": "node",
7355
+ "name": "condition",
7206
7356
  "type": {
7207
- "text": "ConditionGroupEntity"
7357
+ "text": "ConditionBuilderEntity"
7208
7358
  }
7209
7359
  },
7360
+ {
7361
+ "kind": "field",
7362
+ "name": "parameters",
7363
+ "type": {
7364
+ "text": "Array<ParameterBuilderEntity>"
7365
+ },
7366
+ "default": "[]"
7367
+ },
7210
7368
  {
7211
7369
  "kind": "field",
7212
7370
  "name": "fields",
7213
7371
  "type": {
7214
- "text": "Field[]"
7372
+ "text": "Array<string>"
7215
7373
  },
7216
7374
  "default": "[]"
7217
7375
  },
@@ -7232,90 +7390,224 @@
7232
7390
  },
7233
7391
  {
7234
7392
  "kind": "field",
7235
- "name": "groupChildren",
7393
+ "name": "leftValue",
7236
7394
  "type": {
7237
- "text": "ConditionNode[]"
7395
+ "text": "any"
7396
+ },
7397
+ "default": "null"
7398
+ },
7399
+ {
7400
+ "kind": "field",
7401
+ "name": "leftValueItems",
7402
+ "type": {
7403
+ "text": "Array<any>"
7238
7404
  },
7239
7405
  "default": "[]"
7240
7406
  },
7241
7407
  {
7242
- "kind": "method",
7243
- "name": "nodeChanged"
7408
+ "kind": "field",
7409
+ "name": "logicalOperator",
7410
+ "type": {
7411
+ "text": "string"
7412
+ },
7413
+ "default": "null"
7244
7414
  },
7245
7415
  {
7246
- "kind": "method",
7247
- "name": "joinOperatorChanged"
7416
+ "kind": "field",
7417
+ "name": "rightCriteria",
7418
+ "type": {
7419
+ "text": "string"
7420
+ }
7421
+ },
7422
+ {
7423
+ "kind": "field",
7424
+ "name": "rightValueText",
7425
+ "type": {
7426
+ "text": "string"
7427
+ },
7428
+ "default": "null"
7429
+ },
7430
+ {
7431
+ "kind": "field",
7432
+ "name": "rightValueSelect",
7433
+ "type": {
7434
+ "text": "string"
7435
+ },
7436
+ "default": "null"
7437
+ },
7438
+ {
7439
+ "kind": "field",
7440
+ "name": "rightValueItems",
7441
+ "type": {
7442
+ "text": "Array<any>"
7443
+ },
7444
+ "default": "[]"
7445
+ },
7446
+ {
7447
+ "kind": "field",
7448
+ "name": "rightValueMultiSelect",
7449
+ "type": {
7450
+ "text": "string[]"
7451
+ },
7452
+ "default": "[]"
7248
7453
  },
7249
7454
  {
7250
7455
  "kind": "method",
7251
- "name": "newCondition"
7456
+ "name": "deleteCondition"
7252
7457
  },
7253
7458
  {
7254
7459
  "kind": "method",
7255
- "name": "newGroup"
7460
+ "name": "conditionChanged"
7256
7461
  },
7257
7462
  {
7258
7463
  "kind": "method",
7259
- "name": "editChild",
7260
- "parameters": [
7261
- {
7262
- "name": "_editedChild",
7263
- "type": {
7264
- "text": "ConditionNode"
7265
- }
7266
- }
7267
- ]
7464
+ "name": "joinOperatorChanged"
7268
7465
  },
7269
7466
  {
7270
7467
  "kind": "method",
7271
- "name": "deleteChild",
7272
- "parameters": [
7273
- {
7274
- "name": "deletedChild",
7275
- "type": {
7276
- "text": "ConditionNode"
7277
- }
7468
+ "name": "parametersChanged"
7469
+ },
7470
+ {
7471
+ "kind": "method",
7472
+ "name": "getMatchingParameter",
7473
+ "privacy": "private",
7474
+ "return": {
7475
+ "type": {
7476
+ "text": "ParameterBuilderEntity | undefined"
7278
7477
  }
7279
- ]
7478
+ }
7280
7479
  },
7281
7480
  {
7282
7481
  "kind": "method",
7283
- "name": "deleteSelf"
7482
+ "name": "syncParameterBinding",
7483
+ "privacy": "private",
7484
+ "return": {
7485
+ "type": {
7486
+ "text": "boolean"
7487
+ }
7488
+ }
7489
+ },
7490
+ {
7491
+ "kind": "method",
7492
+ "name": "resetToValueEditor",
7493
+ "privacy": "private"
7494
+ },
7495
+ {
7496
+ "kind": "method",
7497
+ "name": "fieldsChanged"
7498
+ },
7499
+ {
7500
+ "kind": "method",
7501
+ "name": "logicalOperatorChanged"
7502
+ },
7503
+ {
7504
+ "kind": "method",
7505
+ "name": "assignLeftValue",
7506
+ "privacy": "private"
7507
+ },
7508
+ {
7509
+ "kind": "method",
7510
+ "name": "leftValueChanged"
7511
+ },
7512
+ {
7513
+ "kind": "method",
7514
+ "name": "assignRightValue",
7515
+ "privacy": "private"
7516
+ },
7517
+ {
7518
+ "kind": "method",
7519
+ "name": "rightCriteriaChanged"
7520
+ },
7521
+ {
7522
+ "kind": "method",
7523
+ "name": "clearRightValueText",
7524
+ "privacy": "private"
7525
+ },
7526
+ {
7527
+ "kind": "method",
7528
+ "name": "clearRightValueSelect",
7529
+ "privacy": "private"
7530
+ },
7531
+ {
7532
+ "kind": "method",
7533
+ "name": "rightValueTextChanged"
7534
+ },
7535
+ {
7536
+ "kind": "method",
7537
+ "name": "rightValueSelectChanged"
7538
+ },
7539
+ {
7540
+ "kind": "method",
7541
+ "name": "rightValueMultiSelectChanged"
7542
+ },
7543
+ {
7544
+ "kind": "method",
7545
+ "name": "getEnumValues",
7546
+ "return": {
7547
+ "type": {
7548
+ "text": "string[]"
7549
+ }
7550
+ }
7284
7551
  }
7285
7552
  ],
7286
7553
  "events": [
7287
7554
  {
7288
- "description": "Fired when this whole group should be removed",
7555
+ "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
7289
7556
  "name": "delete"
7290
7557
  },
7291
7558
  {
7292
- "description": "Fired when anything inside this group changes",
7559
+ "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
7293
7560
  "name": "edit"
7294
7561
  }
7295
7562
  ],
7563
+ "attributes": [
7564
+ {
7565
+ "name": "condition",
7566
+ "type": {
7567
+ "text": "ConditionBuilderEntity"
7568
+ },
7569
+ "fieldName": "condition"
7570
+ },
7571
+ {
7572
+ "name": "parameters",
7573
+ "type": {
7574
+ "text": "Array<ParameterBuilderEntity>"
7575
+ },
7576
+ "default": "[]",
7577
+ "fieldName": "parameters"
7578
+ },
7579
+ {
7580
+ "name": "fields",
7581
+ "type": {
7582
+ "text": "Array<string>"
7583
+ },
7584
+ "default": "[]",
7585
+ "fieldName": "fields"
7586
+ }
7587
+ ],
7296
7588
  "superclass": {
7297
7589
  "name": "GenesisElement",
7298
7590
  "package": "@genesislcap/web-core"
7299
7591
  },
7300
- "tagName": "rule-condition-group",
7592
+ "tagName": "template-condition-builder",
7301
7593
  "customElement": true
7302
7594
  }
7303
7595
  ],
7304
7596
  "exports": [
7305
7597
  {
7306
7598
  "kind": "js",
7307
- "name": "RuleConditionGroup",
7599
+ "name": "TemplateConditionBuilder",
7308
7600
  "declaration": {
7309
- "name": "RuleConditionGroup",
7310
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7601
+ "name": "TemplateConditionBuilder",
7602
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7311
7603
  }
7312
7604
  },
7313
7605
  {
7314
7606
  "kind": "custom-element-definition",
7315
- "name": "rule-condition-group",
7607
+ "name": "template-condition-builder",
7316
7608
  "declaration": {
7317
- "name": "RuleConditionGroup",
7318
- "module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
7609
+ "name": "TemplateConditionBuilder",
7610
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7319
7611
  }
7320
7612
  }
7321
7613
  ]
@@ -7691,298 +7983,6 @@
7691
7983
  }
7692
7984
  }
7693
7985
  ]
7694
- },
7695
- {
7696
- "kind": "javascript-module",
7697
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
7698
- "declarations": [
7699
- {
7700
- "kind": "variable",
7701
- "name": "TemplateConditionBuilderTemplate",
7702
- "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`"
7703
- }
7704
- ],
7705
- "exports": [
7706
- {
7707
- "kind": "js",
7708
- "name": "TemplateConditionBuilderTemplate",
7709
- "declaration": {
7710
- "name": "TemplateConditionBuilderTemplate",
7711
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
7712
- }
7713
- }
7714
- ]
7715
- },
7716
- {
7717
- "kind": "javascript-module",
7718
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
7719
- "declarations": [
7720
- {
7721
- "kind": "class",
7722
- "description": "Condition builder for template notification rules.",
7723
- "name": "TemplateConditionBuilder",
7724
- "members": [
7725
- {
7726
- "kind": "field",
7727
- "name": "condition",
7728
- "type": {
7729
- "text": "ConditionBuilderEntity"
7730
- }
7731
- },
7732
- {
7733
- "kind": "field",
7734
- "name": "parameters",
7735
- "type": {
7736
- "text": "Array<ParameterBuilderEntity>"
7737
- },
7738
- "default": "[]"
7739
- },
7740
- {
7741
- "kind": "field",
7742
- "name": "fields",
7743
- "type": {
7744
- "text": "Array<string>"
7745
- },
7746
- "default": "[]"
7747
- },
7748
- {
7749
- "kind": "field",
7750
- "name": "isFirst",
7751
- "type": {
7752
- "text": "boolean"
7753
- },
7754
- "default": "false"
7755
- },
7756
- {
7757
- "kind": "field",
7758
- "name": "joinOperator",
7759
- "type": {
7760
- "text": "string"
7761
- }
7762
- },
7763
- {
7764
- "kind": "field",
7765
- "name": "leftValue",
7766
- "type": {
7767
- "text": "any"
7768
- },
7769
- "default": "null"
7770
- },
7771
- {
7772
- "kind": "field",
7773
- "name": "leftValueItems",
7774
- "type": {
7775
- "text": "Array<any>"
7776
- },
7777
- "default": "[]"
7778
- },
7779
- {
7780
- "kind": "field",
7781
- "name": "logicalOperator",
7782
- "type": {
7783
- "text": "string"
7784
- },
7785
- "default": "null"
7786
- },
7787
- {
7788
- "kind": "field",
7789
- "name": "rightCriteria",
7790
- "type": {
7791
- "text": "string"
7792
- }
7793
- },
7794
- {
7795
- "kind": "field",
7796
- "name": "rightValueText",
7797
- "type": {
7798
- "text": "string"
7799
- },
7800
- "default": "null"
7801
- },
7802
- {
7803
- "kind": "field",
7804
- "name": "rightValueSelect",
7805
- "type": {
7806
- "text": "string"
7807
- },
7808
- "default": "null"
7809
- },
7810
- {
7811
- "kind": "field",
7812
- "name": "rightValueItems",
7813
- "type": {
7814
- "text": "Array<any>"
7815
- },
7816
- "default": "[]"
7817
- },
7818
- {
7819
- "kind": "field",
7820
- "name": "rightValueMultiSelect",
7821
- "type": {
7822
- "text": "string[]"
7823
- },
7824
- "default": "[]"
7825
- },
7826
- {
7827
- "kind": "method",
7828
- "name": "deleteCondition"
7829
- },
7830
- {
7831
- "kind": "method",
7832
- "name": "conditionChanged"
7833
- },
7834
- {
7835
- "kind": "method",
7836
- "name": "joinOperatorChanged"
7837
- },
7838
- {
7839
- "kind": "method",
7840
- "name": "parametersChanged"
7841
- },
7842
- {
7843
- "kind": "method",
7844
- "name": "getMatchingParameter",
7845
- "privacy": "private",
7846
- "return": {
7847
- "type": {
7848
- "text": "ParameterBuilderEntity | undefined"
7849
- }
7850
- }
7851
- },
7852
- {
7853
- "kind": "method",
7854
- "name": "syncParameterBinding",
7855
- "privacy": "private",
7856
- "return": {
7857
- "type": {
7858
- "text": "boolean"
7859
- }
7860
- }
7861
- },
7862
- {
7863
- "kind": "method",
7864
- "name": "resetToValueEditor",
7865
- "privacy": "private"
7866
- },
7867
- {
7868
- "kind": "method",
7869
- "name": "fieldsChanged"
7870
- },
7871
- {
7872
- "kind": "method",
7873
- "name": "logicalOperatorChanged"
7874
- },
7875
- {
7876
- "kind": "method",
7877
- "name": "assignLeftValue",
7878
- "privacy": "private"
7879
- },
7880
- {
7881
- "kind": "method",
7882
- "name": "leftValueChanged"
7883
- },
7884
- {
7885
- "kind": "method",
7886
- "name": "assignRightValue",
7887
- "privacy": "private"
7888
- },
7889
- {
7890
- "kind": "method",
7891
- "name": "rightCriteriaChanged"
7892
- },
7893
- {
7894
- "kind": "method",
7895
- "name": "clearRightValueText",
7896
- "privacy": "private"
7897
- },
7898
- {
7899
- "kind": "method",
7900
- "name": "clearRightValueSelect",
7901
- "privacy": "private"
7902
- },
7903
- {
7904
- "kind": "method",
7905
- "name": "rightValueTextChanged"
7906
- },
7907
- {
7908
- "kind": "method",
7909
- "name": "rightValueSelectChanged"
7910
- },
7911
- {
7912
- "kind": "method",
7913
- "name": "rightValueMultiSelectChanged"
7914
- },
7915
- {
7916
- "kind": "method",
7917
- "name": "getEnumValues",
7918
- "return": {
7919
- "type": {
7920
- "text": "string[]"
7921
- }
7922
- }
7923
- }
7924
- ],
7925
- "events": [
7926
- {
7927
- "description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
7928
- "name": "delete"
7929
- },
7930
- {
7931
- "description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
7932
- "name": "edit"
7933
- }
7934
- ],
7935
- "attributes": [
7936
- {
7937
- "name": "condition",
7938
- "type": {
7939
- "text": "ConditionBuilderEntity"
7940
- },
7941
- "fieldName": "condition"
7942
- },
7943
- {
7944
- "name": "parameters",
7945
- "type": {
7946
- "text": "Array<ParameterBuilderEntity>"
7947
- },
7948
- "default": "[]",
7949
- "fieldName": "parameters"
7950
- },
7951
- {
7952
- "name": "fields",
7953
- "type": {
7954
- "text": "Array<string>"
7955
- },
7956
- "default": "[]",
7957
- "fieldName": "fields"
7958
- }
7959
- ],
7960
- "superclass": {
7961
- "name": "GenesisElement",
7962
- "package": "@genesislcap/web-core"
7963
- },
7964
- "tagName": "template-condition-builder",
7965
- "customElement": true
7966
- }
7967
- ],
7968
- "exports": [
7969
- {
7970
- "kind": "js",
7971
- "name": "TemplateConditionBuilder",
7972
- "declaration": {
7973
- "name": "TemplateConditionBuilder",
7974
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7975
- }
7976
- },
7977
- {
7978
- "kind": "custom-element-definition",
7979
- "name": "template-condition-builder",
7980
- "declaration": {
7981
- "name": "TemplateConditionBuilder",
7982
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
7983
- }
7984
- }
7985
- ]
7986
7986
  }
7987
7987
  ]
7988
7988
  }
@@ -235,6 +235,17 @@ export declare const TemplateDialog: React.ForwardRefExoticComponent<
235
235
  >;
236
236
  export type TemplateDialogRef = TemplateDialogWC;
237
237
 
238
+ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
239
+ React.PropsWithChildren<
240
+ Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
241
+ HTMLWCProps & {
242
+ onDelete?: (event: CustomEvent<unknown>) => void;
243
+ onEdit?: (event: CustomEvent<unknown>) => void;
244
+ }
245
+ > & React.RefAttributes<RuleConditionGroupWC>
246
+ >;
247
+ export type RuleConditionGroupRef = RuleConditionGroupWC;
248
+
238
249
  export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
239
250
  React.PropsWithChildren<
240
251
  Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
@@ -246,16 +257,16 @@ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
246
257
  >;
247
258
  export type RuleConditionBuilderRef = RuleConditionBuilderWC;
248
259
 
249
- export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
260
+ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
250
261
  React.PropsWithChildren<
251
- Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
262
+ Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
252
263
  HTMLWCProps & {
253
- onDelete?: (event: CustomEvent<unknown>) => void;
254
- onEdit?: (event: CustomEvent<unknown>) => void;
264
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
265
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
255
266
  }
256
- > & React.RefAttributes<RuleConditionGroupWC>
267
+ > & React.RefAttributes<TemplateConditionBuilderWC>
257
268
  >;
258
- export type RuleConditionGroupRef = RuleConditionGroupWC;
269
+ export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
259
270
 
260
271
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
261
272
  React.PropsWithChildren<
@@ -279,15 +290,4 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
279
290
  >;
280
291
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
281
292
 
282
- export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
283
- React.PropsWithChildren<
284
- Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
285
- HTMLWCProps & {
286
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
287
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
288
- }
289
- > & React.RefAttributes<TemplateConditionBuilderWC>
290
- >;
291
- export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
292
-
293
293
  export {};
package/dist/react.cjs CHANGED
@@ -188,7 +188,7 @@ const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
188
188
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
189
189
  });
190
190
 
191
- const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
191
+ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
192
192
  const { onDelete, onEdit, children, ...rest } = props;
193
193
  const _innerRef = React.useRef(null);
194
194
  const _onDeleteRef = React.useRef(onDelete);
@@ -207,10 +207,10 @@ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(prop
207
207
  el.removeEventListener('edit', _onEditFn);
208
208
  };
209
209
  }, []);
210
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
210
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
211
211
  });
212
212
 
213
- const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
213
+ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
214
214
  const { onDelete, onEdit, children, ...rest } = props;
215
215
  const _innerRef = React.useRef(null);
216
216
  const _onDeleteRef = React.useRef(onDelete);
@@ -229,10 +229,10 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
229
229
  el.removeEventListener('edit', _onEditFn);
230
230
  };
231
231
  }, []);
232
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
232
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
233
233
  });
234
234
 
235
- const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
235
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
236
236
  const { onDelete, onEdit, children, ...rest } = props;
237
237
  const _innerRef = React.useRef(null);
238
238
  const _onDeleteRef = React.useRef(onDelete);
@@ -251,10 +251,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
251
251
  el.removeEventListener('edit', _onEditFn);
252
252
  };
253
253
  }, []);
254
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
254
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
255
255
  });
256
256
 
257
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
257
+ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
258
258
  const { onDelete, onEdit, children, ...rest } = props;
259
259
  const _innerRef = React.useRef(null);
260
260
  const _onDeleteRef = React.useRef(onDelete);
@@ -273,10 +273,10 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
273
273
  el.removeEventListener('edit', _onEditFn);
274
274
  };
275
275
  }, []);
276
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
276
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
277
277
  });
278
278
 
279
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
279
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
280
280
  const { onDelete, onEdit, children, ...rest } = props;
281
281
  const _innerRef = React.useRef(null);
282
282
  const _onDeleteRef = React.useRef(onDelete);
@@ -295,7 +295,7 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
295
295
  el.removeEventListener('edit', _onEditFn);
296
296
  };
297
297
  }, []);
298
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
298
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
299
299
  });
300
300
 
301
301
  module.exports = {
@@ -318,9 +318,9 @@ module.exports = {
318
318
  SlackRouteManagement,
319
319
  RuleDialog,
320
320
  TemplateDialog,
321
- RuleConditionBuilder,
322
321
  RuleConditionGroup,
322
+ RuleConditionBuilder,
323
+ TemplateConditionBuilder,
323
324
  ParameterBuilder,
324
325
  TemplateConditionGroup,
325
- TemplateConditionBuilder,
326
326
  };
package/dist/react.mjs CHANGED
@@ -186,7 +186,7 @@ export const TemplateDialog = React.forwardRef(function TemplateDialog(props, re
186
186
  return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
187
187
  });
188
188
 
189
- export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
189
+ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
190
190
  const { onDelete, onEdit, children, ...rest } = props;
191
191
  const _innerRef = React.useRef(null);
192
192
  const _onDeleteRef = React.useRef(onDelete);
@@ -205,10 +205,10 @@ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuild
205
205
  el.removeEventListener('edit', _onEditFn);
206
206
  };
207
207
  }, []);
208
- return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
208
+ return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
209
209
  });
210
210
 
211
- export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
211
+ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
212
212
  const { onDelete, onEdit, children, ...rest } = props;
213
213
  const _innerRef = React.useRef(null);
214
214
  const _onDeleteRef = React.useRef(onDelete);
@@ -227,10 +227,10 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
227
227
  el.removeEventListener('edit', _onEditFn);
228
228
  };
229
229
  }, []);
230
- return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
230
+ return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
231
231
  });
232
232
 
233
- export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
233
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
234
234
  const { onDelete, onEdit, children, ...rest } = props;
235
235
  const _innerRef = React.useRef(null);
236
236
  const _onDeleteRef = React.useRef(onDelete);
@@ -249,10 +249,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
249
249
  el.removeEventListener('edit', _onEditFn);
250
250
  };
251
251
  }, []);
252
- return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
252
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
253
253
  });
254
254
 
255
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
255
+ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
256
256
  const { onDelete, onEdit, children, ...rest } = props;
257
257
  const _innerRef = React.useRef(null);
258
258
  const _onDeleteRef = React.useRef(onDelete);
@@ -271,10 +271,10 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
271
271
  el.removeEventListener('edit', _onEditFn);
272
272
  };
273
273
  }, []);
274
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
274
+ return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
275
275
  });
276
276
 
277
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
277
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
278
278
  const { onDelete, onEdit, children, ...rest } = props;
279
279
  const _innerRef = React.useRef(null);
280
280
  const _onDeleteRef = React.useRef(onDelete);
@@ -293,5 +293,5 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
293
293
  el.removeEventListener('edit', _onEditFn);
294
294
  };
295
295
  }, []);
296
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
296
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
297
297
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "15.8.1-PTC-0.1",
4
+ "version": "15.8.2",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -81,30 +81,30 @@
81
81
  "@commitlint/cli": "^19.2.1",
82
82
  "@commitlint/config-conventional": "^19.1.0",
83
83
  "@commitlint/format": "^19.0.3",
84
- "@genesislcap/design-system-configurator": "15.8.1-PTC-0.1",
85
- "@genesislcap/eslint-config": "15.8.1-PTC-0.1",
86
- "@genesislcap/eslint-stylelint-builder": "15.8.1-PTC-0.1",
87
- "@genesislcap/foundation-testing": "15.8.1-PTC-0.1",
88
- "@genesislcap/genx": "15.8.1-PTC-0.1",
89
- "@genesislcap/prettier-config": "15.8.1-PTC-0.1",
90
- "@genesislcap/stylelint-config": "15.8.1-PTC-0.1",
91
- "@genesislcap/vite-builder": "15.8.1-PTC-0.1",
92
- "@genesislcap/webpack-builder": "15.8.1-PTC-0.1",
84
+ "@genesislcap/design-system-configurator": "15.8.2",
85
+ "@genesislcap/eslint-config": "15.8.2",
86
+ "@genesislcap/eslint-stylelint-builder": "15.8.2",
87
+ "@genesislcap/foundation-testing": "15.8.2",
88
+ "@genesislcap/genx": "15.8.2",
89
+ "@genesislcap/prettier-config": "15.8.2",
90
+ "@genesislcap/stylelint-config": "15.8.2",
91
+ "@genesislcap/vite-builder": "15.8.2",
92
+ "@genesislcap/webpack-builder": "15.8.2",
93
93
  "dayjs": "^1.11.7"
94
94
  },
95
95
  "dependencies": {
96
- "@genesislcap/foundation-comms": "15.8.1-PTC-0.1",
97
- "@genesislcap/foundation-criteria": "15.8.1-PTC-0.1",
98
- "@genesislcap/foundation-entity-management": "15.8.1-PTC-0.1",
99
- "@genesislcap/foundation-forms": "15.8.1-PTC-0.1",
100
- "@genesislcap/foundation-layout": "15.8.1-PTC-0.1",
101
- "@genesislcap/foundation-logger": "15.8.1-PTC-0.1",
102
- "@genesislcap/foundation-notifications": "15.8.1-PTC-0.1",
103
- "@genesislcap/foundation-ui": "15.8.1-PTC-0.1",
104
- "@genesislcap/foundation-utils": "15.8.1-PTC-0.1",
105
- "@genesislcap/rapid-design-system": "15.8.1-PTC-0.1",
106
- "@genesislcap/rapid-grid-pro": "15.8.1-PTC-0.1",
107
- "@genesislcap/web-core": "15.8.1-PTC-0.1",
96
+ "@genesislcap/foundation-comms": "15.8.2",
97
+ "@genesislcap/foundation-criteria": "15.8.2",
98
+ "@genesislcap/foundation-entity-management": "15.8.2",
99
+ "@genesislcap/foundation-forms": "15.8.2",
100
+ "@genesislcap/foundation-layout": "15.8.2",
101
+ "@genesislcap/foundation-logger": "15.8.2",
102
+ "@genesislcap/foundation-notifications": "15.8.2",
103
+ "@genesislcap/foundation-ui": "15.8.2",
104
+ "@genesislcap/foundation-utils": "15.8.2",
105
+ "@genesislcap/rapid-design-system": "15.8.2",
106
+ "@genesislcap/rapid-grid-pro": "15.8.2",
107
+ "@genesislcap/web-core": "15.8.2",
108
108
  "lodash.debounce": "^4.0.8",
109
109
  "rxjs": "^7.5.4"
110
110
  },
@@ -112,5 +112,5 @@
112
112
  "access": "public"
113
113
  },
114
114
  "customElements": "dist/custom-elements.json",
115
- "gitHead": "d3b158d9e91f31fc6a248b8b75d7c8f8d5589bc6"
115
+ "gitHead": "c62567e4acee7219798579d18a023be909bdd0a0"
116
116
  }