@genesislcap/foundation-utils 15.3.2 → 15.3.3-alpha-4899ddd.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 +239 -239
  2. package/package.json +11 -11
@@ -209,245 +209,6 @@
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
- },
451
212
  {
452
213
  "kind": "javascript-module",
453
214
  "path": "src/design-system/design-system.ts",
@@ -1240,6 +1001,245 @@
1240
1001
  }
1241
1002
  ]
1242
1003
  },
1004
+ {
1005
+ "kind": "javascript-module",
1006
+ "path": "src/data/inMemoryDatabase.ts",
1007
+ "declarations": [
1008
+ {
1009
+ "kind": "class",
1010
+ "description": "An in memory database of specific DatabaseRecord types.",
1011
+ "name": "InMemoryDatabase",
1012
+ "members": [
1013
+ {
1014
+ "kind": "field",
1015
+ "name": "isWorking",
1016
+ "type": {
1017
+ "text": "boolean"
1018
+ },
1019
+ "privacy": "public",
1020
+ "default": "false"
1021
+ },
1022
+ {
1023
+ "kind": "field",
1024
+ "name": "records",
1025
+ "type": {
1026
+ "text": "Record<string, T>"
1027
+ },
1028
+ "privacy": "private",
1029
+ "default": "{}"
1030
+ },
1031
+ {
1032
+ "kind": "field",
1033
+ "name": "beforeUpdateListeners",
1034
+ "privacy": "private"
1035
+ },
1036
+ {
1037
+ "kind": "field",
1038
+ "name": "afterUpdateListeners",
1039
+ "privacy": "private"
1040
+ },
1041
+ {
1042
+ "kind": "method",
1043
+ "name": "create",
1044
+ "privacy": "public",
1045
+ "return": {
1046
+ "type": {
1047
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1048
+ }
1049
+ },
1050
+ "parameters": [
1051
+ {
1052
+ "name": "newValue",
1053
+ "type": {
1054
+ "text": "Omit<T, 'id'>"
1055
+ }
1056
+ }
1057
+ ]
1058
+ },
1059
+ {
1060
+ "kind": "method",
1061
+ "name": "read",
1062
+ "privacy": "public",
1063
+ "return": {
1064
+ "type": {
1065
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1066
+ }
1067
+ },
1068
+ "parameters": [
1069
+ {
1070
+ "name": "id",
1071
+ "type": {
1072
+ "text": "string"
1073
+ }
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "kind": "method",
1079
+ "name": "update",
1080
+ "privacy": "public",
1081
+ "return": {
1082
+ "type": {
1083
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1084
+ }
1085
+ },
1086
+ "parameters": [
1087
+ {
1088
+ "name": "id",
1089
+ "type": {
1090
+ "text": "string"
1091
+ }
1092
+ },
1093
+ {
1094
+ "name": "newValue",
1095
+ "type": {
1096
+ "text": "Omit<Partial<T>, 'id'>"
1097
+ }
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "kind": "method",
1103
+ "name": "delete",
1104
+ "privacy": "public",
1105
+ "return": {
1106
+ "type": {
1107
+ "text": "Promise<DatabaseAccessResult.Delete>"
1108
+ }
1109
+ },
1110
+ "parameters": [
1111
+ {
1112
+ "name": "id",
1113
+ "type": {
1114
+ "text": "string"
1115
+ }
1116
+ }
1117
+ ]
1118
+ },
1119
+ {
1120
+ "kind": "method",
1121
+ "name": "visit",
1122
+ "privacy": "public",
1123
+ "return": {
1124
+ "type": {
1125
+ "text": "Promise<void>"
1126
+ }
1127
+ },
1128
+ "parameters": [
1129
+ {
1130
+ "name": "visitor",
1131
+ "type": {
1132
+ "text": "(record: T) => void"
1133
+ }
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "kind": "method",
1139
+ "name": "onBeforeUpdate",
1140
+ "privacy": "public",
1141
+ "return": {
1142
+ "type": {
1143
+ "text": "() => void"
1144
+ }
1145
+ },
1146
+ "parameters": [
1147
+ {
1148
+ "name": "listener",
1149
+ "type": {
1150
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1151
+ }
1152
+ }
1153
+ ]
1154
+ },
1155
+ {
1156
+ "kind": "method",
1157
+ "name": "onAfterUpdate",
1158
+ "privacy": "public",
1159
+ "return": {
1160
+ "type": {
1161
+ "text": "() => void"
1162
+ }
1163
+ },
1164
+ "parameters": [
1165
+ {
1166
+ "name": "listener",
1167
+ "type": {
1168
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1169
+ }
1170
+ }
1171
+ ]
1172
+ }
1173
+ ]
1174
+ }
1175
+ ],
1176
+ "exports": [
1177
+ {
1178
+ "kind": "js",
1179
+ "name": "InMemoryDatabase",
1180
+ "declaration": {
1181
+ "name": "InMemoryDatabase",
1182
+ "module": "src/data/inMemoryDatabase.ts"
1183
+ }
1184
+ }
1185
+ ]
1186
+ },
1187
+ {
1188
+ "kind": "javascript-module",
1189
+ "path": "src/data/index.ts",
1190
+ "declarations": [],
1191
+ "exports": [
1192
+ {
1193
+ "kind": "js",
1194
+ "name": "*",
1195
+ "declaration": {
1196
+ "name": "*",
1197
+ "package": "./inMemoryDatabase"
1198
+ }
1199
+ }
1200
+ ]
1201
+ },
1202
+ {
1203
+ "kind": "javascript-module",
1204
+ "path": "src/converters/index.ts",
1205
+ "declarations": [],
1206
+ "exports": [
1207
+ {
1208
+ "kind": "js",
1209
+ "name": "*",
1210
+ "declaration": {
1211
+ "name": "*",
1212
+ "package": "./string-array-converter"
1213
+ }
1214
+ }
1215
+ ]
1216
+ },
1217
+ {
1218
+ "kind": "javascript-module",
1219
+ "path": "src/converters/string-array-converter.ts",
1220
+ "declarations": [
1221
+ {
1222
+ "kind": "variable",
1223
+ "name": "stringArrayConverter",
1224
+ "type": {
1225
+ "text": "ValueConverter"
1226
+ },
1227
+ "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}",
1228
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
1229
+ "privacy": "public"
1230
+ }
1231
+ ],
1232
+ "exports": [
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "stringArrayConverter",
1236
+ "declaration": {
1237
+ "name": "stringArrayConverter",
1238
+ "module": "src/converters/string-array-converter.ts"
1239
+ }
1240
+ }
1241
+ ]
1242
+ },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "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": "15.3.2",
4
+ "version": "15.3.3-alpha-4899ddd.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": "15.3.2",
33
- "@genesislcap/genx": "15.3.2",
34
- "@genesislcap/rollup-builder": "15.3.2",
35
- "@genesislcap/ts-builder": "15.3.2",
36
- "@genesislcap/uvu-playwright-builder": "15.3.2",
37
- "@genesislcap/vite-builder": "15.3.2",
38
- "@genesislcap/webpack-builder": "15.3.2",
32
+ "@genesislcap/foundation-testing": "15.3.3-alpha-4899ddd.0",
33
+ "@genesislcap/genx": "15.3.3-alpha-4899ddd.0",
34
+ "@genesislcap/rollup-builder": "15.3.3-alpha-4899ddd.0",
35
+ "@genesislcap/ts-builder": "15.3.3-alpha-4899ddd.0",
36
+ "@genesislcap/uvu-playwright-builder": "15.3.3-alpha-4899ddd.0",
37
+ "@genesislcap/vite-builder": "15.3.3-alpha-4899ddd.0",
38
+ "@genesislcap/webpack-builder": "15.3.3-alpha-4899ddd.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.3.2",
43
- "@genesislcap/foundation-logger": "15.3.2",
42
+ "@genesislcap/expression-builder": "15.3.3-alpha-4899ddd.0",
43
+ "@genesislcap/foundation-logger": "15.3.3-alpha-4899ddd.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": "9b3b32a9d7642518469a81d1ed9cc79b3a6c0ece"
61
+ "gitHead": "aaf601ba5464fd53d1edc1a690443b6e38f5dff3"
62
62
  }