@genesislcap/foundation-utils 14.405.0 → 14.406.0-workspaces.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.
@@ -7,6 +7,14 @@
7
7
  "path": "src/index.ts",
8
8
  "declarations": [],
9
9
  "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "package": "./converters"
16
+ }
17
+ },
10
18
  {
11
19
  "kind": "js",
12
20
  "name": "*",
@@ -198,195 +206,125 @@
198
206
  "name": "*",
199
207
  "package": "./inactivity"
200
208
  }
209
+ },
210
+ {
211
+ "kind": "js",
212
+ "name": "*",
213
+ "declaration": {
214
+ "name": "*",
215
+ "package": "./workspace"
216
+ }
201
217
  }
202
218
  ]
203
219
  },
204
220
  {
205
221
  "kind": "javascript-module",
206
- "path": "src/data/inMemoryDatabase.ts",
222
+ "path": "src/design-system/design-system.ts",
207
223
  "declarations": [
208
224
  {
209
- "kind": "class",
210
- "description": "An in memory database of specific DatabaseRecord types.",
211
- "name": "InMemoryDatabase",
212
- "members": [
225
+ "kind": "function",
226
+ "name": "assureDesignSystem",
227
+ "return": {
228
+ "type": {
229
+ "text": "DesignSystemModule"
230
+ }
231
+ },
232
+ "parameters": [
213
233
  {
214
- "kind": "field",
215
- "name": "isWorking",
234
+ "name": "module",
216
235
  "type": {
217
- "text": "boolean"
218
- },
219
- "privacy": "public",
220
- "default": "false"
221
- },
236
+ "text": "DesignSystemModule"
237
+ }
238
+ }
239
+ ],
240
+ "description": "assureDesignSystem.",
241
+ "privacy": "public"
242
+ },
243
+ {
244
+ "kind": "function",
245
+ "name": "getCurrentDesignSystem",
246
+ "return": {
247
+ "type": {
248
+ "text": ""
249
+ }
250
+ },
251
+ "parameters": [
222
252
  {
223
- "kind": "field",
224
- "name": "records",
253
+ "name": "element",
225
254
  "type": {
226
- "text": "Record<string, T>"
227
- },
228
- "privacy": "private",
229
- "default": "{}"
230
- },
231
- {
232
- "kind": "field",
233
- "name": "beforeUpdateListeners",
234
- "privacy": "private"
235
- },
236
- {
237
- "kind": "field",
238
- "name": "afterUpdateListeners",
239
- "privacy": "private"
240
- },
241
- {
242
- "kind": "method",
243
- "name": "create",
244
- "privacy": "public",
245
- "return": {
246
- "type": {
247
- "text": "Promise<DatabaseAccessResult.Create<T>>"
248
- }
249
- },
250
- "parameters": [
251
- {
252
- "name": "newValue",
253
- "type": {
254
- "text": "Omit<T, 'id'>"
255
- }
256
- }
257
- ]
258
- },
259
- {
260
- "kind": "method",
261
- "name": "read",
262
- "privacy": "public",
263
- "return": {
264
- "type": {
265
- "text": "Promise<DatabaseAccessResult.Read<T>>"
266
- }
267
- },
268
- "parameters": [
269
- {
270
- "name": "id",
271
- "type": {
272
- "text": "string"
273
- }
274
- }
275
- ]
276
- },
277
- {
278
- "kind": "method",
279
- "name": "update",
280
- "privacy": "public",
281
- "return": {
282
- "type": {
283
- "text": "Promise<DatabaseAccessResult.Update<T>>"
284
- }
285
- },
286
- "parameters": [
287
- {
288
- "name": "id",
289
- "type": {
290
- "text": "string"
291
- }
292
- },
293
- {
294
- "name": "newValue",
295
- "type": {
296
- "text": "Omit<Partial<T>, 'id'>"
297
- }
298
- }
299
- ]
300
- },
301
- {
302
- "kind": "method",
303
- "name": "delete",
304
- "privacy": "public",
305
- "return": {
306
- "type": {
307
- "text": "Promise<DatabaseAccessResult.Delete>"
308
- }
255
+ "text": "HTMLElement"
309
256
  },
310
- "parameters": [
311
- {
312
- "name": "id",
313
- "type": {
314
- "text": "string"
315
- }
316
- }
317
- ]
257
+ "description": "The starting HTML element"
318
258
  },
319
259
  {
320
- "kind": "method",
321
- "name": "visit",
322
- "privacy": "public",
323
- "return": {
324
- "type": {
325
- "text": "Promise<void>"
326
- }
260
+ "name": "fallbackPrefix",
261
+ "type": {
262
+ "text": "string"
327
263
  },
328
- "parameters": [
329
- {
330
- "name": "visitor",
331
- "type": {
332
- "text": "(record: T) => void"
333
- }
334
- }
335
- ]
336
- },
264
+ "description": "The prefix to fallback to if the provider is not available"
265
+ }
266
+ ],
267
+ "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.",
268
+ "privacy": "public"
269
+ },
270
+ {
271
+ "kind": "function",
272
+ "name": "getCurrentDesignSystemPrefix",
273
+ "return": {
274
+ "type": {
275
+ "text": ""
276
+ }
277
+ },
278
+ "parameters": [
337
279
  {
338
- "kind": "method",
339
- "name": "onBeforeUpdate",
340
- "privacy": "public",
341
- "return": {
342
- "type": {
343
- "text": "() => void"
344
- }
280
+ "name": "element",
281
+ "type": {
282
+ "text": "HTMLElement"
345
283
  },
346
- "parameters": [
347
- {
348
- "name": "listener",
349
- "type": {
350
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
351
- }
352
- }
353
- ]
284
+ "description": "The starting HTML element"
354
285
  },
355
286
  {
356
- "kind": "method",
357
- "name": "onAfterUpdate",
358
- "privacy": "public",
359
- "return": {
360
- "type": {
361
- "text": "() => void"
362
- }
287
+ "name": "fallbackPrefix",
288
+ "type": {
289
+ "text": "string"
363
290
  },
364
- "parameters": [
365
- {
366
- "name": "listener",
367
- "type": {
368
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
369
- }
370
- }
371
- ]
291
+ "description": "The prefix to fallback to if the provider is not available"
372
292
  }
373
- ]
293
+ ],
294
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
295
+ "privacy": "public"
374
296
  }
375
297
  ],
376
298
  "exports": [
377
299
  {
378
300
  "kind": "js",
379
- "name": "InMemoryDatabase",
301
+ "name": "assureDesignSystem",
380
302
  "declaration": {
381
- "name": "InMemoryDatabase",
382
- "module": "src/data/inMemoryDatabase.ts"
303
+ "name": "assureDesignSystem",
304
+ "module": "src/design-system/design-system.ts"
305
+ }
306
+ },
307
+ {
308
+ "kind": "js",
309
+ "name": "getCurrentDesignSystem",
310
+ "declaration": {
311
+ "name": "getCurrentDesignSystem",
312
+ "module": "src/design-system/design-system.ts"
313
+ }
314
+ },
315
+ {
316
+ "kind": "js",
317
+ "name": "getCurrentDesignSystemPrefix",
318
+ "declaration": {
319
+ "name": "getCurrentDesignSystemPrefix",
320
+ "module": "src/design-system/design-system.ts"
383
321
  }
384
322
  }
385
323
  ]
386
324
  },
