@genesislcap/foundation-utils 15.15.2-FUI-2564.1 → 15.15.2-FUI-2603.7

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