@genesislcap/foundation-utils 15.84.2 → 15.85.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.
@@ -260,7 +260,222 @@
260
260
  },
261
261
  {
262
262
  "kind": "javascript-module",
263
- "path": "src/directives/index.ts",
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
+ ],
339
+ "exports": [
340
+ {
341
+ "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",
359
+ "declaration": {
360
+ "name": "getCurrentDesignSystemPrefix",
361
+ "module": "src/design-system/design-system.ts"
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "kind": "javascript-module",
368
+ "path": "src/design-system/editable-elements.ts",
369
+ "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}",
386
+ "description": "Design-system specific editable host selectors."
387
+ },
388
+ {
389
+ "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
+ },
420
+ "parameters": [
421
+ {
422
+ "name": "event",
423
+ "type": {
424
+ "text": "KeyboardEvent"
425
+ },
426
+ "description": "The keyboard event."
427
+ },
428
+ {
429
+ "name": "editableSelector",
430
+ "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
431
+ "type": {
432
+ "text": "string"
433
+ },
434
+ "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
435
+ }
436
+ ],
437
+ "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
438
+ "privacy": "public"
439
+ }
440
+ ],
441
+ "exports": [
442
+ {
443
+ "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",
264
479
  "declarations": [],
265
480
  "exports": [
266
481
  {
@@ -268,7 +483,7 @@
268
483
  "name": "*",
269
484
  "declaration": {
270
485
  "name": "*",
271
- "package": "./sync"
486
+ "package": "./design-system"
272
487
  }
273
488
  },
274
489
  {
@@ -276,7 +491,7 @@
276
491
  "name": "*",
277
492
  "declaration": {
278
493
  "name": "*",
279
- "package": "./when-else"
494
+ "package": "./editable-elements"
280
495
  }
281
496
  }
282
497
  ]
@@ -481,222 +696,60 @@
481
696
  },
482
697
  {
483
698
  "kind": "javascript-module",
484
- "path": "src/design-system/design-system.ts",
485
- "declarations": [
486
- {
487
- "kind": "function",
488
- "name": "assureDesignSystem",
489
- "return": {
490
- "type": {
491
- "text": "DesignSystemModule"
492
- }
493
- },
494
- "parameters": [
495
- {
496
- "name": "module",
497
- "type": {
498
- "text": "DesignSystemModule"
499
- }
500
- }
501
- ],
502
- "description": "assureDesignSystem.",
503
- "privacy": "public"
504
- },
505
- {
506
- "kind": "function",
507
- "name": "getCurrentDesignSystem",
508
- "return": {
509
- "type": {
510
- "text": ""
511
- }
512
- },
513
- "parameters": [
514
- {
515
- "name": "element",
516
- "type": {
517
- "text": "HTMLElement"
518
- },
519
- "description": "The starting HTML element"
520
- },
521
- {
522
- "name": "fallbackPrefix",
523
- "type": {
524
- "text": "string"
525
- },
526
- "description": "The prefix to fallback to if the provider is not available"
527
- }
528
- ],
529
- "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.",
530
- "privacy": "public"
531
- },
532
- {
533
- "kind": "function",
534
- "name": "getCurrentDesignSystemPrefix",
535
- "return": {
536
- "type": {
537
- "text": ""
538
- }
539
- },
540
- "parameters": [
541
- {
542
- "name": "element",
543
- "type": {
544
- "text": "HTMLElement"
545
- },
546
- "description": "The starting HTML element"
547
- },
548
- {
549
- "name": "fallbackPrefix",
550
- "type": {
551
- "text": "string"
552
- },
553
- "description": "The prefix to fallback to if the provider is not available"
554
- }
555
- ],
556
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
557
- "privacy": "public"
558
- }
559
- ],
699
+ "path": "src/decorators/index.ts",
700
+ "declarations": [],
560
701
  "exports": [
561
702
  {
562
703
  "kind": "js",
563
- "name": "assureDesignSystem",
564
- "declaration": {
565
- "name": "assureDesignSystem",
566
- "module": "src/design-system/design-system.ts"
567
- }
568
- },
569
- {
570
- "kind": "js",
571
- "name": "getCurrentDesignSystem",
572
- "declaration": {
573
- "name": "getCurrentDesignSystem",
574
- "module": "src/design-system/design-system.ts"
575
- }
576
- },
577
- {
578
- "kind": "js",
579
- "name": "getCurrentDesignSystemPrefix",
704
+ "name": "*",
580
705
  "declaration": {
581
- "name": "getCurrentDesignSystemPrefix",
582
- "module": "src/design-system/design-system.ts"
706
+ "name": "*",
707
+ "package": "./renderOnChange"
583
708
  }
584
709
  }
585
710
  ]
586
711
  },
587
712
  {
588
713
  "kind": "javascript-module",
589
- "path": "src/design-system/editable-elements.ts",
714
+ "path": "src/decorators/renderOnChange.ts",
590
715
  "declarations": [
591
- {
592
- "kind": "variable",
593
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
594
- "type": {
595
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
596
- },
597
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
598
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
599
- },
600
- {
601
- "kind": "variable",
602
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
603
- "type": {
604
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
605
- },
606
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n}",
607
- "description": "Design-system specific editable host selectors."
608
- },
609
716
  {
610
717
  "kind": "function",
611
- "name": "buildEditableElementSelector",
612
- "return": {
613
- "type": {
614
- "text": "string"
615
- }
616
- },
617
- "parameters": [
618
- {
619
- "name": "designSystems",
620
- "type": {
621
- "text": "readonly EditableDesignSystemPrefix[]"
622
- }
623
- },
624
- {
625
- "name": "customEditableSelectors",
626
- "default": "[]",
627
- "type": {
628
- "text": "readonly string[]"
629
- }
630
- }
631
- ]
632
- },
633
- {
634
- "kind": "function",
635
- "name": "isEditableKeyboardEvent",
636
- "return": {
637
- "type": {
638
- "text": "boolean"
639
- }
640
- },
718
+ "name": "renderOnChange",
641
719
  "parameters": [
642
720
  {
643
- "name": "event",
721
+ "name": "target",
644
722
  "type": {
645
- "text": "KeyboardEvent"
723
+ "text": "FASTElement & { render(): void }"
646
724
  },
647
- "description": "The keyboard event."
725
+ "description": "The target to define the property change handler on."
648
726
  },
649
727
  {
650
- "name": "editableSelector",
651
- "default": "DEFAULT_EDITABLE_ELEMENT_SELECTOR",
728
+ "name": "name",
652
729
  "type": {
653
730
  "text": "string"
654
731
  },
655
- "description": "CSS selector for editable elements. Defaults to the base selectors plus\nrapid editable hosts."
732
+ "description": "The property name."
656
733
  }
657
734
  ],
658
- "description": "Whether a keyboard event comes from an editable element, i.e. the user is typing.",
735
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
659
736
  "privacy": "public"
660
737
  }
661
738
  ],
662
739
  "exports": [
663
740
  {
664
741
  "kind": "js",
665
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
666
- "declaration": {
667
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
668
- "module": "src/design-system/editable-elements.ts"
669
- }
670
- },
671
- {
672
- "kind": "js",
673
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
674
- "declaration": {
675
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
676
- "module": "src/design-system/editable-elements.ts"
677
- }
678
- },
679
- {
680
- "kind": "js",
681
- "name": "buildEditableElementSelector",
682
- "declaration": {
683
- "name": "buildEditableElementSelector",
684
- "module": "src/design-system/editable-elements.ts"
685
- }
686
- },
687
- {
688
- "kind": "js",
689
- "name": "isEditableKeyboardEvent",
742
+ "name": "renderOnChange",
690
743
  "declaration": {
691
- "name": "isEditableKeyboardEvent",
692
- "module": "src/design-system/editable-elements.ts"
744
+ "name": "renderOnChange",
745
+ "module": "src/decorators/renderOnChange.ts"
693
746
  }
694
747
  }
695
748
  ]
696
749
  },
