@genesislcap/pbc-notify-ui 15.0.0-FUI-2567.2 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,6 +45,14 @@
45
45
  "package": "./components/foundation-notification-dashboard"
46
46
  }
47
47
  },
48
+ {
49
+ "kind": "js",
50
+ "name": "Alert",
51
+ "declaration": {
52
+ "name": "Alert",
53
+ "module": "./components/foundation-inbox/inbox.types"
54
+ }
55
+ },
48
56
  {
49
57
  "kind": "js",
50
58
  "name": "ParameterEditedEventDetail",
@@ -61,6 +69,14 @@
61
69
  "module": "./components/foundation-inbox/inbox.types"
62
70
  }
63
71
  },
72
+ {
73
+ "kind": "js",
74
+ "name": "AlertStatus",
75
+ "declaration": {
76
+ "name": "AlertStatus",
77
+ "module": "./components/foundation-inbox/inbox.types"
78
+ }
79
+ },
64
80
  {
65
81
  "kind": "js",
66
82
  "name": "ConditionBuilderEntity",
@@ -864,6 +880,20 @@
864
880
  },
865
881
  "tagName": "foundation-inbox",
866
882
  "customElement": true,
883
+ "attributes": [
884
+ {
885
+ "type": {
886
+ "text": "boolean"
887
+ },
888
+ "default": "false",
889
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public",
890
+ "fieldName": "hideSeverityFilter",
891
+ "inheritedFrom": {
892
+ "name": "FoundationInboxBase",
893
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
894
+ }
895
+ }
896
+ ],
867
897
  "members": [
868
898
  {
869
899
  "kind": "field",
@@ -958,6 +988,85 @@
958
988
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
959
989
  }
960
990
  },
991
+ {
992
+ "kind": "field",
993
+ "name": "renderAlert",
994
+ "type": {
995
+ "text": "ViewTemplate<Alert, FoundationInbox> | undefined"
996
+ },
997
+ "default": "undefined",
998
+ "description": "Optional per-row template for the Alerts / Alert History lists. When set, it replaces the\ndefault alert row (the `.toast` element) and is rendered with the alert as its source (`x`)\nand the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.\nWhen unset, the built-in row is used, so existing consumers are unaffected.",
999
+ "privacy": "public",
1000
+ "inheritedFrom": {
1001
+ "name": "FoundationInboxBase",
1002
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1003
+ }
1004
+ },
1005
+ {
1006
+ "kind": "field",
1007
+ "name": "hideSeverityFilter",
1008
+ "type": {
1009
+ "text": "boolean"
1010
+ },
1011
+ "default": "false",
1012
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public",
1013
+ "inheritedFrom": {
1014
+ "name": "FoundationInboxBase",
1015
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1016
+ }
1017
+ },
1018
+ {
1019
+ "kind": "field",
1020
+ "name": "hideDateRange",
1021
+ "type": {
1022
+ "text": "boolean"
1023
+ },
1024
+ "default": "false",
1025
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public",
1026
+ "inheritedFrom": {
1027
+ "name": "FoundationInboxBase",
1028
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1029
+ }
1030
+ },
1031
+ {
1032
+ "kind": "field",
1033
+ "name": "hideTitleSearch",
1034
+ "type": {
1035
+ "text": "boolean"
1036
+ },
1037
+ "default": "false",
1038
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public",
1039
+ "inheritedFrom": {
1040
+ "name": "FoundationInboxBase",
1041
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1042
+ }
1043
+ },
1044
+ {
1045
+ "kind": "field",
1046
+ "name": "hideBodySearch",
1047
+ "type": {
1048
+ "text": "boolean"
1049
+ },
1050
+ "default": "false",
1051
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
1052
+ "inheritedFrom": {
1053
+ "name": "FoundationInboxBase",
1054
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1055
+ }
1056
+ },
1057
+ {
1058
+ "kind": "field",
1059
+ "name": "onAlertClick",
1060
+ "type": {
1061
+ "text": "((alert: Alert) => void) | undefined"
1062
+ },
1063
+ "default": "undefined",
1064
+ "description": "Optional click handler for an alert row, fired with the clicked alert so consumers can open\nthe related record. Interactive elements inside a custom renderAlert template should\ncall `event.stopPropagation()` to avoid triggering this. @public",
1065
+ "inheritedFrom": {
1066
+ "name": "FoundationInboxBase",
1067
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
1068
+ }
1069
+ },
961
1070
  {
962
1071
  "kind": "field",
963
1072
  "name": "ruleService",
@@ -1222,9 +1331,9 @@
1222
1331
  "kind": "field",
1223
1332
  "name": "sortDirection",
1224
1333
  "type": {
1225
- "text": "string"
1334
+ "text": "'Asc' | 'Desc'"
1226
1335
  },
1227
- "default": "'Asc'",
1336
+ "default": "'Desc'",
1228
1337
  "inheritedFrom": {
1229
1338
  "name": "FoundationInboxBase",
1230
1339
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
@@ -2514,6 +2623,61 @@
2514
2623
  },
2515
2624
  "default": "false"
2516
2625
  },
