@genesislcap/foundation-utils 15.65.0 → 15.65.1-alpha-358eaead70.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.
@@ -219,7 +219,7 @@
219
219
  },
220
220
  {
221
221
  "kind": "javascript-module",
222
- "path": "src/converters/index.ts",
222
+ "path": "src/decorators/index.ts",
223
223
  "declarations": [],
224
224
  "exports": [
225
225
  {
@@ -227,223 +227,116 @@
227
227
  "name": "*",
228
228
  "declaration": {
229
229
  "name": "*",
230
- "package": "./string-array-converter"
230
+ "package": "./renderOnChange"
231
231
  }
232
232
  }
233
233
  ]
234
234
  },
235
235
  {
236
236
  "kind": "javascript-module",
237
- "path": "src/converters/string-array-converter.ts",
237
+ "path": "src/decorators/renderOnChange.ts",
238
238
  "declarations": [
239
239
  {
240
- "kind": "variable",
241
- "name": "stringArrayConverter",
242
- "type": {
243
- "text": "ValueConverter"
244
- },
245
- "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}",
246
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
240
+ "kind": "function",
241
+ "name": "renderOnChange",
242
+ "parameters": [
243
+ {
244
+ "name": "target",
245
+ "type": {
246
+ "text": "FASTElement & { render(): void }"
247
+ },
248
+ "description": "The target to define the property change handler on."
249
+ },
250
+ {
251
+ "name": "name",
252
+ "type": {
253
+ "text": "string"
254
+ },
255
+ "description": "The property name."
256
+ }
257
+ ],
258
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
247
259
  "privacy": "public"
248
260
  }
249
261
  ],
250
262
  "exports": [
251
263
  {
252
264
  "kind": "js",
253
- "name": "stringArrayConverter",
265
+ "name": "renderOnChange",
254
266
  "declaration": {
255
- "name": "stringArrayConverter",
256
- "module": "src/converters/string-array-converter.ts"
267
+ "name": "renderOnChange",
268
+ "module": "src/decorators/renderOnChange.ts"
257
269
  }
258
270
  }
259
271
  ]
260
272
  },
