@genesislcap/foundation-utils 14.409.0 → 14.410.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +265 -265
  2. package/package.json +11 -11
@@ -209,6 +209,245 @@
209
209
  }
210
210
  ]
211
211
  },
212
+ {
213
+ "kind": "javascript-module",
214
+ "path": "src/converters/index.ts",
215
+ "declarations": [],
216
+ "exports": [
217
+ {
218
+ "kind": "js",
219
+ "name": "*",
220
+ "declaration": {
221
+ "name": "*",
222
+ "package": "./string-array-converter"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "javascript-module",
229
+ "path": "src/converters/string-array-converter.ts",
230
+ "declarations": [
231
+ {
232
+ "kind": "variable",
233
+ "name": "stringArrayConverter",
234
+ "type": {
235
+ "text": "ValueConverter"
236
+ },
237
+ "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}",
238
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
239
+ "privacy": "public"
240
+ }
241
+ ],
242
+ "exports": [
243
+ {
244
+ "kind": "js",
245
+ "name": "stringArrayConverter",
246
+ "declaration": {
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
249
+ }
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "kind": "javascript-module",
255
+ "path": "src/data/inMemoryDatabase.ts",
256
+ "declarations": [
257
+ {
258
+ "kind": "class",
259
+ "description": "An in memory database of specific DatabaseRecord types.",
260
+ "name": "InMemoryDatabase",
261
+ "members": [
262
+ {
263
+ "kind": "field",
264
+ "name": "isWorking",
265
+ "type": {
266
+ "text": "boolean"
267
+ },
268
+ "privacy": "public",
269
+ "default": "false"
270
+ },
271
+ {
272
+ "kind": "field",
273
+ "name": "records",
274
+ "type": {
275
+ "text": "Record<string, T>"
276
+ },
277
+ "privacy": "private",
278
+ "default": "{}"
279
+ },
280
+ {
281
+ "kind": "field",
282
+ "name": "beforeUpdateListeners",
283
+ "privacy": "private"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "afterUpdateListeners",
288
+ "privacy": "private"
289
+ },
290
+ {
291
+ "kind": "method",
292
+ "name": "create",
293
+ "privacy": "public",
294
+ "return": {
295
+ "type": {
296
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
297
+ }
298
+ },
299
+ "parameters": [
300
+ {
301
+ "name": "newValue",
302
+ "type": {
303
+ "text": "Omit<T, 'id'>"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "read",
311
+ "privacy": "public",
312
+ "return": {
313
+ "type": {
314
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
315
+ }
316
+ },
317
+ "parameters": [
318
+ {
319
+ "name": "id",
320
+ "type": {
321
+ "text": "string"
322
+ }
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "kind": "method",
328
+ "name": "update",
329
+ "privacy": "public",
330
+ "return": {
331
+ "type": {
332
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
333
+ }
334
+ },
335
+ "parameters": [
336
+ {
337
+ "name": "id",
338
+ "type": {
339
+ "text": "string"
340
+ }
341
+ },
342
+ {
343
+ "name": "newValue",
344
+ "type": {
345
+ "text": "Omit<Partial<T>, 'id'>"
346
+ }
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "kind": "method",
352
+ "name": "delete",
353
+ "privacy": "public",
354
+ "return": {
355
+ "type": {
356
+ "text": "Promise<DatabaseAccessResult.Delete>"
357
+ }
358
+ },
359
+ "parameters": [
360
+ {
361
+ "name": "id",
362
+ "type": {
363
+ "text": "string"
364
+ }
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "kind": "method",
370
+ "name": "visit",
371
+ "privacy": "public",
372
+ "return": {
373
+ "type": {
374
+ "text": "Promise<void>"
375
+ }
376
+ },
377
+ "parameters": [
378
+ {
379
+ "name": "visitor",
380
+ "type": {
381
+ "text": "(record: T) => void"
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "kind": "method",
388
+ "name": "onBeforeUpdate",
389
+ "privacy": "public",
390
+ "return": {
391
+ "type": {
392
+ "text": "() => void"
393
+ }
394
+ },
395
+ "parameters": [
396
+ {
397
+ "name": "listener",
398
+ "type": {
399
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
+ }
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "kind": "method",
406
+ "name": "onAfterUpdate",
407
+ "privacy": "public",
408
+ "return": {
409
+ "type": {
410
+ "text": "() => void"
411
+ }
412
+ },
413
+ "parameters": [
414
+ {
415
+ "name": "listener",
416
+ "type": {
417
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
+ }
419
+ }
420
+ ]
421
+ }
422
+ ]
423
+ }
424
+ ],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "InMemoryDatabase",
429
+ "declaration": {
430
+ "name": "InMemoryDatabase",
431
+ "module": "src/data/inMemoryDatabase.ts"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/index.ts",
439
+ "declarations": [],
440
+ "exports": [
441
+ {
442
+ "kind": "js",
443
+ "name": "*",
444
+ "declaration": {
445
+ "name": "*",
446
+ "package": "./inMemoryDatabase"
447
+ }
448
+ }
449
+ ]
450
+ },
212
451
  {
213
452
  "kind": "javascript-module",
214
453
  "path": "src/design-system/design-system.ts",
@@ -329,29 +568,6 @@
329
568
  }
330
569
  ]
331
570
  },
332
- {
333
- "kind": "javascript-module",
334
- "path": "src/directives/index.ts",
335
- "declarations": [],
336
- "exports": [
337
- {
338
- "kind": "js",
339
- "name": "*",
340
- "declaration": {
341
- "name": "*",
342
- "package": "./sync"
343
- }
344
- },
345
- {
346
- "kind": "js",
347
- "name": "*",
348
- "declaration": {
349
- "name": "*",
350
- "package": "./when-else"
351
- }
352
- }
353
- ]
354
- },
355
571
  {
356
572
  "kind": "javascript-module",
357
573
  "path": "src/decorators/index.ts",
@@ -397,10 +613,33 @@
397
613
  "exports": [
398
614
  {
399
615
  "kind": "js",
400
- "name": "renderOnChange",
616
+ "name": "renderOnChange",
617
+ "declaration": {
618
+ "name": "renderOnChange",
619
+ "module": "src/decorators/renderOnChange.ts"
620
+ }
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "kind": "javascript-module",
626
+ "path": "src/directives/index.ts",
627
+ "declarations": [],
628
+ "exports": [
629
+ {
630
+ "kind": "js",
631
+ "name": "*",
401
632
  "declaration": {
402
- "name": "renderOnChange",
403
- "module": "src/decorators/renderOnChange.ts"
633
+ "name": "*",
634
+ "package": "./sync"
635
+ }
636
+ },
637
+ {
638
+ "kind": "js",
639
+ "name": "*",
640
+ "declaration": {
641
+ "name": "*",
642
+ "package": "./when-else"
404
643
  }
405
644
  }
406
645
  ]
@@ -895,245 +1134,6 @@
895
1134
  }
896
1135
  ]
897
1136
  },
898
- {
899
- "kind": "javascript-module",
900
- "path": "src/data/inMemoryDatabase.ts",
901
- "declarations": [
902
- {
903
- "kind": "class",
904
- "description": "An in memory database of specific DatabaseRecord types.",
905
- "name": "InMemoryDatabase",
906
- "members": [
907
- {
908
- "kind": "field",
909
- "name": "isWorking",
910
- "type": {
911
- "text": "boolean"
912
- },
913
- "privacy": "public",
914
- "default": "false"
915
- },
916
- {
917
- "kind": "field",
918
- "name": "records",
919
- "type": {
920
- "text": "Record<string, T>"
921
- },
922
- "privacy": "private",
923
- "default": "{}"
924
- },
925
- {
926
- "kind": "field",
927
- "name": "beforeUpdateListeners",
928
- "privacy": "private"
929
- },
930
- {
931
- "kind": "field",
932
- "name": "afterUpdateListeners",
933
- "privacy": "private"
934
- },
935
- {
936
- "kind": "method",
937
- "name": "create",
938
- "privacy": "public",
939
- "return": {
940
- "type": {
941
- "text": "Promise<DatabaseAccessResult.Create<T>>"
942
- }
943
- },
944
- "parameters": [
945
- {
946
- "name": "newValue",
947
- "type": {
948
- "text": "Omit<T, 'id'>"
949
- }
950
- }
951
- ]
952
- },
953
- {
954
- "kind": "method",
955
- "name": "read",
956
- "privacy": "public",
957
- "return": {
958
- "type": {
959
- "text": "Promise<DatabaseAccessResult.Read<T>>"
960
- }
961
- },
962
- "parameters": [
963
- {
964
- "name": "id",
965
- "type": {
966
- "text": "string"
967
- }
968
- }
969
- ]
970
- },
971
- {
972
- "kind": "method",
973
- "name": "update",
974
- "privacy": "public",
975
- "return": {
976
- "type": {
977
- "text": "Promise<DatabaseAccessResult.Update<T>>"
978
- }
979
- },
980
- "parameters": [
981
- {
982
- "name": "id",
983
- "type": {
984
- "text": "string"
985
- }
986
- },
987
- {
988
- "name": "newValue",
989
- "type": {
990
- "text": "Omit<Partial<T>, 'id'>"
991
- }
992
- }
993
- ]
994
- },
995
- {
996
- "kind": "method",
997
- "name": "delete",
998
- "privacy": "public",
999
- "return": {
1000
- "type": {
1001
- "text": "Promise<DatabaseAccessResult.Delete>"
1002
- }
1003
- },
1004
- "parameters": [
1005
- {
1006
- "name": "id",
1007
- "type": {
1008
- "text": "string"
1009
- }
1010
- }
1011
- ]
1012
- },
1013
- {
1014
- "kind": "method",
1015
- "name": "visit",
1016
- "privacy": "public",
1017
- "return": {
1018
- "type": {
1019
- "text": "Promise<void>"
1020
- }
1021
- },
1022
- "parameters": [
1023
- {
1024
- "name": "visitor",
1025
- "type": {
1026
- "text": "(record: T) => void"
1027
- }
1028
- }
1029
- ]
1030
- },
1031
- {
1032
- "kind": "method",
1033
- "name": "onBeforeUpdate",
1034
- "privacy": "public",
1035
- "return": {
1036
- "type": {
1037
- "text": "() => void"
1038
- }
1039
- },
1040
- "parameters": [
1041
- {
1042
- "name": "listener",
1043
- "type": {
1044
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1045
- }
1046
- }
1047
- ]
1048
- },
1049
- {
1050
- "kind": "method",
1051
- "name": "onAfterUpdate",
1052
- "privacy": "public",
1053
- "return": {
1054
- "type": {
1055
- "text": "() => void"
1056
- }
1057
- },
1058
- "parameters": [
1059
- {
1060
- "name": "listener",
1061
- "type": {
1062
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1063
- }
1064
- }
1065
- ]
1066
- }
1067
- ]
1068
- }
1069
- ],
1070
- "exports": [
1071
- {
1072
- "kind": "js",
1073
- "name": "InMemoryDatabase",
1074
- "declaration": {
1075
- "name": "InMemoryDatabase",
1076
- "module": "src/data/inMemoryDatabase.ts"
1077
- }
1078
- }
1079
- ]
1080
- },
1081
- {
1082
- "kind": "javascript-module",
1083
- "path": "src/data/index.ts",
1084
- "declarations": [],
1085
- "exports": [
1086
- {
1087
- "kind": "js",
1088
- "name": "*",
1089
- "declaration": {
1090
- "name": "*",
1091
- "package": "./inMemoryDatabase"
1092
- }
1093
- }
1094
- ]
1095
- },
1096
- {
1097
- "kind": "javascript-module",
1098
- "path": "src/converters/index.ts",
1099
- "declarations": [],
1100
- "exports": [
1101
- {
1102
- "kind": "js",
1103
- "name": "*",
1104
- "declaration": {
1105
- "name": "*",
1106
- "package": "./string-array-converter"
1107
- }
1108
- }
1109
- ]
1110
- },
1111
- {
1112
- "kind": "javascript-module",
1113
- "path": "src/converters/string-array-converter.ts",
1114
- "declarations": [
1115
- {
1116
- "kind": "variable",
1117
- "name": "stringArrayConverter",
1118
- "type": {
1119
- "text": "ValueConverter"
1120
- },
1121
- "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}",
1122
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
1123
- "privacy": "public"
1124
- }
1125
- ],
1126
- "exports": [
1127
- {
1128
- "kind": "js",
1129
- "name": "stringArrayConverter",
1130
- "declaration": {
1131
- "name": "stringArrayConverter",
1132
- "module": "src/converters/string-array-converter.ts"
1133
- }
1134
- }
1135
- ]
1136
- },
1137
1137
  {
1138
1138
  "kind": "javascript-module",
1139
1139
  "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.409.0",
4
+ "version": "14.410.0",
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.409.0",
33
- "@genesislcap/genx": "14.409.0",
34
- "@genesislcap/rollup-builder": "14.409.0",
35
- "@genesislcap/ts-builder": "14.409.0",
36
- "@genesislcap/uvu-playwright-builder": "14.409.0",
37
- "@genesislcap/vite-builder": "14.409.0",
38
- "@genesislcap/webpack-builder": "14.409.0",
32
+ "@genesislcap/foundation-testing": "14.410.0",
33
+ "@genesislcap/genx": "14.410.0",
34
+ "@genesislcap/rollup-builder": "14.410.0",
35
+ "@genesislcap/ts-builder": "14.410.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.410.0",
37
+ "@genesislcap/vite-builder": "14.410.0",
38
+ "@genesislcap/webpack-builder": "14.410.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.409.0",
43
- "@genesislcap/foundation-logger": "14.409.0",
42
+ "@genesislcap/expression-builder": "14.410.0",
43
+ "@genesislcap/foundation-logger": "14.410.0",
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": "cbe0459d170f27c35a7de18cec415947aedf4da5"
61
+ "gitHead": "9331a34f5da9547cbc71a4d60cc0580b3a4dca80"
62
62
  }