2626
+ {
2627
+ "kind": "field",
2628
+ "name": "renderAlert",
2629
+ "type": {
2630
+ "text": "ViewTemplate<Alert, FoundationInbox> | undefined"
2631
+ },
2632
+ "default": "undefined",
2633
+ "description": "Optional per-row template for the Alerts / Alert History lists. When set, it replaces the\ndefault alert row (the `.toast` element) and is rendered with the alert as its source (`x`)\nand the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.\nWhen unset, the built-in row is used, so existing consumers are unaffected.",
2634
+ "privacy": "public"
2635
+ },
2636
+ {
2637
+ "kind": "field",
2638
+ "name": "hideSeverityFilter",
2639
+ "type": {
2640
+ "text": "boolean"
2641
+ },
2642
+ "default": "false",
2643
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public"
2644
+ },
2645
+ {
2646
+ "kind": "field",
2647
+ "name": "hideDateRange",
2648
+ "type": {
2649
+ "text": "boolean"
2650
+ },
2651
+ "default": "false",
2652
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public"
2653
+ },
2654
+ {
2655
+ "kind": "field",
2656
+ "name": "hideTitleSearch",
2657
+ "type": {
2658
+ "text": "boolean"
2659
+ },
2660
+ "default": "false",
2661
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public"
2662
+ },
2663
+ {
2664
+ "kind": "field",
2665
+ "name": "hideBodySearch",
2666
+ "type": {
2667
+ "text": "boolean"
2668
+ },
2669
+ "default": "false",
2670
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public"
2671
+ },
2672
+ {
2673
+ "kind": "field",
2674
+ "name": "onAlertClick",
2675
+ "type": {
2676
+ "text": "((alert: Alert) => void) | undefined"
2677
+ },
2678
+ "default": "undefined",
2679
+ "description": "Optional click handler for an alert row, fired with the clicked alert so consumers can open\nthe related record. Interactive elements inside a custom renderAlert template should\ncall `event.stopPropagation()` to avoid triggering this. @public"
2680
+ },
2517
2681
  {
2518
2682
  "kind": "field",
2519
2683
  "name": "ruleService",
@@ -2690,9 +2854,9 @@
2690
2854
  "kind": "field",
2691
2855
  "name": "sortDirection",
2692
2856
  "type": {
2693
- "text": "string"
2857
+ "text": "'Asc' | 'Desc'"
2694
2858
  },
2695
- "default": "'Asc'"
2859
+ "default": "'Desc'"
2696
2860
  },
2697
2861
  {
2698
2862
  "kind": "field",
@@ -3085,6 +3249,40 @@
3085
3249
  ]
3086
3250
  }
3087
3251
  ],
3252
+ "attributes": [
3253
+ {
3254
+ "type": {
3255
+ "text": "boolean"
3256
+ },
3257
+ "default": "false",
3258
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public",
3259
+ "fieldName": "hideSeverityFilter"
3260
+ },
3261
+ {
3262
+ "type": {
3263
+ "text": "boolean"
3264
+ },
3265
+ "default": "false",
3266
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public",
3267
+ "fieldName": "hideDateRange"
3268
+ },
3269
+ {
3270
+ "type": {
3271
+ "text": "boolean"
3272
+ },
3273
+ "default": "false",
3274
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public",
3275
+ "fieldName": "hideTitleSearch"
3276
+ },
3277
+ {
3278
+ "type": {
3279
+ "text": "boolean"
3280
+ },
3281
+ "default": "false",
3282
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
3283
+ "fieldName": "hideBodySearch"
3284
+ }
3285
+ ],
3088
3286
  "superclass": {
3089
3287
  "name": "GenesisElement",
3090
3288
  "package": "@genesislcap/web-core"
@@ -4115,6 +4313,85 @@
4115
4313
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4116
4314
  }
