@genesislcap/foundation-utils 15.35.4 → 15.36.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +239 -239
  2. package/package.json +10 -10
@@ -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",
@@ -450,209 +652,83 @@
450
652
  },
451
653
  {
452
654
  "kind": "javascript-module",
453
- "path": "src/design-system/design-system.ts",
454
- "declarations": [
455
- {
456
- "kind": "function",
457
- "name": "assureDesignSystem",
458
- "return": {
459
- "type": {
460
- "text": "DesignSystemModule"
461
- }
462
- },
463
- "parameters": [
464
- {
465
- "name": "module",
466
- "type": {
467
- "text": "DesignSystemModule"
468
- }
469
- }
470
- ],
471
- "description": "assureDesignSystem.",
472
- "privacy": "public"
473
- },
474
- {
475
- "kind": "function",
476
- "name": "getCurrentDesignSystem",
477
- "return": {
478
- "type": {
479
- "text": ""
480
- }
481
- },
482
- "parameters": [
483
- {
484
- "name": "element",
485
- "type": {
486
- "text": "HTMLElement"
487
- },
488
- "description": "The starting HTML element"
489
- },
490
- {
491
- "name": "fallbackPrefix",
492
- "type": {
493
- "text": "string"
494
- },
495
- "description": "The prefix to fallback to if the provider is not available"
496
- }
497
- ],
498
- "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.",
499
- "privacy": "public"
500
- },
501
- {
502
- "kind": "function",
503
- "name": "getCurrentDesignSystemPrefix",
504
- "return": {
505
- "type": {
506
- "text": ""
507
- }
508
- },
509
- "parameters": [
510
- {
511
- "name": "element",
512
- "type": {
513
- "text": "HTMLElement"
514
- },
515
- "description": "The starting HTML element"
516
- },
517
- {
518
- "name": "fallbackPrefix",
519
- "type": {
520
- "text": "string"
521
- },
522
- "description": "The prefix to fallback to if the provider is not available"
523
- }
524
- ],
525
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
526
- "privacy": "public"
527
- }
528
- ],
655
+ "path": "src/directives/index.ts",
656
+ "declarations": [],
529
657
  "exports": [
530
658
  {
531
659
  "kind": "js",
532
- "name": "assureDesignSystem",
660
+ "name": "*",
533
661
  "declaration": {
534
- "name": "assureDesignSystem",
535
- "module": "src/design-system/design-system.ts"
662
+ "name": "*",
663
+ "package": "./sync"
536
664
  }
537
665
  },
538
666
  {
539
667
  "kind": "js",
540
- "name": "getCurrentDesignSystem",
668
+ "name": "*",
541
669
  "declaration": {
542
- "name": "getCurrentDesignSystem",
543
- "module": "src/design-system/design-system.ts"
670
+ "name": "*",
671
+ "package": "./when-else"
544
672
  }
545
- },
673
+ }
674
+ ]
675
+ },
676
+ {
677
+ "kind": "javascript-module",
678
+ "path": "src/decorators/index.ts",
679
+ "declarations": [],
680
+ "exports": [
546
681
  {
547
682
  "kind": "js",
548
- "name": "getCurrentDesignSystemPrefix",
683
+ "name": "*",
549
684
  "declaration": {
550
- "name": "getCurrentDesignSystemPrefix",
551
- "module": "src/design-system/design-system.ts"
685
+ "name": "*",
686
+ "package": "./renderOnChange"
552
687
  }
553
688
  }
554
689
  ]
555
690
  },
556
691
  {
557
692
  "kind": "javascript-module",
558
- "path": "src/design-system/editable-elements.ts",
693
+ "path": "src/decorators/renderOnChange.ts",
559
694
  "declarations": [
560
- {
561
- "kind": "variable",
562
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
563
- "type": {
564
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
565
- },
566
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
567
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
568
- },
569
- {
570
- "kind": "variable",
571
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
572
- "type": {
573
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
574
- },
575
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
576
- "description": "Design-system specific editable host selectors."
577
- },
578
695
  {
579
696
  "kind": "function",
580
- "name": "buildEditableElementSelector",
581
- "return": {
582
- "type": {
583
- "text": "string"
584
- }
585
- },
697
+ "name": "renderOnChange",
586
698
  "parameters": [
587
699
  {
588
- "name": "designSystems",
700
+ "name": "target",
589
701
  "type": {
590
- "text": "readonly EditableDesignSystemPrefix[]"
591
- }
702
+ "text": "FASTElement & { render(): void }"
703
+ },
704
+ "description": "The target to define the property change handler on."
592
705
  },
593
706
  {
594
- "name": "customEditableSelectors",
595
- "default": "[]",
707
+ "name": "name",
596
708
  "type": {
597
- "text": "readonly string[]"
598
- }
709
+ "text": "string"
710
+ },
711
+ "description": "The property name."
599
712
  }
600
- ]
713
+ ],
714
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
715
+ "privacy": "public"
601
716
  }
602
717
  ],
