@genesislcap/foundation-utils 14.135.0 → 14.136.1-alpha-85921f4.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 +424 -424
- package/package.json +5 -5
|
@@ -153,198 +153,53 @@
|
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"kind": "javascript-module",
|
|
156
|
-
"path": "src/
|
|
156
|
+
"path": "src/decorators/index.ts",
|
|
157
|
+
"declarations": [],
|
|
158
|
+
"exports": [
|
|
159
|
+
{
|
|
160
|
+
"kind": "js",
|
|
161
|
+
"name": "*",
|
|
162
|
+
"declaration": {
|
|
163
|
+
"name": "*",
|
|
164
|
+
"package": "./renderOnChange"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"kind": "javascript-module",
|
|
171
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
157
172
|
"declarations": [
|
|
158
173
|
{
|
|
159
|
-
"kind": "
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"members": [
|
|
174
|
+
"kind": "function",
|
|
175
|
+
"name": "renderOnChange",
|
|
176
|
+
"parameters": [
|
|
163
177
|
{
|
|
164
|
-
"
|
|
165
|
-
"name": "isWorking",
|
|
178
|
+
"name": "target",
|
|
166
179
|
"type": {
|
|
167
|
-
"text": "
|
|
180
|
+
"text": "FASTElement & { render(): void }"
|
|
168
181
|
},
|
|
169
|
-
"
|
|
170
|
-
"default": "false"
|
|
182
|
+
"description": "The target to define the property change handler on."
|
|
171
183
|
},
|
|
172
184
|
{
|
|
173
|
-
"
|
|
174
|
-
"name": "records",
|
|
185
|
+
"name": "name",
|
|
175
186
|
"type": {
|
|
176
|
-
"text": "
|
|
177
|
-
},
|
|
178
|
-
"privacy": "private",
|
|
179
|
-
"default": "{}"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"kind": "field",
|
|
183
|
-
"name": "beforeUpdateListeners",
|
|
184
|
-
"privacy": "private"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"kind": "field",
|
|
188
|
-
"name": "afterUpdateListeners",
|
|
189
|
-
"privacy": "private"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"kind": "method",
|
|
193
|
-
"name": "create",
|
|
194
|
-
"privacy": "public",
|
|
195
|
-
"return": {
|
|
196
|
-
"type": {
|
|
197
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"parameters": [
|
|
201
|
-
{
|
|
202
|
-
"name": "newValue",
|
|
203
|
-
"type": {
|
|
204
|
-
"text": "Omit<T, 'id'>"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"kind": "method",
|
|
211
|
-
"name": "read",
|
|
212
|
-
"privacy": "public",
|
|
213
|
-
"return": {
|
|
214
|
-
"type": {
|
|
215
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"parameters": [
|
|
219
|
-
{
|
|
220
|
-
"name": "id",
|
|
221
|
-
"type": {
|
|
222
|
-
"text": "string"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"kind": "method",
|
|
229
|
-
"name": "update",
|
|
230
|
-
"privacy": "public",
|
|
231
|
-
"return": {
|
|
232
|
-
"type": {
|
|
233
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"parameters": [
|
|
237
|
-
{
|
|
238
|
-
"name": "id",
|
|
239
|
-
"type": {
|
|
240
|
-
"text": "string"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "newValue",
|
|
245
|
-
"type": {
|
|
246
|
-
"text": "Omit<Partial<T>, 'id'>"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"kind": "method",
|
|
253
|
-
"name": "delete",
|
|
254
|
-
"privacy": "public",
|
|
255
|
-
"return": {
|
|
256
|
-
"type": {
|
|
257
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
"parameters": [
|
|
261
|
-
{
|
|
262
|
-
"name": "id",
|
|
263
|
-
"type": {
|
|
264
|
-
"text": "string"
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"kind": "method",
|
|
271
|
-
"name": "visit",
|
|
272
|
-
"privacy": "public",
|
|
273
|
-
"return": {
|
|
274
|
-
"type": {
|
|
275
|
-
"text": "Promise<void>"
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
"parameters": [
|
|
279
|
-
{
|
|
280
|
-
"name": "visitor",
|
|
281
|
-
"type": {
|
|
282
|
-
"text": "(record: T) => void"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"kind": "method",
|
|
289
|
-
"name": "onBeforeUpdate",
|
|
290
|
-
"privacy": "public",
|
|
291
|
-
"return": {
|
|
292
|
-
"type": {
|
|
293
|
-
"text": "() => void"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
"parameters": [
|
|
297
|
-
{
|
|
298
|
-
"name": "listener",
|
|
299
|
-
"type": {
|
|
300
|
-
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"kind": "method",
|
|
307
|
-
"name": "onAfterUpdate",
|
|
308
|
-
"privacy": "public",
|
|
309
|
-
"return": {
|
|
310
|
-
"type": {
|
|
311
|
-
"text": "() => void"
|
|
312
|
-
}
|
|
187
|
+
"text": "string"
|
|
313
188
|
},
|
|
314
|
-
"
|
|
315
|
-
{
|
|
316
|
-
"name": "listener",
|
|
317
|
-
"type": {
|
|
318
|
-
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
]
|
|
189
|
+
"description": "The property name."
|
|
322
190
|
}
|
|
323
|
-
]
|
|
191
|
+
],
|
|
192
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
193
|
+
"privacy": "public"
|
|
324
194
|
}
|
|
325
195
|
],
|
|
326
196
|
"exports": [
|
|
327
197
|
{
|
|
328
198
|
"kind": "js",
|
|
329
|
-
"name": "
|
|
330
|
-
"declaration": {
|
|
331
|
-
"name": "InMemoryDatabase",
|
|
332
|
-
"module": "src/data/inMemoryDatabase.ts"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"kind": "javascript-module",
|
|
339
|
-
"path": "src/data/index.ts",
|
|
340
|
-
"declarations": [],
|
|
341
|
-
"exports": [
|
|
342
|
-
{
|
|
343
|
-
"kind": "js",
|
|
344
|
-
"name": "*",
|
|
199
|
+
"name": "renderOnChange",
|
|
345
200
|
"declaration": {
|
|
346
|
-
"name": "
|
|
347
|
-
"
|
|
201
|
+
"name": "renderOnChange",
|
|
202
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
348
203
|
}
|
|
349
204
|
}
|
|
350
205
|
]
|
|
@@ -401,7 +256,7 @@
|
|
|
401
256
|
},
|
|
402
257
|
{
|
|
403
258
|
"kind": "javascript-module",
|
|
404
|
-
"path": "src/
|
|
259
|
+
"path": "src/env/index.ts",
|
|
405
260
|
"declarations": [],
|
|
406
261
|
"exports": [
|
|
407
262
|
{
|
|
@@ -409,121 +264,45 @@
|
|
|
409
264
|
"name": "*",
|
|
410
265
|
"declaration": {
|
|
411
266
|
"name": "*",
|
|
412
|
-
"package": "./
|
|
267
|
+
"package": "./is-dev"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"kind": "js",
|
|
272
|
+
"name": "*",
|
|
273
|
+
"declaration": {
|
|
274
|
+
"name": "*",
|
|
275
|
+
"package": "./variables"
|
|
413
276
|
}
|
|
414
277
|
}
|
|
415
278
|
]
|
|
416
279
|
},
|
|
417
280
|
{
|
|
418
281
|
"kind": "javascript-module",
|
|
419
|
-
"path": "src/
|
|
282
|
+
"path": "src/env/is-dev.ts",
|
|
420
283
|
"declarations": [
|
|
421
284
|
{
|
|
422
285
|
"kind": "function",
|
|
423
|
-
"name": "
|
|
424
|
-
"
|
|
425
|
-
{
|
|
426
|
-
"name": "target",
|
|
427
|
-
"type": {
|
|
428
|
-
"text": "FASTElement & { render(): void }"
|
|
429
|
-
},
|
|
430
|
-
"description": "The target to define the property change handler on."
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "name",
|
|
434
|
-
"type": {
|
|
435
|
-
"text": "string"
|
|
436
|
-
},
|
|
437
|
-
"description": "The property name."
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
286
|
+
"name": "isDev",
|
|
287
|
+
"description": "Determines if the current environment is a development environment.",
|
|
441
288
|
"privacy": "public"
|
|
442
289
|
}
|
|
443
290
|
],
|
|
444
291
|
"exports": [
|
|
445
292
|
{
|
|
446
293
|
"kind": "js",
|
|
447
|
-
"name": "
|
|
294
|
+
"name": "isDev",
|
|
448
295
|
"declaration": {
|
|
449
|
-
"name": "
|
|
450
|
-
"module": "src/
|
|
296
|
+
"name": "isDev",
|
|
297
|
+
"module": "src/env/is-dev.ts"
|
|
451
298
|
}
|
|
452
299
|
}
|
|
453
300
|
]
|
|
454
301
|
},
|
|
455
302
|
{
|
|
456
303
|
"kind": "javascript-module",
|
|
457
|
-
"path": "src/
|
|
458
|
-
"declarations": [
|
|
459
|
-
"exports": [
|
|
460
|
-
{
|
|
461
|
-
"kind": "js",
|
|
462
|
-
"name": "*",
|
|
463
|
-
"declaration": {
|
|
464
|
-
"name": "*",
|
|
465
|
-
"package": "./sync"
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"kind": "js",
|
|
470
|
-
"name": "*",
|
|
471
|
-
"declaration": {
|
|
472
|
-
"name": "*",
|
|
473
|
-
"package": "./when-else"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
]
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"kind": "javascript-module",
|
|
480
|
-
"path": "src/env/index.ts",
|
|
481
|
-
"declarations": [],
|
|
482
|
-
"exports": [
|
|
483
|
-
{
|
|
484
|
-
"kind": "js",
|
|
485
|
-
"name": "*",
|
|
486
|
-
"declaration": {
|
|
487
|
-
"name": "*",
|
|
488
|
-
"package": "./is-dev"
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"kind": "js",
|
|
493
|
-
"name": "*",
|
|
494
|
-
"declaration": {
|
|
495
|
-
"name": "*",
|
|
496
|
-
"package": "./variables"
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
]
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"kind": "javascript-module",
|
|
503
|
-
"path": "src/env/is-dev.ts",
|
|
504
|
-
"declarations": [
|
|
505
|
-
{
|
|
506
|
-
"kind": "function",
|
|
507
|
-
"name": "isDev",
|
|
508
|
-
"description": "Determines if the current environment is a development environment.",
|
|
509
|
-
"privacy": "public"
|
|
510
|
-
}
|
|
511
|
-
],
|
|
512
|
-
"exports": [
|
|
513
|
-
{
|
|
514
|
-
"kind": "js",
|
|
515
|
-
"name": "isDev",
|
|
516
|
-
"declaration": {
|
|
517
|
-
"name": "isDev",
|
|
518
|
-
"module": "src/env/is-dev.ts"
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"kind": "javascript-module",
|
|
525
|
-
"path": "src/env/variables.ts",
|
|
526
|
-
"declarations": [
|
|
304
|
+
"path": "src/env/variables.ts",
|
|
305
|
+
"declarations": [
|
|
527
306
|
{
|
|
528
307
|
"kind": "variable",
|
|
529
308
|
"name": "SOCKET_EXT",
|
|
@@ -731,160 +510,381 @@
|
|
|
731
510
|
},
|
|
732
511
|
"parameters": [
|
|
733
512
|
{
|
|
734
|
-
"name": "key",
|
|
513
|
+
"name": "key",
|
|
514
|
+
"type": {
|
|
515
|
+
"text": "keyof TErrorDetailMap"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "error",
|
|
520
|
+
"type": {
|
|
521
|
+
"text": "Error"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
"description": "{@inheritDoc ErrorMap.set}"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"kind": "method",
|
|
529
|
+
"name": "get",
|
|
530
|
+
"return": {
|
|
531
|
+
"type": {
|
|
532
|
+
"text": ""
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"parameters": [
|
|
536
|
+
{
|
|
537
|
+
"name": "key",
|
|
538
|
+
"type": {
|
|
539
|
+
"text": "keyof TErrorDetailMap"
|
|
540
|
+
},
|
|
541
|
+
"description": "The key."
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"description": "Get an error by key.",
|
|
545
|
+
"privacy": "public"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"kind": "method",
|
|
549
|
+
"name": "has",
|
|
550
|
+
"return": {
|
|
551
|
+
"type": {
|
|
552
|
+
"text": ""
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"parameters": [
|
|
556
|
+
{
|
|
557
|
+
"name": "key",
|
|
558
|
+
"type": {
|
|
559
|
+
"text": "keyof TErrorDetailMap"
|
|
560
|
+
},
|
|
561
|
+
"description": "The key."
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"description": "Has an error for key.",
|
|
565
|
+
"privacy": "public"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"kind": "method",
|
|
569
|
+
"name": "delete",
|
|
570
|
+
"return": {
|
|
571
|
+
"type": {
|
|
572
|
+
"text": ""
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"parameters": [
|
|
576
|
+
{
|
|
577
|
+
"name": "key",
|
|
578
|
+
"type": {
|
|
579
|
+
"text": "keyof TErrorDetailMap"
|
|
580
|
+
},
|
|
581
|
+
"description": "The key."
|
|
582
|
+
}
|
|
583
|
+
],
|
|
584
|
+
"description": "Delete an error.",
|
|
585
|
+
"privacy": "public"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"kind": "method",
|
|
589
|
+
"name": "clear",
|
|
590
|
+
"description": "Clear errors.",
|
|
591
|
+
"privacy": "public"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"kind": "field",
|
|
595
|
+
"name": "size",
|
|
596
|
+
"type": {
|
|
597
|
+
"text": "number"
|
|
598
|
+
},
|
|
599
|
+
"description": "The size of the error map.",
|
|
600
|
+
"return": {
|
|
601
|
+
"type": {
|
|
602
|
+
"text": ""
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"privacy": "public",
|
|
606
|
+
"readonly": true
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"kind": "method",
|
|
610
|
+
"name": "values",
|
|
611
|
+
"privacy": "public"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "field",
|
|
615
|
+
"name": "messages",
|
|
616
|
+
"type": {
|
|
617
|
+
"text": "string"
|
|
618
|
+
},
|
|
619
|
+
"description": "{@inheritDoc ErrorMap.messages}",
|
|
620
|
+
"readonly": true
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"kind": "function",
|
|
626
|
+
"name": "createErrorMap",
|
|
627
|
+
"return": {
|
|
628
|
+
"type": {
|
|
629
|
+
"text": ""
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"parameters": [
|
|
633
|
+
{
|
|
634
|
+
"name": "logger",
|
|
635
|
+
"type": {
|
|
636
|
+
"text": "ErrorMapLogger"
|
|
637
|
+
},
|
|
638
|
+
"description": "A logger error method reference."
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"description": "A factory to create the error map.",
|
|
642
|
+
"privacy": "public"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"exports": [
|
|
646
|
+
{
|
|
647
|
+
"kind": "js",
|
|
648
|
+
"name": "DefaultErrorMap",
|
|
649
|
+
"declaration": {
|
|
650
|
+
"name": "DefaultErrorMap",
|
|
651
|
+
"module": "src/error/errorMap.ts"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"kind": "js",
|
|
656
|
+
"name": "createErrorMap",
|
|
657
|
+
"declaration": {
|
|
658
|
+
"name": "createErrorMap",
|
|
659
|
+
"module": "src/error/errorMap.ts"
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "javascript-module",
|
|
666
|
+
"path": "src/error/index.ts",
|
|
667
|
+
"declarations": [],
|
|
668
|
+
"exports": [
|
|
669
|
+
{
|
|
670
|
+
"kind": "js",
|
|
671
|
+
"name": "*",
|
|
672
|
+
"declaration": {
|
|
673
|
+
"name": "*",
|
|
674
|
+
"package": "./errorMap"
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
]
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"kind": "javascript-module",
|
|
681
|
+
"path": "src/directives/index.ts",
|
|
682
|
+
"declarations": [],
|
|
683
|
+
"exports": [
|
|
684
|
+
{
|
|
685
|
+
"kind": "js",
|
|
686
|
+
"name": "*",
|
|
687
|
+
"declaration": {
|
|
688
|
+
"name": "*",
|
|
689
|
+
"package": "./sync"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"kind": "js",
|
|
694
|
+
"name": "*",
|
|
695
|
+
"declaration": {
|
|
696
|
+
"name": "*",
|
|
697
|
+
"package": "./when-else"
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"kind": "javascript-module",
|
|
704
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
705
|
+
"declarations": [
|
|
706
|
+
{
|
|
707
|
+
"kind": "class",
|
|
708
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
709
|
+
"name": "InMemoryDatabase",
|
|
710
|
+
"members": [
|
|
711
|
+
{
|
|
712
|
+
"kind": "field",
|
|
713
|
+
"name": "isWorking",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "boolean"
|
|
716
|
+
},
|
|
717
|
+
"privacy": "public",
|
|
718
|
+
"default": "false"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"kind": "field",
|
|
722
|
+
"name": "records",
|
|
723
|
+
"type": {
|
|
724
|
+
"text": "Record<string, T>"
|
|
725
|
+
},
|
|
726
|
+
"privacy": "private",
|
|
727
|
+
"default": "{}"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "field",
|
|
731
|
+
"name": "beforeUpdateListeners",
|
|
732
|
+
"privacy": "private"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "field",
|
|
736
|
+
"name": "afterUpdateListeners",
|
|
737
|
+
"privacy": "private"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"kind": "method",
|
|
741
|
+
"name": "create",
|
|
742
|
+
"privacy": "public",
|
|
743
|
+
"return": {
|
|
744
|
+
"type": {
|
|
745
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"parameters": [
|
|
749
|
+
{
|
|
750
|
+
"name": "newValue",
|
|
751
|
+
"type": {
|
|
752
|
+
"text": "Omit<T, 'id'>"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
]
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"kind": "method",
|
|
759
|
+
"name": "read",
|
|
760
|
+
"privacy": "public",
|
|
761
|
+
"return": {
|
|
762
|
+
"type": {
|
|
763
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"parameters": [
|
|
767
|
+
{
|
|
768
|
+
"name": "id",
|
|
769
|
+
"type": {
|
|
770
|
+
"text": "string"
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"kind": "method",
|
|
777
|
+
"name": "update",
|
|
778
|
+
"privacy": "public",
|
|
779
|
+
"return": {
|
|
780
|
+
"type": {
|
|
781
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"parameters": [
|
|
785
|
+
{
|
|
786
|
+
"name": "id",
|
|
735
787
|
"type": {
|
|
736
|
-
"text": "
|
|
788
|
+
"text": "string"
|
|
737
789
|
}
|
|
738
790
|
},
|
|
739
791
|
{
|
|
740
|
-
"name": "
|
|
792
|
+
"name": "newValue",
|
|
741
793
|
"type": {
|
|
742
|
-
"text": "
|
|
794
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
743
795
|
}
|
|
744
796
|
}
|
|
745
|
-
]
|
|
746
|
-
"description": "{@inheritDoc ErrorMap.set}"
|
|
797
|
+
]
|
|
747
798
|
},
|
|
748
799
|
{
|
|
749
800
|
"kind": "method",
|
|
750
|
-
"name": "
|
|
801
|
+
"name": "delete",
|
|
802
|
+
"privacy": "public",
|
|
751
803
|
"return": {
|
|
752
804
|
"type": {
|
|
753
|
-
"text": ""
|
|
805
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
754
806
|
}
|
|
755
807
|
},
|
|
756
808
|
"parameters": [
|
|
757
809
|
{
|
|
758
|
-
"name": "
|
|
810
|
+
"name": "id",
|
|
759
811
|
"type": {
|
|
760
|
-
"text": "
|
|
761
|
-
}
|
|
762
|
-
"description": "The key."
|
|
812
|
+
"text": "string"
|
|
813
|
+
}
|
|
763
814
|
}
|
|
764
|
-
]
|
|
765
|
-
"description": "Get an error by key.",
|
|
766
|
-
"privacy": "public"
|
|
815
|
+
]
|
|
767
816
|
},
|
|
768
817
|
{
|
|
769
818
|
"kind": "method",
|
|
770
|
-
"name": "
|
|
819
|
+
"name": "visit",
|
|
820
|
+
"privacy": "public",
|
|
771
821
|
"return": {
|
|
772
822
|
"type": {
|
|
773
|
-
"text": ""
|
|
823
|
+
"text": "Promise<void>"
|
|
774
824
|
}
|
|
775
825
|
},
|
|
776
826
|
"parameters": [
|
|
777
827
|
{
|
|
778
|
-
"name": "
|
|
828
|
+
"name": "visitor",
|
|
779
829
|
"type": {
|
|
780
|
-
"text": "
|
|
781
|
-
}
|
|
782
|
-
"description": "The key."
|
|
830
|
+
"text": "(record: T) => void"
|
|
831
|
+
}
|
|
783
832
|
}
|
|
784
|
-
]
|
|
785
|
-
"description": "Has an error for key.",
|
|
786
|
-
"privacy": "public"
|
|
833
|
+
]
|
|
787
834
|
},
|
|
788
835
|
{
|
|
789
836
|
"kind": "method",
|
|
790
|
-
"name": "
|
|
837
|
+
"name": "onBeforeUpdate",
|
|
838
|
+
"privacy": "public",
|
|
791
839
|
"return": {
|
|
792
840
|
"type": {
|
|
793
|
-
"text": ""
|
|
841
|
+
"text": "() => void"
|
|
794
842
|
}
|
|
795
843
|
},
|
|
796
844
|
"parameters": [
|
|
797
845
|
{
|
|
798
|
-
"name": "
|
|
846
|
+
"name": "listener",
|
|
799
847
|
"type": {
|
|
800
|
-
"text": "
|
|
801
|
-
}
|
|
802
|
-
"description": "The key."
|
|
848
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
849
|
+
}
|
|
803
850
|
}
|
|
804
|
-
]
|
|
805
|
-
"description": "Delete an error.",
|
|
806
|
-
"privacy": "public"
|
|
851
|
+
]
|
|
807
852
|
},
|
|
808
853
|
{
|
|
809
854
|
"kind": "method",
|
|
810
|
-
"name": "
|
|
811
|
-
"
|
|
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.",
|
|
855
|
+
"name": "onAfterUpdate",
|
|
856
|
+
"privacy": "public",
|
|
821
857
|
"return": {
|
|
822
858
|
"type": {
|
|
823
|
-
"text": ""
|
|
859
|
+
"text": "() => void"
|
|
824
860
|
}
|
|
825
861
|
},
|
|
826
|
-
"
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
{
|
|
835
|
-
"kind": "field",
|
|
836
|
-
"name": "messages",
|
|
837
|
-
"type": {
|
|
838
|
-
"text": "string"
|
|
839
|
-
},
|
|
840
|
-
"description": "{@inheritDoc ErrorMap.messages}",
|
|
841
|
-
"readonly": true
|
|
862
|
+
"parameters": [
|
|
863
|
+
{
|
|
864
|
+
"name": "listener",
|
|
865
|
+
"type": {
|
|
866
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
]
|
|
842
870
|
}
|
|
843
871
|
]
|
|
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
872
|
}
|
|
865
873
|
],
|
|
866
874
|
"exports": [
|
|
867
875
|
{
|
|
868
876
|
"kind": "js",
|
|
869
|
-
"name": "
|
|
870
|
-
"declaration": {
|
|
871
|
-
"name": "DefaultErrorMap",
|
|
872
|
-
"module": "src/error/errorMap.ts"
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
"kind": "js",
|
|
877
|
-
"name": "createErrorMap",
|
|
877
|
+
"name": "InMemoryDatabase",
|
|
878
878
|
"declaration": {
|
|
879
|
-
"name": "
|
|
880
|
-
"module": "src/
|
|
879
|
+
"name": "InMemoryDatabase",
|
|
880
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
]
|
|
884
884
|
},
|
|
885
885
|
{
|
|
886
886
|
"kind": "javascript-module",
|
|
887
|
-
"path": "src/
|
|
887
|
+
"path": "src/data/index.ts",
|
|
888
888
|
"declarations": [],
|
|
889
889
|
"exports": [
|
|
890
890
|
{
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
"name": "*",
|
|
893
893
|
"declaration": {
|
|
894
894
|
"name": "*",
|
|
895
|
-
"package": "./
|
|
895
|
+
"package": "./inMemoryDatabase"
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
]
|
|
@@ -2056,7 +2056,7 @@
|
|
|
2056
2056
|
},
|
|
2057
2057
|
{
|
|
2058
2058
|
"kind": "javascript-module",
|
|
2059
|
-
"path": "src/directives/
|
|
2059
|
+
"path": "src/directives/when-else/index.ts",
|
|
2060
2060
|
"declarations": [],
|
|
2061
2061
|
"exports": [
|
|
2062
2062
|
{
|
|
@@ -2064,28 +2064,18 @@
|
|
|
2064
2064
|
"name": "*",
|
|
2065
2065
|
"declaration": {
|
|
2066
2066
|
"name": "*",
|
|
2067
|
-
"package": "./
|
|
2067
|
+
"package": "./when-else"
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
2070
|
]
|
|
2071
2071
|
},
|
|
2072
2072
|
{
|
|
2073
2073
|
"kind": "javascript-module",
|
|
2074
|
-
"path": "src/directives/
|
|
2074
|
+
"path": "src/directives/when-else/when-else.ts",
|
|
2075
2075
|
"declarations": [
|
|
2076
|
-
{
|
|
2077
|
-
"kind": "variable",
|
|
2078
|
-
"name": "defaultEventMap",
|
|
2079
|
-
"type": {
|
|
2080
|
-
"text": "Map<string, EventName>"
|
|
2081
|
-
},
|
|
2082
|
-
"default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
|
|
2083
|
-
"description": "A map that associates specific HTML element tags with their corresponding default event names.",
|
|
2084
|
-
"privacy": "public"
|
|
2085
|
-
},
|
|
2086
2076
|
{
|
|
2087
2077
|
"kind": "function",
|
|
2088
|
-
"name": "
|
|
2078
|
+
"name": "whenElse",
|
|
2089
2079
|
"return": {
|
|
2090
2080
|
"type": {
|
|
2091
2081
|
"text": "CaptureType<TSource>"
|
|
@@ -2096,56 +2086,42 @@
|
|
|
2096
2086
|
"name": "binding",
|
|
2097
2087
|
"type": {
|
|
2098
2088
|
"text": "Binding<TSource, TReturn>"
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
{
|
|
2102
|
-
"name": "conversionType",
|
|
2103
|
-
"default": "'string'",
|
|
2104
|
-
"type": {
|
|
2105
|
-
"text": "ConversionType"
|
|
2106
|
-
}
|
|
2089
|
+
},
|
|
2090
|
+
"description": "The condition to test for rendering."
|
|
2107
2091
|
},
|
|
2108
2092
|
{
|
|
2109
|
-
"name": "
|
|
2110
|
-
"default": "'default'",
|
|
2093
|
+
"name": "trueTemplateOrTemplateBinding",
|
|
2111
2094
|
"type": {
|
|
2112
|
-
"text": "
|
|
2113
|
-
}
|
|
2095
|
+
"text": "WhenTemplate<TSource>"
|
|
2096
|
+
},
|
|
2097
|
+
"description": "The template or a binding that gets the template to render when the condition is true."
|
|
2114
2098
|
},
|
|
2115
2099
|
{
|
|
2116
|
-
"name": "
|
|
2117
|
-
"optional": true,
|
|
2100
|
+
"name": "falseTemplateOrTemplateBinding",
|
|
2118
2101
|
"type": {
|
|
2119
|
-
"text": "
|
|
2120
|
-
}
|
|
2102
|
+
"text": "WhenTemplate<TSource>"
|
|
2103
|
+
},
|
|
2104
|
+
"description": "The template or a binding that gets the template to render when the condition is false."
|
|
2121
2105
|
}
|
|
2122
2106
|
],
|
|
2123
|
-
"description": "
|
|
2107
|
+
"description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
|
|
2124
2108
|
"privacy": "public"
|
|
2125
2109
|
}
|
|
2126
2110
|
],
|
|
2127
2111
|
"exports": [
|
|
2128
2112
|
{
|
|
2129
2113
|
"kind": "js",
|
|
2130
|
-
"name": "
|
|
2131
|
-
"declaration": {
|
|
2132
|
-
"name": "defaultEventMap",
|
|
2133
|
-
"module": "src/directives/sync/sync.ts"
|
|
2134
|
-
}
|
|
2135
|
-
},
|
|
2136
|
-
{
|
|
2137
|
-
"kind": "js",
|
|
2138
|
-
"name": "sync",
|
|
2114
|
+
"name": "whenElse",
|
|
2139
2115
|
"declaration": {
|
|
2140
|
-
"name": "
|
|
2141
|
-
"module": "src/directives/
|
|
2116
|
+
"name": "whenElse",
|
|
2117
|
+
"module": "src/directives/when-else/when-else.ts"
|
|
2142
2118
|
}
|
|
2143
2119
|
}
|
|
2144
2120
|
]
|
|
2145
2121
|
},
|
|
2146
2122
|
{
|
|
2147
2123
|
"kind": "javascript-module",
|
|
2148
|
-
"path": "src/directives/
|
|
2124
|
+
"path": "src/directives/sync/index.ts",
|
|
2149
2125
|
"declarations": [],
|
|
2150
2126
|
"exports": [
|
|
2151
2127
|
{
|
|
@@ -2153,18 +2129,28 @@
|
|
|
2153
2129
|
"name": "*",
|
|
2154
2130
|
"declaration": {
|
|
2155
2131
|
"name": "*",
|
|
2156
|
-
"package": "./
|
|
2132
|
+
"package": "./sync"
|
|
2157
2133
|
}
|
|
2158
2134
|
}
|
|
2159
2135
|
]
|
|
2160
2136
|
},
|
|
2161
2137
|
{
|
|
2162
2138
|
"kind": "javascript-module",
|
|
2163
|
-
"path": "src/directives/
|
|
2139
|
+
"path": "src/directives/sync/sync.ts",
|
|
2164
2140
|
"declarations": [
|
|
2141
|
+
{
|
|
2142
|
+
"kind": "variable",
|
|
2143
|
+
"name": "defaultEventMap",
|
|
2144
|
+
"type": {
|
|
2145
|
+
"text": "Map<string, EventName>"
|
|
2146
|
+
},
|
|
2147
|
+
"default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
|
|
2148
|
+
"description": "A map that associates specific HTML element tags with their corresponding default event names.",
|
|
2149
|
+
"privacy": "public"
|
|
2150
|
+
},
|
|
2165
2151
|
{
|
|
2166
2152
|
"kind": "function",
|
|
2167
|
-
"name": "
|
|
2153
|
+
"name": "sync",
|
|
2168
2154
|
"return": {
|
|
2169
2155
|
"type": {
|
|
2170
2156
|
"text": "CaptureType<TSource>"
|
|
@@ -2175,35 +2161,49 @@
|
|
|
2175
2161
|
"name": "binding",
|
|
2176
2162
|
"type": {
|
|
2177
2163
|
"text": "Binding<TSource, TReturn>"
|
|
2178
|
-
}
|
|
2179
|
-
"description": "The condition to test for rendering."
|
|
2164
|
+
}
|
|
2180
2165
|
},
|
|
2181
2166
|
{
|
|
2182
|
-
"name": "
|
|
2167
|
+
"name": "conversionType",
|
|
2168
|
+
"default": "'string'",
|
|
2183
2169
|
"type": {
|
|
2184
|
-
"text": "
|
|
2185
|
-
}
|
|
2186
|
-
"description": "The template or a binding that gets the template to render when the condition is true."
|
|
2170
|
+
"text": "ConversionType"
|
|
2171
|
+
}
|
|
2187
2172
|
},
|
|
2188
2173
|
{
|
|
2189
|
-
"name": "
|
|
2174
|
+
"name": "eventName",
|
|
2175
|
+
"default": "'default'",
|
|
2190
2176
|
"type": {
|
|
2191
|
-
"text": "
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2177
|
+
"text": "EventName"
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
"name": "keyAttr",
|
|
2182
|
+
"optional": true,
|
|
2183
|
+
"type": {
|
|
2184
|
+
"text": "string"
|
|
2185
|
+
}
|
|
2194
2186
|
}
|
|
2195
2187
|
],
|
|
2196
|
-
"description": "
|
|
2188
|
+
"description": "Creates a synchronization directive that binds a data source to an HTML element,",
|
|
2197
2189
|
"privacy": "public"
|
|
2198
2190
|
}
|
|
2199
2191
|
],
|
|
2200
2192
|
"exports": [
|
|
2201
2193
|
{
|
|
2202
2194
|
"kind": "js",
|
|
2203
|
-
"name": "
|
|
2195
|
+
"name": "defaultEventMap",
|
|
2204
2196
|
"declaration": {
|
|
2205
|
-
"name": "
|
|
2206
|
-
"module": "src/directives/
|
|
2197
|
+
"name": "defaultEventMap",
|
|
2198
|
+
"module": "src/directives/sync/sync.ts"
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
"kind": "js",
|
|
2203
|
+
"name": "sync",
|
|
2204
|
+
"declaration": {
|
|
2205
|
+
"name": "sync",
|
|
2206
|
+
"module": "src/directives/sync/sync.ts"
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
2209
|
]
|
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.
|
|
4
|
+
"version": "14.136.1-alpha-85921f4.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"test": "genx test"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@genesislcap/foundation-testing": "14.
|
|
23
|
-
"@genesislcap/genx": "14.
|
|
22
|
+
"@genesislcap/foundation-testing": "14.136.1-alpha-85921f4.0",
|
|
23
|
+
"@genesislcap/genx": "14.136.1-alpha-85921f4.0",
|
|
24
24
|
"rimraf": "^3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@genesislcap/foundation-logger": "14.
|
|
27
|
+
"@genesislcap/foundation-logger": "14.136.1-alpha-85921f4.0",
|
|
28
28
|
"@microsoft/fast-components": "^2.30.6",
|
|
29
29
|
"@microsoft/fast-element": "^1.12.0",
|
|
30
30
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"customElements": "dist/custom-elements.json",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0dc1e71a891d32e513807fe2ba4d59a19a0cd7fd"
|
|
46
46
|
}
|