@genesislcap/foundation-utils 14.496.2-alpha-da9ccbd.0 → 14.497.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 +223 -223
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts +0 -11
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/esm/mixins/lifecycle/lifecycle.js +2 -22
- package/dist/foundation-utils.api.json +1 -1
- package/dist/foundation-utils.d.ts +0 -11
- package/package.json +11 -11
|
@@ -250,6 +250,208 @@
|
|
|
250
250
|
}
|
|
251
251
|
]
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "javascript-module",
|
|
255
|
+
"path": "src/design-system/design-system.ts",
|
|
256
|
+
"declarations": [
|
|
257
|
+
{
|
|
258
|
+
"kind": "function",
|
|
259
|
+
"name": "assureDesignSystem",
|
|
260
|
+
"return": {
|
|
261
|
+
"type": {
|
|
262
|
+
"text": "DesignSystemModule"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"parameters": [
|
|
266
|
+
{
|
|
267
|
+
"name": "module",
|
|
268
|
+
"type": {
|
|
269
|
+
"text": "DesignSystemModule"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"description": "assureDesignSystem.",
|
|
274
|
+
"privacy": "public"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "function",
|
|
278
|
+
"name": "getCurrentDesignSystem",
|
|
279
|
+
"return": {
|
|
280
|
+
"type": {
|
|
281
|
+
"text": ""
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"parameters": [
|
|
285
|
+
{
|
|
286
|
+
"name": "element",
|
|
287
|
+
"type": {
|
|
288
|
+
"text": "HTMLElement"
|
|
289
|
+
},
|
|
290
|
+
"description": "The starting HTML element"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "fallbackPrefix",
|
|
294
|
+
"type": {
|
|
295
|
+
"text": "string"
|
|
296
|
+
},
|
|
297
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
301
|
+
"privacy": "public"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "function",
|
|
305
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
306
|
+
"return": {
|
|
307
|
+
"type": {
|
|
308
|
+
"text": ""
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"parameters": [
|
|
312
|
+
{
|
|
313
|
+
"name": "element",
|
|
314
|
+
"type": {
|
|
315
|
+
"text": "HTMLElement"
|
|
316
|
+
},
|
|
317
|
+
"description": "The starting HTML element"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "fallbackPrefix",
|
|
321
|
+
"type": {
|
|
322
|
+
"text": "string"
|
|
323
|
+
},
|
|
324
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
328
|
+
"privacy": "public"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"exports": [
|
|
332
|
+
{
|
|
333
|
+
"kind": "js",
|
|
334
|
+
"name": "assureDesignSystem",
|
|
335
|
+
"declaration": {
|
|
336
|
+
"name": "assureDesignSystem",
|
|
337
|
+
"module": "src/design-system/design-system.ts"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "js",
|
|
342
|
+
"name": "getCurrentDesignSystem",
|
|
343
|
+
"declaration": {
|
|
344
|
+
"name": "getCurrentDesignSystem",
|
|
345
|
+
"module": "src/design-system/design-system.ts"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "js",
|
|
350
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
351
|
+
"declaration": {
|
|
352
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
353
|
+
"module": "src/design-system/design-system.ts"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"kind": "javascript-module",
|
|
360
|
+
"path": "src/design-system/editable-elements.ts",
|
|
361
|
+
"declarations": [
|
|
362
|
+
{
|
|
363
|
+
"kind": "variable",
|
|
364
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
|
|
367
|
+
},
|
|
368
|
+
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
369
|
+
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"kind": "variable",
|
|
373
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
|
|
376
|
+
},
|
|
377
|
+
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
378
|
+
"description": "Design-system specific editable host selectors."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"kind": "function",
|
|
382
|
+
"name": "buildEditableElementSelector",
|
|
383
|
+
"return": {
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"parameters": [
|
|
389
|
+
{
|
|
390
|
+
"name": "designSystems",
|
|
391
|
+
"type": {
|
|
392
|
+
"text": "readonly EditableDesignSystemPrefix[]"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "customEditableSelectors",
|
|
397
|
+
"default": "[]",
|
|
398
|
+
"type": {
|
|
399
|
+
"text": "readonly string[]"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"exports": [
|
|
406
|
+
{
|
|
407
|
+
"kind": "js",
|
|
408
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
409
|
+
"declaration": {
|
|
410
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
411
|
+
"module": "src/design-system/editable-elements.ts"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"kind": "js",
|
|
416
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
417
|
+
"declaration": {
|
|
418
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
419
|
+
"module": "src/design-system/editable-elements.ts"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "js",
|
|
424
|
+
"name": "buildEditableElementSelector",
|
|
425
|
+
"declaration": {
|
|
426
|
+
"name": "buildEditableElementSelector",
|
|
427
|
+
"module": "src/design-system/editable-elements.ts"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"kind": "javascript-module",
|
|
434
|
+
"path": "src/design-system/index.ts",
|
|
435
|
+
"declarations": [],
|
|
436
|
+
"exports": [
|
|
437
|
+
{
|
|
438
|
+
"kind": "js",
|
|
439
|
+
"name": "*",
|
|
440
|
+
"declaration": {
|
|
441
|
+
"name": "*",
|
|
442
|
+
"package": "./design-system"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "js",
|
|
447
|
+
"name": "*",
|
|
448
|
+
"declaration": {
|
|
449
|
+
"name": "*",
|
|
450
|
+
"package": "./editable-elements"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
253
455
|
{
|
|
254
456
|
"kind": "javascript-module",
|
|
255
457
|
"path": "src/data/inMemoryDatabase.ts",
|
|
@@ -473,202 +675,53 @@
|
|
|
473
675
|
},
|
|
474
676
|
{
|
|
475
677
|
"kind": "javascript-module",
|
|
476
|
-
"path": "src/
|
|
477
|
-
"declarations": [
|
|
478
|
-
{
|
|
479
|
-
"kind": "function",
|
|
480
|
-
"name": "assureDesignSystem",
|
|
481
|
-
"return": {
|
|
482
|
-
"type": {
|
|
483
|
-
"text": "DesignSystemModule"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
"parameters": [
|
|
487
|
-
{
|
|
488
|
-
"name": "module",
|
|
489
|
-
"type": {
|
|
490
|
-
"text": "DesignSystemModule"
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"description": "assureDesignSystem.",
|
|
495
|
-
"privacy": "public"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"kind": "function",
|
|
499
|
-
"name": "getCurrentDesignSystem",
|
|
500
|
-
"return": {
|
|
501
|
-
"type": {
|
|
502
|
-
"text": ""
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
"parameters": [
|
|
506
|
-
{
|
|
507
|
-
"name": "element",
|
|
508
|
-
"type": {
|
|
509
|
-
"text": "HTMLElement"
|
|
510
|
-
},
|
|
511
|
-
"description": "The starting HTML element"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"name": "fallbackPrefix",
|
|
515
|
-
"type": {
|
|
516
|
-
"text": "string"
|
|
517
|
-
},
|
|
518
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
519
|
-
}
|
|
520
|
-
],
|
|
521
|
-
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
522
|
-
"privacy": "public"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"kind": "function",
|
|
526
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
527
|
-
"return": {
|
|
528
|
-
"type": {
|
|
529
|
-
"text": ""
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
"parameters": [
|
|
533
|
-
{
|
|
534
|
-
"name": "element",
|
|
535
|
-
"type": {
|
|
536
|
-
"text": "HTMLElement"
|
|
537
|
-
},
|
|
538
|
-
"description": "The starting HTML element"
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"name": "fallbackPrefix",
|
|
542
|
-
"type": {
|
|
543
|
-
"text": "string"
|
|
544
|
-
},
|
|
545
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
546
|
-
}
|
|
547
|
-
],
|
|
548
|
-
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
549
|
-
"privacy": "public"
|
|
550
|
-
}
|
|
551
|
-
],
|
|
678
|
+
"path": "src/decorators/index.ts",
|
|
679
|
+
"declarations": [],
|
|
552
680
|
"exports": [
|
|
553
681
|
{
|
|
554
682
|
"kind": "js",
|
|
555
|
-
"name": "
|
|
556
|
-
"declaration": {
|
|
557
|
-
"name": "assureDesignSystem",
|
|
558
|
-
"module": "src/design-system/design-system.ts"
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"kind": "js",
|
|
563
|
-
"name": "getCurrentDesignSystem",
|
|
564
|
-
"declaration": {
|
|
565
|
-
"name": "getCurrentDesignSystem",
|
|
566
|
-
"module": "src/design-system/design-system.ts"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"kind": "js",
|
|
571
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
683
|
+
"name": "*",
|
|
572
684
|
"declaration": {
|
|
573
|
-
"name": "
|
|
574
|
-
"
|
|
685
|
+
"name": "*",
|
|
686
|
+
"package": "./renderOnChange"
|
|
575
687
|
}
|
|
576
688
|
}
|
|
577
689
|
]
|
|
578
690
|
},
|
|
579
691
|
{
|
|
580
692
|
"kind": "javascript-module",
|
|
581
|
-
"path": "src/
|
|
693
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
582
694
|
"declarations": [
|
|
583
|
-
{
|
|
584
|
-
"kind": "variable",
|
|
585
|
-
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
586
|
-
"type": {
|
|
587
|
-
"text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
|
|
588
|
-
},
|
|
589
|
-
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
590
|
-
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"kind": "variable",
|
|
594
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
595
|
-
"type": {
|
|
596
|
-
"text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
|
|
597
|
-
},
|
|
598
|
-
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
599
|
-
"description": "Design-system specific editable host selectors."
|
|
600
|
-
},
|
|
601
695
|
{
|
|
602
696
|
"kind": "function",
|
|
603
|
-
"name": "
|
|
604
|
-
"return": {
|
|
605
|
-
"type": {
|
|
606
|
-
"text": "string"
|
|
607
|
-
}
|
|
608
|
-
},
|
|
697
|
+
"name": "renderOnChange",
|
|
609
698
|
"parameters": [
|
|
610
699
|
{
|
|
611
|
-
"name": "
|
|
700
|
+
"name": "target",
|
|
612
701
|
"type": {
|
|
613
|
-
"text": "
|
|
614
|
-
}
|
|
702
|
+
"text": "FASTElement & { render(): void }"
|
|
703
|
+
},
|
|
704
|
+
"description": "The target to define the property change handler on."
|
|
615
705
|
},
|
|
616
706
|
{
|
|
617
|
-
"name": "
|
|
618
|
-
"default": "[]",
|
|
707
|
+
"name": "name",
|
|
619
708
|
"type": {
|
|
620
|
-
"text": "
|
|
621
|
-
}
|
|
709
|
+
"text": "string"
|
|
710
|
+
},
|
|
711
|
+
"description": "The property name."
|
|
622
712
|
}
|
|
623
|
-
]
|
|
713
|
+
],
|
|
714
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
715
|
+
"privacy": "public"
|
|
624
716
|
}
|
|
625
717
|
],
|
|
626
718
|
"exports": [
|
|
627
719
|
{
|
|
628
720
|
"kind": "js",
|
|
629
|
-
"name": "
|
|
630
|
-
"declaration": {
|
|
631
|
-
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
632
|
-
"module": "src/design-system/editable-elements.ts"
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
"kind": "js",
|
|
637
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
638
|
-
"declaration": {
|
|
639
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
640
|
-
"module": "src/design-system/editable-elements.ts"
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
"kind": "js",
|
|
645
|
-
"name": "buildEditableElementSelector",
|
|
646
|
-
"declaration": {
|
|
647
|
-
"name": "buildEditableElementSelector",
|
|
648
|
-
"module": "src/design-system/editable-elements.ts"
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
]
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"kind": "javascript-module",
|
|
655
|
-
"path": "src/design-system/index.ts",
|
|
656
|
-
"declarations": [],
|
|
657
|
-
"exports": [
|
|
658
|
-
{
|
|
659
|
-
"kind": "js",
|
|
660
|
-
"name": "*",
|
|
661
|
-
"declaration": {
|
|
662
|
-
"name": "*",
|
|
663
|
-
"package": "./design-system"
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
"kind": "js",
|
|
668
|
-
"name": "*",
|
|
721
|
+
"name": "renderOnChange",
|
|
669
722
|
"declaration": {
|
|
670
|
-
"name": "
|
|
671
|
-
"
|
|
723
|
+
"name": "renderOnChange",
|
|
724
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
672
725
|
}
|
|
673
726
|
}
|
|
674
727
|
]
|
|
@@ -1163,59 +1216,6 @@
|
|
|
1163
1216
|
}
|
|
1164
1217
|
]
|
|
1165
1218
|
},
|
|
1166
|
-
{
|
|
1167
|
-
"kind": "javascript-module",
|
|
1168
|
-
"path": "src/decorators/index.ts",
|
|
1169
|
-
"declarations": [],
|
|
1170
|
-
"exports": [
|
|
1171
|
-
{
|
|
1172
|
-
"kind": "js",
|
|
1173
|
-
"name": "*",
|
|
1174
|
-
"declaration": {
|
|
1175
|
-
"name": "*",
|
|
1176
|
-
"package": "./renderOnChange"
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
]
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
"kind": "javascript-module",
|
|
1183
|
-
"path": "src/decorators/renderOnChange.ts",
|
|
1184
|
-
"declarations": [
|
|
1185
|
-
{
|
|
1186
|
-
"kind": "function",
|
|
1187
|
-
"name": "renderOnChange",
|
|
1188
|
-
"parameters": [
|
|
1189
|
-
{
|
|
1190
|
-
"name": "target",
|
|
1191
|
-
"type": {
|
|
1192
|
-
"text": "FASTElement & { render(): void }"
|
|
1193
|
-
},
|
|
1194
|
-
"description": "The target to define the property change handler on."
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"name": "name",
|
|
1198
|
-
"type": {
|
|
1199
|
-
"text": "string"
|
|
1200
|
-
},
|
|
1201
|
-
"description": "The property name."
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1205
|
-
"privacy": "public"
|
|
1206
|
-
}
|
|
1207
|
-
],
|
|
1208
|
-
"exports": [
|
|
1209
|
-
{
|
|
1210
|
-
"kind": "js",
|
|
1211
|
-
"name": "renderOnChange",
|
|
1212
|
-
"declaration": {
|
|
1213
|
-
"name": "renderOnChange",
|
|
1214
|
-
"module": "src/decorators/renderOnChange.ts"
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
]
|
|
1218
|
-
},
|
|
1219
1219
|
{
|
|
1220
1220
|
"kind": "javascript-module",
|
|
1221
1221
|
"path": "src/error/errorMap.ts",
|
|
@@ -70,17 +70,6 @@ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(B
|
|
|
70
70
|
* @internal
|
|
71
71
|
**/
|
|
72
72
|
#_shouldForceLifecycle: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Set once a short grace period has elapsed since a blocked ('reflow') disconnect. Some
|
|
75
|
-
* consumers run defensive cleanup shortly after despite the block - and don't necessarily use
|
|
76
|
-
* a plain microtask to do it (e.g. FAST's `DOM.queueUpdate` scheduler, which a consumer's own
|
|
77
|
-
* reconnect logic may also be deferred through, can resolve after our microtask has already
|
|
78
|
-
* fired, making a same-microtask check unreliable). A macrotask-scale grace period via
|
|
79
|
-
* `setTimeout` is cheap here and outlasts any such scheduler, so once it has passed the paired
|
|
80
|
-
* reconnect must not stay blocked, or the consumer never re-initializes.
|
|
81
|
-
* @internal
|
|
82
|
-
**/
|
|
83
|
-
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
84
73
|
/**
|
|
85
74
|
* @privateRemarks
|
|
86
75
|
* Rather than using the basic implementation of cloning we run a copy constructor (deepClone)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/mixins/lifecycle/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AAErF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,KAAK,SAAS,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,YAAY,CAAC;AAEjF,KAAK,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC;AAK5D;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,6BAA6B,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/mixins/lifecycle/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AAErF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,KAAK,SAAS,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,YAAY,CAAC;AAEjF,KAAK,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,CAAC;AAK5D;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,6BAA6B,EAAE,MAAM,CAAC;kBA+BtD,GAAG,EAAE;QA7B1B,iBAAiB;qBACJ,SAAS;QAEtB;;;YAGI;2BACe,MAAM;QACzB;;;YAGI;0BACc,OAAO;QACzB;;;;;;;YAOI;0BACc,MAAM,CAAC,OAAO;QAChC;;;;YAII;gCACoB,OAAO;QAM/B;;;;;WAKG;yBACuB,OAAO,GAAG,IAAI;QAUxC;;;;;;WAMG;qBACU,IAAI;QAMjB;;;WAGG;;QAmBH;;;;;WAKG;;wDAwB6C,aAAa,GAAG,OAAO;QAkCvE;;;;;;WAMG;qCAC0B,OAAO,GAAG,SAAS;6BA4B3B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM1B,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAkC,CAAC"}
|
|
@@ -11,7 +11,7 @@ const CLEANUP_TIMEOUT_MS = 10000;
|
|
|
11
11
|
* #_ syntax is used for a javascript private method/variable
|
|
12
12
|
* we can't use private/protected from typescript in an anonymous class like this
|
|
13
13
|
*/
|
|
14
|
-
export const LifecycleMixin = (Base) => { var _instances, __container, __latestTokenCode, __hasFirstLoaded, __cleanupTimeout, __shouldForceLifecycle,
|
|
14
|
+
export const LifecycleMixin = (Base) => { var _instances, __container, __latestTokenCode, __hasFirstLoaded, __cleanupTimeout, __shouldForceLifecycle, __blockLifecycleDueToTokenChange, __tryFindContainingLayout, _a; return _a = class extends Base {
|
|
15
15
|
constructor(...args) {
|
|
16
16
|
super(args);
|
|
17
17
|
_instances.add(this);
|
|
@@ -42,17 +42,6 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
|
|
|
42
42
|
* @internal
|
|
43
43
|
**/
|
|
44
44
|
__shouldForceLifecycle.set(this, false);
|
|
45
|
-
/**
|
|
46
|
-
* Set once a short grace period has elapsed since a blocked ('reflow') disconnect. Some
|
|
47
|
-
* consumers run defensive cleanup shortly after despite the block - and don't necessarily use
|
|
48
|
-
* a plain microtask to do it (e.g. FAST's `DOM.queueUpdate` scheduler, which a consumer's own
|
|
49
|
-
* reconnect logic may also be deferred through, can resolve after our microtask has already
|
|
50
|
-
* fired, making a same-microtask check unreliable). A macrotask-scale grace period via
|
|
51
|
-
* `setTimeout` is cheap here and outlasts any such scheduler, so once it has passed the paired
|
|
52
|
-
* reconnect must not stay blocked, or the consumer never re-initializes.
|
|
53
|
-
* @internal
|
|
54
|
-
**/
|
|
55
|
-
__blockedDisconnectSurvivedGracePeriod.set(this, false);
|
|
56
45
|
}
|
|
57
46
|
/**
|
|
58
47
|
* @privateRemarks
|
|
@@ -138,7 +127,6 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
|
|
|
138
127
|
__hasFirstLoaded = new WeakMap(),
|
|
139
128
|
__cleanupTimeout = new WeakMap(),
|
|
140
129
|
__shouldForceLifecycle = new WeakMap(),
|
|
141
|
-
__blockedDisconnectSurvivedGracePeriod = new WeakMap(),
|
|
142
130
|
_instances = new WeakSet(),
|
|
143
131
|
__blockLifecycleDueToTokenChange = function __blockLifecycleDueToTokenChange(lifecycleType) {
|
|
144
132
|
var _b, _c;
|
|
@@ -158,14 +146,6 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
|
|
|
158
146
|
// 'reconnect' - otherwise unrelated layout changes while disconnected can block it forever.
|
|
159
147
|
__classPrivateFieldSet(this, __hasFirstLoaded, false, "f");
|
|
160
148
|
}
|
|
161
|
-
else {
|
|
162
|
-
// Blocked disconnect: track whether a grace period elapses before the paired reconnect
|
|
163
|
-
// arrives. See `#_blockedDisconnectSurvivedGracePeriod` for why this matters.
|
|
164
|
-
__classPrivateFieldSet(this, __blockedDisconnectSurvivedGracePeriod, false, "f");
|
|
165
|
-
setTimeout(() => {
|
|
166
|
-
__classPrivateFieldSet(this, __blockedDisconnectSurvivedGracePeriod, true, "f");
|
|
167
|
-
}, 0);
|
|
168
|
-
}
|
|
169
149
|
__classPrivateFieldSet(this, __cleanupTimeout, setTimeout(() => {
|
|
170
150
|
__classPrivateFieldSet(this, __shouldForceLifecycle, result, "f");
|
|
171
151
|
if (__classPrivateFieldGet(this, __shouldForceLifecycle, "f")) {
|
|
@@ -174,7 +154,7 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
|
|
|
174
154
|
}, CLEANUP_TIMEOUT_MS), "f");
|
|
175
155
|
}
|
|
176
156
|
else if (lifecycleType === 'reconnect') {
|
|
177
|
-
result = tokensDifferent
|
|
157
|
+
result = tokensDifferent;
|
|
178
158
|
__classPrivateFieldSet(this, __latestTokenCode, (_c = __classPrivateFieldGet(this, __container, "f").lifecycleUpdateToken) !== null && _c !== void 0 ? _c : '', "f");
|
|
179
159
|
clearTimeout(__classPrivateFieldGet(this, __cleanupTimeout, "f"));
|
|
180
160
|
}
|
|
@@ -9094,7 +9094,7 @@
|
|
|
9094
9094
|
},
|
|
9095
9095
|
{
|
|
9096
9096
|
"kind": "Content",
|
|
9097
|
-
"text": ";\n #_shouldForceLifecycle: boolean;\n
|
|
9097
|
+
"text": ";\n #_shouldForceLifecycle: boolean;\n cloneNode(deep?: boolean): "
|
|
9098
9098
|
},
|
|
9099
9099
|
{
|
|
9100
9100
|
"kind": "Reference",
|
|
@@ -1018,17 +1018,6 @@ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(B
|
|
|
1018
1018
|
* @internal
|
|
1019
1019
|
**/
|
|
1020
1020
|
#_shouldForceLifecycle: boolean;
|
|
1021
|
-
/**
|
|
1022
|
-
* Set once a short grace period has elapsed since a blocked ('reflow') disconnect. Some
|
|
1023
|
-
* consumers run defensive cleanup shortly after despite the block - and don't necessarily use
|
|
1024
|
-
* a plain microtask to do it (e.g. FAST's `DOM.queueUpdate` scheduler, which a consumer's own
|
|
1025
|
-
* reconnect logic may also be deferred through, can resolve after our microtask has already
|
|
1026
|
-
* fired, making a same-microtask check unreliable). A macrotask-scale grace period via
|
|
1027
|
-
* `setTimeout` is cheap here and outlasts any such scheduler, so once it has passed the paired
|
|
1028
|
-
* reconnect must not stay blocked, or the consumer never re-initializes.
|
|
1029
|
-
* @internal
|
|
1030
|
-
**/
|
|
1031
|
-
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
1032
1021
|
/**
|
|
1033
1022
|
* @privateRemarks
|
|
1034
1023
|
* Rather than using the basic implementation of cloning we run a copy constructor (deepClone)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.497.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@genesislcap/foundation-testing": "14.
|
|
33
|
-
"@genesislcap/genx": "14.
|
|
34
|
-
"@genesislcap/rollup-builder": "14.
|
|
35
|
-
"@genesislcap/ts-builder": "14.
|
|
36
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
37
|
-
"@genesislcap/vite-builder": "14.
|
|
38
|
-
"@genesislcap/webpack-builder": "14.
|
|
32
|
+
"@genesislcap/foundation-testing": "14.497.0",
|
|
33
|
+
"@genesislcap/genx": "14.497.0",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.497.0",
|
|
35
|
+
"@genesislcap/ts-builder": "14.497.0",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.497.0",
|
|
37
|
+
"@genesislcap/vite-builder": "14.497.0",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.497.0",
|
|
39
39
|
"@types/json-schema": "^7.0.11"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "14.
|
|
43
|
-
"@genesislcap/foundation-logger": "14.
|
|
42
|
+
"@genesislcap/expression-builder": "14.497.0",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.497.0",
|
|
44
44
|
"@microsoft/fast-components": "2.30.6",
|
|
45
45
|
"@microsoft/fast-element": "1.14.0",
|
|
46
46
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"customElements": "dist/custom-elements.json",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "8859a3cd83bd40fc5e5bbff9be5ebe02380fb6ec"
|
|
62
62
|
}
|