@genesislcap/foundation-utils 15.42.0 → 15.43.0-FUI-2646.1

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 +223 -223
  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",
@@ -473,202 +675,53 @@
473
675
  },
474
676
  {
475
677
  "kind": "javascript-module",
476
- "path": "src/design-system/design-system.ts",
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": "assureDesignSystem",
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": "getCurrentDesignSystemPrefix",
574
- "module": "src/design-system/design-system.ts"
685
+ "name": "*",
686
+ "package": "./renderOnChange"
575
687
  }
576
688
  }
577
689
  ]
578
690
  },
579
691
  {
580
692
  "kind": "javascript-module",
581
- "path": "src/design-system/editable-elements.ts",
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": "buildEditableElementSelector",
604
- "return": {
605
- "type": {
606
- "text": "string"
607
- }
608
- },
697
+ "name": "renderOnChange",
609
698
  "parameters": [
610
699
  {
611
- "name": "designSystems",
700
+ "name": "target",
612
701
  "type": {
613
- "text": "readonly EditableDesignSystemPrefix[]"
614
- }
702
+ "text": "FASTElement & { render(): void }"
703
+ },
704
+ "description": "The target to define the property change handler on."
615
705
  },
616
706
  {
617
- "name": "customEditableSelectors",
618
- "default": "[]",
707
+ "name": "name",
619
708
  "type": {
620
- "text": "readonly string[]"
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": "BASE_EDITABLE_ELEMENT_SELECTORS",
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
- "package": "./editable-elements"
723
+ "name": "renderOnChange",
724
+ "module": "src/decorators/renderOnChange.ts"
672
725
  }
673
726
  }
674
727
  ]
@@ -1187,59 +1240,6 @@
1187
1240
  }
1188
1241
  ]
1189
1242
  },
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.42.0",
4
+ "version": "15.43.0-FUI-2646.1",
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.42.0",
33
- "@genesislcap/genx": "15.42.0",
34
- "@genesislcap/rollup-builder": "15.42.0",
35
- "@genesislcap/ts-builder": "15.42.0",
36
- "@genesislcap/uvu-playwright-builder": "15.42.0",
37
- "@genesislcap/vite-builder": "15.42.0",
38
- "@genesislcap/webpack-builder": "15.42.0",
32
+ "@genesislcap/foundation-testing": "15.43.0-FUI-2646.1",
33
+ "@genesislcap/genx": "15.43.0-FUI-2646.1",
34
+ "@genesislcap/rollup-builder": "15.43.0-FUI-2646.1",
35
+ "@genesislcap/ts-builder": "15.43.0-FUI-2646.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.43.0-FUI-2646.1",
37
+ "@genesislcap/vite-builder": "15.43.0-FUI-2646.1",
38
+ "@genesislcap/webpack-builder": "15.43.0-FUI-2646.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.42.0",
43
- "@genesislcap/foundation-logger": "15.42.0",
42
+ "@genesislcap/expression-builder": "15.43.0-FUI-2646.1",
43
+ "@genesislcap/foundation-logger": "15.43.0-FUI-2646.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",