@genesislcap/foundation-utils 14.180.2 → 14.180.3

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 +251 -251
  2. package/package.json +10 -10
@@ -159,6 +159,257 @@
159
159
  }
160
160
  ]
161
161
  },
162
+ {
163
+ "kind": "javascript-module",
164
+ "path": "src/data/inMemoryDatabase.ts",
165
+ "declarations": [
166
+ {
167
+ "kind": "class",
168
+ "description": "An in memory database of specific DatabaseRecord types.",
169
+ "name": "InMemoryDatabase",
170
+ "members": [
171
+ {
172
+ "kind": "field",
173
+ "name": "isWorking",
174
+ "type": {
175
+ "text": "boolean"
176
+ },
177
+ "privacy": "public",
178
+ "default": "false"
179
+ },
180
+ {
181
+ "kind": "field",
182
+ "name": "records",
183
+ "type": {
184
+ "text": "Record<string, T>"
185
+ },
186
+ "privacy": "private",
187
+ "default": "{}"
188
+ },
189
+ {
190
+ "kind": "field",
191
+ "name": "beforeUpdateListeners",
192
+ "privacy": "private"
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "afterUpdateListeners",
197
+ "privacy": "private"
198
+ },
199
+ {
200
+ "kind": "method",
201
+ "name": "create",
202
+ "privacy": "public",
203
+ "return": {
204
+ "type": {
205
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
206
+ }
207
+ },
208
+ "parameters": [
209
+ {
210
+ "name": "newValue",
211
+ "type": {
212
+ "text": "Omit<T, 'id'>"
213
+ }
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "kind": "method",
219
+ "name": "read",
220
+ "privacy": "public",
221
+ "return": {
222
+ "type": {
223
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
224
+ }
225
+ },
226
+ "parameters": [
227
+ {
228
+ "name": "id",
229
+ "type": {
230
+ "text": "string"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "update",
238
+ "privacy": "public",
239
+ "return": {
240
+ "type": {
241
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
242
+ }
243
+ },
244
+ "parameters": [
245
+ {
246
+ "name": "id",
247
+ "type": {
248
+ "text": "string"
249
+ }
250
+ },
251
+ {
252
+ "name": "newValue",
253
+ "type": {
254
+ "text": "Omit<Partial<T>, 'id'>"
255
+ }
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "kind": "method",
261
+ "name": "delete",
262
+ "privacy": "public",
263
+ "return": {
264
+ "type": {
265
+ "text": "Promise<DatabaseAccessResult.Delete>"
266
+ }
267
+ },
268
+ "parameters": [
269
+ {
270
+ "name": "id",
271
+ "type": {
272
+ "text": "string"
273
+ }
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "kind": "method",
279
+ "name": "visit",
280
+ "privacy": "public",
281
+ "return": {
282
+ "type": {
283
+ "text": "Promise<void>"
284
+ }
285
+ },
286
+ "parameters": [
287
+ {
288
+ "name": "visitor",
289
+ "type": {
290
+ "text": "(record: T) => void"
291
+ }
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "kind": "method",
297
+ "name": "onBeforeUpdate",
298
+ "privacy": "public",
299
+ "return": {
300
+ "type": {
301
+ "text": "() => void"
302
+ }
303
+ },
304
+ "parameters": [
305
+ {
306
+ "name": "listener",
307
+ "type": {
308
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "kind": "method",
315
+ "name": "onAfterUpdate",
316
+ "privacy": "public",
317
+ "return": {
318
+ "type": {
319
+ "text": "() => void"
320
+ }
321
+ },
322
+ "parameters": [
323
+ {
324
+ "name": "listener",
325
+ "type": {
326
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
327
+ }
328
+ }
329
+ ]
330
+ }
331
+ ]
332
+ }
333
+ ],
334
+ "exports": [
335
+ {
336
+ "kind": "js",
337
+ "name": "InMemoryDatabase",
338
+ "declaration": {
339
+ "name": "InMemoryDatabase",
340
+ "module": "src/data/inMemoryDatabase.ts"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "kind": "javascript-module",
347
+ "path": "src/data/index.ts",
348
+ "declarations": [],
349
+ "exports": [
350
+ {
351
+ "kind": "js",
352
+ "name": "*",
353
+ "declaration": {
354
+ "name": "*",
355
+ "package": "./inMemoryDatabase"
356
+ }
357
+ }
358
+ ]
359
+ },
360
+ {
361
+ "kind": "javascript-module",
362
+ "path": "src/decorators/index.ts",
363
+ "declarations": [],
364
+ "exports": [
365
+ {
366
+ "kind": "js",
367
+ "name": "*",
368
+ "declaration": {
369
+ "name": "*",
370
+ "package": "./renderOnChange"
371
+ }
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "kind": "javascript-module",
377
+ "path": "src/decorators/renderOnChange.ts",
378
+ "declarations": [
379
+ {
380
+ "kind": "function",
381
+ "name": "renderOnChange",
382
+ "parameters": [
383
+ {
384
+ "name": "target",
385
+ "type": {
386
+ "text": "FASTElement & { render(): void }"
387
+ },
388
+ "description": "The target to define the property change handler on."
389
+ },
390
+ {
391
+ "name": "name",
392
+ "type": {
393
+ "text": "string"
394
+ },
395
+ "description": "The property name."
396
+ }
397
+ ],
398
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
399
+ "privacy": "public"
400
+ }
401
+ ],
402
+ "exports": [
403
+ {
404
+ "kind": "js",
405
+ "name": "renderOnChange",
406
+ "declaration": {
407
+ "name": "renderOnChange",
408
+ "module": "src/decorators/renderOnChange.ts"
409
+ }
410
+ }
411
+ ]
412
+ },
162
413
  {
163
414
  "kind": "javascript-module",
164
415
  "path": "src/design-system/design-system.ts",
@@ -455,257 +706,6 @@
455
706
  }
456
707
  ]
457
708
  },
458
- {
459
- "kind": "javascript-module",
460
- "path": "src/decorators/index.ts",
461
- "declarations": [],
462
- "exports": [
463
- {
464
- "kind": "js",
465
- "name": "*",
466
- "declaration": {
467
- "name": "*",
468
- "package": "./renderOnChange"
469
- }
470
- }
471
- ]
472
- },
473
- {
474
- "kind": "javascript-module",
475
- "path": "src/decorators/renderOnChange.ts",
476
- "declarations": [
477
- {
478
- "kind": "function",
479
- "name": "renderOnChange",
480
- "parameters": [
481
- {
482
- "name": "target",
483
- "type": {
484
- "text": "FASTElement & { render(): void }"
485
- },
486
- "description": "The target to define the property change handler on."
487
- },
488
- {
489
- "name": "name",
490
- "type": {
491
- "text": "string"
492
- },
493
- "description": "The property name."
494
- }
495
- ],
496
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
497
- "privacy": "public"
498
- }
499
- ],
500
- "exports": [
501
- {
502
- "kind": "js",
503
- "name": "renderOnChange",
504
- "declaration": {
505
- "name": "renderOnChange",
506
- "module": "src/decorators/renderOnChange.ts"
507
- }
508
- }
509
- ]
510
- },
511
- {
512
- "kind": "javascript-module",
513
- "path": "src/data/inMemoryDatabase.ts",
514
- "declarations": [
515
- {
516
- "kind": "class",
517
- "description": "An in memory database of specific DatabaseRecord types.",
518
- "name": "InMemoryDatabase",
519
- "members": [
520
- {
521
- "kind": "field",
522
- "name": "isWorking",
523
- "type": {
524
- "text": "boolean"
525
- },
526
- "privacy": "public",
527
- "default": "false"
528
- },
529
- {
530
- "kind": "field",
531
- "name": "records",
532
- "type": {
533
- "text": "Record<string, T>"
534
- },
535
- "privacy": "private",
536
- "default": "{}"
537
- },
538
- {
539
- "kind": "field",
540
- "name": "beforeUpdateListeners",
541
- "privacy": "private"
542
- },
543
- {
544
- "kind": "field",
545
- "name": "afterUpdateListeners",
546
- "privacy": "private"
547
- },
548
- {
549
- "kind": "method",
550
- "name": "create",
551
- "privacy": "public",
552
- "return": {
553
- "type": {
554
- "text": "Promise<DatabaseAccessResult.Create<T>>"
555
- }
556
- },
557
- "parameters": [
558
- {
559
- "name": "newValue",
560
- "type": {
561
- "text": "Omit<T, 'id'>"
562
- }
563
- }
564
- ]
565
- },
566
- {
567
- "kind": "method",
568
- "name": "read",
569
- "privacy": "public",
570
- "return": {
571
- "type": {
572
- "text": "Promise<DatabaseAccessResult.Read<T>>"
573
- }
574
- },
575
- "parameters": [
576
- {
577
- "name": "id",
578
- "type": {
579
- "text": "string"
580
- }
581
- }
582
- ]
583
- },
584
- {
585
- "kind": "method",
586
- "name": "update",
587
- "privacy": "public",
588
- "return": {
589
- "type": {
590
- "text": "Promise<DatabaseAccessResult.Update<T>>"
591
- }
592
- },
593
- "parameters": [
594
- {
595
- "name": "id",
596
- "type": {
597
- "text": "string"
598
- }
599
- },
600
- {
601
- "name": "newValue",
602
- "type": {
603
- "text": "Omit<Partial<T>, 'id'>"
604
- }
605
- }
606
- ]
607
- },
608
- {
609
- "kind": "method",
610
- "name": "delete",
611
- "privacy": "public",
612
- "return": {
613
- "type": {
614
- "text": "Promise<DatabaseAccessResult.Delete>"
615
- }
616
- },
617
- "parameters": [
618
- {
619
- "name": "id",
620
- "type": {
621
- "text": "string"
622
- }
623
- }
624
- ]
625
- },
626
- {
627
- "kind": "method",
628
- "name": "visit",
629
- "privacy": "public",
630
- "return": {
631
- "type": {
632
- "text": "Promise<void>"
633
- }
634
- },
635
- "parameters": [
636
- {
637
- "name": "visitor",
638
- "type": {
639
- "text": "(record: T) => void"
640
- }
641
- }
642
- ]
643
- },
644
- {
645
- "kind": "method",
646
- "name": "onBeforeUpdate",
647
- "privacy": "public",
648
- "return": {
649
- "type": {
650
- "text": "() => void"
651
- }
652
- },
653
- "parameters": [
654
- {
655
- "name": "listener",
656
- "type": {
657
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
658
- }
659
- }
660
- ]
661
- },
662
- {
663
- "kind": "method",
664
- "name": "onAfterUpdate",
665
- "privacy": "public",
666
- "return": {
667
- "type": {
668
- "text": "() => void"
669
- }
670
- },
671
- "parameters": [
672
- {
673
- "name": "listener",
674
- "type": {
675
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
676
- }
677
- }
678
- ]
679
- }
680
- ]
681
- }
682
- ],
683
- "exports": [
684
- {
685
- "kind": "js",
686
- "name": "InMemoryDatabase",
687
- "declaration": {
688
- "name": "InMemoryDatabase",
689
- "module": "src/data/inMemoryDatabase.ts"
690
- }
691
- }
692
- ]
693
- },
694
- {
695
- "kind": "javascript-module",
696
- "path": "src/data/index.ts",
697
- "declarations": [],
698
- "exports": [
699
- {
700
- "kind": "js",
701
- "name": "*",
702
- "declaration": {
703
- "name": "*",
704
- "package": "./inMemoryDatabase"
705
- }
706
- }
707
- ]
708
- },
709
709
  {
710
710
  "kind": "javascript-module",
711
711
  "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.180.2",
4
+ "version": "14.180.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,17 +19,17 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.180.2",
23
- "@genesislcap/genx": "14.180.2",
24
- "@genesislcap/rollup-builder": "14.180.2",
25
- "@genesislcap/ts-builder": "14.180.2",
26
- "@genesislcap/uvu-playwright-builder": "14.180.2",
27
- "@genesislcap/vite-builder": "14.180.2",
28
- "@genesislcap/webpack-builder": "14.180.2",
22
+ "@genesislcap/foundation-testing": "14.180.3",
23
+ "@genesislcap/genx": "14.180.3",
24
+ "@genesislcap/rollup-builder": "14.180.3",
25
+ "@genesislcap/ts-builder": "14.180.3",
26
+ "@genesislcap/uvu-playwright-builder": "14.180.3",
27
+ "@genesislcap/vite-builder": "14.180.3",
28
+ "@genesislcap/webpack-builder": "14.180.3",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.180.2",
32
+ "@genesislcap/foundation-logger": "14.180.3",
33
33
  "@microsoft/fast-components": "^2.30.6",
34
34
  "@microsoft/fast-element": "^1.12.0",
35
35
  "@microsoft/fast-foundation": "^2.49.4",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "customElements": "dist/custom-elements.json",
50
- "gitHead": "5fdd1837209acabc17881ad7062a2ec304df0b18"
50
+ "gitHead": "07dad7747ea8a5efb75f1e63ee59721f56577f95"
51
51
  }