@genesislcap/foundation-utils 14.430.1 → 14.430.2-FUI-2528.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 +279 -279
  2. package/package.json +11 -11
@@ -209,245 +209,6 @@
209
209
  }
210
210
  ]
211
211
  },
212
- {
213
- "kind": "javascript-module",
214
- "path": "src/data/inMemoryDatabase.ts",
215
- "declarations": [
216
- {
217
- "kind": "class",
218
- "description": "An in memory database of specific DatabaseRecord types.",
219
- "name": "InMemoryDatabase",
220
- "members": [
221
- {
222
- "kind": "field",
223
- "name": "isWorking",
224
- "type": {
225
- "text": "boolean"
226
- },
227
- "privacy": "public",
228
- "default": "false"
229
- },
230
- {
231
- "kind": "field",
232
- "name": "records",
233
- "type": {
234
- "text": "Record<string, T>"
235
- },
236
- "privacy": "private",
237
- "default": "{}"
238
- },
239
- {
240
- "kind": "field",
241
- "name": "beforeUpdateListeners",
242
- "privacy": "private"
243
- },
244
- {
245
- "kind": "field",
246
- "name": "afterUpdateListeners",
247
- "privacy": "private"
248
- },
249
- {
250
- "kind": "method",
251
- "name": "create",
252
- "privacy": "public",
253
- "return": {
254
- "type": {
255
- "text": "Promise<DatabaseAccessResult.Create<T>>"
256
- }
257
- },
258
- "parameters": [
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<T, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "read",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Read<T>>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "update",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<DatabaseAccessResult.Update<T>>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "id",
297
- "type": {
298
- "text": "string"
299
- }
300
- },
301
- {
302
- "name": "newValue",
303
- "type": {
304
- "text": "Omit<Partial<T>, 'id'>"
305
- }
306
- }
307
- ]
308
- },
309
- {
310
- "kind": "method",
311
- "name": "delete",
312
- "privacy": "public",
313
- "return": {
314
- "type": {
315
- "text": "Promise<DatabaseAccessResult.Delete>"
316
- }
317
- },
318
- "parameters": [
319
- {
320
- "name": "id",
321
- "type": {
322
- "text": "string"
323
- }
324
- }
325
- ]
326
- },
327
- {
328
- "kind": "method",
329
- "name": "visit",
330
- "privacy": "public",
331
- "return": {
332
- "type": {
333
- "text": "Promise<void>"
334
- }
335
- },
336
- "parameters": [
337
- {
338
- "name": "visitor",
339
- "type": {
340
- "text": "(record: T) => void"
341
- }
342
- }
343
- ]
344
- },
345
- {
346
- "kind": "method",
347
- "name": "onBeforeUpdate",
348
- "privacy": "public",
349
- "return": {
350
- "type": {
351
- "text": "() => void"
352
- }
353
- },
354
- "parameters": [
355
- {
356
- "name": "listener",
357
- "type": {
358
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
359
- }
360
- }
361
- ]
362
- },
363
- {
364
- "kind": "method",
365
- "name": "onAfterUpdate",
366
- "privacy": "public",
367
- "return": {
368
- "type": {
369
- "text": "() => void"
370
- }
371
- },
372
- "parameters": [
373
- {
374
- "name": "listener",
375
- "type": {
376
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
377
- }
378
- }
379
- ]
380
- }
381
- ]
382
- }
383
- ],
384
- "exports": [
385
- {
386
- "kind": "js",
387
- "name": "InMemoryDatabase",
388
- "declaration": {
389
- "name": "InMemoryDatabase",
390
- "module": "src/data/inMemoryDatabase.ts"
391
- }
392
- }
393
- ]
394
- },
395
- {
396
- "kind": "javascript-module",
397
- "path": "src/data/index.ts",
398
- "declarations": [],
399
- "exports": [
400
- {
401
- "kind": "js",
402
- "name": "*",
403
- "declaration": {
404
- "name": "*",
405
- "package": "./inMemoryDatabase"
406
- }
407
- }
408
- ]
409
- },
410
- {
411
- "kind": "javascript-module",
412
- "path": "src/converters/index.ts",
413
- "declarations": [],
414
- "exports": [
415
- {
416
- "kind": "js",
417
- "name": "*",
418
- "declaration": {
419
- "name": "*",
420
- "package": "./string-array-converter"
421
- }
422
- }
423
- ]
424
- },
425
- {
426
- "kind": "javascript-module",
427
- "path": "src/converters/string-array-converter.ts",
428
- "declarations": [
429
- {
430
- "kind": "variable",
431
- "name": "stringArrayConverter",
432
- "type": {
433
- "text": "ValueConverter"
434
- },
435
- "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}",
436
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
437
- "privacy": "public"
438
- }
439
- ],
440
- "exports": [
441
- {
442
- "kind": "js",
443
- "name": "stringArrayConverter",
444
- "declaration": {
445
- "name": "stringArrayConverter",
446
- "module": "src/converters/string-array-converter.ts"
447
- }
448
- }
449
- ]
450
- },
451
212
  {
452
213
  "kind": "javascript-module",
453
214
  "path": "src/design-system/design-system.ts",
@@ -652,7 +413,7 @@
652
413
  },