697
750
  {
698
751
  "kind": "javascript-module",
699
- "path": "src/design-system/index.ts",
752
+ "path": "src/directives/index.ts",
700
753
  "declarations": [],
701
754
  "exports": [
702
755
  {
@@ -704,7 +757,7 @@
704
757
  "name": "*",
705
758
  "declaration": {
706
759
  "name": "*",
707
- "package": "./design-system"
760
+ "package": "./sync"
708
761
  }
709
762
  },
710
763
  {
@@ -712,7 +765,7 @@
712
765
  "name": "*",
713
766
  "declaration": {
714
767
  "name": "*",
715
- "package": "./editable-elements"
768
+ "package": "./when-else"
716
769
  }
717
770
  }
718
771
  ]
@@ -1231,59 +1284,6 @@
1231
1284
  }
1232
1285
  ]
1233
1286
  },
1234
- {
1235
- "kind": "javascript-module",
1236
- "path": "src/decorators/index.ts",
1237
- "declarations": [],
1238
- "exports": [
1239
- {
1240
- "kind": "js",
1241
- "name": "*",
1242
- "declaration": {
1243
- "name": "*",
1244
- "package": "./renderOnChange"
1245
- }
1246
- }
1247
- ]
1248
- },
1249
- {
1250
- "kind": "javascript-module",
1251
- "path": "src/decorators/renderOnChange.ts",
1252
- "declarations": [
1253
- {
1254
- "kind": "function",
1255
- "name": "renderOnChange",
1256
- "parameters": [
1257
- {
1258
- "name": "target",
1259
- "type": {
1260
- "text": "FASTElement & { render(): void }"
1261
- },
1262
- "description": "The target to define the property change handler on."
1263
- },
1264
- {
1265
- "name": "name",
1266
- "type": {
1267
- "text": "string"
1268
- },
1269
- "description": "The property name."
1270
- }
1271
- ],
1272
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1273
- "privacy": "public"
1274
- }
1275
- ],
1276
- "exports": [
1277
- {
1278
- "kind": "js",
1279
- "name": "renderOnChange",
1280
- "declaration": {
1281
- "name": "renderOnChange",
1282
- "module": "src/decorators/renderOnChange.ts"
1283
- }
1284
- }
1285
- ]
1286
- },
1287
1287
  {
1288
1288
  "kind": "javascript-module",
1289
1289
  "path": "src/error/errorMap.ts",
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.84.2",
4
+ "version": "15.85.0",
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.84.2",
33
- "@genesislcap/genx": "15.84.2",
34
- "@genesislcap/ts-builder": "15.84.2",
35
- "@genesislcap/uvu-playwright-builder": "15.84.2",
36
- "@genesislcap/vite-builder": "15.84.2",
37
- "@genesislcap/webpack-builder": "15.84.2",
32
+ "@genesislcap/foundation-testing": "15.85.0",
33
+ "@genesislcap/genx": "15.85.0",
34
+ "@genesislcap/ts-builder": "15.85.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.85.0",
36
+ "@genesislcap/vite-builder": "15.85.0",
37
+ "@genesislcap/webpack-builder": "15.85.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.84.2",
42
- "@genesislcap/foundation-logger": "15.84.2",
41
+ "@genesislcap/expression-builder": "15.85.0",
42
+ "@genesislcap/foundation-logger": "15.85.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",