@genesislcap/foundation-utils 14.217.5 → 14.217.6-alpha-f6d0d1c0fdc7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +372 -372
  2. package/package.json +10 -10
@@ -167,257 +167,6 @@
167
167
  }
168
168
  ]
169
169
  },
170
- {
171
- "kind": "javascript-module",
172
- "path": "src/data/inMemoryDatabase.ts",
173
- "declarations": [
174
- {
175
- "kind": "class",
176
- "description": "An in memory database of specific DatabaseRecord types.",
177
- "name": "InMemoryDatabase",
178
- "members": [
179
- {
180
- "kind": "field",
181
- "name": "isWorking",
182
- "type": {
183
- "text": "boolean"
184
- },
185
- "privacy": "public",
186
- "default": "false"
187
- },
188
- {
189
- "kind": "field",
190
- "name": "records",
191
- "type": {
192
- "text": "Record<string, T>"
193
- },
194
- "privacy": "private",
195
- "default": "{}"
196
- },
197
- {
198
- "kind": "field",
199
- "name": "beforeUpdateListeners",
200
- "privacy": "private"
201
- },
202
- {
203
- "kind": "field",
204
- "name": "afterUpdateListeners",
205
- "privacy": "private"
206
- },
207
- {
208
- "kind": "method",
209
- "name": "create",
210
- "privacy": "public",
211
- "return": {
212
- "type": {
213
- "text": "Promise<DatabaseAccessResult.Create<T>>"
214
- }
215
- },
216
- "parameters": [
217
- {
218
- "name": "newValue",
219
- "type": {
220
- "text": "Omit<T, 'id'>"
221
- }
222
- }
223
- ]
224
- },
225
- {
226
- "kind": "method",
227
- "name": "read",
228
- "privacy": "public",
229
- "return": {
230
- "type": {
231
- "text": "Promise<DatabaseAccessResult.Read<T>>"
232
- }
233
- },
234
- "parameters": [
235
- {
236
- "name": "id",
237
- "type": {
238
- "text": "string"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "method",
245
- "name": "update",
246
- "privacy": "public",
247
- "return": {
248
- "type": {
249
- "text": "Promise<DatabaseAccessResult.Update<T>>"
250
- }
251
- },
252
- "parameters": [
253
- {
254
- "name": "id",
255
- "type": {
256
- "text": "string"
257
- }
258
- },
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<Partial<T>, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "delete",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Delete>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "visit",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<void>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "visitor",
297
- "type": {
298
- "text": "(record: T) => void"
299
- }
300
- }
301
- ]
302
- },
303
- {
304
- "kind": "method",
305
- "name": "onBeforeUpdate",
306
- "privacy": "public",
307
- "return": {
308
- "type": {
309
- "text": "() => void"
310
- }
311
- },
312
- "parameters": [
313
- {
314
- "name": "listener",
315
- "type": {
316
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
317
- }
318
- }
319
- ]
320
- },
321
- {
322
- "kind": "method",
323
- "name": "onAfterUpdate",
324
- "privacy": "public",
325
- "return": {
326
- "type": {
327
- "text": "() => void"
328
- }
329
- },
330
- "parameters": [
331
- {
332
- "name": "listener",
333
- "type": {
334
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
335
- }
336
- }
337
- ]
338
- }
339
- ]
340
- }
341
- ],
342
- "exports": [
343
- {
344
- "kind": "js",
345
- "name": "InMemoryDatabase",
346
- "declaration": {
347
- "name": "InMemoryDatabase",
348
- "module": "src/data/inMemoryDatabase.ts"
349
- }
350
- }
351
- ]
352
- },
353
- {
354
- "kind": "javascript-module",
355
- "path": "src/data/index.ts",
356
- "declarations": [],
357
- "exports": [
358
- {
359
- "kind": "js",
360
- "name": "*",
361
- "declaration": {
362
- "name": "*",
363
- "package": "./inMemoryDatabase"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "kind": "javascript-module",
370
- "path": "src/decorators/index.ts",
371
- "declarations": [],
372
- "exports": [
373
- {
374
- "kind": "js",
375
- "name": "*",
376
- "declaration": {
377
- "name": "*",
378
- "package": "./renderOnChange"
379
- }
380
- }
381
- ]
382
- },
383
- {
384
- "kind": "javascript-module",
385
- "path": "src/decorators/renderOnChange.ts",
386
- "declarations": [
387
- {
388
- "kind": "function",
389
- "name": "renderOnChange",
390
- "parameters": [
391
- {
392
- "name": "target",
393
- "type": {
394
- "text": "FASTElement & { render(): void }"
395
- },
396
- "description": "The target to define the property change handler on."
397
- },
398
- {
399
- "name": "name",
400
- "type": {
401
- "text": "string"
402
- },
403
- "description": "The property name."
404
- }
405
- ],
406
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
407
- "privacy": "public"
408
- }
409
- ],
410
- "exports": [
411
- {
412
- "kind": "js",
413
- "name": "renderOnChange",
414
- "declaration": {
415
- "name": "renderOnChange",
416
- "module": "src/decorators/renderOnChange.ts"
417
- }
418
- }
419
- ]
420
- },
421
170
  {
422
171
  "kind": "javascript-module",
423
172
  "path": "src/design-system/design-system.ts",
@@ -468,29 +217,6 @@
468
217
  }
469
218
  ]
470
219
  },
471
- {
472
- "kind": "javascript-module",
473
- "path": "src/directives/index.ts",
474
- "declarations": [],
475
- "exports": [
476
- {
477
- "kind": "js",
478
- "name": "*",
479
- "declaration": {
480
- "name": "*",
481
- "package": "./sync"
482
- }
483
- },
484
- {
485
- "kind": "js",
486
- "name": "*",
487
- "declaration": {
488
- "name": "*",
489
- "package": "./when-else"
490
- }
491
- }
492
- ]
493
- },
494
220
  {
495
221
  "kind": "javascript-module",
496
222
  "path": "src/env/index.ts",
@@ -746,176 +472,374 @@
746
472
  },
747
473
  {
748
474
  "kind": "field",
749
- "name": "lastError",
750
- "type": {
751
- "text": "Error"
752
- },
753
- "description": "{@inheritDoc ErrorMap.lastError}"
475
+ "name": "lastError",
476
+ "type": {
477
+ "text": "Error"
478
+ },
479
+ "description": "{@inheritDoc ErrorMap.lastError}"
480
+ },
481
+ {
482
+ "kind": "method",
483
+ "name": "set",
484
+ "return": {
485
+ "type": {
486
+ "text": "void"
487
+ }
488
+ },
489
+ "parameters": [
490
+ {
491
+ "name": "key",
492
+ "type": {
493
+ "text": "keyof TErrorDetailMap"
494
+ }
495
+ },
496
+ {
497
+ "name": "error",
498
+ "type": {
499
+ "text": "Error"
500
+ }
501
+ }
502
+ ],
503
+ "description": "{@inheritDoc ErrorMap.set}"
504
+ },
505
+ {
506
+ "kind": "method",
507
+ "name": "get",
508
+ "return": {
509
+ "type": {
510
+ "text": ""
511
+ }
512
+ },
513
+ "parameters": [
514
+ {
515
+ "name": "key",
516
+ "type": {
517
+ "text": "keyof TErrorDetailMap"
518
+ },
519
+ "description": "The key."
520
+ }
521
+ ],
522
+ "description": "Get an error by key.",
523
+ "privacy": "public"
524
+ },
525
+ {
526
+ "kind": "method",
527
+ "name": "has",
528
+ "return": {
529
+ "type": {
530
+ "text": ""
531
+ }
532
+ },
533
+ "parameters": [
534
+ {
535
+ "name": "key",
536
+ "type": {
537
+ "text": "keyof TErrorDetailMap"
538
+ },
539
+ "description": "The key."
540
+ }
541
+ ],
542
+ "description": "Has an error for key.",
543
+ "privacy": "public"
544
+ },
545
+ {
546
+ "kind": "method",
547
+ "name": "delete",
548
+ "return": {
549
+ "type": {
550
+ "text": ""
551
+ }
552
+ },
553
+ "parameters": [
554
+ {
555
+ "name": "key",
556
+ "type": {
557
+ "text": "keyof TErrorDetailMap"
558
+ },
559
+ "description": "The key."
560
+ }
561
+ ],
562
+ "description": "Delete an error.",
563
+ "privacy": "public"
564
+ },
565
+ {
566
+ "kind": "method",
567
+ "name": "clear",
568
+ "description": "Clear errors.",
569
+ "privacy": "public"
570
+ },
571
+ {
572
+ "kind": "field",
573
+ "name": "size",
574
+ "type": {
575
+ "text": "number"
576
+ },
577
+ "description": "The size of the error map.",
578
+ "return": {
579
+ "type": {
580
+ "text": ""
581
+ }
582
+ },
583
+ "privacy": "public",
584
+ "readonly": true
585
+ },
586
+ {
587
+ "kind": "method",
588
+ "name": "values",
589
+ "privacy": "public"
590
+ },
591
+ {
592
+ "kind": "field",
593
+ "name": "messages",
594
+ "type": {
595
+ "text": "string"
596
+ },
597
+ "description": "{@inheritDoc ErrorMap.messages}",
598
+ "readonly": true
599
+ }
600
+ ]
601
+ },
602
+ {
603
+ "kind": "function",
604
+ "name": "createErrorMap",
605
+ "return": {
606
+ "type": {
607
+ "text": ""
608
+ }
609
+ },
610
+ "parameters": [
611
+ {
612
+ "name": "logger",
613
+ "type": {
614
+ "text": "ErrorMapLogger"
615
+ },
616
+ "description": "A logger error method reference."
617
+ }
618
+ ],
619
+ "description": "A factory to create the error map.",
620
+ "privacy": "public"
621
+ }
622
+ ],
623
+ "exports": [
624
+ {
625
+ "kind": "js",
626
+ "name": "DefaultErrorMap",
627
+ "declaration": {
628
+ "name": "DefaultErrorMap",
629
+ "module": "src/error/errorMap.ts"
630
+ }
631
+ },
632
+ {
633
+ "kind": "js",
634
+ "name": "createErrorMap",
635
+ "declaration": {
636
+ "name": "createErrorMap",
637
+ "module": "src/error/errorMap.ts"
638
+ }
639
+ }
640
+ ]
641
+ },
642
+ {
643
+ "kind": "javascript-module",
644
+ "path": "src/error/index.ts",
645
+ "declarations": [],
646
+ "exports": [
647
+ {
648
+ "kind": "js",
649
+ "name": "*",
650
+ "declaration": {
651
+ "name": "*",
652
+ "package": "./errorMap"
653
+ }
654
+ }
655
+ ]
656
+ },
657
+ {
658
+ "kind": "javascript-module",
659
+ "path": "src/data/inMemoryDatabase.ts",
660
+ "declarations": [
661
+ {
662
+ "kind": "class",
663
+ "description": "An in memory database of specific DatabaseRecord types.",
664
+ "name": "InMemoryDatabase",
665
+ "members": [
666
+ {
667
+ "kind": "field",
668
+ "name": "isWorking",
669
+ "type": {
670
+ "text": "boolean"
671
+ },
672
+ "privacy": "public",
673
+ "default": "false"
674
+ },
675
+ {
676
+ "kind": "field",
677
+ "name": "records",
678
+ "type": {
679
+ "text": "Record<string, T>"
680
+ },
681
+ "privacy": "private",
682
+ "default": "{}"
683
+ },
684
+ {
685
+ "kind": "field",
686
+ "name": "beforeUpdateListeners",
687
+ "privacy": "private"
688
+ },
689
+ {
690
+ "kind": "field",
691
+ "name": "afterUpdateListeners",
692
+ "privacy": "private"
754
693
  },
755
694
  {
756
695
  "kind": "method",
757
- "name": "set",
696
+ "name": "create",
697
+ "privacy": "public",
758
698
  "return": {
759
699
  "type": {
760
- "text": "void"
700
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
761
701
  }
762
702
  },
763
703
  "parameters": [
764
704
  {
765
- "name": "key",
766
- "type": {
767
- "text": "keyof TErrorDetailMap"
768
- }
769
- },
770
- {
771
- "name": "error",
705
+ "name": "newValue",
772
706
  "type": {
773
- "text": "Error"
707
+ "text": "Omit<T, 'id'>"
774
708
  }
775
709
  }
776
- ],
777
- "description": "{@inheritDoc ErrorMap.set}"
710
+ ]
778
711
  },
779
712
  {
780
713
  "kind": "method",
781
- "name": "get",
714
+ "name": "read",
715
+ "privacy": "public",
782
716
  "return": {
783
717
  "type": {
784
- "text": ""
718
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
785
719
  }
786
720
  },
787
721
  "parameters": [
788
722
  {
789
- "name": "key",
723
+ "name": "id",
790
724
  "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
725
+ "text": "string"
726
+ }
794
727
  }
795
- ],
796
- "description": "Get an error by key.",
797
- "privacy": "public"
728
+ ]
798
729
  },
799
730
  {
800
731
  "kind": "method",
801
- "name": "has",
732
+ "name": "update",
733
+ "privacy": "public",
802
734
  "return": {
803
735
  "type": {
804
- "text": ""
736
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
805
737
  }
806
738
  },
807
739
  "parameters": [
808
740
  {
809
- "name": "key",
741
+ "name": "id",
810
742
  "type": {
811
- "text": "keyof TErrorDetailMap"
812
- },
813
- "description": "The key."
743
+ "text": "string"
744
+ }
745
+ },
746
+ {
747
+ "name": "newValue",
748
+ "type": {
749
+ "text": "Omit<Partial<T>, 'id'>"
750
+ }
814
751
  }
815
- ],
816
- "description": "Has an error for key.",
817
- "privacy": "public"
752
+ ]
818
753
  },
