@genesislcap/pbc-notify-ui 15.87.0 → 15.88.1-GENC-0.7
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 +626 -626
- package/dist/dts/react.d.ts +19 -19
- package/dist/react.cjs +10 -10
- package/dist/react.mjs +8 -8
- package/package.json +22 -22
|
@@ -362,145 +362,21 @@
|
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
"kind": "javascript-module",
|
|
365
|
-
"path": "src/
|
|
366
|
-
"declarations": [
|
|
367
|
-
{
|
|
368
|
-
"kind": "variable",
|
|
369
|
-
"name": "AlertService"
|
|
370
|
-
}
|
|
371
|
-
],
|
|
372
|
-
"exports": [
|
|
373
|
-
{
|
|
374
|
-
"kind": "js",
|
|
375
|
-
"name": "AlertService",
|
|
376
|
-
"declaration": {
|
|
377
|
-
"name": "AlertService",
|
|
378
|
-
"module": "src/services/alert.service.ts"
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
]
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
"kind": "javascript-module",
|
|
385
|
-
"path": "src/services/inbox.service.ts",
|
|
386
|
-
"declarations": [
|
|
387
|
-
{
|
|
388
|
-
"kind": "variable",
|
|
389
|
-
"name": "INBOX_PAGE_SIZE",
|
|
390
|
-
"type": {
|
|
391
|
-
"text": "number"
|
|
392
|
-
},
|
|
393
|
-
"default": "20",
|
|
394
|
-
"description": "Number of alert rows fetched per data server batch. The first batch is loaded\non subscribe; subsequent batches are fetched via FoundationInboxService.getMoreRows."
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"kind": "variable",
|
|
398
|
-
"name": "FoundationInboxService"
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
"exports": [
|
|
402
|
-
{
|
|
403
|
-
"kind": "js",
|
|
404
|
-
"name": "INBOX_PAGE_SIZE",
|
|
405
|
-
"declaration": {
|
|
406
|
-
"name": "INBOX_PAGE_SIZE",
|
|
407
|
-
"module": "src/services/inbox.service.ts"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"kind": "js",
|
|
412
|
-
"name": "FoundationInboxService",
|
|
413
|
-
"declaration": {
|
|
414
|
-
"name": "FoundationInboxService",
|
|
415
|
-
"module": "src/services/inbox.service.ts"
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
]
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"kind": "javascript-module",
|
|
422
|
-
"path": "src/services/notify.service.ts",
|
|
423
|
-
"declarations": [
|
|
424
|
-
{
|
|
425
|
-
"kind": "variable",
|
|
426
|
-
"name": "NotifyService"
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"exports": [
|
|
430
|
-
{
|
|
431
|
-
"kind": "js",
|
|
432
|
-
"name": "NotifyRouteTopic",
|
|
433
|
-
"declaration": {
|
|
434
|
-
"name": "NotifyRouteTopic",
|
|
435
|
-
"module": "src/services/notify.service.ts"
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"kind": "js",
|
|
440
|
-
"name": "NotifyService",
|
|
441
|
-
"declaration": {
|
|
442
|
-
"name": "NotifyService",
|
|
443
|
-
"module": "src/services/notify.service.ts"
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
]
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"kind": "javascript-module",
|
|
450
|
-
"path": "src/services/rule.service.ts",
|
|
451
|
-
"declarations": [
|
|
452
|
-
{
|
|
453
|
-
"kind": "variable",
|
|
454
|
-
"name": "RuleService"
|
|
455
|
-
}
|
|
456
|
-
],
|
|
457
|
-
"exports": [
|
|
458
|
-
{
|
|
459
|
-
"kind": "js",
|
|
460
|
-
"name": "RuleService",
|
|
461
|
-
"declaration": {
|
|
462
|
-
"name": "RuleService",
|
|
463
|
-
"module": "src/services/rule.service.ts"
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
]
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"kind": "javascript-module",
|
|
470
|
-
"path": "src/services/system.service.ts",
|
|
471
|
-
"declarations": [
|
|
472
|
-
{
|
|
473
|
-
"kind": "variable",
|
|
474
|
-
"name": "SystemService"
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
"exports": [
|
|
478
|
-
{
|
|
479
|
-
"kind": "js",
|
|
480
|
-
"name": "SystemService",
|
|
481
|
-
"declaration": {
|
|
482
|
-
"name": "SystemService",
|
|
483
|
-
"module": "src/services/system.service.ts"
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
]
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"kind": "javascript-module",
|
|
490
|
-
"path": "src/services/template.service.ts",
|
|
365
|
+
"path": "src/styles/scrollbar.styles.ts",
|
|
491
366
|
"declarations": [
|
|
492
367
|
{
|
|
493
368
|
"kind": "variable",
|
|
494
|
-
"name": "
|
|
369
|
+
"name": "scrollbarStyles",
|
|
370
|
+
"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`"
|
|
495
371
|
}
|
|
496
372
|
],
|
|
497
373
|
"exports": [
|
|
498
374
|
{
|
|
499
375
|
"kind": "js",
|
|
500
|
-
"name": "
|
|
376
|
+
"name": "scrollbarStyles",
|
|
501
377
|
"declaration": {
|
|
502
|
-
"name": "
|
|
503
|
-
"module": "src/
|
|
378
|
+
"name": "scrollbarStyles",
|
|
379
|
+
"module": "src/styles/scrollbar.styles.ts"
|
|
504
380
|
}
|
|
505
381
|
}
|
|
506
382
|
]
|
|
@@ -828,148 +704,272 @@
|
|
|
828
704
|
},
|
|
829
705
|
{
|
|
830
706
|
"kind": "javascript-module",
|
|
831
|
-
"path": "src/
|
|
707
|
+
"path": "src/services/alert.service.ts",
|
|
832
708
|
"declarations": [
|
|
833
709
|
{
|
|
834
710
|
"kind": "variable",
|
|
835
|
-
"name": "
|
|
836
|
-
"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`"
|
|
711
|
+
"name": "AlertService"
|
|
837
712
|
}
|
|
838
713
|
],
|
|
839
714
|
"exports": [
|
|
840
715
|
{
|
|
841
716
|
"kind": "js",
|
|
842
|
-
"name": "
|
|
717
|
+
"name": "AlertService",
|
|
843
718
|
"declaration": {
|
|
844
|
-
"name": "
|
|
845
|
-
"module": "src/
|
|
719
|
+
"name": "AlertService",
|
|
720
|
+
"module": "src/services/alert.service.ts"
|
|
846
721
|
}
|
|
847
722
|
}
|
|
848
723
|
]
|
|
849
724
|
},
|
|
850
725
|
{
|
|
851
726
|
"kind": "javascript-module",
|
|
852
|
-
"path": "src/
|
|
727
|
+
"path": "src/services/inbox.service.ts",
|
|
853
728
|
"declarations": [
|
|
854
729
|
{
|
|
855
730
|
"kind": "variable",
|
|
856
|
-
"name": "
|
|
857
|
-
"
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
"
|
|
861
|
-
"
|
|
862
|
-
"default": "css`\n .alert-log-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .alert-log-tab-content {\n flex: 1;\n overflow: auto;\n }\n\n .toast {\n display: flex;\n flex-direction: row;\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .toast-severity {\n width: calc(var(--design-unit) * 1px);\n background-color: white;\n margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);\n }\n\n .toast-header {\n font-weight: bold;\n }\n\n .toast-message {\n font-size: var(--type-ramp-minus-2-font-size);\n overflow-wrap: anywhere;\n }\n\n .toast-bottom {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .toast-content {\n display: flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);\n }\n\n .toast-date {\n color: var(--neutral-foreground-hint);\n font-size: calc(var(--design-unit) * 3px);\n }\n\n .no-row-container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n color: var(--neutral-stroke-rest);\n }\n\n .load-more-container {\n display: flex;\n justify-content: center;\n padding: calc(var(--design-unit) * 2px);\n }\n\n .loading-indicator {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest);\n background: var(--neutral-layer-3);\n color: var(--neutral-foreground-rest);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n font-size: var(--type-ramp-minus-1-font-size);\n }\n`"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
"kind": "variable",
|
|
866
|
-
"name": "subscriptions",
|
|
867
|
-
"default": "css`\n .my-alerts-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .my-alerts-tab-content {\n flex: 1;\n overflow: auto;\n }\n`"
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"kind": "variable",
|
|
871
|
-
"name": "subscribe",
|
|
872
|
-
"default": "css`\n .subscribe-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .subscribe-tab-content {\n flex: 1;\n overflow: auto;\n }\n\n .sounds-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n overflow: hidden;\n }\n\n .sounds-tab-panel foundation-sounds-panel {\n display: flex;\n flex: 1;\n min-height: 0;\n height: 100%;\n }\n`"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"kind": "variable",
|
|
876
|
-
"name": "ruleAndTemplate",
|
|
877
|
-
"default": "css`\n .template {\n .template-row {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 3px);\n }\n\n .template-details {\n flex: 1;\n min-width: 0;\n }\n\n .template-subscribe-toggle {\n flex-shrink: 0;\n margin-top: calc(var(--design-unit) * 1px);\n }\n\n .template-name {\n font-weight: 700;\n }\n\n .template-description {\n font-size: var(--type-ramp-minus-2-font-size);\n }\n\n .template-datetime {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n }\n\n .channel-chip-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 1px);\n margin-top: calc(var(--design-unit) * 1px);\n justify-content: flex-end;\n }\n\n .channel-chip {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 999px);\n font-size: var(--type-ramp-minus-2-font-size);\n\n &[appearance='selected'] {\n background-color: color-mix(in srgb, #7acc79, transparent 20%);\n color: #fff;\n border-color: transparent;\n }\n\n &[disabled] {\n opacity: 50%;\n background-color: var(--neutral-layer-3);\n color: var(--neutral-foreground-hint);\n cursor: not-allowed;\n }\n }\n }\n\n .rule {\n cursor: pointer;\n\n .rule-name {\n font-weight: 700;\n }\n\n .rule-expression {\n font-size: var(--type-ramp-minus-2-font-size);\n }\n\n .rule-datetime {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n }\n }\n\n .rule,\n .template {\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n }\n\n .template-subscribing {\n position: relative;\n z-index: 5;\n overflow: visible;\n padding-bottom: calc(var(--design-unit) * 24px);\n }\n\n .rule-status-actions {\n display: flex;\n flex-direction: row;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .rule:hover {\n background-color: var(--neutral-layer-3);\n }\n\n .rule-actions {\n margin-left: auto;\n display: flex;\n gap: calc(var(--design-unit) * 3px);\n justify-content: space-between;\n visibility: hidden;\n }\n\n .rule:hover > .rule-status-actions > .rule-actions {\n visibility: visible;\n }\n\n .active {\n color: #7acc79;\n }\n\n .paused {\n color: #ffb660;\n }\n\n .rule-action-edit,\n .rule-action-enable-disable,\n .rule-action-delete {\n cursor: pointer;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n`"
|
|
731
|
+
"name": "INBOX_PAGE_SIZE",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "number"
|
|
734
|
+
},
|
|
735
|
+
"default": "20",
|
|
736
|
+
"description": "Number of alert rows fetched per data server batch. The first batch is loaded\non subscribe; subsequent batches are fetched via FoundationInboxService.getMoreRows."
|
|
878
737
|
},
|
|
879
738
|
{
|
|
880
739
|
"kind": "variable",
|
|
881
|
-
"name": "
|
|
882
|
-
"default": "css`\n ${scrollbarStyles}\n\n :host {\n display: flex;\n min-height: 0;\n height: 100%;\n width: 100%;\n }\n\n ${tabs}\n ${search}\n ${inboxHeader}\n ${alertsNewAndAlertsHistory}\n\n .inbox-content {\n flex: 1;\n display: flex;\n min-height: 0;\n }\n\n ${alertsNewAndAlertsHistory}\n ${subscriptions}\n ${subscribe}\n ${ruleAndTemplate}\n`",
|
|
883
|
-
"privacy": "public"
|
|
740
|
+
"name": "FoundationInboxService"
|
|
884
741
|
}
|
|
885
742
|
],
|
|
886
743
|
"exports": [
|
|
887
744
|
{
|
|
888
745
|
"kind": "js",
|
|
889
|
-
"name": "
|
|
890
|
-
"declaration": {
|
|
891
|
-
"name": "inboxHeader",
|
|
892
|
-
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
893
|
-
}
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
"kind": "js",
|
|
897
|
-
"name": "alertsNewAndAlertsHistory",
|
|
746
|
+
"name": "INBOX_PAGE_SIZE",
|
|
898
747
|
"declaration": {
|
|
899
|
-
"name": "
|
|
900
|
-
"module": "src/
|
|
748
|
+
"name": "INBOX_PAGE_SIZE",
|
|
749
|
+
"module": "src/services/inbox.service.ts"
|
|
901
750
|
}
|
|
902
751
|
},
|
|
903
752
|
{
|
|
904
753
|
"kind": "js",
|
|
905
|
-
"name": "
|
|
754
|
+
"name": "FoundationInboxService",
|
|
906
755
|
"declaration": {
|
|
907
|
-
"name": "
|
|
908
|
-
"module": "src/
|
|
756
|
+
"name": "FoundationInboxService",
|
|
757
|
+
"module": "src/services/inbox.service.ts"
|
|
909
758
|
}
|
|
910
|
-
}
|
|
759
|
+
}
|
|
760
|
+
]
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"kind": "javascript-module",
|
|
764
|
+
"path": "src/services/notify.service.ts",
|
|
765
|
+
"declarations": [
|
|
911
766
|
{
|
|
912
|
-
"kind": "
|
|
913
|
-
"name": "
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
}
|
|
918
|
-
},
|
|
767
|
+
"kind": "variable",
|
|
768
|
+
"name": "NotifyService"
|
|
769
|
+
}
|
|
770
|
+
],
|
|
771
|
+
"exports": [
|
|
919
772
|
{
|
|
920
773
|
"kind": "js",
|
|
921
|
-
"name": "
|
|
774
|
+
"name": "NotifyRouteTopic",
|
|
922
775
|
"declaration": {
|
|
923
|
-
"name": "
|
|
924
|
-
"module": "src/
|
|
776
|
+
"name": "NotifyRouteTopic",
|
|
777
|
+
"module": "src/services/notify.service.ts"
|
|
925
778
|
}
|
|
926
779
|
},
|
|
927
780
|
{
|
|
928
781
|
"kind": "js",
|
|
929
|
-
"name": "
|
|
782
|
+
"name": "NotifyService",
|
|
930
783
|
"declaration": {
|
|
931
|
-
"name": "
|
|
932
|
-
"module": "src/
|
|
784
|
+
"name": "NotifyService",
|
|
785
|
+
"module": "src/services/notify.service.ts"
|
|
933
786
|
}
|
|
934
787
|
}
|
|
935
788
|
]
|
|
936
789
|
},
|
|
937
790
|
{
|
|
938
791
|
"kind": "javascript-module",
|
|
939
|
-
"path": "src/
|
|
792
|
+
"path": "src/services/rule.service.ts",
|
|
940
793
|
"declarations": [
|
|
941
794
|
{
|
|
942
795
|
"kind": "variable",
|
|
943
|
-
"name": "
|
|
944
|
-
"default": "html<FoundationInbox>`\n <div class=\"inbox-content\">\n <rapid-tabs ${ref('tabs')} appearance=\"secondary\" activeid=${(x) => InboxTab.ALERTS_NEW}>\n <rapid-tab\n slot=\"alert-log-tab\"\n id=${InboxTab.ALERTS_NEW}\n @click=${(x) => x.inboxTabChanged(InboxTab.ALERTS_NEW)}\n appearance=\"secondary\"\n >\n Alerts\n </rapid-tab>\n <rapid-tab\n slot=\"alert-log-tab\"\n id=${InboxTab.ALERT_HISTORY}\n @click=${(x) => x.inboxTabChanged(InboxTab.ALERT_HISTORY)}\n appearance=\"secondary\"\n >\n Alert History\n </rapid-tab>\n ${when(\n (x) => x.auth.currentUser?.hasPermission(NotifyPermission.NotificationRuleTemplateView),\n html`\n <rapid-tab\n slot=\"subscribe-tab\"\n id=${InboxTab.SUBSCRIBE}\n @click=${(x) => x.inboxTabChanged(InboxTab.SUBSCRIBE)}\n appearance=\"secondary\"\n >\n Subscribe\n </rapid-tab>\n `,\n )}\n <rapid-tab\n slot=\"sounds-tab\"\n id=${InboxTab.SOUNDS}\n @click=${(x) => x.inboxTabChanged(InboxTab.SOUNDS)}\n appearance=\"secondary\"\n >\n Sounds\n </rapid-tab>\n\n <!-- Alerts -->\n ${(_) => alertsTab(InboxTab.ALERTS_NEW)} ${(_) => alertsTab(InboxTab.ALERT_HISTORY)}\n ${when(\n (x) => x.auth.currentUser?.hasPermission(NotifyPermission.NotificationRuleTemplateView),\n html`\n <rapid-tab-panel\n slot=\"subscribe-tab\"\n class=\"subscribe-tab-panel\"\n id=${InboxTab.SUBSCRIBE}\n style=${(x) => (x.selectedTab === InboxTab.SUBSCRIBE ? '' : 'display: none;')}\n >\n <div class=\"search\">\n <rapid-text-field\n class=\"search-input\"\n @input=${(x, c) => {\n x.searchSubscribe = (c.event.target as HTMLInputElement).value;\n x.filterSearchSubscribe();\n }}\n placeholder=\"Search Templates...\"\n autocomplete=\"off\"\n ></rapid-text-field>\n </div>\n <div class=\"subscribe-tab-content\">\n ${repeat(\n (x) => x.templatesFilter,\n html<RuleTemplate, FoundationInbox>`\n <div\n class=\"template ${(x, c) =>\n c.parent.pendingSubscribeTemplateId === x.ID ? 'template-subscribing' : ''}\"\n id=${(x) => x.ID}\n >\n <div class=\"template-row\">\n <div class=\"template-details\">\n <div class=\"template-name\">${(x) => x.NAME}</div>\n <div class=\"template-description\">${(x) => x.DESCRIPTION}</div>\n </div>\n <rapid-switch\n class=\"template-subscribe-toggle\"\n :checked=${(x, c) => c.parent.isTemplateSubscribed(x)}\n @change=${(x, c) => c.parent.handleTemplateToggle(x, c.event as Event)}\n @click=${(_, c) => c.event.stopPropagation()}\n ></rapid-switch>\n </div>\n ${when(\n (x, c) => (c.parent.channelOptionsByTemplate[x.ID] ?? []).length > 0,\n html<RuleTemplate, FoundationInbox>`\n <div class=\"channel-chip-row\">\n ${repeat(\n (x, c) => c.parent.channelOptionsByTemplate[x.ID] ?? [],\n html<string>`\n <rapid-button\n class=\"channel-chip\"\n appearance=${(x, c) =>\n inboxFromChip(c).isChannelEnabled(c.parent as RuleTemplate, x)\n ? 'selected'\n : ''}\n ?disabled=${(x, c) => {\n const inbox = inboxFromChip(c);\n const template = c.parent as RuleTemplate;\n return (\n !inbox.isTemplateSubscribed(template) ||\n inbox.isChannelTogglePending(template, x)\n );\n }}\n @click=${(x, c) => {\n c.event.stopPropagation();\n inboxFromChip(c).toggleChannel(c.parent as RuleTemplate, x);\n }}\n >\n ${(x, c) => inboxFromChip(c).channelChipLabel(x)}\n </rapid-button>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x, c) => c.parent.pendingSubscribeTemplateId === x.ID,\n html`\n <inbox-subscription\n inline\n :template=${(x, c) => c.parent.ruleTemplateDetails}\n :extraParameterDetails=${(x, c) =>\n c.parent.pendingChannelParameterDetails}\n @templateSubscribed=${(x, c) =>\n c.parent.onTemplateSubscribed(eventDetail(c))}\n @subscribeCancelled=${(x, c) => c.parent.cancelPendingSubscribe()}\n ></inbox-subscription>\n `,\n )}\n </div>\n `,\n )}\n </div>\n </rapid-tab-panel>\n `,\n )}\n <rapid-tab-panel\n slot=\"sounds-tab\"\n class=\"sounds-tab-panel\"\n id=${InboxTab.SOUNDS}\n style=${(x) => (x.selectedTab === InboxTab.SOUNDS ? '' : 'display: none;')}\n >\n <foundation-sounds-panel ${ref('sounds')}></foundation-sounds-panel>\n </rapid-tab-panel>\n </rapid-tabs>\n </div>\n`",
|
|
945
|
-
"privacy": "public"
|
|
796
|
+
"name": "RuleService"
|
|
946
797
|
}
|
|
947
798
|
],
|
|
948
799
|
"exports": [
|
|
949
800
|
{
|
|
950
801
|
"kind": "js",
|
|
951
|
-
"name": "
|
|
802
|
+
"name": "RuleService",
|
|
952
803
|
"declaration": {
|
|
953
|
-
"name": "
|
|
954
|
-
"module": "src/
|
|
804
|
+
"name": "RuleService",
|
|
805
|
+
"module": "src/services/rule.service.ts"
|
|
955
806
|
}
|
|
956
807
|
}
|
|
957
808
|
]
|
|
958
809
|
},
|
|
959
810
|
{
|
|
960
811
|
"kind": "javascript-module",
|
|
961
|
-
"path": "src/
|
|
812
|
+
"path": "src/services/system.service.ts",
|
|
962
813
|
"declarations": [
|
|
963
814
|
{
|
|
964
|
-
"kind": "
|
|
965
|
-
"
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
"
|
|
972
|
-
"
|
|
815
|
+
"kind": "variable",
|
|
816
|
+
"name": "SystemService"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"exports": [
|
|
820
|
+
{
|
|
821
|
+
"kind": "js",
|
|
822
|
+
"name": "SystemService",
|
|
823
|
+
"declaration": {
|
|
824
|
+
"name": "SystemService",
|
|
825
|
+
"module": "src/services/system.service.ts"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "javascript-module",
|
|
832
|
+
"path": "src/services/template.service.ts",
|
|
833
|
+
"declarations": [
|
|
834
|
+
{
|
|
835
|
+
"kind": "variable",
|
|
836
|
+
"name": "TemplateService"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"exports": [
|
|
840
|
+
{
|
|
841
|
+
"kind": "js",
|
|
842
|
+
"name": "TemplateService",
|
|
843
|
+
"declaration": {
|
|
844
|
+
"name": "TemplateService",
|
|
845
|
+
"module": "src/services/template.service.ts"
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"kind": "javascript-module",
|
|
852
|
+
"path": "src/components/foundation-inbox/inbox.styles.ts",
|
|
853
|
+
"declarations": [
|
|
854
|
+
{
|
|
855
|
+
"kind": "variable",
|
|
856
|
+
"name": "inboxHeader",
|
|
857
|
+
"default": "css`\n .inbox-header {\n display: flex;\n flex: 0;\n align-items: center;\n justify-content: space-between;\n padding: calc(var(--design-unit) * 3px);\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .inbox-header-title {\n font-size: calc(var(--design-unit) * 4px);\n font-weight: 700;\n padding: 0;\n margin: 0 auto 0 0;\n }\n\n .inbox-header-close {\n text-align: center;\n min-width: 30px;\n height: 30px;\n }\n\n .inbox-header-close::part(control) {\n padding: 0;\n margin: 0;\n }\n\n .inbox-header-close::part(start) {\n margin-inline-end: 0;\n }\n`"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"kind": "variable",
|
|
861
|
+
"name": "alertsNewAndAlertsHistory",
|
|
862
|
+
"default": "css`\n .alert-log-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .alert-log-tab-content {\n flex: 1;\n overflow: auto;\n }\n\n .toast {\n display: flex;\n flex-direction: row;\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .toast-severity {\n width: calc(var(--design-unit) * 1px);\n background-color: white;\n margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);\n }\n\n .toast-header {\n font-weight: bold;\n }\n\n .toast-message {\n font-size: var(--type-ramp-minus-2-font-size);\n overflow-wrap: anywhere;\n }\n\n .toast-bottom {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .toast-content {\n display: flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)\n calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);\n }\n\n .toast-date {\n color: var(--neutral-foreground-hint);\n font-size: calc(var(--design-unit) * 3px);\n }\n\n .no-row-container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n color: var(--neutral-stroke-rest);\n }\n\n .load-more-container {\n display: flex;\n justify-content: center;\n padding: calc(var(--design-unit) * 2px);\n }\n\n .loading-indicator {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest);\n background: var(--neutral-layer-3);\n color: var(--neutral-foreground-rest);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n font-size: var(--type-ramp-minus-1-font-size);\n }\n`"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"kind": "variable",
|
|
866
|
+
"name": "subscriptions",
|
|
867
|
+
"default": "css`\n .my-alerts-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .my-alerts-tab-content {\n flex: 1;\n overflow: auto;\n }\n`"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"kind": "variable",
|
|
871
|
+
"name": "subscribe",
|
|
872
|
+
"default": "css`\n .subscribe-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n }\n\n .subscribe-tab-content {\n flex: 1;\n overflow: auto;\n }\n\n .sounds-tab-panel {\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n overflow: hidden;\n }\n\n .sounds-tab-panel foundation-sounds-panel {\n display: flex;\n flex: 1;\n min-height: 0;\n height: 100%;\n }\n`"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"kind": "variable",
|
|
876
|
+
"name": "ruleAndTemplate",
|
|
877
|
+
"default": "css`\n .template {\n .template-row {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: calc(var(--design-unit) * 3px);\n }\n\n .template-details {\n flex: 1;\n min-width: 0;\n }\n\n .template-subscribe-toggle {\n flex-shrink: 0;\n margin-top: calc(var(--design-unit) * 1px);\n }\n\n .template-name {\n font-weight: 700;\n }\n\n .template-description {\n font-size: var(--type-ramp-minus-2-font-size);\n }\n\n .template-datetime {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n }\n\n .channel-chip-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: calc(var(--design-unit) * 1px);\n margin-top: calc(var(--design-unit) * 1px);\n justify-content: flex-end;\n }\n\n .channel-chip {\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-radius: calc(var(--control-corner-radius) * 999px);\n font-size: var(--type-ramp-minus-2-font-size);\n\n &[appearance='selected'] {\n background-color: color-mix(in srgb, #7acc79, transparent 20%);\n color: #fff;\n border-color: transparent;\n }\n\n &[disabled] {\n opacity: 50%;\n background-color: var(--neutral-layer-3);\n color: var(--neutral-foreground-hint);\n cursor: not-allowed;\n }\n }\n }\n\n .rule {\n cursor: pointer;\n\n .rule-name {\n font-weight: 700;\n }\n\n .rule-expression {\n font-size: var(--type-ramp-minus-2-font-size);\n }\n\n .rule-datetime {\n font-size: var(--type-ramp-minus-1-font-size);\n color: var(--neutral-foreground-hint);\n }\n }\n\n .rule,\n .template {\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);\n }\n\n .template-subscribing {\n position: relative;\n z-index: 5;\n overflow: visible;\n padding-bottom: calc(var(--design-unit) * 24px);\n }\n\n .rule-status-actions {\n display: flex;\n flex-direction: row;\n gap: calc(var(--design-unit) * 2px);\n }\n\n .rule:hover {\n background-color: var(--neutral-layer-3);\n }\n\n .rule-actions {\n margin-left: auto;\n display: flex;\n gap: calc(var(--design-unit) * 3px);\n justify-content: space-between;\n visibility: hidden;\n }\n\n .rule:hover > .rule-status-actions > .rule-actions {\n visibility: visible;\n }\n\n .active {\n color: #7acc79;\n }\n\n .paused {\n color: #ffb660;\n }\n\n .rule-action-edit,\n .rule-action-enable-disable,\n .rule-action-delete {\n cursor: pointer;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n`"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"kind": "variable",
|
|
881
|
+
"name": "FoundationInboxStyles",
|
|
882
|
+
"default": "css`\n ${scrollbarStyles}\n\n :host {\n display: flex;\n min-height: 0;\n height: 100%;\n width: 100%;\n }\n\n ${tabs}\n ${search}\n ${inboxHeader}\n ${alertsNewAndAlertsHistory}\n\n .inbox-content {\n flex: 1;\n display: flex;\n min-height: 0;\n }\n\n ${alertsNewAndAlertsHistory}\n ${subscriptions}\n ${subscribe}\n ${ruleAndTemplate}\n`",
|
|
883
|
+
"privacy": "public"
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
"exports": [
|
|
887
|
+
{
|
|
888
|
+
"kind": "js",
|
|
889
|
+
"name": "inboxHeader",
|
|
890
|
+
"declaration": {
|
|
891
|
+
"name": "inboxHeader",
|
|
892
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"kind": "js",
|
|
897
|
+
"name": "alertsNewAndAlertsHistory",
|
|
898
|
+
"declaration": {
|
|
899
|
+
"name": "alertsNewAndAlertsHistory",
|
|
900
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"kind": "js",
|
|
905
|
+
"name": "subscriptions",
|
|
906
|
+
"declaration": {
|
|
907
|
+
"name": "subscriptions",
|
|
908
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"kind": "js",
|
|
913
|
+
"name": "subscribe",
|
|
914
|
+
"declaration": {
|
|
915
|
+
"name": "subscribe",
|
|
916
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"kind": "js",
|
|
921
|
+
"name": "ruleAndTemplate",
|
|
922
|
+
"declaration": {
|
|
923
|
+
"name": "ruleAndTemplate",
|
|
924
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"kind": "js",
|
|
929
|
+
"name": "FoundationInboxStyles",
|
|
930
|
+
"declaration": {
|
|
931
|
+
"name": "FoundationInboxStyles",
|
|
932
|
+
"module": "src/components/foundation-inbox/inbox.styles.ts"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"kind": "javascript-module",
|
|
939
|
+
"path": "src/components/foundation-inbox/inbox.template.ts",
|
|
940
|
+
"declarations": [
|
|
941
|
+
{
|
|
942
|
+
"kind": "variable",
|
|
943
|
+
"name": "FoundationInboxTemplate",
|
|
944
|
+
"default": "html<FoundationInbox>`\n <div class=\"inbox-content\">\n <rapid-tabs ${ref('tabs')} appearance=\"secondary\" activeid=${(x) => InboxTab.ALERTS_NEW}>\n <rapid-tab\n slot=\"alert-log-tab\"\n id=${InboxTab.ALERTS_NEW}\n @click=${(x) => x.inboxTabChanged(InboxTab.ALERTS_NEW)}\n appearance=\"secondary\"\n >\n Alerts\n </rapid-tab>\n <rapid-tab\n slot=\"alert-log-tab\"\n id=${InboxTab.ALERT_HISTORY}\n @click=${(x) => x.inboxTabChanged(InboxTab.ALERT_HISTORY)}\n appearance=\"secondary\"\n >\n Alert History\n </rapid-tab>\n ${when(\n (x) => x.auth.currentUser?.hasPermission(NotifyPermission.NotificationRuleTemplateView),\n html`\n <rapid-tab\n slot=\"subscribe-tab\"\n id=${InboxTab.SUBSCRIBE}\n @click=${(x) => x.inboxTabChanged(InboxTab.SUBSCRIBE)}\n appearance=\"secondary\"\n >\n Subscribe\n </rapid-tab>\n `,\n )}\n <rapid-tab\n slot=\"sounds-tab\"\n id=${InboxTab.SOUNDS}\n @click=${(x) => x.inboxTabChanged(InboxTab.SOUNDS)}\n appearance=\"secondary\"\n >\n Sounds\n </rapid-tab>\n\n <!-- Alerts -->\n ${(_) => alertsTab(InboxTab.ALERTS_NEW)} ${(_) => alertsTab(InboxTab.ALERT_HISTORY)}\n ${when(\n (x) => x.auth.currentUser?.hasPermission(NotifyPermission.NotificationRuleTemplateView),\n html`\n <rapid-tab-panel\n slot=\"subscribe-tab\"\n class=\"subscribe-tab-panel\"\n id=${InboxTab.SUBSCRIBE}\n style=${(x) => (x.selectedTab === InboxTab.SUBSCRIBE ? '' : 'display: none;')}\n >\n <div class=\"search\">\n <rapid-text-field\n class=\"search-input\"\n @input=${(x, c) => {\n x.searchSubscribe = (c.event.target as HTMLInputElement).value;\n x.filterSearchSubscribe();\n }}\n placeholder=\"Search Templates...\"\n autocomplete=\"off\"\n ></rapid-text-field>\n </div>\n <div class=\"subscribe-tab-content\">\n ${repeat(\n (x) => x.templatesFilter,\n html<RuleTemplate, FoundationInbox>`\n <div\n class=\"template ${(x, c) =>\n c.parent.pendingSubscribeTemplateId === x.ID ? 'template-subscribing' : ''}\"\n id=${(x) => x.ID}\n >\n <div class=\"template-row\">\n <div class=\"template-details\">\n <div class=\"template-name\">${(x) => x.NAME}</div>\n <div class=\"template-description\">${(x) => x.DESCRIPTION}</div>\n </div>\n <rapid-switch\n class=\"template-subscribe-toggle\"\n :checked=${(x, c) => c.parent.isTemplateSubscribed(x)}\n @change=${(x, c) => c.parent.handleTemplateToggle(x, c.event as Event)}\n @click=${(_, c) => c.event.stopPropagation()}\n ></rapid-switch>\n </div>\n ${when(\n (x, c) => (c.parent.channelOptionsByTemplate[x.ID] ?? []).length > 0,\n html<RuleTemplate, FoundationInbox>`\n <div class=\"channel-chip-row\">\n ${repeat(\n (x, c) => c.parent.channelOptionsByTemplate[x.ID] ?? [],\n html<string>`\n <rapid-button\n class=\"channel-chip\"\n appearance=${(x, c) =>\n inboxFromChip(c).isChannelEnabled(c.parent as RuleTemplate, x)\n ? 'selected'\n : ''}\n ?disabled=${(x, c) => {\n const inbox = inboxFromChip(c);\n const template = c.parent as RuleTemplate;\n return (\n !inbox.isTemplateSubscribed(template) ||\n inbox.isChannelTogglePending(template, x)\n );\n }}\n @click=${(x, c) => {\n c.event.stopPropagation();\n inboxFromChip(c).toggleChannel(c.parent as RuleTemplate, x);\n }}\n >\n ${(x, c) => inboxFromChip(c).channelChipLabel(x)}\n </rapid-button>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x, c) => c.parent.pendingSubscribeTemplateId === x.ID,\n html`\n <inbox-subscription\n inline\n :template=${(x, c) => c.parent.ruleTemplateDetails}\n :extraParameterDetails=${(x, c) =>\n c.parent.pendingChannelParameterDetails}\n @templateSubscribed=${(x, c) =>\n c.parent.onTemplateSubscribed(eventDetail(c))}\n @subscribeCancelled=${(x, c) => c.parent.cancelPendingSubscribe()}\n ></inbox-subscription>\n `,\n )}\n </div>\n `,\n )}\n </div>\n </rapid-tab-panel>\n `,\n )}\n <rapid-tab-panel\n slot=\"sounds-tab\"\n class=\"sounds-tab-panel\"\n id=${InboxTab.SOUNDS}\n style=${(x) => (x.selectedTab === InboxTab.SOUNDS ? '' : 'display: none;')}\n >\n <foundation-sounds-panel ${ref('sounds')}></foundation-sounds-panel>\n </rapid-tab-panel>\n </rapid-tabs>\n </div>\n`",
|
|
945
|
+
"privacy": "public"
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"exports": [
|
|
949
|
+
{
|
|
950
|
+
"kind": "js",
|
|
951
|
+
"name": "FoundationInboxTemplate",
|
|
952
|
+
"declaration": {
|
|
953
|
+
"name": "FoundationInboxTemplate",
|
|
954
|
+
"module": "src/components/foundation-inbox/inbox.template.ts"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
]
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"kind": "javascript-module",
|
|
961
|
+
"path": "src/components/foundation-inbox/inbox.ts",
|
|
962
|
+
"declarations": [
|
|
963
|
+
{
|
|
964
|
+
"kind": "class",
|
|
965
|
+
"description": "Foundation inbox component for displaying notifies list.\nAllow searching, filtering and deleting notifies",
|
|
966
|
+
"name": "FoundationInbox",
|
|
967
|
+
"superclass": {
|
|
968
|
+
"name": "FoundationInboxBase",
|
|
969
|
+
"module": "/src/components/foundation-inbox/inbox-base/inbox-base"
|
|
970
|
+
},
|
|
971
|
+
"tagName": "foundation-inbox",
|
|
972
|
+
"customElement": true,
|
|
973
973
|
"attributes": [
|
|
974
974
|
{
|
|
975
975
|
"name": "hide-severity-filter",
|
|
@@ -5986,109 +5986,252 @@
|
|
|
5986
5986
|
},
|
|
5987
5987
|
{
|
|
5988
5988
|
"kind": "javascript-module",
|
|
5989
|
-
"path": "src/components/foundation-inbox/components/foundation-inbox-
|
|
5989
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts",
|
|
5990
5990
|
"declarations": [
|
|
5991
5991
|
{
|
|
5992
5992
|
"kind": "variable",
|
|
5993
|
-
"name": "
|
|
5994
|
-
"
|
|
5993
|
+
"name": "noItemsClass",
|
|
5994
|
+
"type": {
|
|
5995
|
+
"text": "string"
|
|
5996
|
+
},
|
|
5997
|
+
"default": "'no-items'",
|
|
5998
|
+
"description": "Class to use when there are no items"
|
|
5999
|
+
},
|
|
6000
|
+
{
|
|
6001
|
+
"kind": "variable",
|
|
6002
|
+
"name": "FoundationInboxCounterStyles",
|
|
6003
|
+
"default": "css`\n :host {\n display: inline-block;\n min-width: 16px;\n height: 16px;\n border-radius: 9px;\n text-align: center;\n color: #fff;\n line-height: 16px;\n font-size: 9px;\n font-weight: 700;\n background: ${BACKGROUND_COLOR};\n pointer-events: none;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n :host(.${noItemsClass}) {\n display: none;\n }\n`"
|
|
5995
6004
|
}
|
|
5996
6005
|
],
|
|
5997
6006
|
"exports": [
|
|
5998
6007
|
{
|
|
5999
6008
|
"kind": "js",
|
|
6000
|
-
"name": "
|
|
6009
|
+
"name": "noItemsClass",
|
|
6001
6010
|
"declaration": {
|
|
6002
|
-
"name": "
|
|
6003
|
-
"module": "src/components/foundation-inbox/components/foundation-inbox-
|
|
6011
|
+
"name": "noItemsClass",
|
|
6012
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
|
|
6013
|
+
}
|
|
6014
|
+
},
|
|
6015
|
+
{
|
|
6016
|
+
"kind": "js",
|
|
6017
|
+
"name": "FoundationInboxCounterStyles",
|
|
6018
|
+
"declaration": {
|
|
6019
|
+
"name": "FoundationInboxCounterStyles",
|
|
6020
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
|
|
6004
6021
|
}
|
|
6005
6022
|
}
|
|
6006
6023
|
]
|
|
6007
6024
|
},
|
|
6008
6025
|
{
|
|
6009
6026
|
"kind": "javascript-module",
|
|
6010
|
-
"path": "src/components/foundation-inbox/components/foundation-inbox-
|
|
6027
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts",
|
|
6011
6028
|
"declarations": [
|
|
6012
6029
|
{
|
|
6013
6030
|
"kind": "variable",
|
|
6014
|
-
"name": "
|
|
6015
|
-
"default": "html<
|
|
6031
|
+
"name": "FoundationInboxCounterTemplate",
|
|
6032
|
+
"default": "html<FoundationInboxCounter>`\n <template class=\"${(x) => classNames([noItemsClass, x.value < 1])}\">\n ${when(\n (x) => x.value > 0,\n html`\n ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}\n `,\n )}\n </template>\n`"
|
|
6016
6033
|
}
|
|
6017
6034
|
],
|
|
6018
6035
|
"exports": [
|
|
6019
6036
|
{
|
|
6020
6037
|
"kind": "js",
|
|
6021
|
-
"name": "
|
|
6038
|
+
"name": "FoundationInboxCounterTemplate",
|
|
6022
6039
|
"declaration": {
|
|
6023
|
-
"name": "
|
|
6024
|
-
"module": "src/components/foundation-inbox/components/foundation-inbox-
|
|
6040
|
+
"name": "FoundationInboxCounterTemplate",
|
|
6041
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"
|
|
6025
6042
|
}
|
|
6026
6043
|
}
|
|
6027
6044
|
]
|
|
6028
6045
|
},
|
|
6029
6046
|
{
|
|
6030
6047
|
"kind": "javascript-module",
|
|
6031
|
-
"path": "src/components/foundation-inbox/components/foundation-inbox-
|
|
6048
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts",
|
|
6032
6049
|
"declarations": [
|
|
6033
6050
|
{
|
|
6034
6051
|
"kind": "class",
|
|
6035
6052
|
"description": "",
|
|
6036
|
-
"name": "
|
|
6053
|
+
"name": "FoundationInboxCounter",
|
|
6037
6054
|
"members": [
|
|
6038
6055
|
{
|
|
6039
6056
|
"kind": "field",
|
|
6040
|
-
"name": "
|
|
6057
|
+
"name": "value",
|
|
6041
6058
|
"type": {
|
|
6042
|
-
"text": "
|
|
6059
|
+
"text": "number"
|
|
6043
6060
|
},
|
|
6044
|
-
"default": "
|
|
6061
|
+
"default": "0"
|
|
6045
6062
|
},
|
|
6046
6063
|
{
|
|
6047
6064
|
"kind": "field",
|
|
6048
|
-
"name": "
|
|
6065
|
+
"name": "connect",
|
|
6049
6066
|
"type": {
|
|
6050
|
-
"text": "
|
|
6067
|
+
"text": "Connect"
|
|
6051
6068
|
}
|
|
6052
6069
|
},
|
|
6053
6070
|
{
|
|
6054
6071
|
"kind": "field",
|
|
6055
|
-
"name": "
|
|
6072
|
+
"name": "inboxService",
|
|
6056
6073
|
"type": {
|
|
6057
|
-
"text": "
|
|
6058
|
-
}
|
|
6059
|
-
"default": "true"
|
|
6060
|
-
},
|
|
6061
|
-
{
|
|
6062
|
-
"kind": "method",
|
|
6063
|
-
"name": "open",
|
|
6064
|
-
"privacy": "public"
|
|
6074
|
+
"text": "FoundationInboxService"
|
|
6075
|
+
}
|
|
6065
6076
|
},
|
|
6066
6077
|
{
|
|
6067
|
-
"kind": "
|
|
6068
|
-
"name": "
|
|
6069
|
-
"
|
|
6078
|
+
"kind": "field",
|
|
6079
|
+
"name": "connectionSub",
|
|
6080
|
+
"type": {
|
|
6081
|
+
"text": "Subscription"
|
|
6082
|
+
},
|
|
6083
|
+
"privacy": "private"
|
|
6070
6084
|
},
|
|
6071
6085
|
{
|
|
6072
6086
|
"kind": "method",
|
|
6073
|
-
"name": "
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
"text": "Auth"
|
|
6087
|
+
"name": "subscribeToAlerts",
|
|
6088
|
+
"privacy": "private",
|
|
6089
|
+
"return": {
|
|
6090
|
+
"type": {
|
|
6091
|
+
"text": "Promise<void>"
|
|
6092
|
+
}
|
|
6080
6093
|
},
|
|
6081
|
-
"
|
|
6082
|
-
"name": "FoundationInboxBase",
|
|
6083
|
-
"module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
|
|
6084
|
-
}
|
|
6094
|
+
"description": "Subscribes to alerts from the inbox service"
|
|
6085
6095
|
},
|
|
6086
6096
|
{
|
|
6087
6097
|
"kind": "field",
|
|
6088
|
-
"name": "
|
|
6089
|
-
"
|
|
6090
|
-
|
|
6091
|
-
|
|
6098
|
+
"name": "subscriptionHandler",
|
|
6099
|
+
"privacy": "private",
|
|
6100
|
+
"description": "Handles subscription updates from the inbox service"
|
|
6101
|
+
}
|
|
6102
|
+
],
|
|
6103
|
+
"superclass": {
|
|
6104
|
+
"name": "GenesisElement",
|
|
6105
|
+
"package": "@genesislcap/web-core"
|
|
6106
|
+
},
|
|
6107
|
+
"tagName": "foundation-inbox-counter",
|
|
6108
|
+
"customElement": true
|
|
6109
|
+
}
|
|
6110
|
+
],
|
|
6111
|
+
"exports": [
|
|
6112
|
+
{
|
|
6113
|
+
"kind": "js",
|
|
6114
|
+
"name": "FoundationInboxCounter",
|
|
6115
|
+
"declaration": {
|
|
6116
|
+
"name": "FoundationInboxCounter",
|
|
6117
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
|
|
6118
|
+
}
|
|
6119
|
+
},
|
|
6120
|
+
{
|
|
6121
|
+
"kind": "custom-element-definition",
|
|
6122
|
+
"name": "foundation-inbox-counter",
|
|
6123
|
+
"declaration": {
|
|
6124
|
+
"name": "FoundationInboxCounter",
|
|
6125
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
|
|
6126
|
+
}
|
|
6127
|
+
}
|
|
6128
|
+
]
|
|
6129
|
+
},
|
|
6130
|
+
{
|
|
6131
|
+
"kind": "javascript-module",
|
|
6132
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts",
|
|
6133
|
+
"declarations": [
|
|
6134
|
+
{
|
|
6135
|
+
"kind": "variable",
|
|
6136
|
+
"name": "FoundationInboxFlyoutStyles",
|
|
6137
|
+
"default": "css`\n rapid-flyout::part(flyout) {\n width: 30%;\n min-width: 320px;\n padding: 0;\n }\n\n rapid-flyout::part(content) {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n ${FoundationInboxStyles}\n`"
|
|
6138
|
+
}
|
|
6139
|
+
],
|
|
6140
|
+
"exports": [
|
|
6141
|
+
{
|
|
6142
|
+
"kind": "js",
|
|
6143
|
+
"name": "FoundationInboxFlyoutStyles",
|
|
6144
|
+
"declaration": {
|
|
6145
|
+
"name": "FoundationInboxFlyoutStyles",
|
|
6146
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.ts"
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6149
|
+
]
|
|
6150
|
+
},
|
|
6151
|
+
{
|
|
6152
|
+
"kind": "javascript-module",
|
|
6153
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts",
|
|
6154
|
+
"declarations": [
|
|
6155
|
+
{
|
|
6156
|
+
"kind": "variable",
|
|
6157
|
+
"name": "FoundationInboxFlyoutTemplate",
|
|
6158
|
+
"default": "html<FoundationInboxFlyout>`\n <rapid-flyout\n ${ref('flyout')}\n position=\"right\"\n @closed=${(x) => (x.flyoutClosed = true)}\n :closed=${(x) => x.flyoutClosed}\n displayHeader=${false}\n >\n <div class=\"inbox-header\">\n <div class=\"inbox-header-title\">Alerts Center</div>\n <rapid-button class=\"inbox-header-close\" @click=${(x) => x.close()}>\n <rapid-icon part=\"icon\" name=\"xmark\" size=\"xl\"></rapid-icon>\n </rapid-button>\n </div>\n\n ${FoundationInboxTemplate}\n </rapid-flyout>\n`"
|
|
6159
|
+
}
|
|
6160
|
+
],
|
|
6161
|
+
"exports": [
|
|
6162
|
+
{
|
|
6163
|
+
"kind": "js",
|
|
6164
|
+
"name": "FoundationInboxFlyoutTemplate",
|
|
6165
|
+
"declaration": {
|
|
6166
|
+
"name": "FoundationInboxFlyoutTemplate",
|
|
6167
|
+
"module": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.ts"
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
]
|
|
6171
|
+
},
|
|
6172
|
+
{
|
|
6173
|
+
"kind": "javascript-module",
|
|
6174
|
+
"path": "src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts",
|
|
6175
|
+
"declarations": [
|
|
6176
|
+
{
|
|
6177
|
+
"kind": "class",
|
|
6178
|
+
"description": "",
|
|
6179
|
+
"name": "FoundationInboxFlyout",
|
|
6180
|
+
"members": [
|
|
6181
|
+
{
|
|
6182
|
+
"kind": "field",
|
|
6183
|
+
"name": "ready",
|
|
6184
|
+
"type": {
|
|
6185
|
+
"text": "boolean"
|
|
6186
|
+
},
|
|
6187
|
+
"default": "false"
|
|
6188
|
+
},
|
|
6189
|
+
{
|
|
6190
|
+
"kind": "field",
|
|
6191
|
+
"name": "flyout",
|
|
6192
|
+
"type": {
|
|
6193
|
+
"text": "Flyout"
|
|
6194
|
+
}
|
|
6195
|
+
},
|
|
6196
|
+
{
|
|
6197
|
+
"kind": "field",
|
|
6198
|
+
"name": "flyoutClosed",
|
|
6199
|
+
"type": {
|
|
6200
|
+
"text": "boolean"
|
|
6201
|
+
},
|
|
6202
|
+
"default": "true"
|
|
6203
|
+
},
|
|
6204
|
+
{
|
|
6205
|
+
"kind": "method",
|
|
6206
|
+
"name": "open",
|
|
6207
|
+
"privacy": "public"
|
|
6208
|
+
},
|
|
6209
|
+
{
|
|
6210
|
+
"kind": "method",
|
|
6211
|
+
"name": "close",
|
|
6212
|
+
"privacy": "public"
|
|
6213
|
+
},
|
|
6214
|
+
{
|
|
6215
|
+
"kind": "method",
|
|
6216
|
+
"name": "loadRemotes"
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
"kind": "field",
|
|
6220
|
+
"name": "auth",
|
|
6221
|
+
"type": {
|
|
6222
|
+
"text": "Auth"
|
|
6223
|
+
},
|
|
6224
|
+
"inheritedFrom": {
|
|
6225
|
+
"name": "FoundationInboxBase",
|
|
6226
|
+
"module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
|
|
6227
|
+
}
|
|
6228
|
+
},
|
|
6229
|
+
{
|
|
6230
|
+
"kind": "field",
|
|
6231
|
+
"name": "connect",
|
|
6232
|
+
"type": {
|
|
6233
|
+
"text": "Connect"
|
|
6234
|
+
},
|
|
6092
6235
|
"inheritedFrom": {
|
|
6093
6236
|
"name": "FoundationInboxBase",
|
|
6094
6237
|
"module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
|
|
@@ -7384,278 +7527,135 @@
|
|
|
7384
7527
|
},
|
|
7385
7528
|
{
|
|
7386
7529
|
"kind": "javascript-module",
|
|
7387
|
-
"path": "src/components/foundation-inbox/components/
|
|
7530
|
+
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
|
|
7388
7531
|
"declarations": [
|
|
7389
7532
|
{
|
|
7390
7533
|
"kind": "variable",
|
|
7391
|
-
"name": "
|
|
7392
|
-
"
|
|
7393
|
-
"text": "string"
|
|
7394
|
-
},
|
|
7395
|
-
"default": "'no-items'",
|
|
7396
|
-
"description": "Class to use when there are no items"
|
|
7397
|
-
},
|
|
7398
|
-
{
|
|
7399
|
-
"kind": "variable",
|
|
7400
|
-
"name": "FoundationInboxCounterStyles",
|
|
7401
|
-
"default": "css`\n :host {\n display: inline-block;\n min-width: 16px;\n height: 16px;\n border-radius: 9px;\n text-align: center;\n color: #fff;\n line-height: 16px;\n font-size: 9px;\n font-weight: 700;\n background: ${BACKGROUND_COLOR};\n pointer-events: none;\n }\n\n .hidden {\n visibility: hidden;\n }\n\n :host(.${noItemsClass}) {\n display: none;\n }\n`"
|
|
7534
|
+
"name": "InboxSubscriptionStyles",
|
|
7535
|
+
"default": "css`\n .inbox-subscription {\n display: flex;\n flex-direction: column;\n }\n\n .inbox-subscription.inline {\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .inbox-subscription-header {\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription-empty {\n padding: 0 calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 2px) 0 0;\n }\n\n .inbox-subscription-content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 3px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-content {\n overflow: auto;\n max-height: calc(var(--design-unit) * 80px);\n }\n\n .inbox-subscription.inline .inbox-subscription-content {\n margin: calc(var(--design-unit) * 2px) 0 0;\n overflow: visible;\n max-height: none;\n padding-bottom: calc(var(--design-unit) * 4px);\n }\n\n .inbox-subscription.inline .control:focus-within {\n position: relative;\n z-index: 2;\n }\n\n .inbox-subscription-footer {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px) 0 0;\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-footer {\n padding: calc(var(--design-unit) * 2px);\n margin-top: 0;\n }\n\n .inbox-subscription-footer.auto-submit {\n justify-content: flex-end;\n border-top: none;\n margin-top: 0;\n padding-top: 0;\n }\n\n rapid-button.subscribe,\n rapid-button.cancel {\n display: flex;\n margin: 0;\n flex: 1;\n }\n`"
|
|
7402
7536
|
}
|
|
7403
7537
|
],
|
|
7404
7538
|
"exports": [
|
|
7405
7539
|
{
|
|
7406
7540
|
"kind": "js",
|
|
7407
|
-
"name": "
|
|
7408
|
-
"declaration": {
|
|
7409
|
-
"name": "noItemsClass",
|
|
7410
|
-
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"
|
|
7411
|
-
}
|
|
7412
|
-
},
|
|
7413
|
-
{
|
|
7414
|
-
"kind": "js",
|
|
7415
|
-
"name": "FoundationInboxCounterStyles",
|
|
7541
|
+
"name": "InboxSubscriptionStyles",
|
|
7416
7542
|
"declaration": {
|
|
7417
|
-
"name": "
|
|
7418
|
-
"module": "src/components/foundation-inbox/components/
|
|
7543
|
+
"name": "InboxSubscriptionStyles",
|
|
7544
|
+
"module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
|
|
7419
7545
|
}
|
|
7420
7546
|
}
|
|
7421
7547
|
]
|
|
7422
7548
|
},
|
|
7423
7549
|
{
|
|
7424
7550
|
"kind": "javascript-module",
|
|
7425
|
-
"path": "src/components/foundation-inbox/components/
|
|
7551
|
+
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
|
|
7426
7552
|
"declarations": [
|
|
7427
7553
|
{
|
|
7428
7554
|
"kind": "variable",
|
|
7429
|
-
"name": "
|
|
7430
|
-
"default": "html<
|
|
7555
|
+
"name": "InboxSubscriptionTemplate",
|
|
7556
|
+
"default": "html<InboxSubscription>`\n <div class=\"inbox-subscription ${(x) => (x.inline ? 'inline' : '')}\">\n ${when(\n (x) => !x.inline,\n html`\n <div class=\"inbox-subscription-header\">\n Subscribe to\n <span style=\"font-weight: bold;\">${(x) => x.template.RULE_NAME}</span>\n </div>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n (x) => x.visibleParameters,\n html<RuleParameterEntity>`\n <rule-parameter\n :parameter=${(x) => x}\n :isFirstElement=${(x, c) => c.parent.isFirstElement(x)}\n :operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}\n :requireSelection=${(x, c) => c.parent.usesAutoSubmit()}\n @parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}\n ></rule-parameter>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => !x.inline || x.requiresManualSubscribe(),\n html`\n <div class=\"inbox-subscription-footer\">\n ${when(\n (x) => x.inline,\n html`\n <rapid-button\n class=\"cancel\"\n appearance=\"neutral\"\n @click=${(x) => x.cancelSubscribe()}\n >\n Cancel\n </rapid-button>\n `,\n )}\n <rapid-button\n class=\"subscribe\"\n appearance=\"primary\"\n @click=${(x) => x.subscribeTemplate()}\n ?disabled=${(x) => x.subscribeDisabled}\n >\n Subscribe\n </rapid-button>\n </div>\n `,\n )}\n ${when(\n (x) => x.inline && x.usesAutoSubmit(),\n html`\n <div class=\"inbox-subscription-footer auto-submit\">\n <rapid-button class=\"cancel\" appearance=\"neutral\" @click=${(x) => x.cancelSubscribe()}>\n Cancel\n </rapid-button>\n </div>\n `,\n )}\n </div>\n`"
|
|
7431
7557
|
}
|
|
7432
7558
|
],
|
|
7433
7559
|
"exports": [
|
|
7434
7560
|
{
|
|
7435
7561
|
"kind": "js",
|
|
7436
|
-
"name": "
|
|
7562
|
+
"name": "InboxSubscriptionTemplate",
|
|
7437
7563
|
"declaration": {
|
|
7438
|
-
"name": "
|
|
7439
|
-
"module": "src/components/foundation-inbox/components/
|
|
7564
|
+
"name": "InboxSubscriptionTemplate",
|
|
7565
|
+
"module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
|
|
7440
7566
|
}
|
|
7441
7567
|
}
|
|
7442
7568
|
]
|
|
7443
7569
|
},
|
|
7444
7570
|
{
|
|
7445
7571
|
"kind": "javascript-module",
|
|
7446
|
-
"path": "src/components/foundation-inbox/components/
|
|
7572
|
+
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
|
|
7447
7573
|
"declarations": [
|
|
7448
7574
|
{
|
|
7449
7575
|
"kind": "class",
|
|
7450
|
-
"description": "",
|
|
7451
|
-
"name": "
|
|
7576
|
+
"description": "Inbox subscription configuration UI.",
|
|
7577
|
+
"name": "InboxSubscription",
|
|
7452
7578
|
"members": [
|
|
7453
7579
|
{
|
|
7454
7580
|
"kind": "field",
|
|
7455
|
-
"name": "
|
|
7581
|
+
"name": "template"
|
|
7582
|
+
},
|
|
7583
|
+
{
|
|
7584
|
+
"kind": "field",
|
|
7585
|
+
"name": "inline",
|
|
7456
7586
|
"type": {
|
|
7457
|
-
"text": "
|
|
7587
|
+
"text": "boolean"
|
|
7458
7588
|
},
|
|
7459
|
-
"default": "
|
|
7589
|
+
"default": "false"
|
|
7460
7590
|
},
|
|
7461
7591
|
{
|
|
7462
7592
|
"kind": "field",
|
|
7463
|
-
"name": "
|
|
7593
|
+
"name": "extraParameterDetails",
|
|
7464
7594
|
"type": {
|
|
7465
|
-
"text": "
|
|
7466
|
-
}
|
|
7595
|
+
"text": "Record<string, string>"
|
|
7596
|
+
},
|
|
7597
|
+
"default": "{}",
|
|
7598
|
+
"description": "Merged into subscribe payload (e.g. CHANNEL topic). Hidden from the form."
|
|
7467
7599
|
},
|
|
7468
7600
|
{
|
|
7469
7601
|
"kind": "field",
|
|
7470
|
-
"name": "
|
|
7602
|
+
"name": "parametersDetails",
|
|
7471
7603
|
"type": {
|
|
7472
|
-
"text": "
|
|
7604
|
+
"text": "object"
|
|
7605
|
+
},
|
|
7606
|
+
"privacy": "private",
|
|
7607
|
+
"default": "{}"
|
|
7608
|
+
},
|
|
7609
|
+
{
|
|
7610
|
+
"kind": "field",
|
|
7611
|
+
"name": "isSubmitting",
|
|
7612
|
+
"type": {
|
|
7613
|
+
"text": "boolean"
|
|
7614
|
+
},
|
|
7615
|
+
"privacy": "private",
|
|
7616
|
+
"default": "false"
|
|
7617
|
+
},
|
|
7618
|
+
{
|
|
7619
|
+
"kind": "field",
|
|
7620
|
+
"name": "parametersOperators",
|
|
7621
|
+
"type": {
|
|
7622
|
+
"text": "object"
|
|
7623
|
+
},
|
|
7624
|
+
"default": "{}"
|
|
7625
|
+
},
|
|
7626
|
+
{
|
|
7627
|
+
"kind": "field",
|
|
7628
|
+
"name": "subscribeDisabled",
|
|
7629
|
+
"type": {
|
|
7630
|
+
"text": "boolean"
|
|
7631
|
+
},
|
|
7632
|
+
"default": "true"
|
|
7633
|
+
},
|
|
7634
|
+
{
|
|
7635
|
+
"kind": "field",
|
|
7636
|
+
"name": "ruleService",
|
|
7637
|
+
"type": {
|
|
7638
|
+
"text": "RuleService"
|
|
7473
7639
|
}
|
|
7474
7640
|
},
|
|
7475
7641
|
{
|
|
7476
7642
|
"kind": "field",
|
|
7477
|
-
"name": "
|
|
7643
|
+
"name": "visibleParameters",
|
|
7478
7644
|
"type": {
|
|
7479
|
-
"text": "
|
|
7645
|
+
"text": "RuleParameterEntity[]"
|
|
7480
7646
|
},
|
|
7481
|
-
"
|
|
7647
|
+
"readonly": true
|
|
7482
7648
|
},
|
|
7483
7649
|
{
|
|
7484
7650
|
"kind": "method",
|
|
7485
|
-
"name": "
|
|
7486
|
-
|
|
7651
|
+
"name": "templateChanged"
|
|
7652
|
+
},
|
|
7653
|
+
{
|
|
7654
|
+
"kind": "method",
|
|
7655
|
+
"name": "usesAutoSubmit",
|
|
7487
7656
|
"return": {
|
|
7488
7657
|
"type": {
|
|
7489
|
-
"text": "
|
|
7490
|
-
}
|
|
7491
|
-
},
|
|
7492
|
-
"description": "Subscribes to alerts from the inbox service"
|
|
7493
|
-
},
|
|
7494
|
-
{
|
|
7495
|
-
"kind": "field",
|
|
7496
|
-
"name": "subscriptionHandler",
|
|
7497
|
-
"privacy": "private",
|
|
7498
|
-
"description": "Handles subscription updates from the inbox service"
|
|
7499
|
-
}
|
|
7500
|
-
],
|
|
7501
|
-
"superclass": {
|
|
7502
|
-
"name": "GenesisElement",
|
|
7503
|
-
"package": "@genesislcap/web-core"
|
|
7504
|
-
},
|
|
7505
|
-
"tagName": "foundation-inbox-counter",
|
|
7506
|
-
"customElement": true
|
|
7507
|
-
}
|
|
7508
|
-
],
|
|
7509
|
-
"exports": [
|
|
7510
|
-
{
|
|
7511
|
-
"kind": "js",
|
|
7512
|
-
"name": "FoundationInboxCounter",
|
|
7513
|
-
"declaration": {
|
|
7514
|
-
"name": "FoundationInboxCounter",
|
|
7515
|
-
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
|
|
7516
|
-
}
|
|
7517
|
-
},
|
|
7518
|
-
{
|
|
7519
|
-
"kind": "custom-element-definition",
|
|
7520
|
-
"name": "foundation-inbox-counter",
|
|
7521
|
-
"declaration": {
|
|
7522
|
-
"name": "FoundationInboxCounter",
|
|
7523
|
-
"module": "src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"
|
|
7524
|
-
}
|
|
7525
|
-
}
|
|
7526
|
-
]
|
|
7527
|
-
},
|
|
7528
|
-
{
|
|
7529
|
-
"kind": "javascript-module",
|
|
7530
|
-
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts",
|
|
7531
|
-
"declarations": [
|
|
7532
|
-
{
|
|
7533
|
-
"kind": "variable",
|
|
7534
|
-
"name": "InboxSubscriptionStyles",
|
|
7535
|
-
"default": "css`\n .inbox-subscription {\n display: flex;\n flex-direction: column;\n }\n\n .inbox-subscription.inline {\n margin-top: calc(var(--design-unit) * 2px);\n padding-top: calc(var(--design-unit) * 2px);\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n }\n\n .inbox-subscription-header {\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n padding: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription-empty {\n padding: 0 calc(var(--design-unit) * 2px);\n margin: calc(var(--design-unit) * 2px) 0 0;\n }\n\n .inbox-subscription-content {\n display: flex;\n flex-direction: column;\n gap: calc(var(--design-unit) * 3px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-content {\n overflow: auto;\n max-height: calc(var(--design-unit) * 80px);\n }\n\n .inbox-subscription.inline .inbox-subscription-content {\n margin: calc(var(--design-unit) * 2px) 0 0;\n overflow: visible;\n max-height: none;\n padding-bottom: calc(var(--design-unit) * 4px);\n }\n\n .inbox-subscription.inline .control:focus-within {\n position: relative;\n z-index: 2;\n }\n\n .inbox-subscription-footer {\n display: flex;\n gap: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 2px) 0 0;\n border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);\n margin-top: calc(var(--design-unit) * 2px);\n }\n\n .inbox-subscription:not(.inline) .inbox-subscription-footer {\n padding: calc(var(--design-unit) * 2px);\n margin-top: 0;\n }\n\n .inbox-subscription-footer.auto-submit {\n justify-content: flex-end;\n border-top: none;\n margin-top: 0;\n padding-top: 0;\n }\n\n rapid-button.subscribe,\n rapid-button.cancel {\n display: flex;\n margin: 0;\n flex: 1;\n }\n`"
|
|
7536
|
-
}
|
|
7537
|
-
],
|
|
7538
|
-
"exports": [
|
|
7539
|
-
{
|
|
7540
|
-
"kind": "js",
|
|
7541
|
-
"name": "InboxSubscriptionStyles",
|
|
7542
|
-
"declaration": {
|
|
7543
|
-
"name": "InboxSubscriptionStyles",
|
|
7544
|
-
"module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.ts"
|
|
7545
|
-
}
|
|
7546
|
-
}
|
|
7547
|
-
]
|
|
7548
|
-
},
|
|
7549
|
-
{
|
|
7550
|
-
"kind": "javascript-module",
|
|
7551
|
-
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts",
|
|
7552
|
-
"declarations": [
|
|
7553
|
-
{
|
|
7554
|
-
"kind": "variable",
|
|
7555
|
-
"name": "InboxSubscriptionTemplate",
|
|
7556
|
-
"default": "html<InboxSubscription>`\n <div class=\"inbox-subscription ${(x) => (x.inline ? 'inline' : '')}\">\n ${when(\n (x) => !x.inline,\n html`\n <div class=\"inbox-subscription-header\">\n Subscribe to\n <span style=\"font-weight: bold;\">${(x) => x.template.RULE_NAME}</span>\n </div>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length === 0,\n html`\n <p class=\"inbox-subscription-empty\">The selected template doesn't have parameters.</p>\n `,\n )}\n ${when(\n (x) => x.visibleParameters.length > 0,\n html`\n <div class=\"inbox-subscription-content\">\n ${repeat(\n (x) => x.visibleParameters,\n html<RuleParameterEntity>`\n <rule-parameter\n :parameter=${(x) => x}\n :isFirstElement=${(x, c) => c.parent.isFirstElement(x)}\n :operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}\n :requireSelection=${(x, c) => c.parent.usesAutoSubmit()}\n @parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}\n ></rule-parameter>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => !x.inline || x.requiresManualSubscribe(),\n html`\n <div class=\"inbox-subscription-footer\">\n ${when(\n (x) => x.inline,\n html`\n <rapid-button\n class=\"cancel\"\n appearance=\"neutral\"\n @click=${(x) => x.cancelSubscribe()}\n >\n Cancel\n </rapid-button>\n `,\n )}\n <rapid-button\n class=\"subscribe\"\n appearance=\"primary\"\n @click=${(x) => x.subscribeTemplate()}\n ?disabled=${(x) => x.subscribeDisabled}\n >\n Subscribe\n </rapid-button>\n </div>\n `,\n )}\n ${when(\n (x) => x.inline && x.usesAutoSubmit(),\n html`\n <div class=\"inbox-subscription-footer auto-submit\">\n <rapid-button class=\"cancel\" appearance=\"neutral\" @click=${(x) => x.cancelSubscribe()}>\n Cancel\n </rapid-button>\n </div>\n `,\n )}\n </div>\n`"
|
|
7557
|
-
}
|
|
7558
|
-
],
|
|
7559
|
-
"exports": [
|
|
7560
|
-
{
|
|
7561
|
-
"kind": "js",
|
|
7562
|
-
"name": "InboxSubscriptionTemplate",
|
|
7563
|
-
"declaration": {
|
|
7564
|
-
"name": "InboxSubscriptionTemplate",
|
|
7565
|
-
"module": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.ts"
|
|
7566
|
-
}
|
|
7567
|
-
}
|
|
7568
|
-
]
|
|
7569
|
-
},
|
|
7570
|
-
{
|
|
7571
|
-
"kind": "javascript-module",
|
|
7572
|
-
"path": "src/components/foundation-inbox/components/inbox-subscription/inbox-subscription.ts",
|
|
7573
|
-
"declarations": [
|
|
7574
|
-
{
|
|
7575
|
-
"kind": "class",
|
|
7576
|
-
"description": "Inbox subscription configuration UI.",
|
|
7577
|
-
"name": "InboxSubscription",
|
|
7578
|
-
"members": [
|
|
7579
|
-
{
|
|
7580
|
-
"kind": "field",
|
|
7581
|
-
"name": "template"
|
|
7582
|
-
},
|
|
7583
|
-
{
|
|
7584
|
-
"kind": "field",
|
|
7585
|
-
"name": "inline",
|
|
7586
|
-
"type": {
|
|
7587
|
-
"text": "boolean"
|
|
7588
|
-
},
|
|
7589
|
-
"default": "false"
|
|
7590
|
-
},
|
|
7591
|
-
{
|
|
7592
|
-
"kind": "field",
|
|
7593
|
-
"name": "extraParameterDetails",
|
|
7594
|
-
"type": {
|
|
7595
|
-
"text": "Record<string, string>"
|
|
7596
|
-
},
|
|
7597
|
-
"default": "{}",
|
|
7598
|
-
"description": "Merged into subscribe payload (e.g. CHANNEL topic). Hidden from the form."
|
|
7599
|
-
},
|
|
7600
|
-
{
|
|
7601
|
-
"kind": "field",
|
|
7602
|
-
"name": "parametersDetails",
|
|
7603
|
-
"type": {
|
|
7604
|
-
"text": "object"
|
|
7605
|
-
},
|
|
7606
|
-
"privacy": "private",
|
|
7607
|
-
"default": "{}"
|
|
7608
|
-
},
|
|
7609
|
-
{
|
|
7610
|
-
"kind": "field",
|
|
7611
|
-
"name": "isSubmitting",
|
|
7612
|
-
"type": {
|
|
7613
|
-
"text": "boolean"
|
|
7614
|
-
},
|
|
7615
|
-
"privacy": "private",
|
|
7616
|
-
"default": "false"
|
|
7617
|
-
},
|
|
7618
|
-
{
|
|
7619
|
-
"kind": "field",
|
|
7620
|
-
"name": "parametersOperators",
|
|
7621
|
-
"type": {
|
|
7622
|
-
"text": "object"
|
|
7623
|
-
},
|
|
7624
|
-
"default": "{}"
|
|
7625
|
-
},
|
|
7626
|
-
{
|
|
7627
|
-
"kind": "field",
|
|
7628
|
-
"name": "subscribeDisabled",
|
|
7629
|
-
"type": {
|
|
7630
|
-
"text": "boolean"
|
|
7631
|
-
},
|
|
7632
|
-
"default": "true"
|
|
7633
|
-
},
|
|
7634
|
-
{
|
|
7635
|
-
"kind": "field",
|
|
7636
|
-
"name": "ruleService",
|
|
7637
|
-
"type": {
|
|
7638
|
-
"text": "RuleService"
|
|
7639
|
-
}
|
|
7640
|
-
},
|
|
7641
|
-
{
|
|
7642
|
-
"kind": "field",
|
|
7643
|
-
"name": "visibleParameters",
|
|
7644
|
-
"type": {
|
|
7645
|
-
"text": "RuleParameterEntity[]"
|
|
7646
|
-
},
|
|
7647
|
-
"readonly": true
|
|
7648
|
-
},
|
|
7649
|
-
{
|
|
7650
|
-
"kind": "method",
|
|
7651
|
-
"name": "templateChanged"
|
|
7652
|
-
},
|
|
7653
|
-
{
|
|
7654
|
-
"kind": "method",
|
|
7655
|
-
"name": "usesAutoSubmit",
|
|
7656
|
-
"return": {
|
|
7657
|
-
"type": {
|
|
7658
|
-
"text": "boolean"
|
|
7658
|
+
"text": "boolean"
|
|
7659
7659
|
}
|
|
7660
7660
|
}
|
|
7661
7661
|
},
|
|
@@ -10633,6 +10633,164 @@
|
|
|
10633
10633
|
}
|
|
10634
10634
|
]
|
|
10635
10635
|
},
|
|
10636
|
+
{
|
|
10637
|
+
"kind": "javascript-module",
|
|
10638
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
10639
|
+
"declarations": [
|
|
10640
|
+
{
|
|
10641
|
+
"kind": "variable",
|
|
10642
|
+
"name": "TemplateConditionGroupTemplate",
|
|
10643
|
+
"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`"
|
|
10644
|
+
}
|
|
10645
|
+
],
|
|
10646
|
+
"exports": [
|
|
10647
|
+
{
|
|
10648
|
+
"kind": "js",
|
|
10649
|
+
"name": "TemplateConditionGroupTemplate",
|
|
10650
|
+
"declaration": {
|
|
10651
|
+
"name": "TemplateConditionGroupTemplate",
|
|
10652
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
10653
|
+
}
|
|
10654
|
+
}
|
|
10655
|
+
]
|
|
10656
|
+
},
|
|
10657
|
+
{
|
|
10658
|
+
"kind": "javascript-module",
|
|
10659
|
+
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
10660
|
+
"declarations": [
|
|
10661
|
+
{
|
|
10662
|
+
"kind": "class",
|
|
10663
|
+
"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.",
|
|
10664
|
+
"name": "TemplateConditionGroup",
|
|
10665
|
+
"members": [
|
|
10666
|
+
{
|
|
10667
|
+
"kind": "field",
|
|
10668
|
+
"name": "node",
|
|
10669
|
+
"type": {
|
|
10670
|
+
"text": "ConditionGroupEntity"
|
|
10671
|
+
}
|
|
10672
|
+
},
|
|
10673
|
+
{
|
|
10674
|
+
"kind": "field",
|
|
10675
|
+
"name": "fields",
|
|
10676
|
+
"type": {
|
|
10677
|
+
"text": "Field[]"
|
|
10678
|
+
},
|
|
10679
|
+
"default": "[]"
|
|
10680
|
+
},
|
|
10681
|
+
{
|
|
10682
|
+
"kind": "field",
|
|
10683
|
+
"name": "parameters",
|
|
10684
|
+
"type": {
|
|
10685
|
+
"text": "Array<ParameterBuilderEntity>"
|
|
10686
|
+
},
|
|
10687
|
+
"default": "[]"
|
|
10688
|
+
},
|
|
10689
|
+
{
|
|
10690
|
+
"kind": "field",
|
|
10691
|
+
"name": "isFirst",
|
|
10692
|
+
"type": {
|
|
10693
|
+
"text": "boolean"
|
|
10694
|
+
},
|
|
10695
|
+
"default": "false"
|
|
10696
|
+
},
|
|
10697
|
+
{
|
|
10698
|
+
"kind": "field",
|
|
10699
|
+
"name": "joinOperator",
|
|
10700
|
+
"type": {
|
|
10701
|
+
"text": "string"
|
|
10702
|
+
}
|
|
10703
|
+
},
|
|
10704
|
+
{
|
|
10705
|
+
"kind": "field",
|
|
10706
|
+
"name": "groupChildren",
|
|
10707
|
+
"type": {
|
|
10708
|
+
"text": "ConditionNode[]"
|
|
10709
|
+
},
|
|
10710
|
+
"default": "[]"
|
|
10711
|
+
},
|
|
10712
|
+
{
|
|
10713
|
+
"kind": "method",
|
|
10714
|
+
"name": "nodeChanged"
|
|
10715
|
+
},
|
|
10716
|
+
{
|
|
10717
|
+
"kind": "method",
|
|
10718
|
+
"name": "joinOperatorChanged"
|
|
10719
|
+
},
|
|
10720
|
+
{
|
|
10721
|
+
"kind": "method",
|
|
10722
|
+
"name": "newCondition"
|
|
10723
|
+
},
|
|
10724
|
+
{
|
|
10725
|
+
"kind": "method",
|
|
10726
|
+
"name": "newGroup"
|
|
10727
|
+
},
|
|
10728
|
+
{
|
|
10729
|
+
"kind": "method",
|
|
10730
|
+
"name": "editChild",
|
|
10731
|
+
"parameters": [
|
|
10732
|
+
{
|
|
10733
|
+
"name": "_editedChild",
|
|
10734
|
+
"type": {
|
|
10735
|
+
"text": "ConditionNode"
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
]
|
|
10739
|
+
},
|
|
10740
|
+
{
|
|
10741
|
+
"kind": "method",
|
|
10742
|
+
"name": "deleteChild",
|
|
10743
|
+
"parameters": [
|
|
10744
|
+
{
|
|
10745
|
+
"name": "deletedChild",
|
|
10746
|
+
"type": {
|
|
10747
|
+
"text": "ConditionNode"
|
|
10748
|
+
}
|
|
10749
|
+
}
|
|
10750
|
+
]
|
|
10751
|
+
},
|
|
10752
|
+
{
|
|
10753
|
+
"kind": "method",
|
|
10754
|
+
"name": "deleteSelf"
|
|
10755
|
+
}
|
|
10756
|
+
],
|
|
10757
|
+
"events": [
|
|
10758
|
+
{
|
|
10759
|
+
"description": "Fired when this whole group should be removed",
|
|
10760
|
+
"name": "delete"
|
|
10761
|
+
},
|
|
10762
|
+
{
|
|
10763
|
+
"description": "Fired when anything inside this group changes",
|
|
10764
|
+
"name": "edit"
|
|
10765
|
+
}
|
|
10766
|
+
],
|
|
10767
|
+
"superclass": {
|
|
10768
|
+
"name": "GenesisElement",
|
|
10769
|
+
"package": "@genesislcap/web-core"
|
|
10770
|
+
},
|
|
10771
|
+
"tagName": "template-condition-group",
|
|
10772
|
+
"customElement": true
|
|
10773
|
+
}
|
|
10774
|
+
],
|
|
10775
|
+
"exports": [
|
|
10776
|
+
{
|
|
10777
|
+
"kind": "js",
|
|
10778
|
+
"name": "TemplateConditionGroup",
|
|
10779
|
+
"declaration": {
|
|
10780
|
+
"name": "TemplateConditionGroup",
|
|
10781
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
10782
|
+
}
|
|
10783
|
+
},
|
|
10784
|
+
{
|
|
10785
|
+
"kind": "custom-element-definition",
|
|
10786
|
+
"name": "template-condition-group",
|
|
10787
|
+
"declaration": {
|
|
10788
|
+
"name": "TemplateConditionGroup",
|
|
10789
|
+
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
10790
|
+
}
|
|
10791
|
+
}
|
|
10792
|
+
]
|
|
10793
|
+
},
|
|
10636
10794
|
{
|
|
10637
10795
|
"kind": "javascript-module",
|
|
10638
10796
|
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.ts",
|
|
@@ -10916,164 +11074,6 @@
|
|
|
10916
11074
|
}
|
|
10917
11075
|
}
|
|
10918
11076
|
]
|
|
10919
|
-
},
|
|
10920
|
-
{
|
|
10921
|
-
"kind": "javascript-module",
|
|
10922
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts",
|
|
10923
|
-
"declarations": [
|
|
10924
|
-
{
|
|
10925
|
-
"kind": "variable",
|
|
10926
|
-
"name": "TemplateConditionGroupTemplate",
|
|
10927
|
-
"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`"
|
|
10928
|
-
}
|
|
10929
|
-
],
|
|
10930
|
-
"exports": [
|
|
10931
|
-
{
|
|
10932
|
-
"kind": "js",
|
|
10933
|
-
"name": "TemplateConditionGroupTemplate",
|
|
10934
|
-
"declaration": {
|
|
10935
|
-
"name": "TemplateConditionGroupTemplate",
|
|
10936
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.template.ts"
|
|
10937
|
-
}
|
|
10938
|
-
}
|
|
10939
|
-
]
|
|
10940
|
-
},
|
|
10941
|
-
{
|
|
10942
|
-
"kind": "javascript-module",
|
|
10943
|
-
"path": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts",
|
|
10944
|
-
"declarations": [
|
|
10945
|
-
{
|
|
10946
|
-
"kind": "class",
|
|
10947
|
-
"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.",
|
|
10948
|
-
"name": "TemplateConditionGroup",
|
|
10949
|
-
"members": [
|
|
10950
|
-
{
|
|
10951
|
-
"kind": "field",
|
|
10952
|
-
"name": "node",
|
|
10953
|
-
"type": {
|
|
10954
|
-
"text": "ConditionGroupEntity"
|
|
10955
|
-
}
|
|
10956
|
-
},
|
|
10957
|
-
{
|
|
10958
|
-
"kind": "field",
|
|
10959
|
-
"name": "fields",
|
|
10960
|
-
"type": {
|
|
10961
|
-
"text": "Field[]"
|
|
10962
|
-
},
|
|
10963
|
-
"default": "[]"
|
|
10964
|
-
},
|
|
10965
|
-
{
|
|
10966
|
-
"kind": "field",
|
|
10967
|
-
"name": "parameters",
|
|
10968
|
-
"type": {
|
|
10969
|
-
"text": "Array<ParameterBuilderEntity>"
|
|
10970
|
-
},
|
|
10971
|
-
"default": "[]"
|
|
10972
|
-
},
|
|
10973
|
-
{
|
|
10974
|
-
"kind": "field",
|
|
10975
|
-
"name": "isFirst",
|
|
10976
|
-
"type": {
|
|
10977
|
-
"text": "boolean"
|
|
10978
|
-
},
|
|
10979
|
-
"default": "false"
|
|
10980
|
-
},
|
|
10981
|
-
{
|
|
10982
|
-
"kind": "field",
|
|
10983
|
-
"name": "joinOperator",
|
|
10984
|
-
"type": {
|
|
10985
|
-
"text": "string"
|
|
10986
|
-
}
|
|
10987
|
-
},
|
|
10988
|
-
{
|
|
10989
|
-
"kind": "field",
|
|
10990
|
-
"name": "groupChildren",
|
|
10991
|
-
"type": {
|
|
10992
|
-
"text": "ConditionNode[]"
|
|
10993
|
-
},
|
|
10994
|
-
"default": "[]"
|
|
10995
|
-
},
|
|
10996
|
-
{
|
|
10997
|
-
"kind": "method",
|
|
10998
|
-
"name": "nodeChanged"
|
|
10999
|
-
},
|
|
11000
|
-
{
|
|
11001
|
-
"kind": "method",
|
|
11002
|
-
"name": "joinOperatorChanged"
|
|
11003
|
-
},
|
|
11004
|
-
{
|
|
11005
|
-
"kind": "method",
|
|
11006
|
-
"name": "newCondition"
|
|
11007
|
-
},
|
|
11008
|
-
{
|
|
11009
|
-
"kind": "method",
|
|
11010
|
-
"name": "newGroup"
|
|
11011
|
-
},
|
|
11012
|
-
{
|
|
11013
|
-
"kind": "method",
|
|
11014
|
-
"name": "editChild",
|
|
11015
|
-
"parameters": [
|
|
11016
|
-
{
|
|
11017
|
-
"name": "_editedChild",
|
|
11018
|
-
"type": {
|
|
11019
|
-
"text": "ConditionNode"
|
|
11020
|
-
}
|
|
11021
|
-
}
|
|
11022
|
-
]
|
|
11023
|
-
},
|
|
11024
|
-
{
|
|
11025
|
-
"kind": "method",
|
|
11026
|
-
"name": "deleteChild",
|
|
11027
|
-
"parameters": [
|
|
11028
|
-
{
|
|
11029
|
-
"name": "deletedChild",
|
|
11030
|
-
"type": {
|
|
11031
|
-
"text": "ConditionNode"
|
|
11032
|
-
}
|
|
11033
|
-
}
|
|
11034
|
-
]
|
|
11035
|
-
},
|
|
11036
|
-
{
|
|
11037
|
-
"kind": "method",
|
|
11038
|
-
"name": "deleteSelf"
|
|
11039
|
-
}
|
|
11040
|
-
],
|
|
11041
|
-
"events": [
|
|
11042
|
-
{
|
|
11043
|
-
"description": "Fired when this whole group should be removed",
|
|
11044
|
-
"name": "delete"
|
|
11045
|
-
},
|
|
11046
|
-
{
|
|
11047
|
-
"description": "Fired when anything inside this group changes",
|
|
11048
|
-
"name": "edit"
|
|
11049
|
-
}
|
|
11050
|
-
],
|
|
11051
|
-
"superclass": {
|
|
11052
|
-
"name": "GenesisElement",
|
|
11053
|
-
"package": "@genesislcap/web-core"
|
|
11054
|
-
},
|
|
11055
|
-
"tagName": "template-condition-group",
|
|
11056
|
-
"customElement": true
|
|
11057
|
-
}
|
|
11058
|
-
],
|
|
11059
|
-
"exports": [
|
|
11060
|
-
{
|
|
11061
|
-
"kind": "js",
|
|
11062
|
-
"name": "TemplateConditionGroup",
|
|
11063
|
-
"declaration": {
|
|
11064
|
-
"name": "TemplateConditionGroup",
|
|
11065
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
11066
|
-
}
|
|
11067
|
-
},
|
|
11068
|
-
{
|
|
11069
|
-
"kind": "custom-element-definition",
|
|
11070
|
-
"name": "template-condition-group",
|
|
11071
|
-
"declaration": {
|
|
11072
|
-
"name": "TemplateConditionGroup",
|
|
11073
|
-
"module": "src/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-group/template-condition-group.ts"
|
|
11074
|
-
}
|
|
11075
|
-
}
|
|
11076
|
-
]
|
|
11077
11077
|
}
|
|
11078
11078
|
]
|
|
11079
11079
|
}
|