@genesislcap/foundation-utils 14.430.1 → 14.430.2-alpha-d7b354f.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 +222 -222
  2. package/package.json +11 -11
@@ -211,205 +211,48 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/data/inMemoryDatabase.ts",
215
- "declarations": [
216
- {
217
- "kind": "class",
218
- "description": "An in memory database of specific DatabaseRecord types.",
219
- "name": "InMemoryDatabase",
220
- "members": [
221
- {
222
- "kind": "field",
223
- "name": "isWorking",
224
- "type": {
225
- "text": "boolean"
226
- },
227
- "privacy": "public",
228
- "default": "false"
229
- },
230
- {
231
- "kind": "field",
232
- "name": "records",
233
- "type": {
234
- "text": "Record<string, T>"
235
- },
236
- "privacy": "private",
237
- "default": "{}"
238
- },
239
- {
240
- "kind": "field",
241
- "name": "beforeUpdateListeners",
242
- "privacy": "private"
243
- },
244
- {
245
- "kind": "field",
246
- "name": "afterUpdateListeners",
247
- "privacy": "private"
248
- },
249
- {
250
- "kind": "method",
251
- "name": "create",
252
- "privacy": "public",
253
- "return": {
254
- "type": {
255
- "text": "Promise<DatabaseAccessResult.Create<T>>"
256
- }
257
- },
258
- "parameters": [
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<T, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "read",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Read<T>>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "update",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<DatabaseAccessResult.Update<T>>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "id",
297
- "type": {
298
- "text": "string"
299
- }
300
- },
301
- {
302
- "name": "newValue",
303
- "type": {
304
- "text": "Omit<Partial<T>, 'id'>"
305
- }
306
- }
307
- ]
308
- },
309
- {
310
- "kind": "method",
311
- "name": "delete",
312
- "privacy": "public",
313
- "return": {
314
- "type": {
315
- "text": "Promise<DatabaseAccessResult.Delete>"
316
- }
317
- },
318
- "parameters": [
319
- {
320
- "name": "id",
321
- "type": {
322
- "text": "string"
323
- }
324
- }
325
- ]
326
- },
327
- {
328
- "kind": "method",
329
- "name": "visit",
330
- "privacy": "public",
331
- "return": {
332
- "type": {
333
- "text": "Promise<void>"
334
- }
335
- },
336
- "parameters": [
337
- {
338
- "name": "visitor",
339
- "type": {
340
- "text": "(record: T) => void"
341
- }
342
- }
343
- ]
344
- },
345
- {
346
- "kind": "method",
347
- "name": "onBeforeUpdate",
348
- "privacy": "public",
349
- "return": {
350
- "type": {
351
- "text": "() => void"
352
- }
353
- },
354
- "parameters": [
355
- {
356
- "name": "listener",
357
- "type": {
358
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
359
- }
360
- }
361
- ]
362
- },
363
- {
364
- "kind": "method",
365
- "name": "onAfterUpdate",
366
- "privacy": "public",
367
- "return": {
368
- "type": {
369
- "text": "() => void"
370
- }
371
- },
372
- "parameters": [
373
- {
374
- "name": "listener",
375
- "type": {
376
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
377
- }
378
- }
379
- ]
380
- }
381
- ]
382
- }
383
- ],
214
+ "path": "src/converters/index.ts",
215
+ "declarations": [],
384
216
  "exports": [
385
217
  {
386
218
  "kind": "js",
387
- "name": "InMemoryDatabase",
219
+ "name": "*",
388
220
  "declaration": {
389
- "name": "InMemoryDatabase",
390
- "module": "src/data/inMemoryDatabase.ts"
221
+ "name": "*",
222
+ "package": "./string-array-converter"
391
223
  }
392
224
  }
393
225
  ]
394
226
  },
395
227
  {
396
228
  "kind": "javascript-module",
397
- "path": "src/data/index.ts",
398
- "declarations": [],
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
+ ],
399
242
  "exports": [
400
243
  {
401
244
  "kind": "js",
402
- "name": "*",
245
+ "name": "stringArrayConverter",
403
246
  "declaration": {
404
- "name": "*",
405
- "package": "./inMemoryDatabase"
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
406
249
  }
407
250
  }
408
251
  ]
409
252
  },
