@genesislcap/foundation-utils 15.3.0 → 15.3.2-FUI-2571-formatters.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 +332 -332
  2. package/package.json +11 -11
@@ -209,298 +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
- {
452
- "kind": "javascript-module",
453
- "path": "src/decorators/index.ts",
454
- "declarations": [],
455
- "exports": [
456
- {
457
- "kind": "js",
458
- "name": "*",
459
- "declaration": {
460
- "name": "*",
461
- "package": "./renderOnChange"
462
- }
463
- }
464
- ]
465
- },
466
- {
467
- "kind": "javascript-module",
468
- "path": "src/decorators/renderOnChange.ts",
469
- "declarations": [
470
- {
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.",
490
- "privacy": "public"
491
- }
492
- ],
493
- "exports": [
494
- {
495
- "kind": "js",
496
- "name": "renderOnChange",
497
- "declaration": {
498
- "name": "renderOnChange",
499
- "module": "src/decorators/renderOnChange.ts"
500
- }
501
- }
502
- ]
503
- },
504
212
  {
505
213
  "kind": "javascript-module",
506
214
  "path": "src/design-system/design-system.ts",
@@ -656,33 +364,135 @@
656
364
  "exports": [
657
365
  {
658
366
  "kind": "js",
659
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
660
- "declaration": {
661
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
662
- "module": "src/design-system/editable-elements.ts"
663
- }
664
- },
665
- {
666
- "kind": "js",
667
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
668
- "declaration": {
669
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
670
- "module": "src/design-system/editable-elements.ts"
671
- }
672
- },
673
- {
674
- "kind": "js",
675
- "name": "buildEditableElementSelector",
367
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
368
+ "declaration": {
369
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
370
+ "module": "src/design-system/editable-elements.ts"
371
+ }
372
+ },
373
+ {
374
+ "kind": "js",
375
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
376
+ "declaration": {
377
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
378
+ "module": "src/design-system/editable-elements.ts"
379
+ }
380
+ },
381
+ {
382
+ "kind": "js",
383
+ "name": "buildEditableElementSelector",
384
+ "declaration": {
385
+ "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/encoding/index.ts",
440
+ "declarations": [],
441
+ "exports": [
442
+ {
443
+ "kind": "js",
444
+ "name": "*",
445
+ "declaration": {
446
+ "name": "*",
447
+ "package": "./base64"
448
+ }
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "kind": "javascript-module",
454
+ "path": "src/converters/index.ts",
455
+ "declarations": [],
456
+ "exports": [
457
+ {
458
+ "kind": "js",
459
+ "name": "*",
460
+ "declaration": {
461
+ "name": "*",
462
+ "package": "./string-array-converter"
463
+ }
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "kind": "javascript-module",
469
+ "path": "src/converters/string-array-converter.ts",
470
+ "declarations": [
471
+ {
472
+ "kind": "variable",
473
+ "name": "stringArrayConverter",
474
+ "type": {
475
+ "text": "ValueConverter"
476
+ },
477
+ "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}",
478
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
479
+ "privacy": "public"
480
+ }
481
+ ],
482
+ "exports": [
483
+ {
484
+ "kind": "js",
485
+ "name": "stringArrayConverter",
676
486
  "declaration": {
677
- "name": "buildEditableElementSelector",
678
- "module": "src/design-system/editable-elements.ts"
487
+ "name": "stringArrayConverter",
488
+ "module": "src/converters/string-array-converter.ts"
679
489
  }
680
490
  }
681
491
  ]
682
492
  },
683
493
  {
684
494
  "kind": "javascript-module",
685
- "path": "src/design-system/index.ts",
495
+ "path": "src/decorators/index.ts",
686
496
  "declarations": [],
687
497
  "exports": [
688
498
  {
@@ -690,45 +500,235 @@
690
500
  "name": "*",
691
501
  "declaration": {
692
502
  "name": "*",
693
- "package": "./design-system"
694
- }
695
- },
696
- {
697
- "kind": "js",
698
- "name": "*",
699
- "declaration": {
700
- "name": "*",
701
- "package": "./editable-elements"
503
+ "package": "./renderOnChange"
702
504
  }
703
505
  }
704
506
  ]
705
507
  },
706
508
  {
707
509
  "kind": "javascript-module",
708
- "path": "src/directives/index.ts",
709
- "declarations": [],
510
+ "path": "src/decorators/renderOnChange.ts",
511
+ "declarations": [
512
+ {
513
+ "kind": "function",
514
+ "name": "renderOnChange",
515
+ "parameters": [
516
+ {
517
+ "name": "target",
518
+ "type": {
519
+ "text": "FASTElement & { render(): void }"
520
+ },
521
+ "description": "The target to define the property change handler on."
522
+ },
523
+ {
524
+ "name": "name",
525
+ "type": {
526
+ "text": "string"
527
+ },
528
+ "description": "The property name."
529
+ }
530
+ ],
531
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
532
+ "privacy": "public"
533
+ }
534
+ ],
710
535
  "exports": [
711
536
  {
712
537
  "kind": "js",
713
- "name": "*",
538
+ "name": "renderOnChange",
714
539
  "declaration": {
715
- "name": "*",
716
- "package": "./sync"
540
+ "name": "renderOnChange",
541
+ "module": "src/decorators/renderOnChange.ts"
717
542
  }
718
- },
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "kind": "javascript-module",
548
+ "path": "src/data/inMemoryDatabase.ts",
549
+ "declarations": [
550
+ {
551
+ "kind": "class",
552
+ "description": "An in memory database of specific DatabaseRecord types.",
553
+ "name": "InMemoryDatabase",
554
+ "members": [
555
+ {
556
+ "kind": "field",
557
+ "name": "isWorking",
558
+ "type": {
559
+ "text": "boolean"
560
+ },
561
+ "privacy": "public",
562
+ "default": "false"
563
+ },
564
+ {
565
+ "kind": "field",
566
+ "name": "records",
567
+ "type": {
568
+ "text": "Record<string, T>"
569
+ },
570
+ "privacy": "private",
571
+ "default": "{}"
572
+ },
573
+ {
574
+ "kind": "field",
575
+ "name": "beforeUpdateListeners",
576
+ "privacy": "private"
577
+ },
578
+ {
579
+ "kind": "field",
580
+ "name": "afterUpdateListeners",
581
+ "privacy": "private"
582
+ },
583
+ {
584
+ "kind": "method",
585
+ "name": "create",
586
+ "privacy": "public",
587
+ "return": {
588
+ "type": {
589
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
590
+ }
591
+ },
592
+ "parameters": [
593
+ {
594
+ "name": "newValue",
595
+ "type": {
596
+ "text": "Omit<T, 'id'>"
597
+ }
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "kind": "method",
603
+ "name": "read",
604
+ "privacy": "public",
605
+ "return": {
606
+ "type": {
607
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
608
+ }
609
+ },
610
+ "parameters": [
611
+ {
612
+ "name": "id",
613
+ "type": {
614
+ "text": "string"
615
+ }
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "kind": "method",
621
+ "name": "update",
622
+ "privacy": "public",
623
+ "return": {
624
+ "type": {
625
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
626
+ }
627
+ },
628
+ "parameters": [
629
+ {
630
+ "name": "id",
631
+ "type": {
632
+ "text": "string"
633
+ }
634
+ },
635
+ {
636
+ "name": "newValue",
637
+ "type": {
638
+ "text": "Omit<Partial<T>, 'id'>"
639
+ }
640
+ }
641
+ ]
642
+ },
643
+ {
644
+ "kind": "method",
645
+ "name": "delete",
646
+ "privacy": "public",
647
+ "return": {
648
+ "type": {
649
+ "text": "Promise<DatabaseAccessResult.Delete>"
650
+ }
651
+ },
652
+ "parameters": [
653
+ {
654
+ "name": "id",
655
+ "type": {
656
+ "text": "string"
657
+ }
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "kind": "method",
663
+ "name": "visit",
664
+ "privacy": "public",
665
+ "return": {
666
+ "type": {
667
+ "text": "Promise<void>"
668
+ }
669
+ },
670
+ "parameters": [
671
+ {
672
+ "name": "visitor",
673
+ "type": {
674
+ "text": "(record: T) => void"
675
+ }
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ "kind": "method",
681
+ "name": "onBeforeUpdate",
682
+ "privacy": "public",
683
+ "return": {
684
+ "type": {
685
+ "text": "() => void"
686
+ }
687
+ },
688
+ "parameters": [
689
+ {
690
+ "name": "listener",
691
+ "type": {
692
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
693
+ }
694
+ }
695
+ ]
696
+ },
697
+ {
698
+ "kind": "method",
699
+ "name": "onAfterUpdate",
700
+ "privacy": "public",
701
+ "return": {
702
+ "type": {
703
+ "text": "() => void"
704
+ }
705
+ },
706
+ "parameters": [
707
+ {
708
+ "name": "listener",
709
+ "type": {
710
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
711
+ }
712
+ }
713
+ ]
714
+ }
715
+ ]
716
+ }
717
+ ],
718
+ "exports": [
719
719
  {
720
720
  "kind": "js",
721
- "name": "*",
721
+ "name": "InMemoryDatabase",
722
722
  "declaration": {
723
- "name": "*",
724
- "package": "./when-else"
723
+ "name": "InMemoryDatabase",
724
+ "module": "src/data/inMemoryDatabase.ts"
725
725
  }
726
726
  }
727
727
  ]
728
728
  },
729
729
  {
730
730
  "kind": "javascript-module",
731
- "path": "src/encoding/index.ts",
731
+ "path": "src/data/index.ts",
732
732
  "declarations": [],
733
733
  "exports": [
734
734
  {
@@ -736,7 +736,7 @@
736
736
  "name": "*",
737
737
  "declaration": {
738
738
  "name": "*",
739
- "package": "./base64"
739
+ "package": "./inMemoryDatabase"
740
740
  }
741
741
  }
742
742
  ]
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.3.0",
4
+ "version": "15.3.2-FUI-2571-formatters.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.3.0",
33
- "@genesislcap/genx": "15.3.0",
34
- "@genesislcap/rollup-builder": "15.3.0",
35
- "@genesislcap/ts-builder": "15.3.0",
36
- "@genesislcap/uvu-playwright-builder": "15.3.0",
37
- "@genesislcap/vite-builder": "15.3.0",
38
- "@genesislcap/webpack-builder": "15.3.0",
32
+ "@genesislcap/foundation-testing": "15.3.2-FUI-2571-formatters.1",
33
+ "@genesislcap/genx": "15.3.2-FUI-2571-formatters.1",
34
+ "@genesislcap/rollup-builder": "15.3.2-FUI-2571-formatters.1",
35
+ "@genesislcap/ts-builder": "15.3.2-FUI-2571-formatters.1",
36
+ "@genesislcap/uvu-playwright-builder": "15.3.2-FUI-2571-formatters.1",
37
+ "@genesislcap/vite-builder": "15.3.2-FUI-2571-formatters.1",
38
+ "@genesislcap/webpack-builder": "15.3.2-FUI-2571-formatters.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "15.3.0",
43
- "@genesislcap/foundation-logger": "15.3.0",
42
+ "@genesislcap/expression-builder": "15.3.2-FUI-2571-formatters.1",
43
+ "@genesislcap/foundation-logger": "15.3.2-FUI-2571-formatters.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",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "a8d2fa3336de2307fb9b82d4be1d4939ac847d14"
61
+ "gitHead": "9ad72f5f70334fc084dd5042f538a691a463effd"
62
62
  }