603
718
  "exports": [
604
719
  {
605
720
  "kind": "js",
606
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
- "declaration": {
608
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
- "module": "src/design-system/editable-elements.ts"
610
- }
611
- },
612
- {
613
- "kind": "js",
614
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
615
- "declaration": {
616
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
617
- "module": "src/design-system/editable-elements.ts"
618
- }
619
- },
620
- {
621
- "kind": "js",
622
- "name": "buildEditableElementSelector",
623
- "declaration": {
624
- "name": "buildEditableElementSelector",
625
- "module": "src/design-system/editable-elements.ts"
626
- }
627
- }
628
- ]
629
- },
630
- {
631
- "kind": "javascript-module",
632
- "path": "src/design-system/index.ts",
633
- "declarations": [],
634
- "exports": [
635
- {
636
- "kind": "js",
637
- "name": "*",
638
- "declaration": {
639
- "name": "*",
640
- "package": "./design-system"
641
- }
642
- },
643
- {
644
- "kind": "js",
645
- "name": "*",
721
+ "name": "renderOnChange",
646
722
  "declaration": {
647
- "name": "*",
648
- "package": "./editable-elements"
723
+ "name": "renderOnChange",
724
+ "module": "src/decorators/renderOnChange.ts"
649
725
  }
650
726
  }
651
727
  ]
652
728
  },
653
729
  {
654
730
  "kind": "javascript-module",
655
- "path": "src/directives/index.ts",
731
+ "path": "src/encoding/index.ts",
656
732
  "declarations": [],
657
733
  "exports": [
658
734
  {
@@ -660,15 +736,7 @@
660
736
  "name": "*",
661
737
  "declaration": {
662
738
  "name": "*",
663
- "package": "./sync"
664
- }
665
- },
666
- {
667
- "kind": "js",
668
- "name": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./when-else"
739
+ "package": "./base64"
672
740
  }
673
741
  }
674
742
  ]
@@ -1172,74 +1240,6 @@
1172
1240
  }
1173
1241
  ]
1174
1242
  },
1175
- {
1176
- "kind": "javascript-module",
1177
- "path": "src/encoding/index.ts",
1178
- "declarations": [],
1179
- "exports": [
1180
- {
1181
- "kind": "js",
1182
- "name": "*",
1183
- "declaration": {
1184
- "name": "*",
1185
- "package": "./base64"
1186
- }
1187
- }
1188
- ]
1189
- },
1190
- {
1191
- "kind": "javascript-module",
1192
- "path": "src/decorators/index.ts",
1193
- "declarations": [],
1194
- "exports": [
1195
- {
1196
- "kind": "js",
1197
- "name": "*",
1198
- "declaration": {
1199
- "name": "*",
1200
- "package": "./renderOnChange"
1201
- }
1202
- }
1203
- ]
1204
- },
1205
- {
1206
- "kind": "javascript-module",
1207
- "path": "src/decorators/renderOnChange.ts",
1208
- "declarations": [
1209
- {
1210
- "kind": "function",
1211
- "name": "renderOnChange",
1212
- "parameters": [
1213
- {
1214
- "name": "target",
1215
- "type": {
1216
- "text": "FASTElement & { render(): void }"
1217
- },
1218
- "description": "The target to define the property change handler on."
1219
- },
1220
- {
1221
- "name": "name",
1222
- "type": {
1223
- "text": "string"
1224
- },
1225
- "description": "The property name."
1226
- }
1227
- ],
1228
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1229
- "privacy": "public"
1230
- }
1231
- ],
1232
- "exports": [
1233
- {
1234
- "kind": "js",
1235
- "name": "renderOnChange",
1236
- "declaration": {
1237
- "name": "renderOnChange",
1238
- "module": "src/decorators/renderOnChange.ts"
1239
- }
1240
- }
1241
- ]
1242
- },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "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.35.4",
4
+ "version": "15.36.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": "15.35.4",
33
- "@genesislcap/genx": "15.35.4",
34
- "@genesislcap/rollup-builder": "15.35.4",
35
- "@genesislcap/ts-builder": "15.35.4",
36
- "@genesislcap/uvu-playwright-builder": "15.35.4",
37
- "@genesislcap/vite-builder": "15.35.4",
38
- "@genesislcap/webpack-builder": "15.35.4",
32
+ "@genesislcap/foundation-testing": "15.36.0",
33
+ "@genesislcap/genx": "15.36.0",
34
+ "@genesislcap/rollup-builder": "15.36.0",
35
+ "@genesislcap/ts-builder": "15.36.0",
36
+ "@genesislcap/uvu-playwright-builder": "15.36.0",
37
+ "@genesislcap/vite-builder": "15.36.0",
38
+ "@genesislcap/webpack-builder": "15.36.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.35.4",
43
- "@genesislcap/foundation-logger": "15.35.4",
42
+ "@genesislcap/expression-builder": "15.36.0",
43
+ "@genesislcap/foundation-logger": "15.36.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",