410
253
  {
411
254
  "kind": "javascript-module",
412
- "path": "src/converters/index.ts",
255
+ "path": "src/decorators/index.ts",
413
256
  "declarations": [],
414
257
  "exports": [
415
258
  {
@@ -417,33 +260,45 @@
417
260
  "name": "*",
418
261
  "declaration": {
419
262
  "name": "*",
420
- "package": "./string-array-converter"
263
+ "package": "./renderOnChange"
421
264
  }
422
265
  }
423
266
  ]
424
267
  },
425
268
  {
426
269
  "kind": "javascript-module",
427
- "path": "src/converters/string-array-converter.ts",
270
+ "path": "src/decorators/renderOnChange.ts",
428
271
  "declarations": [
429
272
  {
430
- "kind": "variable",
431
- "name": "stringArrayConverter",
432
- "type": {
433
- "text": "ValueConverter"
434
- },
435
- "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}",
436
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
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.",
437
292
  "privacy": "public"
438
293
  }
439
294
  ],
440
295
  "exports": [
441
296
  {
442
297
  "kind": "js",
443
- "name": "stringArrayConverter",
298
+ "name": "renderOnChange",
444
299
  "declaration": {
445
- "name": "stringArrayConverter",
446
- "module": "src/converters/string-array-converter.ts"
300
+ "name": "renderOnChange",
301
+ "module": "src/decorators/renderOnChange.ts"
447
302
  }
448
303
  }
449
304
  ]
@@ -652,53 +507,198 @@
652
507
  },