653
414
  {
654
415
  "kind": "javascript-module",
655
- "path": "src/decorators/index.ts",
416
+ "path": "src/converters/index.ts",
656
417
  "declarations": [],
657
418
  "exports": [
658
419
  {
@@ -660,45 +421,33 @@
660
421
  "name": "*",
661
422
  "declaration": {
662
423
  "name": "*",
663
- "package": "./renderOnChange"
424
+ "package": "./string-array-converter"
664
425
  }
665
426
  }
666
427
  ]
667
428
  },
668
429
  {
669
430
  "kind": "javascript-module",
670
- "path": "src/decorators/renderOnChange.ts",
431
+ "path": "src/converters/string-array-converter.ts",
671
432
  "declarations": [
672
433
  {
673
- "kind": "function",
674
- "name": "renderOnChange",
675
- "parameters": [
676
- {
677
- "name": "target",
678
- "type": {
679
- "text": "FASTElement & { render(): void }"
680
- },
681
- "description": "The target to define the property change handler on."
682
- },
683
- {
684
- "name": "name",
685
- "type": {
686
- "text": "string"
687
- },
688
- "description": "The property name."
689
- }
690
- ],
691
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
434
+ "kind": "variable",
435
+ "name": "stringArrayConverter",
436
+ "type": {
437
+ "text": "ValueConverter"
438
+ },
439
+ "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}",
440
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
692
441
  "privacy": "public"
693
442
  }
694
443
  ],
695
444
  "exports": [
696
445
  {
697
446
  "kind": "js",
698
- "name": "renderOnChange",
447
+ "name": "stringArrayConverter",
699
448
  "declaration": {
700
- "name": "renderOnChange",
701
- "module": "src/decorators/renderOnChange.ts"
449
+ "name": "stringArrayConverter",
450
+ "module": "src/converters/string-array-converter.ts"
702
451
  }
703
452
  }
704
453
  ]
@@ -726,21 +475,6 @@
726
475
  }
727
476
  ]
728
477
  },
729
- {
730
- "kind": "javascript-module",
731
- "path": "src/encoding/index.ts",
732
- "declarations": [],
733
- "exports": [
734
- {
735
- "kind": "js",
736
- "name": "*",
737
- "declaration": {
738
- "name": "*",
739
- "package": "./base64"
740
- }
741
- }
742
- ]
743
- },
744
478
  {
745
479
  "kind": "javascript-module",
746
480
  "path": "src/env/index.ts",
@@ -1216,6 +950,272 @@
1216
950
  }
1217
951
  ]
1218
952
  },
