@genesislcap/foundation-utils 15.15.2-FUI-2564.1 → 15.15.2-FUI-2603.8

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 +222 -222
  2. package/package.json +11 -11
@@ -209,6 +209,47 @@
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
+ },
212
253
  {
213
254
  "kind": "javascript-module",
214
255
  "path": "src/design-system/design-system.ts",
@@ -413,7 +454,7 @@
413
454
  },
414
455
  {
415
456
  "kind": "javascript-module",
416
- "path": "src/converters/index.ts",
457
+ "path": "src/directives/index.ts",
417
458
  "declarations": [],
418
459
  "exports": [
419
460
  {
@@ -421,40 +462,205 @@
421
462
  "name": "*",
422
463
  "declaration": {
423
464
  "name": "*",
424
- "package": "./string-array-converter"
465
+ "package": "./sync"
466
+ }
467
+ },
468
+ {
469
+ "kind": "js",
470
+ "name": "*",
471
+ "declaration": {
472
+ "name": "*",
473
+ "package": "./when-else"
425
474
  }
426
475
  }
427
476
  ]
428
477
  },
429
478
  {
430
479
  "kind": "javascript-module",
431
- "path": "src/converters/string-array-converter.ts",
480
+ "path": "src/data/inMemoryDatabase.ts",
432
481
  "declarations": [
433
482
  {
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.",
441
- "privacy": "public"
483
+ "kind": "class",
484
+ "description": "An in memory database of specific DatabaseRecord types.",
485
+ "name": "InMemoryDatabase",
486
+ "members": [
487
+ {
488
+ "kind": "field",
489
+ "name": "isWorking",
490
+ "type": {
491
+ "text": "boolean"
492
+ },
493
+ "privacy": "public",
494
+ "default": "false"
495
+ },
496
+ {
497
+ "kind": "field",
498
+ "name": "records",
499
+ "type": {
500
+ "text": "Record<string, T>"
501
+ },
502
+ "privacy": "private",
503
+ "default": "{}"
504
+ },
505
+ {
506
+ "kind": "field",
507
+ "name": "beforeUpdateListeners",
508
+ "privacy": "private"
509
+ },
510
+ {
511
+ "kind": "field",
512
+ "name": "afterUpdateListeners",
513
+ "privacy": "private"
514
+ },
515
+ {
516
+ "kind": "method",
517
+ "name": "create",
518
+ "privacy": "public",
519
+ "return": {
520
+ "type": {
521
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
522
+ }
523
+ },
524
+ "parameters": [
525
+ {
526
+ "name": "newValue",
527
+ "type": {
528
+ "text": "Omit<T, 'id'>"
529
+ }
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "kind": "method",
535
+ "name": "read",
536
+ "privacy": "public",
537
+ "return": {
538
+ "type": {
539
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
540
+ }
541
+ },
542
+ "parameters": [
543
+ {
544
+ "name": "id",
545
+ "type": {
546
+ "text": "string"
547
+ }
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "kind": "method",
553
+ "name": "update",
554
+ "privacy": "public",
555
+ "return": {
556
+ "type": {
557
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
558
+ }
559
+ },
560
+ "parameters": [
561
+ {
562
+ "name": "id",
563
+ "type": {
564
+ "text": "string"
565
+ }
566
+ },
567
+ {
568
+ "name": "newValue",
569
+ "type": {
570
+ "text": "Omit<Partial<T>, 'id'>"
571
+ }
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "kind": "method",
577
+ "name": "delete",
578
+ "privacy": "public",
579
+ "return": {
580
+ "type": {
581
+ "text": "Promise<DatabaseAccessResult.Delete>"
582
+ }
583
+ },
584
+ "parameters": [
585
+ {
586
+ "name": "id",
587
+ "type": {
588
+ "text": "string"
589
+ }
590
+ }
591
+ ]
592
+ },
593
+ {
594
+ "kind": "method",
595
+ "name": "visit",
596
+ "privacy": "public",
597
+ "return": {
598
+ "type": {
599
+ "text": "Promise<void>"
600
+ }
601
+ },
602
+ "parameters": [
603
+ {
604
+ "name": "visitor",
605
+ "type": {
606
+ "text": "(record: T) => void"
607
+ }
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "kind": "method",
613
+ "name": "onBeforeUpdate",
614
+ "privacy": "public",
615
+ "return": {
616
+ "type": {
617
+ "text": "() => void"
618
+ }
619
+ },
620
+ "parameters": [
621
+ {
622
+ "name": "listener",
623
+ "type": {
624
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
625
+ }
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "kind": "method",
631
+ "name": "onAfterUpdate",
632
+ "privacy": "public",
633
+ "return": {
634
+ "type": {
635
+ "text": "() => void"
636
+ }
637
+ },
638
+ "parameters": [
639
+ {
640
+ "name": "listener",
641
+ "type": {
642
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
643
+ }
644
+ }
645
+ ]
646
+ }
647
+ ]
442
648
  }
443
649
  ],
444
650
  "exports": [
445
651
  {
446
652
  "kind": "js",
447
- "name": "stringArrayConverter",
653
+ "name": "InMemoryDatabase",
448
654
  "declaration": {
449
- "name": "stringArrayConverter",
450
- "module": "src/converters/string-array-converter.ts"
655
+ "name": "InMemoryDatabase",
656
+ "module": "src/data/inMemoryDatabase.ts"
451
657
  }
452
658
  }
453
659
  ]
454
660
  },
455
661
  {
456
662
  "kind": "javascript-module",
457
- "path": "src/directives/index.ts",
663
+ "path": "src/data/index.ts",
458
664
  "declarations": [],
459
665
  "exports": [
460
666
  {
@@ -462,15 +668,7 @@
462
668
  "name": "*",
463
669
  "declaration": {
464
670
  "name": "*",
465
- "package": "./sync"
466
- }
467
- },
468
- {
469
- "kind": "js",
470
- "name": "*",
471
- "declaration": {
472
- "name": "*",
473
- "package": "./when-else"
671
+ "package": "./inMemoryDatabase"
474
672
  }
475
673
  }
476
674
  ]
@@ -1042,204 +1240,6 @@
1042
1240
  }
1043
1241
  ]
1044
1242
  },
1045
- {
1046
- "kind": "javascript-module",
1047
- "path": "src/data/inMemoryDatabase.ts",
1048
- "declarations": [
1049
- {
1050
- "kind": "class",
1051
- "description": "An in memory database of specific DatabaseRecord types.",
1052
- "name": "InMemoryDatabase",
1053
- "members": [
1054
- {
1055
- "kind": "field",
1056
- "name": "isWorking",
1057
- "type": {
1058
- "text": "boolean"
1059
- },
1060
- "privacy": "public",
1061
- "default": "false"
1062
- },
1063
- {
1064
- "kind": "field",
1065
- "name": "records",
1066
- "type": {
1067
- "text": "Record<string, T>"
1068
- },
1069
- "privacy": "private",
1070
- "default": "{}"
1071
- },
1072
- {
1073
- "kind": "field",
1074
- "name": "beforeUpdateListeners",
1075
- "privacy": "private"
1076
- },
1077
- {
1078
- "kind": "field",
1079
- "name": "afterUpdateListeners",
1080
- "privacy": "private"
1081
- },
1082
- {
1083
- "kind": "method",
1084
- "name": "create",
1085
- "privacy": "public",
1086
- "return": {
1087
- "type": {
1088
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1089
- }
1090
- },
1091
- "parameters": [
1092
- {
1093
- "name": "newValue",
1094
- "type": {
1095
- "text": "Omit<T, 'id'>"
1096
- }
1097
- }
1098
- ]
1099
- },
1100
- {
1101
- "kind": "method",
1102
- "name": "read",
1103
- "privacy": "public",
1104
- "return": {
1105
- "type": {
1106
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1107
- }
1108
- },
1109
- "parameters": [
1110
- {
1111
- "name": "id",
1112
- "type": {
1113
- "text": "string"
1114
- }
1115
- }
1116
- ]
1117
- },
1118
- {
1119
- "kind": "method",
1120
- "name": "update",
1121
- "privacy": "public",
1122
- "return": {
1123
- "type": {
1124
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1125
- }
1126
- },
1127
- "parameters": [
1128
- {
1129
- "name": "id",
1130
- "type": {
1131
- "text": "string"
1132
- }
1133
- },
1134
- {
1135
- "name": "newValue",
1136
- "type": {
1137
- "text": "Omit<Partial<T>, 'id'>"
1138
- }
1139
- }
1140
- ]
1141
- },
1142
- {
1143
- "kind": "method",
1144
- "name": "delete",
1145
- "privacy": "public",
1146
- "return": {
1147
- "type": {
1148
- "text": "Promise<DatabaseAccessResult.Delete>"
1149
- }
1150
- },
1151
- "parameters": [
1152
- {
1153
- "name": "id",
1154
- "type": {
1155
- "text": "string"
1156
- }
1157
- }
1158
- ]
1159
- },
1160
- {
1161
- "kind": "method",
1162
- "name": "visit",
1163
- "privacy": "public",
1164
- "return": {
1165
- "type": {
1166
- "text": "Promise<void>"
1167
- }
1168
- },
1169
- "parameters": [
1170
- {
1171
- "name": "visitor",
1172
- "type": {
1173
- "text": "(record: T) => void"
1174
- }
1175
- }
1176
- ]
1177
- },
1178
- {
1179
- "kind": "method",
1180
- "name": "onBeforeUpdate",
1181
- "privacy": "public",
1182
- "return": {
1183
- "type": {
1184
- "text": "() => void"
1185
- }
1186
- },
1187
- "parameters": [
1188
- {
1189
- "name": "listener",
1190
- "type": {
1191
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1192
- }
1193
- }
1194
- ]
1195
- },
1196
- {
1197
- "kind": "method",
1198
- "name": "onAfterUpdate",
1199
- "privacy": "public",
1200
- "return": {
1201
- "type": {
1202
- "text": "() => void"
1203
- }
1204
- },
1205
- "parameters": [
1206
- {
1207
- "name": "listener",
1208
- "type": {
1209
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1210
- }
1211
- }
1212
- ]
1213
- }
1214
- ]
1215
- }
1216
- ],
1217
- "exports": [
1218
- {
1219
- "kind": "js",
1220
- "name": "InMemoryDatabase",
1221
- "declaration": {
1222
- "name": "InMemoryDatabase",
1223
- "module": "src/data/inMemoryDatabase.ts"
1224
- }
1225
- }
1226
- ]
1227
- },
1228
- {
1229
- "kind": "javascript-module",
1230
- "path": "src/data/index.ts",
1231
- "declarations": [],
1232
- "exports": [
1233
- {
1234
- "kind": "js",
1235
- "name": "*",
1236
- "declaration": {
1237
- "name": "*",
1238
- "package": "./inMemoryDatabase"
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.15.2-FUI-2564.1",
4
+ "version": "15.15.2-FUI-2603.8",
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.15.2-FUI-2564.1",
33
- "@genesislcap/genx": "15.15.2-FUI-2564.1",
34
- "@genesislcap/rollup-builder": "15.15.2-FUI-2564.1",
35
- "@genesislcap/ts-builder": "15.15.2-FUI-2564.1",
36
- "@genesislcap/uvu-playwright-builder": "15.15.2-FUI-2564.1",
37
- "@genesislcap/vite-builder": "15.15.2-FUI-2564.1",
38
- "@genesislcap/webpack-builder": "15.15.2-FUI-2564.1",
32
+ "@genesislcap/foundation-testing": "15.15.2-FUI-2603.8",
33
+ "@genesislcap/genx": "15.15.2-FUI-2603.8",
34
+ "@genesislcap/rollup-builder": "15.15.2-FUI-2603.8",
35
+ "@genesislcap/ts-builder": "15.15.2-FUI-2603.8",
36
+ "@genesislcap/uvu-playwright-builder": "15.15.2-FUI-2603.8",
37
+ "@genesislcap/vite-builder": "15.15.2-FUI-2603.8",
38
+ "@genesislcap/webpack-builder": "15.15.2-FUI-2603.8",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.15.2-FUI-2564.1",
43
- "@genesislcap/foundation-logger": "15.15.2-FUI-2564.1",
42
+ "@genesislcap/expression-builder": "15.15.2-FUI-2603.8",
43
+ "@genesislcap/foundation-logger": "15.15.2-FUI-2603.8",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -70,5 +70,5 @@
70
70
  },
71
71
  "./package.json": "./package.json"
72
72
  },
73
- "gitHead": "138fa84429b2d2ee038d23c3b91f3fe695737201"
73
+ "gitHead": "5a031de5ddf30696a674da64f8a7f832b7f4fc21"
74
74
  }