@genesislcap/foundation-utils 14.488.2 → 14.489.0-GENC-1351.10
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 +415 -415
- package/package.json +11 -11
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"kind": "javascript-module",
|
|
214
|
-
"path": "src/
|
|
214
|
+
"path": "src/decorators/index.ts",
|
|
215
215
|
"declarations": [],
|
|
216
216
|
"exports": [
|
|
217
217
|
{
|
|
@@ -219,235 +219,86 @@
|
|
|
219
219
|
"name": "*",
|
|
220
220
|
"declaration": {
|
|
221
221
|
"name": "*",
|
|
222
|
-
"package": "./
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"kind": "javascript-module",
|
|
229
|
-
"path": "src/converters/string-array-converter.ts",
|
|
230
|
-
"declarations": [
|
|
231
|
-
{
|
|
232
|
-
"kind": "variable",
|
|
233
|
-
"name": "stringArrayConverter",
|
|
234
|
-
"type": {
|
|
235
|
-
"text": "ValueConverter"
|
|
236
|
-
},
|
|
237
|
-
"default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
|
|
238
|
-
"description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
|
|
239
|
-
"privacy": "public"
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
"exports": [
|
|
243
|
-
{
|
|
244
|
-
"kind": "js",
|
|
245
|
-
"name": "stringArrayConverter",
|
|
246
|
-
"declaration": {
|
|
247
|
-
"name": "stringArrayConverter",
|
|
248
|
-
"module": "src/converters/string-array-converter.ts"
|
|
222
|
+
"package": "./renderOnChange"
|
|
249
223
|
}
|
|
250
224
|
}
|
|
251
225
|
]
|
|
252
226
|
},
|
|
253
227
|
{
|
|
254
228
|
"kind": "javascript-module",
|
|
255
|
-
"path": "src/
|
|
229
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
256
230
|
"declarations": [
|
|
257
231
|
{
|
|
258
232
|
"kind": "function",
|
|
259
|
-
"name": "
|
|
260
|
-
"return": {
|
|
261
|
-
"type": {
|
|
262
|
-
"text": "DesignSystemModule"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
"parameters": [
|
|
266
|
-
{
|
|
267
|
-
"name": "module",
|
|
268
|
-
"type": {
|
|
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": [
|
|
285
|
-
{
|
|
286
|
-
"name": "element",
|
|
287
|
-
"type": {
|
|
288
|
-
"text": "HTMLElement"
|
|
289
|
-
},
|
|
290
|
-
"description": "The starting HTML element"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "fallbackPrefix",
|
|
294
|
-
"type": {
|
|
295
|
-
"text": "string"
|
|
296
|
-
},
|
|
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
|
-
},
|
|
233
|
+
"name": "renderOnChange",
|
|
311
234
|
"parameters": [
|
|
312
235
|
{
|
|
313
|
-
"name": "
|
|
236
|
+
"name": "target",
|
|
314
237
|
"type": {
|
|
315
|
-
"text": "
|
|
238
|
+
"text": "FASTElement & { render(): void }"
|
|
316
239
|
},
|
|
317
|
-
"description": "The
|
|
240
|
+
"description": "The target to define the property change handler on."
|
|
318
241
|
},
|
|
319
242
|
{
|
|
320
|
-
"name": "
|
|
243
|
+
"name": "name",
|
|
321
244
|
"type": {
|
|
322
245
|
"text": "string"
|
|
323
246
|
},
|
|
324
|
-
"description": "The
|
|
247
|
+
"description": "The property name."
|
|
325
248
|
}
|
|
326
249
|
],
|
|
327
|
-
"description": "
|
|
250
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
328
251
|
"privacy": "public"
|
|
329
252
|
}
|
|
330
253
|
],
|
|
331
254
|
"exports": [
|
|
332
255
|
{
|
|
333
256
|
"kind": "js",
|
|
334
|
-
"name": "
|
|
335
|
-
"declaration": {
|
|
336
|
-
"name": "assureDesignSystem",
|
|
337
|
-
"module": "src/design-system/design-system.ts"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"kind": "js",
|
|
342
|
-
"name": "getCurrentDesignSystem",
|
|
257
|
+
"name": "renderOnChange",
|
|
343
258
|
"declaration": {
|
|
344
|
-
"name": "
|
|
345
|
-
"module": "src/
|
|
259
|
+
"name": "renderOnChange",
|
|
260
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
346
261
|
}
|
|
347
|
-
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"kind": "javascript-module",
|
|
267
|
+
"path": "src/converters/index.ts",
|
|
268
|
+
"declarations": [],
|
|
269
|
+
"exports": [
|
|
348
270
|
{
|
|
349
271
|
"kind": "js",
|
|
350
|
-
"name": "
|
|
272
|
+
"name": "*",
|
|
351
273
|
"declaration": {
|
|
352
|
-
"name": "
|
|
353
|
-
"
|
|
274
|
+
"name": "*",
|
|
275
|
+
"package": "./string-array-converter"
|
|
354
276
|
}
|
|
355
277
|
}
|
|
356
278
|
]
|
|
357
279
|
},
|
|
358
280
|
{
|
|
359
281
|
"kind": "javascript-module",
|
|
360
|
-
"path": "src/
|
|
282
|
+
"path": "src/converters/string-array-converter.ts",
|
|
361
283
|
"declarations": [
|
|
362
284
|
{
|
|
363
285
|
"kind": "variable",
|
|
364
|
-
"name": "
|
|
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",
|
|
286
|
+
"name": "stringArrayConverter",
|
|
374
287
|
"type": {
|
|
375
|
-
"text": "
|
|
376
|
-
},
|
|
377
|
-
"default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
|
|
378
|
-
"description": "Design-system specific editable host selectors."
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"kind": "function",
|
|
382
|
-
"name": "buildEditableElementSelector",
|
|
383
|
-
"return": {
|
|
384
|
-
"type": {
|
|
385
|
-
"text": "string"
|
|
386
|
-
}
|
|
288
|
+
"text": "ValueConverter"
|
|
387
289
|
},
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
"type": {
|
|
392
|
-
"text": "readonly EditableDesignSystemPrefix[]"
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "customEditableSelectors",
|
|
397
|
-
"default": "[]",
|
|
398
|
-
"type": {
|
|
399
|
-
"text": "readonly string[]"
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
]
|
|
290
|
+
"default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
|
|
291
|
+
"description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
|
|
292
|
+
"privacy": "public"
|
|
403
293
|
}
|
|
404
294
|
],
|
|
405
295
|
"exports": [
|
|
406
296
|
{
|
|
407
297
|
"kind": "js",
|
|
408
|
-
"name": "
|
|
409
|
-
"declaration": {
|
|
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": "*",
|
|
298
|
+
"name": "stringArrayConverter",
|
|
448
299
|
"declaration": {
|
|
449
|
-
"name": "
|
|
450
|
-
"
|
|
300
|
+
"name": "stringArrayConverter",
|
|
301
|
+
"module": "src/converters/string-array-converter.ts"
|
|
451
302
|
}
|
|
452
303
|
}
|
|
453
304
|
]
|
|
@@ -492,48 +343,246 @@
|
|
|
492
343
|
},
|
|
493
344
|
{
|
|
494
345
|
"kind": "javascript-module",
|
|
495
|
-
"path": "src/
|
|
496
|
-
"declarations": [],
|
|
497
|
-
"exports": [
|
|
498
|
-
{
|
|
499
|
-
"kind": "js",
|
|
500
|
-
"name": "*",
|
|
501
|
-
"declaration": {
|
|
502
|
-
"name": "*",
|
|
503
|
-
"package": "./is-dev"
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"kind": "js",
|
|
508
|
-
"name": "*",
|
|
509
|
-
"declaration": {
|
|
510
|
-
"name": "*",
|
|
511
|
-
"package": "./variables"
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"kind": "javascript-module",
|
|
518
|
-
"path": "src/env/is-dev.ts",
|
|
346
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
519
347
|
"declarations": [
|
|
520
348
|
{
|
|
521
|
-
"kind": "
|
|
522
|
-
"
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
349
|
+
"kind": "class",
|
|
350
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
351
|
+
"name": "InMemoryDatabase",
|
|
352
|
+
"members": [
|
|
353
|
+
{
|
|
354
|
+
"kind": "field",
|
|
355
|
+
"name": "isWorking",
|
|
356
|
+
"type": {
|
|
357
|
+
"text": "boolean"
|
|
358
|
+
},
|
|
359
|
+
"privacy": "public",
|
|
360
|
+
"default": "false"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "field",
|
|
364
|
+
"name": "records",
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "Record<string, T>"
|
|
367
|
+
},
|
|
368
|
+
"privacy": "private",
|
|
369
|
+
"default": "{}"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"kind": "field",
|
|
373
|
+
"name": "beforeUpdateListeners",
|
|
374
|
+
"privacy": "private"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"kind": "field",
|
|
378
|
+
"name": "afterUpdateListeners",
|
|
379
|
+
"privacy": "private"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"kind": "method",
|
|
383
|
+
"name": "create",
|
|
384
|
+
"privacy": "public",
|
|
385
|
+
"return": {
|
|
386
|
+
"type": {
|
|
387
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"parameters": [
|
|
391
|
+
{
|
|
392
|
+
"name": "newValue",
|
|
393
|
+
"type": {
|
|
394
|
+
"text": "Omit<T, 'id'>"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "method",
|
|
401
|
+
"name": "read",
|
|
402
|
+
"privacy": "public",
|
|
403
|
+
"return": {
|
|
404
|
+
"type": {
|
|
405
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"parameters": [
|
|
409
|
+
{
|
|
410
|
+
"name": "id",
|
|
411
|
+
"type": {
|
|
412
|
+
"text": "string"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"kind": "method",
|
|
419
|
+
"name": "update",
|
|
420
|
+
"privacy": "public",
|
|
421
|
+
"return": {
|
|
422
|
+
"type": {
|
|
423
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"parameters": [
|
|
427
|
+
{
|
|
428
|
+
"name": "id",
|
|
429
|
+
"type": {
|
|
430
|
+
"text": "string"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "newValue",
|
|
435
|
+
"type": {
|
|
436
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"kind": "method",
|
|
443
|
+
"name": "delete",
|
|
444
|
+
"privacy": "public",
|
|
445
|
+
"return": {
|
|
446
|
+
"type": {
|
|
447
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"parameters": [
|
|
451
|
+
{
|
|
452
|
+
"name": "id",
|
|
453
|
+
"type": {
|
|
454
|
+
"text": "string"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"kind": "method",
|
|
461
|
+
"name": "visit",
|
|
462
|
+
"privacy": "public",
|
|
463
|
+
"return": {
|
|
464
|
+
"type": {
|
|
465
|
+
"text": "Promise<void>"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"parameters": [
|
|
469
|
+
{
|
|
470
|
+
"name": "visitor",
|
|
471
|
+
"type": {
|
|
472
|
+
"text": "(record: T) => void"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"kind": "method",
|
|
479
|
+
"name": "onBeforeUpdate",
|
|
480
|
+
"privacy": "public",
|
|
481
|
+
"return": {
|
|
482
|
+
"type": {
|
|
483
|
+
"text": "() => void"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"parameters": [
|
|
487
|
+
{
|
|
488
|
+
"name": "listener",
|
|
489
|
+
"type": {
|
|
490
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "method",
|
|
497
|
+
"name": "onAfterUpdate",
|
|
498
|
+
"privacy": "public",
|
|
499
|
+
"return": {
|
|
500
|
+
"type": {
|
|
501
|
+
"text": "() => void"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"parameters": [
|
|
505
|
+
{
|
|
506
|
+
"name": "listener",
|
|
507
|
+
"type": {
|
|
508
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
"exports": [
|
|
517
|
+
{
|
|
518
|
+
"kind": "js",
|
|
519
|
+
"name": "InMemoryDatabase",
|
|
520
|
+
"declaration": {
|
|
521
|
+
"name": "InMemoryDatabase",
|
|
522
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"kind": "javascript-module",
|
|
529
|
+
"path": "src/data/index.ts",
|
|
530
|
+
"declarations": [],
|
|
531
|
+
"exports": [
|
|
532
|
+
{
|
|
533
|
+
"kind": "js",
|
|
534
|
+
"name": "*",
|
|
535
|
+
"declaration": {
|
|
536
|
+
"name": "*",
|
|
537
|
+
"package": "./inMemoryDatabase"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"kind": "javascript-module",
|
|
544
|
+
"path": "src/env/index.ts",
|
|
545
|
+
"declarations": [],
|
|
546
|
+
"exports": [
|
|
547
|
+
{
|
|
548
|
+
"kind": "js",
|
|
549
|
+
"name": "*",
|
|
550
|
+
"declaration": {
|
|
551
|
+
"name": "*",
|
|
552
|
+
"package": "./is-dev"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "js",
|
|
557
|
+
"name": "*",
|
|
558
|
+
"declaration": {
|
|
559
|
+
"name": "*",
|
|
560
|
+
"package": "./variables"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"kind": "javascript-module",
|
|
567
|
+
"path": "src/env/is-dev.ts",
|
|
568
|
+
"declarations": [
|
|
569
|
+
{
|
|
570
|
+
"kind": "function",
|
|
571
|
+
"name": "isDev",
|
|
572
|
+
"description": "Determines if the current environment is a development environment.",
|
|
573
|
+
"privacy": "public"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"exports": [
|
|
577
|
+
{
|
|
578
|
+
"kind": "js",
|
|
579
|
+
"name": "isDev",
|
|
580
|
+
"declaration": {
|
|
581
|
+
"name": "isDev",
|
|
582
|
+
"module": "src/env/is-dev.ts"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
]
|
|
537
586
|
},
|
|
538
587
|
{
|
|
539
588
|
"kind": "javascript-module",
|
|
@@ -967,251 +1016,202 @@
|
|
|
967
1016
|
},
|
|
968
1017
|
{
|
|
969
1018
|
"kind": "javascript-module",
|
|
970
|
-
"path": "src/
|
|
1019
|
+
"path": "src/design-system/design-system.ts",
|
|
971
1020
|
"declarations": [
|
|
972
1021
|
{
|
|
973
|
-
"kind": "
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
|
|
1022
|
+
"kind": "function",
|
|
1023
|
+
"name": "assureDesignSystem",
|
|
1024
|
+
"return": {
|
|
1025
|
+
"type": {
|
|
1026
|
+
"text": "DesignSystemModule"
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
"parameters": [
|
|
977
1030
|
{
|
|
978
|
-
"
|
|
979
|
-
"name": "isWorking",
|
|
1031
|
+
"name": "module",
|
|
980
1032
|
"type": {
|
|
981
|
-
"text": "
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
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": [
|
|
986
1049
|
{
|
|
987
|
-
"
|
|
988
|
-
"name": "records",
|
|
1050
|
+
"name": "element",
|
|
989
1051
|
"type": {
|
|
990
|
-
"text": "
|
|
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
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
"kind": "method",
|
|
1067
|
-
"name": "delete",
|
|
1068
|
-
"privacy": "public",
|
|
1069
|
-
"return": {
|
|
1070
|
-
"type": {
|
|
1071
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
1072
|
-
}
|
|
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.489.0-GENC-1351.10",
|
|
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.489.0-GENC-1351.10",
|
|
33
|
+
"@genesislcap/genx": "14.489.0-GENC-1351.10",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.489.0-GENC-1351.10",
|
|
35
|
+
"@genesislcap/ts-builder": "14.489.0-GENC-1351.10",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.489.0-GENC-1351.10",
|
|
37
|
+
"@genesislcap/vite-builder": "14.489.0-GENC-1351.10",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.489.0-GENC-1351.10",
|
|
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.489.0-GENC-1351.10",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.489.0-GENC-1351.10",
|
|
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": "3a274a433b5f216481f035a4fa38fa726103d694"
|
|
62
62
|
}
|