4117
4315
  },
4316
+ {
4317
+ "kind": "field",
4318
+ "name": "renderAlert",
4319
+ "type": {
4320
+ "text": "ViewTemplate<Alert, FoundationInbox> | undefined"
4321
+ },
4322
+ "default": "undefined",
4323
+ "description": "Optional per-row template for the Alerts / Alert History lists. When set, it replaces the\ndefault alert row (the `.toast` element) and is rendered with the alert as its source (`x`)\nand the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.\nWhen unset, the built-in row is used, so existing consumers are unaffected.",
4324
+ "privacy": "public",
4325
+ "inheritedFrom": {
4326
+ "name": "FoundationInboxBase",
4327
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4328
+ }
4329
+ },
4330
+ {
4331
+ "kind": "field",
4332
+ "name": "hideSeverityFilter",
4333
+ "type": {
4334
+ "text": "boolean"
4335
+ },
4336
+ "default": "false",
4337
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public",
4338
+ "inheritedFrom": {
4339
+ "name": "FoundationInboxBase",
4340
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4341
+ }
4342
+ },
4343
+ {
4344
+ "kind": "field",
4345
+ "name": "hideDateRange",
4346
+ "type": {
4347
+ "text": "boolean"
4348
+ },
4349
+ "default": "false",
4350
+ "description": "Hide the Date Range filter block in the search bar. Set via the `hide-date-range`\nattribute or property. @public",
4351
+ "inheritedFrom": {
4352
+ "name": "FoundationInboxBase",
4353
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4354
+ }
4355
+ },
4356
+ {
4357
+ "kind": "field",
4358
+ "name": "hideTitleSearch",
4359
+ "type": {
4360
+ "text": "boolean"
4361
+ },
4362
+ "default": "false",
4363
+ "description": "Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`\nattribute or property. @public",
4364
+ "inheritedFrom": {
4365
+ "name": "FoundationInboxBase",
4366
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4367
+ }
4368
+ },
4369
+ {
4370
+ "kind": "field",
4371
+ "name": "hideBodySearch",
4372
+ "type": {
4373
+ "text": "boolean"
4374
+ },
4375
+ "default": "false",
4376
+ "description": "Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`\nattribute or property. @public",
4377
+ "inheritedFrom": {
4378
+ "name": "FoundationInboxBase",
4379
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4380
+ }
4381
+ },
4382
+ {
4383
+ "kind": "field",
4384
+ "name": "onAlertClick",
4385
+ "type": {
4386
+ "text": "((alert: Alert) => void) | undefined"
4387
+ },
4388
+ "default": "undefined",
4389
+ "description": "Optional click handler for an alert row, fired with the clicked alert so consumers can open\nthe related record. Interactive elements inside a custom renderAlert template should\ncall `event.stopPropagation()` to avoid triggering this. @public",
4390
+ "inheritedFrom": {
4391
+ "name": "FoundationInboxBase",
4392
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
4393
+ }
4394
+ },
4118
4395
  {
4119
4396
  "kind": "field",
4120
4397
  "name": "ruleService",
@@ -4379,9 +4656,9 @@
4379
4656
  "kind": "field",
4380
4657
  "name": "sortDirection",
4381
4658
  "type": {
4382
- "text": "string"
4659
+ "text": "'Asc' | 'Desc'"
4383
4660
  },
4384
- "default": "'Asc'",
4661
+ "default": "'Desc'",
4385
4662
  "inheritedFrom": {
4386
4663
  "name": "FoundationInboxBase",
4387
4664
  "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
@@ -4919,7 +5196,21 @@
4919
5196
  "module": "/src/components/foundation-inbox/inbox-base/inbox-base"
4920
5197
  },
4921
5198
  "tagName": "foundation-inbox-flyout",
4922
- "customElement": true
5199
+ "customElement": true,
5200
+ "attributes": [
5201
+ {
5202
+ "type": {
5203
+ "text": "boolean"
5204
+ },
5205
+ "default": "false",
5206
+ "description": "Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`\nattribute or property. @public",
5207
+ "fieldName": "hideSeverityFilter",
5208
+ "inheritedFrom": {
5209
+ "name": "FoundationInboxBase",
5210
+ "module": "src/components/foundation-inbox/inbox-base/inbox-base.ts"
5211
+ }
5212
+ }
5213
+ ]
4923
5214
  }
4924
5215
  ],
