@genesislcap/pbc-notify-ui 15.6.0 → 15.6.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.
@@ -415,6 +415,27 @@
415
415
  }
416
416
  ]
417
417
  },
418
+ {
419
+ "kind": "javascript-module",
420
+ "path": "src/styles/scrollbar.styles.ts",
421
+ "declarations": [
422
+ {
423
+ "kind": "variable",
424
+ "name": "scrollbarStyles",
425
+ "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
426
+ }
427
+ ],
428
+ "exports": [
429
+ {
430
+ "kind": "js",
431
+ "name": "scrollbarStyles",
432
+ "declaration": {
433
+ "name": "scrollbarStyles",
434
+ "module": "src/styles/scrollbar.styles.ts"
435
+ }
436
+ }
437
+ ]
438
+ },
418
439
  {
419
440
  "kind": "javascript-module",
420
441
  "path": "src/utils/eventDetail.ts",
@@ -736,27 +757,6 @@
736
757
  }
737
758
  ]
738
759
  },
739
- {
740
- "kind": "javascript-module",
741
- "path": "src/styles/scrollbar.styles.ts",
742
- "declarations": [
743
- {
744
- "kind": "variable",
745
- "name": "scrollbarStyles",
746
- "default": "css`\n ::-webkit-scrollbar {\n width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-1);\n }\n\n ::-webkit-scrollbar-thumb {\n background: var(--neutral-fill-rest);\n }\n`"
747
- }
748
- ],
749
- "exports": [
750
- {
751
- "kind": "js",
752
- "name": "scrollbarStyles",
753
- "declaration": {
754
- "name": "scrollbarStyles",
755
- "module": "src/styles/scrollbar.styles.ts"
756
- }
757
- }
758
- ]
759
- },
760
760
  {
761
761
  "kind": "javascript-module",
762
762
  "path": "src/components/foundation-inbox/inbox.styles.ts",
@@ -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,236 +7322,86 @@
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/parameter-builder/parameter-builder.styles.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": "ParameterBuilderStyles",
7330
+ "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`"
7181
7331
  }
7182
7332
  ],
