@genesislcap/foundation-utils 14.491.0-GENC-1390.1 → 14.491.0-GENC-1390.2

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 +11 -11
@@ -250,6 +250,59 @@
250
250
  }
251
251
  ]
252
252
  },
253
+ {
254
+ "kind": "javascript-module",
255
+ "path": "src/decorators/index.ts",
256
+ "declarations": [],
257
+ "exports": [
258
+ {
259
+ "kind": "js",
260
+ "name": "*",
261
+ "declaration": {
262
+ "name": "*",
263
+ "package": "./renderOnChange"
264
+ }
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "kind": "javascript-module",
270
+ "path": "src/decorators/renderOnChange.ts",
271
+ "declarations": [
272
+ {
273
+ "kind": "function",
274
+ "name": "renderOnChange",
275
+ "parameters": [
276
+ {
277
+ "name": "target",
278
+ "type": {
279
+ "text": "FASTElement & { render(): void }"
280
+ },
281
+ "description": "The target to define the property change handler on."
282
+ },
283
+ {
284
+ "name": "name",
285
+ "type": {
286
+ "text": "string"
287
+ },
288
+ "description": "The property name."
289
+ }
290
+ ],
291
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
292
+ "privacy": "public"
293
+ }
294
+ ],
295
+ "exports": [
296
+ {
297
+ "kind": "js",
298
+ "name": "renderOnChange",
299
+ "declaration": {
300
+ "name": "renderOnChange",
301
+ "module": "src/decorators/renderOnChange.ts"
302
+ }
303
+ }
304
+ ]
305
+ },
253
306
  {
254
307
  "kind": "javascript-module",
255
308
  "path": "src/data/inMemoryDatabase.ts",
@@ -471,208 +524,6 @@
471
524
  }
472
525
  ]
473
526
  },
474
- {
475
- "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
- ],
552
- "exports": [
553
- {
554
- "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",
572
- "declaration": {
573
- "name": "getCurrentDesignSystemPrefix",
574
- "module": "src/design-system/design-system.ts"
575
- }
576
- }
577
- ]
578
- },
579
- {
580
- "kind": "javascript-module",
581
- "path": "src/design-system/editable-elements.ts",
582
- "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
- {
602
- "kind": "function",
603
- "name": "buildEditableElementSelector",
604
- "return": {
605
- "type": {
606
- "text": "string"
607
- }
608
- },
609
- "parameters": [
610
- {
611
- "name": "designSystems",
612
- "type": {
613
- "text": "readonly EditableDesignSystemPrefix[]"
614
- }
615
- },
616
- {
617
- "name": "customEditableSelectors",
618
- "default": "[]",
619
- "type": {
620
- "text": "readonly string[]"
621
- }
622
- }
623
- ]
624
- }
625
- ],
626
- "exports": [
627
- {
628
- "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": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./editable-elements"
672
- }
673
- }
674
- ]
675
- },
676
527
  {
677
528
  "kind": "javascript-module",
678
529
  "path": "src/encoding/index.ts",
@@ -1165,53 +1016,202 @@
1165
1016
  },
1166
1017
  {
1167
1018
  "kind": "javascript-module",
1168
- "path": "src/decorators/index.ts",
1169
- "declarations": [],
1019
+ "path": "src/design-system/design-system.ts",
1020
+ "declarations": [
1021
+ {
1022
+ "kind": "function",
1023
+ "name": "assureDesignSystem",
1024
+ "return": {
1025
+ "type": {
1026
+ "text": "DesignSystemModule"
1027
+ }
1028
+ },
1029
+ "parameters": [
1030
+ {
1031
+ "name": "module",
1032
+ "type": {
1033
+ "text": "DesignSystemModule"
1034
+ }
1035
+ }
1036
+ ],
1037
+ "description": "assureDesignSystem.",
1038
+ "privacy": "public"
1039
+ },
1040
+ {
1041
+ "kind": "function",
1042
+ "name": "getCurrentDesignSystem",
1043
+ "return": {
1044
+ "type": {
1045
+ "text": ""
1046
+ }
1047
+ },
1048
+ "parameters": [
1049
+ {
1050
+ "name": "element",
1051
+ "type": {
1052
+ "text": "HTMLElement"
1053
+ },
1054
+ "description": "The starting HTML element"
1055
+ },
1056
+ {
1057
+ "name": "fallbackPrefix",
1058
+ "type": {
1059
+ "text": "string"
1060
+ },
1061
+ "description": "The prefix to fallback to if the provider is not available"
1062
+ }
1063
+ ],
1064
+ "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.",
1065
+ "privacy": "public"
1066
+ },
1067
+ {
1068
+ "kind": "function",
1069
+ "name": "getCurrentDesignSystemPrefix",
1070
+ "return": {
1071
+ "type": {
1072
+ "text": ""
1073
+ }
1074
+ },
1075
+ "parameters": [
1076
+ {
1077
+ "name": "element",
1078
+ "type": {
1079
+ "text": "HTMLElement"
1080
+ },
1081
+ "description": "The starting HTML element"
1082
+ },
1083
+ {
1084
+ "name": "fallbackPrefix",
1085
+ "type": {
1086
+ "text": "string"
1087
+ },
1088
+ "description": "The prefix to fallback to if the provider is not available"
1089
+ }
1090
+ ],
1091
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1092
+ "privacy": "public"
1093
+ }
1094
+ ],
1170
1095
  "exports": [
1171
1096
  {
1172
1097
  "kind": "js",
1173
- "name": "*",
1098
+ "name": "assureDesignSystem",
1174
1099
  "declaration": {
1175
- "name": "*",
1176
- "package": "./renderOnChange"
1100
+ "name": "assureDesignSystem",
1101
+ "module": "src/design-system/design-system.ts"
1102
+ }
1103
+ },
1104
+ {
1105
+ "kind": "js",
1106
+ "name": "getCurrentDesignSystem",
1107
+ "declaration": {
1108
+ "name": "getCurrentDesignSystem",
1109
+ "module": "src/design-system/design-system.ts"
1110
+ }
1111
+ },
1112
+ {
1113
+ "kind": "js",
1114
+ "name": "getCurrentDesignSystemPrefix",
1115
+ "declaration": {
1116
+ "name": "getCurrentDesignSystemPrefix",
1117
+ "module": "src/design-system/design-system.ts"
1177
1118
  }
1178
1119
  }
1179
1120
  ]
1180
1121
  },