819
754
  {
820
755
  "kind": "method",
821
756
  "name": "delete",
757
+ "privacy": "public",
822
758
  "return": {
823
759
  "type": {
824
- "text": ""
760
+ "text": "Promise<DatabaseAccessResult.Delete>"
825
761
  }
826
762
  },
827
763
  "parameters": [
828
764
  {
829
- "name": "key",
765
+ "name": "id",
830
766
  "type": {
831
- "text": "keyof TErrorDetailMap"
832
- },
833
- "description": "The key."
767
+ "text": "string"
768
+ }
834
769
  }
835
- ],
836
- "description": "Delete an error.",
837
- "privacy": "public"
770
+ ]
838
771
  },
839
772
  {
840
773
  "kind": "method",
841
- "name": "clear",
842
- "description": "Clear errors.",
843
- "privacy": "public"
844
- },
845
- {
846
- "kind": "field",
847
- "name": "size",
848
- "type": {
849
- "text": "number"
850
- },
851
- "description": "The size of the error map.",
774
+ "name": "visit",
775
+ "privacy": "public",
852
776
  "return": {
853
777
  "type": {
854
- "text": ""
778
+ "text": "Promise<void>"
855
779
  }
856
780
  },
857
- "privacy": "public",
858
- "readonly": true
781
+ "parameters": [
782
+ {
783
+ "name": "visitor",
784
+ "type": {
785
+ "text": "(record: T) => void"
786
+ }
787
+ }
788
+ ]
859
789
  },
