@genesislcap/foundation-utils 14.458.2 → 14.458.3-alpha-cdd1303e9.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 +270 -270
  2. package/package.json +11 -11
@@ -209,245 +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/data/inMemoryDatabase.ts",
256
- "declarations": [
257
- {
258
- "kind": "class",
259
- "description": "An in memory database of specific DatabaseRecord types.",
260
- "name": "InMemoryDatabase",
261
- "members": [
262
- {
263
- "kind": "field",
264
- "name": "isWorking",
265
- "type": {
266
- "text": "boolean"
267
- },
268
- "privacy": "public",
269
- "default": "false"
270
- },
271
- {
272
- "kind": "field",
273
- "name": "records",
274
- "type": {
275
- "text": "Record<string, T>"
276
- },
277
- "privacy": "private",
278
- "default": "{}"
279
- },
280
- {
281
- "kind": "field",
282
- "name": "beforeUpdateListeners",
283
- "privacy": "private"
284
- },
285
- {
286
- "kind": "field",
287
- "name": "afterUpdateListeners",
288
- "privacy": "private"
289
- },
290
- {
291
- "kind": "method",
292
- "name": "create",
293
- "privacy": "public",
294
- "return": {
295
- "type": {
296
- "text": "Promise<DatabaseAccessResult.Create<T>>"
297
- }
298
- },
299
- "parameters": [
300
- {
301
- "name": "newValue",
302
- "type": {
303
- "text": "Omit<T, 'id'>"
304
- }
305
- }
306
- ]
307
- },
308
- {
309
- "kind": "method",
310
- "name": "read",
311
- "privacy": "public",
312
- "return": {
313
- "type": {
314
- "text": "Promise<DatabaseAccessResult.Read<T>>"
315
- }
316
- },
317
- "parameters": [
318
- {
319
- "name": "id",
320
- "type": {
321
- "text": "string"
322
- }
323
- }
324
- ]
325
- },
326
- {
327
- "kind": "method",
328
- "name": "update",
329
- "privacy": "public",
330
- "return": {
331
- "type": {
332
- "text": "Promise<DatabaseAccessResult.Update<T>>"
333
- }
334
- },
335
- "parameters": [
336
- {
337
- "name": "id",
338
- "type": {
339
- "text": "string"
340
- }
341
- },
342
- {
343
- "name": "newValue",
344
- "type": {
345
- "text": "Omit<Partial<T>, 'id'>"
346
- }
347
- }
348
- ]
349
- },
350
- {
351
- "kind": "method",
352
- "name": "delete",
353
- "privacy": "public",
354
- "return": {
355
- "type": {
356
- "text": "Promise<DatabaseAccessResult.Delete>"
357
- }
358
- },
359
- "parameters": [
360
- {
361
- "name": "id",
362
- "type": {
363
- "text": "string"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "kind": "method",
370
- "name": "visit",
371
- "privacy": "public",
372
- "return": {
373
- "type": {
374
- "text": "Promise<void>"
375
- }
376
- },
377
- "parameters": [
378
- {
379
- "name": "visitor",
380
- "type": {
381
- "text": "(record: T) => void"
382
- }
383
- }
384
- ]
385
- },
386
- {
387
- "kind": "method",
388
- "name": "onBeforeUpdate",
389
- "privacy": "public",
390
- "return": {
391
- "type": {
392
- "text": "() => void"
393
- }
394
- },
395
- "parameters": [
396
- {
397
- "name": "listener",
398
- "type": {
399
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
- }
401
- }
402
- ]
403
- },
404
- {
405
- "kind": "method",
406
- "name": "onAfterUpdate",
407
- "privacy": "public",
408
- "return": {
409
- "type": {
410
- "text": "() => void"
411
- }
412
- },
413
- "parameters": [
414
- {
415
- "name": "listener",
416
- "type": {
417
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
- }
419
- }
420
- ]
421
- }
422
- ]
423
- }
424
- ],
425
- "exports": [
426
- {
427
- "kind": "js",
428
- "name": "InMemoryDatabase",
429
- "declaration": {
430
- "name": "InMemoryDatabase",
431
- "module": "src/data/inMemoryDatabase.ts"
432
- }
433
- }
434
- ]
435
- },
436
- {
437
- "kind": "javascript-module",
438
- "path": "src/data/index.ts",
439
- "declarations": [],
440
- "exports": [
441
- {
442
- "kind": "js",
443
- "name": "*",
444
- "declaration": {
445
- "name": "*",
446
- "package": "./inMemoryDatabase"
447
- }
448
- }
449
- ]
450
- },
451
212
  {
452
213
  "kind": "javascript-module",
453
214
  "path": "src/design-system/design-system.ts",
@@ -657,25 +418,66 @@
657
418
  "exports": [
658
419
  {
659
420
  "kind": "js",
660
- "name": "*",
661
- "declaration": {
662
- "name": "*",
663
- "package": "./sync"
664
- }
665
- },
666
- {
667
- "kind": "js",
668
- "name": "*",
421
+ "name": "*",
422
+ "declaration": {
423
+ "name": "*",
424
+ "package": "./sync"
425
+ }
426
+ },
427
+ {
428
+ "kind": "js",
429
+ "name": "*",
430
+ "declaration": {
431
+ "name": "*",
432
+ "package": "./when-else"
433
+ }
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "kind": "javascript-module",
439
+ "path": "src/converters/index.ts",
440
+ "declarations": [],
441
+ "exports": [
442
+ {
443
+ "kind": "js",
444
+ "name": "*",
445
+ "declaration": {
446
+ "name": "*",
447
+ "package": "./string-array-converter"
448
+ }
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "kind": "javascript-module",
454
+ "path": "src/converters/string-array-converter.ts",
455
+ "declarations": [
456
+ {
457
+ "kind": "variable",
458
+ "name": "stringArrayConverter",
459
+ "type": {
460
+ "text": "ValueConverter"
461
+ },
462
+ "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}",
463
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
464
+ "privacy": "public"
465
+ }
466
+ ],
467
+ "exports": [
468
+ {
469
+ "kind": "js",
470
+ "name": "stringArrayConverter",
669
471
  "declaration": {
670
- "name": "*",
671
- "package": "./when-else"
472
+ "name": "stringArrayConverter",
473
+ "module": "src/converters/string-array-converter.ts"
672
474
  }
673
475
  }
674
476
  ]
675
477
  },
676
478
  {
677
479
  "kind": "javascript-module",
678
- "path": "src/decorators/index.ts",
480
+ "path": "src/encoding/index.ts",
679
481
  "declarations": [],
680
482
  "exports": [
681
483
  {
@@ -683,45 +485,205 @@
683
485
  "name": "*",
684
486
  "declaration": {
685
487
  "name": "*",
686
- "package": "./renderOnChange"
488
+ "package": "./base64"
687
489
  }
688
490
  }
689
491
  ]
690
492
  },
691
493
  {
692
494
  "kind": "javascript-module",
693
- "path": "src/decorators/renderOnChange.ts",
495
+ "path": "src/data/inMemoryDatabase.ts",
694
496
  "declarations": [
695
497
  {
696
- "kind": "function",
697
- "name": "renderOnChange",
698
- "parameters": [
498
+ "kind": "class",
499
+ "description": "An in memory database of specific DatabaseRecord types.",
500
+ "name": "InMemoryDatabase",
501
+ "members": [
699
502
  {
700
- "name": "target",
503
+ "kind": "field",
504
+ "name": "isWorking",
701
505
  "type": {
702
- "text": "FASTElement & { render(): void }"
506
+ "text": "boolean"
703
507
  },
704
- "description": "The target to define the property change handler on."
508
+ "privacy": "public",
509
+ "default": "false"
705
510
  },
706
511
  {
707
- "name": "name",
512
+ "kind": "field",
513
+ "name": "records",
708
514
  "type": {
709
- "text": "string"
515
+ "text": "Record<string, T>"
710
516
  },
711
- "description": "The property name."
517
+ "privacy": "private",
518
+ "default": "{}"
519
+ },
520
+ {
521
+ "kind": "field",
522
+ "name": "beforeUpdateListeners",
523
+ "privacy": "private"
524
+ },
525
+ {
526
+ "kind": "field",
527
+ "name": "afterUpdateListeners",
528
+ "privacy": "private"
529
+ },
530
+ {
531
+ "kind": "method",
532
+ "name": "create",
533
+ "privacy": "public",
534
+ "return": {
535
+ "type": {
536
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
537
+ }
538
+ },
539
+ "parameters": [
540
+ {
541
+ "name": "newValue",
542
+ "type": {
543
+ "text": "Omit<T, 'id'>"
544
+ }
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "kind": "method",
550
+ "name": "read",
551
+ "privacy": "public",
552
+ "return": {
553
+ "type": {
554
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
555
+ }
556
+ },
557
+ "parameters": [
558
+ {
559
+ "name": "id",
560
+ "type": {
561
+ "text": "string"
562
+ }
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "kind": "method",
568
+ "name": "update",
569
+ "privacy": "public",
570
+ "return": {
571
+ "type": {
572
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
573
+ }
574
+ },
575
+ "parameters": [
576
+ {
577
+ "name": "id",
578
+ "type": {
579
+ "text": "string"
580
+ }
581
+ },
582
+ {
583
+ "name": "newValue",
584
+ "type": {
585
+ "text": "Omit<Partial<T>, 'id'>"
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "kind": "method",
592
+ "name": "delete",
593
+ "privacy": "public",
594
+ "return": {
595
+ "type": {
596
+ "text": "Promise<DatabaseAccessResult.Delete>"
597
+ }
598
+ },
599
+ "parameters": [
600
+ {
601
+ "name": "id",
602
+ "type": {
603
+ "text": "string"
604
+ }
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "kind": "method",
610
+ "name": "visit",
611
+ "privacy": "public",
612
+ "return": {
613
+ "type": {
614
+ "text": "Promise<void>"
615
+ }
616
+ },
617
+ "parameters": [
618
+ {
619
+ "name": "visitor",
620
+ "type": {
621
+ "text": "(record: T) => void"
622
+ }
623
+ }
624
+ ]
625
+ },
626
+ {
627
+ "kind": "method",
628
+ "name": "onBeforeUpdate",
629
+ "privacy": "public",
630
+ "return": {
631
+ "type": {
632
+ "text": "() => void"
633
+ }
634
+ },
635
+ "parameters": [
636
+ {
637
+ "name": "listener",
638
+ "type": {
639
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
640
+ }
641
+ }
642
+ ]
643
+ },
644
+ {
645
+ "kind": "method",
646
+ "name": "onAfterUpdate",
647
+ "privacy": "public",
648
+ "return": {
649
+ "type": {
650
+ "text": "() => void"
651
+ }
652
+ },
653
+ "parameters": [
654
+ {
655
+ "name": "listener",
656
+ "type": {
657
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
658
+ }
659
+ }
660
+ ]
712
661
  }
713
- ],
714
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
715
- "privacy": "public"
662
+ ]
716
663
  }
717
664
  ],
718
665
  "exports": [
719
666
  {
720
667
  "kind": "js",
721
- "name": "renderOnChange",
668
+ "name": "InMemoryDatabase",
722
669
  "declaration": {
723
- "name": "renderOnChange",
724
- "module": "src/decorators/renderOnChange.ts"
670
+ "name": "InMemoryDatabase",
671
+ "module": "src/data/inMemoryDatabase.ts"
672
+ }
673
+ }
674
+ ]
675
+ },
676
+ {
677
+ "kind": "javascript-module",
678
+ "path": "src/data/index.ts",
679
+ "declarations": [],
680
+ "exports": [
681
+ {
682
+ "kind": "js",
683
+ "name": "*",
684
+ "declaration": {
685
+ "name": "*",
686
+ "package": "./inMemoryDatabase"
725
687
  }
726
688
  }
727
689
  ]
@@ -1203,7 +1165,7 @@
1203
1165
  },
1204
1166
  {
1205
1167
  "kind": "javascript-module",
1206
- "path": "src/encoding/index.ts",
1168
+ "path": "src/decorators/index.ts",
1207
1169
  "declarations": [],
1208
1170
  "exports": [
1209
1171
  {
@@ -1211,7 +1173,45 @@
1211
1173
  "name": "*",
1212
1174
  "declaration": {
1213
1175
  "name": "*",
1214
- "package": "./base64"
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
1215
  }
1216
1216
  }
1217
1217
  ]
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.458.2",
4
+ "version": "14.458.3-alpha-cdd1303e9.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.458.2",
33
- "@genesislcap/genx": "14.458.2",
34
- "@genesislcap/rollup-builder": "14.458.2",
35
- "@genesislcap/ts-builder": "14.458.2",
36
- "@genesislcap/uvu-playwright-builder": "14.458.2",
37
- "@genesislcap/vite-builder": "14.458.2",
38
- "@genesislcap/webpack-builder": "14.458.2",
32
+ "@genesislcap/foundation-testing": "14.458.3-alpha-cdd1303e9.0",
33
+ "@genesislcap/genx": "14.458.3-alpha-cdd1303e9.0",
34
+ "@genesislcap/rollup-builder": "14.458.3-alpha-cdd1303e9.0",
35
+ "@genesislcap/ts-builder": "14.458.3-alpha-cdd1303e9.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.458.3-alpha-cdd1303e9.0",
37
+ "@genesislcap/vite-builder": "14.458.3-alpha-cdd1303e9.0",
38
+ "@genesislcap/webpack-builder": "14.458.3-alpha-cdd1303e9.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.458.2",
43
- "@genesislcap/foundation-logger": "14.458.2",
42
+ "@genesislcap/expression-builder": "14.458.3-alpha-cdd1303e9.0",
43
+ "@genesislcap/foundation-logger": "14.458.3-alpha-cdd1303e9.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": "d2445453c001d9ab1377d1c0a6d90e2b65adb448"
61
+ "gitHead": "903fc951609bc5e6052a1a1fb581a22f95264c81"
62
62
  }