@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.
- package/dist/custom-elements.json +298 -7
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +38 -2
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +55 -2
- package/dist/esm/components/foundation-inbox/inbox.template.js +45 -21
- package/dist/esm/index.js +1 -0
- package/dist/pbc-notify-ui.api.json +348 -0
- package/dist/pbc-notify-ui.d.ts +39 -3
- package/package.json +23 -23
- package/src/components/foundation-inbox/inbox-base/inbox-base.ts +44 -2
- package/src/components/foundation-inbox/inbox.template.ts +54 -24
- package/src/index.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, ref, repeat, sync, when } from '@genesislcap/web-core';
|
|
1
|
+
import { html, ref, repeat, sync, when, whenElse } from '@genesislcap/web-core';
|
|
2
2
|
import { eventDetail } from '../../utils';
|
|
3
3
|
import { NotifyPermission } from '../../utils/notifyPermissions';
|
|
4
4
|
import { AlertStatus, InboxTab } from './inbox.types';
|
|
@@ -11,7 +11,9 @@ const alertsTab = (tab) => html `
|
|
|
11
11
|
style=${(x) => (x.selectedTab === tab ? '' : 'display: none;')}
|
|
12
12
|
>
|
|
13
13
|
<div class="search">
|
|
14
|
-
<div
|
|
14
|
+
<div
|
|
15
|
+
style=${(x) => x.hideSeverityFilter ? 'display: none;' : 'display: flex; flex-direction: column;'}
|
|
16
|
+
>
|
|
15
17
|
<label part="label" for="control" class="search-label">
|
|
16
18
|
<slot>Severity</slot>
|
|
17
19
|
</label>
|
|
@@ -63,7 +65,9 @@ const alertsTab = (tab) => html `
|
|
|
63
65
|
</div>
|
|
64
66
|
</div>
|
|
65
67
|
|
|
66
|
-
<div
|
|
68
|
+
<div
|
|
69
|
+
style=${(x) => x.hideDateRange ? 'display: none;' : 'display: flex; flex-direction: column;'}
|
|
70
|
+
>
|
|
67
71
|
<label part="label" for="control" class="search-label">
|
|
68
72
|
<slot>Date Range</slot>
|
|
69
73
|
</label>
|
|
@@ -92,6 +96,7 @@ const alertsTab = (tab) => html `
|
|
|
92
96
|
|
|
93
97
|
<rapid-text-field
|
|
94
98
|
class="search-input"
|
|
99
|
+
style=${(x) => (x.hideTitleSearch ? 'display: none;' : '')}
|
|
95
100
|
:value=${(x) => x.titleSearchValue}
|
|
96
101
|
@input=${(x, c) => {
|
|
97
102
|
x.titleSearchValue = c.event.target.value;
|
|
@@ -103,6 +108,7 @@ const alertsTab = (tab) => html `
|
|
|
103
108
|
|
|
104
109
|
<rapid-text-field
|
|
105
110
|
class="search-input"
|
|
111
|
+
style=${(x) => (x.hideBodySearch ? 'display: none;' : '')}
|
|
106
112
|
:value=${(x) => x.bodySearchValue}
|
|
107
113
|
@input=${(x, c) => {
|
|
108
114
|
x.bodySearchValue = c.event.target.value;
|
|
@@ -118,8 +124,8 @@ const alertsTab = (tab) => html `
|
|
|
118
124
|
<slot>Sort By</slot>
|
|
119
125
|
</label>
|
|
120
126
|
<rapid-segmented-control :value=${sync((x) => x.sortDirection)}>
|
|
121
|
-
<rapid-segmented-item
|
|
122
|
-
<rapid-segmented-item value="Desc">Desc</rapid-segmented-item>
|
|
127
|
+
<rapid-segmented-item value="Asc">Asc</rapid-segmented-item>
|
|
128
|
+
<rapid-segmented-item checked value="Desc">Desc</rapid-segmented-item>
|
|
123
129
|
</rapid-segmented-control>
|
|
124
130
|
</div>
|
|
125
131
|
${when(() => tab === InboxTab.ALERTS_NEW, html `
|
|
@@ -137,24 +143,42 @@ const alertsTab = (tab) => html `
|
|
|
137
143
|
|
|
138
144
|
<div class="alert-log-tab-content" part="alert-log">
|
|
139
145
|
${repeat((x) => x.alertsFilter, html `
|
|
140
|
-
<div
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
<div
|
|
147
|
+
class="alert-row"
|
|
148
|
+
style=${(x, c) => (c.parent.onAlertClick ? 'cursor: pointer;' : '')}
|
|
149
|
+
@click=${(x, c) => { var _a, _b; return (_b = (_a = c.parent).onAlertClick) === null || _b === void 0 ? void 0 : _b.call(_a, x); }}
|
|
150
|
+
>
|
|
151
|
+
${whenElse((x, c) => !!c.parent.renderAlert, html `
|
|
152
|
+
${(x, c) => c.parent.renderAlert}
|
|
153
|
+
`, html `
|
|
154
|
+
<div class="toast" id=${(x) => x.ALERT_ID}>
|
|
155
|
+
<div
|
|
156
|
+
class="toast-severity"
|
|
157
|
+
style="background-color: ${(x) => getSeverityColor(x.NOTIFY_SEVERITY)}"
|
|
158
|
+
></div>
|
|
145
159
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
160
|
+
<div class="toast-content">
|
|
161
|
+
${when((x) => x.ALERT_STATUS === AlertStatus.NEW, html `
|
|
162
|
+
<div
|
|
163
|
+
class="close-icon"
|
|
164
|
+
@click=${(x, c) => {
|
|
165
|
+
c.event.stopPropagation();
|
|
166
|
+
c.parent.dismissAlert(x.ALERT_ID);
|
|
167
|
+
}}
|
|
168
|
+
>
|
|
169
|
+
<rapid-icon name="times"></rapid-icon>
|
|
170
|
+
</div>
|
|
171
|
+
`)}
|
|
172
|
+
<span class="toast-header">${(x) => x.HEADER}</span>
|
|
173
|
+
<span class="toast-message">${(x) => x.MESSAGE}</span>
|
|
174
|
+
<div class="toast-bottom" slot="bottom">
|
|
175
|
+
<span class="toast-date" slot="date">
|
|
176
|
+
${(x) => getFormattedDate(x.CREATED_AT)}
|
|
177
|
+
</span>
|
|
178
|
+
</div>
|
|
150
179
|
</div>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<span class="toast-message">${(x) => x.MESSAGE}</span>
|
|
154
|
-
<div class="toast-bottom" slot="bottom">
|
|
155
|
-
<span class="toast-date" slot="date">${(x) => getFormattedDate(x.CREATED_AT)}</span>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
180
|
+
</div>
|
|
181
|
+
`)}
|
|
158
182
|
</div>
|
|
159
183
|
`)}
|
|
160
184
|
${when((x) => x.alertsFilter.length === 0 && !x.showLoadingIndicator, html `
|
package/dist/esm/index.js
CHANGED
|
@@ -2,3 +2,4 @@ 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 { AlertStatus } from './components/foundation-inbox/inbox.types';
|
|
@@ -178,6 +178,354 @@
|
|
|
178
178
|
"name": "",
|
|
179
179
|
"preserveMemberOrder": false,
|
|
180
180
|
"members": [
|
|
181
|
+
{
|
|
182
|
+
"kind": "Interface",
|
|
183
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert:interface",
|
|
184
|
+
"docComment": "",
|
|
185
|
+
"excerptTokens": [
|
|
186
|
+
{
|
|
187
|
+
"kind": "Content",
|
|
188
|
+
"text": "export interface Alert "
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"fileUrlPath": "src/components/foundation-inbox/inbox.types.ts",
|
|
192
|
+
"releaseTag": "Public",
|
|
193
|
+
"name": "Alert",
|
|
194
|
+
"preserveMemberOrder": false,
|
|
195
|
+
"members": [
|
|
196
|
+
{
|
|
197
|
+
"kind": "PropertySignature",
|
|
198
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#ALERT_ID:member",
|
|
199
|
+
"docComment": "",
|
|
200
|
+
"excerptTokens": [
|
|
201
|
+
{
|
|
202
|
+
"kind": "Content",
|
|
203
|
+
"text": "ALERT_ID: "
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"kind": "Content",
|
|
207
|
+
"text": "string"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "Content",
|
|
211
|
+
"text": ";"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"isReadonly": false,
|
|
215
|
+
"isOptional": false,
|
|
216
|
+
"releaseTag": "Public",
|
|
217
|
+
"name": "ALERT_ID",
|
|
218
|
+
"propertyTypeTokenRange": {
|
|
219
|
+
"startIndex": 1,
|
|
220
|
+
"endIndex": 2
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"kind": "PropertySignature",
|
|
225
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#ALERT_STATUS:member",
|
|
226
|
+
"docComment": "",
|
|
227
|
+
"excerptTokens": [
|
|
228
|
+
{
|
|
229
|
+
"kind": "Content",
|
|
230
|
+
"text": "ALERT_STATUS: "
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"kind": "Reference",
|
|
234
|
+
"text": "AlertStatus",
|
|
235
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!AlertStatus:enum"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "Content",
|
|
239
|
+
"text": ";"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"isReadonly": false,
|
|
243
|
+
"isOptional": false,
|
|
244
|
+
"releaseTag": "Public",
|
|
245
|
+
"name": "ALERT_STATUS",
|
|
246
|
+
"propertyTypeTokenRange": {
|
|
247
|
+
"startIndex": 1,
|
|
248
|
+
"endIndex": 2
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"kind": "PropertySignature",
|
|
253
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#CREATED_AT:member",
|
|
254
|
+
"docComment": "",
|
|
255
|
+
"excerptTokens": [
|
|
256
|
+
{
|
|
257
|
+
"kind": "Content",
|
|
258
|
+
"text": "CREATED_AT: "
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "Content",
|
|
262
|
+
"text": "number"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "Content",
|
|
266
|
+
"text": ";"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"isReadonly": false,
|
|
270
|
+
"isOptional": false,
|
|
271
|
+
"releaseTag": "Public",
|
|
272
|
+
"name": "CREATED_AT",
|
|
273
|
+
"propertyTypeTokenRange": {
|
|
274
|
+
"startIndex": 1,
|
|
275
|
+
"endIndex": 2
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"kind": "PropertySignature",
|
|
280
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#EXPIRY:member",
|
|
281
|
+
"docComment": "",
|
|
282
|
+
"excerptTokens": [
|
|
283
|
+
{
|
|
284
|
+
"kind": "Content",
|
|
285
|
+
"text": "EXPIRY: "
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "Content",
|
|
289
|
+
"text": "number"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"kind": "Content",
|
|
293
|
+
"text": ";"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"isReadonly": false,
|
|
297
|
+
"isOptional": false,
|
|
298
|
+
"releaseTag": "Public",
|
|
299
|
+
"name": "EXPIRY",
|
|
300
|
+
"propertyTypeTokenRange": {
|
|
301
|
+
"startIndex": 1,
|
|
302
|
+
"endIndex": 2
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"kind": "PropertySignature",
|
|
307
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#HEADER:member",
|
|
308
|
+
"docComment": "",
|
|
309
|
+
"excerptTokens": [
|
|
310
|
+
{
|
|
311
|
+
"kind": "Content",
|
|
312
|
+
"text": "HEADER: "
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"kind": "Content",
|
|
316
|
+
"text": "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "Content",
|
|
320
|
+
"text": ";"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"isReadonly": false,
|
|
324
|
+
"isOptional": false,
|
|
325
|
+
"releaseTag": "Public",
|
|
326
|
+
"name": "HEADER",
|
|
327
|
+
"propertyTypeTokenRange": {
|
|
328
|
+
"startIndex": 1,
|
|
329
|
+
"endIndex": 2
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "PropertySignature",
|
|
334
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#MESSAGE:member",
|
|
335
|
+
"docComment": "",
|
|
336
|
+
"excerptTokens": [
|
|
337
|
+
{
|
|
338
|
+
"kind": "Content",
|
|
339
|
+
"text": "MESSAGE: "
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"kind": "Content",
|
|
343
|
+
"text": "string"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"kind": "Content",
|
|
347
|
+
"text": ";"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"isReadonly": false,
|
|
351
|
+
"isOptional": false,
|
|
352
|
+
"releaseTag": "Public",
|
|
353
|
+
"name": "MESSAGE",
|
|
354
|
+
"propertyTypeTokenRange": {
|
|
355
|
+
"startIndex": 1,
|
|
356
|
+
"endIndex": 2
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"kind": "PropertySignature",
|
|
361
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#NOTIFY_SEVERITY:member",
|
|
362
|
+
"docComment": "",
|
|
363
|
+
"excerptTokens": [
|
|
364
|
+
{
|
|
365
|
+
"kind": "Content",
|
|
366
|
+
"text": "NOTIFY_SEVERITY: "
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"kind": "Content",
|
|
370
|
+
"text": "string"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"kind": "Content",
|
|
374
|
+
"text": ";"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"isReadonly": false,
|
|
378
|
+
"isOptional": false,
|
|
379
|
+
"releaseTag": "Public",
|
|
380
|
+
"name": "NOTIFY_SEVERITY",
|
|
381
|
+
"propertyTypeTokenRange": {
|
|
382
|
+
"startIndex": 1,
|
|
383
|
+
"endIndex": 2
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"kind": "PropertySignature",
|
|
388
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#TABLE_ENTITY_ID:member",
|
|
389
|
+
"docComment": "",
|
|
390
|
+
"excerptTokens": [
|
|
391
|
+
{
|
|
392
|
+
"kind": "Content",
|
|
393
|
+
"text": "TABLE_ENTITY_ID: "
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"kind": "Content",
|
|
397
|
+
"text": "string"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "Content",
|
|
401
|
+
"text": ";"
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"isReadonly": false,
|
|
405
|
+
"isOptional": false,
|
|
406
|
+
"releaseTag": "Public",
|
|
407
|
+
"name": "TABLE_ENTITY_ID",
|
|
408
|
+
"propertyTypeTokenRange": {
|
|
409
|
+
"startIndex": 1,
|
|
410
|
+
"endIndex": 2
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "PropertySignature",
|
|
415
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#TOPIC:member",
|
|
416
|
+
"docComment": "",
|
|
417
|
+
"excerptTokens": [
|
|
418
|
+
{
|
|
419
|
+
"kind": "Content",
|
|
420
|
+
"text": "TOPIC: "
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "Content",
|
|
424
|
+
"text": "string"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"kind": "Content",
|
|
428
|
+
"text": ";"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"isReadonly": false,
|
|
432
|
+
"isOptional": false,
|
|
433
|
+
"releaseTag": "Public",
|
|
434
|
+
"name": "TOPIC",
|
|
435
|
+
"propertyTypeTokenRange": {
|
|
436
|
+
"startIndex": 1,
|
|
437
|
+
"endIndex": 2
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"kind": "PropertySignature",
|
|
442
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!Alert#USER_NAME:member",
|
|
443
|
+
"docComment": "",
|
|
444
|
+
"excerptTokens": [
|
|
445
|
+
{
|
|
446
|
+
"kind": "Content",
|
|
447
|
+
"text": "USER_NAME: "
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"kind": "Content",
|
|
451
|
+
"text": "string"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"kind": "Content",
|
|
455
|
+
"text": ";"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"isReadonly": false,
|
|
459
|
+
"isOptional": false,
|
|
460
|
+
"releaseTag": "Public",
|
|
461
|
+
"name": "USER_NAME",
|
|
462
|
+
"propertyTypeTokenRange": {
|
|
463
|
+
"startIndex": 1,
|
|
464
|
+
"endIndex": 2
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"extendsTokenRanges": []
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "Enum",
|
|
472
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!AlertStatus:enum",
|
|
473
|
+
"docComment": "",
|
|
474
|
+
"excerptTokens": [
|
|
475
|
+
{
|
|
476
|
+
"kind": "Content",
|
|
477
|
+
"text": "export declare enum AlertStatus "
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"fileUrlPath": "src/components/foundation-inbox/inbox.types.ts",
|
|
481
|
+
"releaseTag": "Public",
|
|
482
|
+
"name": "AlertStatus",
|
|
483
|
+
"preserveMemberOrder": false,
|
|
484
|
+
"members": [
|
|
485
|
+
{
|
|
486
|
+
"kind": "EnumMember",
|
|
487
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!AlertStatus.DISMISSED:member",
|
|
488
|
+
"docComment": "",
|
|
489
|
+
"excerptTokens": [
|
|
490
|
+
{
|
|
491
|
+
"kind": "Content",
|
|
492
|
+
"text": "DISMISSED = "
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"kind": "Content",
|
|
496
|
+
"text": "\"DISMISSED\""
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"initializerTokenRange": {
|
|
500
|
+
"startIndex": 1,
|
|
501
|
+
"endIndex": 2
|
|
502
|
+
},
|
|
503
|
+
"releaseTag": "Public",
|
|
504
|
+
"name": "DISMISSED"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"kind": "EnumMember",
|
|
508
|
+
"canonicalReference": "@genesislcap/pbc-notify-ui!AlertStatus.NEW:member",
|
|
509
|
+
"docComment": "",
|
|
510
|
+
"excerptTokens": [
|
|
511
|
+
{
|
|
512
|
+
"kind": "Content",
|
|
513
|
+
"text": "NEW = "
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"kind": "Content",
|
|
517
|
+
"text": "\"NEW\""
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"initializerTokenRange": {
|
|
521
|
+
"startIndex": 1,
|
|
522
|
+
"endIndex": 2
|
|
523
|
+
},
|
|
524
|
+
"releaseTag": "Public",
|
|
525
|
+
"name": "NEW"
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
181
529
|
{
|
|
182
530
|
"kind": "TypeAlias",
|
|
183
531
|
"canonicalReference": "@genesislcap/pbc-notify-ui!ConditionBuilderEntity:type",
|
package/dist/pbc-notify-ui.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
|
7
7
|
import { Message } from '@genesislcap/foundation-comms';
|
|
8
8
|
import { SocketObservable } from '@genesislcap/foundation-comms';
|
|
9
9
|
import type { Tabs } from '@genesislcap/foundation-ui';
|
|
10
|
+
import { ViewTemplate } from '@genesislcap/web-core';
|
|
10
11
|
|
|
11
|
-
declare interface Alert {
|
|
12
|
+
export declare interface Alert {
|
|
12
13
|
ALERT_ID: string;
|
|
13
14
|
ALERT_STATUS: AlertStatus;
|
|
14
15
|
CREATED_AT: number;
|
|
@@ -29,7 +30,7 @@ declare interface AlertService {
|
|
|
29
30
|
|
|
30
31
|
declare const AlertService: InterfaceSymbol<AlertService>;
|
|
31
32
|
|
|
32
|
-
declare enum AlertStatus {
|
|
33
|
+
export declare enum AlertStatus {
|
|
33
34
|
NEW = "NEW",
|
|
34
35
|
DISMISSED = "DISMISSED"
|
|
35
36
|
}
|
|
@@ -62,6 +63,41 @@ declare class FoundationInboxBase extends GenesisElement {
|
|
|
62
63
|
private alerts;
|
|
63
64
|
alertsFilter: Alert[];
|
|
64
65
|
moreAlerts: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional per-row template for the Alerts / Alert History lists. When set, it replaces the
|
|
68
|
+
* default alert row (the `.toast` element) and is rendered with the alert as its source (`x`)
|
|
69
|
+
* and the inbox host as `c.parent`, mirroring the internal `html<Alert, FoundationInbox>` row.
|
|
70
|
+
* When unset, the built-in row is used, so existing consumers are unaffected.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
renderAlert: ViewTemplate<Alert, FoundationInbox> | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Hide the Severity filter block in the search bar. Set via the `hide-severity-filter`
|
|
77
|
+
* attribute or property. @public
|
|
78
|
+
*/
|
|
79
|
+
hideSeverityFilter: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Hide the Date Range filter block in the search bar. Set via the `hide-date-range`
|
|
82
|
+
* attribute or property. @public
|
|
83
|
+
*/
|
|
84
|
+
hideDateRange: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Hide the Search-by-Title field in the search bar. Set via the `hide-title-search`
|
|
87
|
+
* attribute or property. @public
|
|
88
|
+
*/
|
|
89
|
+
hideTitleSearch: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Hide the Search-by-Body field in the search bar. Set via the `hide-body-search`
|
|
92
|
+
* attribute or property. @public
|
|
93
|
+
*/
|
|
94
|
+
hideBodySearch: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Optional click handler for an alert row, fired with the clicked alert so consumers can open
|
|
97
|
+
* the related record. Interactive elements inside a custom {@link renderAlert} template should
|
|
98
|
+
* call `event.stopPropagation()` to avoid triggering this. @public
|
|
99
|
+
*/
|
|
100
|
+
onAlertClick: ((alert: Alert) => void) | undefined;
|
|
65
101
|
ruleService: RuleService;
|
|
66
102
|
rules: Rule_2[];
|
|
67
103
|
templateService: TemplateService;
|
|
@@ -84,7 +120,7 @@ declare class FoundationInboxBase extends GenesisElement {
|
|
|
84
120
|
toDatePickerValue: string;
|
|
85
121
|
criteriaMatchAlertStatus: Expression;
|
|
86
122
|
reverse: boolean;
|
|
87
|
-
sortDirection:
|
|
123
|
+
sortDirection: 'Asc' | 'Desc';
|
|
88
124
|
showLoadingIndicator: boolean;
|
|
89
125
|
severityType: any[];
|
|
90
126
|
tabs: Tabs;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-notify-ui",
|
|
3
3
|
"description": "Genesis PBC Notify UI",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.1.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -83,30 +83,30 @@
|
|
|
83
83
|
"@commitlint/format": "^19.0.3",
|
|
84
84
|
"@genesiscommunitysuccess/cep-fast-plugin": "5.0.3",
|
|
85
85
|
"@genesiscommunitysuccess/custom-elements-lsp": "5.0.3",
|
|
86
|
-
"@genesislcap/design-system-configurator": "15.
|
|
87
|
-
"@genesislcap/eslint-config": "15.
|
|
88
|
-
"@genesislcap/eslint-stylelint-builder": "15.
|
|
89
|
-
"@genesislcap/foundation-testing": "15.
|
|
90
|
-
"@genesislcap/genx": "15.
|
|
91
|
-
"@genesislcap/prettier-config": "15.
|
|
92
|
-
"@genesislcap/stylelint-config": "15.
|
|
93
|
-
"@genesislcap/vite-builder": "15.
|
|
94
|
-
"@genesislcap/webpack-builder": "15.
|
|
86
|
+
"@genesislcap/design-system-configurator": "15.1.0",
|
|
87
|
+
"@genesislcap/eslint-config": "15.1.0",
|
|
88
|
+
"@genesislcap/eslint-stylelint-builder": "15.1.0",
|
|
89
|
+
"@genesislcap/foundation-testing": "15.1.0",
|
|
90
|
+
"@genesislcap/genx": "15.1.0",
|
|
91
|
+
"@genesislcap/prettier-config": "15.1.0",
|
|
92
|
+
"@genesislcap/stylelint-config": "15.1.0",
|
|
93
|
+
"@genesislcap/vite-builder": "15.1.0",
|
|
94
|
+
"@genesislcap/webpack-builder": "15.1.0",
|
|
95
95
|
"dayjs": "^1.11.7"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@genesislcap/foundation-comms": "15.
|
|
99
|
-
"@genesislcap/foundation-criteria": "15.
|
|
100
|
-
"@genesislcap/foundation-entity-management": "15.
|
|
101
|
-
"@genesislcap/foundation-forms": "15.
|
|
102
|
-
"@genesislcap/foundation-layout": "15.
|
|
103
|
-
"@genesislcap/foundation-logger": "15.
|
|
104
|
-
"@genesislcap/foundation-notifications": "15.
|
|
105
|
-
"@genesislcap/foundation-ui": "15.
|
|
106
|
-
"@genesislcap/foundation-utils": "15.
|
|
107
|
-
"@genesislcap/rapid-design-system": "15.
|
|
108
|
-
"@genesislcap/rapid-grid-pro": "15.
|
|
109
|
-
"@genesislcap/web-core": "15.
|
|
98
|
+
"@genesislcap/foundation-comms": "15.1.0",
|
|
99
|
+
"@genesislcap/foundation-criteria": "15.1.0",
|
|
100
|
+
"@genesislcap/foundation-entity-management": "15.1.0",
|
|
101
|
+
"@genesislcap/foundation-forms": "15.1.0",
|
|
102
|
+
"@genesislcap/foundation-layout": "15.1.0",
|
|
103
|
+
"@genesislcap/foundation-logger": "15.1.0",
|
|
104
|
+
"@genesislcap/foundation-notifications": "15.1.0",
|
|
105
|
+
"@genesislcap/foundation-ui": "15.1.0",
|
|
106
|
+
"@genesislcap/foundation-utils": "15.1.0",
|
|
107
|
+
"@genesislcap/rapid-design-system": "15.1.0",
|
|
108
|
+
"@genesislcap/rapid-grid-pro": "15.1.0",
|
|
109
|
+
"@genesislcap/web-core": "15.1.0",
|
|
110
110
|
"lodash.debounce": "^4.0.8",
|
|
111
111
|
"rxjs": "^7.5.4"
|
|
112
112
|
},
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"customElements": "dist/custom-elements.json",
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "f841e54c9b682f3cf01448a9db79d67a66b88c84"
|
|
118
118
|
}
|