387
325
  {
388
326
  "kind": "javascript-module",
389
- "path": "src/data/index.ts",
327
+ "path": "src/design-system/index.ts",
390
328
  "declarations": [],
391
329
  "exports": [
392
330
  {
@@ -394,7 +332,7 @@
394
332
  "name": "*",
395
333
  "declaration": {
396
334
  "name": "*",
397
- "package": "./inMemoryDatabase"
335
+ "package": "./design-system"
398
336
  }
399
337
  }
400
338
  ]
@@ -437,59 +375,6 @@
437
375
  }
438
376
  ]
439
377
  },
440
- {
441
- "kind": "javascript-module",
442
- "path": "src/decorators/index.ts",
443
- "declarations": [],
444
- "exports": [
445
- {
446
- "kind": "js",
447
- "name": "*",
448
- "declaration": {
449
- "name": "*",
450
- "package": "./renderOnChange"
451
- }
452
- }
453
- ]
454
- },
455
- {
456
- "kind": "javascript-module",
457
- "path": "src/decorators/renderOnChange.ts",
458
- "declarations": [
459
- {
460
- "kind": "function",
461
- "name": "renderOnChange",
462
- "parameters": [
463
- {
464
- "name": "target",
465
- "type": {
466
- "text": "FASTElement & { render(): void }"
467
- },
468
- "description": "The target to define the property change handler on."
469
- },
470
- {
471
- "name": "name",
472
- "type": {
473
- "text": "string"
474
- },
475
- "description": "The property name."
476
- }
477
- ],
478
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
479
- "privacy": "public"
480
- }
481
- ],
482
- "exports": [
483
- {
484
- "kind": "js",
485
- "name": "renderOnChange",
486
- "declaration": {
487
- "name": "renderOnChange",
488
- "module": "src/decorators/renderOnChange.ts"
489
- }
490
- }
491
- ]
492
- },
493
378
  {
494
379
  "kind": "javascript-module",
495
380
  "path": "src/env/index.ts",
@@ -925,42 +810,334 @@
925
810
  },
