@genesislcap/foundation-utils 15.58.0 → 15.58.1

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.
@@ -219,7 +219,7 @@
219
219
  },
220
220
  {
221
221
  "kind": "javascript-module",
222
- "path": "src/converters/index.ts",
222
+ "path": "src/decorators/index.ts",
223
223
  "declarations": [],
224
224
  "exports": [
225
225
  {
@@ -227,219 +227,90 @@
227
227
  "name": "*",
228
228
  "declaration": {
229
229
  "name": "*",
230
- "package": "./string-array-converter"
231
- }
232
- }
233
- ]
234
- },
235
- {
236
- "kind": "javascript-module",
237
- "path": "src/converters/string-array-converter.ts",
238
- "declarations": [
239
- {
240
- "kind": "variable",
241
- "name": "stringArrayConverter",
242
- "type": {
243
- "text": "ValueConverter"
244
- },
245
- "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}",
246
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
247
- "privacy": "public"
248
- }
249
- ],
250
- "exports": [
251
- {
252
- "kind": "js",
253
- "name": "stringArrayConverter",
254
- "declaration": {
255
- "name": "stringArrayConverter",
256
- "module": "src/converters/string-array-converter.ts"
230
+ "package": "./renderOnChange"
257
231
  }
258
232
  }
259
233
  ]
260
234
  },
261
235
  {
262
236
  "kind": "javascript-module",
263
- "path": "src/design-system/design-system.ts",
237
+ "path": "src/decorators/renderOnChange.ts",
264
238
  "declarations": [
265
239
  {
266
240
  "kind": "function",
267
- "name": "assureDesignSystem",
268
- "return": {
269
- "type": {
270
- "text": "DesignSystemModule"
271
- }
272
- },
273
- "parameters": [
274
- {
275
- "name": "module",
276
- "type": {
277
- "text": "DesignSystemModule"
278
- }
279
- }
280
- ],
281
- "description": "assureDesignSystem.",
282
- "privacy": "public"
283
- },
284
- {
285
- "kind": "function",
286
- "name": "getCurrentDesignSystem",
287
- "return": {
288
- "type": {
289
- "text": ""
290
- }
291
- },
292
- "parameters": [
293
- {
294
- "name": "element",
295
- "type": {
296
- "text": "HTMLElement"
297
- },
298
- "description": "The starting HTML element"
299
- },
300
- {
301
- "name": "fallbackPrefix",
302
- "type": {
303
- "text": "string"
304
- },
305
- "description": "The prefix to fallback to if the provider is not available"
306
- }
307
- ],
308
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
309
- "privacy": "public"
310
- },
311
- {
312
- "kind": "function",
313
- "name": "getCurrentDesignSystemPrefix",
314
- "return": {
315
- "type": {
316
- "text": ""
317
- }
318
- },
241
+ "name": "renderOnChange",
319
242
  "parameters": [
320
243
  {
321
- "name": "element",
244
+ "name": "target",
322
245
  "type": {
323
- "text": "HTMLElement"
246
+ "text": "FASTElement & { render(): void }"
324
247
  },
325
- "description": "The starting HTML element"
248
+ "description": "The target to define the property change handler on."
326
249
  },
327
250
  {
328
- "name": "fallbackPrefix",
251
+ "name": "name",
329
252
  "type": {
330
253
  "text": "string"
331
254
  },
332
- "description": "The prefix to fallback to if the provider is not available"
255
+ "description": "The property name."
333
256
  }
334
257
  ],
335
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
258
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
336
259
  "privacy": "public"
337
260
  }
338
261
  ],
339
262
  "exports": [
340
263
  {
341
264
  "kind": "js",
342
- "name": "assureDesignSystem",
343
- "declaration": {
344
- "name": "assureDesignSystem",
345
- "module": "src/design-system/design-system.ts"
346
- }
347
- },
348
- {
349
- "kind": "js",
350
- "name": "getCurrentDesignSystem",
351
- "declaration": {
352
- "name": "getCurrentDesignSystem",
353
- "module": "src/design-system/design-system.ts"
354
- }
355
- },
356
- {
357
- "kind": "js",
358
- "name": "getCurrentDesignSystemPrefix",
265
+ "name": "renderOnChange",
359
266
  "declaration": {
360
- "name": "getCurrentDesignSystemPrefix",
361
- "module": "src/design-system/design-system.ts"
267
+ "name": "renderOnChange",
268
+ "module": "src/decorators/renderOnChange.ts"
362
269
  }
363
270
  }
364
271
  ]
365
272
  },
