@genesislcap/foundation-utils 15.72.0 → 15.73.0-FUI-2628.4

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.
@@ -260,238 +260,53 @@
260
260
  },
261
261
  {
262
262
  "kind": "javascript-module",
263
- "path": "src/design-system/design-system.ts",
264
- "declarations": [
265
- {
266
- "kind": "function",
267
- "name": "assureDesignSystem",
268
- "return": {
269
- "type": {
270
- "text": "DesignSystemModule"
271
- }
272
- },
273
- "parameters": [
274
- {
275
- "name": "module",
276
- "type": {
277
- "text": "DesignSystemModule"
278
- }
279
- }
280
- ],
281
- "description": "assureDesignSystem.",
282
- "privacy": "public"
283
- },
284
- {
285
- "kind": "function",
286
- "name": "getCurrentDesignSystem",
287
- "return": {
288
- "type": {
289
- "text": ""
290
- }
291
- },
292
- "parameters": [
293
- {
294
- "name": "element",
295
- "type": {
296
- "text": "HTMLElement"
297
- },
298
- "description": "The starting HTML element"
299
- },
300
- {
301
- "name": "fallbackPrefix",
302
- "type": {
303
- "text": "string"
304
- },
305
- "description": "The prefix to fallback to if the provider is not available"
306
- }
307
- ],
308
- "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.",
309
- "privacy": "public"
310
- },
311
- {
312
- "kind": "function",
313
- "name": "getCurrentDesignSystemPrefix",
314
- "return": {
315
- "type": {
316
- "text": ""
317
- }
318
- },
319
- "parameters": [
320
- {
321
- "name": "element",
322
- "type": {
323
- "text": "HTMLElement"
324
- },
325
- "description": "The starting HTML element"
326
- },
327
- {
328
- "name": "fallbackPrefix",
329
- "type": {
330
- "text": "string"
331
- },
332
- "description": "The prefix to fallback to if the provider is not available"
333
- }
334
- ],
335
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
336
- "privacy": "public"
337
- }
338
- ],
263
+ "path": "src/decorators/index.ts",
264
+ "declarations": [],
339
265
  "exports": [
340
266
  {
341
267
  "kind": "js",
342
- "name": "assureDesignSystem",
343
- "declaration": {
344
- "name": "assureDesignSystem",
345
- "module": "src/design-system/design-system.ts"
346
- }
347
- },
348
- {
349
- "kind": "js",
350
- "name": "getCurrentDesignSystem",
351
- "declaration": {
352
- "name": "getCurrentDesignSystem",
353
- "module": "src/design-system/design-system.ts"
354
- }
355
- },
356
- {
357
- "kind": "js",
358
- "name": "getCurrentDesignSystemPrefix",
268
+ "name": "*",
359
269
  "declaration": {
360
- "name": "getCurrentDesignSystemPrefix",
361
- "module": "src/design-system/design-system.ts"
270
+ "name": "*",
271
+ "package": "./renderOnChange"
362
272
  }
363
273
  }
364
274
  ]
365
275
  },
