@genesislcap/foundation-utils 14.466.0 → 14.466.1-alpha-73081f7.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 +287 -287
  2. package/package.json +11 -11
@@ -209,100 +209,6 @@
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
- },
253
- {
254
- "kind": "javascript-module",
255
- "path": "src/decorators/index.ts",
256
- "declarations": [],
257
- "exports": [
258
- {
259
- "kind": "js",
260
- "name": "*",
261
- "declaration": {
262
- "name": "*",
263
- "package": "./renderOnChange"
264
- }
265
- }
266
- ]
267
- },
268
- {
269
- "kind": "javascript-module",
270
- "path": "src/decorators/renderOnChange.ts",
271
- "declarations": [
272
- {
273
- "kind": "function",
274
- "name": "renderOnChange",
275
- "parameters": [
276
- {
277
- "name": "target",
278
- "type": {
279
- "text": "FASTElement & { render(): void }"
280
- },
281
- "description": "The target to define the property change handler on."
282
- },
283
- {
284
- "name": "name",
285
- "type": {
286
- "text": "string"
287
- },
288
- "description": "The property name."
289
- }
290
- ],
291
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
292
- "privacy": "public"
293
- }
294
- ],
295
- "exports": [
296
- {
297
- "kind": "js",
298
- "name": "renderOnChange",
299
- "declaration": {
300
- "name": "renderOnChange",
301
- "module": "src/decorators/renderOnChange.ts"
302
- }
303
- }
304
- ]
305
- },
306
212
  {
307
213
  "kind": "javascript-module",
308
214
  "path": "src/design-system/design-system.ts",
@@ -507,190 +413,30 @@
507
413
  },
508
414
  {
509
415
  "kind": "javascript-module",
510
- "path": "src/data/inMemoryDatabase.ts",
511
- "declarations": [
512
- {
513
- "kind": "class",
514
- "description": "An in memory database of specific DatabaseRecord types.",
515
- "name": "InMemoryDatabase",
516
- "members": [
517
- {
518
- "kind": "field",
519
- "name": "isWorking",
520
- "type": {
521
- "text": "boolean"
522
- },
523
- "privacy": "public",
524
- "default": "false"
525
- },
526
- {
527
- "kind": "field",
528
- "name": "records",
529
- "type": {
530
- "text": "Record<string, T>"
531
- },
532
- "privacy": "private",
533
- "default": "{}"
534
- },
535
- {
536
- "kind": "field",
537
- "name": "beforeUpdateListeners",
538
- "privacy": "private"
539
- },
540
- {
541
- "kind": "field",
542
- "name": "afterUpdateListeners",
543
- "privacy": "private"
544
- },
545
- {
546
- "kind": "method",
547
- "name": "create",
548
- "privacy": "public",
549
- "return": {
550
- "type": {
551
- "text": "Promise<DatabaseAccessResult.Create<T>>"
552
- }
553
- },
554
- "parameters": [
555
- {
556
- "name": "newValue",
557
- "type": {
558
- "text": "Omit<T, 'id'>"
559
- }
560
- }
561
- ]
562
- },
563
- {
564
- "kind": "method",
565
- "name": "read",
566
- "privacy": "public",
567
- "return": {
568
- "type": {
569
- "text": "Promise<DatabaseAccessResult.Read<T>>"
570
- }
571
- },
572
- "parameters": [
573
- {
574
- "name": "id",
575
- "type": {
576
- "text": "string"
577
- }
578
- }
579
- ]
580
- },
581
- {
582
- "kind": "method",
583
- "name": "update",
584
- "privacy": "public",
585
- "return": {
586
- "type": {
587
- "text": "Promise<DatabaseAccessResult.Update<T>>"
588
- }
589
- },
590
- "parameters": [
591
- {
592
- "name": "id",
593
- "type": {
594
- "text": "string"
595
- }
596
- },
597
- {
598
- "name": "newValue",
599
- "type": {
600
- "text": "Omit<Partial<T>, 'id'>"
601
- }
602
- }
603
- ]
604
- },
605
- {
606
- "kind": "method",
607
- "name": "delete",
608
- "privacy": "public",
609
- "return": {
610
- "type": {
611
- "text": "Promise<DatabaseAccessResult.Delete>"
612
- }
613
- },
614
- "parameters": [
615
- {
616
- "name": "id",
617
- "type": {
618
- "text": "string"
619
- }
620
- }
621
- ]
622
- },
623
- {
624
- "kind": "method",
625
- "name": "visit",
626
- "privacy": "public",
627
- "return": {
628
- "type": {
629
- "text": "Promise<void>"
630
- }
631
- },
632
- "parameters": [
633
- {
634
- "name": "visitor",
635
- "type": {
636
- "text": "(record: T) => void"
637
- }
638
- }
639
- ]
640
- },
641
- {
642
- "kind": "method",
643
- "name": "onBeforeUpdate",
644
- "privacy": "public",
645
- "return": {
646
- "type": {
647
- "text": "() => void"
648
- }
649
- },
650
- "parameters": [
651
- {
652
- "name": "listener",
653
- "type": {
654
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
655
- }
656
- }
657
- ]
658
- },
659
- {
660
- "kind": "method",
661
- "name": "onAfterUpdate",
662
- "privacy": "public",
663
- "return": {
664
- "type": {
665
- "text": "() => void"
666
- }
667
- },
668
- "parameters": [
669
- {
670
- "name": "listener",
671
- "type": {
672
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
673
- }
674
- }
675
- ]
676
- }
677
- ]
678
- }
679
- ],
416
+ "path": "src/directives/index.ts",
417
+ "declarations": [],
680
418
  "exports": [
681
419
  {
682
420
  "kind": "js",
683
- "name": "InMemoryDatabase",
421
+ "name": "*",
684
422
  "declaration": {
685
- "name": "InMemoryDatabase",
686
- "module": "src/data/inMemoryDatabase.ts"
423
+ "name": "*",
424
+ "package": "./sync"
425
+ }
426
+ },
427
+ {
428
+ "kind": "js",
429
+ "name": "*",
430
+ "declaration": {
431
+ "name": "*",
432
+ "package": "./when-else"
687
433
  }
688
434
  }
689
435
  ]
690
436
  },
