@genesislcap/foundation-utils 15.39.0 → 15.40.0-FUI-2628.1

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 +318 -318
  2. package/package.json +10 -10
@@ -209,6 +209,298 @@
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
+ {
307
+ "kind": "javascript-module",
308
+ "path": "src/data/inMemoryDatabase.ts",
309
+ "declarations": [
310
+ {
311
+ "kind": "class",
312
+ "description": "An in memory database of specific DatabaseRecord types.",
313
+ "name": "InMemoryDatabase",
314
+ "members": [
315
+ {
316
+ "kind": "field",
317
+ "name": "isWorking",
318
+ "type": {
319
+ "text": "boolean"
320
+ },
321
+ "privacy": "public",
322
+ "default": "false"
323
+ },
324
+ {
325
+ "kind": "field",
326
+ "name": "records",
327
+ "type": {
328
+ "text": "Record<string, T>"
329
+ },
330
+ "privacy": "private",
331
+ "default": "{}"
332
+ },
333
+ {
334
+ "kind": "field",
335
+ "name": "beforeUpdateListeners",
336
+ "privacy": "private"
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "afterUpdateListeners",
341
+ "privacy": "private"
342
+ },
343
+ {
344
+ "kind": "method",
345
+ "name": "create",
346
+ "privacy": "public",
347
+ "return": {
348
+ "type": {
349
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
350
+ }
351
+ },
352
+ "parameters": [
353
+ {
354
+ "name": "newValue",
355
+ "type": {
356
+ "text": "Omit<T, 'id'>"
357
+ }
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "kind": "method",
363
+ "name": "read",
364
+ "privacy": "public",
365
+ "return": {
366
+ "type": {
367
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
368
+ }
369
+ },
370
+ "parameters": [
371
+ {
372
+ "name": "id",
373
+ "type": {
374
+ "text": "string"
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "kind": "method",
381
+ "name": "update",
382
+ "privacy": "public",
383
+ "return": {
384
+ "type": {
385
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
386
+ }
387
+ },
388
+ "parameters": [
389
+ {
390
+ "name": "id",
391
+ "type": {
392
+ "text": "string"
393
+ }
394
+ },
395
+ {
396
+ "name": "newValue",
397
+ "type": {
398
+ "text": "Omit<Partial<T>, 'id'>"
399
+ }
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "kind": "method",
405
+ "name": "delete",
406
+ "privacy": "public",
407
+ "return": {
408
+ "type": {
409
+ "text": "Promise<DatabaseAccessResult.Delete>"
410
+ }
411
+ },
412
+ "parameters": [
413
+ {
414
+ "name": "id",
415
+ "type": {
416
+ "text": "string"
417
+ }
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "kind": "method",
423
+ "name": "visit",
424
+ "privacy": "public",
425
+ "return": {
426
+ "type": {
427
+ "text": "Promise<void>"
428
+ }
429
+ },
430
+ "parameters": [
431
+ {
432
+ "name": "visitor",
433
+ "type": {
434
+ "text": "(record: T) => void"
435
+ }
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "onBeforeUpdate",
442
+ "privacy": "public",
443
+ "return": {
444
+ "type": {
445
+ "text": "() => void"
446
+ }
447
+ },
448
+ "parameters": [
449
+ {
450
+ "name": "listener",
451
+ "type": {
452
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
453
+ }
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "kind": "method",
459
+ "name": "onAfterUpdate",
460
+ "privacy": "public",
461
+ "return": {
462
+ "type": {
463
+ "text": "() => void"
464
+ }
465
+ },
466
+ "parameters": [
467
+ {
468
+ "name": "listener",
469
+ "type": {
470
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
471
+ }
472
+ }
473
+ ]
474
+ }
475
+ ]
476
+ }
477
+ ],
478
+ "exports": [
479
+ {
480
+ "kind": "js",
481
+ "name": "InMemoryDatabase",
482
+ "declaration": {
483
+ "name": "InMemoryDatabase",
484
+ "module": "src/data/inMemoryDatabase.ts"
485
+ }
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "kind": "javascript-module",
491
+ "path": "src/data/index.ts",
492
+ "declarations": [],
493
+ "exports": [
494
+ {
495
+ "kind": "js",
496
+ "name": "*",
497
+ "declaration": {
498
+ "name": "*",
499
+ "package": "./inMemoryDatabase"
500
+ }
501
+ }
502
+ ]
503
+ },
212
504
  {
213
505
  "kind": "javascript-module",
214
506
  "path": "src/design-system/design-system.ts",
@@ -383,101 +675,14 @@
383
675
  "name": "buildEditableElementSelector",
384
676
  "declaration": {
385
677
  "name": "buildEditableElementSelector",
386
- "module": "src/design-system/editable-elements.ts"
387
- }
388
- }
389
- ]
390
- },
391
- {
392
- "kind": "javascript-module",
393
- "path": "src/design-system/index.ts",
394
- "declarations": [],
395
- "exports": [
396
- {
397
- "kind": "js",
398
- "name": "*",
399
- "declaration": {
400
- "name": "*",
401
- "package": "./design-system"
402
- }
403
- },
404
- {
405
- "kind": "js",
406
- "name": "*",
407
- "declaration": {
408
- "name": "*",
409
- "package": "./editable-elements"
410
- }
411
- }
412
- ]
413
- },
414
- {
415
- "kind": "javascript-module",
416
- "path": "src/directives/index.ts",
417
- "declarations": [],
418
- "exports": [
419
- {
420
- "kind": "js",
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",
471
- "declaration": {
472
- "name": "stringArrayConverter",
473
- "module": "src/converters/string-array-converter.ts"
678
+ "module": "src/design-system/editable-elements.ts"
474
679
  }
475
680
  }
476
681
  ]
477
682
  },
478
683
  {
479
684
  "kind": "javascript-module",
480
- "path": "src/encoding/index.ts",
685
+ "path": "src/design-system/index.ts",
481
686
  "declarations": [],
482
687
  "exports": [
483
688
  {
@@ -485,197 +690,45 @@
485
690
  "name": "*",
486
691
  "declaration": {
487
692
  "name": "*",
488
- "package": "./base64"
693
+ "package": "./design-system"
694
+ }
695
+ },
696
+ {
697
+ "kind": "js",
698
+ "name": "*",
699
+ "declaration": {
700
+ "name": "*",
701
+ "package": "./editable-elements"
489
702
  }
490
703
  }
491
704
  ]
492
705
  },
493
706
  {
494
707
  "kind": "javascript-module",
495
- "path": "src/data/inMemoryDatabase.ts",
496
- "declarations": [
497
- {
498
- "kind": "class",
499
- "description": "An in memory database of specific DatabaseRecord types.",
500
- "name": "InMemoryDatabase",
501
- "members": [
502
- {
503
- "kind": "field",
504
- "name": "isWorking",
505
- "type": {
506
- "text": "boolean"
507
- },
508
- "privacy": "public",
509
- "default": "false"
510
- },
511
- {
512
- "kind": "field",
513
- "name": "records",
514
- "type": {
515
- "text": "Record<string, T>"
516
- },
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
- ]
661
- }
662
- ]
663
- }
664
- ],
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
665
710
  "exports": [
666
711
  {
667
712
  "kind": "js",
668
- "name": "InMemoryDatabase",
713
+ "name": "*",
669
714
  "declaration": {
670
- "name": "InMemoryDatabase",
671
- "module": "src/data/inMemoryDatabase.ts"
715
+ "name": "*",
716
+ "package": "./sync"
717
+ }
718
+ },
719
+ {
720
+ "kind": "js",
721
+ "name": "*",
722
+ "declaration": {
723
+ "name": "*",
724
+ "package": "./when-else"
672
725
  }
673
726
  }
674
727
  ]
675
728
  },
676
729
  {
677
730
  "kind": "javascript-module",
678
- "path": "src/data/index.ts",
731
+ "path": "src/encoding/index.ts",
679
732
  "declarations": [],
680
733
  "exports": [
681
734
  {
@@ -683,7 +736,7 @@
683
736
  "name": "*",
684
737
  "declaration": {
685
738
  "name": "*",
686
- "package": "./inMemoryDatabase"
739
+ "package": "./base64"
687
740
  }
688
741
  }
689
742
  ]
@@ -1187,59 +1240,6 @@
1187
1240
  }
1188
1241
  ]
1189
1242
  },
1190
- {
1191
- "kind": "javascript-module",
1192
- "path": "src/decorators/index.ts",
1193
- "declarations": [],
1194
- "exports": [
1195
- {
1196
- "kind": "js",
1197
- "name": "*",
1198
- "declaration": {
1199
- "name": "*",
1200
- "package": "./renderOnChange"
1201
- }
1202
- }
1203
- ]
1204
- },
1205
- {
1206
- "kind": "javascript-module",
1207
- "path": "src/decorators/renderOnChange.ts",
1208
- "declarations": [
1209
- {
1210
- "kind": "function",
1211
- "name": "renderOnChange",
1212
- "parameters": [
1213
- {
1214
- "name": "target",
1215
- "type": {
1216
- "text": "FASTElement & { render(): void }"
1217
- },
1218
- "description": "The target to define the property change handler on."
1219
- },
1220
- {
1221
- "name": "name",
1222
- "type": {
1223
- "text": "string"
1224
- },
1225
- "description": "The property name."
1226
- }
1227
- ],
1228
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1229
- "privacy": "public"
1230
- }
1231
- ],
1232
- "exports": [
1233
- {
1234
- "kind": "js",
1235
- "name": "renderOnChange",
1236
- "declaration": {
1237
- "name": "renderOnChange",
1238
- "module": "src/decorators/renderOnChange.ts"
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.39.0",
4
+ "version": "15.40.0-FUI-2628.1",
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.39.0",
33
- "@genesislcap/genx": "15.39.0",
34
- "@genesislcap/rollup-builder": "15.39.0",
35
- "@genesislcap/ts-builder": "15.39.0",
36
- "@genesislcap/uvu-playwright-builder": "15.39.0",
37
- "@genesislcap/vite-builder": "15.39.0",
38
- "@genesislcap/webpack-builder": "15.39.0",
32
+ "@genesislcap/foundation-testing": "15.40.0-FUI-2628.1",
33
+ "@genesislcap/genx": "15.40.0-FUI-2628.1",
34
+ "@genesislcap/rollup-builder": "15.40.0-FUI-2628.1",
35
+ "@genesislcap/ts-builder": "15.40.0-FUI-2628.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.40.0-FUI-2628.1",
37
+ "@genesislcap/vite-builder": "15.40.0-FUI-2628.1",
38
+ "@genesislcap/webpack-builder": "15.40.0-FUI-2628.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.39.0",
43
- "@genesislcap/foundation-logger": "15.39.0",
42
+ "@genesislcap/expression-builder": "15.40.0-FUI-2628.1",
43
+ "@genesislcap/foundation-logger": "15.40.0-FUI-2628.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",