860
790
  {
861
791
  "kind": "method",
862
- "name": "values",
863
- "privacy": "public"
792
+ "name": "onBeforeUpdate",
793
+ "privacy": "public",
794
+ "return": {
795
+ "type": {
796
+ "text": "() => void"
797
+ }
798
+ },
799
+ "parameters": [
800
+ {
801
+ "name": "listener",
802
+ "type": {
803
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
804
+ }
805
+ }
806
+ ]
864
807
  },
865
808
  {
866
- "kind": "field",
867
- "name": "messages",
868
- "type": {
869
- "text": "string"
809
+ "kind": "method",
810
+ "name": "onAfterUpdate",
811
+ "privacy": "public",
812
+ "return": {
813
+ "type": {
814
+ "text": "() => void"
815
+ }
870
816
  },
871
- "description": "{@inheritDoc ErrorMap.messages}",
872
- "readonly": true
817
+ "parameters": [
818
+ {
819
+ "name": "listener",
820
+ "type": {
821
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
822
+ }
823
+ }
824
+ ]
873
825
  }
874
826
  ]
875
- },
876
- {
877
- "kind": "function",
878
- "name": "createErrorMap",
879
- "return": {
880
- "type": {
881
- "text": ""
882
- }
883
- },
884
- "parameters": [
885
- {
886
- "name": "logger",
887
- "type": {
888
- "text": "ErrorMapLogger"
889
- },
890
- "description": "A logger error method reference."
891
- }
892
- ],
893
- "description": "A factory to create the error map.",
894
- "privacy": "public"
895
827
  }
