@genesislcap/foundation-openfin 14.214.1-FUI-2233.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/MODULE_FEDERATION.md +11 -0
  2. package/README.md +59 -0
  3. package/dist/dts/index.d.ts +8 -0
  4. package/dist/dts/index.d.ts.map +1 -0
  5. package/dist/dts/notifications/openfin-notifications-listener.d.ts +125 -0
  6. package/dist/dts/notifications/openfin-notifications-listener.d.ts.map +1 -0
  7. package/dist/dts/tsdoc-metadata.json +11 -0
  8. package/dist/dts/utils.d.ts +7 -0
  9. package/dist/dts/utils.d.ts.map +1 -0
  10. package/dist/esm/index.js +3 -0
  11. package/dist/esm/notifications/openfin-notifications-listener.js +148 -0
  12. package/dist/esm/utils.js +6 -0
  13. package/dist/foundation-openfin.api.json +574 -0
  14. package/dist/foundation-openfin.d.ts +136 -0
  15. package/docs/.gitattributes +2 -0
  16. package/docs/api/foundation-openfin.isopenfin.md +16 -0
  17. package/docs/api/foundation-openfin.md +24 -0
  18. package/docs/api/foundation-openfin.openfinnotifications.connectedcallback.md +15 -0
  19. package/docs/api/foundation-openfin.openfinnotifications.md +33 -0
  20. package/docs/api/foundation-openfin.openfinnotifications.mode.md +19 -0
  21. package/docs/api/foundation-openfin.openfinnotifications.notificationsplatform.md +40 -0
  22. package/docs/api/foundation-openfin.openfinnotifications.shownotificationtoast.md +22 -0
  23. package/docs/api/foundation-openfin.openfinnotifications.toast.md +19 -0
  24. package/docs/api/foundation-openfin.openfinnotifications.toastbuttons.md +71 -0
  25. package/docs/api/foundation-openfin.openfintoastbutton.cta.md +11 -0
  26. package/docs/api/foundation-openfin.openfintoastbutton.md +25 -0
  27. package/docs/api/foundation-openfin.openfintoastbutton.message.md +11 -0
  28. package/docs/api/foundation-openfin.openfintoastbutton.task.md +11 -0
  29. package/docs/api/index.md +12 -0
  30. package/docs/api-report.md +42 -0
  31. package/license.txt +46 -0
  32. package/package.json +96 -0
  33. package/tsdoc.json +20 -0
