@genesislcap/foundation-utils 14.409.0-FUI-2495.9 → 14.409.0-pbi.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +306 -306
  2. package/package.json +11 -11
@@ -209,6 +209,47 @@
209
209
  }
210
210
  ]
211
211
  },
212
+ {
213
+ "kind": "javascript-module",
214
+ "path": "src/converters/index.ts",
215
+ "declarations": [],
216
+ "exports": [
217
+ {
218
+ "kind": "js",
219
+ "name": "*",
220
+ "declaration": {
221
+ "name": "*",
222
+ "package": "./string-array-converter"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "javascript-module",
229
+ "path": "src/converters/string-array-converter.ts",
230
+ "declarations": [
231
+ {
232
+ "kind": "variable",
233
+ "name": "stringArrayConverter",
234
+ "type": {
235
+ "text": "ValueConverter"
236
+ },
237
+ "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}",
238
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
239
+ "privacy": "public"
240
+ }
241
+ ],
242
+ "exports": [
243
+ {
244
+ "kind": "js",
245
+ "name": "stringArrayConverter",
246
+ "declaration": {
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
249
+ }
250
+ }
251
+ ]
252
+ },
212
253
  {
213
254
  "kind": "javascript-module",
214
255
  "path": "src/design-system/design-system.ts",
@@ -329,6 +370,204 @@
329
370
  }
330
371
  ]
331
372
  },
373
+ {
374
+ "kind": "javascript-module",
375
+ "path": "src/data/inMemoryDatabase.ts",
376
+ "declarations": [
377
+ {
378
+ "kind": "class",
379
+ "description": "An in memory database of specific DatabaseRecord types.",
380
+ "name": "InMemoryDatabase",
381
+ "members": [
382
+ {
383
+ "kind": "field",
384
+ "name": "isWorking",
385
+ "type": {
386
+ "text": "boolean"
387
+ },
388
+ "privacy": "public",
389
+ "default": "false"
390
+ },
391
+ {
392
+ "kind": "field",
393
+ "name": "records",
394
+ "type": {
395
+ "text": "Record<string, T>"
396
+ },
397
+ "privacy": "private",
398
+ "default": "{}"
399
+ },
400
+ {
401
+ "kind": "field",
402
+ "name": "beforeUpdateListeners",
403
+ "privacy": "private"
404
+ },
405
+ {
406
+ "kind": "field",
407
+ "name": "afterUpdateListeners",
408
+ "privacy": "private"
409
+ },
410
+ {
411
+ "kind": "method",
412
+ "name": "create",
413
+ "privacy": "public",
414
+ "return": {
415
+ "type": {
416
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
417
+ }
418
+ },
419
+ "parameters": [
420
+ {
421
+ "name": "newValue",
422
+ "type": {
423
+ "text": "Omit<T, 'id'>"
424
+ }
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "kind": "method",
430
+ "name": "read",
431
+ "privacy": "public",
432
+ "return": {
433
+ "type": {
434
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
435
+ }
436
+ },
437
+ "parameters": [
438
+ {
439
+ "name": "id",
440
+ "type": {
441
+ "text": "string"
442
+ }
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "kind": "method",
448
+ "name": "update",
449
+ "privacy": "public",
450
+ "return": {
451
+ "type": {
452
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
453
+ }
454
+ },
455
+ "parameters": [
456
+ {
457
+ "name": "id",
458
+ "type": {
459
+ "text": "string"
460
+ }
461
+ },
462
+ {
463
+ "name": "newValue",
464
+ "type": {
465
+ "text": "Omit<Partial<T>, 'id'>"
466
+ }
467
+ }
468
+ ]
469
+ },
470
+ {
471
+ "kind": "method",
472
+ "name": "delete",
473
+ "privacy": "public",
474
+ "return": {
475
+ "type": {
476
+ "text": "Promise<DatabaseAccessResult.Delete>"
477
+ }
478
+ },
479
+ "parameters": [
480
+ {
481
+ "name": "id",
482
+ "type": {
483
+ "text": "string"
484
+ }
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ "kind": "method",
490
+ "name": "visit",
491
+ "privacy": "public",
492
+ "return": {
493
+ "type": {
494
+ "text": "Promise<void>"
495
+ }
496
+ },
497
+ "parameters": [
498
+ {
499
+ "name": "visitor",
500
+ "type": {
501
+ "text": "(record: T) => void"
502
+ }
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ "kind": "method",
508
+ "name": "onBeforeUpdate",
509
+ "privacy": "public",
510
+ "return": {
511
+ "type": {
512
+ "text": "() => void"
513
+ }
514
+ },
515
+ "parameters": [
516
+ {
517
+ "name": "listener",
518
+ "type": {
519
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
520
+ }
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "kind": "method",
526
+ "name": "onAfterUpdate",
527
+ "privacy": "public",
528
+ "return": {
529
+ "type": {
530
+ "text": "() => void"
531
+ }
532
+ },
533
+ "parameters": [
534
+ {
535
+ "name": "listener",
536
+ "type": {
537
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
538
+ }
539
+ }
540
+ ]
541
+ }
542
+ ]
543
+ }
544
+ ],
545
+ "exports": [
546
+ {
547
+ "kind": "js",
548
+ "name": "InMemoryDatabase",
549
+ "declaration": {
550
+ "name": "InMemoryDatabase",
551
+ "module": "src/data/inMemoryDatabase.ts"
552
+ }
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "kind": "javascript-module",
558
+ "path": "src/data/index.ts",
559
+ "declarations": [],
560
+ "exports": [
561
+ {
562
+ "kind": "js",
563
+ "name": "*",
564
+ "declaration": {
565
+ "name": "*",
566
+ "package": "./inMemoryDatabase"
567
+ }
568
+ }
569
+ ]
570
+ },
332
571
  {
333
572
  "kind": "javascript-module",
334
573
  "path": "src/directives/index.ts",
@@ -369,7 +608,7 @@
369
608
  },
370
609
  {
371
610
  "kind": "javascript-module",
372
- "path": "src/env/index.ts",
611
+ "path": "src/decorators/index.ts",
373
612
  "declarations": [],
374
613
  "exports": [
375
614
  {
@@ -377,28 +616,81 @@
377
616
  "name": "*",
378
617
  "declaration": {
379
618
  "name": "*",
380
- "package": "./is-dev"
381
- }
382
- },
383
- {
384
- "kind": "js",
385
- "name": "*",
386
- "declaration": {
387
- "name": "*",
388
- "package": "./variables"
619
+ "package": "./renderOnChange"
389
620
  }
390
621
  }
391
622
  ]
392
623
  },
393
624
  {
394
625
  "kind": "javascript-module",
395
- "path": "src/env/is-dev.ts",
626
+ "path": "src/decorators/renderOnChange.ts",
396
627
  "declarations": [
397
628
  {
398
629
  "kind": "function",
399
- "name": "isDev",
400
- "description": "Determines if the current environment is a development environment.",
401
- "privacy": "public"
630
+ "name": "renderOnChange",
631
+ "parameters": [
632
+ {
633
+ "name": "target",
634
+ "type": {
635
+ "text": "FASTElement & { render(): void }"
636
+ },
637
+ "description": "The target to define the property change handler on."
638
+ },
639
+ {
640
+ "name": "name",
641
+ "type": {
642
+ "text": "string"
643
+ },
644
+ "description": "The property name."
645
+ }
646
+ ],
647
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
648
+ "privacy": "public"
649
+ }
650
+ ],
651
+ "exports": [
652
+ {
653
+ "kind": "js",
654
+ "name": "renderOnChange",
655
+ "declaration": {
656
+ "name": "renderOnChange",
657
+ "module": "src/decorators/renderOnChange.ts"
658
+ }
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "kind": "javascript-module",
664
+ "path": "src/env/index.ts",
665
+ "declarations": [],
666
+ "exports": [
667
+ {
668
+ "kind": "js",
669
+ "name": "*",
670
+ "declaration": {
671
+ "name": "*",
672
+ "package": "./is-dev"
673
+ }
674
+ },
675
+ {
676
+ "kind": "js",
677
+ "name": "*",
678
+ "declaration": {
679
+ "name": "*",
680
+ "package": "./variables"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ "kind": "javascript-module",
687
+ "path": "src/env/is-dev.ts",
688
+ "declarations": [
689
+ {
690
+ "kind": "function",
691
+ "name": "isDev",
692
+ "description": "Determines if the current environment is a development environment.",
693
+ "privacy": "public"
402
694
  }
403
695
  ],
404
696
  "exports": [
@@ -842,298 +1134,6 @@
842
1134
  }
843
1135
  ]
844
1136
  },
845
- {
846
- "kind": "javascript-module",
847
- "path": "src/converters/index.ts",
848
- "declarations": [],
849
- "exports": [
850
- {
851
- "kind": "js",
852
- "name": "*",
853
- "declaration": {
854
- "name": "*",
855
- "package": "./string-array-converter"
856
- }
857
- }
858
- ]
859
- },
860
- {
861
- "kind": "javascript-module",
862
- "path": "src/converters/string-array-converter.ts",
863
- "declarations": [
864
- {
865
- "kind": "variable",
866
- "name": "stringArrayConverter",
867
- "type": {
868
- "text": "ValueConverter"
869
- },
870
- "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}",
871
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
872
- "privacy": "public"
873
- }
874
- ],
875
- "exports": [
876
- {
877
- "kind": "js",
878
- "name": "stringArrayConverter",
879
- "declaration": {
880
- "name": "stringArrayConverter",
881
- "module": "src/converters/string-array-converter.ts"
882
- }
883
- }
884
- ]
885
- },
886
- {
887
- "kind": "javascript-module",
888
- "path": "src/data/inMemoryDatabase.ts",
889
- "declarations": [
890
- {
891
- "kind": "class",
892
- "description": "An in memory database of specific DatabaseRecord types.",
893
- "name": "InMemoryDatabase",
894
- "members": [
895
- {
896
- "kind": "field",
897
- "name": "isWorking",
898
- "type": {
899
- "text": "boolean"
900
- },
901
- "privacy": "public",
902
- "default": "false"
903
- },
904
- {
905
- "kind": "field",
906
- "name": "records",
907
- "type": {
908
- "text": "Record<string, T>"
909
- },
910
- "privacy": "private",
911
- "default": "{}"
912
- },
913
- {
914
- "kind": "field",
915
- "name": "beforeUpdateListeners",
916
- "privacy": "private"
917
- },
918
- {
919
- "kind": "field",
920
- "name": "afterUpdateListeners",
921
- "privacy": "private"
922
- },
923
- {
924
- "kind": "method",
925
- "name": "create",
926
- "privacy": "public",
927
- "return": {
928
- "type": {
929
- "text": "Promise<DatabaseAccessResult.Create<T>>"
930
- }
931
- },
932
- "parameters": [
933
- {
934
- "name": "newValue",
935
- "type": {
936
- "text": "Omit<T, 'id'>"
937
- }
938
- }
939
- ]
940
- },
941
- {
942
- "kind": "method",
943
- "name": "read",
944
- "privacy": "public",
945
- "return": {
946
- "type": {
947
- "text": "Promise<DatabaseAccessResult.Read<T>>"
948
- }
949
- },
950
- "parameters": [
951
- {
952
- "name": "id",
953
- "type": {
954
- "text": "string"
955
- }
956
- }
957
- ]
958
- },
959
- {
960
- "kind": "method",
961
- "name": "update",
962
- "privacy": "public",
963
- "return": {
964
- "type": {
965
- "text": "Promise<DatabaseAccessResult.Update<T>>"
966
- }
967
- },
968
- "parameters": [
969
- {
970
- "name": "id",
971
- "type": {
972
- "text": "string"
973
- }
974
- },
975
- {
976
- "name": "newValue",
977
- "type": {
978
- "text": "Omit<Partial<T>, 'id'>"
979
- }
980
- }
981
- ]
982
- },
983
- {
984
- "kind": "method",
985
- "name": "delete",
986
- "privacy": "public",
987
- "return": {
988
- "type": {
989
- "text": "Promise<DatabaseAccessResult.Delete>"
990
- }
991
- },
992
- "parameters": [
993
- {
994
- "name": "id",
995
- "type": {
996
- "text": "string"
997
- }
998
- }
999
- ]
1000
- },
1001
- {
1002
- "kind": "method",
1003
- "name": "visit",
1004
- "privacy": "public",
1005
- "return": {
1006
- "type": {
1007
- "text": "Promise<void>"
1008
- }
1009
- },
1010
- "parameters": [
1011
- {
1012
- "name": "visitor",
1013
- "type": {
1014
- "text": "(record: T) => void"
1015
- }
1016
- }
1017
- ]
1018
- },
1019
- {
1020
- "kind": "method",
1021
- "name": "onBeforeUpdate",
1022
- "privacy": "public",
1023
- "return": {
1024
- "type": {
1025
- "text": "() => void"
1026
- }
1027
- },
1028
- "parameters": [
1029
- {
1030
- "name": "listener",
1031
- "type": {
1032
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1033
- }
1034
- }
1035
- ]
1036
- },
1037
- {
1038
- "kind": "method",
1039
- "name": "onAfterUpdate",
1040
- "privacy": "public",
1041
- "return": {
1042
- "type": {
1043
- "text": "() => void"
1044
- }
1045
- },
1046
- "parameters": [
1047
- {
1048
- "name": "listener",
1049
- "type": {
1050
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1051
- }
1052
- }
1053
- ]
1054
- }
1055
- ]
1056
- }
1057
- ],
1058
- "exports": [
1059
- {
1060
- "kind": "js",
1061
- "name": "InMemoryDatabase",
1062
- "declaration": {
1063
- "name": "InMemoryDatabase",
1064
- "module": "src/data/inMemoryDatabase.ts"
1065
- }
1066
- }
1067
- ]
1068
- },
1069
- {
1070
- "kind": "javascript-module",
1071
- "path": "src/data/index.ts",
1072
- "declarations": [],
1073
- "exports": [
1074
- {
1075
- "kind": "js",
1076
- "name": "*",
1077
- "declaration": {
1078
- "name": "*",
1079
- "package": "./inMemoryDatabase"
1080
- }
1081
- }
1082
- ]
1083
- },
1084
- {
1085
- "kind": "javascript-module",
1086
- "path": "src/decorators/index.ts",
1087
- "declarations": [],
1088
- "exports": [
1089
- {
1090
- "kind": "js",
1091
- "name": "*",
1092
- "declaration": {
1093
- "name": "*",
1094
- "package": "./renderOnChange"
1095
- }
1096
- }
1097
- ]
1098
- },
1099
- {
1100
- "kind": "javascript-module",
1101
- "path": "src/decorators/renderOnChange.ts",
1102
- "declarations": [
1103
- {
1104
- "kind": "function",
1105
- "name": "renderOnChange",
1106
- "parameters": [
1107
- {
1108
- "name": "target",
1109
- "type": {
1110
- "text": "FASTElement & { render(): void }"
1111
- },
1112
- "description": "The target to define the property change handler on."
1113
- },
1114
- {
1115
- "name": "name",
1116
- "type": {
1117
- "text": "string"
1118
- },
1119
- "description": "The property name."
1120
- }
1121
- ],
1122
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1123
- "privacy": "public"
1124
- }
1125
- ],
1126
- "exports": [
1127
- {
1128
- "kind": "js",
1129
- "name": "renderOnChange",
1130
- "declaration": {
1131
- "name": "renderOnChange",
1132
- "module": "src/decorators/renderOnChange.ts"
1133
- }
1134
- }
1135
- ]
1136
- },
1137
1137
  {
1138
1138
  "kind": "javascript-module",
1139
1139
  "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.409.0-FUI-2495.9",
4
+ "version": "14.409.0-pbi.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.409.0-FUI-2495.9",
33
- "@genesislcap/genx": "14.409.0-FUI-2495.9",
34
- "@genesislcap/rollup-builder": "14.409.0-FUI-2495.9",
35
- "@genesislcap/ts-builder": "14.409.0-FUI-2495.9",
36
- "@genesislcap/uvu-playwright-builder": "14.409.0-FUI-2495.9",
37
- "@genesislcap/vite-builder": "14.409.0-FUI-2495.9",
38
- "@genesislcap/webpack-builder": "14.409.0-FUI-2495.9",
32
+ "@genesislcap/foundation-testing": "14.409.0-pbi.1",
33
+ "@genesislcap/genx": "14.409.0-pbi.1",
34
+ "@genesislcap/rollup-builder": "14.409.0-pbi.1",
35
+ "@genesislcap/ts-builder": "14.409.0-pbi.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.409.0-pbi.1",
37
+ "@genesislcap/vite-builder": "14.409.0-pbi.1",
38
+ "@genesislcap/webpack-builder": "14.409.0-pbi.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.409.0-FUI-2495.9",
43
- "@genesislcap/foundation-logger": "14.409.0-FUI-2495.9",
42
+ "@genesislcap/expression-builder": "14.409.0-pbi.1",
43
+ "@genesislcap/foundation-logger": "14.409.0-pbi.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "79df39dc559df3b11085a61b02c0bb2457c98d13"
61
+ "gitHead": "7102efe86261b7b2c88af437ef35ff6a04ff0dd2"
62
62
  }