366
273
  {
367
274
  "kind": "javascript-module",
368
- "path": "src/design-system/editable-elements.ts",
369
- "declarations": [
370
- {
371
- "kind": "variable",
372
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
373
- "type": {
374
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
375
- },
376
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
377
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
378
- },
379
- {
380
- "kind": "variable",
381
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
382
- "type": {
383
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
384
- },
385
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
386
- "description": "Design-system specific editable host selectors."
387
- },
388
- {
389
- "kind": "function",
390
- "name": "buildEditableElementSelector",
391
- "return": {
392
- "type": {
393
- "text": "string"
394
- }
395
- },
396
- "parameters": [
397
- {
398
- "name": "designSystems",
399
- "type": {
400
- "text": "readonly EditableDesignSystemPrefix[]"
401
- }
402
- },
403
- {
404
- "name": "customEditableSelectors",
405
- "default": "[]",
406
- "type": {
407
- "text": "readonly string[]"
408
- }
409
- }
410
- ]
411
- }
412
- ],
275
+ "path": "src/directives/index.ts",
276
+ "declarations": [],
413
277
  "exports": [
414
278
  {
415
279
  "kind": "js",
416
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
280
+ "name": "*",
417
281
  "declaration": {
418
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
419
- "module": "src/design-system/editable-elements.ts"
282
+ "name": "*",
283
+ "package": "./sync"
420
284
  }
421
285
  },
422
286
  {
423
287
  "kind": "js",
424
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
288
+ "name": "*",
425
289
  "declaration": {
426
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
427
- "module": "src/design-system/editable-elements.ts"
290
+ "name": "*",
291
+ "package": "./when-else"
428
292
  }
429
- },
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "kind": "javascript-module",
298
+ "path": "src/encoding/index.ts",
299
+ "declarations": [],
300
+ "exports": [
430
301
  {
431
302
  "kind": "js",
432
- "name": "buildEditableElementSelector",
303
+ "name": "*",
433
304
  "declaration": {
434
- "name": "buildEditableElementSelector",
435
- "module": "src/design-system/editable-elements.ts"
305
+ "name": "*",
306
+ "package": "./base64"
436
307
  }
437
308
  }
438
309
  ]
439
310
  },
440
311
  {
441
312
  "kind": "javascript-module",
442
- "path": "src/design-system/index.ts",
313
+ "path": "src/env/index.ts",
443
314
  "declarations": [],
444
315
  "exports": [
445
316
  {
@@ -447,7 +318,7 @@
447
318
  "name": "*",
448
319
  "declaration": {
449
320
  "name": "*",
450
- "package": "./design-system"
321
+ "package": "./is-dev"
451
322
  }
452
323
  },
453
324
  {
@@ -455,273 +326,14 @@
455
326
  "name": "*",
456
327
  "declaration": {
457
328
  "name": "*",
458
- "package": "./editable-elements"
329
+ "package": "./variables"
459
330
  }
460
331
  }
461
332
  ]
462
333
  },
463
334
  {
464
335
  "kind": "javascript-module",
465
- "path": "src/data/inMemoryDatabase.ts",
466
- "declarations": [
467
- {
468
- "kind": "class",
469
- "description": "An in memory database of specific DatabaseRecord types.",
470
- "name": "InMemoryDatabase",
471
- "members": [
472
- {
473
- "kind": "field",
474
- "name": "isWorking",
475
- "type": {
476
- "text": "boolean"
477
- },
478
- "privacy": "public",
479
- "default": "false"
480
- },
481
- {
482
- "kind": "field",
483
- "name": "records",
484
- "type": {
485
- "text": "Record<string, T>"
486
- },
487
- "privacy": "private",
488
- "default": "{}"
489
- },
490
- {
491
- "kind": "field",
492
- "name": "beforeUpdateListeners",
493
- "privacy": "private"
494
- },
495
- {
496
- "kind": "field",
497
- "name": "afterUpdateListeners",
498
- "privacy": "private"
499
- },
500
- {
501
- "kind": "method",
502
- "name": "create",
503
- "privacy": "public",
504
- "return": {
505
- "type": {
506
- "text": "Promise<DatabaseAccessResult.Create<T>>"
507
- }
508
- },
509
- "parameters": [
510
- {
511
- "name": "newValue",
512
- "type": {
513
- "text": "Omit<T, 'id'>"
514
- }
515
- }
516
- ]
517
- },
518
- {
519
- "kind": "method",
520
- "name": "read",
521
- "privacy": "public",
522
- "return": {
523
- "type": {
524
- "text": "Promise<DatabaseAccessResult.Read<T>>"
525
- }
526
- },
527
- "parameters": [
528
- {
529
- "name": "id",
530
- "type": {
531
- "text": "string"
532
- }
533
- }
534
- ]
535
- },
536
- {
537
- "kind": "method",
538
- "name": "update",
539
- "privacy": "public",
540
- "return": {
541
- "type": {
542
- "text": "Promise<DatabaseAccessResult.Update<T>>"
543
- }
544
- },
545
- "parameters": [
546
- {
547
- "name": "id",
548
- "type": {
549
- "text": "string"
550
- }
551
- },
552
- {
553
- "name": "newValue",
554
- "type": {
555
- "text": "Omit<Partial<T>, 'id'>"
556
- }
557
- }
558
- ]
559
- },
560
- {
561
- "kind": "method",
562
- "name": "delete",
563
- "privacy": "public",
564
- "return": {
565
- "type": {
566
- "text": "Promise<DatabaseAccessResult.Delete>"
567
- }
568
- },
569
- "parameters": [
570
- {
571
- "name": "id",
572
- "type": {
573
- "text": "string"
574
- }
575
- }
576
- ]
577
- },
578
- {
579
- "kind": "method",
580
- "name": "visit",
581
- "privacy": "public",
582
- "return": {
583
- "type": {
584
- "text": "Promise<void>"
585
- }
586
- },
587
- "parameters": [
588
- {
589
- "name": "visitor",
590
- "type": {
591
- "text": "(record: T) => void"
592
- }
593
- }
594
- ]
595
- },
596
- {
597
- "kind": "method",
598
- "name": "onBeforeUpdate",
599
- "privacy": "public",
600
- "return": {
601
- "type": {
602
- "text": "() => void"
603
- }
604
- },
605
- "parameters": [
606
- {
607
- "name": "listener",
608
- "type": {
609
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
610
- }
611
- }
612
- ]
613
- },
614
- {
615
- "kind": "method",
616
- "name": "onAfterUpdate",
617
- "privacy": "public",
618
- "return": {
619
- "type": {
620
- "text": "() => void"
621
- }
622
- },
623
- "parameters": [
624
- {
625
- "name": "listener",
626
- "type": {
627
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
628
- }
629
- }
630
- ]
631
- }
632
- ]
633
- }
634
- ],
635
- "exports": [
636
- {
637
- "kind": "js",
638
- "name": "InMemoryDatabase",
639
- "declaration": {
640
- "name": "InMemoryDatabase",
641
- "module": "src/data/inMemoryDatabase.ts"
642
- }
643
- }
644
- ]
645
- },
646
- {
647
- "kind": "javascript-module",
648
- "path": "src/data/index.ts",
649
- "declarations": [],
650
- "exports": [
651
- {
652
- "kind": "js",
653
- "name": "*",
654
- "declaration": {
655
- "name": "*",
656
- "package": "./inMemoryDatabase"
657
- }
658
- }
659
- ]
660
- },
661
- {
662
- "kind": "javascript-module",
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/encoding/index.ts",
687
- "declarations": [],
688
- "exports": [
689
- {
690
- "kind": "js",
691
- "name": "*",
692
- "declaration": {
693
- "name": "*",
694
- "package": "./base64"
695
- }
696
- }
697
- ]
698
- },
699
- {
700
- "kind": "javascript-module",
701
- "path": "src/env/index.ts",
702
- "declarations": [],
703
- "exports": [
704
- {
705
- "kind": "js",
706
- "name": "*",
707
- "declaration": {
708
- "name": "*",
709
- "package": "./is-dev"
710
- }
711
- },
712
- {
713
- "kind": "js",
714
- "name": "*",
715
- "declaration": {
716
- "name": "*",
717
- "package": "./variables"
718
- }
719
- }
720
- ]
721
- },
722
- {
723
- "kind": "javascript-module",
724
- "path": "src/env/is-dev.ts",
336
+ "path": "src/env/is-dev.ts",
725
337
  "declarations": [
726
338
  {
727
339
  "kind": "function",
@@ -1197,7 +809,7 @@
1197
809
  },
1198
810
  {
1199
811
  "kind": "javascript-module",
1200
- "path": "src/decorators/index.ts",
812
+ "path": "src/converters/index.ts",
1201
813
  "declarations": [],
1202
814
  "exports": [
1203
815
  {
@@ -1205,45 +817,433 @@
1205
817
  "name": "*",
1206
818
  "declaration": {
1207
819
  "name": "*",
1208
- "package": "./renderOnChange"
820
+ "package": "./string-array-converter"
1209
821
  }
1210
822
  }
1211
823
  ]
1212
824
  },
1213
825
  {
1214
826
  "kind": "javascript-module",
1215
- "path": "src/decorators/renderOnChange.ts",
827
+ "path": "src/converters/string-array-converter.ts",
1216
828
  "declarations": [
1217
829
  {
1218
- "kind": "function",
1219
- "name": "renderOnChange",
1220
- "parameters": [
1221
- {
1222
- "name": "target",
1223
- "type": {
1224
- "text": "FASTElement & { render(): void }"
1225
- },
1226
- "description": "The target to define the property change handler on."
1227
- },
1228
- {
1229
- "name": "name",
1230
- "type": {
1231
- "text": "string"
1232
- },
1233
- "description": "The property name."
1234
- }
1235
- ],
1236
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
830
+ "kind": "variable",
831
+ "name": "stringArrayConverter",
832
+ "type": {
833
+ "text": "ValueConverter"
834
+ },
835
+ "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}",
836
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
1237
837
  "privacy": "public"
1238
838
  }
1239
839
  ],
1240
840
  "exports": [
1241
841
  {
1242
842
  "kind": "js",
1243
- "name": "renderOnChange",
843
+ "name": "stringArrayConverter",
1244
844
  "declaration": {
1245
- "name": "renderOnChange",
1246
- "module": "src/decorators/renderOnChange.ts"
845
+ "name": "stringArrayConverter",
846
+ "module": "src/converters/string-array-converter.ts"
847
+ }
848
+ }
849
+ ]
850
+ },
851
+ {
852
+ "kind": "javascript-module",
853
+ "path": "src/design-system/design-system.ts",
854
+ "declarations": [
855
+ {
856
+ "kind": "function",
857
+ "name": "assureDesignSystem",
858
+ "return": {
859
+ "type": {
860
+ "text": "DesignSystemModule"
861
+ }
862
+ },
863
+ "parameters": [
864
+ {
865
+ "name": "module",
866
+ "type": {
867
+ "text": "DesignSystemModule"
868
+ }
869
+ }
870
+ ],
871
+ "description": "assureDesignSystem.",
872
+ "privacy": "public"
873
+ },
874
+ {
875
+ "kind": "function",
876
+ "name": "getCurrentDesignSystem",
877
+ "return": {
878
+ "type": {
879
+ "text": ""
880
+ }
881
+ },
882
+ "parameters": [
883
+ {
884
+ "name": "element",
885
+ "type": {
886
+ "text": "HTMLElement"
887
+ },
888
+ "description": "The starting HTML element"
889
+ },
890
+ {
891
+ "name": "fallbackPrefix",
892
+ "type": {
893
+ "text": "string"
894
+ },
895
+ "description": "The prefix to fallback to if the provider is not available"
896
+ }
897
+ ],
898
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
899
+ "privacy": "public"
900
+ },
901
+ {
902
+ "kind": "function",
903
+ "name": "getCurrentDesignSystemPrefix",
904
+ "return": {
905
+ "type": {
906
+ "text": ""
907
+ }
908
+ },
909
+ "parameters": [
910
+ {
911
+ "name": "element",
912
+ "type": {
913
+ "text": "HTMLElement"
914
+ },
915
+ "description": "The starting HTML element"
916
+ },
917
+ {
918
+ "name": "fallbackPrefix",
919
+ "type": {
920
+ "text": "string"
921
+ },
922
+ "description": "The prefix to fallback to if the provider is not available"
923
+ }
924
+ ],
925
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
926
+ "privacy": "public"
927
+ }
928
+ ],
929
+ "exports": [
930
+ {
931
+ "kind": "js",
932
+ "name": "assureDesignSystem",
933
+ "declaration": {
934
+ "name": "assureDesignSystem",
935
+ "module": "src/design-system/design-system.ts"
936
+ }
937
+ },
938
+ {
939
+ "kind": "js",
940
+ "name": "getCurrentDesignSystem",
941
+ "declaration": {
942
+ "name": "getCurrentDesignSystem",
943
+ "module": "src/design-system/design-system.ts"
944
+ }
945
+ },
946
+ {
947
+ "kind": "js",
948
+ "name": "getCurrentDesignSystemPrefix",
949
+ "declaration": {
950
+ "name": "getCurrentDesignSystemPrefix",
951
+ "module": "src/design-system/design-system.ts"
952
+ }
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "kind": "javascript-module",
958
+ "path": "src/design-system/editable-elements.ts",
959
+ "declarations": [
960
+ {
961
+ "kind": "variable",
962
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
963
+ "type": {
964
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
965
+ },
966
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
967
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
968
+ },
969
+ {
970
+ "kind": "variable",
971
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
972
+ "type": {
973
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
974
+ },
975
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
976
+ "description": "Design-system specific editable host selectors."
977
+ },
978
+ {
979
+ "kind": "function",
980
+ "name": "buildEditableElementSelector",
981
+ "return": {
982
+ "type": {
983
+ "text": "string"
984
+ }
985
+ },
986
+ "parameters": [
987
+ {
988
+ "name": "designSystems",
989
+ "type": {
990
+ "text": "readonly EditableDesignSystemPrefix[]"
991
+ }
992
+ },
993
+ {
994
+ "name": "customEditableSelectors",
995
+ "default": "[]",
996
+ "type": {
997
+ "text": "readonly string[]"
998
+ }
999
+ }
1000
+ ]
1001
+ }
1002
+ ],
1003
+ "exports": [
1004
+ {
1005
+ "kind": "js",
1006
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1007
+ "declaration": {
1008
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1009
+ "module": "src/design-system/editable-elements.ts"
1010
+ }
1011
+ },
1012
+ {
1013
+ "kind": "js",
1014
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1015
+ "declaration": {
1016
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1017
+ "module": "src/design-system/editable-elements.ts"
1018
+ }
1019
+ },
1020
+ {
1021
+ "kind": "js",
1022
+ "name": "buildEditableElementSelector",
1023
+ "declaration": {
1024
+ "name": "buildEditableElementSelector",
1025
+ "module": "src/design-system/editable-elements.ts"
1026
+ }
1027
+ }
1028
+ ]
1029
+ },
1030
+ {
1031
+ "kind": "javascript-module",
1032
+ "path": "src/design-system/index.ts",
1033
+ "declarations": [],
1034
+ "exports": [
1035
+ {
1036
+ "kind": "js",
1037
+ "name": "*",
1038
+ "declaration": {
1039
+ "name": "*",
1040
+ "package": "./design-system"
1041
+ }
1042
+ },
1043
+ {
1044
+ "kind": "js",
1045
+ "name": "*",
1046
+ "declaration": {
1047
+ "name": "*",
1048
+ "package": "./editable-elements"
1049
+ }
1050
+ }
1051
+ ]
1052
+ },
1053
+ {
1054
+ "kind": "javascript-module",
1055
+ "path": "src/data/inMemoryDatabase.ts",
1056
+ "declarations": [
1057
+ {
1058
+ "kind": "class",
1059
+ "description": "An in memory database of specific DatabaseRecord types.",
1060
+ "name": "InMemoryDatabase",
1061
+ "members": [
1062
+ {
1063
+ "kind": "field",
1064
+ "name": "isWorking",
1065
+ "type": {
1066
+ "text": "boolean"
1067
+ },
1068
+ "privacy": "public",
1069
+ "default": "false"
1070
+ },
1071
+ {
1072
+ "kind": "field",
1073
+ "name": "records",
1074
+ "type": {
1075
+ "text": "Record<string, T>"
1076
+ },
1077
+ "privacy": "private",
1078
+ "default": "{}"
1079
+ },
1080
+ {
1081
+ "kind": "field",
1082
+ "name": "beforeUpdateListeners",
1083
+ "privacy": "private"
1084
+ },
1085
+ {
1086
+ "kind": "field",
1087
+ "name": "afterUpdateListeners",
1088
+ "privacy": "private"
1089
+ },
1090
+ {
1091
+ "kind": "method",
1092
+ "name": "create",
1093
+ "privacy": "public",
1094
+ "return": {
1095
+ "type": {
1096
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1097
+ }
1098
+ },
1099
+ "parameters": [
1100
+ {
1101
+ "name": "newValue",
1102
+ "type": {
1103
+ "text": "Omit<T, 'id'>"
1104
+ }
1105
+ }
1106
+ ]
1107
+ },
1108
+ {
1109
+ "kind": "method",
1110
+ "name": "read",
1111
+ "privacy": "public",
1112
+ "return": {
1113
+ "type": {
1114
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1115
+ }
1116
+ },
1117
+ "parameters": [
1118
+ {
1119
+ "name": "id",
1120
+ "type": {
1121
+ "text": "string"
1122
+ }
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "kind": "method",
1128
+ "name": "update",
1129
+ "privacy": "public",
1130
+ "return": {
1131
+ "type": {
1132
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1133
+ }
1134
+ },
1135
+ "parameters": [
1136
+ {
1137
+ "name": "id",
1138
+ "type": {
1139
+ "text": "string"
1140
+ }
1141
+ },
1142
+ {
1143
+ "name": "newValue",
1144
+ "type": {
1145
+ "text": "Omit<Partial<T>, 'id'>"
1146
+ }
1147
+ }
1148
+ ]
1149
+ },
1150
+ {
1151
+ "kind": "method",
1152
+ "name": "delete",
1153
+ "privacy": "public",
1154
+ "return": {
1155
+ "type": {
1156
+ "text": "Promise<DatabaseAccessResult.Delete>"
1157
+ }
1158
+ },
1159
+ "parameters": [
1160
+ {
1161
+ "name": "id",
1162
+ "type": {
1163
+ "text": "string"
1164
+ }
1165
+ }
1166
+ ]
1167
+ },
1168
+ {
1169
+ "kind": "method",
1170
+ "name": "visit",
1171
+ "privacy": "public",
1172
+ "return": {
1173
+ "type": {
1174
+ "text": "Promise<void>"
1175
+ }
1176
+ },
1177
+ "parameters": [
1178
+ {
1179
+ "name": "visitor",
1180
+ "type": {
1181
+ "text": "(record: T) => void"
1182
+ }
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ "kind": "method",
1188
+ "name": "onBeforeUpdate",
1189
+ "privacy": "public",
1190
+ "return": {
1191
+ "type": {
1192
+ "text": "() => void"
1193
+ }
1194
+ },
1195
+ "parameters": [
1196
+ {
1197
+ "name": "listener",
1198
+ "type": {
1199
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1200
+ }
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "kind": "method",
1206
+ "name": "onAfterUpdate",
1207
+ "privacy": "public",
1208
+ "return": {
1209
+ "type": {
1210
+ "text": "() => void"
1211
+ }
1212
+ },
1213
+ "parameters": [
1214
+ {
1215
+ "name": "listener",
1216
+ "type": {
1217
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1218
+ }
1219
+ }
1220
+ ]
1221
+ }
1222
+ ]
1223
+ }
1224
+ ],
1225
+ "exports": [
1226
+ {
1227
+ "kind": "js",
1228
+ "name": "InMemoryDatabase",
1229
+ "declaration": {
1230
+ "name": "InMemoryDatabase",
1231
+ "module": "src/data/inMemoryDatabase.ts"
1232
+ }
1233
+ }
1234
+ ]
1235
+ },
1236
+ {
1237
+ "kind": "javascript-module",
1238
+ "path": "src/data/index.ts",
1239
+ "declarations": [],
1240
+ "exports": [
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "*",
1244
+ "declaration": {
1245
+ "name": "*",
1246
+ "package": "./inMemoryDatabase"
1247
1247
  }
1248
1248
  }
1249
1249
  ]
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.58.0",
4
+ "version": "15.58.1",
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.58.0",
33
- "@genesislcap/genx": "15.58.0",
34
- "@genesislcap/ts-builder": "15.58.0",
35
- "@genesislcap/uvu-playwright-builder": "15.58.0",
36
- "@genesislcap/vite-builder": "15.58.0",
37
- "@genesislcap/webpack-builder": "15.58.0",
32
+ "@genesislcap/foundation-testing": "15.58.1",
33
+ "@genesislcap/genx": "15.58.1",
34
+ "@genesislcap/ts-builder": "15.58.1",
35
+ "@genesislcap/uvu-playwright-builder": "15.58.1",
36
+ "@genesislcap/vite-builder": "15.58.1",
37
+ "@genesislcap/webpack-builder": "15.58.1",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.58.0",
42
- "@genesislcap/foundation-logger": "15.58.0",
41
+ "@genesislcap/expression-builder": "15.58.1",
42
+ "@genesislcap/foundation-logger": "15.58.1",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",