261
273
  {
262
274
  "kind": "javascript-module",
263
- "path": "src/data/inMemoryDatabase.ts",
275
+ "path": "src/directives/index.ts",
276
+ "declarations": [],
277
+ "exports": [
278
+ {
279
+ "kind": "js",
280
+ "name": "*",
281
+ "declaration": {
282
+ "name": "*",
283
+ "package": "./sync"
284
+ }
285
+ },
286
+ {
287
+ "kind": "js",
288
+ "name": "*",
289
+ "declaration": {
290
+ "name": "*",
291
+ "package": "./when-else"
292
+ }
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "kind": "javascript-module",
298
+ "path": "src/converters/index.ts",
299
+ "declarations": [],
300
+ "exports": [
301
+ {
302
+ "kind": "js",
303
+ "name": "*",
304
+ "declaration": {
305
+ "name": "*",
306
+ "package": "./string-array-converter"
307
+ }
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "kind": "javascript-module",
313
+ "path": "src/converters/string-array-converter.ts",
264
314
  "declarations": [
265
315
  {
266
- "kind": "class",
267
- "description": "An in memory database of specific DatabaseRecord types.",
268
- "name": "InMemoryDatabase",
269
- "members": [
270
- {
271
- "kind": "field",
272
- "name": "isWorking",
273
- "type": {
274
- "text": "boolean"
275
- },
276
- "privacy": "public",
277
- "default": "false"
278
- },
279
- {
280
- "kind": "field",
281
- "name": "records",
282
- "type": {
283
- "text": "Record<string, T>"
284
- },
285
- "privacy": "private",
286
- "default": "{}"
287
- },
288
- {
289
- "kind": "field",
290
- "name": "beforeUpdateListeners",
291
- "privacy": "private"
292
- },
293
- {
294
- "kind": "field",
295
- "name": "afterUpdateListeners",
296
- "privacy": "private"
297
- },
298
- {
299
- "kind": "method",
300
- "name": "create",
301
- "privacy": "public",
302
- "return": {
303
- "type": {
304
- "text": "Promise<DatabaseAccessResult.Create<T>>"
305
- }
306
- },
307
- "parameters": [
308
- {
309
- "name": "newValue",
310
- "type": {
311
- "text": "Omit<T, 'id'>"
312
- }
313
- }
314
- ]
315
- },
316
- {
317
- "kind": "method",
318
- "name": "read",
319
- "privacy": "public",
320
- "return": {
321
- "type": {
322
- "text": "Promise<DatabaseAccessResult.Read<T>>"
323
- }
324
- },
325
- "parameters": [
326
- {
327
- "name": "id",
328
- "type": {
329
- "text": "string"
330
- }
331
- }
332
- ]
333
- },
334
- {
335
- "kind": "method",
336
- "name": "update",
337
- "privacy": "public",
338
- "return": {
339
- "type": {
340
- "text": "Promise<DatabaseAccessResult.Update<T>>"
341
- }
342
- },
343
- "parameters": [
344
- {
345
- "name": "id",
346
- "type": {
347
- "text": "string"
348
- }
349
- },
350
- {
351
- "name": "newValue",
352
- "type": {
353
- "text": "Omit<Partial<T>, 'id'>"
354
- }
355
- }
356
- ]
357
- },
358
- {
359
- "kind": "method",
360
- "name": "delete",
361
- "privacy": "public",
362
- "return": {
363
- "type": {
364
- "text": "Promise<DatabaseAccessResult.Delete>"
365
- }
366
- },
367
- "parameters": [
368
- {
369
- "name": "id",
370
- "type": {
371
- "text": "string"
372
- }
373
- }
374
- ]
375
- },
376
- {
377
- "kind": "method",
378
- "name": "visit",
379
- "privacy": "public",
380
- "return": {
381
- "type": {
382
- "text": "Promise<void>"
383
- }
384
- },
385
- "parameters": [
386
- {
387
- "name": "visitor",
388
- "type": {
389
- "text": "(record: T) => void"
390
- }
391
- }
392
- ]
393
- },
394
- {
395
- "kind": "method",
396
- "name": "onBeforeUpdate",
397
- "privacy": "public",
398
- "return": {
399
- "type": {
400
- "text": "() => void"
401
- }
402
- },
403
- "parameters": [
404
- {
405
- "name": "listener",
406
- "type": {
407
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
408
- }
409
- }
410
- ]
411
- },
412
- {
413
- "kind": "method",
414
- "name": "onAfterUpdate",
415
- "privacy": "public",
416
- "return": {
417
- "type": {
418
- "text": "() => void"
419
- }
420
- },
421
- "parameters": [
422
- {
423
- "name": "listener",
424
- "type": {
425
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
426
- }
427
- }
428
- ]
429
- }
430
- ]
316
+ "kind": "variable",
317
+ "name": "stringArrayConverter",
318
+ "type": {
319
+ "text": "ValueConverter"
320
+ },
321
+ "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}",
322
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
323
+ "privacy": "public"
431
324
  }
432
325
  ],
433
326
  "exports": [
434
327
  {
435
328
  "kind": "js",
436
- "name": "InMemoryDatabase",
329
+ "name": "stringArrayConverter",
437
330
  "declaration": {
438
- "name": "InMemoryDatabase",
439
- "module": "src/data/inMemoryDatabase.ts"
331
+ "name": "stringArrayConverter",
332
+ "module": "src/converters/string-array-converter.ts"
440
333
  }
441
334
  }
442
335
  ]
443
336
  },
444
337
  {
445
338
  "kind": "javascript-module",
446
- "path": "src/data/index.ts",
339
+ "path": "src/encoding/index.ts",
447
340
  "declarations": [],
448
341
  "exports": [
449
342
  {
@@ -451,7 +344,7 @@
451
344
  "name": "*",
452
345
  "declaration": {
453
346
  "name": "*",
454
- "package": "./inMemoryDatabase"
347
+ "package": "./base64"
455
348
  }
456
349
  }
457
350
  ]
@@ -586,157 +479,58 @@
586
479
  {
587
480
  "kind": "function",
588
481
  "name": "buildEditableElementSelector",
589
- "return": {
590
- "type": {
591
- "text": "string"
592
- }
593
- },
594
- "parameters": [
595
- {
596
- "name": "designSystems",
597
- "type": {
598
- "text": "readonly EditableDesignSystemPrefix[]"
599
- }
600
- },
601
- {
602
- "name": "customEditableSelectors",
603
- "default": "[]",
604
- "type": {
605
- "text": "readonly string[]"
606
- }
607
- }
608
- ]
609
- }
610
- ],
611
- "exports": [
612
- {
613
- "kind": "js",
614
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
615
- "declaration": {
616
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
617
- "module": "src/design-system/editable-elements.ts"
618
- }
619
- },
620
- {
621
- "kind": "js",
622
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
623
- "declaration": {
624
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
625
- "module": "src/design-system/editable-elements.ts"
626
- }
627
- },
628
- {
629
- "kind": "js",
630
- "name": "buildEditableElementSelector",
631
- "declaration": {
632
- "name": "buildEditableElementSelector",
633
- "module": "src/design-system/editable-elements.ts"
634
- }
635
- }
636
- ]
637
- },
638
- {
639
- "kind": "javascript-module",
640
- "path": "src/design-system/index.ts",
641
- "declarations": [],
642
- "exports": [
643
- {
644
- "kind": "js",
645
- "name": "*",
646
- "declaration": {
647
- "name": "*",
648
- "package": "./design-system"
649
- }
650
- },
651
- {
652
- "kind": "js",
653
- "name": "*",
654
- "declaration": {
655
- "name": "*",
656
- "package": "./editable-elements"
657
- }
658
- }
659
- ]
660
- },
661
- {
662
- "kind": "javascript-module",
663
- "path": "src/directives/index.ts",
664
- "declarations": [],
665
- "exports": [
666
- {
667
- "kind": "js",
668
- "name": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./sync"
672
- }
673
- },
674
- {
675
- "kind": "js",
676
- "name": "*",
677
- "declaration": {
678
- "name": "*",
679
- "package": "./when-else"
680
- }
681
- }
682
- ]
683
- },
684
- {
685
- "kind": "javascript-module",
686
- "path": "src/decorators/index.ts",
687
- "declarations": [],
688
- "exports": [
689
- {
690
- "kind": "js",
691
- "name": "*",
692
- "declaration": {
693
- "name": "*",
694
- "package": "./renderOnChange"
695
- }
696
- }
697
- ]
698
- },
699
- {
700
- "kind": "javascript-module",
701
- "path": "src/decorators/renderOnChange.ts",
702
- "declarations": [
703
- {
704
- "kind": "function",
705
- "name": "renderOnChange",
482
+ "return": {
483
+ "type": {
484
+ "text": "string"
485
+ }
486
+ },
706
487
  "parameters": [
707
488
  {
708
- "name": "target",
489
+ "name": "designSystems",
709
490
  "type": {
710
- "text": "FASTElement & { render(): void }"
711
- },
712
- "description": "The target to define the property change handler on."
491
+ "text": "readonly EditableDesignSystemPrefix[]"
492
+ }
713
493
  },
714
494
  {
715
- "name": "name",
495
+ "name": "customEditableSelectors",
496
+ "default": "[]",
716
497
  "type": {
717
- "text": "string"
718
- },
719
- "description": "The property name."
498
+ "text": "readonly string[]"
499
+ }
720
500
  }
721
- ],
722
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
723
- "privacy": "public"
501
+ ]
724
502
  }
725
503
  ],