896
828
  ],
897
829
  "exports": [
898
830
  {
899
831
  "kind": "js",
900
- "name": "DefaultErrorMap",
901
- "declaration": {
902
- "name": "DefaultErrorMap",
903
- "module": "src/error/errorMap.ts"
904
- }
905
- },
906
- {
907
- "kind": "js",
908
- "name": "createErrorMap",
832
+ "name": "InMemoryDatabase",
909
833
  "declaration": {
910
- "name": "createErrorMap",
911
- "module": "src/error/errorMap.ts"
834
+ "name": "InMemoryDatabase",
835
+ "module": "src/data/inMemoryDatabase.ts"
912
836
  }
913
837
  }
914
838
  ]
915
839
  },
916
840
  {
917
841
  "kind": "javascript-module",
918
- "path": "src/error/index.ts",
842
+ "path": "src/data/index.ts",
919
843
  "declarations": [],
920
844
  "exports": [
921
845
  {
@@ -923,7 +847,7 @@
923
847
  "name": "*",
924
848
  "declaration": {
925
849
  "name": "*",
926
- "package": "./errorMap"
850
+ "package": "./inMemoryDatabase"
927
851
  }
928
852
  }
929
853
  ]
@@ -1213,6 +1137,82 @@
1213
1137
  }
1214
1138
  ]