366
276
  {
367
277
  "kind": "javascript-module",
368
- "path": "src/design-system/editable-elements.ts",
278
+ "path": "src/decorators/renderOnChange.ts",
369
279
  "declarations": [
370
- {
371
- "kind": "variable",
372
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
373
- "type": {
374
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
375
- },
376
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
377
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
378
- },
379
- {
380
- "kind": "variable",
381
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
382
- "type": {
383
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
384
- },
385
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
386
- "description": "Design-system specific editable host selectors."
387
- },
388
280
  {
389
281
  "kind": "function",
390
- "name": "buildEditableElementSelector",
391
- "return": {
392
- "type": {
393
- "text": "string"
394
- }
395
- },
396
- "parameters": [
397
- {
398
- "name": "designSystems",
399
- "type": {
400
- "text": "readonly EditableDesignSystemPrefix[]"
401
- }
402
- },
403
- {
404
- "name": "customEditableSelectors",
405
- "default": "[]",
406
- "type": {
407
- "text": "readonly string[]"
408
- }
409
- }
410
- ]
411
- },
412
- {
413
- "kind": "function",
414
- "name": "isEditableKeyboardEvent",
415
- "return": {
416
- "type": {
417
- "text": "boolean"
418
- }
419
- },
282
+ "name": "renderOnChange",
420
283
  "parameters": [
421
284
  {
422
- "name": "event",
285
+ "name": "target",
423
286
  "type": {
424
- "text": "KeyboardEvent"
287
+ "text": "FASTElement & { render(): void }"
425
288
  },
426
- "description": "The keyboard event."
289
+ "description": "The target to define the property change handler on."
427
290
  },
428
291
  {
429
- "name": "editableSelector",
430
- "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
292
+ "name": "name",
431
293
  "type": {
432
294
  "text": "string"
433
295
  },
434
- "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
296
+ "description": "The property name."
435
297
  }
436
298
  ],
437
- "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
299
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
438
300
  "privacy": "public"
439
301
  }
440
302
  ],
441
303
  "exports": [
442
304
  {
443
305
  "kind": "js",
444
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
445
- "declaration": {
446
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
447
- "module": "src/design-system/editable-elements.ts"
448
- }
449
- },
450
- {
451
- "kind": "js",
452
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
453
- "declaration": {
454
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
455
- "module": "src/design-system/editable-elements.ts"
456
- }
457
- },
458
- {
459
- "kind": "js",
460
- "name": "buildEditableElementSelector",
461
- "declaration": {
462
- "name": "buildEditableElementSelector",
463
- "module": "src/design-system/editable-elements.ts"
464
- }
465
- },
466
- {
467
- "kind": "js",
468
- "name": "isEditableKeyboardEvent",
469
- "declaration": {
470
- "name": "isEditableKeyboardEvent",
471
- "module": "src/design-system/editable-elements.ts"
472
- }
473
- }
474
- ]
475
- },
476
- {
477
- "kind": "javascript-module",
478
- "path": "src/design-system/index.ts",
479
- "declarations": [],
480
- "exports": [
481
- {
482
- "kind": "js",
483
- "name": "*",
484
- "declaration": {
485
- "name": "*",
486
- "package": "./design-system"
487
- }
488
- },
489
- {
490
- "kind": "js",
491
- "name": "*",
306
+ "name": "renderOnChange",
492
307
  "declaration": {
493
- "name": "*",
494
- "package": "./editable-elements"
308
+ "name": "renderOnChange",
309
+ "module": "src/decorators/renderOnChange.ts"
495
310
  }
496
311
  }
497
312
  ]
@@ -696,76 +511,261 @@
696
511
  },
