@genesislcap/foundation-utils 14.401.0 → 14.401.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.
- package/dist/custom-elements.json +398 -398
- package/package.json +11 -11
|
@@ -203,258 +203,112 @@
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"kind": "javascript-module",
|
|
206
|
-
"path": "src/
|
|
206
|
+
"path": "src/design-system/design-system.ts",
|
|
207
207
|
"declarations": [
|
|
208
208
|
{
|
|
209
|
-
"kind": "
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
|
|
209
|
+
"kind": "function",
|
|
210
|
+
"name": "assureDesignSystem",
|
|
211
|
+
"return": {
|
|
212
|
+
"type": {
|
|
213
|
+
"text": "DesignSystemModule"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"parameters": [
|
|
213
217
|
{
|
|
214
|
-
"
|
|
215
|
-
"name": "isWorking",
|
|
218
|
+
"name": "module",
|
|
216
219
|
"type": {
|
|
217
|
-
"text": "
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
"text": "DesignSystemModule"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"description": "assureDesignSystem.",
|
|
225
|
+
"privacy": "public"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"kind": "function",
|
|
229
|
+
"name": "getCurrentDesignSystem",
|
|
230
|
+
"return": {
|
|
231
|
+
"type": {
|
|
232
|
+
"text": ""
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"parameters": [
|
|
222
236
|
{
|
|
223
|
-
"
|
|
224
|
-
"name": "records",
|
|
237
|
+
"name": "element",
|
|
225
238
|
"type": {
|
|
226
|
-
"text": "
|
|
227
|
-
},
|
|
228
|
-
"privacy": "private",
|
|
229
|
-
"default": "{}"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"kind": "field",
|
|
233
|
-
"name": "beforeUpdateListeners",
|
|
234
|
-
"privacy": "private"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"kind": "field",
|
|
238
|
-
"name": "afterUpdateListeners",
|
|
239
|
-
"privacy": "private"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"kind": "method",
|
|
243
|
-
"name": "create",
|
|
244
|
-
"privacy": "public",
|
|
245
|
-
"return": {
|
|
246
|
-
"type": {
|
|
247
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
"parameters": [
|
|
251
|
-
{
|
|
252
|
-
"name": "newValue",
|
|
253
|
-
"type": {
|
|
254
|
-
"text": "Omit<T, 'id'>"
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"kind": "method",
|
|
261
|
-
"name": "read",
|
|
262
|
-
"privacy": "public",
|
|
263
|
-
"return": {
|
|
264
|
-
"type": {
|
|
265
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"parameters": [
|
|
269
|
-
{
|
|
270
|
-
"name": "id",
|
|
271
|
-
"type": {
|
|
272
|
-
"text": "string"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
]
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"kind": "method",
|
|
279
|
-
"name": "update",
|
|
280
|
-
"privacy": "public",
|
|
281
|
-
"return": {
|
|
282
|
-
"type": {
|
|
283
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
"parameters": [
|
|
287
|
-
{
|
|
288
|
-
"name": "id",
|
|
289
|
-
"type": {
|
|
290
|
-
"text": "string"
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"name": "newValue",
|
|
295
|
-
"type": {
|
|
296
|
-
"text": "Omit<Partial<T>, 'id'>"
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"kind": "method",
|
|
303
|
-
"name": "delete",
|
|
304
|
-
"privacy": "public",
|
|
305
|
-
"return": {
|
|
306
|
-
"type": {
|
|
307
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"parameters": [
|
|
311
|
-
{
|
|
312
|
-
"name": "id",
|
|
313
|
-
"type": {
|
|
314
|
-
"text": "string"
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
]
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"kind": "method",
|
|
321
|
-
"name": "visit",
|
|
322
|
-
"privacy": "public",
|
|
323
|
-
"return": {
|
|
324
|
-
"type": {
|
|
325
|
-
"text": "Promise<void>"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
"parameters": [
|
|
329
|
-
{
|
|
330
|
-
"name": "visitor",
|
|
331
|
-
"type": {
|
|
332
|
-
"text": "(record: T) => void"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"kind": "method",
|
|
339
|
-
"name": "onBeforeUpdate",
|
|
340
|
-
"privacy": "public",
|
|
341
|
-
"return": {
|
|
342
|
-
"type": {
|
|
343
|
-
"text": "() => void"
|
|
344
|
-
}
|
|
239
|
+
"text": "HTMLElement"
|
|
345
240
|
},
|
|
346
|
-
"
|
|
347
|
-
{
|
|
348
|
-
"name": "listener",
|
|
349
|
-
"type": {
|
|
350
|
-
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
]
|
|
241
|
+
"description": "The starting HTML element"
|
|
354
242
|
},
|
|
355
243
|
{
|
|
356
|
-
"
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
"return": {
|
|
360
|
-
"type": {
|
|
361
|
-
"text": "() => void"
|
|
362
|
-
}
|
|
244
|
+
"name": "fallbackPrefix",
|
|
245
|
+
"type": {
|
|
246
|
+
"text": "string"
|
|
363
247
|
},
|
|
364
|
-
"
|
|
365
|
-
{
|
|
366
|
-
"name": "listener",
|
|
367
|
-
"type": {
|
|
368
|
-
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
]
|
|
248
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
372
249
|
}
|
|
373
|
-
]
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
{
|
|
378
|
-
"kind": "js",
|
|
379
|
-
"name": "InMemoryDatabase",
|
|
380
|
-
"declaration": {
|
|
381
|
-
"name": "InMemoryDatabase",
|
|
382
|
-
"module": "src/data/inMemoryDatabase.ts"
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
]
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"kind": "javascript-module",
|
|
389
|
-
"path": "src/data/index.ts",
|
|
390
|
-
"declarations": [],
|
|
391
|
-
"exports": [
|
|
392
|
-
{
|
|
393
|
-
"kind": "js",
|
|
394
|
-
"name": "*",
|
|
395
|
-
"declaration": {
|
|
396
|
-
"name": "*",
|
|
397
|
-
"package": "./inMemoryDatabase"
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"kind": "javascript-module",
|
|
404
|
-
"path": "src/decorators/index.ts",
|
|
405
|
-
"declarations": [],
|
|
406
|
-
"exports": [
|
|
407
|
-
{
|
|
408
|
-
"kind": "js",
|
|
409
|
-
"name": "*",
|
|
410
|
-
"declaration": {
|
|
411
|
-
"name": "*",
|
|
412
|
-
"package": "./renderOnChange"
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
]
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"kind": "javascript-module",
|
|
419
|
-
"path": "src/decorators/renderOnChange.ts",
|
|
420
|
-
"declarations": [
|
|
250
|
+
],
|
|
251
|
+
"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.",
|
|
252
|
+
"privacy": "public"
|
|
253
|
+
},
|
|
421
254
|
{
|
|
422
255
|
"kind": "function",
|
|
423
|
-
"name": "
|
|
256
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
257
|
+
"return": {
|
|
258
|
+
"type": {
|
|
259
|
+
"text": ""
|
|
260
|
+
}
|
|
261
|
+
},
|
|
424
262
|
"parameters": [
|
|
425
263
|
{
|
|
426
|
-
"name": "
|
|
264
|
+
"name": "element",
|
|
427
265
|
"type": {
|
|
428
|
-
"text": "
|
|
266
|
+
"text": "HTMLElement"
|
|
429
267
|
},
|
|
430
|
-
"description": "The
|
|
268
|
+
"description": "The starting HTML element"
|
|
431
269
|
},
|
|
432
270
|
{
|
|
433
|
-
"name": "
|
|
271
|
+
"name": "fallbackPrefix",
|
|
434
272
|
"type": {
|
|
435
273
|
"text": "string"
|
|
436
274
|
},
|
|
437
|
-
"description": "The
|
|
275
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
438
276
|
}
|
|
439
277
|
],
|
|
440
|
-
"description": "
|
|
278
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
441
279
|
"privacy": "public"
|
|
442
280
|
}
|
|
443
281
|
],
|
|
444
282
|
"exports": [
|
|
445
283
|
{
|
|
446
284
|
"kind": "js",
|
|
447
|
-
"name": "
|
|
285
|
+
"name": "assureDesignSystem",
|
|
448
286
|
"declaration": {
|
|
449
|
-
"name": "
|
|
450
|
-
"module": "src/
|
|
287
|
+
"name": "assureDesignSystem",
|
|
288
|
+
"module": "src/design-system/design-system.ts"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"kind": "js",
|
|
293
|
+
"name": "getCurrentDesignSystem",
|
|
294
|
+
"declaration": {
|
|
295
|
+
"name": "getCurrentDesignSystem",
|
|
296
|
+
"module": "src/design-system/design-system.ts"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"kind": "js",
|
|
301
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
302
|
+
"declaration": {
|
|
303
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
304
|
+
"module": "src/design-system/design-system.ts"
|
|
451
305
|
}
|
|
452
306
|
}
|
|
453
307
|
]
|
|
454
308
|
},
|
|
455
309
|
{
|
|
456
310
|
"kind": "javascript-module",
|
|
457
|
-
"path": "src/
|
|
311
|
+
"path": "src/design-system/index.ts",
|
|
458
312
|
"declarations": [],
|
|
459
313
|
"exports": [
|
|
460
314
|
{
|
|
@@ -462,14 +316,14 @@
|
|
|
462
316
|
"name": "*",
|
|
463
317
|
"declaration": {
|
|
464
318
|
"name": "*",
|
|
465
|
-
"package": "./
|
|
319
|
+
"package": "./design-system"
|
|
466
320
|
}
|
|
467
321
|
}
|
|
468
322
|
]
|
|
469
323
|
},
|
|
470
324
|
{
|
|
471
325
|
"kind": "javascript-module",
|
|
472
|
-
"path": "src/
|
|
326
|
+
"path": "src/encoding/index.ts",
|
|
473
327
|
"declarations": [],
|
|
474
328
|
"exports": [
|
|
475
329
|
{
|
|
@@ -477,15 +331,7 @@
|
|
|
477
331
|
"name": "*",
|
|
478
332
|
"declaration": {
|
|
479
333
|
"name": "*",
|
|
480
|
-
"package": "./
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"kind": "js",
|
|
485
|
-
"name": "*",
|
|
486
|
-
"declaration": {
|
|
487
|
-
"name": "*",
|
|
488
|
-
"package": "./when-else"
|
|
334
|
+
"package": "./base64"
|
|
489
335
|
}
|
|
490
336
|
}
|
|
491
337
|
]
|
|
@@ -990,168 +836,381 @@
|
|
|
990
836
|
},
|
|
991
837
|
{
|
|
992
838
|
"kind": "method",
|
|
993
|
-
"name": "set",
|
|
839
|
+
"name": "set",
|
|
840
|
+
"return": {
|
|
841
|
+
"type": {
|
|
842
|
+
"text": "void"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"parameters": [
|
|
846
|
+
{
|
|
847
|
+
"name": "key",
|
|
848
|
+
"type": {
|
|
849
|
+
"text": "keyof TErrorDetailMap"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "error",
|
|
854
|
+
"type": {
|
|
855
|
+
"text": "Error"
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"description": "{@inheritDoc ErrorMap.set}"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"kind": "method",
|
|
863
|
+
"name": "get",
|
|
864
|
+
"return": {
|
|
865
|
+
"type": {
|
|
866
|
+
"text": ""
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"parameters": [
|
|
870
|
+
{
|
|
871
|
+
"name": "key",
|
|
872
|
+
"type": {
|
|
873
|
+
"text": "keyof TErrorDetailMap"
|
|
874
|
+
},
|
|
875
|
+
"description": "The key."
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"description": "Get an error by key.",
|
|
879
|
+
"privacy": "public"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"kind": "method",
|
|
883
|
+
"name": "has",
|
|
884
|
+
"return": {
|
|
885
|
+
"type": {
|
|
886
|
+
"text": ""
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"parameters": [
|
|
890
|
+
{
|
|
891
|
+
"name": "key",
|
|
892
|
+
"type": {
|
|
893
|
+
"text": "keyof TErrorDetailMap"
|
|
894
|
+
},
|
|
895
|
+
"description": "The key."
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"description": "Has an error for key.",
|
|
899
|
+
"privacy": "public"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"kind": "method",
|
|
903
|
+
"name": "delete",
|
|
904
|
+
"return": {
|
|
905
|
+
"type": {
|
|
906
|
+
"text": ""
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"parameters": [
|
|
910
|
+
{
|
|
911
|
+
"name": "key",
|
|
912
|
+
"type": {
|
|
913
|
+
"text": "keyof TErrorDetailMap"
|
|
914
|
+
},
|
|
915
|
+
"description": "The key."
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"description": "Delete an error.",
|
|
919
|
+
"privacy": "public"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"kind": "method",
|
|
923
|
+
"name": "clear",
|
|
924
|
+
"description": "Clear errors.",
|
|
925
|
+
"privacy": "public"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"kind": "field",
|
|
929
|
+
"name": "size",
|
|
930
|
+
"type": {
|
|
931
|
+
"text": "number"
|
|
932
|
+
},
|
|
933
|
+
"description": "The size of the error map.",
|
|
934
|
+
"return": {
|
|
935
|
+
"type": {
|
|
936
|
+
"text": ""
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"privacy": "public",
|
|
940
|
+
"readonly": true
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "method",
|
|
944
|
+
"name": "values",
|
|
945
|
+
"privacy": "public"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"kind": "field",
|
|
949
|
+
"name": "messages",
|
|
950
|
+
"type": {
|
|
951
|
+
"text": "string"
|
|
952
|
+
},
|
|
953
|
+
"description": "{@inheritDoc ErrorMap.messages}",
|
|
954
|
+
"readonly": true
|
|
955
|
+
}
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "function",
|
|
960
|
+
"name": "createErrorMap",
|
|
961
|
+
"return": {
|
|
962
|
+
"type": {
|
|
963
|
+
"text": ""
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"parameters": [
|
|
967
|
+
{
|
|
968
|
+
"name": "logger",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "ErrorMapLogger"
|
|
971
|
+
},
|
|
972
|
+
"description": "A logger error method reference."
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
"description": "A factory to create the error map.",
|
|
976
|
+
"privacy": "public"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"exports": [
|
|
980
|
+
{
|
|
981
|
+
"kind": "js",
|
|
982
|
+
"name": "DefaultErrorMap",
|
|
983
|
+
"declaration": {
|
|
984
|
+
"name": "DefaultErrorMap",
|
|
985
|
+
"module": "src/error/errorMap.ts"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"kind": "js",
|
|
990
|
+
"name": "createErrorMap",
|
|
991
|
+
"declaration": {
|
|
992
|
+
"name": "createErrorMap",
|
|
993
|
+
"module": "src/error/errorMap.ts"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
]
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"kind": "javascript-module",
|
|
1000
|
+
"path": "src/error/index.ts",
|
|
1001
|
+
"declarations": [],
|
|
1002
|
+
"exports": [
|
|
1003
|
+
{
|
|
1004
|
+
"kind": "js",
|
|
1005
|
+
"name": "*",
|
|
1006
|
+
"declaration": {
|
|
1007
|
+
"name": "*",
|
|
1008
|
+
"package": "./errorMap"
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"kind": "javascript-module",
|
|
1015
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
1016
|
+
"declarations": [
|
|
1017
|
+
{
|
|
1018
|
+
"kind": "class",
|
|
1019
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
1020
|
+
"name": "InMemoryDatabase",
|
|
1021
|
+
"members": [
|
|
1022
|
+
{
|
|
1023
|
+
"kind": "field",
|
|
1024
|
+
"name": "isWorking",
|
|
1025
|
+
"type": {
|
|
1026
|
+
"text": "boolean"
|
|
1027
|
+
},
|
|
1028
|
+
"privacy": "public",
|
|
1029
|
+
"default": "false"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "field",
|
|
1033
|
+
"name": "records",
|
|
1034
|
+
"type": {
|
|
1035
|
+
"text": "Record<string, T>"
|
|
1036
|
+
},
|
|
1037
|
+
"privacy": "private",
|
|
1038
|
+
"default": "{}"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"kind": "field",
|
|
1042
|
+
"name": "beforeUpdateListeners",
|
|
1043
|
+
"privacy": "private"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"kind": "field",
|
|
1047
|
+
"name": "afterUpdateListeners",
|
|
1048
|
+
"privacy": "private"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"kind": "method",
|
|
1052
|
+
"name": "create",
|
|
1053
|
+
"privacy": "public",
|
|
1054
|
+
"return": {
|
|
1055
|
+
"type": {
|
|
1056
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"parameters": [
|
|
1060
|
+
{
|
|
1061
|
+
"name": "newValue",
|
|
1062
|
+
"type": {
|
|
1063
|
+
"text": "Omit<T, 'id'>"
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
]
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"kind": "method",
|
|
1070
|
+
"name": "read",
|
|
1071
|
+
"privacy": "public",
|
|
1072
|
+
"return": {
|
|
1073
|
+
"type": {
|
|
1074
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"parameters": [
|
|
1078
|
+
{
|
|
1079
|
+
"name": "id",
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "string"
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
]
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"kind": "method",
|
|
1088
|
+
"name": "update",
|
|
1089
|
+
"privacy": "public",
|
|
994
1090
|
"return": {
|
|
995
1091
|
"type": {
|
|
996
|
-
"text": "
|
|
1092
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
997
1093
|
}
|
|
998
1094
|
},
|
|
999
1095
|
"parameters": [
|
|
1000
1096
|
{
|
|
1001
|
-
"name": "
|
|
1097
|
+
"name": "id",
|
|
1002
1098
|
"type": {
|
|
1003
|
-
"text": "
|
|
1099
|
+
"text": "string"
|
|
1004
1100
|
}
|
|
1005
1101
|
},
|
|
1006
1102
|
{
|
|
1007
|
-
"name": "
|
|
1103
|
+
"name": "newValue",
|
|
1008
1104
|
"type": {
|
|
1009
|
-
"text": "
|
|
1105
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
1010
1106
|
}
|
|
1011
1107
|
}
|
|
1012
|
-
]
|
|
1013
|
-
"description": "{@inheritDoc ErrorMap.set}"
|
|
1108
|
+
]
|
|
1014
1109
|
},
|
|
1015
1110
|
{
|
|
1016
1111
|
"kind": "method",
|
|
1017
|
-
"name": "
|
|
1112
|
+
"name": "delete",
|
|
1113
|
+
"privacy": "public",
|
|
1018
1114
|
"return": {
|
|
1019
1115
|
"type": {
|
|
1020
|
-
"text": ""
|
|
1116
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
1021
1117
|
}
|
|
1022
1118
|
},
|
|
1023
1119
|
"parameters": [
|
|
1024
1120
|
{
|
|
1025
|
-
"name": "
|
|
1121
|
+
"name": "id",
|
|
1026
1122
|
"type": {
|
|
1027
|
-
"text": "
|
|
1028
|
-
}
|
|
1029
|
-
"description": "The key."
|
|
1123
|
+
"text": "string"
|
|
1124
|
+
}
|
|
1030
1125
|
}
|
|
1031
|
-
]
|
|
1032
|
-
"description": "Get an error by key.",
|
|
1033
|
-
"privacy": "public"
|
|
1126
|
+
]
|
|
1034
1127
|
},
|
|
1035
1128
|
{
|
|
1036
1129
|
"kind": "method",
|
|
1037
|
-
"name": "
|
|
1130
|
+
"name": "visit",
|
|
1131
|
+
"privacy": "public",
|
|
1038
1132
|
"return": {
|
|
1039
1133
|
"type": {
|
|
1040
|
-
"text": ""
|
|
1134
|
+
"text": "Promise<void>"
|
|
1041
1135
|
}
|
|
1042
1136
|
},
|
|
1043
1137
|
"parameters": [
|
|
1044
1138
|
{
|
|
1045
|
-
"name": "
|
|
1139
|
+
"name": "visitor",
|
|
1046
1140
|
"type": {
|
|
1047
|
-
"text": "
|
|
1048
|
-
}
|
|
1049
|
-
"description": "The key."
|
|
1141
|
+
"text": "(record: T) => void"
|
|
1142
|
+
}
|
|
1050
1143
|
}
|
|
1051
|
-
]
|
|
1052
|
-
"description": "Has an error for key.",
|
|
1053
|
-
"privacy": "public"
|
|
1144
|
+
]
|
|
1054
1145
|
},
|
|
1055
1146
|
{
|
|
1056
1147
|
"kind": "method",
|
|
1057
|
-
"name": "
|
|
1148
|
+
"name": "onBeforeUpdate",
|
|
1149
|
+
"privacy": "public",
|
|
1058
1150
|
"return": {
|
|
1059
1151
|
"type": {
|
|
1060
|
-
"text": ""
|
|
1152
|
+
"text": "() => void"
|
|
1061
1153
|
}
|
|
1062
1154
|
},
|
|
1063
1155
|
"parameters": [
|
|
1064
1156
|
{
|
|
1065
|
-
"name": "
|
|
1157
|
+
"name": "listener",
|
|
1066
1158
|
"type": {
|
|
1067
|
-
"text": "
|
|
1068
|
-
}
|
|
1069
|
-
"description": "The key."
|
|
1159
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
1160
|
+
}
|
|
1070
1161
|
}
|
|
1071
|
-
]
|
|
1072
|
-
"description": "Delete an error.",
|
|
1073
|
-
"privacy": "public"
|
|
1162
|
+
]
|
|
1074
1163
|
},
|
|
1075
1164
|
{
|
|
1076
1165
|
"kind": "method",
|
|
1077
|
-
"name": "
|
|
1078
|
-
"
|
|
1079
|
-
"privacy": "public"
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
"kind": "field",
|
|
1083
|
-
"name": "size",
|
|
1084
|
-
"type": {
|
|
1085
|
-
"text": "number"
|
|
1086
|
-
},
|
|
1087
|
-
"description": "The size of the error map.",
|
|
1166
|
+
"name": "onAfterUpdate",
|
|
1167
|
+
"privacy": "public",
|
|
1088
1168
|
"return": {
|
|
1089
1169
|
"type": {
|
|
1090
|
-
"text": ""
|
|
1170
|
+
"text": "() => void"
|
|
1091
1171
|
}
|
|
1092
1172
|
},
|
|
1093
|
-
"
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
{
|
|
1102
|
-
"kind": "field",
|
|
1103
|
-
"name": "messages",
|
|
1104
|
-
"type": {
|
|
1105
|
-
"text": "string"
|
|
1106
|
-
},
|
|
1107
|
-
"description": "{@inheritDoc ErrorMap.messages}",
|
|
1108
|
-
"readonly": true
|
|
1173
|
+
"parameters": [
|
|
1174
|
+
{
|
|
1175
|
+
"name": "listener",
|
|
1176
|
+
"type": {
|
|
1177
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1109
1181
|
}
|
|
1110
1182
|
]
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
"kind": "function",
|
|
1114
|
-
"name": "createErrorMap",
|
|
1115
|
-
"return": {
|
|
1116
|
-
"type": {
|
|
1117
|
-
"text": ""
|
|
1118
|
-
}
|
|
1119
|
-
},
|
|
1120
|
-
"parameters": [
|
|
1121
|
-
{
|
|
1122
|
-
"name": "logger",
|
|
1123
|
-
"type": {
|
|
1124
|
-
"text": "ErrorMapLogger"
|
|
1125
|
-
},
|
|
1126
|
-
"description": "A logger error method reference."
|
|
1127
|
-
}
|
|
1128
|
-
],
|
|
1129
|
-
"description": "A factory to create the error map.",
|
|
1130
|
-
"privacy": "public"
|
|
1131
1183
|
}
|
|
1132
1184
|
],
|
|
1133
1185
|
"exports": [
|
|
1134
1186
|
{
|
|
1135
1187
|
"kind": "js",
|
|
1136
|
-
"name": "
|
|
1188
|
+
"name": "InMemoryDatabase",
|
|
1137
1189
|
"declaration": {
|
|
1138
|
-
"name": "
|
|
1139
|
-
"module": "src/
|
|
1190
|
+
"name": "InMemoryDatabase",
|
|
1191
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
1140
1192
|
}
|
|
1141
|
-
}
|
|
1193
|
+
}
|
|
1194
|
+
]
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"kind": "javascript-module",
|
|
1198
|
+
"path": "src/data/index.ts",
|
|
1199
|
+
"declarations": [],
|
|
1200
|
+
"exports": [
|
|
1142
1201
|
{
|
|
1143
1202
|
"kind": "js",
|
|
1144
|
-
"name": "
|
|
1203
|
+
"name": "*",
|
|
1145
1204
|
"declaration": {
|
|
1146
|
-
"name": "
|
|
1147
|
-
"
|
|
1205
|
+
"name": "*",
|
|
1206
|
+
"package": "./inMemoryDatabase"
|
|
1148
1207
|
}
|
|
1149
1208
|
}
|
|
1150
1209
|
]
|
|
1151
1210
|
},
|
|
1152
1211
|
{
|
|
1153
1212
|
"kind": "javascript-module",
|
|
1154
|
-
"path": "src/
|
|
1213
|
+
"path": "src/decorators/index.ts",
|
|
1155
1214
|
"declarations": [],
|
|
1156
1215
|
"exports": [
|
|
1157
1216
|
{
|
|
@@ -1159,119 +1218,52 @@
|
|
|
1159
1218
|
"name": "*",
|
|
1160
1219
|
"declaration": {
|
|
1161
1220
|
"name": "*",
|
|
1162
|
-
"package": "./
|
|
1221
|
+
"package": "./renderOnChange"
|
|
1163
1222
|
}
|
|
1164
1223
|
}
|
|
1165
1224
|
]
|
|
1166
1225
|
},
|
|
1167
1226
|
{
|
|
1168
1227
|
"kind": "javascript-module",
|
|
1169
|
-
"path": "src/
|
|
1228
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
1170
1229
|
"declarations": [
|
|
1171
1230
|
{
|
|
1172
1231
|
"kind": "function",
|
|
1173
|
-
"name": "
|
|
1174
|
-
"return": {
|
|
1175
|
-
"type": {
|
|
1176
|
-
"text": "DesignSystemModule"
|
|
1177
|
-
}
|
|
1178
|
-
},
|
|
1179
|
-
"parameters": [
|
|
1180
|
-
{
|
|
1181
|
-
"name": "module",
|
|
1182
|
-
"type": {
|
|
1183
|
-
"text": "DesignSystemModule"
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
],
|
|
1187
|
-
"description": "assureDesignSystem.",
|
|
1188
|
-
"privacy": "public"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"kind": "function",
|
|
1192
|
-
"name": "getCurrentDesignSystem",
|
|
1193
|
-
"return": {
|
|
1194
|
-
"type": {
|
|
1195
|
-
"text": ""
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
"parameters": [
|
|
1199
|
-
{
|
|
1200
|
-
"name": "element",
|
|
1201
|
-
"type": {
|
|
1202
|
-
"text": "HTMLElement"
|
|
1203
|
-
},
|
|
1204
|
-
"description": "The starting HTML element"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"name": "fallbackPrefix",
|
|
1208
|
-
"type": {
|
|
1209
|
-
"text": "string"
|
|
1210
|
-
},
|
|
1211
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
1212
|
-
}
|
|
1213
|
-
],
|
|
1214
|
-
"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.",
|
|
1215
|
-
"privacy": "public"
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
"kind": "function",
|
|
1219
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
1220
|
-
"return": {
|
|
1221
|
-
"type": {
|
|
1222
|
-
"text": ""
|
|
1223
|
-
}
|
|
1224
|
-
},
|
|
1232
|
+
"name": "renderOnChange",
|
|
1225
1233
|
"parameters": [
|
|
1226
1234
|
{
|
|
1227
|
-
"name": "
|
|
1235
|
+
"name": "target",
|
|
1228
1236
|
"type": {
|
|
1229
|
-
"text": "
|
|
1237
|
+
"text": "FASTElement & { render(): void }"
|
|
1230
1238
|
},
|
|
1231
|
-
"description": "The
|
|
1239
|
+
"description": "The target to define the property change handler on."
|
|
1232
1240
|
},
|
|
1233
1241
|
{
|
|
1234
|
-
"name": "
|
|
1242
|
+
"name": "name",
|
|
1235
1243
|
"type": {
|
|
1236
1244
|
"text": "string"
|
|
1237
1245
|
},
|
|
1238
|
-
"description": "The
|
|
1246
|
+
"description": "The property name."
|
|
1239
1247
|
}
|
|
1240
1248
|
],
|
|
1241
|
-
"description": "
|
|
1249
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1242
1250
|
"privacy": "public"
|
|
1243
1251
|
}
|
|
1244
1252
|
],
|
|
1245
1253
|
"exports": [
|
|
1246
1254
|
{
|
|
1247
1255
|
"kind": "js",
|
|
1248
|
-
"name": "
|
|
1249
|
-
"declaration": {
|
|
1250
|
-
"name": "assureDesignSystem",
|
|
1251
|
-
"module": "src/design-system/design-system.ts"
|
|
1252
|
-
}
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"kind": "js",
|
|
1256
|
-
"name": "getCurrentDesignSystem",
|
|
1257
|
-
"declaration": {
|
|
1258
|
-
"name": "getCurrentDesignSystem",
|
|
1259
|
-
"module": "src/design-system/design-system.ts"
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"kind": "js",
|
|
1264
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
1256
|
+
"name": "renderOnChange",
|
|
1265
1257
|
"declaration": {
|
|
1266
|
-
"name": "
|
|
1267
|
-
"module": "src/
|
|
1258
|
+
"name": "renderOnChange",
|
|
1259
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
1268
1260
|
}
|
|
1269
1261
|
}
|
|
1270
1262
|
]
|
|
1271
1263
|
},
|
|
1272
1264
|
{
|
|
1273
1265
|
"kind": "javascript-module",
|
|
1274
|
-
"path": "src/
|
|
1266
|
+
"path": "src/directives/index.ts",
|
|
1275
1267
|
"declarations": [],
|
|
1276
1268
|
"exports": [
|
|
1277
1269
|
{
|
|
@@ -1279,7 +1271,15 @@
|
|
|
1279
1271
|
"name": "*",
|
|
1280
1272
|
"declaration": {
|
|
1281
1273
|
"name": "*",
|
|
1282
|
-
"package": "./
|
|
1274
|
+
"package": "./sync"
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"kind": "js",
|
|
1279
|
+
"name": "*",
|
|
1280
|
+
"declaration": {
|
|
1281
|
+
"name": "*",
|
|
1282
|
+
"package": "./when-else"
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
1285
|
]
|
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.401.
|
|
4
|
+
"version": "14.401.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": "14.401.
|
|
33
|
-
"@genesislcap/genx": "14.401.
|
|
34
|
-
"@genesislcap/rollup-builder": "14.401.
|
|
35
|
-
"@genesislcap/ts-builder": "14.401.
|
|
36
|
-
"@genesislcap/uvu-playwright-builder": "14.401.
|
|
37
|
-
"@genesislcap/vite-builder": "14.401.
|
|
38
|
-
"@genesislcap/webpack-builder": "14.401.
|
|
32
|
+
"@genesislcap/foundation-testing": "14.401.1",
|
|
33
|
+
"@genesislcap/genx": "14.401.1",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.401.1",
|
|
35
|
+
"@genesislcap/ts-builder": "14.401.1",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.401.1",
|
|
37
|
+
"@genesislcap/vite-builder": "14.401.1",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.401.1",
|
|
39
39
|
"@types/json-schema": "^7.0.11"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "14.401.
|
|
43
|
-
"@genesislcap/foundation-logger": "14.401.
|
|
42
|
+
"@genesislcap/expression-builder": "14.401.1",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.401.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": "
|
|
61
|
+
"gitHead": "67e1a22a530940a9656775a0af0062847f407119"
|
|
62
62
|
}
|