@genesislcap/pbc-notify-ui 15.88.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.
@@ -362,145 +362,21 @@
362
362
  },
363
363
  {
364
364
  "kind": "javascript-module",
365
- "path": "src/services/alert.service.ts",
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": "TemplateService"
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": "TemplateService",
376
+ "name": "scrollbarStyles",
501
377
  "declaration": {
502
- "name": "TemplateService",
503
- "module": "src/services/template.service.ts"
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/styles/scrollbar.styles.ts",
707
+ "path": "src/services/alert.service.ts",
832
708
  "declarations": [
833
709
  {
834
710
  "kind": "variable",
835
- "name": "scrollbarStyles",
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": "scrollbarStyles",
717
+ "name": "AlertService",
843
718
  "declaration": {
844
- "name": "scrollbarStyles",
845
- "module": "src/styles/scrollbar.styles.ts"
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/components/foundation-inbox/inbox.styles.ts",
727
+ "path": "src/services/inbox.service.ts",
853
728
  "declarations": [
854
729
  {
855
730
  "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`"
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": "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"
740
+ "name": "FoundationInboxService"
884
741
  }
885
742
  ],
886
743
  "exports": [
887
744
  {
888
745
  "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",
746
+ "name": "INBOX_PAGE_SIZE",
898
747
  "declaration": {
899
- "name": "alertsNewAndAlertsHistory",
900
- "module": "src/components/foundation-inbox/inbox.styles.ts"
748
+ "name": "INBOX_PAGE_SIZE",
749
+ "module": "src/services/inbox.service.ts"
901
750
  }
902
751
  },
903
752
  {
904
753
  "kind": "js",
905
- "name": "subscriptions",
754
+ "name": "FoundationInboxService",
906
755
  "declaration": {
907
- "name": "subscriptions",
908
- "module": "src/components/foundation-inbox/inbox.styles.ts"
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": "js",
913
- "name": "subscribe",
914
- "declaration": {
915
- "name": "subscribe",
916
- "module": "src/components/foundation-inbox/inbox.styles.ts"
917
- }
918
- },
767
+ "kind": "variable",
768
+ "name": "NotifyService"
769
+ }
770
+ ],
771
+ "exports": [
919
772
  {
920
773
  "kind": "js",
921
- "name": "ruleAndTemplate",
774
+ "name": "NotifyRouteTopic",
922
775
  "declaration": {
923
- "name": "ruleAndTemplate",
924
- "module": "src/components/foundation-inbox/inbox.styles.ts"
776
+ "name": "NotifyRouteTopic",
777
+ "module": "src/services/notify.service.ts"
925
778
  }
926
779
  },
927
780
  {
928
781
  "kind": "js",
929
- "name": "FoundationInboxStyles",
782
+ "name": "NotifyService",
930
783
  "declaration": {
931
- "name": "FoundationInboxStyles",
932
- "module": "src/components/foundation-inbox/inbox.styles.ts"
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/components/foundation-inbox/inbox.template.ts",
792
+ "path": "src/services/rule.service.ts",
940
793
  "declarations": [
941
794
  {
942
795
  "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"
796
+ "name": "RuleService"
946
797
  }
947
798
  ],
948
799
  "exports": [
949
800
  {
950
801
  "kind": "js",
951
- "name": "FoundationInboxTemplate",
802
+ "name": "RuleService",
952
803
  "declaration": {
953
- "name": "FoundationInboxTemplate",
954
- "module": "src/components/foundation-inbox/inbox.template.ts"
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/components/foundation-inbox/inbox.ts",
812
+ "path": "src/services/system.service.ts",
962
813
  "declarations": [
963
814
  {
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,
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",
@@ -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
  }
@@ -288,17 +288,6 @@ export declare const ParameterBuilder: React.ForwardRefExoticComponent<
288
288
  >;
289
289
  export type ParameterBuilderRef = ParameterBuilderWC;
290
290
 
291
- export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
292
- React.PropsWithChildren<
293
- Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
294
- HTMLWCProps & {
295
- onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
296
- onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
297
- }
298
- > & React.RefAttributes<TemplateConditionBuilderWC>
299
- >;
300
- export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
301
-
302
291
  export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
303
292
  React.PropsWithChildren<
304
293
  Omit<PublicOf<TemplateConditionGroupWC>, 'children' | 'style'> &
@@ -310,4 +299,15 @@ export declare const TemplateConditionGroup: React.ForwardRefExoticComponent<
310
299
  >;
311
300
  export type TemplateConditionGroupRef = TemplateConditionGroupWC;
312
301
 
302
+ export declare const TemplateConditionBuilder: React.ForwardRefExoticComponent<
303
+ React.PropsWithChildren<
304
+ Omit<PublicOf<TemplateConditionBuilderWC>, 'children' | 'style'> &
305
+ HTMLWCProps & {
306
+ onDelete?: (event: CustomEvent<ConditionBuilderEntity>) => void;
307
+ onEdit?: (event: CustomEvent<ConditionBuilderEntity>) => void;
308
+ }
309
+ > & React.RefAttributes<TemplateConditionBuilderWC>
310
+ >;
311
+ export type TemplateConditionBuilderRef = TemplateConditionBuilderWC;
312
+
313
313
  export {};
package/dist/react.cjs CHANGED
@@ -266,7 +266,7 @@ const ParameterBuilder = React.forwardRef(function ParameterBuilder(props, ref)
266
266
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
267
267
  });
268
268
 
269
- const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
269
+ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
270
270
  const { onDelete, onEdit, children, ...rest } = props;
271
271
  const _innerRef = React.useRef(null);
272
272
  const _onDeleteRef = React.useRef(onDelete);
@@ -285,10 +285,10 @@ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuil
285
285
  el.removeEventListener('edit', _onEditFn);
286
286
  };
287
287
  }, []);
288
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
288
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
289
289
  });
290
290
 
291
- const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
291
+ const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
292
292
  const { onDelete, onEdit, children, ...rest } = props;
293
293
  const _innerRef = React.useRef(null);
294
294
  const _onDeleteRef = React.useRef(onDelete);
@@ -307,7 +307,7 @@ const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(
307
307
  el.removeEventListener('edit', _onEditFn);
308
308
  };
309
309
  }, []);
310
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
310
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
311
311
  });
312
312
 
313
313
  module.exports = {
@@ -335,6 +335,6 @@ module.exports = {
335
335
  RuleConditionBuilder,
336
336
  RuleConditionGroup,
337
337
  ParameterBuilder,
338
- TemplateConditionBuilder,
339
338
  TemplateConditionGroup,
339
+ TemplateConditionBuilder,
340
340
  };
package/dist/react.mjs CHANGED
@@ -264,7 +264,7 @@ export const ParameterBuilder = React.forwardRef(function ParameterBuilder(props
264
264
  return React.createElement(customElements.getName(ParameterBuilderWC) ?? 'parameter-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
265
265
  });
266
266
 
267
- export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
267
+ export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
268
268
  const { onDelete, onEdit, children, ...rest } = props;
269
269
  const _innerRef = React.useRef(null);
270
270
  const _onDeleteRef = React.useRef(onDelete);
@@ -283,10 +283,10 @@ export const TemplateConditionBuilder = React.forwardRef(function TemplateCondit
283
283
  el.removeEventListener('edit', _onEditFn);
284
284
  };
285
285
  }, []);
286
- return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
286
+ return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
287
287
  });
