@genesislcap/foundation-utils 15.15.2-FUI-2603.6 → 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 +231 -231
  2. package/package.json +11 -11
@@ -211,7 +211,7 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/converters/index.ts",
214
+ "path": "src/decorators/index.ts",
215
215
  "declarations": [],
216
216
  "exports": [
217
217
  {
@@ -219,238 +219,52 @@
219
219
  "name": "*",
220
220
  "declaration": {
221
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"
222
+ "package": "./renderOnChange"
249
223
  }
250
224
  }
251
225
  ]
252
226
  },
253
227
  {
254
228
  "kind": "javascript-module",
255
- "path": "src/data/inMemoryDatabase.ts",
229
+ "path": "src/decorators/renderOnChange.ts",
256
230
  "declarations": [
257
231
  {
258
- "kind": "class",
259
- "description": "An in memory database of specific DatabaseRecord types.",
260
- "name": "InMemoryDatabase",
261
- "members": [
232
+ "kind": "function",
233
+ "name": "renderOnChange",
234
+ "parameters": [
262
235
  {
263
- "kind": "field",
264
- "name": "isWorking",
236
+ "name": "target",
265
237
  "type": {
266
- "text": "boolean"
238
+ "text": "FASTElement & { render(): void }"
267
239
  },
268
- "privacy": "public",
269
- "default": "false"
240
+ "description": "The target to define the property change handler on."
270
241
  },
271
242
  {
272
- "kind": "field",
273
- "name": "records",
243
+ "name": "name",
274
244
  "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
- }
245
+ "text": "string"
412
246
  },
413
- "parameters": [
414
- {
415
- "name": "listener",
416
- "type": {
417
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
- }
419
- }
420
- ]
247
+ "description": "The property name."
421
248
  }
422
- ]
249
+ ],
250
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
251
+ "privacy": "public"
423
252
  }
424
253
  ],
425
254
  "exports": [
426
255
  {
427
256
  "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": "*",
257
+ "name": "renderOnChange",
444
258
  "declaration": {
445
- "name": "*",
446
- "package": "./inMemoryDatabase"
259
+ "name": "renderOnChange",
260
+ "module": "src/decorators/renderOnChange.ts"
447
261
  }
448
262
  }
449
263
  ]
450
264
  },
451
265
  {
452
266
  "kind": "javascript-module",
453
- "path": "src/decorators/index.ts",
267
+ "path": "src/converters/index.ts",
454
268
  "declarations": [],
455
269
  "exports": [
456
270
  {
@@ -458,45 +272,33 @@
458
272
  "name": "*",
459
273
  "declaration": {
460
274
  "name": "*",
461
- "package": "./renderOnChange"
275
+ "package": "./string-array-converter"
462
276
  }
463
277
  }
464
278
  ]
465
279
  },
466
280
  {
467
281
  "kind": "javascript-module",
468
- "path": "src/decorators/renderOnChange.ts",
282
+ "path": "src/converters/string-array-converter.ts",
469
283
  "declarations": [
470
284
  {
471
- "kind": "function",
472
- "name": "renderOnChange",
473
- "parameters": [
474
- {
475
- "name": "target",
476
- "type": {
477
- "text": "FASTElement & { render(): void }"
478
- },
479
- "description": "The target to define the property change handler on."
480
- },
481
- {
482
- "name": "name",
483
- "type": {
484
- "text": "string"
485
- },
486
- "description": "The property name."
487
- }
488
- ],
489
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
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.",
490
292
  "privacy": "public"
491
293
  }
492
294
  ],
493
295
  "exports": [
494
296
  {
495
297
  "kind": "js",
496
- "name": "renderOnChange",
298
+ "name": "stringArrayConverter",
497
299
  "declaration": {
498
- "name": "renderOnChange",
499
- "module": "src/decorators/renderOnChange.ts"
300
+ "name": "stringArrayConverter",
301
+ "module": "src/converters/string-array-converter.ts"
500
302
  }
501
303
  }
502
304
  ]
@@ -728,7 +530,190 @@
728
530
  },
729
531
  {
730
532
  "kind": "javascript-module",
731
- "path": "src/encoding/index.ts",
533
+ "path": "src/data/inMemoryDatabase.ts",
534
+ "declarations": [
535
+ {
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": [
704
+ {
705
+ "kind": "js",
706
+ "name": "InMemoryDatabase",
707
+ "declaration": {
708
+ "name": "InMemoryDatabase",
709
+ "module": "src/data/inMemoryDatabase.ts"
710
+ }
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "kind": "javascript-module",
716
+ "path": "src/data/index.ts",
732
717
  "declarations": [],
733
718
  "exports": [
734
719
  {
@@ -736,7 +721,7 @@
736
721
  "name": "*",
737
722
  "declaration": {
738
723
  "name": "*",
739
- "package": "./base64"
724
+ "package": "./inMemoryDatabase"
740
725
  }
741
726
  }
742
727
  ]
@@ -1240,6 +1225,21 @@
1240
1225
  }
1241
1226
  ]
1242
1227
  },
1228
+ {
1229
+ "kind": "javascript-module",
1230
+ "path": "src/encoding/index.ts",
1231
+ "declarations": [],
1232
+ "exports": [
1233
+ {
1234
+ "kind": "js",
1235
+ "name": "*",
1236
+ "declaration": {
1237
+ "name": "*",
1238
+ "package": "./base64"
1239
+ }
1240
+ }
1241
+ ]
1242
+ },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "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.15.2-FUI-2603.6",
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-2603.6",
33
- "@genesislcap/genx": "15.15.2-FUI-2603.6",
34
- "@genesislcap/rollup-builder": "15.15.2-FUI-2603.6",
35
- "@genesislcap/ts-builder": "15.15.2-FUI-2603.6",
36
- "@genesislcap/uvu-playwright-builder": "15.15.2-FUI-2603.6",
37
- "@genesislcap/vite-builder": "15.15.2-FUI-2603.6",
38
- "@genesislcap/webpack-builder": "15.15.2-FUI-2603.6",
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-2603.6",
43
- "@genesislcap/foundation-logger": "15.15.2-FUI-2603.6",
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": "fa6d458b41fc8e13307b63640ef10336217751f1"
73
+ "gitHead": "e7175ec8f874f9b1fe6868f400001ef2c69df477"
74
74
  }