653
508
  {
654
509
  "kind": "javascript-module",
655
- "path": "src/decorators/index.ts",
656
- "declarations": [],
657
- "exports": [
658
- {
659
- "kind": "js",
660
- "name": "*",
661
- "declaration": {
662
- "name": "*",
663
- "package": "./renderOnChange"
664
- }
665
- }
666
- ]
667
- },
668
- {
669
- "kind": "javascript-module",
670
- "path": "src/decorators/renderOnChange.ts",
510
+ "path": "src/data/inMemoryDatabase.ts",
671
511
  "declarations": [
672
512
  {
673
- "kind": "function",
674
- "name": "renderOnChange",
675
- "parameters": [
513
+ "kind": "class",
514
+ "description": "An in memory database of specific DatabaseRecord types.",
515
+ "name": "InMemoryDatabase",
516
+ "members": [
676
517
  {
677
- "name": "target",
518
+ "kind": "field",
519
+ "name": "isWorking",
678
520
  "type": {
679
- "text": "FASTElement & { render(): void }"
521
+ "text": "boolean"
680
522
  },
681
- "description": "The target to define the property change handler on."
523
+ "privacy": "public",
524
+ "default": "false"
682
525
  },
683
526
  {
684
- "name": "name",
527
+ "kind": "field",
528
+ "name": "records",
685
529
  "type": {
686
- "text": "string"
530
+ "text": "Record<string, T>"
687
531
  },
688
- "description": "The property name."
532
+ "privacy": "private",
533
+ "default": "{}"
534
+ },
535
+ {
536
+ "kind": "field",
537
+ "name": "beforeUpdateListeners",
538
+ "privacy": "private"
539
+ },
540
+ {
541
+ "kind": "field",
542
+ "name": "afterUpdateListeners",
543
+ "privacy": "private"
544
+ },
545
+ {
546
+ "kind": "method",
547
+ "name": "create",
548
+ "privacy": "public",
549
+ "return": {
550
+ "type": {
551
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
552
+ }
553
+ },
554
+ "parameters": [
555
+ {
556
+ "name": "newValue",
557
+ "type": {
558
+ "text": "Omit<T, 'id'>"
559
+ }
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "kind": "method",
565
+ "name": "read",
566
+ "privacy": "public",
567
+ "return": {
568
+ "type": {
569
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
570
+ }
571
+ },
572
+ "parameters": [
573
+ {
574
+ "name": "id",
575
+ "type": {
576
+ "text": "string"
577
+ }
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "kind": "method",
583
+ "name": "update",
584
+ "privacy": "public",
585
+ "return": {
586
+ "type": {
587
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
588
+ }
589
+ },
590
+ "parameters": [
591
+ {
592
+ "name": "id",
593
+ "type": {
594
+ "text": "string"
595
+ }
596
+ },
597
+ {
598
+ "name": "newValue",
599
+ "type": {
600
+ "text": "Omit<Partial<T>, 'id'>"
601
+ }
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "kind": "method",
607
+ "name": "delete",
608
+ "privacy": "public",
609
+ "return": {
610
+ "type": {
611
+ "text": "Promise<DatabaseAccessResult.Delete>"
612
+ }
613
+ },
614
+ "parameters": [
615
+ {
616
+ "name": "id",
617
+ "type": {
618
+ "text": "string"
619
+ }
620
+ }
621
+ ]
622
+ },
623
+ {
624
+ "kind": "method",
625
+ "name": "visit",
626
+ "privacy": "public",
627
+ "return": {
628
+ "type": {
629
+ "text": "Promise<void>"
630
+ }
631
+ },
632
+ "parameters": [
633
+ {
634
+ "name": "visitor",
635
+ "type": {
636
+ "text": "(record: T) => void"
637
+ }
638
+ }
639
+ ]
640
+ },
641
+ {
642
+ "kind": "method",
643
+ "name": "onBeforeUpdate",
644
+ "privacy": "public",
645
+ "return": {
646
+ "type": {
647
+ "text": "() => void"
648
+ }
649
+ },
650
+ "parameters": [
651
+ {
652
+ "name": "listener",
653
+ "type": {
654
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
655
+ }
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "kind": "method",
661
+ "name": "onAfterUpdate",
662
+ "privacy": "public",
663
+ "return": {
664
+ "type": {
665
+ "text": "() => void"
666
+ }
667
+ },
668
+ "parameters": [
669
+ {
670
+ "name": "listener",
671
+ "type": {
672
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
673
+ }
674
+ }
675
+ ]
689
676
  }
690
- ],
691
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
692
- "privacy": "public"
677
+ ]
693
678
  }
694
679
  ],
695
680
  "exports": [
696
681
  {
697
682
  "kind": "js",
698
- "name": "renderOnChange",
683
+ "name": "InMemoryDatabase",
699
684
  "declaration": {
700
- "name": "renderOnChange",
701
- "module": "src/decorators/renderOnChange.ts"
685
+ "name": "InMemoryDatabase",
686
+ "module": "src/data/inMemoryDatabase.ts"
687
+ }
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "kind": "javascript-module",
693
+ "path": "src/data/index.ts",
694
+ "declarations": [],
695
+ "exports": [
696
+ {
697
+ "kind": "js",
698
+ "name": "*",
699
+ "declaration": {
700
+ "name": "*",
701
+ "package": "./inMemoryDatabase"
702
702
  }
703
703
  }
704
704
  ]
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.430.1",
4
+ "version": "14.430.2-alpha-d7b354f.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.430.1",
33
- "@genesislcap/genx": "14.430.1",
34
- "@genesislcap/rollup-builder": "14.430.1",
35
- "@genesislcap/ts-builder": "14.430.1",
36
- "@genesislcap/uvu-playwright-builder": "14.430.1",
37
- "@genesislcap/vite-builder": "14.430.1",
38
- "@genesislcap/webpack-builder": "14.430.1",
32
+ "@genesislcap/foundation-testing": "14.430.2-alpha-d7b354f.0",
33
+ "@genesislcap/genx": "14.430.2-alpha-d7b354f.0",
34
+ "@genesislcap/rollup-builder": "14.430.2-alpha-d7b354f.0",
35
+ "@genesislcap/ts-builder": "14.430.2-alpha-d7b354f.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.430.2-alpha-d7b354f.0",
37
+ "@genesislcap/vite-builder": "14.430.2-alpha-d7b354f.0",
38
+ "@genesislcap/webpack-builder": "14.430.2-alpha-d7b354f.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.430.1",
43
- "@genesislcap/foundation-logger": "14.430.1",
42
+ "@genesislcap/expression-builder": "14.430.2-alpha-d7b354f.0",
43
+ "@genesislcap/foundation-logger": "14.430.2-alpha-d7b354f.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": "6eb4026225087b765f5363f7233d3450af040900"
61
+ "gitHead": "9d31b69209fe04ed88ada10358b330780eb4cc66"
62
62
  }