926
811
  {
927
812
  "kind": "js",
928
- "name": "RESET_PASSWORD_URL",
813
+ "name": "RESET_PASSWORD_URL",
814
+ "declaration": {
815
+ "name": "RESET_PASSWORD_URL",
816
+ "module": "src/env/variables.ts"
817
+ }
818
+ },
819
+ {
820
+ "kind": "js",
821
+ "name": "SSO_LIST_URL",
822
+ "declaration": {
823
+ "name": "SSO_LIST_URL",
824
+ "module": "src/env/variables.ts"
825
+ }
826
+ },
827
+ {
828
+ "kind": "js",
829
+ "name": "SSO_LOGIN_URL",
830
+ "declaration": {
831
+ "name": "SSO_LOGIN_URL",
832
+ "module": "src/env/variables.ts"
833
+ }
834
+ },
835
+ {
836
+ "kind": "js",
837
+ "name": "ENVIRONMENT_LEVEL",
838
+ "declaration": {
839
+ "name": "ENVIRONMENT_LEVEL",
840
+ "module": "src/env/variables.ts"
841
+ }
842
+ },
843
+ {
844
+ "kind": "js",
845
+ "name": "ACCEPT_TERMS_URL",
846
+ "declaration": {
847
+ "name": "ACCEPT_TERMS_URL",
848
+ "module": "src/env/variables.ts"
849
+ }
850
+ }
851
+ ]
852
+ },
853
+ {
854
+ "kind": "javascript-module",
855
+ "path": "src/converters/index.ts",
856
+ "declarations": [],
857
+ "exports": [
858
+ {
859
+ "kind": "js",
860
+ "name": "*",
861
+ "declaration": {
862
+ "name": "*",
863
+ "package": "./string-array-converter"
864
+ }
865
+ }
866
+ ]
867
+ },
868
+ {
869
+ "kind": "javascript-module",
870
+ "path": "src/converters/string-array-converter.ts",
871
+ "declarations": [
872
+ {
873
+ "kind": "variable",
874
+ "name": "stringArrayConverter",
875
+ "type": {
876
+ "text": "ValueConverter"
877
+ },
878
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
879
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
880
+ "privacy": "public"
881
+ }
882
+ ],
883
+ "exports": [
884
+ {
885
+ "kind": "js",
886
+ "name": "stringArrayConverter",
887
+ "declaration": {
888
+ "name": "stringArrayConverter",
889
+ "module": "src/converters/string-array-converter.ts"
890
+ }
891
+ }
892
+ ]
893
+ },
894
+ {
895
+ "kind": "javascript-module",
896
+ "path": "src/data/inMemoryDatabase.ts",
897
+ "declarations": [
898
+ {
899
+ "kind": "class",
900
+ "description": "An in memory database of specific DatabaseRecord types.",
901
+ "name": "InMemoryDatabase",
902
+ "members": [
903
+ {
904
+ "kind": "field",
905
+ "name": "isWorking",
906
+ "type": {
907
+ "text": "boolean"
908
+ },
909
+ "privacy": "public",
910
+ "default": "false"
911
+ },
912
+ {
913
+ "kind": "field",
914
+ "name": "records",
915
+ "type": {
916
+ "text": "Record<string, T>"
917
+ },
918
+ "privacy": "private",
919
+ "default": "{}"
920
+ },
921
+ {
922
+ "kind": "field",
923
+ "name": "beforeUpdateListeners",
924
+ "privacy": "private"
925
+ },
926
+ {
927
+ "kind": "field",
928
+ "name": "afterUpdateListeners",
929
+ "privacy": "private"
930
+ },
931
+ {
932
+ "kind": "method",
933
+ "name": "create",
934
+ "privacy": "public",
935
+ "return": {
936
+ "type": {
937
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
938
+ }
939
+ },
940
+ "parameters": [
941
+ {
942
+ "name": "newValue",
943
+ "type": {
944
+ "text": "Omit<T, 'id'>"
945
+ }
946
+ }
947
+ ]
948
+ },
949
+ {
950
+ "kind": "method",
951
+ "name": "read",
952
+ "privacy": "public",
953
+ "return": {
954
+ "type": {
955
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
956
+ }
957
+ },
958
+ "parameters": [
959
+ {
960
+ "name": "id",
961
+ "type": {
962
+ "text": "string"
963
+ }
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ "kind": "method",
969
+ "name": "update",
970
+ "privacy": "public",
971
+ "return": {
972
+ "type": {
973
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
974
+ }
975
+ },
976
+ "parameters": [
977
+ {
978
+ "name": "id",
979
+ "type": {
980
+ "text": "string"
981
+ }
982
+ },
983
+ {
984
+ "name": "newValue",
985
+ "type": {
986
+ "text": "Omit<Partial<T>, 'id'>"
987
+ }
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ "kind": "method",
993
+ "name": "delete",
994
+ "privacy": "public",
995
+ "return": {
996
+ "type": {
997
+ "text": "Promise<DatabaseAccessResult.Delete>"
998
+ }
999
+ },
1000
+ "parameters": [
1001
+ {
1002
+ "name": "id",
1003
+ "type": {
1004
+ "text": "string"
1005
+ }
1006
+ }
1007
+ ]
1008
+ },
1009
+ {
1010
+ "kind": "method",
1011
+ "name": "visit",
1012
+ "privacy": "public",
1013
+ "return": {
1014
+ "type": {
1015
+ "text": "Promise<void>"
1016
+ }
1017
+ },
1018
+ "parameters": [
1019
+ {
1020
+ "name": "visitor",
1021
+ "type": {
1022
+ "text": "(record: T) => void"
1023
+ }
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "kind": "method",
1029
+ "name": "onBeforeUpdate",
1030
+ "privacy": "public",
1031
+ "return": {
1032
+ "type": {
1033
+ "text": "() => void"
1034
+ }
1035
+ },
1036
+ "parameters": [
1037
+ {
1038
+ "name": "listener",
1039
+ "type": {
1040
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1041
+ }
1042
+ }
1043
+ ]
1044
+ },
1045
+ {
1046
+ "kind": "method",
1047
+ "name": "onAfterUpdate",
1048
+ "privacy": "public",
1049
+ "return": {
1050
+ "type": {
1051
+ "text": "() => void"
1052
+ }
1053
+ },
1054
+ "parameters": [
1055
+ {
1056
+ "name": "listener",
1057
+ "type": {
1058
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1059
+ }
1060
+ }
1061
+ ]
1062
+ }
1063
+ ]
1064
+ }
1065
+ ],
1066
+ "exports": [
1067
+ {
1068
+ "kind": "js",
1069
+ "name": "InMemoryDatabase",
929
1070
  "declaration": {
930
- "name": "RESET_PASSWORD_URL",
931
- "module": "src/env/variables.ts"
1071
+ "name": "InMemoryDatabase",
1072
+ "module": "src/data/inMemoryDatabase.ts"
932
1073
  }
933
- },
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "kind": "javascript-module",
1079
+ "path": "src/data/index.ts",
1080
+ "declarations": [],
1081
+ "exports": [
934
1082
  {
935
1083
  "kind": "js",
936
- "name": "SSO_LIST_URL",
1084
+ "name": "*",
937
1085
  "declaration": {
938
- "name": "SSO_LIST_URL",
939
- "module": "src/env/variables.ts"
1086
+ "name": "*",
1087
+ "package": "./inMemoryDatabase"
940
1088
  }
941
- },
1089
+ }
1090
+ ]
1091
+ },
1092
+ {
1093
+ "kind": "javascript-module",
1094
+ "path": "src/decorators/index.ts",
1095
+ "declarations": [],
1096
+ "exports": [
942
1097
  {
943
1098
  "kind": "js",
944
- "name": "SSO_LOGIN_URL",
1099
+ "name": "*",
945
1100
  "declaration": {
946
- "name": "SSO_LOGIN_URL",
947
- "module": "src/env/variables.ts"
1101
+ "name": "*",
1102
+ "package": "./renderOnChange"
948
1103
  }
949
- },
1104
+ }
1105
+ ]
1106
+ },
1107
+ {
1108
+ "kind": "javascript-module",
1109
+ "path": "src/decorators/renderOnChange.ts",
1110
+ "declarations": [
950
1111
  {
951
- "kind": "js",
952
- "name": "ENVIRONMENT_LEVEL",
953
- "declaration": {
954
- "name": "ENVIRONMENT_LEVEL",
955
- "module": "src/env/variables.ts"
956
- }
957
- },
1112
+ "kind": "function",
1113
+ "name": "renderOnChange",
1114
+ "parameters": [
1115
+ {
1116
+ "name": "target",
1117
+ "type": {
1118
+ "text": "FASTElement & { render(): void }"
1119
+ },
1120
+ "description": "The target to define the property change handler on."
1121
+ },
1122
+ {
1123
+ "name": "name",
1124
+ "type": {
1125
+ "text": "string"
1126
+ },
1127
+ "description": "The property name."
1128
+ }
1129
+ ],
1130
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1131
+ "privacy": "public"
1132
+ }
1133
+ ],
1134
+ "exports": [
958
1135
  {
959
1136
  "kind": "js",
960
- "name": "ACCEPT_TERMS_URL",
1137
+ "name": "renderOnChange",
961
1138
  "declaration": {
962
- "name": "ACCEPT_TERMS_URL",
963
- "module": "src/env/variables.ts"
1139
+ "name": "renderOnChange",
1140
+ "module": "src/decorators/renderOnChange.ts"
964
1141
  }
965
1142
  }
966
1143
  ]
@@ -1164,126 +1341,6 @@
1164
1341
  }
1165
1342
  ]
1166
1343
  },
1167
- {
1168
- "kind": "javascript-module",
1169
- "path": "src/design-system/design-system.ts",
1170
- "declarations": [
1171
- {
1172
- "kind": "function",
1173
- "name": "assureDesignSystem",
1174
- "return": {
1175
- "type": {
1176
- "text": "DesignSystemModule"
1177
- }
1178
- },
1179
- "parameters": [
1180
- {
1181
- "name": "module",
1182
- "type": {
1183
- "text": "DesignSystemModule"
1184
- }
1185
- }
1186
- ],
1187
- "description": "assureDesignSystem.",
1188
- "privacy": "public"
1189
- },
1190
- {
1191
- "kind": "function",
1192
- "name": "getCurrentDesignSystem",
1193
- "return": {
1194
- "type": {
1195
- "text": ""
1196
- }
1197
- },
1198
- "parameters": [
1199
- {
1200
- "name": "element",
1201
- "type": {
1202
- "text": "HTMLElement"
1203
- },
1204
- "description": "The starting HTML element"
1205
- },
1206
- {
1207
- "name": "fallbackPrefix",
1208
- "type": {
1209
- "text": "string"
1210
- },
1211
- "description": "The prefix to fallback to if the provider is not available"
1212
- }
1213
- ],
1214
- "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.",
1215
- "privacy": "public"
1216
- },
1217
- {
1218
- "kind": "function",
1219
- "name": "getCurrentDesignSystemPrefix",
1220
- "return": {
1221
- "type": {
1222
- "text": ""
1223
- }
1224
- },
1225
- "parameters": [
1226
- {
1227
- "name": "element",
1228
- "type": {
1229
- "text": "HTMLElement"
1230
- },
1231
- "description": "The starting HTML element"
1232
- },
1233
- {
1234
- "name": "fallbackPrefix",
1235
- "type": {
1236
- "text": "string"
1237
- },
1238
- "description": "The prefix to fallback to if the provider is not available"
1239
- }
1240
- ],
1241
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1242
- "privacy": "public"
1243
- }
1244
- ],
1245
- "exports": [
1246
- {
1247
- "kind": "js",
1248
- "name": "assureDesignSystem",
1249
- "declaration": {
1250
- "name": "assureDesignSystem",
1251
- "module": "src/design-system/design-system.ts"
1252
- }
1253
- },
1254
- {
1255
- "kind": "js",
1256
- "name": "getCurrentDesignSystem",
1257
- "declaration": {
1258
- "name": "getCurrentDesignSystem",
1259
- "module": "src/design-system/design-system.ts"
1260
- }
1261
- },
1262
- {
1263
- "kind": "js",
1264
- "name": "getCurrentDesignSystemPrefix",
1265
- "declaration": {
1266
- "name": "getCurrentDesignSystemPrefix",
1267
- "module": "src/design-system/design-system.ts"
1268
- }
1269
- }
1270
- ]
1271
- },
1272
- {
1273
- "kind": "javascript-module",
1274
- "path": "src/design-system/index.ts",
1275
- "declarations": [],
1276
- "exports": [
1277
- {
1278
- "kind": "js",
1279
- "name": "*",
1280
- "declaration": {
1281
- "name": "*",
1282
- "package": "./design-system"
1283
- }
1284
- }
1285
- ]
1286
- },
1287
1344
  {
1288
1345
  "kind": "javascript-module",
1289
1346
  "path": "src/feature-flags/featureFlags.ts",
@@ -4259,6 +4316,12 @@
4259
4316
  }
4260
4317
  ]
4261
4318
  },