697
512
  {
698
513
  "kind": "javascript-module",
699
- "path": "src/directives/index.ts",
700
- "declarations": [],
514
+ "path": "src/design-system/design-system.ts",
515
+ "declarations": [
516
+ {
517
+ "kind": "function",
518
+ "name": "assureDesignSystem",
519
+ "return": {
520
+ "type": {
521
+ "text": "DesignSystemModule"
522
+ }
523
+ },
524
+ "parameters": [
525
+ {
526
+ "name": "module",
527
+ "type": {
528
+ "text": "DesignSystemModule"
529
+ }
530
+ }
531
+ ],
532
+ "description": "assureDesignSystem.",
533
+ "privacy": "public"
534
+ },
535
+ {
536
+ "kind": "function",
537
+ "name": "getCurrentDesignSystem",
538
+ "return": {
539
+ "type": {
540
+ "text": ""
541
+ }
542
+ },
543
+ "parameters": [
544
+ {
545
+ "name": "element",
546
+ "type": {
547
+ "text": "HTMLElement"
548
+ },
549
+ "description": "The starting HTML element"
550
+ },
551
+ {
552
+ "name": "fallbackPrefix",
553
+ "type": {
554
+ "text": "string"
555
+ },
556
+ "description": "The prefix to fallback to if the provider is not available"
557
+ }
558
+ ],
559
+ "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.",
560
+ "privacy": "public"
561
+ },
562
+ {
563
+ "kind": "function",
564
+ "name": "getCurrentDesignSystemPrefix",
565
+ "return": {
566
+ "type": {
567
+ "text": ""
568
+ }
569
+ },
570
+ "parameters": [
571
+ {
572
+ "name": "element",
573
+ "type": {
574
+ "text": "HTMLElement"
575
+ },
576
+ "description": "The starting HTML element"
577
+ },
578
+ {
579
+ "name": "fallbackPrefix",
580
+ "type": {
581
+ "text": "string"
582
+ },
583
+ "description": "The prefix to fallback to if the provider is not available"
584
+ }
585
+ ],
586
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
587
+ "privacy": "public"
588
+ }
589
+ ],
701
590
  "exports": [
702
591
  {
703
592
  "kind": "js",
704
- "name": "*",
593
+ "name": "assureDesignSystem",
705
594
  "declaration": {
706
- "name": "*",
707
- "package": "./sync"
595
+ "name": "assureDesignSystem",
596
+ "module": "src/design-system/design-system.ts"
708
597
  }
709
598
  },
710
599
  {
711
600
  "kind": "js",
712
- "name": "*",
601
+ "name": "getCurrentDesignSystem",
713
602
  "declaration": {
714
- "name": "*",
715
- "package": "./when-else"
603
+ "name": "getCurrentDesignSystem",
604
+ "module": "src/design-system/design-system.ts"
716
605
  }
717
- }
718
- ]
719
- },
720
- {
721
- "kind": "javascript-module",
722
- "path": "src/decorators/index.ts",
723
- "declarations": [],
724
- "exports": [
606
+ },
725
607
  {
726
608
  "kind": "js",
727
- "name": "*",
609
+ "name": "getCurrentDesignSystemPrefix",
728
610
  "declaration": {
729
- "name": "*",
730
- "package": "./renderOnChange"
611
+ "name": "getCurrentDesignSystemPrefix",
612
+ "module": "src/design-system/design-system.ts"
731
613
  }
732
614
  }
733
615
  ]
734
616
  },
