@genesislcap/foundation-ui 14.306.1 → 14.306.2-alpha-7a2d723.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.
|
@@ -892,37 +892,6 @@
|
|
|
892
892
|
}
|
|
893
893
|
]
|
|
894
894
|
},
|
|
895
|
-
{
|
|
896
|
-
"kind": "javascript-module",
|
|
897
|
-
"path": "src/_config/index.ts",
|
|
898
|
-
"declarations": [],
|
|
899
|
-
"exports": [
|
|
900
|
-
{
|
|
901
|
-
"kind": "js",
|
|
902
|
-
"name": "*",
|
|
903
|
-
"declaration": {
|
|
904
|
-
"name": "*",
|
|
905
|
-
"package": "./styles"
|
|
906
|
-
}
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
"kind": "js",
|
|
910
|
-
"name": "*",
|
|
911
|
-
"declaration": {
|
|
912
|
-
"name": "*",
|
|
913
|
-
"package": "./tokens"
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"kind": "js",
|
|
918
|
-
"name": "*",
|
|
919
|
-
"declaration": {
|
|
920
|
-
"name": "*",
|
|
921
|
-
"package": "./values"
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
]
|
|
925
|
-
},
|
|
926
895
|
{
|
|
927
896
|
"kind": "javascript-module",
|
|
928
897
|
"path": "src/_common/base-file-component.ts",
|
|
@@ -1286,6 +1255,37 @@
|
|
|
1286
1255
|
}
|
|
1287
1256
|
]
|
|
1288
1257
|
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "javascript-module",
|
|
1260
|
+
"path": "src/_config/index.ts",
|
|
1261
|
+
"declarations": [],
|
|
1262
|
+
"exports": [
|
|
1263
|
+
{
|
|
1264
|
+
"kind": "js",
|
|
1265
|
+
"name": "*",
|
|
1266
|
+
"declaration": {
|
|
1267
|
+
"name": "*",
|
|
1268
|
+
"package": "./styles"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"kind": "js",
|
|
1273
|
+
"name": "*",
|
|
1274
|
+
"declaration": {
|
|
1275
|
+
"name": "*",
|
|
1276
|
+
"package": "./tokens"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"kind": "js",
|
|
1281
|
+
"name": "*",
|
|
1282
|
+
"declaration": {
|
|
1283
|
+
"name": "*",
|
|
1284
|
+
"package": "./values"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
]
|
|
1288
|
+
},
|
|
1289
1289
|
{
|
|
1290
1290
|
"kind": "javascript-module",
|
|
1291
1291
|
"path": "src/accordion-item/accordion-item.styles.ts",
|
|
@@ -2239,188 +2239,6 @@
|
|
|
2239
2239
|
}
|
|
2240
2240
|
]
|
|
2241
2241
|
},
|
|
2242
|
-
{
|
|
2243
|
-
"kind": "javascript-module",
|
|
2244
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
2245
|
-
"declarations": [
|
|
2246
|
-
{
|
|
2247
|
-
"kind": "function",
|
|
2248
|
-
"name": "foundationAccordionStyles",
|
|
2249
|
-
"return": {
|
|
2250
|
-
"type": {
|
|
2251
|
-
"text": "ElementStyles"
|
|
2252
|
-
}
|
|
2253
|
-
},
|
|
2254
|
-
"parameters": [
|
|
2255
|
-
{
|
|
2256
|
-
"name": "context",
|
|
2257
|
-
"type": {
|
|
2258
|
-
"text": "ElementDefinitionContext"
|
|
2259
|
-
}
|
|
2260
|
-
},
|
|
2261
|
-
{
|
|
2262
|
-
"name": "definition",
|
|
2263
|
-
"type": {
|
|
2264
|
-
"text": "FoundationElementDefinition"
|
|
2265
|
-
}
|
|
2266
|
-
}
|
|
2267
|
-
]
|
|
2268
|
-
}
|
|
2269
|
-
],
|
|
2270
|
-
"exports": [
|
|
2271
|
-
{
|
|
2272
|
-
"kind": "js",
|
|
2273
|
-
"name": "foundationAccordionStyles",
|
|
2274
|
-
"declaration": {
|
|
2275
|
-
"name": "foundationAccordionStyles",
|
|
2276
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
2277
|
-
}
|
|
2278
|
-
}
|
|
2279
|
-
]
|
|
2280
|
-
},
|
|
2281
|
-
{
|
|
2282
|
-
"kind": "javascript-module",
|
|
2283
|
-
"path": "src/accordion/accordion.template.ts",
|
|
2284
|
-
"declarations": [
|
|
2285
|
-
{
|
|
2286
|
-
"kind": "function",
|
|
2287
|
-
"name": "foundationAccordionTemplate",
|
|
2288
|
-
"return": {
|
|
2289
|
-
"type": {
|
|
2290
|
-
"text": "ViewTemplate<Accordion>"
|
|
2291
|
-
}
|
|
2292
|
-
},
|
|
2293
|
-
"parameters": [
|
|
2294
|
-
{
|
|
2295
|
-
"name": "context",
|
|
2296
|
-
"type": {
|
|
2297
|
-
"text": "ElementDefinitionContext"
|
|
2298
|
-
}
|
|
2299
|
-
},
|
|
2300
|
-
{
|
|
2301
|
-
"name": "definition",
|
|
2302
|
-
"type": {
|
|
2303
|
-
"text": "FoundationElementDefinition"
|
|
2304
|
-
}
|
|
2305
|
-
}
|
|
2306
|
-
]
|
|
2307
|
-
}
|
|
2308
|
-
],
|
|
2309
|
-
"exports": [
|
|
2310
|
-
{
|
|
2311
|
-
"kind": "js",
|
|
2312
|
-
"name": "foundationAccordionTemplate",
|
|
2313
|
-
"declaration": {
|
|
2314
|
-
"name": "foundationAccordionTemplate",
|
|
2315
|
-
"module": "src/accordion/accordion.template.ts"
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
]
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
"kind": "javascript-module",
|
|
2322
|
-
"path": "src/accordion/accordion.ts",
|
|
2323
|
-
"declarations": [
|
|
2324
|
-
{
|
|
2325
|
-
"kind": "class",
|
|
2326
|
-
"description": "",
|
|
2327
|
-
"name": "Accordion",
|
|
2328
|
-
"superclass": {
|
|
2329
|
-
"name": "FASTAccordion",
|
|
2330
|
-
"package": "@microsoft/fast-foundation"
|
|
2331
|
-
},
|
|
2332
|
-
"tagName": "%%prefix%%-accordion",
|
|
2333
|
-
"customElement": true
|
|
2334
|
-
},
|
|
2335
|
-
{
|
|
2336
|
-
"kind": "variable",
|
|
2337
|
-
"name": "foundationAccordionShadowOptions",
|
|
2338
|
-
"type": {
|
|
2339
|
-
"text": "ShadowRootInit"
|
|
2340
|
-
},
|
|
2341
|
-
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
2342
|
-
},
|
|
2343
|
-
{
|
|
2344
|
-
"kind": "variable",
|
|
2345
|
-
"name": "defaultAccordionConfig",
|
|
2346
|
-
"type": {
|
|
2347
|
-
"text": "object"
|
|
2348
|
-
},
|
|
2349
|
-
"default": "{}"
|
|
2350
|
-
},
|
|
2351
|
-
{
|
|
2352
|
-
"kind": "variable",
|
|
2353
|
-
"name": "foundationAccordion",
|
|
2354
|
-
"description": "The Foundation Accordion",
|
|
2355
|
-
"privacy": "public"
|
|
2356
|
-
}
|
|
2357
|
-
],
|
|
2358
|
-
"exports": [
|
|
2359
|
-
{
|
|
2360
|
-
"kind": "js",
|
|
2361
|
-
"name": "Accordion",
|
|
2362
|
-
"declaration": {
|
|
2363
|
-
"name": "Accordion",
|
|
2364
|
-
"module": "src/accordion/accordion.ts"
|
|
2365
|
-
}
|
|
2366
|
-
},
|
|
2367
|
-
{
|
|
2368
|
-
"kind": "js",
|
|
2369
|
-
"name": "foundationAccordionShadowOptions",
|
|
2370
|
-
"declaration": {
|
|
2371
|
-
"name": "foundationAccordionShadowOptions",
|
|
2372
|
-
"module": "src/accordion/accordion.ts"
|
|
2373
|
-
}
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
"kind": "js",
|
|
2377
|
-
"name": "defaultAccordionConfig",
|
|
2378
|
-
"declaration": {
|
|
2379
|
-
"name": "defaultAccordionConfig",
|
|
2380
|
-
"module": "src/accordion/accordion.ts"
|
|
2381
|
-
}
|
|
2382
|
-
},
|
|
2383
|
-
{
|
|
2384
|
-
"kind": "js",
|
|
2385
|
-
"name": "foundationAccordion",
|
|
2386
|
-
"declaration": {
|
|
2387
|
-
"name": "foundationAccordion",
|
|
2388
|
-
"module": "src/accordion/accordion.ts"
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
]
|
|
2392
|
-
},
|
|
2393
|
-
{
|
|
2394
|
-
"kind": "javascript-module",
|
|
2395
|
-
"path": "src/accordion/index.ts",
|
|
2396
|
-
"declarations": [],
|
|
2397
|
-
"exports": [
|
|
2398
|
-
{
|
|
2399
|
-
"kind": "js",
|
|
2400
|
-
"name": "*",
|
|
2401
|
-
"declaration": {
|
|
2402
|
-
"name": "*",
|
|
2403
|
-
"package": "./accordion.template"
|
|
2404
|
-
}
|
|
2405
|
-
},
|
|
2406
|
-
{
|
|
2407
|
-
"kind": "js",
|
|
2408
|
-
"name": "*",
|
|
2409
|
-
"declaration": {
|
|
2410
|
-
"name": "*",
|
|
2411
|
-
"package": "./accordion.styles"
|
|
2412
|
-
}
|
|
2413
|
-
},
|
|
2414
|
-
{
|
|
2415
|
-
"kind": "js",
|
|
2416
|
-
"name": "*",
|
|
2417
|
-
"declaration": {
|
|
2418
|
-
"name": "*",
|
|
2419
|
-
"package": "./accordion"
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
]
|
|
2423
|
-
},
|
|
2424
2242
|
{
|
|
2425
2243
|
"kind": "javascript-module",
|
|
2426
2244
|
"path": "src/anchor/anchor.styles.ts",
|
|
@@ -4531,6 +4349,188 @@
|
|
|
4531
4349
|
}
|
|
4532
4350
|
]
|
|
4533
4351
|
},
|
|
4352
|
+
{
|
|
4353
|
+
"kind": "javascript-module",
|
|
4354
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
4355
|
+
"declarations": [
|
|
4356
|
+
{
|
|
4357
|
+
"kind": "function",
|
|
4358
|
+
"name": "foundationAccordionStyles",
|
|
4359
|
+
"return": {
|
|
4360
|
+
"type": {
|
|
4361
|
+
"text": "ElementStyles"
|
|
4362
|
+
}
|
|
4363
|
+
},
|
|
4364
|
+
"parameters": [
|
|
4365
|
+
{
|
|
4366
|
+
"name": "context",
|
|
4367
|
+
"type": {
|
|
4368
|
+
"text": "ElementDefinitionContext"
|
|
4369
|
+
}
|
|
4370
|
+
},
|
|
4371
|
+
{
|
|
4372
|
+
"name": "definition",
|
|
4373
|
+
"type": {
|
|
4374
|
+
"text": "FoundationElementDefinition"
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4377
|
+
]
|
|
4378
|
+
}
|
|
4379
|
+
],
|
|
4380
|
+
"exports": [
|
|
4381
|
+
{
|
|
4382
|
+
"kind": "js",
|
|
4383
|
+
"name": "foundationAccordionStyles",
|
|
4384
|
+
"declaration": {
|
|
4385
|
+
"name": "foundationAccordionStyles",
|
|
4386
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
]
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
"kind": "javascript-module",
|
|
4393
|
+
"path": "src/accordion/accordion.template.ts",
|
|
4394
|
+
"declarations": [
|
|
4395
|
+
{
|
|
4396
|
+
"kind": "function",
|
|
4397
|
+
"name": "foundationAccordionTemplate",
|
|
4398
|
+
"return": {
|
|
4399
|
+
"type": {
|
|
4400
|
+
"text": "ViewTemplate<Accordion>"
|
|
4401
|
+
}
|
|
4402
|
+
},
|
|
4403
|
+
"parameters": [
|
|
4404
|
+
{
|
|
4405
|
+
"name": "context",
|
|
4406
|
+
"type": {
|
|
4407
|
+
"text": "ElementDefinitionContext"
|
|
4408
|
+
}
|
|
4409
|
+
},
|
|
4410
|
+
{
|
|
4411
|
+
"name": "definition",
|
|
4412
|
+
"type": {
|
|
4413
|
+
"text": "FoundationElementDefinition"
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
]
|
|
4417
|
+
}
|
|
4418
|
+
],
|
|
4419
|
+
"exports": [
|
|
4420
|
+
{
|
|
4421
|
+
"kind": "js",
|
|
4422
|
+
"name": "foundationAccordionTemplate",
|
|
4423
|
+
"declaration": {
|
|
4424
|
+
"name": "foundationAccordionTemplate",
|
|
4425
|
+
"module": "src/accordion/accordion.template.ts"
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
]
|
|
4429
|
+
},
|
|
4430
|
+
{
|
|
4431
|
+
"kind": "javascript-module",
|
|
4432
|
+
"path": "src/accordion/accordion.ts",
|
|
4433
|
+
"declarations": [
|
|
4434
|
+
{
|
|
4435
|
+
"kind": "class",
|
|
4436
|
+
"description": "",
|
|
4437
|
+
"name": "Accordion",
|
|
4438
|
+
"superclass": {
|
|
4439
|
+
"name": "FASTAccordion",
|
|
4440
|
+
"package": "@microsoft/fast-foundation"
|
|
4441
|
+
},
|
|
4442
|
+
"tagName": "%%prefix%%-accordion",
|
|
4443
|
+
"customElement": true
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
"kind": "variable",
|
|
4447
|
+
"name": "foundationAccordionShadowOptions",
|
|
4448
|
+
"type": {
|
|
4449
|
+
"text": "ShadowRootInit"
|
|
4450
|
+
},
|
|
4451
|
+
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
4452
|
+
},
|
|
4453
|
+
{
|
|
4454
|
+
"kind": "variable",
|
|
4455
|
+
"name": "defaultAccordionConfig",
|
|
4456
|
+
"type": {
|
|
4457
|
+
"text": "object"
|
|
4458
|
+
},
|
|
4459
|
+
"default": "{}"
|
|
4460
|
+
},
|
|
4461
|
+
{
|
|
4462
|
+
"kind": "variable",
|
|
4463
|
+
"name": "foundationAccordion",
|
|
4464
|
+
"description": "The Foundation Accordion",
|
|
4465
|
+
"privacy": "public"
|
|
4466
|
+
}
|
|
4467
|
+
],
|
|
4468
|
+
"exports": [
|
|
4469
|
+
{
|
|
4470
|
+
"kind": "js",
|
|
4471
|
+
"name": "Accordion",
|
|
4472
|
+
"declaration": {
|
|
4473
|
+
"name": "Accordion",
|
|
4474
|
+
"module": "src/accordion/accordion.ts"
|
|
4475
|
+
}
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
"kind": "js",
|
|
4479
|
+
"name": "foundationAccordionShadowOptions",
|
|
4480
|
+
"declaration": {
|
|
4481
|
+
"name": "foundationAccordionShadowOptions",
|
|
4482
|
+
"module": "src/accordion/accordion.ts"
|
|
4483
|
+
}
|
|
4484
|
+
},
|
|
4485
|
+
{
|
|
4486
|
+
"kind": "js",
|
|
4487
|
+
"name": "defaultAccordionConfig",
|
|
4488
|
+
"declaration": {
|
|
4489
|
+
"name": "defaultAccordionConfig",
|
|
4490
|
+
"module": "src/accordion/accordion.ts"
|
|
4491
|
+
}
|
|
4492
|
+
},
|
|
4493
|
+
{
|
|
4494
|
+
"kind": "js",
|
|
4495
|
+
"name": "foundationAccordion",
|
|
4496
|
+
"declaration": {
|
|
4497
|
+
"name": "foundationAccordion",
|
|
4498
|
+
"module": "src/accordion/accordion.ts"
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
]
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
"kind": "javascript-module",
|
|
4505
|
+
"path": "src/accordion/index.ts",
|
|
4506
|
+
"declarations": [],
|
|
4507
|
+
"exports": [
|
|
4508
|
+
{
|
|
4509
|
+
"kind": "js",
|
|
4510
|
+
"name": "*",
|
|
4511
|
+
"declaration": {
|
|
4512
|
+
"name": "*",
|
|
4513
|
+
"package": "./accordion.template"
|
|
4514
|
+
}
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
"kind": "js",
|
|
4518
|
+
"name": "*",
|
|
4519
|
+
"declaration": {
|
|
4520
|
+
"name": "*",
|
|
4521
|
+
"package": "./accordion.styles"
|
|
4522
|
+
}
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"kind": "js",
|
|
4526
|
+
"name": "*",
|
|
4527
|
+
"declaration": {
|
|
4528
|
+
"name": "*",
|
|
4529
|
+
"package": "./accordion"
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
]
|
|
4533
|
+
},
|
|
4534
4534
|
{
|
|
4535
4535
|
"kind": "javascript-module",
|
|
4536
4536
|
"path": "src/avatar/avatar.styles.ts",
|
|
@@ -28515,6 +28515,22 @@
|
|
|
28515
28515
|
},
|
|
28516
28516
|
"privacy": "protected"
|
|
28517
28517
|
},
|
|
28518
|
+
{
|
|
28519
|
+
"kind": "field",
|
|
28520
|
+
"name": "sessionExpiredSub",
|
|
28521
|
+
"type": {
|
|
28522
|
+
"text": "Subscription"
|
|
28523
|
+
},
|
|
28524
|
+
"privacy": "private"
|
|
28525
|
+
},
|
|
28526
|
+
{
|
|
28527
|
+
"kind": "field",
|
|
28528
|
+
"name": "subscribeTimeout",
|
|
28529
|
+
"type": {
|
|
28530
|
+
"text": "number | undefined"
|
|
28531
|
+
},
|
|
28532
|
+
"privacy": "private"
|
|
28533
|
+
},
|
|
28518
28534
|
{
|
|
28519
28535
|
"kind": "field",
|
|
28520
28536
|
"name": "datasource",
|
|
@@ -28523,6 +28539,22 @@
|
|
|
28523
28539
|
},
|
|
28524
28540
|
"privacy": "private"
|
|
28525
28541
|
},
|
|
28542
|
+
{
|
|
28543
|
+
"kind": "field",
|
|
28544
|
+
"name": "connect",
|
|
28545
|
+
"type": {
|
|
28546
|
+
"text": "Connect"
|
|
28547
|
+
},
|
|
28548
|
+
"privacy": "private"
|
|
28549
|
+
},
|
|
28550
|
+
{
|
|
28551
|
+
"kind": "method",
|
|
28552
|
+
"name": "subscribeToStream"
|
|
28553
|
+
},
|
|
28554
|
+
{
|
|
28555
|
+
"kind": "method",
|
|
28556
|
+
"name": "cleanUpResources"
|
|
28557
|
+
},
|
|
28526
28558
|
{
|
|
28527
28559
|
"kind": "method",
|
|
28528
28560
|
"name": "handleStreamUpdate",
|
|
@@ -24,8 +24,13 @@ export declare class NotificationListener extends FoundationElement {
|
|
|
24
24
|
*/
|
|
25
25
|
toastButtons: ToastButton[];
|
|
26
26
|
protected dataSub: Subscription;
|
|
27
|
+
private sessionExpiredSub;
|
|
28
|
+
private subscribeTimeout?;
|
|
27
29
|
private datasource;
|
|
30
|
+
private connect;
|
|
28
31
|
connectedCallback(): Promise<void>;
|
|
32
|
+
subscribeToStream(): Promise<void>;
|
|
33
|
+
cleanUpResources(): void;
|
|
29
34
|
disconnectedCallback(): void;
|
|
30
35
|
private handleStreamUpdate;
|
|
31
36
|
protected showNotificationToast(row: NotificationDataRow): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-listener.d.ts","sourceRoot":"","sources":["../../../src/notification-listener/notification-listener.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-listener.d.ts","sourceRoot":"","sources":["../../../src/notification-listener/notification-listener.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,mBAAmB,EACnB,WAAW,EAEZ,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,eAAO,MAAM,2CAA2C,EAAE,cAGzD,CAAC;AAEF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB;IAC7C,oBAAoB,EAAG,WAAW,CAAC;IAE/C;;;;OAIG;IACmC,YAAY,MAAC;IACnD;;;OAGG;IACuE,YAAY,SAAK;IAC3F;;;OAGG;IACS,YAAY,EAAE,WAAW,EAAE,CAAM;IAE7C,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IAChC,OAAO,CAAC,iBAAiB,CAAe;IACxC,OAAO,CAAC,gBAAgB,CAAC,CAAS;IACtB,OAAO,CAAC,UAAU,CAAa;IAClC,OAAO,CAAC,OAAO,CAAU;IAC5B,iBAAiB;IA2BjB,iBAAiB;IA0BvB,gBAAgB;IAWhB,oBAAoB;IAgBpB,OAAO,CAAC,kBAAkB;IAU1B,SAAS,CAAC,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI;CA2BhE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;+BAIzC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Datasource, dataServerResultFilter, } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Datasource, dataServerResultFilter, Connect, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { showNotificationToast } from '@genesislcap/foundation-notifications';
|
|
4
4
|
import { NotificationEvent, showNotification, } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
|
|
@@ -39,31 +39,69 @@ export class NotificationListener extends FoundationElement {
|
|
|
39
39
|
showNotification(e.detail, this.tagName, this.notificationListener);
|
|
40
40
|
});
|
|
41
41
|
if (this.resourceName) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
// Delay the subscription to the stream by 5 seconds
|
|
43
|
+
const SUBSCRIPTION_DELAY_MS = 5000;
|
|
44
|
+
this.subscribeTimeout = window.setTimeout(() => {
|
|
45
|
+
this.subscribeToStream();
|
|
46
|
+
}, SUBSCRIPTION_DELAY_MS);
|
|
47
|
+
}
|
|
48
|
+
// Subscribe to session expiration events
|
|
49
|
+
this.sessionExpiredSub = (_a = this.connect.sessionExpired$) === null || _a === void 0 ? void 0 : _a.subscribe((expired) => {
|
|
50
|
+
if (expired) {
|
|
51
|
+
logger.debug('Session expired detected, cleaning up resources and resubscribing');
|
|
52
|
+
this.cleanUpResources();
|
|
53
|
+
this.subscribeToStream();
|
|
48
54
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
subscribeToStream() {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
var _a;
|
|
61
|
+
const initOK = yield this.datasource.init({
|
|
62
|
+
resourceName: this.resourceName,
|
|
63
|
+
}, true);
|
|
64
|
+
if (!initOK) {
|
|
65
|
+
logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
|
|
66
|
+
return;
|
|
54
67
|
}
|
|
68
|
+
this.dataSub = (_a = this.datasource.stream) === null || _a === void 0 ? void 0 : _a.subscribe((result) => {
|
|
69
|
+
// if (result.MESSAGE_TYPE === 'LOGOFF_ACK' && result.LOGGED_OUT === true) {
|
|
70
|
+
// this.cleanUpResources();
|
|
71
|
+
// this.subscribeToStream();
|
|
72
|
+
// return;
|
|
73
|
+
// }
|
|
74
|
+
if (result.ROW && result.SEQUENCE_ID > 1) {
|
|
75
|
+
this.handleStreamUpdate(dataServerResultFilter(result));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
55
78
|
});
|
|
56
79
|
}
|
|
57
|
-
|
|
80
|
+
cleanUpResources() {
|
|
58
81
|
var _a, _b;
|
|
82
|
+
if (this.dataSub) {
|
|
83
|
+
(_a = this.dataSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
84
|
+
delete this.dataSub;
|
|
85
|
+
}
|
|
86
|
+
if (this.datasource) {
|
|
87
|
+
(_b = this.datasource) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
88
|
+
delete this.datasource;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
59
92
|
super.disconnectedCallback();
|
|
60
93
|
/**
|
|
61
94
|
* Attempt to clean up after ourselves.
|
|
62
95
|
*/
|
|
63
|
-
(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
96
|
+
if (this.subscribeTimeout !== undefined) {
|
|
97
|
+
window.clearTimeout(this.subscribeTimeout);
|
|
98
|
+
delete this.subscribeTimeout;
|
|
99
|
+
}
|
|
100
|
+
if (this.sessionExpiredSub) {
|
|
101
|
+
this.sessionExpiredSub.unsubscribe();
|
|
102
|
+
delete this.sessionExpiredSub;
|
|
103
|
+
}
|
|
104
|
+
this.cleanUpResources();
|
|
67
105
|
}
|
|
68
106
|
handleStreamUpdate(dataServerResult) {
|
|
69
107
|
const rows = dataServerResult.inserts;
|
|
@@ -111,6 +149,9 @@ __decorate([
|
|
|
111
149
|
__decorate([
|
|
112
150
|
Datasource
|
|
113
151
|
], NotificationListener.prototype, "datasource", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
Connect
|
|
154
|
+
], NotificationListener.prototype, "connect", void 0);
|
|
114
155
|
/**
|
|
115
156
|
* The Foundation Notification Listener
|
|
116
157
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.306.
|
|
4
|
+
"version": "14.306.2-alpha-7a2d723.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@genesislcap/foundation-testing": "14.306.
|
|
87
|
-
"@genesislcap/genx": "14.306.
|
|
88
|
-
"@genesislcap/rollup-builder": "14.306.
|
|
89
|
-
"@genesislcap/ts-builder": "14.306.
|
|
90
|
-
"@genesislcap/uvu-playwright-builder": "14.306.
|
|
91
|
-
"@genesislcap/vite-builder": "14.306.
|
|
92
|
-
"@genesislcap/webpack-builder": "14.306.
|
|
86
|
+
"@genesislcap/foundation-testing": "14.306.2-alpha-7a2d723.0",
|
|
87
|
+
"@genesislcap/genx": "14.306.2-alpha-7a2d723.0",
|
|
88
|
+
"@genesislcap/rollup-builder": "14.306.2-alpha-7a2d723.0",
|
|
89
|
+
"@genesislcap/ts-builder": "14.306.2-alpha-7a2d723.0",
|
|
90
|
+
"@genesislcap/uvu-playwright-builder": "14.306.2-alpha-7a2d723.0",
|
|
91
|
+
"@genesislcap/vite-builder": "14.306.2-alpha-7a2d723.0",
|
|
92
|
+
"@genesislcap/webpack-builder": "14.306.2-alpha-7a2d723.0",
|
|
93
93
|
"copyfiles": "^2.4.1",
|
|
94
94
|
"rxjs": "^7.5.4"
|
|
95
95
|
},
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
100
100
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
101
101
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
102
|
-
"@genesislcap/expression-builder": "14.306.
|
|
103
|
-
"@genesislcap/foundation-comms": "14.306.
|
|
104
|
-
"@genesislcap/foundation-criteria": "14.306.
|
|
105
|
-
"@genesislcap/foundation-errors": "14.306.
|
|
106
|
-
"@genesislcap/foundation-events": "14.306.
|
|
107
|
-
"@genesislcap/foundation-logger": "14.306.
|
|
108
|
-
"@genesislcap/foundation-notifications": "14.306.
|
|
109
|
-
"@genesislcap/foundation-user": "14.306.
|
|
110
|
-
"@genesislcap/foundation-utils": "14.306.
|
|
102
|
+
"@genesislcap/expression-builder": "14.306.2-alpha-7a2d723.0",
|
|
103
|
+
"@genesislcap/foundation-comms": "14.306.2-alpha-7a2d723.0",
|
|
104
|
+
"@genesislcap/foundation-criteria": "14.306.2-alpha-7a2d723.0",
|
|
105
|
+
"@genesislcap/foundation-errors": "14.306.2-alpha-7a2d723.0",
|
|
106
|
+
"@genesislcap/foundation-events": "14.306.2-alpha-7a2d723.0",
|
|
107
|
+
"@genesislcap/foundation-logger": "14.306.2-alpha-7a2d723.0",
|
|
108
|
+
"@genesislcap/foundation-notifications": "14.306.2-alpha-7a2d723.0",
|
|
109
|
+
"@genesislcap/foundation-user": "14.306.2-alpha-7a2d723.0",
|
|
110
|
+
"@genesislcap/foundation-utils": "14.306.2-alpha-7a2d723.0",
|
|
111
111
|
"@microsoft/fast-colors": "5.3.1",
|
|
112
112
|
"@microsoft/fast-components": "2.30.6",
|
|
113
113
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"customElements": "dist/custom-elements.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "61fbdc9a3b045a1dbd46decec5925e7d09dcd525"
|
|
132
132
|
}
|