@genesislcap/foundation-utils 14.192.3-alpha-1303ae2.0 → 14.193.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 +301 -301
  2. package/package.json +10 -10
@@ -161,7 +161,7 @@
161
161
  },
162
162
  {
163
163
  "kind": "javascript-module",
164
- "path": "src/directives/index.ts",
164
+ "path": "src/decorators/index.ts",
165
165
  "declarations": [],
166
166
  "exports": [
167
167
  {
@@ -169,60 +169,338 @@
169
169
  "name": "*",
170
170
  "declaration": {
171
171
  "name": "*",
172
- "package": "./sync"
172
+ "package": "./renderOnChange"
173
173
  }
174
- },
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "kind": "javascript-module",
179
+ "path": "src/decorators/renderOnChange.ts",
180
+ "declarations": [
181
+ {
182
+ "kind": "function",
183
+ "name": "renderOnChange",
184
+ "parameters": [
185
+ {
186
+ "name": "target",
187
+ "type": {
188
+ "text": "FASTElement & { render(): void }"
189
+ },
190
+ "description": "The target to define the property change handler on."
191
+ },
192
+ {
193
+ "name": "name",
194
+ "type": {
195
+ "text": "string"
196
+ },
197
+ "description": "The property name."
198
+ }
199
+ ],
200
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
201
+ "privacy": "public"
202
+ }
203
+ ],
204
+ "exports": [
175
205
  {
176
206
  "kind": "js",
177
- "name": "*",
207
+ "name": "renderOnChange",
178
208
  "declaration": {
179
- "name": "*",
180
- "package": "./when-else"
209
+ "name": "renderOnChange",
210
+ "module": "src/decorators/renderOnChange.ts"
181
211
  }
182
212
  }
183
213
  ]
184
214
  },
185
215
  {
186
216
  "kind": "javascript-module",
187
- "path": "src/env/index.ts",
188
- "declarations": [],
217
+ "path": "src/data/inMemoryDatabase.ts",
218
+ "declarations": [
219
+ {
220
+ "kind": "class",
221
+ "description": "An in memory database of specific DatabaseRecord types.",
222
+ "name": "InMemoryDatabase",
223
+ "members": [
224
+ {
225
+ "kind": "field",
226
+ "name": "isWorking",
227
+ "type": {
228
+ "text": "boolean"
229
+ },
230
+ "privacy": "public",
231
+ "default": "false"
232
+ },
233
+ {
234
+ "kind": "field",
235
+ "name": "records",
236
+ "type": {
237
+ "text": "Record<string, T>"
238
+ },
239
+ "privacy": "private",
240
+ "default": "{}"
241
+ },
242
+ {
243
+ "kind": "field",
244
+ "name": "beforeUpdateListeners",
245
+ "privacy": "private"
246
+ },
247
+ {
248
+ "kind": "field",
249
+ "name": "afterUpdateListeners",
250
+ "privacy": "private"
251
+ },
252
+ {
253
+ "kind": "method",
254
+ "name": "create",
255
+ "privacy": "public",
256
+ "return": {
257
+ "type": {
258
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
259
+ }
260
+ },
261
+ "parameters": [
262
+ {
263
+ "name": "newValue",
264
+ "type": {
265
+ "text": "Omit<T, 'id'>"
266
+ }
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "kind": "method",
272
+ "name": "read",
273
+ "privacy": "public",
274
+ "return": {
275
+ "type": {
276
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
277
+ }
278
+ },
279
+ "parameters": [
280
+ {
281
+ "name": "id",
282
+ "type": {
283
+ "text": "string"
284
+ }
285
+ }
286
+ ]
287
+ },
288
+ {
289
+ "kind": "method",
290
+ "name": "update",
291
+ "privacy": "public",
292
+ "return": {
293
+ "type": {
294
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
295
+ }
296
+ },
297
+ "parameters": [
298
+ {
299
+ "name": "id",
300
+ "type": {
301
+ "text": "string"
302
+ }
303
+ },
304
+ {
305
+ "name": "newValue",
306
+ "type": {
307
+ "text": "Omit<Partial<T>, 'id'>"
308
+ }
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "kind": "method",
314
+ "name": "delete",
315
+ "privacy": "public",
316
+ "return": {
317
+ "type": {
318
+ "text": "Promise<DatabaseAccessResult.Delete>"
319
+ }
320
+ },
321
+ "parameters": [
322
+ {
323
+ "name": "id",
324
+ "type": {
325
+ "text": "string"
326
+ }
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "kind": "method",
332
+ "name": "visit",
333
+ "privacy": "public",
334
+ "return": {
335
+ "type": {
336
+ "text": "Promise<void>"
337
+ }
338
+ },
339
+ "parameters": [
340
+ {
341
+ "name": "visitor",
342
+ "type": {
343
+ "text": "(record: T) => void"
344
+ }
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "kind": "method",
350
+ "name": "onBeforeUpdate",
351
+ "privacy": "public",
352
+ "return": {
353
+ "type": {
354
+ "text": "() => void"
355
+ }
356
+ },
357
+ "parameters": [
358
+ {
359
+ "name": "listener",
360
+ "type": {
361
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "kind": "method",
368
+ "name": "onAfterUpdate",
369
+ "privacy": "public",
370
+ "return": {
371
+ "type": {
372
+ "text": "() => void"
373
+ }
374
+ },
375
+ "parameters": [
376
+ {
377
+ "name": "listener",
378
+ "type": {
379
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
380
+ }
381
+ }
382
+ ]
383
+ }
384
+ ]
385
+ }
386
+ ],
189
387
  "exports": [
190
388
  {
191
389
  "kind": "js",
192
- "name": "*",
390
+ "name": "InMemoryDatabase",
193
391
  "declaration": {
194
- "name": "*",
195
- "package": "./is-dev"
392
+ "name": "InMemoryDatabase",
393
+ "module": "src/data/inMemoryDatabase.ts"
196
394
  }
197
- },
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "kind": "javascript-module",
400
+ "path": "src/data/index.ts",
401
+ "declarations": [],
402
+ "exports": [
198
403
  {
199
404
  "kind": "js",
200
405
  "name": "*",
201
406
  "declaration": {
202
407
  "name": "*",
203
- "package": "./variables"
408
+ "package": "./inMemoryDatabase"
204
409
  }
205
410
  }
206
411
  ]
207
412
  },
208
413
  {
209
414
  "kind": "javascript-module",
210
- "path": "src/env/is-dev.ts",
415
+ "path": "src/design-system/design-system.ts",
211
416
  "declarations": [
212
417
  {
213
418
  "kind": "function",
214
- "name": "isDev",
215
- "description": "Determines if the current environment is a development environment.",
419
+ "name": "assureDesignSystem",
420
+ "return": {
421
+ "type": {
422
+ "text": "DesignSystemModule"
423
+ }
424
+ },
425
+ "parameters": [
426
+ {
427
+ "name": "module",
428
+ "type": {
429
+ "text": "DesignSystemModule"
430
+ }
431
+ }
432
+ ],
433
+ "description": "assureDesignSystem.",
216
434
  "privacy": "public"
217
435
  }
218
436
  ],
219
437
  "exports": [
220
438
  {
221
439
  "kind": "js",
222
- "name": "isDev",
440
+ "name": "assureDesignSystem",
223
441
  "declaration": {
224
- "name": "isDev",
225
- "module": "src/env/is-dev.ts"
442
+ "name": "assureDesignSystem",
443
+ "module": "src/design-system/design-system.ts"
444
+ }
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "kind": "javascript-module",
450
+ "path": "src/design-system/index.ts",
451
+ "declarations": [],
452
+ "exports": [
453
+ {
454
+ "kind": "js",
455
+ "name": "*",
456
+ "declaration": {
457
+ "name": "*",
458
+ "package": "./design-system"
459
+ }
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "kind": "javascript-module",
465
+ "path": "src/env/index.ts",
466
+ "declarations": [],
467
+ "exports": [
468
+ {
469
+ "kind": "js",
470
+ "name": "*",
471
+ "declaration": {
472
+ "name": "*",
473
+ "package": "./is-dev"
474
+ }
475
+ },
476
+ {
477
+ "kind": "js",
478
+ "name": "*",
479
+ "declaration": {
480
+ "name": "*",
481
+ "package": "./variables"
482
+ }
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ "kind": "javascript-module",
488
+ "path": "src/env/is-dev.ts",
489
+ "declarations": [
490
+ {
491
+ "kind": "function",
492
+ "name": "isDev",
493
+ "description": "Determines if the current environment is a development environment.",
494
+ "privacy": "public"
495
+ }
496
+ ],
497
+ "exports": [
498
+ {
499
+ "kind": "js",
500
+ "name": "isDev",
501
+ "declaration": {
502
+ "name": "isDev",
503
+ "module": "src/env/is-dev.ts"
226
504
  }
227
505
  }
228
506
  ]
@@ -422,240 +700,7 @@
422
700
  },
423
701
  {
424
702
  "kind": "javascript-module",
425
- "path": "src/design-system/design-system.ts",
426
- "declarations": [
427
- {
428
- "kind": "function",
429
- "name": "assureDesignSystem",
430
- "return": {
431
- "type": {
432
- "text": "DesignSystemModule"
433
- }
434
- },
435
- "parameters": [
436
- {
437
- "name": "module",
438
- "type": {
439
- "text": "DesignSystemModule"
440
- }
441
- }
442
- ],
443
- "description": "assureDesignSystem.",
444
- "privacy": "public"
445
- }
446
- ],
447
- "exports": [
448
- {
449
- "kind": "js",
450
- "name": "assureDesignSystem",
451
- "declaration": {
452
- "name": "assureDesignSystem",
453
- "module": "src/design-system/design-system.ts"
454
- }
455
- }
456
- ]
457
- },
458
- {
459
- "kind": "javascript-module",
460
- "path": "src/design-system/index.ts",
461
- "declarations": [],
462
- "exports": [
463
- {
464
- "kind": "js",
465
- "name": "*",
466
- "declaration": {
467
- "name": "*",
468
- "package": "./design-system"
469
- }
470
- }
471
- ]
472
- },
473
- {
474
- "kind": "javascript-module",
475
- "path": "src/data/inMemoryDatabase.ts",
476
- "declarations": [
477
- {
478
- "kind": "class",
479
- "description": "An in memory database of specific DatabaseRecord types.",
480
- "name": "InMemoryDatabase",
481
- "members": [
482
- {
483
- "kind": "field",
484
- "name": "isWorking",
485
- "type": {
486
- "text": "boolean"
487
- },
488
- "privacy": "public",
489
- "default": "false"
490
- },
491
- {
492
- "kind": "field",
493
- "name": "records",
494
- "type": {
495
- "text": "Record<string, T>"
496
- },
497
- "privacy": "private",
498
- "default": "{}"
499
- },
500
- {
501
- "kind": "field",
502
- "name": "beforeUpdateListeners",
503
- "privacy": "private"
504
- },
505
- {
506
- "kind": "field",
507
- "name": "afterUpdateListeners",
508
- "privacy": "private"
509
- },
510
- {
511
- "kind": "method",
512
- "name": "create",
513
- "privacy": "public",
514
- "return": {
515
- "type": {
516
- "text": "Promise<DatabaseAccessResult.Create<T>>"
517
- }
518
- },
519
- "parameters": [
520
- {
521
- "name": "newValue",
522
- "type": {
523
- "text": "Omit<T, 'id'>"
524
- }
525
- }
526
- ]
527
- },
528
- {
529
- "kind": "method",
530
- "name": "read",
531
- "privacy": "public",
532
- "return": {
533
- "type": {
534
- "text": "Promise<DatabaseAccessResult.Read<T>>"
535
- }
536
- },
537
- "parameters": [
538
- {
539
- "name": "id",
540
- "type": {
541
- "text": "string"
542
- }
543
- }
544
- ]
545
- },
546
- {
547
- "kind": "method",
548
- "name": "update",
549
- "privacy": "public",
550
- "return": {
551
- "type": {
552
- "text": "Promise<DatabaseAccessResult.Update<T>>"
553
- }
554
- },
555
- "parameters": [
556
- {
557
- "name": "id",
558
- "type": {
559
- "text": "string"
560
- }
561
- },
562
- {
563
- "name": "newValue",
564
- "type": {
565
- "text": "Omit<Partial<T>, 'id'>"
566
- }
567
- }
568
- ]
569
- },
570
- {
571
- "kind": "method",
572
- "name": "delete",
573
- "privacy": "public",
574
- "return": {
575
- "type": {
576
- "text": "Promise<DatabaseAccessResult.Delete>"
577
- }
578
- },
579
- "parameters": [
580
- {
581
- "name": "id",
582
- "type": {
583
- "text": "string"
584
- }
585
- }
586
- ]
587
- },
588
- {
589
- "kind": "method",
590
- "name": "visit",
591
- "privacy": "public",
592
- "return": {
593
- "type": {
594
- "text": "Promise<void>"
595
- }
596
- },
597
- "parameters": [
598
- {
599
- "name": "visitor",
600
- "type": {
601
- "text": "(record: T) => void"
602
- }
603
- }
604
- ]
605
- },
606
- {
607
- "kind": "method",
608
- "name": "onBeforeUpdate",
609
- "privacy": "public",
610
- "return": {
611
- "type": {
612
- "text": "() => void"
613
- }
614
- },
615
- "parameters": [
616
- {
617
- "name": "listener",
618
- "type": {
619
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
620
- }
621
- }
622
- ]
623
- },
624
- {
625
- "kind": "method",
626
- "name": "onAfterUpdate",
627
- "privacy": "public",
628
- "return": {
629
- "type": {
630
- "text": "() => void"
631
- }
632
- },
633
- "parameters": [
634
- {
635
- "name": "listener",
636
- "type": {
637
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
638
- }
639
- }
640
- ]
641
- }
642
- ]
643
- }
644
- ],
645
- "exports": [
646
- {
647
- "kind": "js",
648
- "name": "InMemoryDatabase",
649
- "declaration": {
650
- "name": "InMemoryDatabase",
651
- "module": "src/data/inMemoryDatabase.ts"
652
- }
653
- }
654
- ]
655
- },
656
- {
657
- "kind": "javascript-module",
658
- "path": "src/data/index.ts",
703
+ "path": "src/directives/index.ts",
659
704
  "declarations": [],
660
705
  "exports": [
661
706
  {
@@ -663,60 +708,15 @@
663
708
  "name": "*",
664
709
  "declaration": {
665
710
  "name": "*",
666
- "package": "./inMemoryDatabase"
711
+ "package": "./sync"
667
712
  }
668
- }
669
- ]
670
- },
671
- {
672
- "kind": "javascript-module",
673
- "path": "src/decorators/index.ts",
674
- "declarations": [],
675
- "exports": [
713
+ },
676
714
  {
677
715
  "kind": "js",
678
716
  "name": "*",
679
717
  "declaration": {
680
718
  "name": "*",
681
- "package": "./renderOnChange"
682
- }
683
- }
684
- ]
685
- },
686
- {
687
- "kind": "javascript-module",
688
- "path": "src/decorators/renderOnChange.ts",
689
- "declarations": [
690
- {
691
- "kind": "function",
692
- "name": "renderOnChange",
693
- "parameters": [
694
- {
695
- "name": "target",
696
- "type": {
697
- "text": "FASTElement & { render(): void }"
698
- },
699
- "description": "The target to define the property change handler on."
700
- },
701
- {
702
- "name": "name",
703
- "type": {
704
- "text": "string"
705
- },
706
- "description": "The property name."
707
- }
708
- ],
709
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
710
- "privacy": "public"
711
- }
712
- ],
713
- "exports": [
714
- {
715
- "kind": "js",
716
- "name": "renderOnChange",
717
- "declaration": {
718
- "name": "renderOnChange",
719
- "module": "src/decorators/renderOnChange.ts"
719
+ "package": "./when-else"
720
720
  }
721
721
  }
722
722
  ]
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.192.3-alpha-1303ae2.0",
4
+ "version": "14.193.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.192.3-alpha-1303ae2.0",
31
- "@genesislcap/genx": "14.192.3-alpha-1303ae2.0",
32
- "@genesislcap/rollup-builder": "14.192.3-alpha-1303ae2.0",
33
- "@genesislcap/ts-builder": "14.192.3-alpha-1303ae2.0",
34
- "@genesislcap/uvu-playwright-builder": "14.192.3-alpha-1303ae2.0",
35
- "@genesislcap/vite-builder": "14.192.3-alpha-1303ae2.0",
36
- "@genesislcap/webpack-builder": "14.192.3-alpha-1303ae2.0",
30
+ "@genesislcap/foundation-testing": "14.193.1",
31
+ "@genesislcap/genx": "14.193.1",
32
+ "@genesislcap/rollup-builder": "14.193.1",
33
+ "@genesislcap/ts-builder": "14.193.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.193.1",
35
+ "@genesislcap/vite-builder": "14.193.1",
36
+ "@genesislcap/webpack-builder": "14.193.1",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.192.3-alpha-1303ae2.0",
40
+ "@genesislcap/foundation-logger": "14.193.1",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -54,5 +54,5 @@
54
54
  "access": "public"
55
55
  },
56
56
  "customElements": "dist/custom-elements.json",
57
- "gitHead": "a3a2aa25079aae6722a6f7039dcc3abc862b90dc"
57
+ "gitHead": "83048f45bf5634a5c7e93d461eceb393610aee37"
58
58
  }