@genesislcap/foundation-utils 15.45.0 → 15.46.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.
- package/dist/custom-elements.json +191 -191
- package/package.json +9 -10
|
@@ -450,53 +450,202 @@
|
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
"kind": "javascript-module",
|
|
453
|
-
"path": "src/
|
|
454
|
-
"declarations": [
|
|
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
|
+
],
|
|
455
529
|
"exports": [
|
|
456
530
|
{
|
|
457
531
|
"kind": "js",
|
|
458
|
-
"name": "
|
|
532
|
+
"name": "assureDesignSystem",
|
|
459
533
|
"declaration": {
|
|
460
|
-
"name": "
|
|
461
|
-
"
|
|
534
|
+
"name": "assureDesignSystem",
|
|
535
|
+
"module": "src/design-system/design-system.ts"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"kind": "js",
|
|
540
|
+
"name": "getCurrentDesignSystem",
|
|
541
|
+
"declaration": {
|
|
542
|
+
"name": "getCurrentDesignSystem",
|
|
543
|
+
"module": "src/design-system/design-system.ts"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"kind": "js",
|
|
548
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
549
|
+
"declaration": {
|
|
550
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
551
|
+
"module": "src/design-system/design-system.ts"
|
|
462
552
|
}
|
|
463
553
|
}
|
|
464
554
|
]
|
|
465
555
|
},
|
|
466
556
|
{
|
|
467
557
|
"kind": "javascript-module",
|
|
468
|
-
"path": "src/
|
|
558
|
+
"path": "src/design-system/editable-elements.ts",
|
|
469
559
|
"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
|
+
},
|
|
470
578
|
{
|
|
471
579
|
"kind": "function",
|
|
472
|
-
"name": "
|
|
580
|
+
"name": "buildEditableElementSelector",
|
|
581
|
+
"return": {
|
|
582
|
+
"type": {
|
|
583
|
+
"text": "string"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
473
586
|
"parameters": [
|
|
474
587
|
{
|
|
475
|
-
"name": "
|
|
588
|
+
"name": "designSystems",
|
|
476
589
|
"type": {
|
|
477
|
-
"text": "
|
|
478
|
-
}
|
|
479
|
-
"description": "The target to define the property change handler on."
|
|
590
|
+
"text": "readonly EditableDesignSystemPrefix[]"
|
|
591
|
+
}
|
|
480
592
|
},
|
|
481
593
|
{
|
|
482
|
-
"name": "
|
|
594
|
+
"name": "customEditableSelectors",
|
|
595
|
+
"default": "[]",
|
|
483
596
|
"type": {
|
|
484
|
-
"text": "string"
|
|
485
|
-
}
|
|
486
|
-
"description": "The property name."
|
|
597
|
+
"text": "readonly string[]"
|
|
598
|
+
}
|
|
487
599
|
}
|
|
488
|
-
]
|
|
489
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
490
|
-
"privacy": "public"
|
|
600
|
+
]
|
|
491
601
|
}
|
|
492
602
|
],
|
|
493
603
|
"exports": [
|
|
494
604
|
{
|
|
495
605
|
"kind": "js",
|
|
496
|
-
"name": "
|
|
606
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
497
607
|
"declaration": {
|
|
498
|
-
"name": "
|
|
499
|
-
"module": "src/
|
|
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": "*",
|
|
646
|
+
"declaration": {
|
|
647
|
+
"name": "*",
|
|
648
|
+
"package": "./editable-elements"
|
|
500
649
|
}
|
|
501
650
|
}
|
|
502
651
|
]
|
|
@@ -1040,202 +1189,53 @@
|
|
|
1040
1189
|
},
|
|
1041
1190
|
{
|
|
1042
1191
|
"kind": "javascript-module",
|
|
1043
|
-
"path": "src/
|
|
1044
|
-
"declarations": [
|
|
1045
|
-
{
|
|
1046
|
-
"kind": "function",
|
|
1047
|
-
"name": "assureDesignSystem",
|
|
1048
|
-
"return": {
|
|
1049
|
-
"type": {
|
|
1050
|
-
"text": "DesignSystemModule"
|
|
1051
|
-
}
|
|
1052
|
-
},
|
|
1053
|
-
"parameters": [
|
|
1054
|
-
{
|
|
1055
|
-
"name": "module",
|
|
1056
|
-
"type": {
|
|
1057
|
-
"text": "DesignSystemModule"
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
],
|
|
1061
|
-
"description": "assureDesignSystem.",
|
|
1062
|
-
"privacy": "public"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"kind": "function",
|
|
1066
|
-
"name": "getCurrentDesignSystem",
|
|
1067
|
-
"return": {
|
|
1068
|
-
"type": {
|
|
1069
|
-
"text": ""
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
"parameters": [
|
|
1073
|
-
{
|
|
1074
|
-
"name": "element",
|
|
1075
|
-
"type": {
|
|
1076
|
-
"text": "HTMLElement"
|
|
1077
|
-
},
|
|
1078
|
-
"description": "The starting HTML element"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"name": "fallbackPrefix",
|
|
1082
|
-
"type": {
|
|
1083
|
-
"text": "string"
|
|
1084
|
-
},
|
|
1085
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
1086
|
-
}
|
|
1087
|
-
],
|
|
1088
|
-
"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.",
|
|
1089
|
-
"privacy": "public"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"kind": "function",
|
|
1093
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
1094
|
-
"return": {
|
|
1095
|
-
"type": {
|
|
1096
|
-
"text": ""
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
"parameters": [
|
|
1100
|
-
{
|
|
1101
|
-
"name": "element",
|
|
1102
|
-
"type": {
|
|
1103
|
-
"text": "HTMLElement"
|
|
1104
|
-
},
|
|
1105
|
-
"description": "The starting HTML element"
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
"name": "fallbackPrefix",
|
|
1109
|
-
"type": {
|
|
1110
|
-
"text": "string"
|
|
1111
|
-
},
|
|
1112
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
1116
|
-
"privacy": "public"
|
|
1117
|
-
}
|
|
1118
|
-
],
|
|
1192
|
+
"path": "src/decorators/index.ts",
|
|
1193
|
+
"declarations": [],
|
|
1119
1194
|
"exports": [
|
|
1120
1195
|
{
|
|
1121
1196
|
"kind": "js",
|
|
1122
|
-
"name": "
|
|
1123
|
-
"declaration": {
|
|
1124
|
-
"name": "assureDesignSystem",
|
|
1125
|
-
"module": "src/design-system/design-system.ts"
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
"kind": "js",
|
|
1130
|
-
"name": "getCurrentDesignSystem",
|
|
1131
|
-
"declaration": {
|
|
1132
|
-
"name": "getCurrentDesignSystem",
|
|
1133
|
-
"module": "src/design-system/design-system.ts"
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"kind": "js",
|
|
1138
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
1197
|
+
"name": "*",
|
|
1139
1198
|
"declaration": {
|
|
1140
|
-
"name": "
|
|
1141
|
-
"
|
|
1199
|
+
"name": "*",
|
|
1200
|
+
"package": "./renderOnChange"
|
|
1142
1201
|
}
|
|
1143
1202
|
}
|
|
1144
1203
|
]
|
|
1145
1204
|
},
|
|
1146
1205
|
{
|
|
1147
1206
|
"kind": "javascript-module",
|
|
1148
|
-
"path": "src/
|
|
1207
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
1149
1208
|
"declarations": [
|
|
1150
|
-
{
|
|
1151
|
-
"kind": "variable",
|
|
1152
|
-
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
1153
|
-
"type": {
|
|
1154
|
-
"text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
|
|
1155
|
-
},
|
|
1156
|
-
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
1157
|
-
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
"kind": "variable",
|
|
1161
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1162
|
-
"type": {
|
|
1163
|
-
"text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
|
|
1164
|
-
},
|
|
1165
|
-
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
1166
|
-
"description": "Design-system specific editable host selectors."
|
|
1167
|
-
},
|
|
1168
1209
|
{
|
|
1169
1210
|
"kind": "function",
|
|
1170
|
-
"name": "
|
|
1171
|
-
"return": {
|
|
1172
|
-
"type": {
|
|
1173
|
-
"text": "string"
|
|
1174
|
-
}
|
|
1175
|
-
},
|
|
1211
|
+
"name": "renderOnChange",
|
|
1176
1212
|
"parameters": [
|
|
1177
1213
|
{
|
|
1178
|
-
"name": "
|
|
1214
|
+
"name": "target",
|
|
1179
1215
|
"type": {
|
|
1180
|
-
"text": "
|
|
1181
|
-
}
|
|
1216
|
+
"text": "FASTElement & { render(): void }"
|
|
1217
|
+
},
|
|
1218
|
+
"description": "The target to define the property change handler on."
|
|
1182
1219
|
},
|
|
1183
1220
|
{
|
|
1184
|
-
"name": "
|
|
1185
|
-
"default": "[]",
|
|
1221
|
+
"name": "name",
|
|
1186
1222
|
"type": {
|
|
1187
|
-
"text": "
|
|
1188
|
-
}
|
|
1223
|
+
"text": "string"
|
|
1224
|
+
},
|
|
1225
|
+
"description": "The property name."
|
|
1189
1226
|
}
|
|
1190
|
-
]
|
|
1227
|
+
],
|
|
1228
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1229
|
+
"privacy": "public"
|
|
1191
1230
|
}
|
|
1192
1231
|
],
|
|
1193
1232
|
"exports": [
|
|
1194
1233
|
{
|
|
1195
1234
|
"kind": "js",
|
|
1196
|
-
"name": "
|
|
1197
|
-
"declaration": {
|
|
1198
|
-
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
1199
|
-
"module": "src/design-system/editable-elements.ts"
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"kind": "js",
|
|
1204
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1205
|
-
"declaration": {
|
|
1206
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1207
|
-
"module": "src/design-system/editable-elements.ts"
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"kind": "js",
|
|
1212
|
-
"name": "buildEditableElementSelector",
|
|
1213
|
-
"declaration": {
|
|
1214
|
-
"name": "buildEditableElementSelector",
|
|
1215
|
-
"module": "src/design-system/editable-elements.ts"
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
]
|
|
1219
|
-
},
|
|
1220
|
-
{
|
|
1221
|
-
"kind": "javascript-module",
|
|
1222
|
-
"path": "src/design-system/index.ts",
|
|
1223
|
-
"declarations": [],
|
|
1224
|
-
"exports": [
|
|
1225
|
-
{
|
|
1226
|
-
"kind": "js",
|
|
1227
|
-
"name": "*",
|
|
1228
|
-
"declaration": {
|
|
1229
|
-
"name": "*",
|
|
1230
|
-
"package": "./design-system"
|
|
1231
|
-
}
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
"kind": "js",
|
|
1235
|
-
"name": "*",
|
|
1235
|
+
"name": "renderOnChange",
|
|
1236
1236
|
"declaration": {
|
|
1237
|
-
"name": "
|
|
1238
|
-
"
|
|
1237
|
+
"name": "renderOnChange",
|
|
1238
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
]
|
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.
|
|
4
|
+
"version": "15.46.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -29,18 +29,17 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@genesislcap/foundation-testing": "15.
|
|
33
|
-
"@genesislcap/genx": "15.
|
|
34
|
-
"@genesislcap/
|
|
35
|
-
"@genesislcap/
|
|
36
|
-
"@genesislcap/
|
|
37
|
-
"@genesislcap/
|
|
38
|
-
"@genesislcap/webpack-builder": "15.45.0",
|
|
32
|
+
"@genesislcap/foundation-testing": "15.46.0",
|
|
33
|
+
"@genesislcap/genx": "15.46.0",
|
|
34
|
+
"@genesislcap/ts-builder": "15.46.0",
|
|
35
|
+
"@genesislcap/uvu-playwright-builder": "15.46.0",
|
|
36
|
+
"@genesislcap/vite-builder": "15.46.0",
|
|
37
|
+
"@genesislcap/webpack-builder": "15.46.0",
|
|
39
38
|
"@types/json-schema": "^7.0.11"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "15.
|
|
43
|
-
"@genesislcap/foundation-logger": "15.
|
|
41
|
+
"@genesislcap/expression-builder": "15.46.0",
|
|
42
|
+
"@genesislcap/foundation-logger": "15.46.0",
|
|
44
43
|
"@microsoft/fast-components": "2.30.6",
|
|
45
44
|
"@microsoft/fast-element": "1.14.0",
|
|
46
45
|
"@microsoft/fast-foundation": "2.50.0",
|