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