@genesislcap/foundation-utils 14.428.0 → 14.428.1-alpha-035cbdd.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 +334 -334
- package/package.json +11 -11
|
@@ -252,251 +252,202 @@
|
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
"kind": "javascript-module",
|
|
255
|
-
"path": "src/
|
|
255
|
+
"path": "src/design-system/design-system.ts",
|
|
256
256
|
"declarations": [
|
|
257
257
|
{
|
|
258
|
-
"kind": "
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
|
|
258
|
+
"kind": "function",
|
|
259
|
+
"name": "assureDesignSystem",
|
|
260
|
+
"return": {
|
|
261
|
+
"type": {
|
|
262
|
+
"text": "DesignSystemModule"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"parameters": [
|
|
262
266
|
{
|
|
263
|
-
"
|
|
264
|
-
"name": "isWorking",
|
|
267
|
+
"name": "module",
|
|
265
268
|
"type": {
|
|
266
|
-
"text": "
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
"text": "DesignSystemModule"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"description": "assureDesignSystem.",
|
|
274
|
+
"privacy": "public"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "function",
|
|
278
|
+
"name": "getCurrentDesignSystem",
|
|
279
|
+
"return": {
|
|
280
|
+
"type": {
|
|
281
|
+
"text": ""
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"parameters": [
|
|
271
285
|
{
|
|
272
|
-
"
|
|
273
|
-
"name": "records",
|
|
286
|
+
"name": "element",
|
|
274
287
|
"type": {
|
|
275
|
-
"text": "
|
|
276
|
-
},
|
|
277
|
-
"privacy": "private",
|
|
278
|
-
"default": "{}"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"kind": "field",
|
|
282
|
-
"name": "beforeUpdateListeners",
|
|
283
|
-
"privacy": "private"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"kind": "field",
|
|
287
|
-
"name": "afterUpdateListeners",
|
|
288
|
-
"privacy": "private"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"kind": "method",
|
|
292
|
-
"name": "create",
|
|
293
|
-
"privacy": "public",
|
|
294
|
-
"return": {
|
|
295
|
-
"type": {
|
|
296
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
"parameters": [
|
|
300
|
-
{
|
|
301
|
-
"name": "newValue",
|
|
302
|
-
"type": {
|
|
303
|
-
"text": "Omit<T, 'id'>"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"kind": "method",
|
|
310
|
-
"name": "read",
|
|
311
|
-
"privacy": "public",
|
|
312
|
-
"return": {
|
|
313
|
-
"type": {
|
|
314
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"parameters": [
|
|
318
|
-
{
|
|
319
|
-
"name": "id",
|
|
320
|
-
"type": {
|
|
321
|
-
"text": "string"
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"kind": "method",
|
|
328
|
-
"name": "update",
|
|
329
|
-
"privacy": "public",
|
|
330
|
-
"return": {
|
|
331
|
-
"type": {
|
|
332
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"parameters": [
|
|
336
|
-
{
|
|
337
|
-
"name": "id",
|
|
338
|
-
"type": {
|
|
339
|
-
"text": "string"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"name": "newValue",
|
|
344
|
-
"type": {
|
|
345
|
-
"text": "Omit<Partial<T>, 'id'>"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"kind": "method",
|
|
352
|
-
"name": "delete",
|
|
353
|
-
"privacy": "public",
|
|
354
|
-
"return": {
|
|
355
|
-
"type": {
|
|
356
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
357
|
-
}
|
|
288
|
+
"text": "HTMLElement"
|
|
358
289
|
},
|
|
359
|
-
"
|
|
360
|
-
{
|
|
361
|
-
"name": "id",
|
|
362
|
-
"type": {
|
|
363
|
-
"text": "string"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
]
|
|
290
|
+
"description": "The starting HTML element"
|
|
367
291
|
},
|
|
368
292
|
{
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
"return": {
|
|
373
|
-
"type": {
|
|
374
|
-
"text": "Promise<void>"
|
|
375
|
-
}
|
|
293
|
+
"name": "fallbackPrefix",
|
|
294
|
+
"type": {
|
|
295
|
+
"text": "string"
|
|
376
296
|
},
|
|
377
|
-
"
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
297
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"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.",
|
|
301
|
+
"privacy": "public"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "function",
|
|
305
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
306
|
+
"return": {
|
|
307
|
+
"type": {
|
|
308
|
+
"text": ""
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"parameters": [
|
|
386
312
|
{
|
|
387
|
-
"
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
"return": {
|
|
391
|
-
"type": {
|
|
392
|
-
"text": "() => void"
|
|
393
|
-
}
|
|
313
|
+
"name": "element",
|
|
314
|
+
"type": {
|
|
315
|
+
"text": "HTMLElement"
|
|
394
316
|
},
|
|
395
|
-
"
|
|
396
|
-
{
|
|
397
|
-
"name": "listener",
|
|
398
|
-
"type": {
|
|
399
|
-
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
]
|
|
317
|
+
"description": "The starting HTML element"
|
|
403
318
|
},
|
|
404
319
|
{
|
|
405
|
-
"
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
"return": {
|
|
409
|
-
"type": {
|
|
410
|
-
"text": "() => void"
|
|
411
|
-
}
|
|
320
|
+
"name": "fallbackPrefix",
|
|
321
|
+
"type": {
|
|
322
|
+
"text": "string"
|
|
412
323
|
},
|
|
413
|
-
"
|
|
414
|
-
{
|
|
415
|
-
"name": "listener",
|
|
416
|
-
"type": {
|
|
417
|
-
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
]
|
|
324
|
+
"description": "The prefix to fallback to if the provider is not available"
|
|
421
325
|
}
|
|
422
|
-
]
|
|
326
|
+
],
|
|
327
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
|
328
|
+
"privacy": "public"
|
|
423
329
|
}
|
|
424
330
|
],
|
|
425
331
|
"exports": [
|
|
426
332
|
{
|
|
427
333
|
"kind": "js",
|
|
428
|
-
"name": "
|
|
334
|
+
"name": "assureDesignSystem",
|
|
429
335
|
"declaration": {
|
|
430
|
-
"name": "
|
|
431
|
-
"module": "src/
|
|
336
|
+
"name": "assureDesignSystem",
|
|
337
|
+
"module": "src/design-system/design-system.ts"
|
|
432
338
|
}
|
|
433
|
-
}
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"kind": "javascript-module",
|
|
438
|
-
"path": "src/data/index.ts",
|
|
439
|
-
"declarations": [],
|
|
440
|
-
"exports": [
|
|
339
|
+
},
|
|
441
340
|
{
|
|
442
341
|
"kind": "js",
|
|
443
|
-
"name": "
|
|
342
|
+
"name": "getCurrentDesignSystem",
|
|
444
343
|
"declaration": {
|
|
445
|
-
"name": "
|
|
446
|
-
"
|
|
344
|
+
"name": "getCurrentDesignSystem",
|
|
345
|
+
"module": "src/design-system/design-system.ts"
|
|
447
346
|
}
|
|
448
|
-
}
|
|
449
|
-
]
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"kind": "javascript-module",
|
|
453
|
-
"path": "src/decorators/index.ts",
|
|
454
|
-
"declarations": [],
|
|
455
|
-
"exports": [
|
|
347
|
+
},
|
|
456
348
|
{
|
|
457
349
|
"kind": "js",
|
|
458
|
-
"name": "
|
|
350
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
459
351
|
"declaration": {
|
|
460
|
-
"name": "
|
|
461
|
-
"
|
|
352
|
+
"name": "getCurrentDesignSystemPrefix",
|
|
353
|
+
"module": "src/design-system/design-system.ts"
|
|
462
354
|
}
|
|
463
355
|
}
|
|
464
356
|
]
|
|
465
357
|
},
|
|
466
358
|
{
|
|
467
359
|
"kind": "javascript-module",
|
|
468
|
-
"path": "src/
|
|
360
|
+
"path": "src/design-system/editable-elements.ts",
|
|
469
361
|
"declarations": [
|
|
362
|
+
{
|
|
363
|
+
"kind": "variable",
|
|
364
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
|
|
367
|
+
},
|
|
368
|
+
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
369
|
+
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"kind": "variable",
|
|
373
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
|
|
376
|
+
},
|
|
377
|
+
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
378
|
+
"description": "Design-system specific editable host selectors."
|
|
379
|
+
},
|
|
470
380
|
{
|
|
471
381
|
"kind": "function",
|
|
472
|
-
"name": "
|
|
382
|
+
"name": "buildEditableElementSelector",
|
|
383
|
+
"return": {
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
473
388
|
"parameters": [
|
|
474
389
|
{
|
|
475
|
-
"name": "
|
|
390
|
+
"name": "designSystems",
|
|
476
391
|
"type": {
|
|
477
|
-
"text": "
|
|
478
|
-
}
|
|
479
|
-
"description": "The target to define the property change handler on."
|
|
392
|
+
"text": "readonly EditableDesignSystemPrefix[]"
|
|
393
|
+
}
|
|
480
394
|
},
|
|
481
395
|
{
|
|
482
|
-
"name": "
|
|
396
|
+
"name": "customEditableSelectors",
|
|
397
|
+
"default": "[]",
|
|
483
398
|
"type": {
|
|
484
|
-
"text": "string"
|
|
485
|
-
}
|
|
486
|
-
"description": "The property name."
|
|
399
|
+
"text": "readonly string[]"
|
|
400
|
+
}
|
|
487
401
|
}
|
|
488
|
-
]
|
|
489
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
490
|
-
"privacy": "public"
|
|
402
|
+
]
|
|
491
403
|
}
|
|
492
404
|
],
|
|
493
405
|
"exports": [
|
|
494
406
|
{
|
|
495
407
|
"kind": "js",
|
|
496
|
-
"name": "
|
|
408
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
497
409
|
"declaration": {
|
|
498
|
-
"name": "
|
|
499
|
-
"module": "src/
|
|
410
|
+
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
411
|
+
"module": "src/design-system/editable-elements.ts"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"kind": "js",
|
|
416
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
417
|
+
"declaration": {
|
|
418
|
+
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
419
|
+
"module": "src/design-system/editable-elements.ts"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "js",
|
|
424
|
+
"name": "buildEditableElementSelector",
|
|
425
|
+
"declaration": {
|
|
426
|
+
"name": "buildEditableElementSelector",
|
|
427
|
+
"module": "src/design-system/editable-elements.ts"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"kind": "javascript-module",
|
|
434
|
+
"path": "src/design-system/index.ts",
|
|
435
|
+
"declarations": [],
|
|
436
|
+
"exports": [
|
|
437
|
+
{
|
|
438
|
+
"kind": "js",
|
|
439
|
+
"name": "*",
|
|
440
|
+
"declaration": {
|
|
441
|
+
"name": "*",
|
|
442
|
+
"package": "./design-system"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "js",
|
|
447
|
+
"name": "*",
|
|
448
|
+
"declaration": {
|
|
449
|
+
"name": "*",
|
|
450
|
+
"package": "./editable-elements"
|
|
500
451
|
}
|
|
501
452
|
}
|
|
502
453
|
]
|
|
@@ -1016,152 +967,225 @@
|
|
|
1016
967
|
},
|
|
1017
968
|
{
|
|
1018
969
|
"kind": "javascript-module",
|
|
1019
|
-
"path": "src/
|
|
1020
|
-
"declarations": [
|
|
1021
|
-
|
|
1022
|
-
"kind": "function",
|
|
1023
|
-
"name": "assureDesignSystem",
|
|
1024
|
-
"return": {
|
|
1025
|
-
"type": {
|
|
1026
|
-
"text": "DesignSystemModule"
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
"parameters": [
|
|
1030
|
-
{
|
|
1031
|
-
"name": "module",
|
|
1032
|
-
"type": {
|
|
1033
|
-
"text": "DesignSystemModule"
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
],
|
|
1037
|
-
"description": "assureDesignSystem.",
|
|
1038
|
-
"privacy": "public"
|
|
1039
|
-
},
|
|
970
|
+
"path": "src/decorators/index.ts",
|
|
971
|
+
"declarations": [],
|
|
972
|
+
"exports": [
|
|
1040
973
|
{
|
|
1041
|
-
"kind": "
|
|
1042
|
-
"name": "
|
|
1043
|
-
"
|
|
1044
|
-
"
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
"description": "The starting HTML element"
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"name": "fallbackPrefix",
|
|
1058
|
-
"type": {
|
|
1059
|
-
"text": "string"
|
|
1060
|
-
},
|
|
1061
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
1062
|
-
}
|
|
1063
|
-
],
|
|
1064
|
-
"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.",
|
|
1065
|
-
"privacy": "public"
|
|
1066
|
-
},
|
|
974
|
+
"kind": "js",
|
|
975
|
+
"name": "*",
|
|
976
|
+
"declaration": {
|
|
977
|
+
"name": "*",
|
|
978
|
+
"package": "./renderOnChange"
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
]
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"kind": "javascript-module",
|
|
985
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
986
|
+
"declarations": [
|
|
1067
987
|
{
|
|
1068
988
|
"kind": "function",
|
|
1069
|
-
"name": "
|
|
1070
|
-
"return": {
|
|
1071
|
-
"type": {
|
|
1072
|
-
"text": ""
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
989
|
+
"name": "renderOnChange",
|
|
1075
990
|
"parameters": [
|
|
1076
991
|
{
|
|
1077
|
-
"name": "
|
|
992
|
+
"name": "target",
|
|
1078
993
|
"type": {
|
|
1079
|
-
"text": "
|
|
994
|
+
"text": "FASTElement & { render(): void }"
|
|
1080
995
|
},
|
|
1081
|
-
"description": "The
|
|
996
|
+
"description": "The target to define the property change handler on."
|
|
1082
997
|
},
|
|
1083
998
|
{
|
|
1084
|
-
"name": "
|
|
999
|
+
"name": "name",
|
|
1085
1000
|
"type": {
|
|
1086
1001
|
"text": "string"
|
|
1087
1002
|
},
|
|
1088
|
-
"description": "The
|
|
1003
|
+
"description": "The property name."
|
|
1089
1004
|
}
|
|
1090
1005
|
],
|
|
1091
|
-
"description": "
|
|
1006
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1092
1007
|
"privacy": "public"
|
|
1093
1008
|
}
|
|
1094
1009
|
],
|
|
1095
1010
|
"exports": [
|
|
1096
1011
|
{
|
|
1097
1012
|
"kind": "js",
|
|
1098
|
-
"name": "
|
|
1099
|
-
"declaration": {
|
|
1100
|
-
"name": "assureDesignSystem",
|
|
1101
|
-
"module": "src/design-system/design-system.ts"
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"kind": "js",
|
|
1106
|
-
"name": "getCurrentDesignSystem",
|
|
1107
|
-
"declaration": {
|
|
1108
|
-
"name": "getCurrentDesignSystem",
|
|
1109
|
-
"module": "src/design-system/design-system.ts"
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
"kind": "js",
|
|
1114
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
1013
|
+
"name": "renderOnChange",
|
|
1115
1014
|
"declaration": {
|
|
1116
|
-
"name": "
|
|
1117
|
-
"module": "src/
|
|
1015
|
+
"name": "renderOnChange",
|
|
1016
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
1118
1017
|
}
|
|
1119
1018
|
}
|
|
1120
1019
|
]
|
|
1121
1020
|
},
|
|
1122
1021
|
{
|
|
1123
1022
|
"kind": "javascript-module",
|
|
1124
|
-
"path": "src/
|
|
1023
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
1125
1024
|
"declarations": [
|
|
1126
1025
|
{
|
|
1127
|
-
"kind": "
|
|
1128
|
-
"
|
|
1129
|
-
"
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1132
|
-
"default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
|
|
1133
|
-
"description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"kind": "variable",
|
|
1137
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1138
|
-
"type": {
|
|
1139
|
-
"text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
|
|
1140
|
-
},
|
|
1141
|
-
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
1142
|
-
"description": "Design-system specific editable host selectors."
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
"kind": "function",
|
|
1146
|
-
"name": "buildEditableElementSelector",
|
|
1147
|
-
"return": {
|
|
1148
|
-
"type": {
|
|
1149
|
-
"text": "string"
|
|
1150
|
-
}
|
|
1151
|
-
},
|
|
1152
|
-
"parameters": [
|
|
1026
|
+
"kind": "class",
|
|
1027
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
1028
|
+
"name": "InMemoryDatabase",
|
|
1029
|
+
"members": [
|
|
1153
1030
|
{
|
|
1154
|
-
"
|
|
1031
|
+
"kind": "field",
|
|
1032
|
+
"name": "isWorking",
|
|
1155
1033
|
"type": {
|
|
1156
|
-
"text": "
|
|
1157
|
-
}
|
|
1034
|
+
"text": "boolean"
|
|
1035
|
+
},
|
|
1036
|
+
"privacy": "public",
|
|
1037
|
+
"default": "false"
|
|
1158
1038
|
},
|
|
1159
1039
|
{
|
|
1160
|
-
"
|
|
1161
|
-
"
|
|
1040
|
+
"kind": "field",
|
|
1041
|
+
"name": "records",
|
|
1162
1042
|
"type": {
|
|
1163
|
-
"text": "
|
|
1164
|
-
}
|
|
1043
|
+
"text": "Record<string, T>"
|
|
1044
|
+
},
|
|
1045
|
+
"privacy": "private",
|
|
1046
|
+
"default": "{}"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"kind": "field",
|
|
1050
|
+
"name": "beforeUpdateListeners",
|
|
1051
|
+
"privacy": "private"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"kind": "field",
|
|
1055
|
+
"name": "afterUpdateListeners",
|
|
1056
|
+
"privacy": "private"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"kind": "method",
|
|
1060
|
+
"name": "create",
|
|
1061
|
+
"privacy": "public",
|
|
1062
|
+
"return": {
|
|
1063
|
+
"type": {
|
|
1064
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"parameters": [
|
|
1068
|
+
{
|
|
1069
|
+
"name": "newValue",
|
|
1070
|
+
"type": {
|
|
1071
|
+
"text": "Omit<T, 'id'>"
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
]
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"kind": "method",
|
|
1078
|
+
"name": "read",
|
|
1079
|
+
"privacy": "public",
|
|
1080
|
+
"return": {
|
|
1081
|
+
"type": {
|
|
1082
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"parameters": [
|
|
1086
|
+
{
|
|
1087
|
+
"name": "id",
|
|
1088
|
+
"type": {
|
|
1089
|
+
"text": "string"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"kind": "method",
|
|
1096
|
+
"name": "update",
|
|
1097
|
+
"privacy": "public",
|
|
1098
|
+
"return": {
|
|
1099
|
+
"type": {
|
|
1100
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
"parameters": [
|
|
1104
|
+
{
|
|
1105
|
+
"name": "id",
|
|
1106
|
+
"type": {
|
|
1107
|
+
"text": "string"
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "newValue",
|
|
1112
|
+
"type": {
|
|
1113
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
]
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"kind": "method",
|
|
1120
|
+
"name": "delete",
|
|
1121
|
+
"privacy": "public",
|
|
1122
|
+
"return": {
|
|
1123
|
+
"type": {
|
|
1124
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"parameters": [
|
|
1128
|
+
{
|
|
1129
|
+
"name": "id",
|
|
1130
|
+
"type": {
|
|
1131
|
+
"text": "string"
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
]
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"kind": "method",
|
|
1138
|
+
"name": "visit",
|
|
1139
|
+
"privacy": "public",
|
|
1140
|
+
"return": {
|
|
1141
|
+
"type": {
|
|
1142
|
+
"text": "Promise<void>"
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
"parameters": [
|
|
1146
|
+
{
|
|
1147
|
+
"name": "visitor",
|
|
1148
|
+
"type": {
|
|
1149
|
+
"text": "(record: T) => void"
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
]
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"kind": "method",
|
|
1156
|
+
"name": "onBeforeUpdate",
|
|
1157
|
+
"privacy": "public",
|
|
1158
|
+
"return": {
|
|
1159
|
+
"type": {
|
|
1160
|
+
"text": "() => void"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"parameters": [
|
|
1164
|
+
{
|
|
1165
|
+
"name": "listener",
|
|
1166
|
+
"type": {
|
|
1167
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
]
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "method",
|
|
1174
|
+
"name": "onAfterUpdate",
|
|
1175
|
+
"privacy": "public",
|
|
1176
|
+
"return": {
|
|
1177
|
+
"type": {
|
|
1178
|
+
"text": "() => void"
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"parameters": [
|
|
1182
|
+
{
|
|
1183
|
+
"name": "listener",
|
|
1184
|
+
"type": {
|
|
1185
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
]
|
|
1165
1189
|
}
|
|
1166
1190
|
]
|
|
1167
1191
|
}
|
|
@@ -1169,33 +1193,17 @@
|
|
|
1169
1193
|
"exports": [
|
|
1170
1194
|
{
|
|
1171
1195
|
"kind": "js",
|
|
1172
|
-
"name": "
|
|
1173
|
-
"declaration": {
|
|
1174
|
-
"name": "BASE_EDITABLE_ELEMENT_SELECTORS",
|
|
1175
|
-
"module": "src/design-system/editable-elements.ts"
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
"kind": "js",
|
|
1180
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1181
|
-
"declaration": {
|
|
1182
|
-
"name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
|
|
1183
|
-
"module": "src/design-system/editable-elements.ts"
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"kind": "js",
|
|
1188
|
-
"name": "buildEditableElementSelector",
|
|
1196
|
+
"name": "InMemoryDatabase",
|
|
1189
1197
|
"declaration": {
|
|
1190
|
-
"name": "
|
|
1191
|
-
"module": "src/
|
|
1198
|
+
"name": "InMemoryDatabase",
|
|
1199
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
1192
1200
|
}
|
|
1193
1201
|
}
|
|
1194
1202
|
]
|
|
1195
1203
|
},
|
|
1196
1204
|
{
|
|
1197
1205
|
"kind": "javascript-module",
|
|
1198
|
-
"path": "src/
|
|
1206
|
+
"path": "src/data/index.ts",
|
|
1199
1207
|
"declarations": [],
|
|
1200
1208
|
"exports": [
|
|
1201
1209
|
{
|
|
@@ -1203,15 +1211,7 @@
|
|
|
1203
1211
|
"name": "*",
|
|
1204
1212
|
"declaration": {
|
|
1205
1213
|
"name": "*",
|
|
1206
|
-
"package": "./
|
|
1207
|
-
}
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
"kind": "js",
|
|
1211
|
-
"name": "*",
|
|
1212
|
-
"declaration": {
|
|
1213
|
-
"name": "*",
|
|
1214
|
-
"package": "./editable-elements"
|
|
1214
|
+
"package": "./inMemoryDatabase"
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
]
|
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.428.0",
|
|
4
|
+
"version": "14.428.1-alpha-035cbdd.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@genesislcap/foundation-testing": "14.428.0",
|
|
33
|
-
"@genesislcap/genx": "14.428.0",
|
|
34
|
-
"@genesislcap/rollup-builder": "14.428.0",
|
|
35
|
-
"@genesislcap/ts-builder": "14.428.0",
|
|
36
|
-
"@genesislcap/uvu-playwright-builder": "14.428.0",
|
|
37
|
-
"@genesislcap/vite-builder": "14.428.0",
|
|
38
|
-
"@genesislcap/webpack-builder": "14.428.0",
|
|
32
|
+
"@genesislcap/foundation-testing": "14.428.1-alpha-035cbdd.0",
|
|
33
|
+
"@genesislcap/genx": "14.428.1-alpha-035cbdd.0",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.428.1-alpha-035cbdd.0",
|
|
35
|
+
"@genesislcap/ts-builder": "14.428.1-alpha-035cbdd.0",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.428.1-alpha-035cbdd.0",
|
|
37
|
+
"@genesislcap/vite-builder": "14.428.1-alpha-035cbdd.0",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.428.1-alpha-035cbdd.0",
|
|
39
39
|
"@types/json-schema": "^7.0.11"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "14.428.0",
|
|
43
|
-
"@genesislcap/foundation-logger": "14.428.0",
|
|
42
|
+
"@genesislcap/expression-builder": "14.428.1-alpha-035cbdd.0",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.428.1-alpha-035cbdd.0",
|
|
44
44
|
"@microsoft/fast-components": "2.30.6",
|
|
45
45
|
"@microsoft/fast-element": "1.14.0",
|
|
46
46
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"customElements": "dist/custom-elements.json",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "9769544233b28bf7fe0fd4441287c94f6b347d98"
|
|
62
62
|
}
|