953
+ {
954
+ "kind": "javascript-module",
955
+ "path": "src/encoding/index.ts",
956
+ "declarations": [],
957
+ "exports": [
958
+ {
959
+ "kind": "js",
960
+ "name": "*",
961
+ "declaration": {
962
+ "name": "*",
963
+ "package": "./base64"
964
+ }
965
+ }
966
+ ]
967
+ },
968
+ {
969
+ "kind": "javascript-module",
970
+ "path": "src/decorators/index.ts",
971
+ "declarations": [],
972
+ "exports": [
973
+ {
974
+ "kind": "js",
975
+ "name": "*",
976
+ "declaration": {
977
+ "name": "*",
978
+ "package": "./renderOnChange"
979
+ }
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "kind": "javascript-module",
985
+ "path": "src/decorators/renderOnChange.ts",
986
+ "declarations": [
987
+ {
988
+ "kind": "function",
989
+ "name": "renderOnChange",
990
+ "parameters": [
991
+ {
992
+ "name": "target",
993
+ "type": {
994
+ "text": "FASTElement & { render(): void }"
995
+ },
996
+ "description": "The target to define the property change handler on."
997
+ },
998
+ {
999
+ "name": "name",
1000
+ "type": {
1001
+ "text": "string"
1002
+ },
1003
+ "description": "The property name."
1004
+ }
1005
+ ],
1006
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1007
+ "privacy": "public"
1008
+ }
1009
+ ],
1010
+ "exports": [
1011
+ {
1012
+ "kind": "js",
1013
+ "name": "renderOnChange",
1014
+ "declaration": {
1015
+ "name": "renderOnChange",
1016
+ "module": "src/decorators/renderOnChange.ts"
1017
+ }
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "kind": "javascript-module",
1023
+ "path": "src/data/inMemoryDatabase.ts",
1024
+ "declarations": [
1025
+ {
1026
+ "kind": "class",
1027
+ "description": "An in memory database of specific DatabaseRecord types.",
1028
+ "name": "InMemoryDatabase",
1029
+ "members": [
1030
+ {
1031
+ "kind": "field",
1032
+ "name": "isWorking",
1033
+ "type": {
1034
+ "text": "boolean"
1035
+ },
1036
+ "privacy": "public",
1037
+ "default": "false"
1038
+ },
1039
+ {
1040
+ "kind": "field",
1041
+ "name": "records",
1042
+ "type": {
1043
+ "text": "Record<string, T>"
1044
+ },
1045
+ "privacy": "private",
1046
+ "default": "{}"
1047
+ },
1048
+ {
1049
+ "kind": "field",
1050
+ "name": "beforeUpdateListeners",
1051
+ "privacy": "private"
1052
+ },
1053
+ {
1054
+ "kind": "field",
1055
+ "name": "afterUpdateListeners",
1056
+ "privacy": "private"
1057
+ },
1058
+ {
1059
+ "kind": "method",
1060
+ "name": "create",
1061
+ "privacy": "public",
1062
+ "return": {
1063
+ "type": {
1064
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1065
+ }
1066
+ },
1067
+ "parameters": [
1068
+ {
1069
+ "name": "newValue",
1070
+ "type": {
1071
+ "text": "Omit<T, 'id'>"
1072
+ }
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "kind": "method",
1078
+ "name": "read",
1079
+ "privacy": "public",
1080
+ "return": {
1081
+ "type": {
1082
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1083
+ }
1084
+ },
1085
+ "parameters": [
1086
+ {
1087
+ "name": "id",
1088
+ "type": {
1089
+ "text": "string"
1090
+ }
1091
+ }
1092
+ ]
1093
+ },
1094
+ {
1095
+ "kind": "method",
1096
+ "name": "update",
1097
+ "privacy": "public",
1098
+ "return": {
1099
+ "type": {
1100
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1101
+ }
1102
+ },
1103
+ "parameters": [
1104
+ {
1105
+ "name": "id",
1106
+ "type": {
1107
+ "text": "string"
1108
+ }
1109
+ },
1110
+ {
1111
+ "name": "newValue",
1112
+ "type": {
1113
+ "text": "Omit<Partial<T>, 'id'>"
1114
+ }
1115
+ }
1116
+ ]
1117
+ },
1118
+ {
1119
+ "kind": "method",
1120
+ "name": "delete",
1121
+ "privacy": "public",
1122
+ "return": {
1123
+ "type": {
1124
+ "text": "Promise<DatabaseAccessResult.Delete>"
1125
+ }
1126
+ },
1127
+ "parameters": [
1128
+ {
1129
+ "name": "id",
1130
+ "type": {
1131
+ "text": "string"
1132
+ }
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ "kind": "method",
1138
+ "name": "visit",
1139
+ "privacy": "public",
1140
+ "return": {
1141
+ "type": {
1142
+ "text": "Promise<void>"
1143
+ }
1144
+ },
1145
+ "parameters": [
1146
+ {
1147
+ "name": "visitor",
1148
+ "type": {
1149
+ "text": "(record: T) => void"
1150
+ }
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "onBeforeUpdate",
1157
+ "privacy": "public",
1158
+ "return": {
1159
+ "type": {
1160
+ "text": "() => void"
1161
+ }
1162
+ },
1163
+ "parameters": [
1164
+ {
1165
+ "name": "listener",
1166
+ "type": {
1167
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1168
+ }
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "kind": "method",
1174
+ "name": "onAfterUpdate",
1175
+ "privacy": "public",
1176
+ "return": {
1177
+ "type": {
1178
+ "text": "() => void"
1179
+ }
1180
+ },
1181
+ "parameters": [
1182
+ {
1183
+ "name": "listener",
1184
+ "type": {
1185
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1186
+ }
1187
+ }
1188
+ ]
1189
+ }
1190
+ ]
1191
+ }
1192
+ ],
1193
+ "exports": [
1194
+ {
1195
+ "kind": "js",
1196
+ "name": "InMemoryDatabase",
1197
+ "declaration": {
1198
+ "name": "InMemoryDatabase",
1199
+ "module": "src/data/inMemoryDatabase.ts"
1200
+ }
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "kind": "javascript-module",
1206
+ "path": "src/data/index.ts",
1207
+ "declarations": [],
1208
+ "exports": [
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "*",
1212
+ "declaration": {
1213
+ "name": "*",
1214
+ "package": "./inMemoryDatabase"
1215
+ }
1216
+ }
1217
+ ]
1218
+ },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "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": "14.430.1",
4
+ "version": "14.430.2-FUI-2528.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.430.1",
33
- "@genesislcap/genx": "14.430.1",
34
- "@genesislcap/rollup-builder": "14.430.1",
35
- "@genesislcap/ts-builder": "14.430.1",
36
- "@genesislcap/uvu-playwright-builder": "14.430.1",
37
- "@genesislcap/vite-builder": "14.430.1",
38
- "@genesislcap/webpack-builder": "14.430.1",
32
+ "@genesislcap/foundation-testing": "14.430.2-FUI-2528.1",
33
+ "@genesislcap/genx": "14.430.2-FUI-2528.1",
34
+ "@genesislcap/rollup-builder": "14.430.2-FUI-2528.1",
35
+ "@genesislcap/ts-builder": "14.430.2-FUI-2528.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.430.2-FUI-2528.1",
37
+ "@genesislcap/vite-builder": "14.430.2-FUI-2528.1",
38
+ "@genesislcap/webpack-builder": "14.430.2-FUI-2528.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.430.1",
43
- "@genesislcap/foundation-logger": "14.430.1",
42
+ "@genesislcap/expression-builder": "14.430.2-FUI-2528.1",
43
+ "@genesislcap/foundation-logger": "14.430.2-FUI-2528.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": "6eb4026225087b765f5363f7233d3450af040900"
61
+ "gitHead": "18300a1ebbeea085635bc379fd89b4894e1870a9"
62
62
  }