288
288
 
289
- export const TemplateConditionGroup = React.forwardRef(function TemplateConditionGroup(props, ref) {
289
+ export const TemplateConditionBuilder = React.forwardRef(function TemplateConditionBuilder(props, ref) {
290
290
  const { onDelete, onEdit, children, ...rest } = props;
291
291
  const _innerRef = React.useRef(null);
292
292
  const _onDeleteRef = React.useRef(onDelete);
@@ -305,5 +305,5 @@ export const TemplateConditionGroup = React.forwardRef(function TemplateConditio
305
305
  el.removeEventListener('edit', _onEditFn);
306
306
  };
307
307
  }, []);
308
- return React.createElement(customElements.getName(TemplateConditionGroupWC) ?? 'template-condition-group', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
308
+ return React.createElement(customElements.getName(TemplateConditionBuilderWC) ?? 'template-condition-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
309
309
  });
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.88.0",
4
+ "version": "15.88.1-GENC-0.7",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -80,30 +80,30 @@
80
80
  "@commitlint/cli": "^19.2.1",
81
81
  "@commitlint/config-conventional": "^19.1.0",
82
82
  "@commitlint/format": "^19.0.3",
83
- "@genesislcap/design-system-configurator": "15.88.0",
84
- "@genesislcap/eslint-config": "15.88.0",
85
- "@genesislcap/eslint-stylelint-builder": "15.88.0",
86
- "@genesislcap/foundation-testing": "15.88.0",
87
- "@genesislcap/genx": "15.88.0",
88
- "@genesislcap/prettier-config": "15.88.0",
89
- "@genesislcap/stylelint-config": "15.88.0",
90
- "@genesislcap/vite-builder": "15.88.0",
91
- "@genesislcap/webpack-builder": "15.88.0",
83
+ "@genesislcap/design-system-configurator": "15.88.1-GENC-0.7",
84
+ "@genesislcap/eslint-config": "15.88.1-GENC-0.7",
85
+ "@genesislcap/eslint-stylelint-builder": "15.88.1-GENC-0.7",
86
+ "@genesislcap/foundation-testing": "15.88.1-GENC-0.7",
87
+ "@genesislcap/genx": "15.88.1-GENC-0.7",
88
+ "@genesislcap/prettier-config": "15.88.1-GENC-0.7",
89
+ "@genesislcap/stylelint-config": "15.88.1-GENC-0.7",
90
+ "@genesislcap/vite-builder": "15.88.1-GENC-0.7",
91
+ "@genesislcap/webpack-builder": "15.88.1-GENC-0.7",
92
92
  "dayjs": "^1.11.7"
93
93
  },
94
94
  "dependencies": {
95
- "@genesislcap/foundation-comms": "15.88.0",
96
- "@genesislcap/foundation-criteria": "15.88.0",
97
- "@genesislcap/foundation-entity-management": "15.88.0",
98
- "@genesislcap/foundation-forms": "15.88.0",
99
- "@genesislcap/foundation-layout": "15.88.0",
100
- "@genesislcap/foundation-logger": "15.88.0",
101
- "@genesislcap/foundation-notifications": "15.88.0",
102
- "@genesislcap/foundation-ui": "15.88.0",
103
- "@genesislcap/foundation-utils": "15.88.0",
104
- "@genesislcap/rapid-design-system": "15.88.0",
105
- "@genesislcap/rapid-grid-pro": "15.88.0",
106
- "@genesislcap/web-core": "15.88.0",
95
+ "@genesislcap/foundation-comms": "15.88.1-GENC-0.7",
96
+ "@genesislcap/foundation-criteria": "15.88.1-GENC-0.7",
97
+ "@genesislcap/foundation-entity-management": "15.88.1-GENC-0.7",
98
+ "@genesislcap/foundation-forms": "15.88.1-GENC-0.7",
99
+ "@genesislcap/foundation-layout": "15.88.1-GENC-0.7",
100
+ "@genesislcap/foundation-logger": "15.88.1-GENC-0.7",
101
+ "@genesislcap/foundation-notifications": "15.88.1-GENC-0.7",
102
+ "@genesislcap/foundation-ui": "15.88.1-GENC-0.7",
103
+ "@genesislcap/foundation-utils": "15.88.1-GENC-0.7",
104
+ "@genesislcap/rapid-design-system": "15.88.1-GENC-0.7",
105
+ "@genesislcap/rapid-grid-pro": "15.88.1-GENC-0.7",
106
+ "@genesislcap/web-core": "15.88.1-GENC-0.7",
107
107
  "lodash.debounce": "^4.0.8",
108
108
  "rxjs": "^7.5.4"
109
109
  },