@genesislcap/pbc-notify-ui 15.31.0 → 15.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +312 -312
- package/dist/dts/react.d.ts +17 -17
- package/dist/react.cjs +10 -10
- package/dist/react.mjs +8 -8
- package/package.json +22 -22
|
@@ -8345,6 +8345,156 @@
|
|
|
8345
8345
|
}
|
|
8346
8346
|
]
|
|
8347
8347
|
},
|
|
8348
|
+
{
|
|
8349
|
+
"kind": "javascript-module",
|
|
8350
|
+
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts",
|
|
8351
|
+
"declarations": [
|
|
8352
|
+
{
|
|
8353
|
+
"kind": "variable",
|
|
8354
|
+
"name": "RuleConditionGroupTemplate",
|
|
8355
|
+
"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`"
|
|
8356
|
+
}
|
|
8357
|
+
],
|
|
8358
|
+
"exports": [
|
|
8359
|
+
{
|
|
8360
|
+
"kind": "js",
|
|
8361
|
+
"name": "RuleConditionGroupTemplate",
|
|
8362
|
+
"declaration": {
|
|
8363
|
+
"name": "RuleConditionGroupTemplate",
|
|
8364
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.template.ts"
|
|
8365
|
+
}
|
|
8366
|
+
}
|
|
8367
|
+
]
|
|
8368
|
+
},
|
|
8369
|
+
{
|
|
8370
|
+
"kind": "javascript-module",
|
|
8371
|
+
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts",
|
|
8372
|
+
"declarations": [
|
|
8373
|
+
{
|
|
8374
|
+
"kind": "class",
|
|
8375
|
+
"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.",
|
|
8376
|
+
"name": "RuleConditionGroup",
|
|
8377
|
+
"members": [
|
|
8378
|
+
{
|
|
8379
|
+
"kind": "field",
|
|
8380
|
+
"name": "node",
|
|
8381
|
+
"type": {
|
|
8382
|
+
"text": "ConditionGroupEntity"
|
|
8383
|
+
}
|
|
8384
|
+
},
|
|
8385
|
+
{
|
|
8386
|
+
"kind": "field",
|
|
8387
|
+
"name": "fields",
|
|
8388
|
+
"type": {
|
|
8389
|
+
"text": "Field[]"
|
|
8390
|
+
},
|
|
8391
|
+
"default": "[]"
|
|
8392
|
+
},
|
|
8393
|
+
{
|
|
8394
|
+
"kind": "field",
|
|
8395
|
+
"name": "isFirst",
|
|
8396
|
+
"type": {
|
|
8397
|
+
"text": "boolean"
|
|
8398
|
+
},
|
|
8399
|
+
"default": "false"
|
|
8400
|
+
},
|
|
8401
|
+
{
|
|
8402
|
+
"kind": "field",
|
|
8403
|
+
"name": "joinOperator",
|
|
8404
|
+
"type": {
|
|
8405
|
+
"text": "string"
|
|
8406
|
+
}
|
|
8407
|
+
},
|
|
8408
|
+
{
|
|
8409
|
+
"kind": "field",
|
|
8410
|
+
"name": "groupChildren",
|
|
8411
|
+
"type": {
|
|
8412
|
+
"text": "ConditionNode[]"
|
|
8413
|
+
},
|
|
8414
|
+
"default": "[]"
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
"kind": "method",
|
|
8418
|
+
"name": "nodeChanged"
|
|
8419
|
+
},
|
|
8420
|
+
{
|
|
8421
|
+
"kind": "method",
|
|
8422
|
+
"name": "joinOperatorChanged"
|
|
8423
|
+
},
|
|
8424
|
+
{
|
|
8425
|
+
"kind": "method",
|
|
8426
|
+
"name": "newCondition"
|
|
8427
|
+
},
|
|
8428
|
+
{
|
|
8429
|
+
"kind": "method",
|
|
8430
|
+
"name": "newGroup"
|
|
8431
|
+
},
|
|
8432
|
+
{
|
|
8433
|
+
"kind": "method",
|
|
8434
|
+
"name": "editChild",
|
|
8435
|
+
"parameters": [
|
|
8436
|
+
{
|
|
8437
|
+
"name": "_editedChild",
|
|
8438
|
+
"type": {
|
|
8439
|
+
"text": "ConditionNode"
|
|
8440
|
+
}
|
|
8441
|
+
}
|
|
8442
|
+
]
|
|
8443
|
+
},
|
|
8444
|
+
{
|
|
8445
|
+
"kind": "method",
|
|
8446
|
+
"name": "deleteChild",
|
|
8447
|
+
"parameters": [
|
|
8448
|
+
{
|
|
8449
|
+
"name": "deletedChild",
|
|
8450
|
+
"type": {
|
|
8451
|
+
"text": "ConditionNode"
|
|
8452
|
+
}
|
|
8453
|
+
}
|
|
8454
|
+
]
|
|
8455
|
+
},
|
|
8456
|
+
{
|
|
8457
|
+
"kind": "method",
|
|
8458
|
+
"name": "deleteSelf"
|
|
8459
|
+
}
|
|
8460
|
+
],
|
|
8461
|
+
"events": [
|
|
8462
|
+
{
|
|
8463
|
+
"description": "Fired when this whole group should be removed",
|
|
8464
|
+
"name": "delete"
|
|
8465
|
+
},
|
|
8466
|
+
{
|
|
8467
|
+
"description": "Fired when anything inside this group changes",
|
|
8468
|
+
"name": "edit"
|
|
8469
|
+
}
|
|
8470
|
+
],
|
|
8471
|
+
"superclass": {
|
|
8472
|
+
"name": "GenesisElement",
|
|
8473
|
+
"package": "@genesislcap/web-core"
|
|
8474
|
+
},
|
|
8475
|
+
"tagName": "rule-condition-group",
|
|
8476
|
+
"customElement": true
|
|
8477
|
+
}
|
|
8478
|
+
],
|
|
8479
|
+
"exports": [
|
|
8480
|
+
{
|
|
8481
|
+
"kind": "js",
|
|
8482
|
+
"name": "RuleConditionGroup",
|
|
8483
|
+
"declaration": {
|
|
8484
|
+
"name": "RuleConditionGroup",
|
|
8485
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
|
|
8486
|
+
}
|
|
8487
|
+
},
|
|
8488
|
+
{
|
|
8489
|
+
"kind": "custom-element-definition",
|
|
8490
|
+
"name": "rule-condition-group",
|
|
8491
|
+
"declaration": {
|
|
8492
|
+
"name": "RuleConditionGroup",
|
|
8493
|
+
"module": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-group/rule-condition-group.ts"
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
]
|
|
8497
|
+
},
|
|
8348
8498
|
{
|
|
8349
8499
|
"kind": "javascript-module",
|
|
8350
8500
|
"path": "src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts",
|
|
@@ -8631,41 +8781,49 @@
|
|
|
8631
8781
|
},
|
|
8632
8782
|
{
|
|
8633
8783
|
"kind": "javascript-module",
|
|
8634
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
8784
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
8635
8785
|
"declarations": [
|
|
8636
8786
|
{
|
|
8637
8787
|
"kind": "variable",
|
|
8638
|
-
"name": "
|
|
8639
|
-
"default": "html<
|
|
8788
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
8789
|
+
"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`"
|
|
8640
8790
|
}
|
|
8641
8791
|
],
|
|
8642
8792
|
"exports": [
|
|
8643
8793
|
{
|
|
8644
8794
|
"kind": "js",
|
|
8645
|
-
"name": "
|
|
8795
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
8646
8796
|
"declaration": {
|
|
8647
|
-
"name": "
|
|
8648
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
8797
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
8798
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
|
|
8649
8799
|
}
|
|
8650
8800
|
}
|
|
8651
8801
|
]
|
|
8652
8802
|
},
|
|
8653
8803
|
{
|
|
8654
8804
|
"kind": "javascript-module",
|
|
8655
|
-
"path": "src/components/foundation-notification-dashboard/components/
|
|
8805
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
|
|
8656
8806
|
"declarations": [
|
|
8657
8807
|
{
|
|
8658
8808
|
"kind": "class",
|
|
8659
|
-
"description": "
|
|
8660
|
-
"name": "
|
|
8809
|
+
"description": "Condition builder for template notification rules.",
|
|
8810
|
+
"name": "TemplateConditionBuilder",
|
|
8661
8811
|
"members": [
|
|
8662
8812
|
{
|
|
8663
8813
|
"kind": "field",
|
|
8664
|
-
"name": "
|
|
8814
|
+
"name": "condition",
|
|
8665
8815
|
"type": {
|
|
8666
|
-
"text": "
|
|
8816
|
+
"text": "ConditionBuilderEntity"
|
|
8667
8817
|
}
|
|
8668
8818
|
},
|
|
8819
|
+
{
|
|
8820
|
+
"kind": "field",
|
|
8821
|
+
"name": "parameters",
|
|
8822
|
+
"type": {
|
|
8823
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
8824
|
+
},
|
|
8825
|
+
"default": "[]"
|
|
8826
|
+
},
|
|
8669
8827
|
{
|
|
8670
8828
|
"kind": "field",
|
|
8671
8829
|
"name": "fields",
|
|
@@ -8691,64 +8849,173 @@
|
|
|
8691
8849
|
},
|
|
8692
8850
|
{
|
|
8693
8851
|
"kind": "field",
|
|
8694
|
-
"name": "
|
|
8852
|
+
"name": "leftValue",
|
|
8695
8853
|
"type": {
|
|
8696
|
-
"text": "
|
|
8854
|
+
"text": "any"
|
|
8855
|
+
},
|
|
8856
|
+
"default": "null"
|
|
8857
|
+
},
|
|
8858
|
+
{
|
|
8859
|
+
"kind": "field",
|
|
8860
|
+
"name": "leftValueItems",
|
|
8861
|
+
"type": {
|
|
8862
|
+
"text": "Array<any>"
|
|
8697
8863
|
},
|
|
8698
8864
|
"default": "[]"
|
|
8699
8865
|
},
|
|
8700
8866
|
{
|
|
8701
|
-
"kind": "
|
|
8702
|
-
"name": "
|
|
8867
|
+
"kind": "field",
|
|
8868
|
+
"name": "logicalOperator",
|
|
8869
|
+
"type": {
|
|
8870
|
+
"text": "string"
|
|
8871
|
+
},
|
|
8872
|
+
"default": "null"
|
|
8873
|
+
},
|
|
8874
|
+
{
|
|
8875
|
+
"kind": "field",
|
|
8876
|
+
"name": "rightCriteria",
|
|
8877
|
+
"type": {
|
|
8878
|
+
"text": "string"
|
|
8879
|
+
}
|
|
8880
|
+
},
|
|
8881
|
+
{
|
|
8882
|
+
"kind": "field",
|
|
8883
|
+
"name": "rightValueText",
|
|
8884
|
+
"type": {
|
|
8885
|
+
"text": "string"
|
|
8886
|
+
},
|
|
8887
|
+
"default": "null"
|
|
8888
|
+
},
|
|
8889
|
+
{
|
|
8890
|
+
"kind": "field",
|
|
8891
|
+
"name": "rightValueSelect",
|
|
8892
|
+
"type": {
|
|
8893
|
+
"text": "string"
|
|
8894
|
+
},
|
|
8895
|
+
"default": "null"
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
"kind": "field",
|
|
8899
|
+
"name": "rightValueItems",
|
|
8900
|
+
"type": {
|
|
8901
|
+
"text": "Array<any>"
|
|
8902
|
+
},
|
|
8903
|
+
"default": "[]"
|
|
8904
|
+
},
|
|
8905
|
+
{
|
|
8906
|
+
"kind": "field",
|
|
8907
|
+
"name": "rightValueMultiSelect",
|
|
8908
|
+
"type": {
|
|
8909
|
+
"text": "string[]"
|
|
8910
|
+
},
|
|
8911
|
+
"default": "[]"
|
|
8703
8912
|
},
|
|
8704
8913
|
{
|
|
8705
8914
|
"kind": "method",
|
|
8706
|
-
"name": "
|
|
8915
|
+
"name": "deleteCondition"
|
|
8707
8916
|
},
|
|
8708
8917
|
{
|
|
8709
8918
|
"kind": "method",
|
|
8710
|
-
"name": "
|
|
8919
|
+
"name": "conditionChanged"
|
|
8711
8920
|
},
|
|
8712
8921
|
{
|
|
8713
8922
|
"kind": "method",
|
|
8714
|
-
"name": "
|
|
8923
|
+
"name": "joinOperatorChanged"
|
|
8715
8924
|
},
|
|
8716
8925
|
{
|
|
8717
8926
|
"kind": "method",
|
|
8718
|
-
"name": "
|
|
8719
|
-
"parameters": [
|
|
8720
|
-
{
|
|
8721
|
-
"name": "_editedChild",
|
|
8722
|
-
"type": {
|
|
8723
|
-
"text": "ConditionNode"
|
|
8724
|
-
}
|
|
8725
|
-
}
|
|
8726
|
-
]
|
|
8927
|
+
"name": "parametersChanged"
|
|
8727
8928
|
},
|
|
8728
8929
|
{
|
|
8729
8930
|
"kind": "method",
|
|
8730
|
-
"name": "
|
|
8731
|
-
"
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
"
|
|
8735
|
-
"text": "ConditionNode"
|
|
8736
|
-
}
|
|
8931
|
+
"name": "getMatchingParameter",
|
|
8932
|
+
"privacy": "private",
|
|
8933
|
+
"return": {
|
|
8934
|
+
"type": {
|
|
8935
|
+
"text": "ParameterBuilderEntity | undefined"
|
|
8737
8936
|
}
|
|
8738
|
-
|
|
8937
|
+
}
|
|
8739
8938
|
},
|
|
8740
8939
|
{
|
|
8741
8940
|
"kind": "method",
|
|
8742
|
-
"name": "
|
|
8941
|
+
"name": "syncParameterBinding",
|
|
8942
|
+
"privacy": "private",
|
|
8943
|
+
"return": {
|
|
8944
|
+
"type": {
|
|
8945
|
+
"text": "boolean"
|
|
8946
|
+
}
|
|
8947
|
+
}
|
|
8948
|
+
},
|
|
8949
|
+
{
|
|
8950
|
+
"kind": "method",
|
|
8951
|
+
"name": "resetToValueEditor",
|
|
8952
|
+
"privacy": "private"
|
|
8953
|
+
},
|
|
8954
|
+
{
|
|
8955
|
+
"kind": "method",
|
|
8956
|
+
"name": "fieldsChanged"
|
|
8957
|
+
},
|
|
8958
|
+
{
|
|
8959
|
+
"kind": "method",
|
|
8960
|
+
"name": "logicalOperatorChanged"
|
|
8961
|
+
},
|
|
8962
|
+
{
|
|
8963
|
+
"kind": "method",
|
|
8964
|
+
"name": "assignLeftValue",
|
|
8965
|
+
"privacy": "private"
|
|
8966
|
+
},
|
|
8967
|
+
{
|
|
8968
|
+
"kind": "method",
|
|
8969
|
+
"name": "leftValueChanged"
|
|
8970
|
+
},
|
|
8971
|
+
{
|
|
8972
|
+
"kind": "method",
|
|
8973
|
+
"name": "assignRightValue",
|
|
8974
|
+
"privacy": "private"
|
|
8975
|
+
},
|
|
8976
|
+
{
|
|
8977
|
+
"kind": "method",
|
|
8978
|
+
"name": "rightCriteriaChanged"
|
|
8979
|
+
},
|
|
8980
|
+
{
|
|
8981
|
+
"kind": "method",
|
|
8982
|
+
"name": "clearRightValueText",
|
|
8983
|
+
"privacy": "private"
|
|
8984
|
+
},
|
|
8985
|
+
{
|
|
8986
|
+
"kind": "method",
|
|
8987
|
+
"name": "clearRightValueSelect",
|
|
8988
|
+
"privacy": "private"
|
|
8989
|
+
},
|
|
8990
|
+
{
|
|
8991
|
+
"kind": "method",
|
|
8992
|
+
"name": "rightValueTextChanged"
|
|
8993
|
+
},
|
|
8994
|
+
{
|
|
8995
|
+
"kind": "method",
|
|
8996
|
+
"name": "rightValueSelectChanged"
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
"kind": "method",
|
|
9000
|
+
"name": "rightValueMultiSelectChanged"
|
|
9001
|
+
},
|
|
9002
|
+
{
|
|
9003
|
+
"kind": "method",
|
|
9004
|
+
"name": "getEnumValues",
|
|
9005
|
+
"return": {
|
|
9006
|
+
"type": {
|
|
9007
|
+
"text": "string[]"
|
|
9008
|
+
}
|
|
9009
|
+
}
|
|
8743
9010
|
}
|
|
8744
9011
|
],
|
|
8745
9012
|
"events": [
|
|
8746
9013
|
{
|
|
8747
|
-
"description": "Fired when
|
|
9014
|
+
"description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
|
|
8748
9015
|
"name": "delete"
|
|
8749
9016
|
},
|
|
8750
9017
|
{
|
|
8751
|
-
"description": "Fired when
|
|
9018
|
+
"description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
|
|
8752
9019
|
"name": "edit"
|
|
8753
9020
|
}
|
|
8754
9021
|
],
|
|
@@ -8756,25 +9023,25 @@
|
|
|
8756
9023
|
"name": "GenesisElement",
|
|
8757
9024
|
"package": "@genesislcap/web-core"
|
|
8758
9025
|
},
|
|
8759
|
-
"tagName": "
|
|
9026
|
+
"tagName": "template-condition-builder",
|
|
8760
9027
|
"customElement": true
|
|
8761
9028
|
}
|
|
8762
9029
|
],
|
|
8763
9030
|
"exports": [
|
|
8764
9031
|
{
|
|
8765
9032
|
"kind": "js",
|
|
8766
|
-
"name": "
|
|
9033
|
+
"name": "TemplateConditionBuilder",
|
|
8767
9034
|
"declaration": {
|
|
8768
|
-
"name": "
|
|
8769
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
9035
|
+
"name": "TemplateConditionBuilder",
|
|
9036
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
8770
9037
|
}
|
|
8771
9038
|
},
|
|
8772
9039
|
{
|
|
8773
9040
|
"kind": "custom-element-definition",
|
|
8774
|
-
"name": "
|
|
9041
|
+
"name": "template-condition-builder",
|
|
8775
9042
|
"declaration": {
|
|
8776
|
-
"name": "
|
|
8777
|
-
"module": "src/components/foundation-notification-dashboard/components/
|
|
9043
|
+
"name": "TemplateConditionBuilder",
|
|
9044
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
8778
9045
|
}
|
|
8779
9046
|
}
|
|
8780
9047
|
]
|
|
@@ -8993,273 +9260,6 @@
|
|
|
8993
9260
|
}
|
|
8994
9261
|
]
|
|
8995
9262
|
},
|
|
8996
|
-
{
|
|
8997
|
-
"kind": "javascript-module",
|
|
8998
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
8999
|
-
"declarations": [
|
|
9000
|
-
{
|
|
9001
|
-
"kind": "variable",
|
|
9002
|
-
"name": "TemplateConditionBuilderTemplate",
|
|
9003
|
-
"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`"
|
|
9004
|
-
}
|
|
9005
|
-
],
|
|
9006
|
-
"exports": [
|
|
9007
|
-
{
|
|
9008
|
-
"kind": "js",
|
|
9009
|
-
"name": "TemplateConditionBuilderTemplate",
|
|
9010
|
-
"declaration": {
|
|
9011
|
-
"name": "TemplateConditionBuilderTemplate",
|
|
9012
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
|
|
9013
|
-
}
|
|
9014
|
-
}
|
|
9015
|
-
]
|
|
9016
|
-
},
|
|
9017
|
-
{
|
|
9018
|
-
"kind": "javascript-module",
|
|
9019
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
|
|
9020
|
-
"declarations": [
|
|
9021
|
-
{
|
|
9022
|
-
"kind": "class",
|
|
9023
|
-
"description": "Condition builder for template notification rules.",
|
|
9024
|
-
"name": "TemplateConditionBuilder",
|
|
9025
|
-
"members": [
|
|
9026
|
-
{
|
|
9027
|
-
"kind": "field",
|
|
9028
|
-
"name": "condition",
|
|
9029
|
-
"type": {
|
|
9030
|
-
"text": "ConditionBuilderEntity"
|
|
9031
|
-
}
|
|
9032
|
-
},
|
|
9033
|
-
{
|
|
9034
|
-
"kind": "field",
|
|
9035
|
-
"name": "parameters",
|
|
9036
|
-
"type": {
|
|
9037
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
9038
|
-
},
|
|
9039
|
-
"default": "[]"
|
|
9040
|
-
},
|
|
9041
|
-
{
|
|
9042
|
-
"kind": "field",
|
|
9043
|
-
"name": "fields",
|
|
9044
|
-
"type": {
|
|
9045
|
-
"text": "Field[]"
|
|
9046
|
-
},
|
|
9047
|
-
"default": "[]"
|
|
9048
|
-
},
|
|
9049
|
-
{
|
|
9050
|
-
"kind": "field",
|
|
9051
|
-
"name": "isFirst",
|
|
9052
|
-
"type": {
|
|
9053
|
-
"text": "boolean"
|
|
9054
|
-
},
|
|
9055
|
-
"default": "false"
|
|
9056
|
-
},
|
|
9057
|
-
{
|
|
9058
|
-
"kind": "field",
|
|
9059
|
-
"name": "joinOperator",
|
|
9060
|
-
"type": {
|
|
9061
|
-
"text": "string"
|
|
9062
|
-
}
|
|
9063
|
-
},
|
|
9064
|
-
{
|
|
9065
|
-
"kind": "field",
|
|
9066
|
-
"name": "leftValue",
|
|
9067
|
-
"type": {
|
|
9068
|
-
"text": "any"
|
|
9069
|
-
},
|
|
9070
|
-
"default": "null"
|
|
9071
|
-
},
|
|
9072
|
-
{
|
|
9073
|
-
"kind": "field",
|
|
9074
|
-
"name": "leftValueItems",
|
|
9075
|
-
"type": {
|
|
9076
|
-
"text": "Array<any>"
|
|
9077
|
-
},
|
|
9078
|
-
"default": "[]"
|
|
9079
|
-
},
|
|
9080
|
-
{
|
|
9081
|
-
"kind": "field",
|
|
9082
|
-
"name": "logicalOperator",
|
|
9083
|
-
"type": {
|
|
9084
|
-
"text": "string"
|
|
9085
|
-
},
|
|
9086
|
-
"default": "null"
|
|
9087
|
-
},
|
|
9088
|
-
{
|
|
9089
|
-
"kind": "field",
|
|
9090
|
-
"name": "rightCriteria",
|
|
9091
|
-
"type": {
|
|
9092
|
-
"text": "string"
|
|
9093
|
-
}
|
|
9094
|
-
},
|
|
9095
|
-
{
|
|
9096
|
-
"kind": "field",
|
|
9097
|
-
"name": "rightValueText",
|
|
9098
|
-
"type": {
|
|
9099
|
-
"text": "string"
|
|
9100
|
-
},
|
|
9101
|
-
"default": "null"
|
|
9102
|
-
},
|
|
9103
|
-
{
|
|
9104
|
-
"kind": "field",
|
|
9105
|
-
"name": "rightValueSelect",
|
|
9106
|
-
"type": {
|
|
9107
|
-
"text": "string"
|
|
9108
|
-
},
|
|
9109
|
-
"default": "null"
|
|
9110
|
-
},
|
|
9111
|
-
{
|
|
9112
|
-
"kind": "field",
|
|
9113
|
-
"name": "rightValueItems",
|
|
9114
|
-
"type": {
|
|
9115
|
-
"text": "Array<any>"
|
|
9116
|
-
},
|
|
9117
|
-
"default": "[]"
|
|
9118
|
-
},
|
|
9119
|
-
{
|
|
9120
|
-
"kind": "field",
|
|
9121
|
-
"name": "rightValueMultiSelect",
|
|
9122
|
-
"type": {
|
|
9123
|
-
"text": "string[]"
|
|
9124
|
-
},
|
|
9125
|
-
"default": "[]"
|
|
9126
|
-
},
|
|
9127
|
-
{
|
|
9128
|
-
"kind": "method",
|
|
9129
|
-
"name": "deleteCondition"
|
|
9130
|
-
},
|
|
9131
|
-
{
|
|
9132
|
-
"kind": "method",
|
|
9133
|
-
"name": "conditionChanged"
|
|
9134
|
-
},
|
|
9135
|
-
{
|
|
9136
|
-
"kind": "method",
|
|
9137
|
-
"name": "joinOperatorChanged"
|
|
9138
|
-
},
|
|
9139
|
-
{
|
|
9140
|
-
"kind": "method",
|
|
9141
|
-
"name": "parametersChanged"
|
|
9142
|
-
},
|
|
9143
|
-
{
|
|
9144
|
-
"kind": "method",
|
|
9145
|
-
"name": "getMatchingParameter",
|
|
9146
|
-
"privacy": "private",
|
|
9147
|
-
"return": {
|
|
9148
|
-
"type": {
|
|
9149
|
-
"text": "ParameterBuilderEntity | undefined"
|
|
9150
|
-
}
|
|
9151
|
-
}
|
|
9152
|
-
},
|
|
9153
|
-
{
|
|
9154
|
-
"kind": "method",
|
|
9155
|
-
"name": "syncParameterBinding",
|
|
9156
|
-
"privacy": "private",
|
|
9157
|
-
"return": {
|
|
9158
|
-
"type": {
|
|
9159
|
-
"text": "boolean"
|
|
9160
|
-
}
|
|
9161
|
-
}
|
|
9162
|
-
},
|
|
9163
|
-
{
|
|
9164
|
-
"kind": "method",
|
|
9165
|
-
"name": "resetToValueEditor",
|
|
9166
|
-
"privacy": "private"
|
|
9167
|
-
},
|
|
9168
|
-
{
|
|
9169
|
-
"kind": "method",
|
|
9170
|
-
"name": "fieldsChanged"
|
|
9171
|
-
},
|
|
9172
|
-
{
|
|
9173
|
-
"kind": "method",
|
|
9174
|
-
"name": "logicalOperatorChanged"
|
|
9175
|
-
},
|
|
9176
|
-
{
|
|
9177
|
-
"kind": "method",
|
|
9178
|
-
"name": "assignLeftValue",
|
|
9179
|
-
"privacy": "private"
|
|
9180
|
-
},
|
|
9181
|
-
{
|
|
9182
|
-
"kind": "method",
|
|
9183
|
-
"name": "leftValueChanged"
|
|
9184
|
-
},
|
|
9185
|
-
{
|
|
9186
|
-
"kind": "method",
|
|
9187
|
-
"name": "assignRightValue",
|
|
9188
|
-
"privacy": "private"
|
|
9189
|
-
},
|
|
9190
|
-
{
|
|
9191
|
-
"kind": "method",
|
|
9192
|
-
"name": "rightCriteriaChanged"
|
|
9193
|
-
},
|
|
9194
|
-
{
|
|
9195
|
-
"kind": "method",
|
|
9196
|
-
"name": "clearRightValueText",
|
|
9197
|
-
"privacy": "private"
|
|
9198
|
-
},
|
|
9199
|
-
{
|
|
9200
|
-
"kind": "method",
|
|
9201
|
-
"name": "clearRightValueSelect",
|
|
9202
|
-
"privacy": "private"
|
|
9203
|
-
},
|
|
9204
|
-
{
|
|
9205
|
-
"kind": "method",
|
|
9206
|
-
"name": "rightValueTextChanged"
|
|
9207
|
-
},
|
|
9208
|
-
{
|
|
9209
|
-
"kind": "method",
|
|
9210
|
-
"name": "rightValueSelectChanged"
|
|
9211
|
-
},
|
|
9212
|
-
{
|
|
9213
|
-
"kind": "method",
|
|
9214
|
-
"name": "rightValueMultiSelectChanged"
|
|
9215
|
-
},
|
|
9216
|
-
{
|
|
9217
|
-
"kind": "method",
|
|
9218
|
-
"name": "getEnumValues",
|
|
9219
|
-
"return": {
|
|
9220
|
-
"type": {
|
|
9221
|
-
"text": "string[]"
|
|
9222
|
-
}
|
|
9223
|
-
}
|
|
9224
|
-
}
|
|
9225
|
-
],
|
|
9226
|
-
"events": [
|
|
9227
|
-
{
|
|
9228
|
-
"description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
|
|
9229
|
-
"name": "delete"
|
|
9230
|
-
},
|
|
9231
|
-
{
|
|
9232
|
-
"description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
|
|
9233
|
-
"name": "edit"
|
|
9234
|
-
}
|
|
9235
|
-
],
|
|
9236
|
-
"superclass": {
|
|
9237
|
-
"name": "GenesisElement",
|
|
9238
|
-
"package": "@genesislcap/web-core"
|
|
9239
|
-
},
|
|
9240
|
-
"tagName": "template-condition-builder",
|
|
9241
|
-
"customElement": true
|
|
9242
|
-
}
|
|
9243
|
-
],
|
|
9244
|
-
"exports": [
|
|
9245
|
-
{
|
|
9246
|
-
"kind": "js",
|
|
9247
|
-
"name": "TemplateConditionBuilder",
|
|
9248
|
-
"declaration": {
|
|
9249
|
-
"name": "TemplateConditionBuilder",
|
|
9250
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
9251
|
-
}
|
|
9252
|
-
},
|
|
9253
|
-
{
|
|
9254
|
-
"kind": "custom-element-definition",
|
|
9255
|
-
"name": "template-condition-builder",
|
|
9256
|
-
"declaration": {
|
|
9257
|
-
"name": "TemplateConditionBuilder",
|
|
9258
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
9259
|
-
}
|
|
9260
|
-
}
|
|
9261
|
-
]
|
|
9262
|
-
},
|
|
9263
9263
|
{
|
|
9264
9264
|
"kind": "javascript-module",
|
|
9265
9265
|
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -255,17 +255,6 @@ export declare const TemplateDialog: React.ForwardRefExoticComponent<
|
|
|
255
255
|
>;
|
|
256
256
|
export type TemplateDialogRef = TemplateDialogWC;
|
|
257
257
|
|
|
258
|
-
export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
|
|
259
|
-
React.PropsWithChildren<
|
|
260
|
-
Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
|
|
261
|
-
HTMLWCProps & {
|
|
262
|
-
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
263
|
-
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
264
|
-
}
|
|
265
|
-
> & React.RefAttributes<RuleConditionBuilderWC>
|
|
266
|
-
>;
|
|
267
|
-
export type RuleConditionBuilderRef = RuleConditionBuilderWC;
|
|
268
|
-
|
|
269
258
|
export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
|
|
270
259
|
React.PropsWithChildren<
|
|
271
260
|
Omit<PublicOf<RuleConditionGroupWC>, 'children' | 'style'> &
|
|
@@ -277,16 +266,16 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
|
|
|
277
266
|
>;
|
|
278
267
|
export type RuleConditionGroupRef = RuleConditionGroupWC;
|
|
279
268
|
|
|
280
|
-
export declare const
|
|
269
|
+
export declare const RuleConditionBuilder: React.ForwardRefExoticComponent<
|
|
281
270
|
React.PropsWithChildren<
|
|
282
|
-
Omit<PublicOf<
|
|
271
|
+
Omit<PublicOf<RuleConditionBuilderWC>, 'children' | 'style'> &
|
|
283
272
|
HTMLWCProps & {
|
|
284
|
-
onDelete?: (event: CustomEvent<
|
|
285
|
-
onEdit?: (event: CustomEvent<
|
|
273
|
+
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
274
|
+
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
286
275
|
}
|
|
287
|
-
> & React.RefAttributes<
|
|
276
|
+
> & React.RefAttributes<RuleConditionBuilderWC>
|
|
288
277
|
>;
|
|
289
|
-
export type
|
|
278
|
+
export type RuleConditionBuilderRef = RuleConditionBuilderWC;
|
|
290
279
|
|
|
291
280
|
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
292
281
|
React.PropsWithChildren<
|
|
@@ -299,6 +288,17 @@ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
|
299
288
|
>;
|
|
300
289
|
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
301
290
|
|
|
291
|
+
export declare const ParameterBuilder: React.ForwardRefExoticComponent<
|
|
292
|
+
React.PropsWithChildren<
|
|
293
|
+
Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
|
|
294
|
+
HTMLWCProps & {
|
|
295
|
+
onDelete?: (event: CustomEvent<ParameterBuilderEntity>) => void;
|
|
296
|
+
onEdit?: (event: CustomEvent<ParameterBuilderEntity>) => void;
|
|
297
|
+
}
|
|
298
|
+
> & React.RefAttributes<ParameterBuilderWC>
|
|
299
|
+
>;
|
|
300
|
+
export type ParameterBuilderRef = ParameterBuilderWC;
|
|
301
|
+
|
|
302
302
|
export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
|
|
303
303
|
React.PropsWithChildren<
|
|
304
304
|
Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
|
package/dist/react.cjs
CHANGED
|
@@ -200,7 +200,7 @@ const TemplateDialog = React.forwardRef(function TemplateDialog(props, ref) {
|
|
|
200
200
|
return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
-
const
|
|
203
|
+
const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
|
|
204
204
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
205
205
|
const _innerRef = React.useRef(null);
|
|
206
206
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -219,10 +219,10 @@ const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(prop
|
|
|
219
219
|
el.removeEventListener('edit', _onEditFn);
|
|
220
220
|
};
|
|
221
221
|
}, []);
|
|
222
|
-
return React.createElement(customElements.getName(
|
|
222
|
+
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
-
const
|
|
225
|
+
const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
|
|
226
226
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
227
227
|
const _innerRef = React.useRef(null);
|
|
228
228
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -241,10 +241,10 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
|
|
|
241
241
|
el.removeEventListener('edit', _onEditFn);
|
|
242
242
|
};
|
|
243
243
|
}, []);
|
|
244
|
-
return React.createElement(customElements.getName(
|
|
244
|
+
return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
const
|
|
247
|
+
const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
248
248
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
249
249
|
const _innerRef = React.useRef(null);
|
|
250
250
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -263,10 +263,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
|
|
|
263
263
|
el.removeEventListener('edit', _onEditFn);
|
|
264
264
|
};
|
|
265
265
|
}, []);
|
|
266
|
-
return React.createElement(customElements.getName(
|
|
266
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
267
267
|
});
|
|
268
268
|
|
|
269
|
-
const
|
|
269
|
+
const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
270
270
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
271
271
|
const _innerRef = React.useRef(null);
|
|
272
272
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -285,7 +285,7 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
|
|
|
285
285
|
el.removeEventListener('edit', _onEditFn);
|
|
286
286
|
};
|
|
287
287
|
}, []);
|
|
288
|
-
return React.createElement(customElements.getName(
|
|
288
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
|
@@ -332,9 +332,9 @@ module.exports = {
|
|
|
332
332
|
SlackRouteManagement,
|
|
333
333
|
RuleDialog,
|
|
334
334
|
TemplateDialog,
|
|
335
|
-
RuleConditionBuilder,
|
|
336
335
|
RuleConditionGroup,
|
|
337
|
-
|
|
336
|
+
RuleConditionBuilder,
|
|
338
337
|
TemplateConditionBuilder,
|
|
338
|
+
ParameterBuilder,
|
|
339
339
|
TemplateConditionGroup,
|
|
340
340
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -198,7 +198,7 @@ export const TemplateDialog = React.forwardRef(function TemplateDialog(props, re
|
|
|
198
198
|
return React.createElement(customElements.getName(TemplateDialogWC) ?? 'template-dialog', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
export const
|
|
201
|
+
export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, ref) {
|
|
202
202
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
203
203
|
const _innerRef = React.useRef(null);
|
|
204
204
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -217,10 +217,10 @@ export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuild
|
|
|
217
217
|
el.removeEventListener('edit', _onEditFn);
|
|
218
218
|
};
|
|
219
219
|
}, []);
|
|
220
|
-
return React.createElement(customElements.getName(
|
|
220
|
+
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
export const
|
|
223
|
+
export const RuleConditionBuilder = React.forwardRef(function RuleConditionBuilder(props, ref) {
|
|
224
224
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
225
225
|
const _innerRef = React.useRef(null);
|
|
226
226
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -239,10 +239,10 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
|
|
|
239
239
|
el.removeEventListener('edit', _onEditFn);
|
|
240
240
|
};
|
|
241
241
|
}, []);
|
|
242
|
-
return React.createElement(customElements.getName(
|
|
242
|
+
return React.createElement(customElements.getName(RuleConditionBuilderWC) ?? 'rule-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
-
export const
|
|
245
|
+
export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
246
246
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
247
247
|
const _innerRef = React.useRef(null);
|
|
248
248
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -261,10 +261,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
|
|
|
261
261
|
el.removeEventListener('edit', _onEditFn);
|
|
262
262
|
};
|
|
263
263
|
}, []);
|
|
264
|
-
return React.createElement(customElements.getName(
|
|
264
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
export const
|
|
267
|
+
export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
268
268
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
269
269
|
const _innerRef = React.useRef(null);
|
|
270
270
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -283,7 +283,7 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
|
|
|
283
283
|
el.removeEventListener('edit', _onEditFn);
|
|
284
284
|
};
|
|
285
285
|
}, []);
|
|
286
|
-
return React.createElement(customElements.getName(
|
|
286
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
|
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.32.1",
|
|
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.
|
|
85
|
-
"@genesislcap/eslint-config": "15.
|
|
86
|
-
"@genesislcap/eslint-stylelint-builder": "15.
|
|
87
|
-
"@genesislcap/foundation-testing": "15.
|
|
88
|
-
"@genesislcap/genx": "15.
|
|
89
|
-
"@genesislcap/prettier-config": "15.
|
|
90
|
-
"@genesislcap/stylelint-config": "15.
|
|
91
|
-
"@genesislcap/vite-builder": "15.
|
|
92
|
-
"@genesislcap/webpack-builder": "15.
|
|
84
|
+
"@genesislcap/design-system-configurator": "15.32.1",
|
|
85
|
+
"@genesislcap/eslint-config": "15.32.1",
|
|
86
|
+
"@genesislcap/eslint-stylelint-builder": "15.32.1",
|
|
87
|
+
"@genesislcap/foundation-testing": "15.32.1",
|
|
88
|
+
"@genesislcap/genx": "15.32.1",
|
|
89
|
+
"@genesislcap/prettier-config": "15.32.1",
|
|
90
|
+
"@genesislcap/stylelint-config": "15.32.1",
|
|
91
|
+
"@genesislcap/vite-builder": "15.32.1",
|
|
92
|
+
"@genesislcap/webpack-builder": "15.32.1",
|
|
93
93
|
"dayjs": "^1.11.7"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@genesislcap/foundation-comms": "15.
|
|
97
|
-
"@genesislcap/foundation-criteria": "15.
|
|
98
|
-
"@genesislcap/foundation-entity-management": "15.
|
|
99
|
-
"@genesislcap/foundation-forms": "15.
|
|
100
|
-
"@genesislcap/foundation-layout": "15.
|
|
101
|
-
"@genesislcap/foundation-logger": "15.
|
|
102
|
-
"@genesislcap/foundation-notifications": "15.
|
|
103
|
-
"@genesislcap/foundation-ui": "15.
|
|
104
|
-
"@genesislcap/foundation-utils": "15.
|
|
105
|
-
"@genesislcap/rapid-design-system": "15.
|
|
106
|
-
"@genesislcap/rapid-grid-pro": "15.
|
|
107
|
-
"@genesislcap/web-core": "15.
|
|
96
|
+
"@genesislcap/foundation-comms": "15.32.1",
|
|
97
|
+
"@genesislcap/foundation-criteria": "15.32.1",
|
|
98
|
+
"@genesislcap/foundation-entity-management": "15.32.1",
|
|
99
|
+
"@genesislcap/foundation-forms": "15.32.1",
|
|
100
|
+
"@genesislcap/foundation-layout": "15.32.1",
|
|
101
|
+
"@genesislcap/foundation-logger": "15.32.1",
|
|
102
|
+
"@genesislcap/foundation-notifications": "15.32.1",
|
|
103
|
+
"@genesislcap/foundation-ui": "15.32.1",
|
|
104
|
+
"@genesislcap/foundation-utils": "15.32.1",
|
|
105
|
+
"@genesislcap/rapid-design-system": "15.32.1",
|
|
106
|
+
"@genesislcap/rapid-grid-pro": "15.32.1",
|
|
107
|
+
"@genesislcap/web-core": "15.32.1",
|
|
108
108
|
"lodash.debounce": "^4.0.8",
|
|
109
109
|
"rxjs": "^7.5.4"
|
|
110
110
|
},
|