@genesislcap/pbc-notify-ui 15.7.3-alpha-e7d4aa5.0 → 15.8.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 +345 -345
- package/dist/dts/react.d.ts +11 -11
- package/dist/react.cjs +7 -7
- package/dist/react.mjs +6 -6
- package/package.json +23 -23
|
@@ -415,27 +415,6 @@
|
|
|
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
|
-
},
|
|
439
418
|
{
|
|
440
419
|
"kind": "javascript-module",
|
|
441
420
|
"path": "src/utils/eventDetail.ts",
|
|
@@ -757,6 +736,27 @@
|
|
|
757
736
|
}
|
|
758
737
|
]
|
|
759
738
|
},
|
|
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",
|
|
@@ -7322,426 +7322,560 @@
|
|
|
7322
7322
|
},
|
|
7323
7323
|
{
|
|
7324
7324
|
"kind": "javascript-module",
|
|
7325
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
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",
|
|
7325
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
7347
7326
|
"declarations": [
|
|
7348
7327
|
{
|
|
7349
7328
|
"kind": "variable",
|
|
7350
|
-
"name": "
|
|
7351
|
-
"default": "html<
|
|
7329
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7330
|
+
"default": "html<TemplateConditionBuilder>`\n ${when(\n (x) => !x.isFirst,\n html`\n <div class=\"join-toggle-row\">\n <div class=\"join-toggle\">\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'AND'])}\"\n @click=${(x) => (x.joinOperator = 'AND')}\n >\n AND\n </span>\n <span\n class=\"join-text${(x) => classNames(['active', x.joinOperator === 'OR'])}\"\n @click=${(x) => (x.joinOperator = 'OR')}\n >\n OR\n </span>\n </div>\n </div>\n `,\n )}\n <div class=\"condition-builder\">\n <rapid-select\n :value=${sync((x) => x.leftValue)}\n :initialValue=${sync((x) => x.leftValue)}\n class=\"left-value\"\n >\n ${repeat(\n (x) => x.leftValueItems,\n html<Field>`\n <rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>\n `,\n )}\n </rapid-select>\n\n <rapid-select\n class=\"logical-operator${(x) =>\n classNames([\n '-null-and-blank',\n nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n ])}\"\n :value=${sync((x) => x.logicalOperator)}\n >\n ${repeat(\n (_) => Object.values(LogicalOperator),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),\n html`\n <rapid-select class=\"right-criteria\" :value=${sync((x) => x.rightCriteria)}>\n ${repeat(\n (_) => Object.values(RightCriteria),\n html`\n <rapid-option value=${(x) => x}>${(x) => x}</rapid-option>\n `,\n )}\n </rapid-select>\n\n ${when(\n (x) => x.rightCriteria === RightCriteria.VALUE,\n html<TemplateConditionBuilder>`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === FieldTypeEnum.BOOLEAN,\n html`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueText)}>\n <rapid-option value=\"true\">true</rapid-option>\n <rapid-option value=\"false\">false</rapid-option>\n </rapid-select>\n `,\n html`\n ${whenElse(\n (x) => JSON.parse(x.leftValue ?? '{}').FIELD_TYPE === 'ENUM',\n html`\n <rapid-multiselect\n class=\"right-criteria-select\"\n :selectedOptions=${(x) => x.rightValueMultiSelect}\n @selectionChange=${(x, c) => {\n x.rightValueMultiSelect = (c.event as CustomEvent).detail;\n }}\n search=\"true\"\n all=\"false\"\n >\n <multiselect-datasource\n value-field=\"value\"\n label-field=\"value\"\n :data=${(x) => x.getEnumValues().map((value) => ({ value }))}\n ></multiselect-datasource>\n </rapid-multiselect>\n `,\n html`\n <rapid-text-field\n class=\"right-criteria-text\"\n :value=${sync((x) => x.rightValueText)}\n placeholder=\"Value (comma-separate for multiple)\"\n autocomplete=\"off\"\n ></rapid-text-field>\n `,\n )}\n `,\n )}\n `,\n )}\n ${when(\n (x) => x.rightCriteria === RightCriteria.USER_ENTRY,\n html<TemplateConditionBuilder>`\n <rapid-select class=\"right-criteria-select\" :value=${sync((x) => x.rightValueSelect)}>\n ${(x) => rightValueItemsOptions(x.rightValueItems)}\n </rapid-select>\n `,\n )}\n `,\n )}\n\n <rapid-button appearance=\"icon\" class=\"delete\" @click=${(x) => x.deleteCondition()}>\n <rapid-icon\n style=\"opacity: 0.5\"\n variant=\"regular\"\n name=\"trash-alt\"\n size=\"lg\"\n part=\"icon\"\n ></rapid-icon>\n </rapid-button>\n </div>\n`"
|
|
7352
7331
|
}
|
|
7353
7332
|
],
|
|
7354
7333
|
"exports": [
|
|
7355
7334
|
{
|
|
7356
7335
|
"kind": "js",
|
|
7357
|
-
"name": "
|
|
7336
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7358
7337
|
"declaration": {
|
|
7359
|
-
"name": "
|
|
7360
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7338
|
+
"name": "TemplateConditionBuilderTemplate",
|
|
7339
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts"
|
|
7361
7340
|
}
|
|
7362
7341
|
}
|
|
7363
7342
|
]
|
|
7364
7343
|
},
|
|
7365
7344
|
{
|
|
7366
7345
|
"kind": "javascript-module",
|
|
7367
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7346
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts",
|
|
7368
7347
|
"declarations": [
|
|
7369
7348
|
{
|
|
7370
7349
|
"kind": "class",
|
|
7371
|
-
"description": "
|
|
7372
|
-
"name": "
|
|
7350
|
+
"description": "Condition builder for template notification rules.",
|
|
7351
|
+
"name": "TemplateConditionBuilder",
|
|
7373
7352
|
"members": [
|
|
7374
7353
|
{
|
|
7375
7354
|
"kind": "field",
|
|
7376
|
-
"name": "
|
|
7355
|
+
"name": "condition",
|
|
7377
7356
|
"type": {
|
|
7378
|
-
"text": "
|
|
7357
|
+
"text": "ConditionBuilderEntity"
|
|
7379
7358
|
}
|
|
7380
7359
|
},
|
|
7381
7360
|
{
|
|
7382
7361
|
"kind": "field",
|
|
7383
|
-
"name": "
|
|
7362
|
+
"name": "parameters",
|
|
7384
7363
|
"type": {
|
|
7385
|
-
"text": "
|
|
7386
|
-
}
|
|
7364
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7365
|
+
},
|
|
7366
|
+
"default": "[]"
|
|
7387
7367
|
},
|
|
7388
7368
|
{
|
|
7389
7369
|
"kind": "field",
|
|
7390
|
-
"name": "
|
|
7370
|
+
"name": "fields",
|
|
7391
7371
|
"type": {
|
|
7392
|
-
"text": "string"
|
|
7393
|
-
}
|
|
7372
|
+
"text": "Array<string>"
|
|
7373
|
+
},
|
|
7374
|
+
"default": "[]"
|
|
7394
7375
|
},
|
|
7395
7376
|
{
|
|
7396
7377
|
"kind": "field",
|
|
7397
|
-
"name": "
|
|
7378
|
+
"name": "isFirst",
|
|
7379
|
+
"type": {
|
|
7380
|
+
"text": "boolean"
|
|
7381
|
+
},
|
|
7382
|
+
"default": "false"
|
|
7383
|
+
},
|
|
7384
|
+
{
|
|
7385
|
+
"kind": "field",
|
|
7386
|
+
"name": "joinOperator",
|
|
7398
7387
|
"type": {
|
|
7399
7388
|
"text": "string"
|
|
7400
7389
|
}
|
|
7401
7390
|
},
|
|
7402
7391
|
{
|
|
7403
7392
|
"kind": "field",
|
|
7404
|
-
"name": "
|
|
7393
|
+
"name": "leftValue",
|
|
7394
|
+
"type": {
|
|
7395
|
+
"text": "any"
|
|
7396
|
+
},
|
|
7397
|
+
"default": "null"
|
|
7398
|
+
},
|
|
7399
|
+
{
|
|
7400
|
+
"kind": "field",
|
|
7401
|
+
"name": "leftValueItems",
|
|
7402
|
+
"type": {
|
|
7403
|
+
"text": "Array<any>"
|
|
7404
|
+
},
|
|
7405
|
+
"default": "[]"
|
|
7406
|
+
},
|
|
7407
|
+
{
|
|
7408
|
+
"kind": "field",
|
|
7409
|
+
"name": "logicalOperator",
|
|
7405
7410
|
"type": {
|
|
7406
7411
|
"text": "string"
|
|
7407
|
-
}
|
|
7412
|
+
},
|
|
7413
|
+
"default": "null"
|
|
7408
7414
|
},
|
|
7409
7415
|
{
|
|
7410
7416
|
"kind": "field",
|
|
7411
|
-
"name": "
|
|
7417
|
+
"name": "rightCriteria",
|
|
7412
7418
|
"type": {
|
|
7413
7419
|
"text": "string"
|
|
7414
7420
|
}
|
|
7415
7421
|
},
|
|
7416
7422
|
{
|
|
7417
7423
|
"kind": "field",
|
|
7418
|
-
"name": "
|
|
7424
|
+
"name": "rightValueText",
|
|
7419
7425
|
"type": {
|
|
7420
7426
|
"text": "string"
|
|
7421
|
-
}
|
|
7427
|
+
},
|
|
7428
|
+
"default": "null"
|
|
7422
7429
|
},
|
|
7423
7430
|
{
|
|
7424
7431
|
"kind": "field",
|
|
7425
|
-
"name": "
|
|
7432
|
+
"name": "rightValueSelect",
|
|
7426
7433
|
"type": {
|
|
7427
|
-
"text": "
|
|
7428
|
-
}
|
|
7434
|
+
"text": "string"
|
|
7435
|
+
},
|
|
7436
|
+
"default": "null"
|
|
7429
7437
|
},
|
|
7430
7438
|
{
|
|
7431
7439
|
"kind": "field",
|
|
7432
|
-
"name": "
|
|
7440
|
+
"name": "rightValueItems",
|
|
7433
7441
|
"type": {
|
|
7434
|
-
"text": "
|
|
7435
|
-
}
|
|
7442
|
+
"text": "Array<any>"
|
|
7443
|
+
},
|
|
7444
|
+
"default": "[]"
|
|
7436
7445
|
},
|
|
7437
7446
|
{
|
|
7438
7447
|
"kind": "field",
|
|
7439
|
-
"name": "
|
|
7448
|
+
"name": "rightValueMultiSelect",
|
|
7440
7449
|
"type": {
|
|
7441
|
-
"text": "
|
|
7450
|
+
"text": "string[]"
|
|
7442
7451
|
},
|
|
7443
|
-
"default": "[
|
|
7452
|
+
"default": "[]"
|
|
7444
7453
|
},
|
|
7445
7454
|
{
|
|
7446
7455
|
"kind": "method",
|
|
7447
|
-
"name": "
|
|
7456
|
+
"name": "deleteCondition"
|
|
7448
7457
|
},
|
|
7449
7458
|
{
|
|
7450
7459
|
"kind": "method",
|
|
7451
|
-
"name": "
|
|
7460
|
+
"name": "conditionChanged"
|
|
7452
7461
|
},
|
|
7453
7462
|
{
|
|
7454
7463
|
"kind": "method",
|
|
7455
|
-
"name": "
|
|
7464
|
+
"name": "joinOperatorChanged"
|
|
7456
7465
|
},
|
|
7457
7466
|
{
|
|
7458
7467
|
"kind": "method",
|
|
7459
|
-
"name": "
|
|
7468
|
+
"name": "parametersChanged"
|
|
7460
7469
|
},
|
|
7461
7470
|
{
|
|
7462
7471
|
"kind": "method",
|
|
7463
|
-
"name": "
|
|
7472
|
+
"name": "getMatchingParameter",
|
|
7473
|
+
"privacy": "private",
|
|
7474
|
+
"return": {
|
|
7475
|
+
"type": {
|
|
7476
|
+
"text": "ParameterBuilderEntity | undefined"
|
|
7477
|
+
}
|
|
7478
|
+
}
|
|
7464
7479
|
},
|
|
7465
7480
|
{
|
|
7466
7481
|
"kind": "method",
|
|
7467
|
-
"name": "
|
|
7482
|
+
"name": "syncParameterBinding",
|
|
7483
|
+
"privacy": "private",
|
|
7484
|
+
"return": {
|
|
7485
|
+
"type": {
|
|
7486
|
+
"text": "boolean"
|
|
7487
|
+
}
|
|
7488
|
+
}
|
|
7468
7489
|
},
|
|
7469
7490
|
{
|
|
7470
7491
|
"kind": "method",
|
|
7471
|
-
"name": "
|
|
7492
|
+
"name": "resetToValueEditor",
|
|
7493
|
+
"privacy": "private"
|
|
7472
7494
|
},
|
|
7473
7495
|
{
|
|
7474
7496
|
"kind": "method",
|
|
7475
|
-
"name": "
|
|
7497
|
+
"name": "fieldsChanged"
|
|
7476
7498
|
},
|
|
7477
7499
|
{
|
|
7478
7500
|
"kind": "method",
|
|
7479
|
-
"name": "
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7501
|
+
"name": "logicalOperatorChanged"
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
"kind": "method",
|
|
7505
|
+
"name": "assignLeftValue",
|
|
7506
|
+
"privacy": "private"
|
|
7507
|
+
},
|
|
7508
|
+
{
|
|
7509
|
+
"kind": "method",
|
|
7510
|
+
"name": "leftValueChanged"
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
"kind": "method",
|
|
7514
|
+
"name": "assignRightValue",
|
|
7515
|
+
"privacy": "private"
|
|
7516
|
+
},
|
|
7517
|
+
{
|
|
7518
|
+
"kind": "method",
|
|
7519
|
+
"name": "rightCriteriaChanged"
|
|
7520
|
+
},
|
|
7521
|
+
{
|
|
7522
|
+
"kind": "method",
|
|
7523
|
+
"name": "clearRightValueText",
|
|
7524
|
+
"privacy": "private"
|
|
7525
|
+
},
|
|
7526
|
+
{
|
|
7527
|
+
"kind": "method",
|
|
7528
|
+
"name": "clearRightValueSelect",
|
|
7529
|
+
"privacy": "private"
|
|
7530
|
+
},
|
|
7531
|
+
{
|
|
7532
|
+
"kind": "method",
|
|
7533
|
+
"name": "rightValueTextChanged"
|
|
7534
|
+
},
|
|
7535
|
+
{
|
|
7536
|
+
"kind": "method",
|
|
7537
|
+
"name": "rightValueSelectChanged"
|
|
7538
|
+
},
|
|
7539
|
+
{
|
|
7540
|
+
"kind": "method",
|
|
7541
|
+
"name": "rightValueMultiSelectChanged"
|
|
7542
|
+
},
|
|
7543
|
+
{
|
|
7544
|
+
"kind": "method",
|
|
7545
|
+
"name": "getEnumValues",
|
|
7546
|
+
"return": {
|
|
7547
|
+
"type": {
|
|
7548
|
+
"text": "string[]"
|
|
7487
7549
|
}
|
|
7488
|
-
|
|
7550
|
+
}
|
|
7489
7551
|
}
|
|
7490
7552
|
],
|
|
7491
7553
|
"events": [
|
|
7492
7554
|
{
|
|
7493
|
-
"description": "Fired when a
|
|
7555
|
+
"description": "Fired when a condition is deleted. detail: `ConditionBuilderEntity`",
|
|
7494
7556
|
"name": "delete"
|
|
7495
7557
|
},
|
|
7496
7558
|
{
|
|
7497
|
-
"description": "Fired when a
|
|
7559
|
+
"description": "Fired when a condition is edited. detail: `ConditionBuilderEntity`",
|
|
7498
7560
|
"name": "edit"
|
|
7499
7561
|
}
|
|
7500
7562
|
],
|
|
7501
7563
|
"attributes": [
|
|
7502
7564
|
{
|
|
7503
|
-
"name": "
|
|
7565
|
+
"name": "condition",
|
|
7504
7566
|
"type": {
|
|
7505
|
-
"text": "
|
|
7567
|
+
"text": "ConditionBuilderEntity"
|
|
7506
7568
|
},
|
|
7507
|
-
"fieldName": "
|
|
7508
|
-
}
|
|
7509
|
-
|
|
7510
|
-
|
|
7569
|
+
"fieldName": "condition"
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"name": "parameters",
|
|
7573
|
+
"type": {
|
|
7574
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7575
|
+
},
|
|
7576
|
+
"default": "[]",
|
|
7577
|
+
"fieldName": "parameters"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
"name": "fields",
|
|
7581
|
+
"type": {
|
|
7582
|
+
"text": "Array<string>"
|
|
7583
|
+
},
|
|
7584
|
+
"default": "[]",
|
|
7585
|
+
"fieldName": "fields"
|
|
7586
|
+
}
|
|
7587
|
+
],
|
|
7588
|
+
"superclass": {
|
|
7511
7589
|
"name": "GenesisElement",
|
|
7512
7590
|
"package": "@genesislcap/web-core"
|
|
7513
7591
|
},
|
|
7514
|
-
"tagName": "
|
|
7592
|
+
"tagName": "template-condition-builder",
|
|
7515
7593
|
"customElement": true
|
|
7516
7594
|
}
|
|
7517
7595
|
],
|
|
7518
7596
|
"exports": [
|
|
7519
7597
|
{
|
|
7520
7598
|
"kind": "js",
|
|
7521
|
-
"name": "
|
|
7599
|
+
"name": "TemplateConditionBuilder",
|
|
7522
7600
|
"declaration": {
|
|
7523
|
-
"name": "
|
|
7524
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7601
|
+
"name": "TemplateConditionBuilder",
|
|
7602
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
7525
7603
|
}
|
|
7526
7604
|
},
|
|
7527
7605
|
{
|
|
7528
7606
|
"kind": "custom-element-definition",
|
|
7529
|
-
"name": "
|
|
7607
|
+
"name": "template-condition-builder",
|
|
7530
7608
|
"declaration": {
|
|
7531
|
-
"name": "
|
|
7532
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7609
|
+
"name": "TemplateConditionBuilder",
|
|
7610
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.ts"
|
|
7533
7611
|
}
|
|
7534
7612
|
}
|
|
7535
7613
|
]
|
|
7536
7614
|
},
|
|
7537
7615
|
{
|
|
7538
7616
|
"kind": "javascript-module",
|
|
7539
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7617
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts",
|
|
7540
7618
|
"declarations": [
|
|
7541
7619
|
{
|
|
7542
7620
|
"kind": "variable",
|
|
7543
|
-
"name": "
|
|
7544
|
-
"default": "
|
|
7621
|
+
"name": "ParameterBuilderStyles",
|
|
7622
|
+
"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`"
|
|
7545
7623
|
}
|
|
7546
7624
|
],
|
|
7547
7625
|
"exports": [
|
|
7548
7626
|
{
|
|
7549
7627
|
"kind": "js",
|
|
7550
|
-
"name": "
|
|
7628
|
+
"name": "ParameterBuilderStyles",
|
|
7551
7629
|
"declaration": {
|
|
7552
|
-
"name": "
|
|
7553
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7630
|
+
"name": "ParameterBuilderStyles",
|
|
7631
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.ts"
|
|
7554
7632
|
}
|
|
7555
7633
|
}
|
|
7556
7634
|
]
|
|
7557
7635
|
},
|
|
7558
7636
|
{
|
|
7559
7637
|
"kind": "javascript-module",
|
|
7560
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7638
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts",
|
|
7639
|
+
"declarations": [
|
|
7640
|
+
{
|
|
7641
|
+
"kind": "variable",
|
|
7642
|
+
"name": "ParameterBuilderTemplate",
|
|
7643
|
+
"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`"
|
|
7644
|
+
}
|
|
7645
|
+
],
|
|
7646
|
+
"exports": [
|
|
7647
|
+
{
|
|
7648
|
+
"kind": "js",
|
|
7649
|
+
"name": "ParameterBuilderTemplate",
|
|
7650
|
+
"declaration": {
|
|
7651
|
+
"name": "ParameterBuilderTemplate",
|
|
7652
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"
|
|
7653
|
+
}
|
|
7654
|
+
}
|
|
7655
|
+
]
|
|
7656
|
+
},
|
|
7657
|
+
{
|
|
7658
|
+
"kind": "javascript-module",
|
|
7659
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts",
|
|
7561
7660
|
"declarations": [
|
|
7562
7661
|
{
|
|
7563
7662
|
"kind": "class",
|
|
7564
|
-
"description": "
|
|
7565
|
-
"name": "
|
|
7663
|
+
"description": "Parameter builder for notification templates.",
|
|
7664
|
+
"name": "ParameterBuilder",
|
|
7566
7665
|
"members": [
|
|
7567
7666
|
{
|
|
7568
7667
|
"kind": "field",
|
|
7569
|
-
"name": "
|
|
7668
|
+
"name": "parameter",
|
|
7570
7669
|
"type": {
|
|
7571
|
-
"text": "
|
|
7670
|
+
"text": "ParameterBuilderEntity"
|
|
7572
7671
|
}
|
|
7573
7672
|
},
|
|
7574
7673
|
{
|
|
7575
7674
|
"kind": "field",
|
|
7576
|
-
"name": "
|
|
7675
|
+
"name": "name",
|
|
7577
7676
|
"type": {
|
|
7578
|
-
"text": "
|
|
7579
|
-
}
|
|
7580
|
-
"default": "[]"
|
|
7677
|
+
"text": "string"
|
|
7678
|
+
}
|
|
7581
7679
|
},
|
|
7582
7680
|
{
|
|
7583
7681
|
"kind": "field",
|
|
7584
|
-
"name": "
|
|
7682
|
+
"name": "label",
|
|
7585
7683
|
"type": {
|
|
7586
|
-
"text": "
|
|
7587
|
-
}
|
|
7588
|
-
"default": "[]"
|
|
7684
|
+
"text": "string"
|
|
7685
|
+
}
|
|
7589
7686
|
},
|
|
7590
7687
|
{
|
|
7591
7688
|
"kind": "field",
|
|
7592
|
-
"name": "
|
|
7689
|
+
"name": "type",
|
|
7593
7690
|
"type": {
|
|
7594
|
-
"text": "
|
|
7595
|
-
}
|
|
7596
|
-
"default": "false"
|
|
7691
|
+
"text": "string"
|
|
7692
|
+
}
|
|
7597
7693
|
},
|
|
7598
7694
|
{
|
|
7599
7695
|
"kind": "field",
|
|
7600
|
-
"name": "
|
|
7696
|
+
"name": "sourceType",
|
|
7601
7697
|
"type": {
|
|
7602
7698
|
"text": "string"
|
|
7603
7699
|
}
|
|
7604
7700
|
},
|
|
7605
7701
|
{
|
|
7606
7702
|
"kind": "field",
|
|
7607
|
-
"name": "
|
|
7703
|
+
"name": "sourceSelected",
|
|
7608
7704
|
"type": {
|
|
7609
|
-
"text": "
|
|
7705
|
+
"text": "string"
|
|
7706
|
+
}
|
|
7707
|
+
},
|
|
7708
|
+
{
|
|
7709
|
+
"kind": "field",
|
|
7710
|
+
"name": "sourceTyped",
|
|
7711
|
+
"type": {
|
|
7712
|
+
"text": "string"
|
|
7713
|
+
}
|
|
7714
|
+
},
|
|
7715
|
+
{
|
|
7716
|
+
"kind": "field",
|
|
7717
|
+
"name": "sourceTextField",
|
|
7718
|
+
"type": {
|
|
7719
|
+
"text": "TextField"
|
|
7720
|
+
}
|
|
7721
|
+
},
|
|
7722
|
+
{
|
|
7723
|
+
"kind": "field",
|
|
7724
|
+
"name": "sourceSelect",
|
|
7725
|
+
"type": {
|
|
7726
|
+
"text": "Select"
|
|
7727
|
+
}
|
|
7728
|
+
},
|
|
7729
|
+
{
|
|
7730
|
+
"kind": "field",
|
|
7731
|
+
"name": "reqRepItems",
|
|
7732
|
+
"type": {
|
|
7733
|
+
"text": "array"
|
|
7610
7734
|
},
|
|
7611
|
-
"default": "[]"
|
|
7735
|
+
"default": "['REQUEST_1', 'REQUEST_2', 'REQUEST_3']"
|
|
7612
7736
|
},
|
|
7613
7737
|
{
|
|
7614
7738
|
"kind": "method",
|
|
7615
|
-
"name": "
|
|
7739
|
+
"name": "deleteParameter"
|
|
7616
7740
|
},
|
|
7617
7741
|
{
|
|
7618
7742
|
"kind": "method",
|
|
7619
|
-
"name": "
|
|
7743
|
+
"name": "parameterChanged"
|
|
7620
7744
|
},
|
|
7621
7745
|
{
|
|
7622
7746
|
"kind": "method",
|
|
7623
|
-
"name": "
|
|
7747
|
+
"name": "nameChanged"
|
|
7624
7748
|
},
|
|
7625
7749
|
{
|
|
7626
7750
|
"kind": "method",
|
|
7627
|
-
"name": "
|
|
7751
|
+
"name": "labelChanged"
|
|
7628
7752
|
},
|
|
7629
7753
|
{
|
|
7630
7754
|
"kind": "method",
|
|
7631
|
-
"name": "
|
|
7632
|
-
"parameters": [
|
|
7633
|
-
{
|
|
7634
|
-
"name": "_editedChild",
|
|
7635
|
-
"type": {
|
|
7636
|
-
"text": "ConditionNode"
|
|
7637
|
-
}
|
|
7638
|
-
}
|
|
7639
|
-
]
|
|
7755
|
+
"name": "typeChanged"
|
|
7640
7756
|
},
|
|
7641
7757
|
{
|
|
7642
7758
|
"kind": "method",
|
|
7643
|
-
"name": "
|
|
7759
|
+
"name": "sourceTypeChanged"
|
|
7760
|
+
},
|
|
7761
|
+
{
|
|
7762
|
+
"kind": "method",
|
|
7763
|
+
"name": "sourceSelectedChanged"
|
|
7764
|
+
},
|
|
7765
|
+
{
|
|
7766
|
+
"kind": "method",
|
|
7767
|
+
"name": "sourceTypedChanged"
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
"kind": "method",
|
|
7771
|
+
"name": "genericChanged",
|
|
7772
|
+
"privacy": "private",
|
|
7644
7773
|
"parameters": [
|
|
7645
7774
|
{
|
|
7646
|
-
"name": "
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7775
|
+
"name": "parameterAttribute"
|
|
7776
|
+
},
|
|
7777
|
+
{
|
|
7778
|
+
"name": "value"
|
|
7650
7779
|
}
|
|
7651
7780
|
]
|
|
7652
|
-
},
|
|
7653
|
-
{
|
|
7654
|
-
"kind": "method",
|
|
7655
|
-
"name": "deleteSelf"
|
|
7656
7781
|
}
|
|
7657
7782
|
],
|
|
7658
7783
|
"events": [
|
|
7659
7784
|
{
|
|
7660
|
-
"description": "Fired when
|
|
7785
|
+
"description": "Fired when a parameter is deleted. detail: `ParameterBuilderEntity`",
|
|
7661
7786
|
"name": "delete"
|
|
7662
7787
|
},
|
|
7663
7788
|
{
|
|
7664
|
-
"description": "Fired when
|
|
7789
|
+
"description": "Fired when a parameter is edited. detail: `ParameterBuilderEntity`",
|
|
7665
7790
|
"name": "edit"
|
|
7666
7791
|
}
|
|
7667
7792
|
],
|
|
7793
|
+
"attributes": [
|
|
7794
|
+
{
|
|
7795
|
+
"name": "parameter",
|
|
7796
|
+
"type": {
|
|
7797
|
+
"text": "ParameterBuilderEntity"
|
|
7798
|
+
},
|
|
7799
|
+
"fieldName": "parameter"
|
|
7800
|
+
}
|
|
7801
|
+
],
|
|
7668
7802
|
"superclass": {
|
|
7669
7803
|
"name": "GenesisElement",
|
|
7670
7804
|
"package": "@genesislcap/web-core"
|
|
7671
7805
|
},
|
|
7672
|
-
"tagName": "
|
|
7806
|
+
"tagName": "parameter-builder",
|
|
7673
7807
|
"customElement": true
|
|
7674
7808
|
}
|
|
7675
7809
|
],
|
|
7676
7810
|
"exports": [
|
|
7677
7811
|
{
|
|
7678
7812
|
"kind": "js",
|
|
7679
|
-
"name": "
|
|
7813
|
+
"name": "ParameterBuilder",
|
|
7680
7814
|
"declaration": {
|
|
7681
|
-
"name": "
|
|
7682
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7815
|
+
"name": "ParameterBuilder",
|
|
7816
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7683
7817
|
}
|
|
7684
7818
|
},
|
|
7685
7819
|
{
|
|
7686
7820
|
"kind": "custom-element-definition",
|
|
7687
|
-
"name": "
|
|
7821
|
+
"name": "parameter-builder",
|
|
7688
7822
|
"declaration": {
|
|
7689
|
-
"name": "
|
|
7690
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/
|
|
7823
|
+
"name": "ParameterBuilder",
|
|
7824
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.ts"
|
|
7691
7825
|
}
|
|
7692
7826
|
}
|
|
7693
7827
|
]
|
|
7694
7828
|
},
|
|
7695
7829
|
{
|
|
7696
7830
|
"kind": "javascript-module",
|
|
7697
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7831
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
7698
7832
|
"declarations": [
|
|
7699
7833
|
{
|
|
7700
7834
|
"kind": "variable",
|
|
7701
|
-
"name": "
|
|
7702
|
-
"default": "html<
|
|
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`"
|
|
7703
7837
|
}
|
|
7704
7838
|
],
|
|
7705
7839
|
"exports": [
|
|
7706
7840
|
{
|
|
7707
7841
|
"kind": "js",
|
|
7708
|
-
"name": "
|
|
7842
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7709
7843
|
"declaration": {
|
|
7710
|
-
"name": "
|
|
7711
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7844
|
+
"name": "TemplateConditionGroupTemplate",
|
|
7845
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
7712
7846
|
}
|
|
7713
7847
|
}
|
|
7714
7848
|
]
|
|
7715
7849
|
},
|
|
7716
7850
|
{
|
|
7717
7851
|
"kind": "javascript-module",
|
|
7718
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7852
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
7719
7853
|
"declarations": [
|
|
7720
7854
|
{
|
|
7721
7855
|
"kind": "class",
|
|
7722
|
-
"description": "
|
|
7723
|
-
"name": "
|
|
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",
|
|
7724
7858
|
"members": [
|
|
7725
7859
|
{
|
|
7726
7860
|
"kind": "field",
|
|
7727
|
-
"name": "
|
|
7861
|
+
"name": "node",
|
|
7728
7862
|
"type": {
|
|
7729
|
-
"text": "
|
|
7863
|
+
"text": "ConditionGroupEntity"
|
|
7730
7864
|
}
|
|
7731
7865
|
},
|
|
7732
7866
|
{
|
|
7733
7867
|
"kind": "field",
|
|
7734
|
-
"name": "
|
|
7868
|
+
"name": "fields",
|
|
7735
7869
|
"type": {
|
|
7736
|
-
"text": "
|
|
7870
|
+
"text": "Field[]"
|
|
7737
7871
|
},
|
|
7738
7872
|
"default": "[]"
|
|
7739
7873
|
},
|
|
7740
7874
|
{
|
|
7741
7875
|
"kind": "field",
|
|
7742
|
-
"name": "
|
|
7876
|
+
"name": "parameters",
|
|
7743
7877
|
"type": {
|
|
7744
|
-
"text": "Array<
|
|
7878
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
7745
7879
|
},
|
|
7746
7880
|
"default": "[]"
|
|
7747
7881
|
},
|
|
@@ -7762,74 +7896,15 @@
|
|
|
7762
7896
|
},
|
|
7763
7897
|
{
|
|
7764
7898
|
"kind": "field",
|
|
7765
|
-
"name": "
|
|
7766
|
-
"type": {
|
|
7767
|
-
"text": "any"
|
|
7768
|
-
},
|
|
7769
|
-
"default": "null"
|
|
7770
|
-
},
|
|
7771
|
-
{
|
|
7772
|
-
"kind": "field",
|
|
7773
|
-
"name": "leftValueItems",
|
|
7774
|
-
"type": {
|
|
7775
|
-
"text": "Array<any>"
|
|
7776
|
-
},
|
|
7777
|
-
"default": "[]"
|
|
7778
|
-
},
|
|
7779
|
-
{
|
|
7780
|
-
"kind": "field",
|
|
7781
|
-
"name": "logicalOperator",
|
|
7782
|
-
"type": {
|
|
7783
|
-
"text": "string"
|
|
7784
|
-
},
|
|
7785
|
-
"default": "null"
|
|
7786
|
-
},
|
|
7787
|
-
{
|
|
7788
|
-
"kind": "field",
|
|
7789
|
-
"name": "rightCriteria",
|
|
7790
|
-
"type": {
|
|
7791
|
-
"text": "string"
|
|
7792
|
-
}
|
|
7793
|
-
},
|
|
7794
|
-
{
|
|
7795
|
-
"kind": "field",
|
|
7796
|
-
"name": "rightValueText",
|
|
7797
|
-
"type": {
|
|
7798
|
-
"text": "string"
|
|
7799
|
-
},
|
|
7800
|
-
"default": "null"
|
|
7801
|
-
},
|
|
7802
|
-
{
|
|
7803
|
-
"kind": "field",
|
|
7804
|
-
"name": "rightValueSelect",
|
|
7805
|
-
"type": {
|
|
7806
|
-
"text": "string"
|
|
7807
|
-
},
|
|
7808
|
-
"default": "null"
|
|
7809
|
-
},
|
|
7810
|
-
{
|
|
7811
|
-
"kind": "field",
|
|
7812
|
-
"name": "rightValueItems",
|
|
7813
|
-
"type": {
|
|
7814
|
-
"text": "Array<any>"
|
|
7815
|
-
},
|
|
7816
|
-
"default": "[]"
|
|
7817
|
-
},
|
|
7818
|
-
{
|
|
7819
|
-
"kind": "field",
|
|
7820
|
-
"name": "rightValueMultiSelect",
|
|
7899
|
+
"name": "groupChildren",
|
|
7821
7900
|
"type": {
|
|
7822
|
-
"text": "
|
|
7901
|
+
"text": "ConditionNode[]"
|
|
7823
7902
|
},
|
|
7824
7903
|
"default": "[]"
|
|
7825
7904
|
},
|
|
7826
7905
|
{
|
|
7827
7906
|
"kind": "method",
|
|
7828
|
-
"name": "
|
|
7829
|
-
},
|
|
7830
|
-
{
|
|
7831
|
-
"kind": "method",
|
|
7832
|
-
"name": "conditionChanged"
|
|
7907
|
+
"name": "nodeChanged"
|
|
7833
7908
|
},
|
|
7834
7909
|
{
|
|
7835
7910
|
"kind": "method",
|
|
@@ -7837,149 +7912,74 @@
|
|
|
7837
7912
|
},
|
|
7838
7913
|
{
|
|
7839
7914
|
"kind": "method",
|
|
7840
|
-
"name": "
|
|
7915
|
+
"name": "newCondition"
|
|
7841
7916
|
},
|
|
7842
7917
|
{
|
|
7843
7918
|
"kind": "method",
|
|
7844
|
-
"name": "
|
|
7845
|
-
"privacy": "private",
|
|
7846
|
-
"return": {
|
|
7847
|
-
"type": {
|
|
7848
|
-
"text": "ParameterBuilderEntity | undefined"
|
|
7849
|
-
}
|
|
7850
|
-
}
|
|
7919
|
+
"name": "newGroup"
|
|
7851
7920
|
},
|
|
7852
7921
|
{
|
|
7853
7922
|
"kind": "method",
|
|
7854
|
-
"name": "
|
|
7855
|
-
"
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
"
|
|
7923
|
+
"name": "editChild",
|
|
7924
|
+
"parameters": [
|
|
7925
|
+
{
|
|
7926
|
+
"name": "_editedChild",
|
|
7927
|
+
"type": {
|
|
7928
|
+
"text": "ConditionNode"
|
|
7929
|
+
}
|
|
7859
7930
|
}
|
|
7860
|
-
|
|
7861
|
-
},
|
|
7862
|
-
{
|
|
7863
|
-
"kind": "method",
|
|
7864
|
-
"name": "resetToValueEditor",
|
|
7865
|
-
"privacy": "private"
|
|
7866
|
-
},
|
|
7867
|
-
{
|
|
7868
|
-
"kind": "method",
|
|
7869
|
-
"name": "fieldsChanged"
|
|
7870
|
-
},
|
|
7871
|
-
{
|
|
7872
|
-
"kind": "method",
|
|
7873
|
-
"name": "logicalOperatorChanged"
|
|
7874
|
-
},
|
|
7875
|
-
{
|
|
7876
|
-
"kind": "method",
|
|
7877
|
-
"name": "assignLeftValue",
|
|
7878
|
-
"privacy": "private"
|
|
7879
|
-
},
|
|
7880
|
-
{
|
|
7881
|
-
"kind": "method",
|
|
7882
|
-
"name": "leftValueChanged"
|
|
7883
|
-
},
|
|
7884
|
-
{
|
|
7885
|
-
"kind": "method",
|
|
7886
|
-
"name": "assignRightValue",
|
|
7887
|
-
"privacy": "private"
|
|
7888
|
-
},
|
|
7889
|
-
{
|
|
7890
|
-
"kind": "method",
|
|
7891
|
-
"name": "rightCriteriaChanged"
|
|
7892
|
-
},
|
|
7893
|
-
{
|
|
7894
|
-
"kind": "method",
|
|
7895
|
-
"name": "clearRightValueText",
|
|
7896
|
-
"privacy": "private"
|
|
7897
|
-
},
|
|
7898
|
-
{
|
|
7899
|
-
"kind": "method",
|
|
7900
|
-
"name": "clearRightValueSelect",
|
|
7901
|
-
"privacy": "private"
|
|
7902
|
-
},
|
|
7903
|
-
{
|
|
7904
|
-
"kind": "method",
|
|
7905
|
-
"name": "rightValueTextChanged"
|
|
7906
|
-
},
|
|
7907
|
-
{
|
|
7908
|
-
"kind": "method",
|
|
7909
|
-
"name": "rightValueSelectChanged"
|
|
7931
|
+
]
|
|
7910
7932
|
},
|
|
7911
7933
|
{
|
|
7912
7934
|
"kind": "method",
|
|
7913
|
-
"name": "
|
|
7935
|
+
"name": "deleteChild",
|
|
7936
|
+
"parameters": [
|
|
7937
|
+
{
|
|
7938
|
+
"name": "deletedChild",
|
|
7939
|
+
"type": {
|
|
7940
|
+
"text": "ConditionNode"
|
|
7941
|
+
}
|
|
7942
|
+
}
|
|
7943
|
+
]
|
|
7914
7944
|
},
|
|
7915
7945
|
{
|
|
7916
7946
|
"kind": "method",
|
|
7917
|
-
"name": "
|
|
7918
|
-
"return": {
|
|
7919
|
-
"type": {
|
|
7920
|
-
"text": "string[]"
|
|
7921
|
-
}
|
|
7922
|
-
}
|
|
7947
|
+
"name": "deleteSelf"
|
|
7923
7948
|
}
|
|
7924
7949
|
],
|
|
7925
7950
|
"events": [
|
|
7926
7951
|
{
|
|
7927
|
-
"description": "Fired when
|
|
7952
|
+
"description": "Fired when this whole group should be removed",
|
|
7928
7953
|
"name": "delete"
|
|
7929
7954
|
},
|
|
7930
7955
|
{
|
|
7931
|
-
"description": "Fired when
|
|
7956
|
+
"description": "Fired when anything inside this group changes",
|
|
7932
7957
|
"name": "edit"
|
|
7933
7958
|
}
|
|
7934
7959
|
],
|
|
7935
|
-
"attributes": [
|
|
7936
|
-
{
|
|
7937
|
-
"name": "condition",
|
|
7938
|
-
"type": {
|
|
7939
|
-
"text": "ConditionBuilderEntity"
|
|
7940
|
-
},
|
|
7941
|
-
"fieldName": "condition"
|
|
7942
|
-
},
|
|
7943
|
-
{
|
|
7944
|
-
"name": "parameters",
|
|
7945
|
-
"type": {
|
|
7946
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
7947
|
-
},
|
|
7948
|
-
"default": "[]",
|
|
7949
|
-
"fieldName": "parameters"
|
|
7950
|
-
},
|
|
7951
|
-
{
|
|
7952
|
-
"name": "fields",
|
|
7953
|
-
"type": {
|
|
7954
|
-
"text": "Array<string>"
|
|
7955
|
-
},
|
|
7956
|
-
"default": "[]",
|
|
7957
|
-
"fieldName": "fields"
|
|
7958
|
-
}
|
|
7959
|
-
],
|
|
7960
7960
|
"superclass": {
|
|
7961
7961
|
"name": "GenesisElement",
|
|
7962
7962
|
"package": "@genesislcap/web-core"
|
|
7963
7963
|
},
|
|
7964
|
-
"tagName": "template-condition-
|
|
7964
|
+
"tagName": "template-condition-group",
|
|
7965
7965
|
"customElement": true
|
|
7966
7966
|
}
|
|
7967
7967
|
],
|
|
7968
7968
|
"exports": [
|
|
7969
7969
|
{
|
|
7970
7970
|
"kind": "js",
|
|
7971
|
-
"name": "
|
|
7971
|
+
"name": "TemplateConditionGroup",
|
|
7972
7972
|
"declaration": {
|
|
7973
|
-
"name": "
|
|
7974
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7973
|
+
"name": "TemplateConditionGroup",
|
|
7974
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7975
7975
|
}
|
|
7976
7976
|
},
|
|
7977
7977
|
{
|
|
7978
7978
|
"kind": "custom-element-definition",
|
|
7979
|
-
"name": "template-condition-
|
|
7979
|
+
"name": "template-condition-group",
|
|
7980
7980
|
"declaration": {
|
|
7981
|
-
"name": "
|
|
7982
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-
|
|
7981
|
+
"name": "TemplateConditionGroup",
|
|
7982
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
7983
7983
|
}
|
|
7984
7984
|
}
|
|
7985
7985
|
]
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -257,6 +257,17 @@ export declare const RuleConditionGroup: React.ForwardRefExoticComponent<
|
|
|
257
257
|
>;
|
|
258
258
|
export type RuleConditionGroupRef = RuleConditionGroupWC;
|
|
259
259
|
|
|
260
|
+
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
261
|
+
React.PropsWithChildren<
|
|
262
|
+
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
263
|
+
HTMLWCProps & {
|
|
264
|
+
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
265
|
+
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
266
|
+
}
|
|
267
|
+
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
268
|
+
>;
|
|
269
|
+
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
270
|
+
|
|
260
271
|
export declare const ParameterBuilder: React.ForwardRefExoticComponent<
|
|
261
272
|
React.PropsWithChildren<
|
|
262
273
|
Omit<PublicOf<ParameterBuilderWC>, 'children' | 'style'> &
|
|
@@ -279,15 +290,4 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
|
|
|
279
290
|
>;
|
|
280
291
|
export type TemplateConditionGroupRef = TemplateConditionGroupWC;
|
|
281
292
|
|
|
282
|
-
export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
|
|
283
|
-
React.PropsWithChildren<
|
|
284
|
-
Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
|
|
285
|
-
HTMLWCProps & {
|
|
286
|
-
onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
287
|
-
onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
|
|
288
|
-
}
|
|
289
|
-
> & React.RefAttributes<TemplateConditionBuilderWC>
|
|
290
|
-
>;
|
|
291
|
-
export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
|
|
292
|
-
|
|
293
293
|
export {};
|
package/dist/react.cjs
CHANGED
|
@@ -232,7 +232,7 @@ const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(props, r
|
|
|
232
232
|
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
const
|
|
235
|
+
const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
236
236
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
237
237
|
const _innerRef = React.useRef(null);
|
|
238
238
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -251,10 +251,10 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
|
|
|
251
251
|
el.removeEventListener('edit', _onEditFn);
|
|
252
252
|
};
|
|
253
253
|
}, []);
|
|
254
|
-
return React.createElement(customElements.getName(
|
|
254
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
255
255
|
});
|
|
256
256
|
|
|
257
|
-
const
|
|
257
|
+
const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
258
258
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
259
259
|
const _innerRef = React.useRef(null);
|
|
260
260
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -273,10 +273,10 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
|
|
|
273
273
|
el.removeEventListener('edit', _onEditFn);
|
|
274
274
|
};
|
|
275
275
|
}, []);
|
|
276
|
-
return React.createElement(customElements.getName(
|
|
276
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
const
|
|
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(
|
|
298
|
+
return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
299
299
|
});
|
|
300
300
|
|
|
301
301
|
module.exports = {
|
|
@@ -320,7 +320,7 @@ module.exports = {
|
|
|
320
320
|
TemplateDialog,
|
|
321
321
|
RuleConditionBuilder,
|
|
322
322
|
RuleConditionGroup,
|
|
323
|
+
TemplateConditionBuilder,
|
|
323
324
|
ParameterBuilder,
|
|
324
325
|
TemplateConditionGroup,
|
|
325
|
-
TemplateConditionBuilder,
|
|
326
326
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -230,7 +230,7 @@ export const RuleConditionGroup = React.forwardRef(function RuleConditionGroup(p
|
|
|
230
230
|
return React.createElement(customElements.getName(RuleConditionGroupWC) ?? 'rule-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
231
231
|
});
|
|
232
232
|
|
|
233
|
-
export const
|
|
233
|
+
export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
|
|
234
234
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
235
235
|
const _innerRef = React.useRef(null);
|
|
236
236
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -249,10 +249,10 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
|
|
|
249
249
|
el.removeEventListener('edit', _onEditFn);
|
|
250
250
|
};
|
|
251
251
|
}, []);
|
|
252
|
-
return React.createElement(customElements.getName(
|
|
252
|
+
return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
253
253
|
});
|
|
254
254
|
|
|
255
|
-
export const
|
|
255
|
+
export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref) {
|
|
256
256
|
const { onDelete, onEdit, children, ...rest } = props;
|
|
257
257
|
const _innerRef = React.useRef(null);
|
|
258
258
|
const _onDeleteRef = React.useRef(onDelete);
|
|
@@ -271,10 +271,10 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
|
|
|
271
271
|
el.removeEventListener('edit', _onEditFn);
|
|
272
272
|
};
|
|
273
273
|
}, []);
|
|
274
|
-
return React.createElement(customElements.getName(
|
|
274
|
+
return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
-
export const
|
|
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(
|
|
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.
|
|
4
|
+
"version": "15.8.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.8.1",
|
|
85
|
+
"@genesislcap/eslint-config": "15.8.1",
|
|
86
|
+
"@genesislcap/eslint-stylelint-builder": "15.8.1",
|
|
87
|
+
"@genesislcap/foundation-testing": "15.8.1",
|
|
88
|
+
"@genesislcap/genx": "15.8.1",
|
|
89
|
+
"@genesislcap/prettier-config": "15.8.1",
|
|
90
|
+
"@genesislcap/stylelint-config": "15.8.1",
|
|
91
|
+
"@genesislcap/vite-builder": "15.8.1",
|
|
92
|
+
"@genesislcap/webpack-builder": "15.8.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.8.1",
|
|
97
|
+
"@genesislcap/foundation-criteria": "15.8.1",
|
|
98
|
+
"@genesislcap/foundation-entity-management": "15.8.1",
|
|
99
|
+
"@genesislcap/foundation-forms": "15.8.1",
|
|
100
|
+
"@genesislcap/foundation-layout": "15.8.1",
|
|
101
|
+
"@genesislcap/foundation-logger": "15.8.1",
|
|
102
|
+
"@genesislcap/foundation-notifications": "15.8.1",
|
|
103
|
+
"@genesislcap/foundation-ui": "15.8.1",
|
|
104
|
+
"@genesislcap/foundation-utils": "15.8.1",
|
|
105
|
+
"@genesislcap/rapid-design-system": "15.8.1",
|
|
106
|
+
"@genesislcap/rapid-grid-pro": "15.8.1",
|
|
107
|
+
"@genesislcap/web-core": "15.8.1",
|
|
108
108
|
"lodash.debounce": "^4.0.8",
|
|
109
109
|
"rxjs": "^7.5.4"
|
|
110
110
|
},
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
114
|
"customElements": "dist/custom-elements.json",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "e9e2b412bf2c21763346f86687698ce2d5d99a56"
|
|
116
116
|
}
|