@genesislcap/foundation-utils 14.237.1 → 14.238.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +372 -372
  2. package/package.json +10 -10
@@ -169,307 +169,6 @@
169
169
  }
170
170
  ]
171
171
  },
172
- {
173
- "kind": "javascript-module",
174
- "path": "src/data/inMemoryDatabase.ts",
175
- "declarations": [
176
- {
177
- "kind": "class",
178
- "description": "An in memory database of specific DatabaseRecord types.",
179
- "name": "InMemoryDatabase",
180
- "members": [
181
- {
182
- "kind": "field",
183
- "name": "isWorking",
184
- "type": {
185
- "text": "boolean"
186
- },
187
- "privacy": "public",
188
- "default": "false"
189
- },
190
- {
191
- "kind": "field",
192
- "name": "records",
193
- "type": {
194
- "text": "Record<string, T>"
195
- },
196
- "privacy": "private",
197
- "default": "{}"
198
- },
199
- {
200
- "kind": "field",
201
- "name": "beforeUpdateListeners",
202
- "privacy": "private"
203
- },
204
- {
205
- "kind": "field",
206
- "name": "afterUpdateListeners",
207
- "privacy": "private"
208
- },
209
- {
210
- "kind": "method",
211
- "name": "create",
212
- "privacy": "public",
213
- "return": {
214
- "type": {
215
- "text": "Promise<DatabaseAccessResult.Create<T>>"
216
- }
217
- },
218
- "parameters": [
219
- {
220
- "name": "newValue",
221
- "type": {
222
- "text": "Omit<T, 'id'>"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "method",
229
- "name": "read",
230
- "privacy": "public",
231
- "return": {
232
- "type": {
233
- "text": "Promise<DatabaseAccessResult.Read<T>>"
234
- }
235
- },
236
- "parameters": [
237
- {
238
- "name": "id",
239
- "type": {
240
- "text": "string"
241
- }
242
- }
243
- ]
244
- },
245
- {
246
- "kind": "method",
247
- "name": "update",
248
- "privacy": "public",
249
- "return": {
250
- "type": {
251
- "text": "Promise<DatabaseAccessResult.Update<T>>"
252
- }
253
- },
254
- "parameters": [
255
- {
256
- "name": "id",
257
- "type": {
258
- "text": "string"
259
- }
260
- },
261
- {
262
- "name": "newValue",
263
- "type": {
264
- "text": "Omit<Partial<T>, 'id'>"
265
- }
266
- }
267
- ]
268
- },
269
- {
270
- "kind": "method",
271
- "name": "delete",
272
- "privacy": "public",
273
- "return": {
274
- "type": {
275
- "text": "Promise<DatabaseAccessResult.Delete>"
276
- }
277
- },
278
- "parameters": [
279
- {
280
- "name": "id",
281
- "type": {
282
- "text": "string"
283
- }
284
- }
285
- ]
286
- },
287
- {
288
- "kind": "method",
289
- "name": "visit",
290
- "privacy": "public",
291
- "return": {
292
- "type": {
293
- "text": "Promise<void>"
294
- }
295
- },
296
- "parameters": [
297
- {
298
- "name": "visitor",
299
- "type": {
300
- "text": "(record: T) => void"
301
- }
302
- }
303
- ]
304
- },
305
- {
306
- "kind": "method",
307
- "name": "onBeforeUpdate",
308
- "privacy": "public",
309
- "return": {
310
- "type": {
311
- "text": "() => void"
312
- }
313
- },
314
- "parameters": [
315
- {
316
- "name": "listener",
317
- "type": {
318
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
319
- }
320
- }
321
- ]
322
- },
323
- {
324
- "kind": "method",
325
- "name": "onAfterUpdate",
326
- "privacy": "public",
327
- "return": {
328
- "type": {
329
- "text": "() => void"
330
- }
331
- },
332
- "parameters": [
333
- {
334
- "name": "listener",
335
- "type": {
336
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
337
- }
338
- }
339
- ]
340
- }
341
- ]
342
- }
343
- ],
344
- "exports": [
345
- {
346
- "kind": "js",
347
- "name": "InMemoryDatabase",
348
- "declaration": {
349
- "name": "InMemoryDatabase",
350
- "module": "src/data/inMemoryDatabase.ts"
351
- }
352
- }
353
- ]
354
- },
355
- {
356
- "kind": "javascript-module",
357
- "path": "src/data/index.ts",
358
- "declarations": [],
359
- "exports": [
360
- {
361
- "kind": "js",
362
- "name": "*",
363
- "declaration": {
364
- "name": "*",
365
- "package": "./inMemoryDatabase"
366
- }
367
- }
368
- ]
369
- },
370
- {
371
- "kind": "javascript-module",
372
- "path": "src/decorators/index.ts",
373
- "declarations": [],
374
- "exports": [
375
- {
376
- "kind": "js",
377
- "name": "*",
378
- "declaration": {
379
- "name": "*",
380
- "package": "./renderOnChange"
381
- }
382
- }
383
- ]
384
- },
385
- {
386
- "kind": "javascript-module",
387
- "path": "src/decorators/renderOnChange.ts",
388
- "declarations": [
389
- {
390
- "kind": "function",
391
- "name": "renderOnChange",
392
- "parameters": [
393
- {
394
- "name": "target",
395
- "type": {
396
- "text": "FASTElement & { render(): void }"
397
- },
398
- "description": "The target to define the property change handler on."
399
- },
400
- {
401
- "name": "name",
402
- "type": {
403
- "text": "string"
404
- },
405
- "description": "The property name."
406
- }
407
- ],
408
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
409
- "privacy": "public"
410
- }
411
- ],
412
- "exports": [
413
- {
414
- "kind": "js",
415
- "name": "renderOnChange",
416
- "declaration": {
417
- "name": "renderOnChange",
418
- "module": "src/decorators/renderOnChange.ts"
419
- }
420
- }
421
- ]
422
- },
423
- {
424
- "kind": "javascript-module",
425
- "path": "src/design-system/design-system.ts",
426
- "declarations": [
427
- {
428
- "kind": "function",
429
- "name": "assureDesignSystem",
430
- "return": {
431
- "type": {
432
- "text": "DesignSystemModule"
433
- }
434
- },
435
- "parameters": [
436
- {
437
- "name": "module",
438
- "type": {
439
- "text": "DesignSystemModule"
440
- }
441
- }
442
- ],
443
- "description": "assureDesignSystem.",
444
- "privacy": "public"
445
- }
446
- ],
447
- "exports": [
448
- {
449
- "kind": "js",
450
- "name": "assureDesignSystem",
451
- "declaration": {
452
- "name": "assureDesignSystem",
453
- "module": "src/design-system/design-system.ts"
454
- }
455
- }
456
- ]
457
- },
458
- {
459
- "kind": "javascript-module",
460
- "path": "src/design-system/index.ts",
461
- "declarations": [],
462
- "exports": [
463
- {
464
- "kind": "js",
465
- "name": "*",
466
- "declaration": {
467
- "name": "*",
468
- "package": "./design-system"
469
- }
470
- }
471
- ]
472
- },
473
172
  {
474
173
  "kind": "javascript-module",
475
174
  "path": "src/directives/index.ts",
@@ -716,82 +415,280 @@
716
415
  "exports": [
717
416
  {
718
417
  "kind": "js",
719
- "name": "BUILDER",
720
- "declaration": {
721
- "name": "_BUILDER",
722
- "module": "src/env/variables.ts"
723
- }
724
- },
725
- {
726
- "kind": "js",
727
- "name": "PUBLIC_PATH",
728
- "declaration": {
729
- "name": "_PUBLIC_PATH",
730
- "module": "src/env/variables.ts"
731
- }
732
- },
733
- {
734
- "kind": "js",
735
- "name": "SOCKET_EXT",
736
- "declaration": {
737
- "name": "_SOCKET_EXT",
738
- "module": "src/env/variables.ts"
739
- }
740
- },
741
- {
742
- "kind": "js",
743
- "name": "FORCE_HTTP",
744
- "declaration": {
745
- "name": "_FORCE_HTTP",
746
- "module": "src/env/variables.ts"
747
- }
748
- },
749
- {
750
- "kind": "js",
751
- "name": "GENESIS_SOCKET_URL",
752
- "declaration": {
753
- "name": "GENESIS_SOCKET_URL",
754
- "module": "src/env/variables.ts"
755
- }
756
- },
757
- {
758
- "kind": "js",
759
- "name": "API_HOST",
760
- "declaration": {
761
- "name": "_API_HOST",
762
- "module": "src/env/variables.ts"
763
- }
764
- },
765
- {
766
- "kind": "js",
767
- "name": "HTTP_CONFIG",
768
- "declaration": {
769
- "name": "_HTTP_CONFIG",
770
- "module": "src/env/variables.ts"
771
- }
772
- },
773
- {
774
- "kind": "js",
775
- "name": "DEFAULT_ORGANISATION",
776
- "declaration": {
777
- "name": "_DEFAULT_ORGANISATION",
778
- "module": "src/env/variables.ts"
779
- }
780
- },
781
- {
782
- "kind": "js",
783
- "name": "DEFAULT_PASSWORD",
418
+ "name": "BUILDER",
419
+ "declaration": {
420
+ "name": "_BUILDER",
421
+ "module": "src/env/variables.ts"
422
+ }
423
+ },
424
+ {
425
+ "kind": "js",
426
+ "name": "PUBLIC_PATH",
427
+ "declaration": {
428
+ "name": "_PUBLIC_PATH",
429
+ "module": "src/env/variables.ts"
430
+ }
431
+ },
432
+ {
433
+ "kind": "js",
434
+ "name": "SOCKET_EXT",
435
+ "declaration": {
436
+ "name": "_SOCKET_EXT",
437
+ "module": "src/env/variables.ts"
438
+ }
439
+ },
440
+ {
441
+ "kind": "js",
442
+ "name": "FORCE_HTTP",
443
+ "declaration": {
444
+ "name": "_FORCE_HTTP",
445
+ "module": "src/env/variables.ts"
446
+ }
447
+ },
448
+ {
449
+ "kind": "js",
450
+ "name": "GENESIS_SOCKET_URL",
451
+ "declaration": {
452
+ "name": "GENESIS_SOCKET_URL",
453
+ "module": "src/env/variables.ts"
454
+ }
455
+ },
456
+ {
457
+ "kind": "js",
458
+ "name": "API_HOST",
459
+ "declaration": {
460
+ "name": "_API_HOST",
461
+ "module": "src/env/variables.ts"
462
+ }
463
+ },
464
+ {
465
+ "kind": "js",
466
+ "name": "HTTP_CONFIG",
467
+ "declaration": {
468
+ "name": "_HTTP_CONFIG",
469
+ "module": "src/env/variables.ts"
470
+ }
471
+ },
472
+ {
473
+ "kind": "js",
474
+ "name": "DEFAULT_ORGANISATION",
475
+ "declaration": {
476
+ "name": "_DEFAULT_ORGANISATION",
477
+ "module": "src/env/variables.ts"
478
+ }
479
+ },
480
+ {
481
+ "kind": "js",
482
+ "name": "DEFAULT_PASSWORD",
483
+ "declaration": {
484
+ "name": "_DEFAULT_PASSWORD",
485
+ "module": "src/env/variables.ts"
486
+ }
487
+ },
488
+ {
489
+ "kind": "js",
490
+ "name": "DEFAULT_USER",
491
+ "declaration": {
492
+ "name": "_DEFAULT_USER",
493
+ "module": "src/env/variables.ts"
494
+ }
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "kind": "javascript-module",
500
+ "path": "src/data/inMemoryDatabase.ts",
501
+ "declarations": [
502
+ {
503
+ "kind": "class",
504
+ "description": "An in memory database of specific DatabaseRecord types.",
505
+ "name": "InMemoryDatabase",
506
+ "members": [
507
+ {
508
+ "kind": "field",
509
+ "name": "isWorking",
510
+ "type": {
511
+ "text": "boolean"
512
+ },
513
+ "privacy": "public",
514
+ "default": "false"
515
+ },
516
+ {
517
+ "kind": "field",
518
+ "name": "records",
519
+ "type": {
520
+ "text": "Record<string, T>"
521
+ },
522
+ "privacy": "private",
523
+ "default": "{}"
524
+ },
525
+ {
526
+ "kind": "field",
527
+ "name": "beforeUpdateListeners",
528
+ "privacy": "private"
529
+ },
530
+ {
531
+ "kind": "field",
532
+ "name": "afterUpdateListeners",
533
+ "privacy": "private"
534
+ },
535
+ {
536
+ "kind": "method",
537
+ "name": "create",
538
+ "privacy": "public",
539
+ "return": {
540
+ "type": {
541
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
542
+ }
543
+ },
544
+ "parameters": [
545
+ {
546
+ "name": "newValue",
547
+ "type": {
548
+ "text": "Omit<T, 'id'>"
549
+ }
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ "kind": "method",
555
+ "name": "read",
556
+ "privacy": "public",
557
+ "return": {
558
+ "type": {
559
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
560
+ }
561
+ },
562
+ "parameters": [
563
+ {
564
+ "name": "id",
565
+ "type": {
566
+ "text": "string"
567
+ }
568
+ }
569
+ ]
570
+ },
571
+ {
572
+ "kind": "method",
573
+ "name": "update",
574
+ "privacy": "public",
575
+ "return": {
576
+ "type": {
577
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
578
+ }
579
+ },
580
+ "parameters": [
581
+ {
582
+ "name": "id",
583
+ "type": {
584
+ "text": "string"
585
+ }
586
+ },
587
+ {
588
+ "name": "newValue",
589
+ "type": {
590
+ "text": "Omit<Partial<T>, 'id'>"
591
+ }
592
+ }
593
+ ]
594
+ },
595
+ {
596
+ "kind": "method",
597
+ "name": "delete",
598
+ "privacy": "public",
599
+ "return": {
600
+ "type": {
601
+ "text": "Promise<DatabaseAccessResult.Delete>"
602
+ }
603
+ },
604
+ "parameters": [
605
+ {
606
+ "name": "id",
607
+ "type": {
608
+ "text": "string"
609
+ }
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "kind": "method",
615
+ "name": "visit",
616
+ "privacy": "public",
617
+ "return": {
618
+ "type": {
619
+ "text": "Promise<void>"
620
+ }
621
+ },
622
+ "parameters": [
623
+ {
624
+ "name": "visitor",
625
+ "type": {
626
+ "text": "(record: T) => void"
627
+ }
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "kind": "method",
633
+ "name": "onBeforeUpdate",
634
+ "privacy": "public",
635
+ "return": {
636
+ "type": {
637
+ "text": "() => void"
638
+ }
639
+ },
640
+ "parameters": [
641
+ {
642
+ "name": "listener",
643
+ "type": {
644
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
645
+ }
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "kind": "method",
651
+ "name": "onAfterUpdate",
652
+ "privacy": "public",
653
+ "return": {
654
+ "type": {
655
+ "text": "() => void"
656
+ }
657
+ },
658
+ "parameters": [
659
+ {
660
+ "name": "listener",
661
+ "type": {
662
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
663
+ }
664
+ }
665
+ ]
666
+ }
667
+ ]
668
+ }
669
+ ],
670
+ "exports": [
671
+ {
672
+ "kind": "js",
673
+ "name": "InMemoryDatabase",
784
674
  "declaration": {
785
- "name": "_DEFAULT_PASSWORD",
786
- "module": "src/env/variables.ts"
675
+ "name": "InMemoryDatabase",
676
+ "module": "src/data/inMemoryDatabase.ts"
787
677
  }
788
- },
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "kind": "javascript-module",
683
+ "path": "src/data/index.ts",
684
+ "declarations": [],
685
+ "exports": [
789
686
  {
790
687
  "kind": "js",
791
- "name": "DEFAULT_USER",
688
+ "name": "*",
792
689
  "declaration": {
793
- "name": "_DEFAULT_USER",
794
- "module": "src/env/variables.ts"
690
+ "name": "*",
691
+ "package": "./inMemoryDatabase"
795
692
  }
796
693
  }
797
694
  ]
@@ -995,6 +892,109 @@
995
892
  }
996
893
  ]
997
894
  },
895
+ {
896
+ "kind": "javascript-module",
897
+ "path": "src/decorators/index.ts",
898
+ "declarations": [],
899
+ "exports": [
900
+ {
901
+ "kind": "js",
902
+ "name": "*",
903
+ "declaration": {
904
+ "name": "*",
905
+ "package": "./renderOnChange"
906
+ }
907
+ }
908
+ ]
909
+ },
910
+ {
911
+ "kind": "javascript-module",
912
+ "path": "src/decorators/renderOnChange.ts",
913
+ "declarations": [
914
+ {
915
+ "kind": "function",
916
+ "name": "renderOnChange",
917
+ "parameters": [
918
+ {
919
+ "name": "target",
920
+ "type": {
921
+ "text": "FASTElement & { render(): void }"
922
+ },
923
+ "description": "The target to define the property change handler on."
924
+ },
925
+ {
926
+ "name": "name",
927
+ "type": {
928
+ "text": "string"
929
+ },
930
+ "description": "The property name."
931
+ }
932
+ ],
933
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
934
+ "privacy": "public"
935
+ }
936
+ ],
937
+ "exports": [
938
+ {
939
+ "kind": "js",
940
+ "name": "renderOnChange",
941
+ "declaration": {
942
+ "name": "renderOnChange",
943
+ "module": "src/decorators/renderOnChange.ts"
944
+ }
945
+ }
946
+ ]
947
+ },
948
+ {
949
+ "kind": "javascript-module",
950
+ "path": "src/design-system/design-system.ts",
951
+ "declarations": [
952
+ {
953
+ "kind": "function",
954
+ "name": "assureDesignSystem",
955
+ "return": {
956
+ "type": {
957
+ "text": "DesignSystemModule"
958
+ }
959
+ },
960
+ "parameters": [
961
+ {
962
+ "name": "module",
963
+ "type": {
964
+ "text": "DesignSystemModule"
965
+ }
966
+ }
967
+ ],
968
+ "description": "assureDesignSystem.",
969
+ "privacy": "public"
970
+ }
971
+ ],
972
+ "exports": [
973
+ {
974
+ "kind": "js",
975
+ "name": "assureDesignSystem",
976
+ "declaration": {
977
+ "name": "assureDesignSystem",
978
+ "module": "src/design-system/design-system.ts"
979
+ }
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "kind": "javascript-module",
985
+ "path": "src/design-system/index.ts",
986
+ "declarations": [],
987
+ "exports": [
988
+ {
989
+ "kind": "js",
990
+ "name": "*",
991
+ "declaration": {
992
+ "name": "*",
993
+ "package": "./design-system"
994
+ }
995
+ }
996
+ ]
997
+ },
998
998
  {
999
999
  "kind": "javascript-module",
1000
1000
  "path": "src/formatters/datetime.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.237.1",
4
+ "version": "14.238.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.237.1",
31
- "@genesislcap/genx": "14.237.1",
32
- "@genesislcap/rollup-builder": "14.237.1",
33
- "@genesislcap/ts-builder": "14.237.1",
34
- "@genesislcap/uvu-playwright-builder": "14.237.1",
35
- "@genesislcap/vite-builder": "14.237.1",
36
- "@genesislcap/webpack-builder": "14.237.1",
30
+ "@genesislcap/foundation-testing": "14.238.0",
31
+ "@genesislcap/genx": "14.238.0",
32
+ "@genesislcap/rollup-builder": "14.238.0",
33
+ "@genesislcap/ts-builder": "14.238.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.238.0",
35
+ "@genesislcap/vite-builder": "14.238.0",
36
+ "@genesislcap/webpack-builder": "14.238.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.237.1",
40
+ "@genesislcap/foundation-logger": "14.238.0",
41
41
  "@microsoft/fast-components": "2.30.6",
42
42
  "@microsoft/fast-element": "1.14.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": "bcda3ef5a5b349a2aff30cc91e391528483e5189"
58
+ "gitHead": "2735fb5a88f2e15f101c1343ee178d80db89fc63"
59
59
  }