@genesislcap/pbc-notify-ui 15.1.0 → 15.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +158 -158
- package/dist/dts/react.d.ts +11 -11
- package/dist/react.cjs +5 -5
- package/dist/react.mjs +4 -4
- package/package.json +23 -23
|
@@ -7499,6 +7499,164 @@
|
|
|
7499
7499
|
}
|
|
7500
7500
|
]
|
|
7501
7501
|
},
|
|
7502
|
+
{
|
|
7503
|
+
"kind": "javascript-module",
|
|
7504
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7505
|
+
"declarations": [
|
|
7506
|
+
{
|
|
7507
|
+
"kind": "variable",
|
|
7508
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7509
|
+
"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`"
|
|
7510
|
+
}
|
|
7511
|
+
],
|
|
7512
|
+
"exports": [
|
|
7513
|
+
{
|
|
7514
|
+
"kind": "js",
|
|
7515
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7516
|
+
"declaration": {
|
|
7517
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7518
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7521
|
+
]
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"kind": "javascript-module",
|
|
7525
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7526
|
+
"declarations": [
|
|
7527
|
+
{
|
|
7528
|
+
"kind": "class",
|
|
7529
|
+
"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.",
|
|
7530
|
+
"name": "TemplateConditionGroup",
|
|
7531
|
+
"members": [
|
|
7532
|
+
{
|
|
7533
|
+
"kind": "field",
|
|
7534
|
+
"name": "node",
|
|
7535
|
+
"type": {
|
|
7536
|
+
"text": "ConditionGroupEntity"
|
|
7537
|
+
}
|
|
7538
|
+
},
|
|
7539
|
+
{
|
|
7540
|
+
"kind": "field",
|
|
7541
|
+
"name": "fields",
|
|
7542
|
+
"type": {
|
|
7543
|
+
"text": "Field[]"
|
|
7544
|
+
},
|
|
7545
|
+
"default": "[]"
|
|
7546
|
+
},
|
|
7547
|
+
{
|
|
7548
|
+
"kind": "field",
|
|
7549
|
+
"name": "parameters",
|
|
7550
|
+
"type": {
|
|
7551
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7552
|
+
},
|
|
7553
|
+
"default": "[]"
|
|
7554
|
+
},
|
|
7555
|
+
{
|
|
7556
|
+
"kind": "field",
|
|
7557
|
+
"name": "isFirst",
|
|
7558
|
+
"type": {
|
|
7559
|
+
"text": "boolean"
|
|
7560
|
+
},
|
|
7561
|
+
"default": "false"
|
|
7562
|
+
},
|
|
7563
|
+
{
|
|
7564
|
+
"kind": "field",
|
|
7565
|
+
"name": "joinOperator",
|
|
7566
|
+
"type": {
|
|
7567
|
+
"text": "string"
|
|
7568
|
+
}
|
|
7569
|
+
},
|
|
7570
|
+
{
|
|
7571
|
+
"kind": "field",
|
|
7572
|
+
"name": "groupChildren",
|
|
7573
|
+
"type": {
|
|
7574
|
+
"text": "ConditionNode[]"
|
|
7575
|
+
},
|
|
7576
|
+
"default": "[]"
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
"kind": "method",
|
|
7580
|
+
"name": "nodeChanged"
|
|
7581
|
+
},
|
|
7582
|
+
{
|
|
7583
|
+
"kind": "method",
|
|
7584
|
+
"name": "joinOperatorChanged"
|
|
7585
|
+
},
|
|
7586
|
+
{
|
|
7587
|
+
"kind": "method",
|
|
7588
|
+
"name": "newCondition"
|
|
7589
|
+
},
|
|
7590
|
+
{
|
|
7591
|
+
"kind": "method",
|
|
7592
|
+
"name": "newGroup"
|
|
7593
|
+
},
|
|
7594
|
+
{
|
|
7595
|
+
"kind": "method",
|
|
7596
|
+
"name": "editChild",
|
|
7597
|
+
"parameters": [
|
|
7598
|
+
{
|
|
7599
|
+
"name": "_editedChild",
|
|
7600
|
+
"type": {
|
|
7601
|
+
"text": "ConditionNode"
|
|
7602
|
+
}
|
|
7603
|
+
}
|
|
7604
|
+
]
|
|
7605
|
+
},
|
|
7606
|
+
{
|
|
7607
|
+
"kind": "method",
|
|
7608
|
+
"name": "deleteChild",
|
|
7609
|
+
"parameters": [
|
|
7610
|
+
{
|
|
7611
|
+
"name": "deletedChild",
|
|
7612
|
+
"type": {
|
|
7613
|
+
"text": "ConditionNode"
|
|
7614
|
+
}
|
|
7615
|
+
}
|
|
7616
|
+
]
|
|
7617
|
+
},
|
|
7618
|
+
{
|
|
7619
|
+
"kind": "method",
|
|
7620
|
+
"name": "deleteSelf"
|
|
7621
|
+
}
|
|
7622
|
+
],
|
|
7623
|
+
"events": [
|
|
7624
|
+
{
|
|
7625
|
+
"description": "Fired when this whole group should be removed",
|
|
7626
|
+
"name": "delete"
|
|
7627
|
+
},
|
|
7628
|
+
{
|
|
7629
|
+
"description": "Fired when anything inside this group changes",
|
|
7630
|
+
"name": "edit"
|
|
7631
|
+
}
|
|
7632
|
+
],
|
|
7633
|
+
"superclass": {
|
|
7634
|
+
"name": "GenesisElement",
|
|
7635
|
+
"package": "@genesislcap/web-core"
|
|
7636
|
+
},
|
|
7637
|
+
"tagName": "template-condition-group",
|
|
7638
|
+
"customElement": true
|
|
7639
|
+
}
|
|
7640
|
+
],
|
|
7641
|
+
"exports": [
|
|
7642
|
+
{
|
|
7643
|
+
"kind": "js",
|
|
7644
|
+
"name": "TemplateConditionGroup",
|
|
7645
|
+
"declaration": {
|
|
7646
|
+
"name": "TemplateConditionGroup",
|
|
7647
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7648
|
+
}
|
|
7649
|
+
},
|
|
7650
|
+
{
|
|
7651
|
+
"kind": "custom-element-definition",
|
|
7652
|
+
"name": "template-condition-group",
|
|
7653
|
+
"declaration": {
|
|
7654
|
+
"name": "TemplateConditionGroup",
|
|
7655
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7656
|
+
}
|
|
7657
|
+
}
|
|
7658
|
+
]
|
|
7659
|
+
},
|
|
7502
7660
|
{
|
|
7503
7661
|
"kind": "javascript-module",
|
|
7504
7662
|
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
@@ -7790,164 +7948,6 @@
|
|
|
7790
7948
|
}
|
|
7791
7949
|
}
|
|
7792
7950
|
]
|
|
7793
|
-
},
|
|
7794
|
-
{
|
|
7795
|
-
"kind": "javascript-module",
|
|
7796
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7797
|
-
"declarations": [
|
|
7798
|
-
{
|
|
7799
|
-
"kind": "variable",
|
|
7800
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7801
|
-
"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`"
|
|
7802
|
-
}
|
|
7803
|
-
],
|
|
7804
|
-
"exports": [
|
|
7805
|
-
{
|
|
7806
|
-
"kind": "js",
|
|
7807
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7808
|
-
"declaration": {
|
|
7809
|
-
"name": "TemplateConditionGroupTemplate",
|
|
7810
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7811
|
-
}
|
|
7812
|
-
}
|
|
7813
|
-
]
|
|
7814
|
-
},
|
|
7815
|
-
{
|
|
7816
|
-
"kind": "javascript-module",
|
|
7817
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7818
|
-
"declarations": [
|
|
7819
|
-
{
|
|
7820
|
-
"kind": "class",
|
|
7821
|
-
"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.",
|
|
7822
|
-
"name": "TemplateConditionGroup",
|
|
7823
|
-
"members": [
|
|
7824
|
-
{
|
|
7825
|
-
"kind": "field",
|
|
7826
|
-
"name": "node",
|
|
7827
|
-
"type": {
|
|
7828
|
-
"text": "ConditionGroupEntity"
|
|
7829
|
-
}
|
|
7830
|
-
},
|
|
7831
|
-
{
|
|
7832
|
-
"kind": "field",
|
|
7833
|
-
"name": "fields",
|
|
7834
|
-
"type": {
|
|
7835
|
-
"text": "Field[]"
|
|
7836
|
-
},
|
|
7837
|
-
"default": "[]"
|
|
7838
|
-
},
|
|
7839
|
-
{
|
|
7840
|
-
"kind": "field",
|
|
7841
|
-
"name": "parameters",
|
|
7842
|
-
"type": {
|
|
7843
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
7844
|
-
},
|
|
7845
|
-
"default": "[]"
|
|
7846
|
-
},
|
|
7847
|
-
{
|
|
7848
|
-
"kind": "field",
|
|
7849
|
-
"name": "isFirst",
|
|
7850
|
-
"type": {
|
|
7851
|
-
"text": "boolean"
|
|
7852
|
-
},
|
|
7853
|
-
"default": "false"
|
|
7854
|
-
},
|
|
7855
|
-
{
|
|
7856
|
-
"kind": "field",
|
|
7857
|
-
"name": "joinOperator",
|
|
7858
|
-
"type": {
|
|
7859
|
-
"text": "string"
|
|
7860
|
-
}
|
|
7861
|
-
},
|
|
7862
|
-
{
|
|
7863
|
-
"kind": "field",
|
|
7864
|
-
"name": "groupChildren",
|
|
7865
|
-
"type": {
|
|
7866
|
-
"text": "ConditionNode[]"
|
|
7867
|
-
},
|
|
7868
|
-
"default": "[]"
|
|
7869
|
-
},
|
|
7870
|
-
{
|
|
7871
|
-
"kind": "method",
|
|
7872
|
-
"name": "nodeChanged"
|
|
7873
|
-
},
|
|
7874
|
-
{
|
|
7875
|
-
"kind": "method",
|
|
7876
|
-
"name": "joinOperatorChanged"
|
|
7877
|
-
},
|
|
7878
|
-
{
|
|
7879
|
-
"kind": "method",
|
|
7880
|
-
"name": "newCondition"
|
|
7881
|
-
},
|
|
7882
|
-
{
|
|
7883
|
-
"kind": "method",
|
|
7884
|
-
"name": "newGroup"
|
|
7885
|
-
},
|
|
7886
|
-
{
|
|
7887
|
-
"kind": "method",
|
|
7888
|
-
"name": "editChild",
|
|
7889
|
-
"parameters": [
|
|
7890
|
-
{
|
|
7891
|
-
"name": "_editedChild",
|
|
7892
|
-
"type": {
|
|
7893
|
-
"text": "ConditionNode"
|
|
7894
|
-
}
|
|
7895
|
-
}
|
|
7896
|
-
]
|
|
7897
|
-
},
|
|
7898
|
-
{
|
|
7899
|
-
"kind": "method",
|
|
7900
|
-
"name": "deleteChild",
|
|
7901
|
-
"parameters": [
|
|
7902
|
-
{
|
|
7903
|
-
"name": "deletedChild",
|
|
7904
|
-
"type": {
|
|
7905
|
-
"text": "ConditionNode"
|
|
7906
|
-
}
|
|
7907
|
-
}
|
|
7908
|
-
]
|
|
7909
|
-
},
|
|
7910
|
-
{
|
|
7911
|
-
"kind": "method",
|
|
7912
|
-
"name": "deleteSelf"
|
|
7913
|
-
}
|
|
7914
|
-
],
|
|
7915
|
-
"events": [
|
|
7916
|
-
{
|
|
7917
|
-
"description": "Fired when this whole group should be removed",
|
|
7918
|
-
"name": "delete"
|
|
7919
|
-
},
|
|
7920
|
-
{
|
|
7921
|
-
"description": "Fired when anything inside this group changes",
|
|
7922
|
-
"name": "edit"
|
|
7923
|
-
}
|
|
7924
|
-
],
|
|
7925
|
-
"superclass": {
|
|
7926
|
-
"name": "GenesisElement",
|
|
7927
|
-
"package": "@genesislcap/web-core"
|
|
7928
|
-
},
|
|
7929
|
-
"tagName": "template-condition-group",
|
|
7930
|
-
"customElement": true
|
|
7931
|
-
}
|
|
7932
|
-
],
|
|
7933
|
-
"exports": [
|
|
7934
|
-
{
|
|
7935
|
-
"kind": "js",
|
|
7936
|
-
"name": "TemplateConditionGroup",
|
|
7937
|
-
"declaration": {
|
|
7938
|
-
"name": "TemplateConditionGroup",
|
|
7939
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7940
|
-
}
|
|
7941
|
-
},
|
|
7942
|
-
{
|
|
7943
|
-
"kind": "custom-element-definition",
|
|
7944
|
-
"name": "template-condition-group",
|
|
7945
|
-
"declaration": {
|
|
7946
|
-
"name": "TemplateConditionGroup",
|
|
7947
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7948
|
-
}
|
|
7949
|
-
}
|
|
7950
|
-
]
|
|
7951
7951
|
}
|
|
7952
7952
|
]
|
|
7953
7953
|
}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -258,17 +258,6 @@ export declare const ParameterBuilder: React.ForwardRefExoticComponent<
|
|
|
258
258
|
>;
|
|
259
259
|
export type ParameterBuilderRef = ParameterBuilderWC;
|
|
260
260
|
|
|
261
|
-
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
262
|
-
React.PropsWithChildren<
|
|
263
|
-
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
264
|
-
HTMLWCProps & {
|
|
265
|
-
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
266
|
-
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
267
|
-
}
|
|
268
|
-
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
269
|
-
>;
|
|
270
|
-
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
271
|
-
|
|
272
261
|
export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
|
|
273
262
|
React.PropsWithChildren<
|
|
274
263
|
Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
|
|
@@ -280,4 +269,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
|
|
|
280
269
|
>;
|
|
281
270
|
export type TemplateConditionGroupRef = TemplateConditionGroupWC;
|
|
282
271
|
|
|
272
|
+
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
273
|
+
React.PropsWithChildren<
|
|
274
|
+
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
275
|
+
HTMLWCProps & {
|
|
276
|
+
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
277
|
+
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
278
|
+
}
|
|
279
|
+
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
280
|
+
>;
|
|
281
|
+
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
282
|
+
|
|
283
283
|
export {};
|
package/dist/react.cjs
CHANGED
|
@@ -248,7 +248,7 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
|
|
|
248
248
|
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
const
|
|
251
|
+
const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
|
252
252
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
253
253
|
const _innerRef = React.useRef(null);
|
|
254
254
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -267,10 +267,10 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
|
|
|
267
267
|
el.removeEventListener('edit', _onEditFn);
|
|
268
268
|
};
|
|
269
269
|
}, []);
|
|
270
|
-
return React.createElement(customElements.getName(
|
|
270
|
+
return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
const
|
|
273
|
+
const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
274
274
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
275
275
|
const _innerRef = React.useRef(null);
|
|
276
276
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -289,7 +289,7 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
|
|
|
289
289
|
el.removeEventListener('edit', _onEditFn);
|
|
290
290
|
};
|
|
291
291
|
}, []);
|
|
292
|
-
return React.createElement(customElements.getName(
|
|
292
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
293
293
|
});
|
|
294
294
|
|
|
295
295
|
module.exports = {
|
|
@@ -314,6 +314,6 @@ module.exports = {
|
|
|
314
314
|
RuleConditionBuilder,
|
|
315
315
|
RuleConditionGroup,
|
|
316
316
|
ParameterBuilder,
|
|
317
|
-
TemplateConditionBuilder,
|
|
318
317
|
TemplateConditionGroup,
|
|
318
|
+
TemplateConditionBuilder,
|
|
319
319
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -246,7 +246,7 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
|
|
|
246
246
|
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
247
247
|
});
|
|
248
248
|
|
|
249
|
-
export const
|
|
249
|
+
export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
|
250
250
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
251
251
|
const _innerRef = React.useRef(null);
|
|
252
252
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -265,10 +265,10 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
|
|
|
265
265
|
el.removeEventListener('edit', _onEditFn);
|
|
266
266
|
};
|
|
267
267
|
}, []);
|
|
268
|
-
return React.createElement(customElements.getName(
|
|
268
|
+
return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
export const
|
|
271
|
+
export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
272
272
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
273
273
|
const _innerRef = React.useRef(null);
|
|
274
274
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -287,5 +287,5 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
|
|
|
287
287
|
el.removeEventListener('edit', _onEditFn);
|
|
288
288
|
};
|
|
289
289
|
}, []);
|
|
290
|
-
return React.createElement(customElements.getName(
|
|
290
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
291
291
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-notify-ui",
|
|
3
3
|
"description": "Genesis PBC Notify UI",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.2.0",
|
|
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.
|
|
87
|
-
"@genesislcap/eslint-config": "15.
|
|
88
|
-
"@genesislcap/eslint-stylelint-builder": "15.
|
|
89
|
-
"@genesislcap/foundation-testing": "15.
|
|
90
|
-
"@genesislcap/genx": "15.
|
|
91
|
-
"@genesislcap/prettier-config": "15.
|
|
92
|
-
"@genesislcap/stylelint-config": "15.
|
|
93
|
-
"@genesislcap/vite-builder": "15.
|
|
94
|
-
"@genesislcap/webpack-builder": "15.
|
|
86
|
+
"@genesislcap/design-system-configurator": "15.2.0",
|
|
87
|
+
"@genesislcap/eslint-config": "15.2.0",
|
|
88
|
+
"@genesislcap/eslint-stylelint-builder": "15.2.0",
|
|
89
|
+
"@genesislcap/foundation-testing": "15.2.0",
|
|
90
|
+
"@genesislcap/genx": "15.2.0",
|
|
91
|
+
"@genesislcap/prettier-config": "15.2.0",
|
|
92
|
+
"@genesislcap/stylelint-config": "15.2.0",
|
|
93
|
+
"@genesislcap/vite-builder": "15.2.0",
|
|
94
|
+
"@genesislcap/webpack-builder": "15.2.0",
|
|
95
95
|
"dayjs": "^1.11.7"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@genesislcap/foundation-comms": "15.
|
|
99
|
-
"@genesislcap/foundation-criteria": "15.
|
|
100
|
-
"@genesislcap/foundation-entity-management": "15.
|
|
101
|
-
"@genesislcap/foundation-forms": "15.
|
|
102
|
-
"@genesislcap/foundation-layout": "15.
|
|
103
|
-
"@genesislcap/foundation-logger": "15.
|
|
104
|
-
"@genesislcap/foundation-notifications": "15.
|
|
105
|
-
"@genesislcap/foundation-ui": "15.
|
|
106
|
-
"@genesislcap/foundation-utils": "15.
|
|
107
|
-
"@genesislcap/rapid-design-system": "15.
|
|
108
|
-
"@genesislcap/rapid-grid-pro": "15.
|
|
109
|
-
"@genesislcap/web-core": "15.
|
|
98
|
+
"@genesislcap/foundation-comms": "15.2.0",
|
|
99
|
+
"@genesislcap/foundation-criteria": "15.2.0",
|
|
100
|
+
"@genesislcap/foundation-entity-management": "15.2.0",
|
|
101
|
+
"@genesislcap/foundation-forms": "15.2.0",
|
|
102
|
+
"@genesislcap/foundation-layout": "15.2.0",
|
|
103
|
+
"@genesislcap/foundation-logger": "15.2.0",
|
|
104
|
+
"@genesislcap/foundation-notifications": "15.2.0",
|
|
105
|
+
"@genesislcap/foundation-ui": "15.2.0",
|
|
106
|
+
"@genesislcap/foundation-utils": "15.2.0",
|
|
107
|
+
"@genesislcap/rapid-design-system": "15.2.0",
|
|
108
|
+
"@genesislcap/rapid-grid-pro": "15.2.0",
|
|
109
|
+
"@genesislcap/web-core": "15.2.0",
|
|
110
110
|
"lodash.debounce": "^4.0.8",
|
|
111
111
|
"rxjs": "^7.5.4"
|
|
112
112
|
},
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"customElements": "dist/custom-elements.json",
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c39af72807245ad2240adf75233c2769213d9aba"
|
|
118
118
|
}
|