735
617
  {
736
618
  "kind": "javascript-module",
737
- "path": "src/decorators/renderOnChange.ts",
619
+ "path": "src/design-system/editable-elements.ts",
738
620
  "declarations": [
621
+ {
622
+ "kind": "variable",
623
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
624
+ "type": {
625
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
626
+ },
627
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
628
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
629
+ },
630
+ {
631
+ "kind": "variable",
632
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
633
+ "type": {
634
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
635
+ },
636
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
637
+ "description": "Design-system specific editable host selectors."
638
+ },
739
639
  {
740
640
  "kind": "function",
741
- "name": "renderOnChange",
641
+ "name": "buildEditableElementSelector",
642
+ "return": {
643
+ "type": {
644
+ "text": "string"
645
+ }
646
+ },
742
647
  "parameters": [
743
648
  {
744
- "name": "target",
649
+ "name": "designSystems",
745
650
  "type": {
746
- "text": "FASTElement & { render(): void }"
651
+ "text": "readonly EditableDesignSystemPrefix[]"
652
+ }
653
+ },
654
+ {
655
+ "name": "customEditableSelectors",
656
+ "default": "[]",
657
+ "type": {
658
+ "text": "readonly string[]"
659
+ }
660
+ }
661
+ ]
662
+ },
663
+ {
664
+ "kind": "function",
665
+ "name": "isEditableKeyboardEvent",
666
+ "return": {
667
+ "type": {
668
+ "text": "boolean"
669
+ }
670
+ },
671
+ "parameters": [
672
+ {
673
+ "name": "event",
674
+ "type": {
675
+ "text": "KeyboardEvent"
747
676
  },
748
- "description": "The target to define the property change handler on."
677
+ "description": "The keyboard event."
749
678
  },
750
679
  {
751
- "name": "name",
680
+ "name": "editableSelector",
681
+ "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
752
682
  "type": {
753
683
  "text": "string"
754
684
  },
755
- "description": "The property name."
685
+ "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
756
686
  }
757
687
  ],
758
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
688
+ "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
759
689
  "privacy": "public"
760
690
  }
761
691
  ],
762
692
  "exports": [
763
693
  {
764
694
  "kind": "js",
765
- "name": "renderOnChange",
695
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
766
696
  "declaration": {
767
- "name": "renderOnChange",
768
- "module": "src/decorators/renderOnChange.ts"
697
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
698
+ "module": "src/design-system/editable-elements.ts"
699
+ }
700
+ },
701
+ {
702
+ "kind": "js",
703
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
704
+ "declaration": {
705
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
706
+ "module": "src/design-system/editable-elements.ts"
707
+ }
708
+ },
709
+ {
710
+ "kind": "js",
711
+ "name": "buildEditableElementSelector",
712
+ "declaration": {
713
+ "name": "buildEditableElementSelector",
714
+ "module": "src/design-system/editable-elements.ts"
715
+ }
716
+ },
717
+ {
718
+ "kind": "js",
719
+ "name": "isEditableKeyboardEvent",
720
+ "declaration": {
721
+ "name": "isEditableKeyboardEvent",
722
+ "module": "src/design-system/editable-elements.ts"
723
+ }
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "kind": "javascript-module",
729
+ "path": "src/design-system/index.ts",
730
+ "declarations": [],
731
+ "exports": [
732
+ {
733
+ "kind": "js",
734
+ "name": "*",
735
+ "declaration": {
736
+ "name": "*",
737
+ "package": "./design-system"
738
+ }
739
+ },
740
+ {
741
+ "kind": "js",
742
+ "name": "*",
743
+ "declaration": {
744
+ "name": "*",
745
+ "package": "./editable-elements"
746
+ }
747
+ }
748
+ ]
749
+ },
750
+ {
751
+ "kind": "javascript-module",
752
+ "path": "src/directives/index.ts",
753
+ "declarations": [],
754
+ "exports": [
755
+ {
756
+ "kind": "js",
757
+ "name": "*",
758
+ "declaration": {
759
+ "name": "*",
760
+ "package": "./sync"
761
+ }
762
+ },
763
+ {
764
+ "kind": "js",
765
+ "name": "*",
766
+ "declaration": {
767
+ "name": "*",
768
+ "package": "./when-else"
769
769
  }
770
770
  }
771
771
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "15.72.0",
4
+ "version": "15.73.0-FUI-2628.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.72.0",
33
- "@genesislcap/genx": "15.72.0",
34
- "@genesislcap/ts-builder": "15.72.0",
35
- "@genesislcap/uvu-playwright-builder": "15.72.0",
36
- "@genesislcap/vite-builder": "15.72.0",
37
- "@genesislcap/webpack-builder": "15.72.0",
32
+ "@genesislcap/foundation-testing": "15.73.0-FUI-2628.4",
33
+ "@genesislcap/genx": "15.73.0-FUI-2628.4",
34
+ "@genesislcap/ts-builder": "15.73.0-FUI-2628.4",
35
+ "@genesislcap/uvu-playwright-builder": "15.73.0-FUI-2628.4",
36
+ "@genesislcap/vite-builder": "15.73.0-FUI-2628.4",
37
+ "@genesislcap/webpack-builder": "15.73.0-FUI-2628.4",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.72.0",
42
- "@genesislcap/foundation-logger": "15.72.0",
41
+ "@genesislcap/expression-builder": "15.73.0-FUI-2628.4",
42
+ "@genesislcap/foundation-logger": "15.73.0-FUI-2628.4",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",