4319
+ {
4320
+ "kind": "javascript-module",
4321
+ "path": "src/workspace/index.ts",
4322
+ "declarations": [],
4323
+ "exports": []
4324
+ },
4262
4325
  {
4263
4326
  "kind": "javascript-module",
4264
4327
  "path": "src/directives/sync/index.ts",
@@ -0,0 +1,2 @@
1
+ export * from './string-array-converter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/converters/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ValueConverter } from '@microsoft/fast-element';
2
+ /**
3
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
4
+ * and `string | string[]` properties.
5
+ *
6
+ * @remarks
7
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
8
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
9
+ *
10
+ * @public
11
+ */
12
+ export declare const stringArrayConverter: ValueConverter;
13
+ //# sourceMappingURL=string-array-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-array-converter.d.ts","sourceRoot":"","sources":["../../../src/converters/string-array-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAUlC,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './converters';
1
2
  export * from './data';
2
3
  export * from './decorators';
3
4
  export * from './design-system';
@@ -22,4 +23,5 @@ export * from './utils';
22
23
  export * from './uuid';
23
24
  export * from './window';
24
25
  export * from './inactivity';
26
+ export * from './workspace';
25
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './string-array-converter';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
3
+ * and `string | string[]` properties.
4
+ *
5
+ * @remarks
6
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
7
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
8
+ *
9
+ * @public
10
+ */
11
+ export const stringArrayConverter = {
12
+ fromView(v) {
13
+ if (!(v === null || v === void 0 ? void 0 : v.trim()))
14
+ return undefined;
15
+ return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();
16
+ },
17
+ toView(v) {
18
+ if (typeof v === 'string')
19
+ return v;
20
+ if (Array.isArray(v))
21
+ return v.join(',');
22
+ return '';
23
+ },
24
+ };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './converters';
1
2
  export * from './data';
2
3
  export * from './decorators';
3
4
  export * from './design-system';
@@ -22,3 +23,4 @@ export * from './utils';
22
23
  export * from './uuid';
23
24
  export * from './window';
24
25
  export * from './inactivity';
26
+ export * from './workspace';
@@ -0,0 +1 @@
1
+ export {};
@@ -18938,6 +18938,30 @@
18938
18938
  "endIndex": 2
18939
18939
  }
