@genesislcap/foundation-utils 14.336.3-alpha-54b30b8.0 → 14.336.3-alpha-e3f01e2.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.
- package/dist/custom-elements.json +519 -519
- package/package.json +11 -11
@@ -187,45 +187,190 @@
|
|
187
187
|
},
|
188
188
|
{
|
189
189
|
"kind": "javascript-module",
|
190
|
-
"path": "src/
|
191
|
-
"declarations": [
|
192
|
-
"exports": [
|
193
|
-
{
|
194
|
-
"kind": "js",
|
195
|
-
"name": "*",
|
196
|
-
"declaration": {
|
197
|
-
"name": "*",
|
198
|
-
"package": "./sync"
|
199
|
-
}
|
200
|
-
},
|
190
|
+
"path": "src/data/inMemoryDatabase.ts",
|
191
|
+
"declarations": [
|
201
192
|
{
|
202
|
-
"kind": "
|
203
|
-
"
|
204
|
-
"
|
205
|
-
|
206
|
-
|
207
|
-
|
193
|
+
"kind": "class",
|
194
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
195
|
+
"name": "InMemoryDatabase",
|
196
|
+
"members": [
|
197
|
+
{
|
198
|
+
"kind": "field",
|
199
|
+
"name": "isWorking",
|
200
|
+
"type": {
|
201
|
+
"text": "boolean"
|
202
|
+
},
|
203
|
+
"privacy": "public",
|
204
|
+
"default": "false"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"kind": "field",
|
208
|
+
"name": "records",
|
209
|
+
"type": {
|
210
|
+
"text": "Record<string, T>"
|
211
|
+
},
|
212
|
+
"privacy": "private",
|
213
|
+
"default": "{}"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"kind": "field",
|
217
|
+
"name": "beforeUpdateListeners",
|
218
|
+
"privacy": "private"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"kind": "field",
|
222
|
+
"name": "afterUpdateListeners",
|
223
|
+
"privacy": "private"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"kind": "method",
|
227
|
+
"name": "create",
|
228
|
+
"privacy": "public",
|
229
|
+
"return": {
|
230
|
+
"type": {
|
231
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
232
|
+
}
|
233
|
+
},
|
234
|
+
"parameters": [
|
235
|
+
{
|
236
|
+
"name": "newValue",
|
237
|
+
"type": {
|
238
|
+
"text": "Omit<T, 'id'>"
|
239
|
+
}
|
240
|
+
}
|
241
|
+
]
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"kind": "method",
|
245
|
+
"name": "read",
|
246
|
+
"privacy": "public",
|
247
|
+
"return": {
|
248
|
+
"type": {
|
249
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"parameters": [
|
253
|
+
{
|
254
|
+
"name": "id",
|
255
|
+
"type": {
|
256
|
+
"text": "string"
|
257
|
+
}
|
258
|
+
}
|
259
|
+
]
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"kind": "method",
|
263
|
+
"name": "update",
|
264
|
+
"privacy": "public",
|
265
|
+
"return": {
|
266
|
+
"type": {
|
267
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
268
|
+
}
|
269
|
+
},
|
270
|
+
"parameters": [
|
271
|
+
{
|
272
|
+
"name": "id",
|
273
|
+
"type": {
|
274
|
+
"text": "string"
|
275
|
+
}
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"name": "newValue",
|
279
|
+
"type": {
|
280
|
+
"text": "Omit<Partial<T>, 'id'>"
|
281
|
+
}
|
282
|
+
}
|
283
|
+
]
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"kind": "method",
|
287
|
+
"name": "delete",
|
288
|
+
"privacy": "public",
|
289
|
+
"return": {
|
290
|
+
"type": {
|
291
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
292
|
+
}
|
293
|
+
},
|
294
|
+
"parameters": [
|
295
|
+
{
|
296
|
+
"name": "id",
|
297
|
+
"type": {
|
298
|
+
"text": "string"
|
299
|
+
}
|
300
|
+
}
|
301
|
+
]
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"kind": "method",
|
305
|
+
"name": "visit",
|
306
|
+
"privacy": "public",
|
307
|
+
"return": {
|
308
|
+
"type": {
|
309
|
+
"text": "Promise<void>"
|
310
|
+
}
|
311
|
+
},
|
312
|
+
"parameters": [
|
313
|
+
{
|
314
|
+
"name": "visitor",
|
315
|
+
"type": {
|
316
|
+
"text": "(record: T) => void"
|
317
|
+
}
|
318
|
+
}
|
319
|
+
]
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"kind": "method",
|
323
|
+
"name": "onBeforeUpdate",
|
324
|
+
"privacy": "public",
|
325
|
+
"return": {
|
326
|
+
"type": {
|
327
|
+
"text": "() => void"
|
328
|
+
}
|
329
|
+
},
|
330
|
+
"parameters": [
|
331
|
+
{
|
332
|
+
"name": "listener",
|
333
|
+
"type": {
|
334
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
335
|
+
}
|
336
|
+
}
|
337
|
+
]
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"kind": "method",
|
341
|
+
"name": "onAfterUpdate",
|
342
|
+
"privacy": "public",
|
343
|
+
"return": {
|
344
|
+
"type": {
|
345
|
+
"text": "() => void"
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"parameters": [
|
349
|
+
{
|
350
|
+
"name": "listener",
|
351
|
+
"type": {
|
352
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
353
|
+
}
|
354
|
+
}
|
355
|
+
]
|
356
|
+
}
|
357
|
+
]
|
208
358
|
}
|
209
|
-
]
|
210
|
-
},
|
211
|
-
{
|
212
|
-
"kind": "javascript-module",
|
213
|
-
"path": "src/encoding/index.ts",
|
214
|
-
"declarations": [],
|
359
|
+
],
|
215
360
|
"exports": [
|
216
361
|
{
|
217
362
|
"kind": "js",
|
218
|
-
"name": "
|
363
|
+
"name": "InMemoryDatabase",
|
219
364
|
"declaration": {
|
220
|
-
"name": "
|
221
|
-
"
|
365
|
+
"name": "InMemoryDatabase",
|
366
|
+
"module": "src/data/inMemoryDatabase.ts"
|
222
367
|
}
|
223
368
|
}
|
224
369
|
]
|
225
370
|
},
|
226
371
|
{
|
227
372
|
"kind": "javascript-module",
|
228
|
-
"path": "src/
|
373
|
+
"path": "src/data/index.ts",
|
229
374
|
"declarations": [],
|
230
375
|
"exports": [
|
231
376
|
{
|
@@ -233,58 +378,284 @@
|
|
233
378
|
"name": "*",
|
234
379
|
"declaration": {
|
235
380
|
"name": "*",
|
236
|
-
"package": "./
|
237
|
-
}
|
238
|
-
},
|
239
|
-
{
|
240
|
-
"kind": "js",
|
241
|
-
"name": "*",
|
242
|
-
"declaration": {
|
243
|
-
"name": "*",
|
244
|
-
"package": "./variables"
|
381
|
+
"package": "./inMemoryDatabase"
|
245
382
|
}
|
246
383
|
}
|
247
384
|
]
|
248
385
|
},
|
249
386
|
{
|
250
387
|
"kind": "javascript-module",
|
251
|
-
"path": "src/
|
388
|
+
"path": "src/design-system/design-system.ts",
|
252
389
|
"declarations": [
|
253
390
|
{
|
254
391
|
"kind": "function",
|
255
|
-
"name": "
|
256
|
-
"
|
392
|
+
"name": "assureDesignSystem",
|
393
|
+
"return": {
|
394
|
+
"type": {
|
395
|
+
"text": "DesignSystemModule"
|
396
|
+
}
|
397
|
+
},
|
398
|
+
"parameters": [
|
399
|
+
{
|
400
|
+
"name": "module",
|
401
|
+
"type": {
|
402
|
+
"text": "DesignSystemModule"
|
403
|
+
}
|
404
|
+
}
|
405
|
+
],
|
406
|
+
"description": "assureDesignSystem.",
|
257
407
|
"privacy": "public"
|
258
|
-
}
|
259
|
-
],
|
260
|
-
"exports": [
|
261
|
-
{
|
262
|
-
"kind": "js",
|
263
|
-
"name": "isDev",
|
264
|
-
"declaration": {
|
265
|
-
"name": "isDev",
|
266
|
-
"module": "src/env/is-dev.ts"
|
267
|
-
}
|
268
|
-
}
|
269
|
-
]
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"kind": "javascript-module",
|
273
|
-
"path": "src/env/variables.ts",
|
274
|
-
"declarations": [
|
275
|
-
{
|
276
|
-
"kind": "variable",
|
277
|
-
"name": "BUILDER",
|
278
|
-
"type": {
|
279
|
-
"text": "string"
|
280
|
-
}
|
281
408
|
},
|
282
409
|
{
|
283
|
-
"kind": "
|
284
|
-
"name": "
|
285
|
-
"
|
286
|
-
"
|
287
|
-
|
410
|
+
"kind": "function",
|
411
|
+
"name": "getCurrentDesignSystem",
|
412
|
+
"return": {
|
413
|
+
"type": {
|
414
|
+
"text": ""
|
415
|
+
}
|
416
|
+
},
|
417
|
+
"parameters": [
|
418
|
+
{
|
419
|
+
"name": "element",
|
420
|
+
"type": {
|
421
|
+
"text": "HTMLElement"
|
422
|
+
},
|
423
|
+
"description": "The starting HTML element"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"name": "fallbackPrefix",
|
427
|
+
"type": {
|
428
|
+
"text": "string"
|
429
|
+
},
|
430
|
+
"description": "The prefix to fallback to if the provider is not available"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
434
|
+
"privacy": "public"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"kind": "function",
|
438
|
+
"name": "getCurrentDesignSystemPrefix",
|
439
|
+
"return": {
|
440
|
+
"type": {
|
441
|
+
"text": ""
|
442
|
+
}
|
443
|
+
},
|
444
|
+
"parameters": [
|
445
|
+
{
|
446
|
+
"name": "element",
|
447
|
+
"type": {
|
448
|
+
"text": "HTMLElement"
|
449
|
+
},
|
450
|
+
"description": "The starting HTML element"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"name": "fallbackPrefix",
|
454
|
+
"type": {
|
455
|
+
"text": "string"
|
456
|
+
},
|
457
|
+
"description": "The prefix to fallback to if the provider is not available"
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
461
|
+
"privacy": "public"
|
462
|
+
}
|
463
|
+
],
|
464
|
+
"exports": [
|
465
|
+
{
|
466
|
+
"kind": "js",
|
467
|
+
"name": "assureDesignSystem",
|
468
|
+
"declaration": {
|
469
|
+
"name": "assureDesignSystem",
|
470
|
+
"module": "src/design-system/design-system.ts"
|
471
|
+
}
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"kind": "js",
|
475
|
+
"name": "getCurrentDesignSystem",
|
476
|
+
"declaration": {
|
477
|
+
"name": "getCurrentDesignSystem",
|
478
|
+
"module": "src/design-system/design-system.ts"
|
479
|
+
}
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"kind": "js",
|
483
|
+
"name": "getCurrentDesignSystemPrefix",
|
484
|
+
"declaration": {
|
485
|
+
"name": "getCurrentDesignSystemPrefix",
|
486
|
+
"module": "src/design-system/design-system.ts"
|
487
|
+
}
|
488
|
+
}
|
489
|
+
]
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"kind": "javascript-module",
|
493
|
+
"path": "src/design-system/index.ts",
|
494
|
+
"declarations": [],
|
495
|
+
"exports": [
|
496
|
+
{
|
497
|
+
"kind": "js",
|
498
|
+
"name": "*",
|
499
|
+
"declaration": {
|
500
|
+
"name": "*",
|
501
|
+
"package": "./design-system"
|
502
|
+
}
|
503
|
+
}
|
504
|
+
]
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"kind": "javascript-module",
|
508
|
+
"path": "src/decorators/index.ts",
|
509
|
+
"declarations": [],
|
510
|
+
"exports": [
|
511
|
+
{
|
512
|
+
"kind": "js",
|
513
|
+
"name": "*",
|
514
|
+
"declaration": {
|
515
|
+
"name": "*",
|
516
|
+
"package": "./renderOnChange"
|
517
|
+
}
|
518
|
+
}
|
519
|
+
]
|
520
|
+
},
|
521
|
+
{
|
522
|
+
"kind": "javascript-module",
|
523
|
+
"path": "src/decorators/renderOnChange.ts",
|
524
|
+
"declarations": [
|
525
|
+
{
|
526
|
+
"kind": "function",
|
527
|
+
"name": "renderOnChange",
|
528
|
+
"parameters": [
|
529
|
+
{
|
530
|
+
"name": "target",
|
531
|
+
"type": {
|
532
|
+
"text": "FASTElement & { render(): void }"
|
533
|
+
},
|
534
|
+
"description": "The target to define the property change handler on."
|
535
|
+
},
|
536
|
+
{
|
537
|
+
"name": "name",
|
538
|
+
"type": {
|
539
|
+
"text": "string"
|
540
|
+
},
|
541
|
+
"description": "The property name."
|
542
|
+
}
|
543
|
+
],
|
544
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
545
|
+
"privacy": "public"
|
546
|
+
}
|
547
|
+
],
|
548
|
+
"exports": [
|
549
|
+
{
|
550
|
+
"kind": "js",
|
551
|
+
"name": "renderOnChange",
|
552
|
+
"declaration": {
|
553
|
+
"name": "renderOnChange",
|
554
|
+
"module": "src/decorators/renderOnChange.ts"
|
555
|
+
}
|
556
|
+
}
|
557
|
+
]
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"kind": "javascript-module",
|
561
|
+
"path": "src/directives/index.ts",
|
562
|
+
"declarations": [],
|
563
|
+
"exports": [
|
564
|
+
{
|
565
|
+
"kind": "js",
|
566
|
+
"name": "*",
|
567
|
+
"declaration": {
|
568
|
+
"name": "*",
|
569
|
+
"package": "./sync"
|
570
|
+
}
|
571
|
+
},
|
572
|
+
{
|
573
|
+
"kind": "js",
|
574
|
+
"name": "*",
|
575
|
+
"declaration": {
|
576
|
+
"name": "*",
|
577
|
+
"package": "./when-else"
|
578
|
+
}
|
579
|
+
}
|
580
|
+
]
|
581
|
+
},
|
582
|
+
{
|
583
|
+
"kind": "javascript-module",
|
584
|
+
"path": "src/encoding/index.ts",
|
585
|
+
"declarations": [],
|
586
|
+
"exports": [
|
587
|
+
{
|
588
|
+
"kind": "js",
|
589
|
+
"name": "*",
|
590
|
+
"declaration": {
|
591
|
+
"name": "*",
|
592
|
+
"package": "./base64"
|
593
|
+
}
|
594
|
+
}
|
595
|
+
]
|
596
|
+
},
|
597
|
+
{
|
598
|
+
"kind": "javascript-module",
|
599
|
+
"path": "src/env/index.ts",
|
600
|
+
"declarations": [],
|
601
|
+
"exports": [
|
602
|
+
{
|
603
|
+
"kind": "js",
|
604
|
+
"name": "*",
|
605
|
+
"declaration": {
|
606
|
+
"name": "*",
|
607
|
+
"package": "./is-dev"
|
608
|
+
}
|
609
|
+
},
|
610
|
+
{
|
611
|
+
"kind": "js",
|
612
|
+
"name": "*",
|
613
|
+
"declaration": {
|
614
|
+
"name": "*",
|
615
|
+
"package": "./variables"
|
616
|
+
}
|
617
|
+
}
|
618
|
+
]
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"kind": "javascript-module",
|
622
|
+
"path": "src/env/is-dev.ts",
|
623
|
+
"declarations": [
|
624
|
+
{
|
625
|
+
"kind": "function",
|
626
|
+
"name": "isDev",
|
627
|
+
"description": "Determines if the current environment is a development environment.",
|
628
|
+
"privacy": "public"
|
629
|
+
}
|
630
|
+
],
|
631
|
+
"exports": [
|
632
|
+
{
|
633
|
+
"kind": "js",
|
634
|
+
"name": "isDev",
|
635
|
+
"declaration": {
|
636
|
+
"name": "isDev",
|
637
|
+
"module": "src/env/is-dev.ts"
|
638
|
+
}
|
639
|
+
}
|
640
|
+
]
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"kind": "javascript-module",
|
644
|
+
"path": "src/env/variables.ts",
|
645
|
+
"declarations": [
|
646
|
+
{
|
647
|
+
"kind": "variable",
|
648
|
+
"name": "BUILDER",
|
649
|
+
"type": {
|
650
|
+
"text": "string"
|
651
|
+
}
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"kind": "variable",
|
655
|
+
"name": "_BUILDER",
|
656
|
+
"type": {
|
657
|
+
"text": "string"
|
658
|
+
},
|
288
659
|
"default": "'webpack'",
|
289
660
|
"description": "The builder aka file bundler.",
|
290
661
|
"privacy": "public"
|
@@ -716,491 +1087,135 @@
|
|
716
1087
|
{
|
717
1088
|
"kind": "field",
|
718
1089
|
"name": "lastError",
|
719
|
-
"type": {
|
720
|
-
"text": "Error"
|
721
|
-
},
|
722
|
-
"description": "{@inheritDoc ErrorMap.lastError}"
|
723
|
-
},
|
724
|
-
{
|
725
|
-
"kind": "method",
|
726
|
-
"name": "set",
|
727
|
-
"return": {
|
728
|
-
"type": {
|
729
|
-
"text": "void"
|
730
|
-
}
|
731
|
-
},
|
732
|
-
"parameters": [
|
733
|
-
{
|
734
|
-
"name": "key",
|
735
|
-
"type": {
|
736
|
-
"text": "keyof TErrorDetailMap"
|
737
|
-
}
|
738
|
-
},
|
739
|
-
{
|
740
|
-
"name": "error",
|
741
|
-
"type": {
|
742
|
-
"text": "Error"
|
743
|
-
}
|
744
|
-
}
|
745
|
-
],
|
746
|
-
"description": "{@inheritDoc ErrorMap.set}"
|
747
|
-
},
|
748
|
-
{
|
749
|
-
"kind": "method",
|
750
|
-
"name": "get",
|
751
|
-
"return": {
|
752
|
-
"type": {
|
753
|
-
"text": ""
|
754
|
-
}
|
755
|
-
},
|
756
|
-
"parameters": [
|
757
|
-
{
|
758
|
-
"name": "key",
|
759
|
-
"type": {
|
760
|
-
"text": "keyof TErrorDetailMap"
|
761
|
-
},
|
762
|
-
"description": "The key."
|
763
|
-
}
|
764
|
-
],
|
765
|
-
"description": "Get an error by key.",
|
766
|
-
"privacy": "public"
|
767
|
-
},
|
768
|
-
{
|
769
|
-
"kind": "method",
|
770
|
-
"name": "has",
|
771
|
-
"return": {
|
772
|
-
"type": {
|
773
|
-
"text": ""
|
774
|
-
}
|
775
|
-
},
|
776
|
-
"parameters": [
|
777
|
-
{
|
778
|
-
"name": "key",
|
779
|
-
"type": {
|
780
|
-
"text": "keyof TErrorDetailMap"
|
781
|
-
},
|
782
|
-
"description": "The key."
|
783
|
-
}
|
784
|
-
],
|
785
|
-
"description": "Has an error for key.",
|
786
|
-
"privacy": "public"
|
787
|
-
},
|
788
|
-
{
|
789
|
-
"kind": "method",
|
790
|
-
"name": "delete",
|
791
|
-
"return": {
|
792
|
-
"type": {
|
793
|
-
"text": ""
|
794
|
-
}
|
795
|
-
},
|
796
|
-
"parameters": [
|
797
|
-
{
|
798
|
-
"name": "key",
|
799
|
-
"type": {
|
800
|
-
"text": "keyof TErrorDetailMap"
|
801
|
-
},
|
802
|
-
"description": "The key."
|
803
|
-
}
|
804
|
-
],
|
805
|
-
"description": "Delete an error.",
|
806
|
-
"privacy": "public"
|
807
|
-
},
|
808
|
-
{
|
809
|
-
"kind": "method",
|
810
|
-
"name": "clear",
|
811
|
-
"description": "Clear errors.",
|
812
|
-
"privacy": "public"
|
813
|
-
},
|
814
|
-
{
|
815
|
-
"kind": "field",
|
816
|
-
"name": "size",
|
817
|
-
"type": {
|
818
|
-
"text": "number"
|
819
|
-
},
|
820
|
-
"description": "The size of the error map.",
|
821
|
-
"return": {
|
822
|
-
"type": {
|
823
|
-
"text": ""
|
824
|
-
}
|
825
|
-
},
|
826
|
-
"privacy": "public",
|
827
|
-
"readonly": true
|
828
|
-
},
|
829
|
-
{
|
830
|
-
"kind": "method",
|
831
|
-
"name": "values",
|
832
|
-
"privacy": "public"
|
833
|
-
},
|
834
|
-
{
|
835
|
-
"kind": "field",
|
836
|
-
"name": "messages",
|
837
|
-
"type": {
|
838
|
-
"text": "string"
|
839
|
-
},
|
840
|
-
"description": "{@inheritDoc ErrorMap.messages}",
|
841
|
-
"readonly": true
|
842
|
-
}
|
843
|
-
]
|
844
|
-
},
|
845
|
-
{
|
846
|
-
"kind": "function",
|
847
|
-
"name": "createErrorMap",
|
848
|
-
"return": {
|
849
|
-
"type": {
|
850
|
-
"text": ""
|
851
|
-
}
|
852
|
-
},
|
853
|
-
"parameters": [
|
854
|
-
{
|
855
|
-
"name": "logger",
|
856
|
-
"type": {
|
857
|
-
"text": "ErrorMapLogger"
|
858
|
-
},
|
859
|
-
"description": "A logger error method reference."
|
860
|
-
}
|
861
|
-
],
|
862
|
-
"description": "A factory to create the error map.",
|
863
|
-
"privacy": "public"
|
864
|
-
}
|
865
|
-
],
|
866
|
-
"exports": [
|
867
|
-
{
|
868
|
-
"kind": "js",
|
869
|
-
"name": "DefaultErrorMap",
|
870
|
-
"declaration": {
|
871
|
-
"name": "DefaultErrorMap",
|
872
|
-
"module": "src/error/errorMap.ts"
|
873
|
-
}
|
874
|
-
},
|
875
|
-
{
|
876
|
-
"kind": "js",
|
877
|
-
"name": "createErrorMap",
|
878
|
-
"declaration": {
|
879
|
-
"name": "createErrorMap",
|
880
|
-
"module": "src/error/errorMap.ts"
|
881
|
-
}
|
882
|
-
}
|
883
|
-
]
|
884
|
-
},
|
885
|
-
{
|
886
|
-
"kind": "javascript-module",
|
887
|
-
"path": "src/error/index.ts",
|
888
|
-
"declarations": [],
|
889
|
-
"exports": [
|
890
|
-
{
|
891
|
-
"kind": "js",
|
892
|
-
"name": "*",
|
893
|
-
"declaration": {
|
894
|
-
"name": "*",
|
895
|
-
"package": "./errorMap"
|
896
|
-
}
|
897
|
-
}
|
898
|
-
]
|
899
|
-
},
|
900
|
-
{
|
901
|
-
"kind": "javascript-module",
|
902
|
-
"path": "src/data/inMemoryDatabase.ts",
|
903
|
-
"declarations": [
|
904
|
-
{
|
905
|
-
"kind": "class",
|
906
|
-
"description": "An in memory database of specific DatabaseRecord types.",
|
907
|
-
"name": "InMemoryDatabase",
|
908
|
-
"members": [
|
909
|
-
{
|
910
|
-
"kind": "field",
|
911
|
-
"name": "isWorking",
|
912
|
-
"type": {
|
913
|
-
"text": "boolean"
|
914
|
-
},
|
915
|
-
"privacy": "public",
|
916
|
-
"default": "false"
|
917
|
-
},
|
918
|
-
{
|
919
|
-
"kind": "field",
|
920
|
-
"name": "records",
|
921
|
-
"type": {
|
922
|
-
"text": "Record<string, T>"
|
923
|
-
},
|
924
|
-
"privacy": "private",
|
925
|
-
"default": "{}"
|
926
|
-
},
|
927
|
-
{
|
928
|
-
"kind": "field",
|
929
|
-
"name": "beforeUpdateListeners",
|
930
|
-
"privacy": "private"
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"kind": "field",
|
934
|
-
"name": "afterUpdateListeners",
|
935
|
-
"privacy": "private"
|
936
|
-
},
|
937
|
-
{
|
938
|
-
"kind": "method",
|
939
|
-
"name": "create",
|
940
|
-
"privacy": "public",
|
941
|
-
"return": {
|
942
|
-
"type": {
|
943
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
944
|
-
}
|
945
|
-
},
|
946
|
-
"parameters": [
|
947
|
-
{
|
948
|
-
"name": "newValue",
|
949
|
-
"type": {
|
950
|
-
"text": "Omit<T, 'id'>"
|
951
|
-
}
|
952
|
-
}
|
953
|
-
]
|
954
|
-
},
|
955
|
-
{
|
956
|
-
"kind": "method",
|
957
|
-
"name": "read",
|
958
|
-
"privacy": "public",
|
959
|
-
"return": {
|
960
|
-
"type": {
|
961
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
962
|
-
}
|
963
|
-
},
|
964
|
-
"parameters": [
|
965
|
-
{
|
966
|
-
"name": "id",
|
967
|
-
"type": {
|
968
|
-
"text": "string"
|
969
|
-
}
|
970
|
-
}
|
971
|
-
]
|
972
|
-
},
|
973
|
-
{
|
974
|
-
"kind": "method",
|
975
|
-
"name": "update",
|
976
|
-
"privacy": "public",
|
977
|
-
"return": {
|
978
|
-
"type": {
|
979
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
980
|
-
}
|
981
|
-
},
|
982
|
-
"parameters": [
|
983
|
-
{
|
984
|
-
"name": "id",
|
985
|
-
"type": {
|
986
|
-
"text": "string"
|
987
|
-
}
|
988
|
-
},
|
989
|
-
{
|
990
|
-
"name": "newValue",
|
991
|
-
"type": {
|
992
|
-
"text": "Omit<Partial<T>, 'id'>"
|
993
|
-
}
|
994
|
-
}
|
995
|
-
]
|
1090
|
+
"type": {
|
1091
|
+
"text": "Error"
|
1092
|
+
},
|
1093
|
+
"description": "{@inheritDoc ErrorMap.lastError}"
|
996
1094
|
},
|
997
1095
|
{
|
998
1096
|
"kind": "method",
|
999
|
-
"name": "
|
1000
|
-
"privacy": "public",
|
1097
|
+
"name": "set",
|
1001
1098
|
"return": {
|
1002
1099
|
"type": {
|
1003
|
-
"text": "
|
1100
|
+
"text": "void"
|
1004
1101
|
}
|
1005
1102
|
},
|
1006
1103
|
"parameters": [
|
1007
1104
|
{
|
1008
|
-
"name": "
|
1105
|
+
"name": "key",
|
1009
1106
|
"type": {
|
1010
|
-
"text": "
|
1107
|
+
"text": "keyof TErrorDetailMap"
|
1108
|
+
}
|
1109
|
+
},
|
1110
|
+
{
|
1111
|
+
"name": "error",
|
1112
|
+
"type": {
|
1113
|
+
"text": "Error"
|
1011
1114
|
}
|
1012
1115
|
}
|
1013
|
-
]
|
1116
|
+
],
|
1117
|
+
"description": "{@inheritDoc ErrorMap.set}"
|
1014
1118
|
},
|
1015
1119
|
{
|
1016
1120
|
"kind": "method",
|
1017
|
-
"name": "
|
1018
|
-
"privacy": "public",
|
1121
|
+
"name": "get",
|
1019
1122
|
"return": {
|
1020
1123
|
"type": {
|
1021
|
-
"text": "
|
1124
|
+
"text": ""
|
1022
1125
|
}
|
1023
1126
|
},
|
1024
1127
|
"parameters": [
|
1025
1128
|
{
|
1026
|
-
"name": "
|
1129
|
+
"name": "key",
|
1027
1130
|
"type": {
|
1028
|
-
"text": "
|
1029
|
-
}
|
1131
|
+
"text": "keyof TErrorDetailMap"
|
1132
|
+
},
|
1133
|
+
"description": "The key."
|
1030
1134
|
}
|
1031
|
-
]
|
1135
|
+
],
|
1136
|
+
"description": "Get an error by key.",
|
1137
|
+
"privacy": "public"
|
1032
1138
|
},
|
1033
1139
|
{
|
1034
1140
|
"kind": "method",
|
1035
|
-
"name": "
|
1036
|
-
"privacy": "public",
|
1141
|
+
"name": "has",
|
1037
1142
|
"return": {
|
1038
1143
|
"type": {
|
1039
|
-
"text": "
|
1144
|
+
"text": ""
|
1040
1145
|
}
|
1041
1146
|
},
|
1042
1147
|
"parameters": [
|
1043
1148
|
{
|
1044
|
-
"name": "
|
1149
|
+
"name": "key",
|
1045
1150
|
"type": {
|
1046
|
-
"text": "
|
1047
|
-
}
|
1151
|
+
"text": "keyof TErrorDetailMap"
|
1152
|
+
},
|
1153
|
+
"description": "The key."
|
1048
1154
|
}
|
1049
|
-
]
|
1155
|
+
],
|
1156
|
+
"description": "Has an error for key.",
|
1157
|
+
"privacy": "public"
|
1050
1158
|
},
|
1051
1159
|
{
|
1052
1160
|
"kind": "method",
|
1053
|
-
"name": "
|
1054
|
-
"privacy": "public",
|
1161
|
+
"name": "delete",
|
1055
1162
|
"return": {
|
1056
1163
|
"type": {
|
1057
|
-
"text": "
|
1164
|
+
"text": ""
|
1058
1165
|
}
|
1059
1166
|
},
|
1060
1167
|
"parameters": [
|
1061
1168
|
{
|
1062
|
-
"name": "
|
1169
|
+
"name": "key",
|
1063
1170
|
"type": {
|
1064
|
-
"text": "
|
1065
|
-
}
|
1171
|
+
"text": "keyof TErrorDetailMap"
|
1172
|
+
},
|
1173
|
+
"description": "The key."
|
1066
1174
|
}
|
1067
|
-
]
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
],
|
1072
|
-
"exports": [
|
1073
|
-
{
|
1074
|
-
"kind": "js",
|
1075
|
-
"name": "InMemoryDatabase",
|
1076
|
-
"declaration": {
|
1077
|
-
"name": "InMemoryDatabase",
|
1078
|
-
"module": "src/data/inMemoryDatabase.ts"
|
1079
|
-
}
|
1080
|
-
}
|
1081
|
-
]
|
1082
|
-
},
|
1083
|
-
{
|
1084
|
-
"kind": "javascript-module",
|
1085
|
-
"path": "src/data/index.ts",
|
1086
|
-
"declarations": [],
|
1087
|
-
"exports": [
|
1088
|
-
{
|
1089
|
-
"kind": "js",
|
1090
|
-
"name": "*",
|
1091
|
-
"declaration": {
|
1092
|
-
"name": "*",
|
1093
|
-
"package": "./inMemoryDatabase"
|
1094
|
-
}
|
1095
|
-
}
|
1096
|
-
]
|
1097
|
-
},
|
1098
|
-
{
|
1099
|
-
"kind": "javascript-module",
|
1100
|
-
"path": "src/decorators/index.ts",
|
1101
|
-
"declarations": [],
|
1102
|
-
"exports": [
|
1103
|
-
{
|
1104
|
-
"kind": "js",
|
1105
|
-
"name": "*",
|
1106
|
-
"declaration": {
|
1107
|
-
"name": "*",
|
1108
|
-
"package": "./renderOnChange"
|
1109
|
-
}
|
1110
|
-
}
|
1111
|
-
]
|
1112
|
-
},
|
1113
|
-
{
|
1114
|
-
"kind": "javascript-module",
|
1115
|
-
"path": "src/decorators/renderOnChange.ts",
|
1116
|
-
"declarations": [
|
1117
|
-
{
|
1118
|
-
"kind": "function",
|
1119
|
-
"name": "renderOnChange",
|
1120
|
-
"parameters": [
|
1175
|
+
],
|
1176
|
+
"description": "Delete an error.",
|
1177
|
+
"privacy": "public"
|
1178
|
+
},
|
1121
1179
|
{
|
1122
|
-
"
|
1123
|
-
"
|
1124
|
-
|
1125
|
-
|
1126
|
-
"description": "The target to define the property change handler on."
|
1180
|
+
"kind": "method",
|
1181
|
+
"name": "clear",
|
1182
|
+
"description": "Clear errors.",
|
1183
|
+
"privacy": "public"
|
1127
1184
|
},
|
1128
1185
|
{
|
1129
|
-
"
|
1186
|
+
"kind": "field",
|
1187
|
+
"name": "size",
|
1130
1188
|
"type": {
|
1131
|
-
"text": "
|
1189
|
+
"text": "number"
|
1132
1190
|
},
|
1133
|
-
"description": "The
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
}
|
1139
|
-
],
|
1140
|
-
"exports": [
|
1141
|
-
{
|
1142
|
-
"kind": "js",
|
1143
|
-
"name": "renderOnChange",
|
1144
|
-
"declaration": {
|
1145
|
-
"name": "renderOnChange",
|
1146
|
-
"module": "src/decorators/renderOnChange.ts"
|
1147
|
-
}
|
1148
|
-
}
|
1149
|
-
]
|
1150
|
-
},
|
1151
|
-
{
|
1152
|
-
"kind": "javascript-module",
|
1153
|
-
"path": "src/design-system/design-system.ts",
|
1154
|
-
"declarations": [
|
1155
|
-
{
|
1156
|
-
"kind": "function",
|
1157
|
-
"name": "assureDesignSystem",
|
1158
|
-
"return": {
|
1159
|
-
"type": {
|
1160
|
-
"text": "DesignSystemModule"
|
1161
|
-
}
|
1162
|
-
},
|
1163
|
-
"parameters": [
|
1164
|
-
{
|
1165
|
-
"name": "module",
|
1166
|
-
"type": {
|
1167
|
-
"text": "DesignSystemModule"
|
1168
|
-
}
|
1169
|
-
}
|
1170
|
-
],
|
1171
|
-
"description": "assureDesignSystem.",
|
1172
|
-
"privacy": "public"
|
1173
|
-
},
|
1174
|
-
{
|
1175
|
-
"kind": "function",
|
1176
|
-
"name": "getCurrentDesignSystem",
|
1177
|
-
"return": {
|
1178
|
-
"type": {
|
1179
|
-
"text": ""
|
1180
|
-
}
|
1181
|
-
},
|
1182
|
-
"parameters": [
|
1183
|
-
{
|
1184
|
-
"name": "element",
|
1185
|
-
"type": {
|
1186
|
-
"text": "HTMLElement"
|
1191
|
+
"description": "The size of the error map.",
|
1192
|
+
"return": {
|
1193
|
+
"type": {
|
1194
|
+
"text": ""
|
1195
|
+
}
|
1187
1196
|
},
|
1188
|
-
"
|
1197
|
+
"privacy": "public",
|
1198
|
+
"readonly": true
|
1189
1199
|
},
|
1190
1200
|
{
|
1191
|
-
"
|
1201
|
+
"kind": "method",
|
1202
|
+
"name": "values",
|
1203
|
+
"privacy": "public"
|
1204
|
+
},
|
1205
|
+
{
|
1206
|
+
"kind": "field",
|
1207
|
+
"name": "messages",
|
1192
1208
|
"type": {
|
1193
1209
|
"text": "string"
|
1194
1210
|
},
|
1195
|
-
"description": "
|
1211
|
+
"description": "{@inheritDoc ErrorMap.messages}",
|
1212
|
+
"readonly": true
|
1196
1213
|
}
|
1197
|
-
]
|
1198
|
-
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
1199
|
-
"privacy": "public"
|
1214
|
+
]
|
1200
1215
|
},
|
1201
1216
|
{
|
1202
1217
|
"kind": "function",
|
1203
|
-
"name": "
|
1218
|
+
"name": "createErrorMap",
|
1204
1219
|
"return": {
|
1205
1220
|
"type": {
|
1206
1221
|
"text": ""
|
@@ -1208,54 +1223,39 @@
|
|
1208
1223
|
},
|
1209
1224
|
"parameters": [
|
1210
1225
|
{
|
1211
|
-
"name": "
|
1212
|
-
"type": {
|
1213
|
-
"text": "HTMLElement"
|
1214
|
-
},
|
1215
|
-
"description": "The starting HTML element"
|
1216
|
-
},
|
1217
|
-
{
|
1218
|
-
"name": "fallbackPrefix",
|
1226
|
+
"name": "logger",
|
1219
1227
|
"type": {
|
1220
|
-
"text": "
|
1228
|
+
"text": "ErrorMapLogger"
|
1221
1229
|
},
|
1222
|
-
"description": "
|
1230
|
+
"description": "A logger error method reference."
|
1223
1231
|
}
|
1224
1232
|
],
|
1225
|
-
"description": "
|
1233
|
+
"description": "A factory to create the error map.",
|
1226
1234
|
"privacy": "public"
|
1227
1235
|
}
|
1228
1236
|
],
|
1229
1237
|
"exports": [
|
1230
1238
|
{
|
1231
1239
|
"kind": "js",
|
1232
|
-
"name": "
|
1233
|
-
"declaration": {
|
1234
|
-
"name": "assureDesignSystem",
|
1235
|
-
"module": "src/design-system/design-system.ts"
|
1236
|
-
}
|
1237
|
-
},
|
1238
|
-
{
|
1239
|
-
"kind": "js",
|
1240
|
-
"name": "getCurrentDesignSystem",
|
1240
|
+
"name": "DefaultErrorMap",
|
1241
1241
|
"declaration": {
|
1242
|
-
"name": "
|
1243
|
-
"module": "src/
|
1242
|
+
"name": "DefaultErrorMap",
|
1243
|
+
"module": "src/error/errorMap.ts"
|
1244
1244
|
}
|
1245
1245
|
},
|
1246
1246
|
{
|
1247
1247
|
"kind": "js",
|
1248
|
-
"name": "
|
1248
|
+
"name": "createErrorMap",
|
1249
1249
|
"declaration": {
|
1250
|
-
"name": "
|
1251
|
-
"module": "src/
|
1250
|
+
"name": "createErrorMap",
|
1251
|
+
"module": "src/error/errorMap.ts"
|
1252
1252
|
}
|
1253
1253
|
}
|
1254
1254
|
]
|
1255
1255
|
},
|
1256
1256
|
{
|
1257
1257
|
"kind": "javascript-module",
|
1258
|
-
"path": "src/
|
1258
|
+
"path": "src/error/index.ts",
|
1259
1259
|
"declarations": [],
|
1260
1260
|
"exports": [
|
1261
1261
|
{
|
@@ -1263,7 +1263,7 @@
|
|
1263
1263
|
"name": "*",
|
1264
1264
|
"declaration": {
|
1265
1265
|
"name": "*",
|
1266
|
-
"package": "./
|
1266
|
+
"package": "./errorMap"
|
1267
1267
|
}
|
1268
1268
|
}
|
1269
1269
|
]
|
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.336.3-alpha-
|
4
|
+
"version": "14.336.3-alpha-e3f01e2.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -27,18 +27,18 @@
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@genesislcap/foundation-testing": "14.336.3-alpha-
|
31
|
-
"@genesislcap/genx": "14.336.3-alpha-
|
32
|
-
"@genesislcap/rollup-builder": "14.336.3-alpha-
|
33
|
-
"@genesislcap/ts-builder": "14.336.3-alpha-
|
34
|
-
"@genesislcap/uvu-playwright-builder": "14.336.3-alpha-
|
35
|
-
"@genesislcap/vite-builder": "14.336.3-alpha-
|
36
|
-
"@genesislcap/webpack-builder": "14.336.3-alpha-
|
30
|
+
"@genesislcap/foundation-testing": "14.336.3-alpha-e3f01e2.0",
|
31
|
+
"@genesislcap/genx": "14.336.3-alpha-e3f01e2.0",
|
32
|
+
"@genesislcap/rollup-builder": "14.336.3-alpha-e3f01e2.0",
|
33
|
+
"@genesislcap/ts-builder": "14.336.3-alpha-e3f01e2.0",
|
34
|
+
"@genesislcap/uvu-playwright-builder": "14.336.3-alpha-e3f01e2.0",
|
35
|
+
"@genesislcap/vite-builder": "14.336.3-alpha-e3f01e2.0",
|
36
|
+
"@genesislcap/webpack-builder": "14.336.3-alpha-e3f01e2.0",
|
37
37
|
"@types/json-schema": "^7.0.11"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@genesislcap/expression-builder": "14.336.3-alpha-
|
41
|
-
"@genesislcap/foundation-logger": "14.336.3-alpha-
|
40
|
+
"@genesislcap/expression-builder": "14.336.3-alpha-e3f01e2.0",
|
41
|
+
"@genesislcap/foundation-logger": "14.336.3-alpha-e3f01e2.0",
|
42
42
|
"@microsoft/fast-components": "2.30.6",
|
43
43
|
"@microsoft/fast-element": "1.14.0",
|
44
44
|
"@microsoft/fast-foundation": "2.49.6",
|
@@ -56,5 +56,5 @@
|
|
56
56
|
"access": "public"
|
57
57
|
},
|
58
58
|
"customElements": "dist/custom-elements.json",
|
59
|
-
"gitHead": "
|
59
|
+
"gitHead": "e72328a16fe7fc0429dd624115ac4f0f0f63058e"
|
60
60
|
}
|