7183
7333
  "exports": [
7184
7334
  {
7185
7335
  "kind": "js",
7186
- "name": "RuleConditionGroupTemplate",
7336
+ "name": "ParameterBuilderStyles",
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": "ParameterBuilderStyles",
7339
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.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/parameter-builder/parameter-builder.template.ts",
7347
+ "declarations": [
7348
+ {
7349
+ "kind": "variable",
7350
+ "name": "ParameterBuilderTemplate",
7351
+ "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`"
7352
+ }
7353
+ ],
7354
+ "exports": [
7355
+ {
7356
+ "kind": "js",
7357
+ "name": "ParameterBuilderTemplate",
7358
+ "declaration": {
7359
+ "name": "ParameterBuilderTemplate",
7360
+ "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
7361
+ }
7362
+ }
7363
+ ]
7364
+ },
7365
+ {
7366
+ "kind": "javascript-module",
7367
+ "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
7197
7368
  "declarations": [
7198
7369
  {
7199
7370
  "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",
7371
+ "description": "Parameter builder for notification templates.",
7372
+ "name": "ParameterBuilder",
7202
7373
  "members": [
7203
7374
  {
7204
7375
  "kind": "field",
7205
- "name": "node",
7376
+ "name": "parameter",
7206
7377
  "type": {
7207
- "text": "ConditionGroupEntity"
7378
+ "text": "ParameterBuilderEntity"
7208
7379
  }
7209
7380
  },
7210
7381
  {
7211
7382
  "kind": "field",
7212
- "name": "fields",
7383
+ "name": "name",
7213
7384
  "type": {
7214
- "text": "Field[]"
7215
- },
7216
- "default": "[]"
7385
+ "text": "string"
7386
+ }
7217
7387
  },
7218
7388
  {
7219
7389
  "kind": "field",
7220
- "name": "isFirst",
7390
+ "name": "label",
7221
7391
  "type": {
7222
- "text": "boolean"
7223
- },
7224
- "default": "false"
7392
+ "text": "string"
7393
+ }
7225
7394
  },
7226
7395
  {
7227
7396
  "kind": "field",
7228
- "name": "joinOperator",
7397
+ "name": "type",
7229
7398
  "type": {
7230
7399
  "text": "string"
7231
7400
  }
7232
7401
  },
7233
7402
  {
7234
7403
  "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
- {
7324
- "kind": "javascript-module",
7325
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
7326
- "declarations": [
7327
- {
7328
- "kind": "variable",
7329
- "name": "ParameterBuilderStyles",
7330
- "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`"
7331
- }
7332
- ],
7333
- "exports": [
7334
- {
7335
- "kind": "js",
7336
- "name": "ParameterBuilderStyles",
7337
- "declaration": {
7338
- "name": "ParameterBuilderStyles",
7339
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
7340
- }
7341
- }
7342
- ]
7343
- },
7344
- {
7345
- "kind": "javascript-module",
7346
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
7347
- "declarations": [
7348
- {
7349
- "kind": "variable",
7350
- "name": "ParameterBuilderTemplate",
7351
- "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`"
7352
- }
7353
- ],
7354
- "exports": [
7355
- {
7356
- "kind": "js",
7357
- "name": "ParameterBuilderTemplate",
7358
- "declaration": {
7359
- "name": "ParameterBuilderTemplate",
7360
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
7361
- }
7362
- }
7363
- ]
7364
- },
7365
- {
7366
- "kind": "javascript-module",
7367
- "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
7368
- "declarations": [
7369
- {
7370
- "kind": "class",
7371
- "description": "Parameter builder for notification templates.",
7372
- "name": "ParameterBuilder",
7373
- "members": [
7374
- {
7375
- "kind": "field",
7376
- "name": "parameter",
7377
- "type": {
7378
- "text": "ParameterBuilderEntity"
7379
- }
7380
- },
7381
- {
7382
- "kind": "field",
7383
- "name": "name",
7384
- "type": {
7385
- "text": "string"
7386
- }
7387
- },
7388
- {
7389
- "kind": "field",
7390
- "name": "label",
7391
- "type": {
7392
- "text": "string"
7393
- }
7394
- },
7395
- {
7396
- "kind": "field",
7397
- "name": "type",
7398
- "type": {
7399
- "text": "string"
7400
- }
7401
- },
7402
- {
7403
- "kind": "field",
7404
- "name": "sourceType",
7404
+ "name": "sourceType",
7405
7405
  "type": {
7406
7406
  "text": "string"
7407
7407
  }
@@ -7534,164 +7534,6 @@
7534
7534
  }
7535
7535
  ]
7536
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": "[]"
7581
- },
7582
- {
7583
- "kind": "field",
7584
- "name": "parameters",
7585
- "type": {
7586
- "text": "Array<ParameterBuilderEntity>"
7587
- },
7588
- "default": "[]"
7589
- },
7590
- {
7591
- "kind": "field",
7592
- "name": "isFirst",
7593
- "type": {
7594
- "text": "boolean"
7595
- },
7596
- "default": "false"
7597
- },
7598
- {
7599
- "kind": "field",
7600
- "name": "joinOperator",
7601
- "type": {
7602
- "text": "string"
7603
- }
7604
- },
7605
- {
7606
- "kind": "field",
7607
- "name": "groupChildren",
7608
- "type": {
7609
- "text": "ConditionNode[]"
7610
- },
7611
- "default": "[]"
7612
- },
7613
- {
7614
- "kind": "method",
7615
- "name": "nodeChanged"
7616
- },
7617
- {
7618
- "kind": "method",
7619
- "name": "joinOperatorChanged"
7620
- },
7621
- {
7622
- "kind": "method",
7623
- "name": "newCondition"
7624
- },
7625
- {
7626
- "kind": "method",
7627
- "name": "newGroup"
7628
- },
7629
- {
7630
- "kind": "method",
7631
- "name": "editChild",
7632
- "parameters": [
7633
- {
7634
- "name": "_editedChild",
7635
- "type": {
7636
- "text": "ConditionNode"
7637
- }
7638
- }
7639
- ]
7640
- },
7641
- {
7642
- "kind": "method",
7643
- "name": "deleteChild",
7644
- "parameters": [
7645
- {
7646
- "name": "deletedChild",
7647
- "type": {
7648
- "text": "ConditionNode"
7649
- }
7650
- }
7651
- ]
7652
- },
7653
- {
7654
- "kind": "method",
7655
- "name": "deleteSelf"
7656
- }
7657
- ],
7658
- "events": [
7659
- {
7660
- "description": "Fired when this whole group should be removed",
7661
- "name": "delete"
7662
- },
7663
- {
7664
- "description": "Fired when anything inside this group changes",
7665
- "name": "edit"
7666
- }
7667
- ],
7668
- "superclass": {
7669
- "name": "GenesisElement",
7670
- "package": "@genesislcap/web-core"
7671
- },
7672
- "tagName": "template-condition-group",
7673
- "customElement": true
7674
- }
7675
- ],
7676
- "exports": [
7677
- {
7678
- "kind": "js",
7679
- "name": "TemplateConditionGroup",
7680
- "declaration": {
7681
- "name": "TemplateConditionGroup",
7682
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7683
- }
7684
- },
7685
- {
7686
- "kind": "custom-element-definition",
7687
- "name": "template-condition-group",
7688
- "declaration": {
7689
- "name": "TemplateConditionGroup",
7690
- "module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
7691
- }
7692
- }
7693
- ]
7694
- },
7695
7537
  {
7696
7538
  "kind": "javascript-module",
7697
7539
  "path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
@@ -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
  }
@@ -235,17 +235,6 @@ export declare const TemplateDialog: React.ForwardRefExoticComponent<
235
235
  >;
236
236
  export type TemplateDialogRef = TemplateDialogWC;
237
237
 
238
- export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
239
- React.PropsWithChildren<
240
- Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
241
- HTMLWCProps & {
242
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
243
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
244
- }
245
- > & React.RefAttributes<RuleConditionBuilderWC>
246
- >;
247
- export type RuleConditionBuilderRef = RuleConditionBuilderWC;
248
-
249
238
  export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
250
239
  React.PropsWithChildren<
251
240
  Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
@@ -257,6 +246,17 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
257
246
  >;
258
247
  export type RuleConditionGroupRef = RuleConditionGroupWC;
259
248
 
249
+ export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
250
+ React.PropsWithChildren<
251
+ Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
252
+ HTMLWCProps & {
253
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
254
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
255
+ }
256
+ > & React.RefAttributes<RuleConditionBuilderWC>
257
+ >;
258
+ export type RuleConditionBuilderRef = RuleConditionBuilderWC;
259
+
260
260
  export declare const ParameterBuilder: React.ForwardRefExoticComponent<
261
261
  React.PropsWithChildren<
262
262
  Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
@@ -268,17 +268,6 @@ export declare const ParameterBuilder: React.ForwardRefExoticComponent<
268
268
  >;
269
269
  export type ParameterBuilderRef = ParameterBuilderWC;
270
270
 
271
- export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
272
- React.PropsWithChildren<
273
- Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
274
- HTMLWCProps & {
275
- onDelete?: (event: CustomEvent<unknown>) => void;
276
- onEdit?: (event: CustomEvent<unknown>) => void;
277
- }
278
- > & React.RefAttributes<TemplateConditionGroupWC>
279
- >;
280
- export type TemplateConditionGroupRef = TemplateConditionGroupWC;
281
-
282
271
  export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
283
272
  React.PropsWithChildren<
284
273
  Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
@@ -290,4 +279,15 @@ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
290
279
  >;
291
280
  export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
292
281
 
282
+ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
283
+ React.PropsWithChildren<
284
+ Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
285
+ HTMLWCProps & {
286
+ onDelete?: (event: CustomEvent<unknown>) => void;
287
+ onEdit?: (event: CustomEvent<unknown>) => void;
288
+ }
289
+ > & React.RefAttributes<TemplateConditionGroupWC>
290
+ >;
291
+ export type TemplateConditionGroupRef = TemplateConditionGroupWC;
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,7 +229,7 @@ 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
235
  const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
@@ -254,7 +254,7 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
254
254
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
255
255
  });