18940
18940
  },
18941
+ {
18942
+ "kind": "Variable",
18943
+ "canonicalReference": "@genesislcap/foundation-utils!stringArrayConverter:var",
18944
+ "docComment": "/**\n * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes and `string | string[]` properties.\n *\n * @remarks\n *\n * - fromView: \"A,B,C\" → [\"A\",\"B\",\"C\"], \"A\" → \"A\", \"\" → undefined - toView: [\"A\",\"B\",\"C\"] → \"A,B,C\", \"A\" → \"A\", undefined → \"\"\n *\n * @public\n */\n",
18945
+ "excerptTokens": [
18946
+ {
18947
+ "kind": "Content",
18948
+ "text": "stringArrayConverter: "
18949
+ },
18950
+ {
18951
+ "kind": "Reference",
18952
+ "text": "ValueConverter",
18953
+ "canonicalReference": "@microsoft/fast-element!ValueConverter:interface"
18954
+ }
18955
+ ],
18956
+ "fileUrlPath": "src/converters/string-array-converter.ts",
18957
+ "isReadonly": true,
18958
+ "releaseTag": "Public",
18959
+ "name": "stringArrayConverter",
18960
+ "variableTypeTokenRange": {
18961
+ "startIndex": 1,
18962
+ "endIndex": 2
18963
+ }
18964
+ },
18941
18965
  {
18942
18966
  "kind": "TypeAlias",
18943
18967
  "canonicalReference": "@genesislcap/foundation-utils!Subscribe:type",
@@ -16,6 +16,7 @@ import { LogLevel } from '@genesislcap/foundation-logger';
16
16
  import { Observable } from 'rxjs';
17
17
  import { SyntheticViewTemplate } from '@microsoft/fast-element';
18
18
  import { Types } from '@genesislcap/expression-builder';
19
+ import type { ValueConverter } from '@microsoft/fast-element';
19
20
 
20
21
  /**
21
22
  * @public
@@ -2349,6 +2350,18 @@ export declare let SSO_LIST_URL: string;
2349
2350
  */
2350
2351
  export declare let SSO_LOGIN_URL: string;
2351
2352
 
2353
+ /**
2354
+ * A {@link @microsoft/fast-element#ValueConverter} that converts between comma-separated string attributes
2355
+ * and `string | string[]` properties.
2356
+ *
2357
+ * @remarks
2358
+ * - fromView: "A,B,C" → ["A","B","C"], "A" → "A", "" → undefined
2359
+ * - toView: ["A","B","C"] → "A,B,C", "A" → "A", undefined → ""
2360
+ *
2361
+ * @public
2362
+ */
2363
+ export declare const stringArrayConverter: ValueConverter;
2364
+
2352
2365
  /**
2353
2366
  * Subscribes a listener function to receive events of a specific type.
2354
2367
  * @returns An unsubscribe function.
@@ -1339,6 +1339,17 @@ The sub-path used for WebSocket connections when API\_HOST is not set
1339
1339
 
1340
1340
 
1341
1341
 
1342
+ </td></tr>
1343
+ <tr><td>
1344
+
1345
+ [stringArrayConverter](./foundation-utils.stringarrayconverter.md)
1346
+
1347
+
1348
+ </td><td>
1349
+
1350
+ A that converts between comma-separated string attributes and `string | string[]` properties.
1351
+
1352
+
1342
1353
  </td></tr>
1343
1354
  <tr><td>
1344
1355
 
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [stringArrayConverter](./foundation-utils.stringarrayconverter.md)
4
+
5
+ ## stringArrayConverter variable
6
+
7
+ A that converts between comma-separated string attributes and `string | string[]` properties.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stringArrayConverter: ValueConverter
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ - fromView: "A,B,C" → \["A","B","C"\], "A" → "A", "" → undefined - toView: \["A","B","C"\] → "A,B,C", "A" → "A", undefined → ""
18
+
@@ -22,6 +22,7 @@ import { LogLevel } from '@genesislcap/foundation-logger';
22
22
  import { Observable } from 'rxjs';
23
23
  import { SyntheticViewTemplate } from '@microsoft/fast-element';
24
24
  import { Types } from '@genesislcap/expression-builder';
25
+ import type { ValueConverter } from '@microsoft/fast-element';
25
26
 
26
27
  // @public (undocumented)
27
28
  export let ACCEPT_TERMS_URL: string;
@@ -1572,6 +1573,9 @@ export let SSO_LIST_URL: string;
1572
1573
  // @public (undocumented)
1573
1574
  export let SSO_LOGIN_URL: string;
1574
1575
 
1576
+ // @public
1577
+ export const stringArrayConverter: ValueConverter;
1578
+
1575
1579
  // @public
1576
1580
  export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
1577
1581
 
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.405.0",
4
+ "version": "14.406.0-workspaces.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": "14.405.0",
33
- "@genesislcap/genx": "14.405.0",
34
- "@genesislcap/rollup-builder": "14.405.0",
35
- "@genesislcap/ts-builder": "14.405.0",
36
- "@genesislcap/uvu-playwright-builder": "14.405.0",
37
- "@genesislcap/vite-builder": "14.405.0",
38
- "@genesislcap/webpack-builder": "14.405.0",
32
+ "@genesislcap/foundation-testing": "14.406.0-workspaces.1",
33
+ "@genesislcap/genx": "14.406.0-workspaces.1",
34
+ "@genesislcap/rollup-builder": "14.406.0-workspaces.1",
35
+ "@genesislcap/ts-builder": "14.406.0-workspaces.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.406.0-workspaces.1",
37
+ "@genesislcap/vite-builder": "14.406.0-workspaces.1",
38
+ "@genesislcap/webpack-builder": "14.406.0-workspaces.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.405.0",
43
- "@genesislcap/foundation-logger": "14.405.0",
42
+ "@genesislcap/expression-builder": "14.406.0-workspaces.1",
43
+ "@genesislcap/foundation-logger": "14.406.0-workspaces.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",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "90757d4adb4c7b20ee266e0add3126dd76cb6398"
61
+ "gitHead": "d85783a1758179d4516fef12808446f19b1719db"
62
62
  }