691
437
  {
692
438
  "kind": "javascript-module",
693
- "path": "src/data/index.ts",
439
+ "path": "src/encoding/index.ts",
694
440
  "declarations": [],
695
441
  "exports": [
696
442
  {
@@ -698,14 +444,14 @@
698
444
  "name": "*",
699
445
  "declaration": {
700
446
  "name": "*",
701
- "package": "./inMemoryDatabase"
447
+ "package": "./base64"
702
448
  }
703
449
  }
704
450
  ]
705
451
  },
706
452
  {
707
453
  "kind": "javascript-module",
708
- "path": "src/directives/index.ts",
454
+ "path": "src/decorators/index.ts",
709
455
  "declarations": [],
710
456
  "exports": [
711
457
  {
@@ -713,30 +459,45 @@
713
459
  "name": "*",
714
460
  "declaration": {
715
461
  "name": "*",
716
- "package": "./sync"
462
+ "package": "./renderOnChange"
717
463
  }
718
- },
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "kind": "javascript-module",
469
+ "path": "src/decorators/renderOnChange.ts",
470
+ "declarations": [
719
471
  {
720
- "kind": "js",
721
- "name": "*",
722
- "declaration": {
723
- "name": "*",
724
- "package": "./when-else"
725
- }
472
+ "kind": "function",
473
+ "name": "renderOnChange",
474
+ "parameters": [
475
+ {
476
+ "name": "target",
477
+ "type": {
478
+ "text": "FASTElement & { render(): void }"
479
+ },
480
+ "description": "The target to define the property change handler on."
481
+ },
482
+ {
483
+ "name": "name",
484
+ "type": {
485
+ "text": "string"
486
+ },
487
+ "description": "The property name."
488
+ }
489
+ ],
490
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
491
+ "privacy": "public"
726
492
  }
727
- ]
728
- },
729
- {
730
- "kind": "javascript-module",
731
- "path": "src/encoding/index.ts",
732
- "declarations": [],
493
+ ],
733
494
  "exports": [
734
495
  {
735
496
  "kind": "js",
736
- "name": "*",
497
+ "name": "renderOnChange",
737
498
  "declaration": {
738
- "name": "*",
739
- "package": "./base64"
499
+ "name": "renderOnChange",
500
+ "module": "src/decorators/renderOnChange.ts"
740
501
  }
741
502
  }
742
503
  ]
@@ -1216,6 +977,245 @@
1216
977
  }