256
256
 
257
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
257
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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(TemplateConditionBuilderWC) ?? 'template-condition-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
323
  ParameterBuilder,
324
- TemplateConditionGroup,
325
324
  TemplateConditionBuilder,
325
+ TemplateConditionGroup,
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,7 +227,7 @@ 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
233
  export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
@@ -252,7 +252,7 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
252
252
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
253
253
  });
254
254
 
255
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
255
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(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(TemplateConditionBuilderWC) ?? 'template-condition-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.6.0",
4
+ "version": "15.6.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": "15.6.0",
87
- "@genesislcap/eslint-config": "15.6.0",
88
- "@genesislcap/eslint-stylelint-builder": "15.6.0",
89
- "@genesislcap/foundation-testing": "15.6.0",
90
- "@genesislcap/genx": "15.6.0",
91
- "@genesislcap/prettier-config": "15.6.0",
92
- "@genesislcap/stylelint-config": "15.6.0",
93
- "@genesislcap/vite-builder": "15.6.0",
94
- "@genesislcap/webpack-builder": "15.6.0",
86
+ "@genesislcap/design-system-configurator": "15.6.1",
87
+ "@genesislcap/eslint-config": "15.6.1",
88
+ "@genesislcap/eslint-stylelint-builder": "15.6.1",
89
+ "@genesislcap/foundation-testing": "15.6.1",
90
+ "@genesislcap/genx": "15.6.1",
91
+ "@genesislcap/prettier-config": "15.6.1",
92
+ "@genesislcap/stylelint-config": "15.6.1",
93
+ "@genesislcap/vite-builder": "15.6.1",
94
+ "@genesislcap/webpack-builder": "15.6.1",
95
95
  "dayjs": "^1.11.7"
96
96
  },