@@ -0,0 +1,574 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.34.9",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ },
129
+ {
130
+ "tagName": "@tagname",
131
+ "syntaxKind": "block",
132
+ "allowMultiple": true
133
+ },
134
+ {
135
+ "tagName": "@fires",
136
+ "syntaxKind": "block",
137
+ "allowMultiple": true
138
+ }
139
+ ],
140
+ "supportForTags": {
141
+ "@alpha": true,
142
+ "@beta": true,
143
+ "@defaultValue": true,
144
+ "@decorator": true,
145
+ "@deprecated": true,
146
+ "@eventProperty": true,
147
+ "@example": true,
148
+ "@experimental": true,
149
+ "@inheritDoc": true,
150
+ "@internal": true,
151
+ "@label": true,
152
+ "@link": true,
153
+ "@override": true,
154
+ "@packageDocumentation": true,
155
+ "@param": true,
156
+ "@privateRemarks": true,
157
+ "@public": true,
158
+ "@readonly": true,
159
+ "@remarks": true,
160
+ "@returns": true,
161
+ "@sealed": true,
162
+ "@see": true,
163
+ "@throws": true,
164
+ "@typeParam": true,
165
+ "@virtual": true,
166
+ "@betaDocumentation": true,
167
+ "@internalRemarks": true,
168
+ "@preapproved": true,
169
+ "@tagname": true,
170
+ "@fires": true
171
+ },
172
+ "reportUnsupportedHtmlElements": false
173
+ }
174
+ },
175
+ "kind": "Package",
176
+ "canonicalReference": "@genesislcap/foundation-openfin!",
177
+ "docComment": "",
178
+ "name": "@genesislcap/foundation-openfin",
179
+ "preserveMemberOrder": false,
180
+ "members": [
181
+ {
182
+ "kind": "EntryPoint",
183
+ "canonicalReference": "@genesislcap/foundation-openfin!",
184
+ "name": "",
185
+ "preserveMemberOrder": false,
186
+ "members": [
187
+ {
188
+ "kind": "Variable",
189
+ "canonicalReference": "@genesislcap/foundation-openfin!isOpenFin:var",
190
+ "docComment": "/**\n * @remarks\n *\n * Util method to check whether an application is running in an openfin workspace container\n *\n * @public\n */\n",
191
+ "excerptTokens": [
192
+ {
193
+ "kind": "Content",
194
+ "text": "isOpenFin: "
195
+ },
196
+ {
197
+ "kind": "Content",
198
+ "text": "() => boolean"
199
+ }
200
+ ],
201
+ "fileUrlPath": "src/utils.ts",
202
+ "isReadonly": true,
203
+ "releaseTag": "Public",
204
+ "name": "isOpenFin",
205
+ "variableTypeTokenRange": {
206
+ "startIndex": 1,
207
+ "endIndex": 2
208
+ }
209
+ },
210
+ {
211
+ "kind": "Class",
212
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications:class",
213
+ "docComment": "/**\n * @remarks\n *\n * Openfin Notifications custom element\n *\n * @public\n */\n",
214
+ "excerptTokens": [
215
+ {
216
+ "kind": "Content",
217
+ "text": "export declare class OpenfinNotifications extends "
218
+ },
219
+ {
220
+ "kind": "Reference",
221
+ "text": "NotificationListener",
222
+ "canonicalReference": "@genesislcap/foundation-ui!NotificationListener:class"
223
+ },
224
+ {
225
+ "kind": "Content",
226
+ "text": " "
227
+ }
228
+ ],
229
+ "fileUrlPath": "src/notifications/openfin-notifications-listener.ts",
230
+ "releaseTag": "Public",
231
+ "isAbstract": false,
232
+ "name": "OpenfinNotifications",
233
+ "preserveMemberOrder": false,
234
+ "members": [
235
+ {
236
+ "kind": "Method",
237
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#connectedCallback:member(1)",
238
+ "docComment": "",
239
+ "excerptTokens": [
240
+ {
241
+ "kind": "Content",
242
+ "text": "connectedCallback(): "
243
+ },
244
+ {
245
+ "kind": "Reference",
246
+ "text": "Promise",
247
+ "canonicalReference": "!Promise:interface"
248
+ },
249
+ {
250
+ "kind": "Content",
251
+ "text": "<void>"
252
+ },
253
+ {
254
+ "kind": "Content",
255
+ "text": ";"
256
+ }
257
+ ],
258
+ "isStatic": false,
259
+ "returnTypeTokenRange": {
260
+ "startIndex": 1,
261
+ "endIndex": 3
262
+ },
263
+ "releaseTag": "Public",
264
+ "isProtected": false,
265
+ "overloadIndex": 1,
266
+ "parameters": [],
267
+ "isOptional": false,
268
+ "isAbstract": false,
269
+ "name": "connectedCallback"
270
+ },
271
+ {
272
+ "kind": "Property",
273
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#mode:member",
274
+ "docComment": "/**\n * @remarks\n *\n * The notification sound mode\n *\n * @beta\n */\n",
275
+ "excerptTokens": [
276
+ {
277
+ "kind": "Content",
278
+ "text": "mode: "
279
+ },
280
+ {
281
+ "kind": "Content",
282
+ "text": "'default' | 'silent'"
283
+ },
284
+ {
285
+ "kind": "Content",
286
+ "text": ";"
287
+ }
288
+ ],
289
+ "isReadonly": false,
290
+ "isOptional": false,
291
+ "releaseTag": "Beta",
292
+ "name": "mode",
293
+ "propertyTypeTokenRange": {
294
+ "startIndex": 1,
295
+ "endIndex": 2
296
+ },
297
+ "isStatic": false,
298
+ "isProtected": false,
299
+ "isAbstract": false
300
+ },
301
+ {
302
+ "kind": "Property",
303
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#notificationsPlatform:member",
304
+ "docComment": "/**\n * @remarks\n *\n * Config for registering a workspace with the Openfin notifications component\n *\n * @example\n *\n * Create your notifications platform constant\n * ```ts\n * const notificationsPlatform: NotificationsPlatform = {\n * id: 'platform-id', // the id of your openfin workspace\n * icon: 'https://localhost:8080/path/to/icon.svg', // the url to the icon for your workspace\n * title: 'Platform title' // the platform title which will appear in notifications\n * }\n * ```\n *\n * Setting the property in an html view template\n * ```html\n * <openfin-notifications-listener\n * ...\n * :notificationsPlatform=\"${() => notificationsPlatform}\"\n * >\n * </openfin-notifications-listener>\n * ```\n *\n * @beta\n */\n",
305
+ "excerptTokens": [
306
+ {
307
+ "kind": "Content",
308
+ "text": "notificationsPlatform: "
309
+ },
310
+ {
311
+ "kind": "Reference",
312
+ "text": "NotificationsPlatform",
313
+ "canonicalReference": "@openfin/workspace!NotificationsPlatform:interface"
314
+ },
315
+ {
316
+ "kind": "Content",
317
+ "text": ";"
318
+ }
319
+ ],
320
+ "isReadonly": false,
321
+ "isOptional": false,
322
+ "releaseTag": "Beta",
323
+ "name": "notificationsPlatform",
324
+ "propertyTypeTokenRange": {
325
+ "startIndex": 1,
326
+ "endIndex": 2
327
+ },
328
+ "isStatic": false,
329
+ "isProtected": false,
330
+ "isAbstract": false
331
+ },
332
+ {
333
+ "kind": "Method",
334
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#showNotificationToast:member(1)",
335
+ "docComment": "",
336
+ "excerptTokens": [
337
+ {
338
+ "kind": "Content",
339
+ "text": "protected showNotificationToast(row: "
340
+ },
341
+ {
342
+ "kind": "Reference",
343
+ "text": "NotificationDataRow",
344
+ "canonicalReference": "@genesislcap/foundation-notifications!NotificationDataRow:interface"
345
+ },
346
+ {
347
+ "kind": "Content",
348
+ "text": "): "
349
+ },
350
+ {
351
+ "kind": "Reference",
352
+ "text": "Promise",
353
+ "canonicalReference": "!Promise:interface"
354
+ },
355
+ {
356
+ "kind": "Content",
357
+ "text": "<void>"
358
+ },
359
+ {
360
+ "kind": "Content",
361
+ "text": ";"
362
+ }
363
+ ],
364
+ "isStatic": false,
365
+ "returnTypeTokenRange": {
366
+ "startIndex": 3,
367
+ "endIndex": 5
368
+ },
369
+ "releaseTag": "Public",
370
+ "isProtected": true,
371
+ "overloadIndex": 1,
372
+ "parameters": [
373
+ {
374
+ "parameterName": "row",
375
+ "parameterTypeTokenRange": {
376
+ "startIndex": 1,
377
+ "endIndex": 2
378
+ },
379
+ "isOptional": false
380
+ }
381
+ ],
382
+ "isOptional": false,
383
+ "isAbstract": false,
384
+ "name": "showNotificationToast"
385
+ },
386
+ {
387
+ "kind": "Property",
388
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#toast:member",
389
+ "docComment": "/**\n * @remarks\n *\n * The notification type of toast messages\n *\n * @beta\n */\n",
390
+ "excerptTokens": [
391
+ {
392
+ "kind": "Content",
393
+ "text": "toast: "
394
+ },
395
+ {
396
+ "kind": "Content",
397
+ "text": "'transient' | 'sticky' | 'none'"
398
+ },
399
+ {
400
+ "kind": "Content",
401
+ "text": ";"
402
+ }
403
+ ],
404
+ "isReadonly": false,
405
+ "isOptional": false,
406
+ "releaseTag": "Beta",
407
+ "name": "toast",
408
+ "propertyTypeTokenRange": {
409
+ "startIndex": 1,
410
+ "endIndex": 2
411
+ },
412
+ "isStatic": false,
413
+ "isProtected": false,
414
+ "isAbstract": false
415
+ },
416
+ {
417
+ "kind": "Property",
418
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinNotifications#toastButtons:member",
419
+ "docComment": "/**\n * Array of button configs for openfin notification toasts\n *\n * @example\n *\n * In these examples you could 1. View a trade, this is done by routing to the corresponding route. Dispatching the highlighted record id to the store and retrieving it in the view from the store. 2. Call an endpoint to approve a trade 3. Call an endpoint to reject a trade\n * ```html\n * <openfin-notifications-listener\n * ...\n * :toastButtons=\"${x => [\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * Route.path.push('/some-route') // redirect to a route\n * buttonElement.$emit('some-store-event', details.TABLE_ENTITY_ID); //emit the entity id to the store\n * }\n * },\n * placeholder: 'View Trade',\n * task: 'view-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: true\n * }\n * })\n * }\n * },\n * placeholder: 'Approve Trade',\n * task: 'approve-trade'\n * },\n * {\n * {\n * condition: ({details}) => details.HEADER === 'Trade added',\n * action: ({details, buttonElement }) => {\n * const connect = getConnect();\n * connect.commitEvent('approve-trade', {\n * DETAILS: {\n * TRADE_ID: details.TABLE_ENTITY_ID,\n * APPROVED: false\n * }\n * })\n * }\n * },\n * placeholder: 'Reject Trade',\n * task: 'reject-trade'\n * },\n *\n * ]\n * >\n * </openfin-notifications-listener>\n * ```\n *\n * @public\n */\n",
420
+ "excerptTokens": [
421
+ {
422
+ "kind": "Content",
423
+ "text": "toastButtons: "
424
+ },
425
+ {
426
+ "kind": "Reference",
427
+ "text": "OpenfinToastButton",
428
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinToastButton:interface"
429
+ },
430
+ {
431
+ "kind": "Content",
432
+ "text": "[]"
433
+ },
434
+ {
435
+ "kind": "Content",
436
+ "text": ";"
437
+ }
438
+ ],
439
+ "isReadonly": false,
440
+ "isOptional": false,
441
+ "releaseTag": "Public",
442
+ "name": "toastButtons",
443
+ "propertyTypeTokenRange": {
444
+ "startIndex": 1,
445
+ "endIndex": 3
446
+ },
447
+ "isStatic": false,
448
+ "isProtected": false,
449
+ "isAbstract": false
450
+ }
451
+ ],
452
+ "extendsTokenRange": {
453
+ "startIndex": 1,
454
+ "endIndex": 2
455
+ },
456
+ "implementsTokenRanges": []
457
+ },
458
+ {
459
+ "kind": "Interface",
460
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinToastButton:interface",
461
+ "docComment": "/**\n * @remarks\n *\n * OpenfinToastButton interface which extends ToastButton. Adds the task property which is used in mapping button actions to their corresponding callbacks\n *\n * @public\n */\n",
462
+ "excerptTokens": [
463
+ {
464
+ "kind": "Content",
465
+ "text": "export interface OpenfinToastButton extends "
466
+ },
467
+ {
468
+ "kind": "Reference",
469
+ "text": "ToastButton",
470
+ "canonicalReference": "@genesislcap/foundation-notifications!ToastButton:interface"
471
+ },
472
+ {
473
+ "kind": "Content",
474
+ "text": " "
475
+ }
476
+ ],
477
+ "fileUrlPath": "src/notifications/openfin-notifications-listener.ts",
478
+ "releaseTag": "Public",
479
+ "name": "OpenfinToastButton",
480
+ "preserveMemberOrder": false,
481
+ "members": [
482
+ {
483
+ "kind": "PropertySignature",
484
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinToastButton#cta:member",
485
+ "docComment": "",
486
+ "excerptTokens": [
487
+ {
488
+ "kind": "Content",
489
+ "text": "cta?: "
490
+ },
491
+ {
492
+ "kind": "Content",
493
+ "text": "boolean"
494
+ },
495
+ {
496
+ "kind": "Content",
497
+ "text": ";"
498
+ }
499
+ ],
500
+ "isReadonly": false,
501
+ "isOptional": true,
502
+ "releaseTag": "Public",
503
+ "name": "cta",
504
+ "propertyTypeTokenRange": {
505
+ "startIndex": 1,
506
+ "endIndex": 2
507
+ }
508
+ },
509
+ {
510
+ "kind": "PropertySignature",
511
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinToastButton#message:member",
512
+ "docComment": "",
513
+ "excerptTokens": [
514
+ {
515
+ "kind": "Content",
516
+ "text": "message?: "
517
+ },
518
+ {
519
+ "kind": "Content",
520
+ "text": "string"
521
+ },
522
+ {
523
+ "kind": "Content",
524
+ "text": ";"
525
+ }
526
+ ],
527
+ "isReadonly": false,
528
+ "isOptional": true,
529
+ "releaseTag": "Public",
530
+ "name": "message",
531
+ "propertyTypeTokenRange": {
532
+ "startIndex": 1,
533
+ "endIndex": 2
534
+ }
535
+ },
536
+ {
537
+ "kind": "PropertySignature",
538
+ "canonicalReference": "@genesislcap/foundation-openfin!OpenfinToastButton#task:member",
539
+ "docComment": "",
540
+ "excerptTokens": [
541
+ {
542
+ "kind": "Content",
543
+ "text": "task: "
544
+ },
545
+ {
546
+ "kind": "Content",
547
+ "text": "string"
548
+ },
549
+ {
550
+ "kind": "Content",
551
+ "text": ";"
552
+ }
553
+ ],
554
+ "isReadonly": false,
555
+ "isOptional": false,
556
+ "releaseTag": "Public",
557
+ "name": "task",
558
+ "propertyTypeTokenRange": {
559
+ "startIndex": 1,
560
+ "endIndex": 2
561
+ }
562
+ }
563
+ ],
564
+ "extendsTokenRanges": [
565
+ {
566
+ "startIndex": 1,
567
+ "endIndex": 2
568
+ }
569
+ ]
570
+ }
571
+ ]
572
+ }
573
+ ]
574
+ }