1215
1139
  },
1140
+ {
1141
+ "kind": "javascript-module",
1142
+ "path": "src/directives/index.ts",
1143
+ "declarations": [],
1144
+ "exports": [
1145
+ {
1146
+ "kind": "js",
1147
+ "name": "*",
1148
+ "declaration": {
1149
+ "name": "*",
1150
+ "package": "./sync"
1151
+ }
1152
+ },
1153
+ {
1154
+ "kind": "js",
1155
+ "name": "*",
1156
+ "declaration": {
1157
+ "name": "*",
1158
+ "package": "./when-else"
1159
+ }
1160
+ }
1161
+ ]
1162
+ },
1163
+ {
1164
+ "kind": "javascript-module",
1165
+ "path": "src/decorators/index.ts",
1166
+ "declarations": [],
1167
+ "exports": [
1168
+ {
1169
+ "kind": "js",
1170
+ "name": "*",
1171
+ "declaration": {
1172
+ "name": "*",
1173
+ "package": "./renderOnChange"
1174
+ }
1175
+ }
1176
+ ]
1177
+ },
1178
+ {
1179
+ "kind": "javascript-module",
1180
+ "path": "src/decorators/renderOnChange.ts",
1181
+ "declarations": [
1182
+ {
1183
+ "kind": "function",
1184
+ "name": "renderOnChange",
1185
+ "parameters": [
1186
+ {
1187
+ "name": "target",
1188
+ "type": {
1189
+ "text": "FASTElement & { render(): void }"
1190
+ },
1191
+ "description": "The target to define the property change handler on."
1192
+ },
1193
+ {
1194
+ "name": "name",
1195
+ "type": {
1196
+ "text": "string"
1197
+ },
1198
+ "description": "The property name."
1199
+ }
1200
+ ],
1201
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1202
+ "privacy": "public"
1203
+ }
1204
+ ],
1205
+ "exports": [
1206
+ {
1207
+ "kind": "js",
1208
+ "name": "renderOnChange",
1209
+ "declaration": {
1210
+ "name": "renderOnChange",
1211
+ "module": "src/decorators/renderOnChange.ts"
1212
+ }
1213
+ }
1214
+ ]
1215
+ },
1216
1216
  {
1217
1217
  "kind": "javascript-module",
1218
1218
  "path": "src/logger/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": "14.217.5",
4
+ "version": "14.217.6-alpha-f6d0d1c0fdc7.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.217.5",
31
- "@genesislcap/genx": "14.217.5",
32
- "@genesislcap/rollup-builder": "14.217.5",
33
- "@genesislcap/ts-builder": "14.217.5",
34
- "@genesislcap/uvu-playwright-builder": "14.217.5",
35
- "@genesislcap/vite-builder": "14.217.5",
36
- "@genesislcap/webpack-builder": "14.217.5",
30
+ "@genesislcap/foundation-testing": "14.217.6-alpha-f6d0d1c0fdc7.0",
31
+ "@genesislcap/genx": "14.217.6-alpha-f6d0d1c0fdc7.0",
32
+ "@genesislcap/rollup-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
33
+ "@genesislcap/ts-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
35
+ "@genesislcap/vite-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
36
+ "@genesislcap/webpack-builder": "14.217.6-alpha-f6d0d1c0fdc7.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.217.5",
40
+ "@genesislcap/foundation-logger": "14.217.6-alpha-f6d0d1c0fdc7.0",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "c1c1d2beb1f683dd154311a638a40bcb2a1a1cab"
58
+ "gitHead": "2d8bbf3cb2cf1ec3d91d958ee2739cf426ae7d04"
59
59
  }