4925
5216
  "exports": [
@@ -1,12 +1,13 @@
1
1
  import { Auth, Connect } from '@genesislcap/foundation-comms';
2
2
  import { Expression } from '@genesislcap/foundation-criteria';
3
3
  import type { Tabs } from '@genesislcap/foundation-ui';
4
- import { GenesisElement } from '@genesislcap/web-core';
4
+ import { GenesisElement, ViewTemplate } from '@genesislcap/web-core';
5
5
  import { AlertService } from '../../../services/alert.service';
6
6
  import { FoundationInboxService } from '../../../services/inbox.service';
7
7
  import { NotifyChannel, NotifyRoute, NotifyRouteService } from '../../../services/notify-route.service';
8
8
  import { RuleService } from '../../../services/rule.service';
9
9
  import { TemplateService } from '../../../services/template.service';
10
+ import type { FoundationInbox } from '../inbox';
10
11
  import { Alert, InboxTab, NotificationRuleTemplateReply, Rule, RuleTemplate } from '../inbox.types';
11
12
  export declare class FoundationInboxBase extends GenesisElement {
12
13
  auth: Auth;
@@ -17,6 +18,41 @@ export declare class FoundationInboxBase extends GenesisElement {
17
18
  private alerts;
18
19
  alertsFilter: Alert[];
19
20
  moreAlerts: boolean;
21
+ /**
22
+ * Optional per-row template for the Alerts / Alert History lists. When set, it replaces the
23
+ * default alert row (the `.toast` element) and is rendered with the alert as its source (`x`)
24
+ * and the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.
25
+ * When unset, the built-in row is used, so existing consumers are unaffected.
26
+ *
27
+ * @public
28
+ */
29
+ renderAlert: ViewTemplate<Alert, FoundationInbox> | undefined;
30
+ /**
31
+ * Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`
32
+ * attribute or property. @public
33
+ */
34
+ hideSeverityFilter: boolean;
35
+ /**
36
+ * Hide the Date Range filter block in the search bar. Set via the `hide-date-range`
37
+ * attribute or property. @public
38
+ */
39
+ hideDateRange: boolean;
40
+ /**
41
+ * Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`
42
+ * attribute or property. @public
43
+ */
44
+ hideTitleSearch: boolean;
45
+ /**
46
+ * Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`
47
+ * attribute or property. @public
48
+ */
49
+ hideBodySearch: boolean;
50
+ /**
51
+ * Optional click handler for an alert row, fired with the clicked alert so consumers can open
52
+ * the related record. Interactive elements inside a custom {@link renderAlert} template should
53
+ * call `event.stopPropagation()` to avoid triggering this. @public
54
+ */
55
+ onAlertClick: ((alert: Alert) => void) | undefined;
20
56
  ruleService: RuleService;
21
57
  rules: Rule[];
22
58
  templateService: TemplateService;
@@ -39,7 +75,7 @@ export declare class FoundationInboxBase extends GenesisElement {
39
75
  toDatePickerValue: string;
40
76
  criteriaMatchAlertStatus: Expression;
41
77
  reverse: boolean;
42
- sortDirection: string;
78
+ sortDirection: 'Asc' | 'Desc';
43
79
  showLoadingIndicator: boolean;
44
80
  severityType: any[];
45
81
  tabs: Tabs;
@@ -1 +1 @@
1
- {"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/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,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO;IAIrD,kBAAkB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAI3E,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAIzE,OAAO,CAAC,oBAAoB;IAQ5B,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAI/E,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,uBAAuB;IAOzB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa;IA+C5D,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK;IA2CzD,oBAAoB,CAAC,UAAU,CAAC,EAAE,MAAM;YAmBhC,oBAAoB;IAkClC,sBAAsB;IAMtB,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM;CAG5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmM/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAiJnC,CAAC"}
1
+ {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiO/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAiJnC,CAAC"}
@@ -2,7 +2,8 @@ export * from './components/foundation-inbox/inbox';
2
2
  export * from './components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
3
3
  export * from './components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
4
4
  export * from './components/foundation-notification-dashboard';
5
- export type { ParameterEditedEventDetail, RuleParameterEntity, } from './components/foundation-inbox/inbox.types';
5
+ export type { Alert, ParameterEditedEventDetail, RuleParameterEntity, } from './components/foundation-inbox/inbox.types';
6
+ export { AlertStatus } from './components/foundation-inbox/inbox.types';
6
7
  export type { ConditionBuilderEntity } from './notify.types';
7
8
  export type { ParameterBuilderEntity } from './components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,4FAA4F,CAAC;AAC3G,cAAc,gDAAgD,CAAC;AAC/D,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,2GAA2G,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,4FAA4F,CAAC;AAC3G,cAAc,gDAAgD,CAAC;AAC/D,YAAY,EACV,KAAK,EACL,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,2GAA2G,CAAC"}
@@ -2,7 +2,7 @@ import { __awaiter, __decorate, __rest } from "tslib";
2
2
  import { Auth, Connect } from '@genesislcap/foundation-comms';
3
3
  import { CriteriaBuilder, ExpressionBuilder, Join, Serialisers, } from '@genesislcap/foundation-criteria';
4
4
  import { showNotificationDialog } from '@genesislcap/foundation-notifications';
5
- import { GenesisElement, observable } from '@genesislcap/web-core';
5
+ import { attr, GenesisElement, observable } from '@genesislcap/web-core';
6
6
  import dayjs from 'dayjs';
7
7
  import utc from 'dayjs/plugin/utc';
8
8
  import debounce from 'lodash.debounce';
@@ -32,6 +32,41 @@ export class FoundationInboxBase extends GenesisElement {
32
32
  this.alerts = [];
33
33
  this.alertsFilter = [];
34
34
  this.moreAlerts = false;
35
+ /**
36
+ * Optional per-row template for the Alerts / Alert History lists. When set, it replaces the
37
+ * default alert row (the `.toast` element) and is rendered with the alert as its source (`x`)
38
+ * and the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.
39
+ * When unset, the built-in row is used, so existing consumers are unaffected.
40
+ *
41
+ * @public
42
+ */
43
+ this.renderAlert = undefined;
44
+ /**
45
+ * Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`
46
+ * attribute or property. @public
47
+ */
48
+ this.hideSeverityFilter = false;
49
+ /**
50
+ * Hide the Date Range filter block in the search bar. Set via the `hide-date-range`
51
+ * attribute or property. @public
52
+ */
53
+ this.hideDateRange = false;
54
+ /**
55
+ * Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`
56
+ * attribute or property. @public
57
+ */
58
+ this.hideTitleSearch = false;
59
+ /**
60
+ * Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`
61
+ * attribute or property. @public
62
+ */
63
+ this.hideBodySearch = false;
64
+ /**
65
+ * Optional click handler for an alert row, fired with the clicked alert so consumers can open
66
+ * the related record. Interactive elements inside a custom {@link renderAlert} template should
67
+ * call `event.stopPropagation()` to avoid triggering this. @public
68
+ */
69
+ this.onAlertClick = undefined;
35
70
  this.rules = [];
36
71
  this.templates = [];
37
72
  this.templatesFilter = [];
@@ -52,7 +87,7 @@ export class FoundationInboxBase extends GenesisElement {
52
87
  this.fromDatePickerValue = null;
53
88
  this.toDatePickerValue = null;
54
89
  this.reverse = false;
55
- this.sortDirection = 'Asc';
90
+ this.sortDirection = 'Desc';
56
91
  this.showLoadingIndicator = false;
57
92
  this.severityType = [];
58
93
  this.alertSubscription = ({ store }) => {
@@ -464,6 +499,24 @@ __decorate([
464
499
  __decorate([
465
500
  observable
466
501
  ], FoundationInboxBase.prototype, "moreAlerts", void 0);
502
+ __decorate([
503
+ observable
504
+ ], FoundationInboxBase.prototype, "renderAlert", void 0);
505
+ __decorate([
506
+ attr({ mode: 'boolean' })
507
+ ], FoundationInboxBase.prototype, "hideSeverityFilter", void 0);
508
+ __decorate([
509
+ attr({ mode: 'boolean' })
510
+ ], FoundationInboxBase.prototype, "hideDateRange", void 0);
511
+ __decorate([
512
+ attr({ mode: 'boolean' })
513
+ ], FoundationInboxBase.prototype, "hideTitleSearch", void 0);
514
+ __decorate([
515
+ attr({ mode: 'boolean' })
516
+ ], FoundationInboxBase.prototype, "hideBodySearch", void 0);
517
+ __decorate([
518
+ observable
519
+ ], FoundationInboxBase.prototype, "onAlertClick", void 0);
467
520
  __decorate([
468
521
  RuleService
469
522
  ], FoundationInboxBase.prototype, "ruleService", void 0);