97
97
  "dependencies": {
98
- "@genesislcap/foundation-comms": "15.6.0",
99
- "@genesislcap/foundation-criteria": "15.6.0",
100
- "@genesislcap/foundation-entity-management": "15.6.0",
101
- "@genesislcap/foundation-forms": "15.6.0",
102
- "@genesislcap/foundation-layout": "15.6.0",
103
- "@genesislcap/foundation-logger": "15.6.0",
104
- "@genesislcap/foundation-notifications": "15.6.0",
105
- "@genesislcap/foundation-ui": "15.6.0",
106
- "@genesislcap/foundation-utils": "15.6.0",
107
- "@genesislcap/rapid-design-system": "15.6.0",
108
- "@genesislcap/rapid-grid-pro": "15.6.0",
109
- "@genesislcap/web-core": "15.6.0",
98
+ "@genesislcap/foundation-comms": "15.6.1",
99
+ "@genesislcap/foundation-criteria": "15.6.1",
100
+ "@genesislcap/foundation-entity-management": "15.6.1",
101
+ "@genesislcap/foundation-forms": "15.6.1",
102
+ "@genesislcap/foundation-layout": "15.6.1",
103
+ "@genesislcap/foundation-logger": "15.6.1",
104
+ "@genesislcap/foundation-notifications": "15.6.1",
105
+ "@genesislcap/foundation-ui": "15.6.1",
106
+ "@genesislcap/foundation-utils": "15.6.1",
107
+ "@genesislcap/rapid-design-system": "15.6.1",
108
+ "@genesislcap/rapid-grid-pro": "15.6.1",
109
+ "@genesislcap/web-core": "15.6.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": "dbf070bac8a4bfc2a178e335b1faffb130e8f761"
117
+ "gitHead": "9139f6649cfbd67d5f940b7e02c04f7970ad45a5"
118
118
  }