1217
978
  ]
1218
979
  },
980
+ {
981
+ "kind": "javascript-module",
982
+ "path": "src/converters/index.ts",
983
+ "declarations": [],
984
+ "exports": [
985
+ {
986
+ "kind": "js",
987
+ "name": "*",
988
+ "declaration": {
989
+ "name": "*",
990
+ "package": "./string-array-converter"
991
+ }
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "kind": "javascript-module",
997
+ "path": "src/converters/string-array-converter.ts",
998
+ "declarations": [
999
+ {
1000
+ "kind": "variable",
1001
+ "name": "stringArrayConverter",
1002
+ "type": {
1003
+ "text": "ValueConverter"
1004
+ },
1005
+ "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}",
1006
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
1007
+ "privacy": "public"
1008
+ }
1009
+ ],
1010
+ "exports": [
1011
+ {
1012
+ "kind": "js",
1013
+ "name": "stringArrayConverter",
1014
+ "declaration": {
1015
+ "name": "stringArrayConverter",
1016
+ "module": "src/converters/string-array-converter.ts"
1017
+ }
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "kind": "javascript-module",
1023
+ "path": "src/data/inMemoryDatabase.ts",
1024
+ "declarations": [
1025
+ {
1026
+ "kind": "class",
1027
+ "description": "An in memory database of specific DatabaseRecord types.",
1028
+ "name": "InMemoryDatabase",
1029
+ "members": [
1030
+ {
1031
+ "kind": "field",
1032
+ "name": "isWorking",
1033
+ "type": {
1034
+ "text": "boolean"
1035
+ },
1036
+ "privacy": "public",
1037
+ "default": "false"
1038
+ },
1039
+ {
1040
+ "kind": "field",
1041
+ "name": "records",
1042
+ "type": {
1043
+ "text": "Record<string, T>"
1044
+ },
1045
+ "privacy": "private",
1046
+ "default": "{}"
1047
+ },
1048
+ {
1049
+ "kind": "field",
1050
+ "name": "beforeUpdateListeners",
1051
+ "privacy": "private"
1052
+ },
1053
+ {
1054
+ "kind": "field",
1055
+ "name": "afterUpdateListeners",
1056
+ "privacy": "private"
1057
+ },
1058
+ {
1059
+ "kind": "method",
1060
+ "name": "create",
1061
+ "privacy": "public",
1062
+ "return": {
1063
+ "type": {
1064
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1065
+ }
1066
+ },
1067
+ "parameters": [
1068
+ {
1069
+ "name": "newValue",
1070
+ "type": {
1071
+ "text": "Omit<T, 'id'>"
1072
+ }
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "kind": "method",
1078
+ "name": "read",
1079
+ "privacy": "public",
1080
+ "return": {
1081
+ "type": {
1082
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1083
+ }
1084
+ },
1085
+ "parameters": [
1086
+ {
1087
+ "name": "id",
1088
+ "type": {
1089
+ "text": "string"
1090
+ }
1091
+ }
1092
+ ]
1093
+ },
1094
+ {
1095
+ "kind": "method",
1096
+ "name": "update",
1097
+ "privacy": "public",
1098
+ "return": {
1099
+ "type": {
1100
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1101
+ }
1102
+ },
1103
+ "parameters": [
1104
+ {
1105
+ "name": "id",
1106
+ "type": {
1107
+ "text": "string"
1108
+ }
1109
+ },
1110
+ {
1111
+ "name": "newValue",
1112
+ "type": {
1113
+ "text": "Omit<Partial<T>, 'id'>"
1114
+ }
1115
+ }
1116
+ ]
1117
+ },
1118
+ {
1119
+ "kind": "method",
1120
+ "name": "delete",
1121
+ "privacy": "public",
1122
+ "return": {
1123
+ "type": {
1124
+ "text": "Promise<DatabaseAccessResult.Delete>"
1125
+ }
1126
+ },
1127
+ "parameters": [
1128
+ {
1129
+ "name": "id",
1130
+ "type": {
1131
+ "text": "string"
1132
+ }
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ "kind": "method",
1138
+ "name": "visit",
1139
+ "privacy": "public",
1140
+ "return": {
1141
+ "type": {
1142
+ "text": "Promise<void>"
1143
+ }
1144
+ },
1145
+ "parameters": [
1146
+ {
1147
+ "name": "visitor",
1148
+ "type": {
1149
+ "text": "(record: T) => void"
1150
+ }
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "onBeforeUpdate",
1157
+ "privacy": "public",
1158
+ "return": {
1159
+ "type": {
1160
+ "text": "() => void"
1161
+ }
1162
+ },
1163
+ "parameters": [
1164
+ {
1165
+ "name": "listener",
1166
+ "type": {
1167
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1168
+ }
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "kind": "method",
1174
+ "name": "onAfterUpdate",
1175
+ "privacy": "public",
1176
+ "return": {
1177
+ "type": {
1178
+ "text": "() => void"
1179
+ }
1180
+ },
1181
+ "parameters": [
1182
+ {
1183
+ "name": "listener",
1184
+ "type": {
1185
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1186
+ }
1187
+ }
1188
+ ]
1189
+ }
1190
+ ]
1191
+ }
1192
+ ],
1193
+ "exports": [
1194
+ {
1195
+ "kind": "js",
1196
+ "name": "InMemoryDatabase",
1197
+ "declaration": {
1198
+ "name": "InMemoryDatabase",
1199
+ "module": "src/data/inMemoryDatabase.ts"
1200
+ }
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "kind": "javascript-module",
1206
+ "path": "src/data/index.ts",
1207
+ "declarations": [],
1208
+ "exports": [
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "*",
1212
+ "declaration": {
1213
+ "name": "*",
1214
+ "package": "./inMemoryDatabase"
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.466.0",
4
+ "version": "14.466.1-alpha-73081f7.0",
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.466.0",
33
- "@genesislcap/genx": "14.466.0",
34
- "@genesislcap/rollup-builder": "14.466.0",
35
- "@genesislcap/ts-builder": "14.466.0",
36
- "@genesislcap/uvu-playwright-builder": "14.466.0",
37
- "@genesislcap/vite-builder": "14.466.0",
38
- "@genesislcap/webpack-builder": "14.466.0",
32
+ "@genesislcap/foundation-testing": "14.466.1-alpha-73081f7.0",
33
+ "@genesislcap/genx": "14.466.1-alpha-73081f7.0",
34
+ "@genesislcap/rollup-builder": "14.466.1-alpha-73081f7.0",
35
+ "@genesislcap/ts-builder": "14.466.1-alpha-73081f7.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.466.1-alpha-73081f7.0",
37
+ "@genesislcap/vite-builder": "14.466.1-alpha-73081f7.0",
38
+ "@genesislcap/webpack-builder": "14.466.1-alpha-73081f7.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.466.0",
43
- "@genesislcap/foundation-logger": "14.466.0",
42
+ "@genesislcap/expression-builder": "14.466.1-alpha-73081f7.0",
43
+ "@genesislcap/foundation-logger": "14.466.1-alpha-73081f7.0",
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": "a0ced1e97a07712305acd5675461d5f9273c8e51"
61
+ "gitHead": "890fd9ed0a0360ccc0ff5cfc390e0c39088b1136"
62
62
  }