@genesislcap/foundation-utils 14.312.1-alpha-cffc4b2.0 → 14.312.1-alpha-2a2b7d6.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 +375 -375
  2. package/package.json +11 -11
@@ -179,190 +179,60 @@
179
179
  },
180
180
  {
181
181
  "kind": "javascript-module",
182
- "path": "src/data/inMemoryDatabase.ts",
182
+ "path": "src/decorators/index.ts",
183
+ "declarations": [],
184
+ "exports": [
185
+ {
186
+ "kind": "js",
187
+ "name": "*",
188
+ "declaration": {
189
+ "name": "*",
190
+ "package": "./renderOnChange"
191
+ }
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "kind": "javascript-module",
197
+ "path": "src/decorators/renderOnChange.ts",
183
198
  "declarations": [
184
199
  {
185
- "kind": "class",
186
- "description": "An in memory database of specific DatabaseRecord types.",
187
- "name": "InMemoryDatabase",
188
- "members": [
200
+ "kind": "function",
201
+ "name": "renderOnChange",
202
+ "parameters": [
189
203
  {
190
- "kind": "field",
191
- "name": "isWorking",
204
+ "name": "target",
192
205
  "type": {
193
- "text": "boolean"
206
+ "text": "FASTElement & { render(): void }"
194
207
  },
195
- "privacy": "public",
196
- "default": "false"
208
+ "description": "The target to define the property change handler on."
197
209
  },
198
210
  {
199
- "kind": "field",
200
- "name": "records",
211
+ "name": "name",
201
212
  "type": {
202
- "text": "Record<string, T>"
203
- },
204
- "privacy": "private",
205
- "default": "{}"
206
- },
207
- {
208
- "kind": "field",
209
- "name": "beforeUpdateListeners",
210
- "privacy": "private"
211
- },
212
- {
213
- "kind": "field",
214
- "name": "afterUpdateListeners",
215
- "privacy": "private"
216
- },
217
- {
218
- "kind": "method",
219
- "name": "create",
220
- "privacy": "public",
221
- "return": {
222
- "type": {
223
- "text": "Promise<DatabaseAccessResult.Create<T>>"
224
- }
225
- },
226
- "parameters": [
227
- {
228
- "name": "newValue",
229
- "type": {
230
- "text": "Omit<T, 'id'>"
231
- }
232
- }
233
- ]
234
- },
235
- {
236
- "kind": "method",
237
- "name": "read",
238
- "privacy": "public",
239
- "return": {
240
- "type": {
241
- "text": "Promise<DatabaseAccessResult.Read<T>>"
242
- }
243
- },
244
- "parameters": [
245
- {
246
- "name": "id",
247
- "type": {
248
- "text": "string"
249
- }
250
- }
251
- ]
252
- },
253
- {
254
- "kind": "method",
255
- "name": "update",
256
- "privacy": "public",
257
- "return": {
258
- "type": {
259
- "text": "Promise<DatabaseAccessResult.Update<T>>"
260
- }
261
- },
262
- "parameters": [
263
- {
264
- "name": "id",
265
- "type": {
266
- "text": "string"
267
- }
268
- },
269
- {
270
- "name": "newValue",
271
- "type": {
272
- "text": "Omit<Partial<T>, 'id'>"
273
- }
274
- }
275
- ]
276
- },
277
- {
278
- "kind": "method",
279
- "name": "delete",
280
- "privacy": "public",
281
- "return": {
282
- "type": {
283
- "text": "Promise<DatabaseAccessResult.Delete>"
284
- }
285
- },
286
- "parameters": [
287
- {
288
- "name": "id",
289
- "type": {
290
- "text": "string"
291
- }
292
- }
293
- ]
294
- },
295
- {
296
- "kind": "method",
297
- "name": "visit",
298
- "privacy": "public",
299
- "return": {
300
- "type": {
301
- "text": "Promise<void>"
302
- }
303
- },
304
- "parameters": [
305
- {
306
- "name": "visitor",
307
- "type": {
308
- "text": "(record: T) => void"
309
- }
310
- }
311
- ]
312
- },
313
- {
314
- "kind": "method",
315
- "name": "onBeforeUpdate",
316
- "privacy": "public",
317
- "return": {
318
- "type": {
319
- "text": "() => void"
320
- }
321
- },
322
- "parameters": [
323
- {
324
- "name": "listener",
325
- "type": {
326
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
327
- }
328
- }
329
- ]
330
- },
331
- {
332
- "kind": "method",
333
- "name": "onAfterUpdate",
334
- "privacy": "public",
335
- "return": {
336
- "type": {
337
- "text": "() => void"
338
- }
213
+ "text": "string"
339
214
  },
340
- "parameters": [
341
- {
342
- "name": "listener",
343
- "type": {
344
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
345
- }
346
- }
347
- ]
215
+ "description": "The property name."
348
216
  }
349
- ]
217
+ ],
218
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
219
+ "privacy": "public"
350
220
  }
351
221
  ],
352
222
  "exports": [
353
223
  {
354
224
  "kind": "js",
355
- "name": "InMemoryDatabase",
225
+ "name": "renderOnChange",
356
226
  "declaration": {
357
- "name": "InMemoryDatabase",
358
- "module": "src/data/inMemoryDatabase.ts"
227
+ "name": "renderOnChange",
228
+ "module": "src/decorators/renderOnChange.ts"
359
229
  }
360
230
  }
361
231
  ]
362
232
  },
363
233
  {
364
234
  "kind": "javascript-module",
365
- "path": "src/data/index.ts",
235
+ "path": "src/directives/index.ts",
366
236
  "declarations": [],
367
237
  "exports": [
368
238
  {
@@ -370,14 +240,22 @@
370
240
  "name": "*",
371
241
  "declaration": {
372
242
  "name": "*",
373
- "package": "./inMemoryDatabase"
243
+ "package": "./sync"
244
+ }
245
+ },
246
+ {
247
+ "kind": "js",
248
+ "name": "*",
249
+ "declaration": {
250
+ "name": "*",
251
+ "package": "./when-else"
374
252
  }
375
253
  }
376
254
  ]
377
255
  },
378
256
  {
379
257
  "kind": "javascript-module",
380
- "path": "src/decorators/index.ts",
258
+ "path": "src/encoding/index.ts",
381
259
  "declarations": [],
382
260
  "exports": [
383
261
  {
@@ -385,233 +263,37 @@
385
263
  "name": "*",
386
264
  "declaration": {
387
265
  "name": "*",
388
- "package": "./renderOnChange"
266
+ "package": "./base64"
389
267
  }
390
268
  }
391
269
  ]
392
270
  },
393
271
  {
394
272
  "kind": "javascript-module",
395
- "path": "src/decorators/renderOnChange.ts",
396
- "declarations": [
397
- {
398
- "kind": "function",
399
- "name": "renderOnChange",
400
- "parameters": [
401
- {
402
- "name": "target",
403
- "type": {
404
- "text": "FASTElement & { render(): void }"
405
- },
406
- "description": "The target to define the property change handler on."
407
- },
408
- {
409
- "name": "name",
410
- "type": {
411
- "text": "string"
412
- },
413
- "description": "The property name."
414
- }
415
- ],
416
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
417
- "privacy": "public"
418
- }
419
- ],
273
+ "path": "src/env/index.ts",
274
+ "declarations": [],
420
275
  "exports": [
421
276
  {
422
277
  "kind": "js",
423
- "name": "renderOnChange",
278
+ "name": "*",
424
279
  "declaration": {
425
- "name": "renderOnChange",
426
- "module": "src/decorators/renderOnChange.ts"
280
+ "name": "*",
281
+ "package": "./is-dev"
282
+ }
283
+ },
284
+ {
285
+ "kind": "js",
286
+ "name": "*",
287
+ "declaration": {
288
+ "name": "*",
289
+ "package": "./variables"
427
290
  }
428
291
  }
429
292
  ]
430
293
  },
431
294
  {
432
295
  "kind": "javascript-module",
433
- "path": "src/design-system/design-system.ts",
434
- "declarations": [
435
- {
436
- "kind": "function",
437
- "name": "assureDesignSystem",
438
- "return": {
439
- "type": {
440
- "text": "DesignSystemModule"
441
- }
442
- },
443
- "parameters": [
444
- {
445
- "name": "module",
446
- "type": {
447
- "text": "DesignSystemModule"
448
- }
449
- }
450
- ],
451
- "description": "assureDesignSystem.",
452
- "privacy": "public"
453
- },
454
- {
455
- "kind": "function",
456
- "name": "getCurrentDesignSystem",
457
- "return": {
458
- "type": {
459
- "text": ""
460
- }
461
- },
462
- "parameters": [
463
- {
464
- "name": "element",
465
- "type": {
466
- "text": "HTMLElement"
467
- },
468
- "description": "The starting HTML element"
469
- },
470
- {
471
- "name": "fallbackPrefix",
472
- "type": {
473
- "text": "string"
474
- },
475
- "description": "The prefix to fallback to if the provider is not available"
476
- }
477
- ],
478
- "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.",
479
- "privacy": "public"
480
- },
481
- {
482
- "kind": "function",
483
- "name": "getCurrentDesignSystemPrefix",
484
- "return": {
485
- "type": {
486
- "text": ""
487
- }
488
- },
489
- "parameters": [
490
- {
491
- "name": "element",
492
- "type": {
493
- "text": "HTMLElement"
494
- },
495
- "description": "The starting HTML element"
496
- },
497
- {
498
- "name": "fallbackPrefix",
499
- "type": {
500
- "text": "string"
501
- },
502
- "description": "The prefix to fallback to if the provider is not available"
503
- }
504
- ],
505
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
506
- "privacy": "public"
507
- }
508
- ],
509
- "exports": [
510
- {
511
- "kind": "js",
512
- "name": "assureDesignSystem",
513
- "declaration": {
514
- "name": "assureDesignSystem",
515
- "module": "src/design-system/design-system.ts"
516
- }
517
- },
518
- {
519
- "kind": "js",
520
- "name": "getCurrentDesignSystem",
521
- "declaration": {
522
- "name": "getCurrentDesignSystem",
523
- "module": "src/design-system/design-system.ts"
524
- }
525
- },
526
- {
527
- "kind": "js",
528
- "name": "getCurrentDesignSystemPrefix",
529
- "declaration": {
530
- "name": "getCurrentDesignSystemPrefix",
531
- "module": "src/design-system/design-system.ts"
532
- }
533
- }
534
- ]
535
- },
536
- {
537
- "kind": "javascript-module",
538
- "path": "src/design-system/index.ts",
539
- "declarations": [],
540
- "exports": [
541
- {
542
- "kind": "js",
543
- "name": "*",
544
- "declaration": {
545
- "name": "*",
546
- "package": "./design-system"
547
- }
548
- }
549
- ]
550
- },
551
- {
552
- "kind": "javascript-module",
553
- "path": "src/directives/index.ts",
554
- "declarations": [],
555
- "exports": [
556
- {
557
- "kind": "js",
558
- "name": "*",
559
- "declaration": {
560
- "name": "*",
561
- "package": "./sync"
562
- }
563
- },
564
- {
565
- "kind": "js",
566
- "name": "*",
567
- "declaration": {
568
- "name": "*",
569
- "package": "./when-else"
570
- }
571
- }
572
- ]
573
- },
574
- {
575
- "kind": "javascript-module",
576
- "path": "src/encoding/index.ts",
577
- "declarations": [],
578
- "exports": [
579
- {
580
- "kind": "js",
581
- "name": "*",
582
- "declaration": {
583
- "name": "*",
584
- "package": "./base64"
585
- }
586
- }
587
- ]
588
- },
589
- {
590
- "kind": "javascript-module",
591
- "path": "src/env/index.ts",
592
- "declarations": [],
593
- "exports": [
594
- {
595
- "kind": "js",
596
- "name": "*",
597
- "declaration": {
598
- "name": "*",
599
- "package": "./is-dev"
600
- }
601
- },
602
- {
603
- "kind": "js",
604
- "name": "*",
605
- "declaration": {
606
- "name": "*",
607
- "package": "./variables"
608
- }
609
- }
610
- ]
611
- },
612
- {
613
- "kind": "javascript-module",
614
- "path": "src/env/is-dev.ts",
296
+ "path": "src/env/is-dev.ts",
615
297
  "declarations": [
616
298
  {
617
299
  "kind": "function",
@@ -1061,6 +743,324 @@
1061
743
  }
1062
744
  ]
1063
745
  },
746
+ {
747
+ "kind": "javascript-module",
748
+ "path": "src/data/inMemoryDatabase.ts",
749
+ "declarations": [
750
+ {
751
+ "kind": "class",
752
+ "description": "An in memory database of specific DatabaseRecord types.",
753
+ "name": "InMemoryDatabase",
754
+ "members": [
755
+ {
756
+ "kind": "field",
757
+ "name": "isWorking",
758
+ "type": {
759
+ "text": "boolean"
760
+ },
761
+ "privacy": "public",
762
+ "default": "false"
763
+ },
764
+ {
765
+ "kind": "field",
766
+ "name": "records",
767
+ "type": {
768
+ "text": "Record<string, T>"
769
+ },
770
+ "privacy": "private",
771
+ "default": "{}"
772
+ },
773
+ {
774
+ "kind": "field",
775
+ "name": "beforeUpdateListeners",
776
+ "privacy": "private"
777
+ },
778
+ {
779
+ "kind": "field",
780
+ "name": "afterUpdateListeners",
781
+ "privacy": "private"
782
+ },
783
+ {
784
+ "kind": "method",
785
+ "name": "create",
786
+ "privacy": "public",
787
+ "return": {
788
+ "type": {
789
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
790
+ }
791
+ },
792
+ "parameters": [
793
+ {
794
+ "name": "newValue",
795
+ "type": {
796
+ "text": "Omit<T, 'id'>"
797
+ }
798
+ }
799
+ ]
800
+ },
801
+ {
802
+ "kind": "method",
803
+ "name": "read",
804
+ "privacy": "public",
805
+ "return": {
806
+ "type": {
807
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
808
+ }
809
+ },
810
+ "parameters": [
811
+ {
812
+ "name": "id",
813
+ "type": {
814
+ "text": "string"
815
+ }
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "kind": "method",
821
+ "name": "update",
822
+ "privacy": "public",
823
+ "return": {
824
+ "type": {
825
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
826
+ }
827
+ },
828
+ "parameters": [
829
+ {
830
+ "name": "id",
831
+ "type": {
832
+ "text": "string"
833
+ }
834
+ },
835
+ {
836
+ "name": "newValue",
837
+ "type": {
838
+ "text": "Omit<Partial<T>, 'id'>"
839
+ }
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ "kind": "method",
845
+ "name": "delete",
846
+ "privacy": "public",
847
+ "return": {
848
+ "type": {
849
+ "text": "Promise<DatabaseAccessResult.Delete>"
850
+ }
851
+ },
852
+ "parameters": [
853
+ {
854
+ "name": "id",
855
+ "type": {
856
+ "text": "string"
857
+ }
858
+ }
859
+ ]
860
+ },
861
+ {
862
+ "kind": "method",
863
+ "name": "visit",
864
+ "privacy": "public",
865
+ "return": {
866
+ "type": {
867
+ "text": "Promise<void>"
868
+ }
869
+ },
870
+ "parameters": [
871
+ {
872
+ "name": "visitor",
873
+ "type": {
874
+ "text": "(record: T) => void"
875
+ }
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "kind": "method",
881
+ "name": "onBeforeUpdate",
882
+ "privacy": "public",
883
+ "return": {
884
+ "type": {
885
+ "text": "() => void"
886
+ }
887
+ },
888
+ "parameters": [
889
+ {
890
+ "name": "listener",
891
+ "type": {
892
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
893
+ }
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "kind": "method",
899
+ "name": "onAfterUpdate",
900
+ "privacy": "public",
901
+ "return": {
902
+ "type": {
903
+ "text": "() => void"
904
+ }
905
+ },
906
+ "parameters": [
907
+ {
908
+ "name": "listener",
909
+ "type": {
910
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
911
+ }
912
+ }
913
+ ]
914
+ }
915
+ ]
916
+ }
917
+ ],
918
+ "exports": [
919
+ {
920
+ "kind": "js",
921
+ "name": "InMemoryDatabase",
922
+ "declaration": {
923
+ "name": "InMemoryDatabase",
924
+ "module": "src/data/inMemoryDatabase.ts"
925
+ }
926
+ }
927
+ ]
928
+ },
929
+ {
930
+ "kind": "javascript-module",
931
+ "path": "src/data/index.ts",
932
+ "declarations": [],
933
+ "exports": [
934
+ {
935
+ "kind": "js",
936
+ "name": "*",
937
+ "declaration": {
938
+ "name": "*",
939
+ "package": "./inMemoryDatabase"
940
+ }
941
+ }
942
+ ]
943
+ },
944
+ {
945
+ "kind": "javascript-module",
946
+ "path": "src/design-system/design-system.ts",
947
+ "declarations": [
948
+ {
949
+ "kind": "function",
950
+ "name": "assureDesignSystem",
951
+ "return": {
952
+ "type": {
953
+ "text": "DesignSystemModule"
954
+ }
955
+ },
956
+ "parameters": [
957
+ {
958
+ "name": "module",
959
+ "type": {
960
+ "text": "DesignSystemModule"
961
+ }
962
+ }
963
+ ],
964
+ "description": "assureDesignSystem.",
965
+ "privacy": "public"
966
+ },
967
+ {
968
+ "kind": "function",
969
+ "name": "getCurrentDesignSystem",
970
+ "return": {
971
+ "type": {
972
+ "text": ""
973
+ }
974
+ },
975
+ "parameters": [
976
+ {
977
+ "name": "element",
978
+ "type": {
979
+ "text": "HTMLElement"
980
+ },
981
+ "description": "The starting HTML element"
982
+ },
983
+ {
984
+ "name": "fallbackPrefix",
985
+ "type": {
986
+ "text": "string"
987
+ },
988
+ "description": "The prefix to fallback to if the provider is not available"
989
+ }
990
+ ],
991
+ "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.",
992
+ "privacy": "public"
993
+ },
994
+ {
995
+ "kind": "function",
996
+ "name": "getCurrentDesignSystemPrefix",
997
+ "return": {
998
+ "type": {
999
+ "text": ""
1000
+ }
1001
+ },
1002
+ "parameters": [
1003
+ {
1004
+ "name": "element",
1005
+ "type": {
1006
+ "text": "HTMLElement"
1007
+ },
1008
+ "description": "The starting HTML element"
1009
+ },
1010
+ {
1011
+ "name": "fallbackPrefix",
1012
+ "type": {
1013
+ "text": "string"
1014
+ },
1015
+ "description": "The prefix to fallback to if the provider is not available"
1016
+ }
1017
+ ],
1018
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1019
+ "privacy": "public"
1020
+ }
1021
+ ],
1022
+ "exports": [
1023
+ {
1024
+ "kind": "js",
1025
+ "name": "assureDesignSystem",
1026
+ "declaration": {
1027
+ "name": "assureDesignSystem",
1028
+ "module": "src/design-system/design-system.ts"
1029
+ }
1030
+ },
1031
+ {
1032
+ "kind": "js",
1033
+ "name": "getCurrentDesignSystem",
1034
+ "declaration": {
1035
+ "name": "getCurrentDesignSystem",
1036
+ "module": "src/design-system/design-system.ts"
1037
+ }
1038
+ },
1039
+ {
1040
+ "kind": "js",
1041
+ "name": "getCurrentDesignSystemPrefix",
1042
+ "declaration": {
1043
+ "name": "getCurrentDesignSystemPrefix",
1044
+ "module": "src/design-system/design-system.ts"
1045
+ }
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "kind": "javascript-module",
1051
+ "path": "src/design-system/index.ts",
1052
+ "declarations": [],
1053
+ "exports": [
1054
+ {
1055
+ "kind": "js",
1056
+ "name": "*",
1057
+ "declaration": {
1058
+ "name": "*",
1059
+ "package": "./design-system"
1060
+ }
1061
+ }
1062
+ ]
1063
+ },
1064
1064
  {
1065
1065
  "kind": "javascript-module",
1066
1066
  "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.312.1-alpha-cffc4b2.0",
4
+ "version": "14.312.1-alpha-2a2b7d6.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,18 +27,18 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.312.1-alpha-cffc4b2.0",
31
- "@genesislcap/genx": "14.312.1-alpha-cffc4b2.0",
32
- "@genesislcap/rollup-builder": "14.312.1-alpha-cffc4b2.0",
33
- "@genesislcap/ts-builder": "14.312.1-alpha-cffc4b2.0",
34
- "@genesislcap/uvu-playwright-builder": "14.312.1-alpha-cffc4b2.0",
35
- "@genesislcap/vite-builder": "14.312.1-alpha-cffc4b2.0",
36
- "@genesislcap/webpack-builder": "14.312.1-alpha-cffc4b2.0",
30
+ "@genesislcap/foundation-testing": "14.312.1-alpha-2a2b7d6.0",
31
+ "@genesislcap/genx": "14.312.1-alpha-2a2b7d6.0",
32
+ "@genesislcap/rollup-builder": "14.312.1-alpha-2a2b7d6.0",
33
+ "@genesislcap/ts-builder": "14.312.1-alpha-2a2b7d6.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.312.1-alpha-2a2b7d6.0",
35
+ "@genesislcap/vite-builder": "14.312.1-alpha-2a2b7d6.0",
36
+ "@genesislcap/webpack-builder": "14.312.1-alpha-2a2b7d6.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.312.1-alpha-cffc4b2.0",
41
- "@genesislcap/foundation-logger": "14.312.1-alpha-cffc4b2.0",
40
+ "@genesislcap/expression-builder": "14.312.1-alpha-2a2b7d6.0",
41
+ "@genesislcap/foundation-logger": "14.312.1-alpha-2a2b7d6.0",
42
42
  "@microsoft/fast-components": "2.30.6",
43
43
  "@microsoft/fast-element": "1.14.0",
44
44
  "@microsoft/fast-foundation": "2.49.6",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "customElements": "dist/custom-elements.json",
59
- "gitHead": "ba155fb89ab51f214417b46c91c43ae1f52b4579"
59
+ "gitHead": "ce43b3b2211539be2f2d4b2d38134287a08ad51f"
60
60
  }