1181
1122
  {
1182
1123
  "kind": "javascript-module",
1183
- "path": "src/decorators/renderOnChange.ts",
1124
+ "path": "src/design-system/editable-elements.ts",
1184
1125
  "declarations": [
1126
+ {
1127
+ "kind": "variable",
1128
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1129
+ "type": {
1130
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
1131
+ },
1132
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
1133
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
1134
+ },
1135
+ {
1136
+ "kind": "variable",
1137
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1138
+ "type": {
1139
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
1140
+ },
1141
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
1142
+ "description": "Design-system specific editable host selectors."
1143
+ },
1185
1144
  {
1186
1145
  "kind": "function",
1187
- "name": "renderOnChange",
1146
+ "name": "buildEditableElementSelector",
1147
+ "return": {
1148
+ "type": {
1149
+ "text": "string"
1150
+ }
1151
+ },
1188
1152
  "parameters": [
1189
1153
  {
1190
- "name": "target",
1154
+ "name": "designSystems",
1191
1155
  "type": {
1192
- "text": "FASTElement & { render(): void }"
1193
- },
1194
- "description": "The target to define the property change handler on."
1156
+ "text": "readonly EditableDesignSystemPrefix[]"
1157
+ }
1195
1158
  },
1196
1159
  {
1197
- "name": "name",
1160
+ "name": "customEditableSelectors",
1161
+ "default": "[]",
1198
1162
  "type": {
1199
- "text": "string"
1200
- },
1201
- "description": "The property name."
1163
+ "text": "readonly string[]"
1164
+ }
1202
1165
  }
1203
- ],
1204
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
- "privacy": "public"
1166
+ ]
1206
1167
  }
1207
1168
  ],
1208
1169
  "exports": [
1209
1170
  {
1210
1171
  "kind": "js",
1211
- "name": "renderOnChange",
1172
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1212
1173
  "declaration": {
1213
- "name": "renderOnChange",
1214
- "module": "src/decorators/renderOnChange.ts"
1174
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1175
+ "module": "src/design-system/editable-elements.ts"
1176
+ }
1177
+ },
1178
+ {
1179
+ "kind": "js",
1180
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1181
+ "declaration": {
1182
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1183
+ "module": "src/design-system/editable-elements.ts"
1184
+ }
1185
+ },
1186
+ {
1187
+ "kind": "js",
1188
+ "name": "buildEditableElementSelector",
1189
+ "declaration": {
1190
+ "name": "buildEditableElementSelector",
1191
+ "module": "src/design-system/editable-elements.ts"
1192
+ }
1193
+ }
1194
+ ]
1195
+ },
1196
+ {
1197
+ "kind": "javascript-module",
1198
+ "path": "src/design-system/index.ts",
1199
+ "declarations": [],
1200
+ "exports": [
1201
+ {
1202
+ "kind": "js",
1203
+ "name": "*",
1204
+ "declaration": {
1205
+ "name": "*",
1206
+ "package": "./design-system"
1207
+ }
1208
+ },
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "*",
1212
+ "declaration": {
1213
+ "name": "*",
1214
+ "package": "./editable-elements"
1215
1215
  }
1216
1216
  }
1217
1217
  ]
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.491.0-GENC-1390.1",
4
+ "version": "14.491.0-GENC-1390.2",
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.491.0-GENC-1390.1",
33
- "@genesislcap/genx": "14.491.0-GENC-1390.1",
34
- "@genesislcap/rollup-builder": "14.491.0-GENC-1390.1",
35
- "@genesislcap/ts-builder": "14.491.0-GENC-1390.1",
36
- "@genesislcap/uvu-playwright-builder": "14.491.0-GENC-1390.1",
37
- "@genesislcap/vite-builder": "14.491.0-GENC-1390.1",
38
- "@genesislcap/webpack-builder": "14.491.0-GENC-1390.1",
32
+ "@genesislcap/foundation-testing": "14.491.0-GENC-1390.2",
33
+ "@genesislcap/genx": "14.491.0-GENC-1390.2",
34
+ "@genesislcap/rollup-builder": "14.491.0-GENC-1390.2",
35
+ "@genesislcap/ts-builder": "14.491.0-GENC-1390.2",
36
+ "@genesislcap/uvu-playwright-builder": "14.491.0-GENC-1390.2",
37
+ "@genesislcap/vite-builder": "14.491.0-GENC-1390.2",
38
+ "@genesislcap/webpack-builder": "14.491.0-GENC-1390.2",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.491.0-GENC-1390.1",
43
- "@genesislcap/foundation-logger": "14.491.0-GENC-1390.1",
42
+ "@genesislcap/expression-builder": "14.491.0-GENC-1390.2",
43
+ "@genesislcap/foundation-logger": "14.491.0-GENC-1390.2",
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": "ed95a678a68288884d53b845318ddfc2f433b823"
61
+ "gitHead": "468dcc760d84cfe7ab465b4a6ee0d40c774788aa"
62
62
  }