@genesislcap/foundation-utils 15.51.1 → 15.52.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.
@@ -260,53 +260,198 @@
260
260
  },
261
261
  {
262
262
  "kind": "javascript-module",
263
- "path": "src/decorators/index.ts",
264
- "declarations": [],
265
- "exports": [
266
- {
267
- "kind": "js",
268
- "name": "*",
269
- "declaration": {
270
- "name": "*",
271
- "package": "./renderOnChange"
272
- }
273
- }
274
- ]
275
- },
276
- {
277
- "kind": "javascript-module",
278
- "path": "src/decorators/renderOnChange.ts",
263
+ "path": "src/data/inMemoryDatabase.ts",
279
264
  "declarations": [
280
265
  {
281
- "kind": "function",
282
- "name": "renderOnChange",
283
- "parameters": [
266
+ "kind": "class",
267
+ "description": "An in memory database of specific DatabaseRecord types.",
268
+ "name": "InMemoryDatabase",
269
+ "members": [
284
270
  {
285
- "name": "target",
271
+ "kind": "field",
272
+ "name": "isWorking",
286
273
  "type": {
287
- "text": "FASTElement & { render(): void }"
274
+ "text": "boolean"
288
275
  },
289
- "description": "The target to define the property change handler on."
276
+ "privacy": "public",
277
+ "default": "false"
290
278
  },
291
279
  {
292
- "name": "name",
280
+ "kind": "field",
281
+ "name": "records",
293
282
  "type": {
294
- "text": "string"
283
+ "text": "Record<string, T>"
295
284
  },
296
- "description": "The property name."
285
+ "privacy": "private",
286
+ "default": "{}"
287
+ },
288
+ {
289
+ "kind": "field",
290
+ "name": "beforeUpdateListeners",
291
+ "privacy": "private"
292
+ },
293
+ {
294
+ "kind": "field",
295
+ "name": "afterUpdateListeners",
296
+ "privacy": "private"
297
+ },
298
+ {
299
+ "kind": "method",
300
+ "name": "create",
301
+ "privacy": "public",
302
+ "return": {
303
+ "type": {
304
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
305
+ }
306
+ },
307
+ "parameters": [
308
+ {
309
+ "name": "newValue",
310
+ "type": {
311
+ "text": "Omit<T, 'id'>"
312
+ }
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "kind": "method",
318
+ "name": "read",
319
+ "privacy": "public",
320
+ "return": {
321
+ "type": {
322
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
323
+ }
324
+ },
325
+ "parameters": [
326
+ {
327
+ "name": "id",
328
+ "type": {
329
+ "text": "string"
330
+ }
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "kind": "method",
336
+ "name": "update",
337
+ "privacy": "public",
338
+ "return": {
339
+ "type": {
340
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
341
+ }
342
+ },
343
+ "parameters": [
344
+ {
345
+ "name": "id",
346
+ "type": {
347
+ "text": "string"
348
+ }
349
+ },
350
+ {
351
+ "name": "newValue",
352
+ "type": {
353
+ "text": "Omit<Partial<T>, 'id'>"
354
+ }
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "kind": "method",
360
+ "name": "delete",
361
+ "privacy": "public",
362
+ "return": {
363
+ "type": {
364
+ "text": "Promise<DatabaseAccessResult.Delete>"
365
+ }
366
+ },
367
+ "parameters": [
368
+ {
369
+ "name": "id",
370
+ "type": {
371
+ "text": "string"
372
+ }
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "kind": "method",
378
+ "name": "visit",
379
+ "privacy": "public",
380
+ "return": {
381
+ "type": {
382
+ "text": "Promise<void>"
383
+ }
384
+ },
385
+ "parameters": [
386
+ {
387
+ "name": "visitor",
388
+ "type": {
389
+ "text": "(record: T) => void"
390
+ }
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "kind": "method",
396
+ "name": "onBeforeUpdate",
397
+ "privacy": "public",
398
+ "return": {
399
+ "type": {
400
+ "text": "() => void"
401
+ }
402
+ },
403
+ "parameters": [
404
+ {
405
+ "name": "listener",
406
+ "type": {
407
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
408
+ }
409
+ }
410
+ ]
411
+ },
412
+ {
413
+ "kind": "method",
414
+ "name": "onAfterUpdate",
415
+ "privacy": "public",
416
+ "return": {
417
+ "type": {
418
+ "text": "() => void"
419
+ }
420
+ },
421
+ "parameters": [
422
+ {
423
+ "name": "listener",
424
+ "type": {
425
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
426
+ }
427
+ }
428
+ ]
297
429
  }
298
- ],
299
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
300
- "privacy": "public"
430
+ ]
301
431
  }
302
432
  ],
303
433
  "exports": [
304
434
  {
305
435
  "kind": "js",
306
- "name": "renderOnChange",
436
+ "name": "InMemoryDatabase",
307
437
  "declaration": {
308
- "name": "renderOnChange",
309
- "module": "src/decorators/renderOnChange.ts"
438
+ "name": "InMemoryDatabase",
439
+ "module": "src/data/inMemoryDatabase.ts"
440
+ }
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "kind": "javascript-module",
446
+ "path": "src/data/index.ts",
447
+ "declarations": [],
448
+ "exports": [
449
+ {
450
+ "kind": "js",
451
+ "name": "*",
452
+ "declaration": {
453
+ "name": "*",
454
+ "package": "./inMemoryDatabase"
310
455
  }
311
456
  }
312
457
  ]
@@ -515,198 +660,76 @@
515
660
  },
516
661
  {
517
662
  "kind": "javascript-module",
518
- "path": "src/data/inMemoryDatabase.ts",
663
+ "path": "src/directives/index.ts",
664
+ "declarations": [],
665
+ "exports": [
666
+ {
667
+ "kind": "js",
668
+ "name": "*",
669
+ "declaration": {
670
+ "name": "*",
671
+ "package": "./sync"
672
+ }
673
+ },
674
+ {
675
+ "kind": "js",
676
+ "name": "*",
677
+ "declaration": {
678
+ "name": "*",
679
+ "package": "./when-else"
680
+ }
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "kind": "javascript-module",
686
+ "path": "src/decorators/index.ts",
687
+ "declarations": [],
688
+ "exports": [
689
+ {
690
+ "kind": "js",
691
+ "name": "*",
692
+ "declaration": {
693
+ "name": "*",
694
+ "package": "./renderOnChange"
695
+ }
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ "kind": "javascript-module",
701
+ "path": "src/decorators/renderOnChange.ts",
519
702
  "declarations": [
520
703
  {
521
- "kind": "class",
522
- "description": "An in memory database of specific DatabaseRecord types.",
523
- "name": "InMemoryDatabase",
524
- "members": [
704
+ "kind": "function",
705
+ "name": "renderOnChange",
706
+ "parameters": [
525
707
  {
526
- "kind": "field",
527
- "name": "isWorking",
708
+ "name": "target",
528
709
  "type": {
529
- "text": "boolean"
710
+ "text": "FASTElement & { render(): void }"
530
711
  },
531
- "privacy": "public",
532
- "default": "false"
712
+ "description": "The target to define the property change handler on."
533
713
  },
534
714
  {
535
- "kind": "field",
536
- "name": "records",
715
+ "name": "name",
537
716
  "type": {
538
- "text": "Record<string, T>"
539
- },
540
- "privacy": "private",
541
- "default": "{}"
542
- },
543
- {
544
- "kind": "field",
545
- "name": "beforeUpdateListeners",
546
- "privacy": "private"
547
- },
548
- {
549
- "kind": "field",
550
- "name": "afterUpdateListeners",
551
- "privacy": "private"
552
- },
553
- {
554
- "kind": "method",
555
- "name": "create",
556
- "privacy": "public",
557
- "return": {
558
- "type": {
559
- "text": "Promise<DatabaseAccessResult.Create<T>>"
560
- }
561
- },
562
- "parameters": [
563
- {
564
- "name": "newValue",
565
- "type": {
566
- "text": "Omit<T, 'id'>"
567
- }
568
- }
569
- ]
570
- },
571
- {
572
- "kind": "method",
573
- "name": "read",
574
- "privacy": "public",
575
- "return": {
576
- "type": {
577
- "text": "Promise<DatabaseAccessResult.Read<T>>"
578
- }
579
- },
580
- "parameters": [
581
- {
582
- "name": "id",
583
- "type": {
584
- "text": "string"
585
- }
586
- }
587
- ]
588
- },
589
- {
590
- "kind": "method",
591
- "name": "update",
592
- "privacy": "public",
593
- "return": {
594
- "type": {
595
- "text": "Promise<DatabaseAccessResult.Update<T>>"
596
- }
597
- },
598
- "parameters": [
599
- {
600
- "name": "id",
601
- "type": {
602
- "text": "string"
603
- }
604
- },
605
- {
606
- "name": "newValue",
607
- "type": {
608
- "text": "Omit<Partial<T>, 'id'>"
609
- }
610
- }
611
- ]
612
- },
613
- {
614
- "kind": "method",
615
- "name": "delete",
616
- "privacy": "public",
617
- "return": {
618
- "type": {
619
- "text": "Promise<DatabaseAccessResult.Delete>"
620
- }
621
- },
622
- "parameters": [
623
- {
624
- "name": "id",
625
- "type": {
626
- "text": "string"
627
- }
628
- }
629
- ]
630
- },
631
- {
632
- "kind": "method",
633
- "name": "visit",
634
- "privacy": "public",
635
- "return": {
636
- "type": {
637
- "text": "Promise<void>"
638
- }
639
- },
640
- "parameters": [
641
- {
642
- "name": "visitor",
643
- "type": {
644
- "text": "(record: T) => void"
645
- }
646
- }
647
- ]
648
- },
649
- {
650
- "kind": "method",
651
- "name": "onBeforeUpdate",
652
- "privacy": "public",
653
- "return": {
654
- "type": {
655
- "text": "() => void"
656
- }
657
- },
658
- "parameters": [
659
- {
660
- "name": "listener",
661
- "type": {
662
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
663
- }
664
- }
665
- ]
666
- },
667
- {
668
- "kind": "method",
669
- "name": "onAfterUpdate",
670
- "privacy": "public",
671
- "return": {
672
- "type": {
673
- "text": "() => void"
674
- }
717
+ "text": "string"
675
718
  },
676
- "parameters": [
677
- {
678
- "name": "listener",
679
- "type": {
680
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
681
- }
682
- }
683
- ]
719
+ "description": "The property name."
684
720
  }
685
- ]
721
+ ],
722
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
723
+ "privacy": "public"
686
724
  }
687
725
  ],
688
726
  "exports": [
689
727
  {
690
728
  "kind": "js",
691
- "name": "InMemoryDatabase",
692
- "declaration": {
693
- "name": "InMemoryDatabase",
694
- "module": "src/data/inMemoryDatabase.ts"
695
- }
696
- }
697
- ]
698
- },
699
- {
700
- "kind": "javascript-module",
701
- "path": "src/data/index.ts",
702
- "declarations": [],
703
- "exports": [
704
- {
705
- "kind": "js",
706
- "name": "*",
729
+ "name": "renderOnChange",
707
730
  "declaration": {
708
- "name": "*",
709
- "package": "./inMemoryDatabase"
731
+ "name": "renderOnChange",
732
+ "module": "src/decorators/renderOnChange.ts"
710
733
  }
711
734
  }
712
735
  ]
@@ -1225,29 +1248,6 @@
1225
1248
  }
1226
1249
  ]
1227
1250
  },
1228
- {
1229
- "kind": "javascript-module",
1230
- "path": "src/directives/index.ts",
1231
- "declarations": [],
1232
- "exports": [
1233
- {
1234
- "kind": "js",
1235
- "name": "*",
1236
- "declaration": {
1237
- "name": "*",
1238
- "package": "./sync"
1239
- }
1240
- },
1241
- {
1242
- "kind": "js",
1243
- "name": "*",
1244
- "declaration": {
1245
- "name": "*",
1246
- "package": "./when-else"
1247
- }
1248
- }
1249
- ]
1250
- },
1251
1251
  {
1252
1252
  "kind": "javascript-module",
1253
1253
  "path": "src/error/errorMap.ts",
@@ -5034,160 +5034,6 @@
5034
5034
  }
5035
5035
  ]
5036
5036
  },
5037
- {
5038
- "kind": "javascript-module",
5039
- "path": "src/encoding/base64/decode.ts",
5040
- "declarations": [
5041
- {
5042
- "kind": "function",
5043
- "name": "decodeFromBase64",
5044
- "return": {
5045
- "type": {
5046
- "text": ""
5047
- }
5048
- },
5049
- "parameters": [
5050
- {
5051
- "name": "base64Value",
5052
- "type": {
5053
- "text": "string"
5054
- }
5055
- },
5056
- {
5057
- "description": "The value to decode from base64.",
5058
- "name": "value"
5059
- }
5060
- ],
5061
- "description": "Decodes a value from base64.",
5062
- "privacy": "public"
5063
- },
5064
- {
5065
- "kind": "function",
5066
- "name": "decodeFromBase64WithPrefix",
5067
- "return": {
5068
- "type": {
5069
- "text": ""
5070
- }
5071
- },
5072
- "parameters": [
5073
- {
5074
- "name": "value",
5075
- "type": {
5076
- "text": "string"
5077
- },
5078
- "description": "The value to decode from base64."
5079
- }
5080
- ],
5081
- "description": "Decodes a value from base64 with a prefix.",
5082
- "privacy": "public"
5083
- }
5084
- ],
5085
- "exports": [
5086
- {
5087
- "kind": "js",
5088
- "name": "decodeFromBase64",
5089
- "declaration": {
5090
- "name": "decodeFromBase64",
5091
- "module": "src/encoding/base64/decode.ts"
5092
- }
5093
- },
5094
- {
5095
- "kind": "js",
5096
- "name": "decodeFromBase64WithPrefix",
5097
- "declaration": {
5098
- "name": "decodeFromBase64WithPrefix",
5099
- "module": "src/encoding/base64/decode.ts"
5100
- }
5101
- }
5102
- ]
5103
- },
5104
- {
5105
- "kind": "javascript-module",
5106
- "path": "src/encoding/base64/encode.ts",
5107
- "declarations": [
5108
- {
5109
- "kind": "function",
5110
- "name": "encodeToBase64",
5111
- "return": {
5112
- "type": {
5113
- "text": ""
5114
- }
5115
- },
5116
- "parameters": [
5117
- {
5118
- "name": "value",
5119
- "type": {
5120
- "text": "string | ArrayBuffer"
5121
- },
5122
- "description": "The value to encode to base64."
5123
- }
5124
- ],
5125
- "description": "Encodes the given value to base64.",
5126
- "privacy": "public"
5127
- },
5128
- {
5129
- "kind": "function",
5130
- "name": "encodeToBase64WithPrefix",
5131
- "return": {
5132
- "type": {
5133
- "text": ""
5134
- }
5135
- },
5136
- "parameters": [
5137
- {
5138
- "name": "value",
5139
- "type": {
5140
- "text": "string | ArrayBuffer"
5141
- },
5142
- "description": "The value to encode to base64."
5143
- }
5144
- ],
5145
- "description": "Encodes the given value with a prefix to base64.",
5146
- "privacy": "public"
5147
- }
5148
- ],
5149
- "exports": [
5150
- {
5151
- "kind": "js",
5152
- "name": "encodeToBase64",
5153
- "declaration": {
5154
- "name": "encodeToBase64",
5155
- "module": "src/encoding/base64/encode.ts"
5156
- }
5157
- },
5158
- {
5159
- "kind": "js",
5160
- "name": "encodeToBase64WithPrefix",
5161
- "declaration": {
5162
- "name": "encodeToBase64WithPrefix",
5163
- "module": "src/encoding/base64/encode.ts"
5164
- }
5165
- }
5166
- ]
5167
- },
5168
- {
5169
- "kind": "javascript-module",
5170
- "path": "src/encoding/base64/index.ts",
5171
- "declarations": [],
5172
- "exports": [
5173
- {
5174
- "kind": "js",
5175
- "name": "*",
5176
- "declaration": {
5177
- "name": "*",
5178
- "package": "./decode"
5179
- }
5180
- },
5181
- {
5182
- "kind": "js",
5183
- "name": "*",
5184
- "declaration": {
5185
- "name": "*",
5186
- "package": "./encode"
5187
- }
5188
- }
5189
- ]
5190
- },
5191
5037
  {
5192
5038
  "kind": "javascript-module",
5193
5039
  "path": "src/directives/sync/index.ts",
@@ -5342,6 +5188,160 @@
5342
5188
  }
5343
5189
  ]
5344
5190
  },
5191
+ {
5192
+ "kind": "javascript-module",
5193
+ "path": "src/encoding/base64/decode.ts",
5194
+ "declarations": [
5195
+ {
5196
+ "kind": "function",
5197
+ "name": "decodeFromBase64",
5198
+ "return": {
5199
+ "type": {
5200
+ "text": ""
5201
+ }
5202
+ },
5203
+ "parameters": [
5204
+ {
5205
+ "name": "base64Value",
5206
+ "type": {
5207
+ "text": "string"
5208
+ }
5209
+ },
5210
+ {
5211
+ "description": "The value to decode from base64.",
5212
+ "name": "value"
5213
+ }
5214
+ ],
5215
+ "description": "Decodes a value from base64.",
5216
+ "privacy": "public"
5217
+ },
5218
+ {
5219
+ "kind": "function",
5220
+ "name": "decodeFromBase64WithPrefix",
5221
+ "return": {
5222
+ "type": {
5223
+ "text": ""
5224
+ }
5225
+ },
5226
+ "parameters": [
5227
+ {
5228
+ "name": "value",
5229
+ "type": {
5230
+ "text": "string"
5231
+ },
5232
+ "description": "The value to decode from base64."
5233
+ }
5234
+ ],
5235
+ "description": "Decodes a value from base64 with a prefix.",
5236
+ "privacy": "public"
5237
+ }
5238
+ ],
5239
+ "exports": [
5240
+ {
5241
+ "kind": "js",
5242
+ "name": "decodeFromBase64",
5243
+ "declaration": {
5244
+ "name": "decodeFromBase64",
5245
+ "module": "src/encoding/base64/decode.ts"
5246
+ }
5247
+ },
5248
+ {
5249
+ "kind": "js",
5250
+ "name": "decodeFromBase64WithPrefix",
5251
+ "declaration": {
5252
+ "name": "decodeFromBase64WithPrefix",
5253
+ "module": "src/encoding/base64/decode.ts"
5254
+ }
5255
+ }
5256
+ ]
5257
+ },
5258
+ {
5259
+ "kind": "javascript-module",
5260
+ "path": "src/encoding/base64/encode.ts",
5261
+ "declarations": [
5262
+ {
5263
+ "kind": "function",
5264
+ "name": "encodeToBase64",
5265
+ "return": {
5266
+ "type": {
5267
+ "text": ""
5268
+ }
5269
+ },
5270
+ "parameters": [
5271
+ {
5272
+ "name": "value",
5273
+ "type": {
5274
+ "text": "string | ArrayBuffer"
5275
+ },
5276
+ "description": "The value to encode to base64."
5277
+ }
5278
+ ],
5279
+ "description": "Encodes the given value to base64.",
5280
+ "privacy": "public"
5281
+ },
5282
+ {
5283
+ "kind": "function",
5284
+ "name": "encodeToBase64WithPrefix",
5285
+ "return": {
5286
+ "type": {
5287
+ "text": ""
5288
+ }
5289
+ },
5290
+ "parameters": [
5291
+ {
5292
+ "name": "value",
5293
+ "type": {
5294
+ "text": "string | ArrayBuffer"
5295
+ },
5296
+ "description": "The value to encode to base64."
5297
+ }
5298
+ ],
5299
+ "description": "Encodes the given value with a prefix to base64.",
5300
+ "privacy": "public"
5301
+ }
5302
+ ],
5303
+ "exports": [
5304
+ {
5305
+ "kind": "js",
5306
+ "name": "encodeToBase64",
5307
+ "declaration": {
5308
+ "name": "encodeToBase64",
5309
+ "module": "src/encoding/base64/encode.ts"
5310
+ }
5311
+ },
5312
+ {
5313
+ "kind": "js",
5314
+ "name": "encodeToBase64WithPrefix",
5315
+ "declaration": {
5316
+ "name": "encodeToBase64WithPrefix",
5317
+ "module": "src/encoding/base64/encode.ts"
5318
+ }
5319
+ }
5320
+ ]
5321
+ },
5322
+ {
5323
+ "kind": "javascript-module",
5324
+ "path": "src/encoding/base64/index.ts",
5325
+ "declarations": [],
5326
+ "exports": [
5327
+ {
5328
+ "kind": "js",
5329
+ "name": "*",
5330
+ "declaration": {
5331
+ "name": "*",
5332
+ "package": "./decode"
5333
+ }
5334
+ },
5335
+ {
5336
+ "kind": "js",
5337
+ "name": "*",
5338
+ "declaration": {
5339
+ "name": "*",
5340
+ "package": "./encode"
5341
+ }
5342
+ }
5343
+ ]
5344
+ },
5345
5345
  {
5346
5346
  "kind": "javascript-module",
5347
5347
  "path": "src/mappers/dto/index.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.51.1",
4
+ "version": "15.52.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.51.1",
33
- "@genesislcap/genx": "15.51.1",
34
- "@genesislcap/ts-builder": "15.51.1",
35
- "@genesislcap/uvu-playwright-builder": "15.51.1",
36
- "@genesislcap/vite-builder": "15.51.1",
37
- "@genesislcap/webpack-builder": "15.51.1",
32
+ "@genesislcap/foundation-testing": "15.52.0",
33
+ "@genesislcap/genx": "15.52.0",
34
+ "@genesislcap/ts-builder": "15.52.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.52.0",
36
+ "@genesislcap/vite-builder": "15.52.0",
37
+ "@genesislcap/webpack-builder": "15.52.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.51.1",
42
- "@genesislcap/foundation-logger": "15.51.1",
41
+ "@genesislcap/expression-builder": "15.52.0",
42
+ "@genesislcap/foundation-logger": "15.52.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",