726
504
  "exports": [
727
505
  {
728
506
  "kind": "js",
729
- "name": "renderOnChange",
507
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
730
508
  "declaration": {
731
- "name": "renderOnChange",
732
- "module": "src/decorators/renderOnChange.ts"
509
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
510
+ "module": "src/design-system/editable-elements.ts"
511
+ }
512
+ },
513
+ {
514
+ "kind": "js",
515
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
516
+ "declaration": {
517
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
518
+ "module": "src/design-system/editable-elements.ts"
519
+ }
520
+ },
521
+ {
522
+ "kind": "js",
523
+ "name": "buildEditableElementSelector",
524
+ "declaration": {
525
+ "name": "buildEditableElementSelector",
526
+ "module": "src/design-system/editable-elements.ts"
733
527
  }
734
528
  }
735
529
  ]
736
530
  },
737
531
  {
738
532
  "kind": "javascript-module",
739
- "path": "src/encoding/index.ts",
533
+ "path": "src/design-system/index.ts",
740
534
  "declarations": [],
741
535
  "exports": [
742
536
  {
@@ -744,7 +538,15 @@
744
538
  "name": "*",
745
539
  "declaration": {
746
540
  "name": "*",
747
- "package": "./base64"
541
+ "package": "./design-system"
542
+ }
543
+ },
544
+ {
545
+ "kind": "js",
546
+ "name": "*",
547
+ "declaration": {
548
+ "name": "*",
549
+ "package": "./editable-elements"
748
550
  }
749
551
  }
750
552
  ]
@@ -1248,6 +1050,204 @@
1248
1050
  }
