@genesislcap/foundation-utils 14.482.0 → 14.482.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 +329 -329
  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",
@@ -413,30 +454,190 @@
413
454
  },
414
455
  {
415
456
  "kind": "javascript-module",
416
- "path": "src/directives/index.ts",
417
- "declarations": [],
418
- "exports": [
457
+ "path": "src/data/inMemoryDatabase.ts",
458
+ "declarations": [
419
459
  {
420
- "kind": "js",
421
- "name": "*",
422
- "declaration": {
423
- "name": "*",
424
- "package": "./sync"
425
- }
426
- },
460
+ "kind": "class",
461
+ "description": "An in memory database of specific DatabaseRecord types.",
462
+ "name": "InMemoryDatabase",
463
+ "members": [
464
+ {
465
+ "kind": "field",
466
+ "name": "isWorking",
467
+ "type": {
468
+ "text": "boolean"
469
+ },
470
+ "privacy": "public",
471
+ "default": "false"
472
+ },
473
+ {
474
+ "kind": "field",
475
+ "name": "records",
476
+ "type": {
477
+ "text": "Record<string, T>"
478
+ },
479
+ "privacy": "private",
480
+ "default": "{}"
481
+ },
482
+ {
483
+ "kind": "field",
484
+ "name": "beforeUpdateListeners",
485
+ "privacy": "private"
486
+ },
487
+ {
488
+ "kind": "field",
489
+ "name": "afterUpdateListeners",
490
+ "privacy": "private"
491
+ },
492
+ {
493
+ "kind": "method",
494
+ "name": "create",
495
+ "privacy": "public",
496
+ "return": {
497
+ "type": {
498
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
499
+ }
500
+ },
501
+ "parameters": [
502
+ {
503
+ "name": "newValue",
504
+ "type": {
505
+ "text": "Omit<T, 'id'>"
506
+ }
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "kind": "method",
512
+ "name": "read",
513
+ "privacy": "public",
514
+ "return": {
515
+ "type": {
516
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
517
+ }
518
+ },
519
+ "parameters": [
520
+ {
521
+ "name": "id",
522
+ "type": {
523
+ "text": "string"
524
+ }
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "kind": "method",
530
+ "name": "update",
531
+ "privacy": "public",
532
+ "return": {
533
+ "type": {
534
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
535
+ }
536
+ },
537
+ "parameters": [
538
+ {
539
+ "name": "id",
540
+ "type": {
541
+ "text": "string"
542
+ }
543
+ },
544
+ {
545
+ "name": "newValue",
546
+ "type": {
547
+ "text": "Omit<Partial<T>, 'id'>"
548
+ }
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "kind": "method",
554
+ "name": "delete",
555
+ "privacy": "public",
556
+ "return": {
557
+ "type": {
558
+ "text": "Promise<DatabaseAccessResult.Delete>"
559
+ }
560
+ },
561
+ "parameters": [
562
+ {
563
+ "name": "id",
564
+ "type": {
565
+ "text": "string"
566
+ }
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "kind": "method",
572
+ "name": "visit",
573
+ "privacy": "public",
574
+ "return": {
575
+ "type": {
576
+ "text": "Promise<void>"
577
+ }
578
+ },
579
+ "parameters": [
580
+ {
581
+ "name": "visitor",
582
+ "type": {
583
+ "text": "(record: T) => void"
584
+ }
585
+ }
586
+ ]
587
+ },
588
+ {
589
+ "kind": "method",
590
+ "name": "onBeforeUpdate",
591
+ "privacy": "public",
592
+ "return": {
593
+ "type": {
594
+ "text": "() => void"
595
+ }
596
+ },
597
+ "parameters": [
598
+ {
599
+ "name": "listener",
600
+ "type": {
601
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
602
+ }
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "kind": "method",
608
+ "name": "onAfterUpdate",
609
+ "privacy": "public",
610
+ "return": {
611
+ "type": {
612
+ "text": "() => void"
613
+ }
614
+ },
615
+ "parameters": [
616
+ {
617
+ "name": "listener",
618
+ "type": {
619
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
620
+ }
621
+ }
622
+ ]
623
+ }
624
+ ]
625
+ }
626
+ ],
627
+ "exports": [
427
628
  {
428
629
  "kind": "js",
429
- "name": "*",
630
+ "name": "InMemoryDatabase",
430
631
  "declaration": {
431
- "name": "*",
432
- "package": "./when-else"
632
+ "name": "InMemoryDatabase",
633
+ "module": "src/data/inMemoryDatabase.ts"
433
634
  }
434
635
  }
435
636
  ]
436
637
  },
437
638
  {
438
639
  "kind": "javascript-module",
439
- "path": "src/encoding/index.ts",
640
+ "path": "src/data/index.ts",
440
641
  "declarations": [],
441
642
  "exports": [
442
643
  {
@@ -444,14 +645,14 @@
444
645
  "name": "*",
445
646
  "declaration": {
446
647
  "name": "*",
447
- "package": "./base64"
648
+ "package": "./inMemoryDatabase"
448
649
  }
449
650
  }
450
651
  ]
451
652
  },
452
653
  {
453
654
  "kind": "javascript-module",
454
- "path": "src/env/index.ts",
655
+ "path": "src/decorators/index.ts",
455
656
  "declarations": [],
456
657
  "exports": [
457
658
  {
@@ -459,36 +660,127 @@
459
660
  "name": "*",
460
661
  "declaration": {
461
662
  "name": "*",
462
- "package": "./is-dev"
463
- }
464
- },
465
- {
466
- "kind": "js",
467
- "name": "*",
468
- "declaration": {
469
- "name": "*",
470
- "package": "./variables"
663
+ "package": "./renderOnChange"
471
664
  }
472
665
  }
473
666
  ]
474
667
  },
475
668
  {
476
669
  "kind": "javascript-module",
477
- "path": "src/env/is-dev.ts",
670
+ "path": "src/decorators/renderOnChange.ts",
478
671
  "declarations": [
479
672
  {
480
673
  "kind": "function",
481
- "name": "isDev",
482
- "description": "Determines if the current environment is a development environment.",
483
- "privacy": "public"
484
- }
485
- ],
486
- "exports": [
487
- {
488
- "kind": "js",
489
- "name": "isDev",
490
- "declaration": {
491
- "name": "isDev",
674
+ "name": "renderOnChange",
675
+ "parameters": [
676
+ {
677
+ "name": "target",
678
+ "type": {
679
+ "text": "FASTElement & { render(): void }"
680
+ },
681
+ "description": "The target to define the property change handler on."
682
+ },
683
+ {
684
+ "name": "name",
685
+ "type": {
686
+ "text": "string"
687
+ },
688
+ "description": "The property name."
689
+ }
690
+ ],
691
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
692
+ "privacy": "public"
693
+ }
694
+ ],
695
+ "exports": [
696
+ {
697
+ "kind": "js",
698
+ "name": "renderOnChange",
699
+ "declaration": {
700
+ "name": "renderOnChange",
701
+ "module": "src/decorators/renderOnChange.ts"
702
+ }
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "kind": "javascript-module",
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
710
+ "exports": [
711
+ {
712
+ "kind": "js",
713
+ "name": "*",
714
+ "declaration": {
715
+ "name": "*",
716
+ "package": "./sync"
717
+ }
718
+ },
719
+ {
720
+ "kind": "js",
721
+ "name": "*",
722
+ "declaration": {
723
+ "name": "*",
724
+ "package": "./when-else"
725
+ }
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "kind": "javascript-module",
731
+ "path": "src/encoding/index.ts",
732
+ "declarations": [],
733
+ "exports": [
734
+ {
735
+ "kind": "js",
736
+ "name": "*",
737
+ "declaration": {
738
+ "name": "*",
739
+ "package": "./base64"
740
+ }
741
+ }
742
+ ]
743
+ },
744
+ {
745
+ "kind": "javascript-module",
746
+ "path": "src/env/index.ts",
747
+ "declarations": [],
748
+ "exports": [
749
+ {
750
+ "kind": "js",
751
+ "name": "*",
752
+ "declaration": {
753
+ "name": "*",
754
+ "package": "./is-dev"
755
+ }
756
+ },
757
+ {
758
+ "kind": "js",
759
+ "name": "*",
760
+ "declaration": {
761
+ "name": "*",
762
+ "package": "./variables"
763
+ }
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "kind": "javascript-module",
769
+ "path": "src/env/is-dev.ts",
770
+ "declarations": [
771
+ {
772
+ "kind": "function",
773
+ "name": "isDev",
774
+ "description": "Determines if the current environment is a development environment.",
775
+ "privacy": "public"
776
+ }
777
+ ],
778
+ "exports": [
779
+ {
780
+ "kind": "js",
781
+ "name": "isDev",
782
+ "declaration": {
783
+ "name": "isDev",
492
784
  "module": "src/env/is-dev.ts"
493
785
  }
494
786
  }
@@ -924,298 +1216,6 @@
924
1216
  }
925
1217
  ]
926
1218
  },
927
- {
928
- "kind": "javascript-module",
929
- "path": "src/converters/index.ts",
930
- "declarations": [],
931
- "exports": [
932
- {
933
- "kind": "js",
934
- "name": "*",
935
- "declaration": {
936
- "name": "*",
937
- "package": "./string-array-converter"
938
- }
939
- }
940
- ]
941
- },
942
- {
943
- "kind": "javascript-module",
944
- "path": "src/converters/string-array-converter.ts",
945
- "declarations": [
946
- {
947
- "kind": "variable",
948
- "name": "stringArrayConverter",
949
- "type": {
950
- "text": "ValueConverter"
951
- },
952
- "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}",
953
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
954
- "privacy": "public"
955
- }
956
- ],
957
- "exports": [
958
- {
959
- "kind": "js",
960
- "name": "stringArrayConverter",
961
- "declaration": {
962
- "name": "stringArrayConverter",
963
- "module": "src/converters/string-array-converter.ts"
964
- }
965
- }
966
- ]
967
- },
968
- {
969
- "kind": "javascript-module",
970
- "path": "src/data/inMemoryDatabase.ts",
971
- "declarations": [
972
- {
973
- "kind": "class",
974
- "description": "An in memory database of specific DatabaseRecord types.",
975
- "name": "InMemoryDatabase",
976
- "members": [
977
- {
978
- "kind": "field",
979
- "name": "isWorking",
980
- "type": {
981
- "text": "boolean"
982
- },
983
- "privacy": "public",
984
- "default": "false"
985
- },
986
- {
987
- "kind": "field",
988
- "name": "records",
989
- "type": {
990
- "text": "Record<string, T>"
991
- },
992
- "privacy": "private",
993
- "default": "{}"
994
- },
995
- {
996
- "kind": "field",
997
- "name": "beforeUpdateListeners",
998
- "privacy": "private"
999
- },
1000
- {
1001
- "kind": "field",
1002
- "name": "afterUpdateListeners",
1003
- "privacy": "private"
1004
- },
1005
- {
1006
- "kind": "method",
1007
- "name": "create",
1008
- "privacy": "public",
1009
- "return": {
1010
- "type": {
1011
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1012
- }
1013
- },
1014
- "parameters": [
1015
- {
1016
- "name": "newValue",
1017
- "type": {
1018
- "text": "Omit<T, 'id'>"
1019
- }
1020
- }
1021
- ]
1022
- },
1023
- {
1024
- "kind": "method",
1025
- "name": "read",
1026
- "privacy": "public",
1027
- "return": {
1028
- "type": {
1029
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1030
- }
1031
- },
1032
- "parameters": [
1033
- {
1034
- "name": "id",
1035
- "type": {
1036
- "text": "string"
1037
- }
1038
- }
1039
- ]
1040
- },
1041
- {
1042
- "kind": "method",
1043
- "name": "update",
1044
- "privacy": "public",
1045
- "return": {
1046
- "type": {
1047
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1048
- }
1049
- },
1050
- "parameters": [
1051
- {
1052
- "name": "id",
1053
- "type": {
1054
- "text": "string"
1055
- }
1056
- },
1057
- {
1058
- "name": "newValue",
1059
- "type": {
1060
- "text": "Omit<Partial<T>, 'id'>"
1061
- }
1062
- }
1063
- ]
1064
- },
1065
- {
1066
- "kind": "method",
1067
- "name": "delete",
1068
- "privacy": "public",
1069
- "return": {
1070
- "type": {
1071
- "text": "Promise<DatabaseAccessResult.Delete>"
1072
- }
1073
- },
1074
- "parameters": [
1075
- {
1076
- "name": "id",
1077
- "type": {
1078
- "text": "string"
1079
- }
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "kind": "method",
1085
- "name": "visit",
1086
- "privacy": "public",
1087
- "return": {
1088
- "type": {
1089
- "text": "Promise<void>"
1090
- }
1091
- },
1092
- "parameters": [
1093
- {
1094
- "name": "visitor",
1095
- "type": {
1096
- "text": "(record: T) => void"
1097
- }
1098
- }
1099
- ]
1100
- },
1101
- {
1102
- "kind": "method",
1103
- "name": "onBeforeUpdate",
1104
- "privacy": "public",
1105
- "return": {
1106
- "type": {
1107
- "text": "() => void"
1108
- }
1109
- },
1110
- "parameters": [
1111
- {
1112
- "name": "listener",
1113
- "type": {
1114
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1115
- }
1116
- }
1117
- ]
1118
- },
1119
- {
1120
- "kind": "method",
1121
- "name": "onAfterUpdate",
1122
- "privacy": "public",
1123
- "return": {
1124
- "type": {
1125
- "text": "() => void"
1126
- }
1127
- },
1128
- "parameters": [
1129
- {
1130
- "name": "listener",
1131
- "type": {
1132
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1133
- }
1134
- }
1135
- ]
1136
- }
1137
- ]
1138
- }
1139
- ],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "InMemoryDatabase",
1144
- "declaration": {
1145
- "name": "InMemoryDatabase",
1146
- "module": "src/data/inMemoryDatabase.ts"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
- {
1152
- "kind": "javascript-module",
1153
- "path": "src/data/index.ts",
1154
- "declarations": [],
1155
- "exports": [
1156
- {
1157
- "kind": "js",
1158
- "name": "*",
1159
- "declaration": {
1160
- "name": "*",
1161
- "package": "./inMemoryDatabase"
1162
- }
1163
- }
1164
- ]
1165
- },
1166
- {
1167
- "kind": "javascript-module",
1168
- "path": "src/decorators/index.ts",
1169
- "declarations": [],
1170
- "exports": [
1171
- {
1172
- "kind": "js",
1173
- "name": "*",
1174
- "declaration": {
1175
- "name": "*",
1176
- "package": "./renderOnChange"
1177
- }
1178
- }
1179
- ]
1180
- },
1181
- {
1182
- "kind": "javascript-module",
1183
- "path": "src/decorators/renderOnChange.ts",
1184
- "declarations": [
1185
- {
1186
- "kind": "function",
1187
- "name": "renderOnChange",
1188
- "parameters": [
1189
- {
1190
- "name": "target",
1191
- "type": {
1192
- "text": "FASTElement & { render(): void }"
1193
- },
1194
- "description": "The target to define the property change handler on."
1195
- },
1196
- {
1197
- "name": "name",
1198
- "type": {
1199
- "text": "string"
1200
- },
1201
- "description": "The property name."
1202
- }
1203
- ],
1204
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
- "privacy": "public"
1206
- }
1207
- ],
1208
- "exports": [
1209
- {
1210
- "kind": "js",
1211
- "name": "renderOnChange",
1212
- "declaration": {
1213
- "name": "renderOnChange",
1214
- "module": "src/decorators/renderOnChange.ts"
1215
- }
1216
- }
1217
- ]
1218
- },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "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.482.0",
4
+ "version": "14.482.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.482.0",
33
- "@genesislcap/genx": "14.482.0",
34
- "@genesislcap/rollup-builder": "14.482.0",
35
- "@genesislcap/ts-builder": "14.482.0",
36
- "@genesislcap/uvu-playwright-builder": "14.482.0",
37
- "@genesislcap/vite-builder": "14.482.0",
38
- "@genesislcap/webpack-builder": "14.482.0",
32
+ "@genesislcap/foundation-testing": "14.482.1",
33
+ "@genesislcap/genx": "14.482.1",
34
+ "@genesislcap/rollup-builder": "14.482.1",
35
+ "@genesislcap/ts-builder": "14.482.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.482.1",
37
+ "@genesislcap/vite-builder": "14.482.1",
38
+ "@genesislcap/webpack-builder": "14.482.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.482.0",
43
- "@genesislcap/foundation-logger": "14.482.0",
42
+ "@genesislcap/expression-builder": "14.482.1",
43
+ "@genesislcap/foundation-logger": "14.482.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": "176fdab04821da415454fcdbc124f7fabac07aa7"
61
+ "gitHead": "43a902838587d527b6786bbb41a5c3784c638e70"
62
62
  }