@genesislcap/foundation-utils 14.437.4 → 14.437.5-canary.gs-updates
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 +342 -342
- package/package.json +11 -11
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
"kind": "javascript-module",
|
|
255
|
-
"path": "src/
|
|
255
|
+
"path": "src/decorators/index.ts",
|
|
256
256
|
"declarations": [],
|
|
257
257
|
"exports": [
|
|
258
258
|
{
|
|
@@ -260,167 +260,217 @@
|
|
|
260
260
|
"name": "*",
|
|
261
261
|
"declaration": {
|
|
262
262
|
"name": "*",
|
|
263
|
-
"package": "./
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"kind": "js",
|
|
268
|
-
"name": "*",
|
|
269
|
-
"declaration": {
|
|
270
|
-
"name": "*",
|
|
271
|
-
"package": "./when-else"
|
|
263
|
+
"package": "./renderOnChange"
|
|
272
264
|
}
|
|
273
265
|
}
|
|
274
266
|
]
|
|
275
267
|
},
|
|
276
268
|
{
|
|
277
269
|
"kind": "javascript-module",
|
|
278
|
-
"path": "src/
|
|
270
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
279
271
|
"declarations": [
|
|
280
272
|
{
|
|
281
273
|
"kind": "function",
|
|
282
|
-
"name": "
|
|
283
|
-
"return": {
|
|
284
|
-
"type": {
|
|
285
|
-
"text": "DesignSystemModule"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"parameters": [
|
|
289
|
-
{
|
|
290
|
-
"name": "module",
|
|
291
|
-
"type": {
|
|
292
|
-
"text": "DesignSystemModule"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"description": "assureDesignSystem.",
|
|
297
|
-
"privacy": "public"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"kind": "function",
|
|
301
|
-
"name": "getCurrentDesignSystem",
|
|
302
|
-
"return": {
|
|
303
|
-
"type": {
|
|
304
|
-
"text": ""
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
"parameters": [
|
|
308
|
-
{
|
|
309
|
-
"name": "element",
|
|
310
|
-
"type": {
|
|
311
|
-
"text": "HTMLElement"
|
|
312
|
-
},
|
|
313
|
-
"description": "The starting HTML element"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "fallbackPrefix",
|
|
317
|
-
"type": {
|
|
318
|
-
"text": "string"
|
|
319
|
-
},
|
|
320
|
-
"description": "The prefix to fallback to if the provider is not available"
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
"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.",
|
|
324
|
-
"privacy": "public"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"kind": "function",
|
|
328
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
329
|
-
"return": {
|
|
330
|
-
"type": {
|
|
331
|
-
"text": ""
|
|
332
|
-
}
|
|
333
|
-
},
|
|
274
|
+
"name": "renderOnChange",
|
|
334
275
|
"parameters": [
|
|
335
276
|
{
|
|
336
|
-
"name": "
|
|
277
|
+
"name": "target",
|
|
337
278
|
"type": {
|
|
338
|
-
"text": "
|
|
279
|
+
"text": "FASTElement & { render(): void }"
|
|
339
280
|
},
|
|
340
|
-
"description": "The
|
|
281
|
+
"description": "The target to define the property change handler on."
|
|
341
282
|
},
|
|
342
283
|
{
|
|
343
|
-
"name": "
|
|
284
|
+
"name": "name",
|
|
344
285
|
"type": {
|
|
345
286
|
"text": "string"
|
|
346
287
|
},
|
|
347
|
-
"description": "The
|
|
288
|
+
"description": "The property name."
|
|
348
289
|
}
|
|
349
290
|
],
|
|
350
|
-
"description": "
|
|
291
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
351
292
|
"privacy": "public"
|
|
352
293
|
}
|
|
353
294
|
],
|
|
354
295
|
"exports": [
|
|
355
296
|
{
|
|
356
297
|
"kind": "js",
|
|
357
|
-
"name": "
|
|
358
|
-
"declaration": {
|
|
359
|
-
"name": "assureDesignSystem",
|
|
360
|
-
"module": "src/design-system/design-system.ts"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"kind": "js",
|
|
365
|
-
"name": "getCurrentDesignSystem",
|
|
366
|
-
"declaration": {
|
|
367
|
-
"name": "getCurrentDesignSystem",
|
|
368
|
-
"module": "src/design-system/design-system.ts"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"kind": "js",
|
|
373
|
-
"name": "getCurrentDesignSystemPrefix",
|
|
298
|
+
"name": "renderOnChange",
|
|
374
299
|
"declaration": {
|
|
375
|
-
"name": "
|
|
376
|
-
"module": "src/
|
|
300
|
+
"name": "renderOnChange",
|
|
301
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
377
302
|
}
|
|
378
303
|
}
|
|
379
304
|
]
|
|
380
305
|
},
|
|
381
306
|
{
|
|
382
307
|
"kind": "javascript-module",
|
|
383
|
-
"path": "src/
|
|
308
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
384
309
|
"declarations": [
|
|
385
310
|
{
|
|
386
|
-
"kind": "
|
|
387
|
-
"
|
|
388
|
-
"
|
|
389
|
-
|
|
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
|
-
{
|
|
404
|
-
"kind": "function",
|
|
405
|
-
"name": "buildEditableElementSelector",
|
|
406
|
-
"return": {
|
|
407
|
-
"type": {
|
|
408
|
-
"text": "string"
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
"parameters": [
|
|
311
|
+
"kind": "class",
|
|
312
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
313
|
+
"name": "InMemoryDatabase",
|
|
314
|
+
"members": [
|
|
412
315
|
{
|
|
413
|
-
"
|
|
316
|
+
"kind": "field",
|
|
317
|
+
"name": "isWorking",
|
|
414
318
|
"type": {
|
|
415
|
-
"text": "
|
|
416
|
-
}
|
|
319
|
+
"text": "boolean"
|
|
320
|
+
},
|
|
321
|
+
"privacy": "public",
|
|
322
|
+
"default": "false"
|
|
417
323
|
},
|
|
418
324
|
{
|
|
419
|
-
"
|
|
420
|
-
"
|
|
325
|
+
"kind": "field",
|
|
326
|
+
"name": "records",
|
|
421
327
|
"type": {
|
|
422
|
-
"text": "
|
|
423
|
-
}
|
|
328
|
+
"text": "Record<string, T>"
|
|
329
|
+
},
|
|
330
|
+
"privacy": "private",
|
|
331
|
+
"default": "{}"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "field",
|
|
335
|
+
"name": "beforeUpdateListeners",
|
|
336
|
+
"privacy": "private"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "field",
|
|
340
|
+
"name": "afterUpdateListeners",
|
|
341
|
+
"privacy": "private"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "method",
|
|
345
|
+
"name": "create",
|
|
346
|
+
"privacy": "public",
|
|
347
|
+
"return": {
|
|
348
|
+
"type": {
|
|
349
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"parameters": [
|
|
353
|
+
{
|
|
354
|
+
"name": "newValue",
|
|
355
|
+
"type": {
|
|
356
|
+
"text": "Omit<T, 'id'>"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"kind": "method",
|
|
363
|
+
"name": "read",
|
|
364
|
+
"privacy": "public",
|
|
365
|
+
"return": {
|
|
366
|
+
"type": {
|
|
367
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"parameters": [
|
|
371
|
+
{
|
|
372
|
+
"name": "id",
|
|
373
|
+
"type": {
|
|
374
|
+
"text": "string"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "method",
|
|
381
|
+
"name": "update",
|
|
382
|
+
"privacy": "public",
|
|
383
|
+
"return": {
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"parameters": [
|
|
389
|
+
{
|
|
390
|
+
"name": "id",
|
|
391
|
+
"type": {
|
|
392
|
+
"text": "string"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "newValue",
|
|
397
|
+
"type": {
|
|
398
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"kind": "method",
|
|
405
|
+
"name": "delete",
|
|
406
|
+
"privacy": "public",
|
|
407
|
+
"return": {
|
|
408
|
+
"type": {
|
|
409
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"parameters": [
|
|
413
|
+
{
|
|
414
|
+
"name": "id",
|
|
415
|
+
"type": {
|
|
416
|
+
"text": "string"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"kind": "method",
|
|
423
|
+
"name": "visit",
|
|
424
|
+
"privacy": "public",
|
|
425
|
+
"return": {
|
|
426
|
+
"type": {
|
|
427
|
+
"text": "Promise<void>"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"parameters": [
|
|
431
|
+
{
|
|
432
|
+
"name": "visitor",
|
|
433
|
+
"type": {
|
|
434
|
+
"text": "(record: T) => void"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"kind": "method",
|
|
441
|
+
"name": "onBeforeUpdate",
|
|
442
|
+
"privacy": "public",
|
|
443
|
+
"return": {
|
|
444
|
+
"type": {
|
|
445
|
+
"text": "() => void"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"parameters": [
|
|
449
|
+
{
|
|
450
|
+
"name": "listener",
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"kind": "method",
|
|
459
|
+
"name": "onAfterUpdate",
|
|
460
|
+
"privacy": "public",
|
|
461
|
+
"return": {
|
|
462
|
+
"type": {
|
|
463
|
+
"text": "() => void"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"parameters": [
|
|
467
|
+
{
|
|
468
|
+
"name": "listener",
|
|
469
|
+
"type": {
|
|
470
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
]
|
|
424
474
|
}
|
|
425
475
|
]
|
|
426
476
|
}
|
|
@@ -428,33 +478,32 @@
|
|
|
428
478
|
"exports": [
|
|
429
479
|
{
|
|
430
480
|
"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",
|
|
481
|
+
"name": "InMemoryDatabase",
|
|
440
482
|
"declaration": {
|
|
441
|
-
"name": "
|
|
442
|
-
"module": "src/
|
|
483
|
+
"name": "InMemoryDatabase",
|
|
484
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
443
485
|
}
|
|
444
|
-
}
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "javascript-module",
|
|
491
|
+
"path": "src/data/index.ts",
|
|
492
|
+
"declarations": [],
|
|
493
|
+
"exports": [
|
|
445
494
|
{
|
|
446
495
|
"kind": "js",
|
|
447
|
-
"name": "
|
|
496
|
+
"name": "*",
|
|
448
497
|
"declaration": {
|
|
449
|
-
"name": "
|
|
450
|
-
"
|
|
498
|
+
"name": "*",
|
|
499
|
+
"package": "./inMemoryDatabase"
|
|
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.437.
|
|
4
|
+
"version": "14.437.5-canary.gs-updates",
|
|
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.437.
|
|
33
|
-
"@genesislcap/genx": "14.437.
|
|
34
|
-
"@genesislcap/rollup-builder": "14.437.
|
|
35
|
-
"@genesislcap/ts-builder": "14.437.
|
|
36
|
-
"@genesislcap/uvu-playwright-builder": "14.437.
|
|
37
|
-
"@genesislcap/vite-builder": "14.437.
|
|
38
|
-
"@genesislcap/webpack-builder": "14.437.
|
|
32
|
+
"@genesislcap/foundation-testing": "14.437.5-canary.gs-updates",
|
|
33
|
+
"@genesislcap/genx": "14.437.5-canary.gs-updates",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.437.5-canary.gs-updates",
|
|
35
|
+
"@genesislcap/ts-builder": "14.437.5-canary.gs-updates",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.437.5-canary.gs-updates",
|
|
37
|
+
"@genesislcap/vite-builder": "14.437.5-canary.gs-updates",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.437.5-canary.gs-updates",
|
|
39
39
|
"@types/json-schema": "^7.0.11"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "14.437.
|
|
43
|
-
"@genesislcap/foundation-logger": "14.437.
|
|
42
|
+
"@genesislcap/expression-builder": "14.437.5-canary.gs-updates",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.437.5-canary.gs-updates",
|
|
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": "d15cd7f49b7f5d1ddcbd9e71cf94598091fe5c1a"
|
|
62
62
|
}
|