1249
1051
  ]
1250
1052
  },
1053
+ {
1054
+ "kind": "javascript-module",
1055
+ "path": "src/data/inMemoryDatabase.ts",
1056
+ "declarations": [
1057
+ {
1058
+ "kind": "class",
1059
+ "description": "An in memory database of specific DatabaseRecord types.",
1060
+ "name": "InMemoryDatabase",
1061
+ "members": [
1062
+ {
1063
+ "kind": "field",
1064
+ "name": "isWorking",
1065
+ "type": {
1066
+ "text": "boolean"
1067
+ },
1068
+ "privacy": "public",
1069
+ "default": "false"
1070
+ },
1071
+ {
1072
+ "kind": "field",
1073
+ "name": "records",
1074
+ "type": {
1075
+ "text": "Record<string, T>"
1076
+ },
1077
+ "privacy": "private",
1078
+ "default": "{}"
1079
+ },
1080
+ {
1081
+ "kind": "field",
1082
+ "name": "beforeUpdateListeners",
1083
+ "privacy": "private"
1084
+ },
1085
+ {
1086
+ "kind": "field",
1087
+ "name": "afterUpdateListeners",
1088
+ "privacy": "private"
1089
+ },
1090
+ {
1091
+ "kind": "method",
1092
+ "name": "create",
1093
+ "privacy": "public",
1094
+ "return": {
1095
+ "type": {
1096
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
1097
+ }
1098
+ },
1099
+ "parameters": [
1100
+ {
1101
+ "name": "newValue",
1102
+ "type": {
1103
+ "text": "Omit<T, 'id'>"
1104
+ }
1105
+ }
1106
+ ]
1107
+ },
1108
+ {
1109
+ "kind": "method",
1110
+ "name": "read",
1111
+ "privacy": "public",
1112
+ "return": {
1113
+ "type": {
1114
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
1115
+ }
1116
+ },
1117
+ "parameters": [
1118
+ {
1119
+ "name": "id",
1120
+ "type": {
1121
+ "text": "string"
1122
+ }
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "kind": "method",
1128
+ "name": "update",
1129
+ "privacy": "public",
1130
+ "return": {
1131
+ "type": {
1132
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1133
+ }
1134
+ },
1135
+ "parameters": [
1136
+ {
1137
+ "name": "id",
1138
+ "type": {
1139
+ "text": "string"
1140
+ }
1141
+ },
1142
+ {
1143
+ "name": "newValue",
1144
+ "type": {
1145
+ "text": "Omit<Partial<T>, 'id'>"
1146
+ }
1147
+ }
1148
+ ]
1149
+ },
1150
+ {
1151
+ "kind": "method",
1152
+ "name": "delete",
1153
+ "privacy": "public",
1154
+ "return": {
1155
+ "type": {
1156
+ "text": "Promise<DatabaseAccessResult.Delete>"
1157
+ }
1158
+ },
1159
+ "parameters": [
1160
+ {
1161
+ "name": "id",
1162
+ "type": {
1163
+ "text": "string"
1164
+ }
1165
+ }
1166
+ ]
1167
+ },
1168
+ {
1169
+ "kind": "method",
1170
+ "name": "visit",
1171
+ "privacy": "public",
1172
+ "return": {
1173
+ "type": {
1174
+ "text": "Promise<void>"
1175
+ }
1176
+ },
1177
+ "parameters": [
1178
+ {
1179
+ "name": "visitor",
1180
+ "type": {
1181
+ "text": "(record: T) => void"
1182
+ }
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ "kind": "method",
1188
+ "name": "onBeforeUpdate",
1189
+ "privacy": "public",
1190
+ "return": {
1191
+ "type": {
1192
+ "text": "() => void"
1193
+ }
1194
+ },
1195
+ "parameters": [
1196
+ {
1197
+ "name": "listener",
1198
+ "type": {
1199
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1200
+ }
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "kind": "method",
1206
+ "name": "onAfterUpdate",
1207
+ "privacy": "public",
1208
+ "return": {
1209
+ "type": {
1210
+ "text": "() => void"
1211
+ }
1212
+ },
1213
+ "parameters": [
1214
+ {
1215
+ "name": "listener",
1216
+ "type": {
1217
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1218
+ }
1219
+ }
1220
+ ]
1221
+ }
1222
+ ]
1223
+ }
1224
+ ],
1225
+ "exports": [
1226
+ {
1227
+ "kind": "js",
1228
+ "name": "InMemoryDatabase",
1229
+ "declaration": {
1230
+ "name": "InMemoryDatabase",
1231
+ "module": "src/data/inMemoryDatabase.ts"
1232
+ }
1233
+ }
1234
+ ]
1235
+ },
1236
+ {
1237
+ "kind": "javascript-module",
1238
+ "path": "src/data/index.ts",
1239
+ "declarations": [],
1240
+ "exports": [
1241
+ {
1242
+ "kind": "js",
1243
+ "name": "*",
1244
+ "declaration": {
1245
+ "name": "*",
1246
+ "package": "./inMemoryDatabase"
1247
+ }
1248
+ }
1249
+ ]
1250
+ },
1251
1251
  {
1252
1252
  "kind": "javascript-module",
1253
1253
  "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": "15.65.0",
4
+ "version": "15.65.1-alpha-358eaead70.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,17 +29,17 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "15.65.0",
33
- "@genesislcap/genx": "15.65.0",
34
- "@genesislcap/ts-builder": "15.65.0",
35
- "@genesislcap/uvu-playwright-builder": "15.65.0",
36
- "@genesislcap/vite-builder": "15.65.0",
37
- "@genesislcap/webpack-builder": "15.65.0",
32
+ "@genesislcap/foundation-testing": "15.65.1-alpha-358eaead70.0",
33
+ "@genesislcap/genx": "15.65.1-alpha-358eaead70.0",
34
+ "@genesislcap/ts-builder": "15.65.1-alpha-358eaead70.0",
35
+ "@genesislcap/uvu-playwright-builder": "15.65.1-alpha-358eaead70.0",
36
+ "@genesislcap/vite-builder": "15.65.1-alpha-358eaead70.0",
37
+ "@genesislcap/webpack-builder": "15.65.1-alpha-358eaead70.0",
38
38
  "@types/json-schema": "^7.0.11"
39
39
  },
40
40
  "dependencies": {
41
- "@genesislcap/expression-builder": "15.65.0",
42
- "@genesislcap/foundation-logger": "15.65.0",
41
+ "@genesislcap/expression-builder": "15.65.1-alpha-358eaead70.0",
42
+ "@genesislcap/foundation-logger": "15.65.1-alpha-358eaead70.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.50.0",