@nordhealth/components 1.2.0 → 1.5.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/custom-elements.json +2376 -1339
- package/lib/Avatar.js.map +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/Calendar-a389d216.js +2 -0
- package/lib/{Calendar-73a2fcfd.js.map → Calendar-a389d216.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/Toggle.js +2 -0
- package/lib/Toggle.js.map +1 -0
- package/lib/Tooltip.js.map +1 -1
- package/lib/bundle.js +9 -9
- package/lib/bundle.js.map +1 -1
- package/lib/fsm-50373df9.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/number-c3ab3e95.js +2 -0
- package/lib/number-c3ab3e95.js.map +1 -0
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/repeat-ed796481.js +7 -0
- package/lib/repeat-ed796481.js.map +1 -0
- package/lib/src/avatar/Avatar.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +1 -1
- package/lib/src/button/Button.d.ts +1 -1
- package/lib/src/common/controllers/MediaQueryController.d.ts +14 -0
- package/lib/src/common/fsm.d.ts +3 -2
- package/lib/src/common/number.d.ts +1 -0
- package/lib/src/common/storage.d.ts +7 -0
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/layout/Layout.d.ts +47 -3
- package/lib/src/layout/Layout.test.d.ts +4 -0
- package/lib/src/nav-group/NavGroup.d.ts +1 -1
- package/lib/src/nav-item/NavItem.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +2 -4
- package/lib/src/navigation/Navigation.test.d.ts +1 -0
- package/lib/src/toggle/Toggle.d.ts +38 -0
- package/lib/src/toggle/Toggle.test.d.ts +3 -0
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/package.json +7 -7
- package/lib/Calendar-73a2fcfd.js +0 -2
- package/lib/DraftComponentMixin-9e4b7b34.js +0 -2
- package/lib/DraftComponentMixin-9e4b7b34.js.map +0 -1
- package/lib/number-1c122a1e.js +0 -7
- package/lib/number-1c122a1e.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -286,119 +286,62 @@
|
|
|
286
286
|
"name": "Translation",
|
|
287
287
|
"module": "\"./localization/translation.js\""
|
|
288
288
|
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"kind": "js",
|
|
292
|
+
"name": "Toggle",
|
|
293
|
+
"declaration": {
|
|
294
|
+
"name": "default",
|
|
295
|
+
"module": "\"./toggle/Toggle.js\""
|
|
296
|
+
}
|
|
289
297
|
}
|
|
290
298
|
]
|
|
291
299
|
},
|
|
292
300
|
{
|
|
293
301
|
"kind": "javascript-module",
|
|
294
|
-
"path": "src/
|
|
302
|
+
"path": "src/badge/Badge.ts",
|
|
295
303
|
"declarations": [
|
|
296
304
|
{
|
|
297
305
|
"kind": "class",
|
|
298
|
-
"description": "
|
|
299
|
-
"name": "
|
|
300
|
-
"
|
|
301
|
-
{
|
|
302
|
-
"kind": "field",
|
|
303
|
-
"name": "state",
|
|
304
|
-
"type": {
|
|
305
|
-
"text": "States<typeof transition>"
|
|
306
|
-
},
|
|
307
|
-
"privacy": "private",
|
|
308
|
-
"default": "\"initial\""
|
|
309
|
-
},
|
|
306
|
+
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
307
|
+
"name": "Badge",
|
|
308
|
+
"slots": [
|
|
310
309
|
{
|
|
311
|
-
"
|
|
312
|
-
"name": "
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"default": "\"m\"",
|
|
317
|
-
"description": "The size of the avatar.",
|
|
318
|
-
"attribute": "size",
|
|
319
|
-
"reflects": true
|
|
320
|
-
},
|
|
310
|
+
"description": "The badge content.",
|
|
311
|
+
"name": ""
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"members": [
|
|
321
315
|
{
|
|
322
316
|
"kind": "field",
|
|
323
|
-
"name": "
|
|
317
|
+
"name": "type",
|
|
324
318
|
"type": {
|
|
325
|
-
"text": "
|
|
319
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
326
320
|
},
|
|
327
|
-
"
|
|
328
|
-
"
|
|
321
|
+
"default": "\"info\"",
|
|
322
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
323
|
+
"attribute": "type",
|
|
329
324
|
"reflects": true
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"kind": "field",
|
|
333
|
-
"name": "name",
|
|
334
|
-
"type": {
|
|
335
|
-
"text": "string"
|
|
336
|
-
},
|
|
337
|
-
"default": "\"\"",
|
|
338
|
-
"description": "The name of the person.",
|
|
339
|
-
"attribute": "name"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"kind": "method",
|
|
343
|
-
"name": "handleSrcChange",
|
|
344
|
-
"privacy": "protected"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"kind": "method",
|
|
348
|
-
"name": "renderImage",
|
|
349
|
-
"privacy": "protected"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"kind": "method",
|
|
353
|
-
"name": "renderFallback",
|
|
354
|
-
"privacy": "protected"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"kind": "method",
|
|
358
|
-
"name": "handleLoad",
|
|
359
|
-
"privacy": "private"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"kind": "method",
|
|
363
|
-
"name": "handleError",
|
|
364
|
-
"privacy": "private"
|
|
365
325
|
}
|
|
366
326
|
],
|
|
367
327
|
"attributes": [
|
|
368
328
|
{
|
|
369
|
-
"name": "
|
|
370
|
-
"type": {
|
|
371
|
-
"text": "\"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
372
|
-
},
|
|
373
|
-
"default": "\"m\"",
|
|
374
|
-
"description": "The size of the avatar.",
|
|
375
|
-
"fieldName": "size"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "src",
|
|
379
|
-
"type": {
|
|
380
|
-
"text": "string | undefined"
|
|
381
|
-
},
|
|
382
|
-
"description": "The URL of the avatar image uploaded by the user.",
|
|
383
|
-
"fieldName": "src"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "name",
|
|
329
|
+
"name": "type",
|
|
387
330
|
"type": {
|
|
388
|
-
"text": "
|
|
331
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
389
332
|
},
|
|
390
|
-
"default": "\"\"",
|
|
391
|
-
"description": "The
|
|
392
|
-
"fieldName": "
|
|
333
|
+
"default": "\"info\"",
|
|
334
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
335
|
+
"fieldName": "type"
|
|
393
336
|
}
|
|
394
337
|
],
|
|
395
338
|
"superclass": {
|
|
396
339
|
"name": "LitElement",
|
|
397
340
|
"package": "lit"
|
|
398
341
|
},
|
|
399
|
-
"status": "
|
|
400
|
-
"category": "
|
|
401
|
-
"tagName": "nord-
|
|
342
|
+
"status": "ready",
|
|
343
|
+
"category": "text",
|
|
344
|
+
"tagName": "nord-badge",
|
|
402
345
|
"customElement": true
|
|
403
346
|
}
|
|
404
347
|
],
|
|
@@ -407,57 +350,57 @@
|
|
|
407
350
|
"kind": "js",
|
|
408
351
|
"name": "default",
|
|
409
352
|
"declaration": {
|
|
410
|
-
"name": "
|
|
411
|
-
"module": "src/
|
|
353
|
+
"name": "Badge",
|
|
354
|
+
"module": "src/badge/Badge.ts"
|
|
412
355
|
}
|
|
413
356
|
},
|
|
414
357
|
{
|
|
415
358
|
"kind": "custom-element-definition",
|
|
416
|
-
"name": "nord-
|
|
359
|
+
"name": "nord-badge",
|
|
417
360
|
"declaration": {
|
|
418
|
-
"name": "
|
|
419
|
-
"module": "src/
|
|
361
|
+
"name": "Badge",
|
|
362
|
+
"module": "src/badge/Badge.ts"
|
|
420
363
|
}
|
|
421
364
|
}
|
|
422
365
|
],
|
|
423
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n-
|
|
366
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
|
|
424
367
|
},
|
|
425
368
|
{
|
|
426
369
|
"kind": "javascript-module",
|
|
427
|
-
"path": "src/
|
|
370
|
+
"path": "src/banner/Banner.ts",
|
|
428
371
|
"declarations": [
|
|
429
372
|
{
|
|
430
373
|
"kind": "class",
|
|
431
|
-
"description": "
|
|
432
|
-
"name": "
|
|
374
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
375
|
+
"name": "Banner",
|
|
433
376
|
"slots": [
|
|
434
377
|
{
|
|
435
|
-
"description": "
|
|
378
|
+
"description": "default slot",
|
|
436
379
|
"name": ""
|
|
437
380
|
}
|
|
438
381
|
],
|
|
439
382
|
"members": [
|
|
440
383
|
{
|
|
441
384
|
"kind": "field",
|
|
442
|
-
"name": "
|
|
385
|
+
"name": "variant",
|
|
443
386
|
"type": {
|
|
444
|
-
"text": "\"
|
|
387
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
445
388
|
},
|
|
446
389
|
"default": "\"info\"",
|
|
447
|
-
"description": "The
|
|
448
|
-
"attribute": "
|
|
390
|
+
"description": "The style variant of the banner.",
|
|
391
|
+
"attribute": "variant",
|
|
449
392
|
"reflects": true
|
|
450
393
|
}
|
|
451
394
|
],
|
|
452
395
|
"attributes": [
|
|
453
396
|
{
|
|
454
|
-
"name": "
|
|
397
|
+
"name": "variant",
|
|
455
398
|
"type": {
|
|
456
|
-
"text": "\"
|
|
399
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
457
400
|
},
|
|
458
401
|
"default": "\"info\"",
|
|
459
|
-
"description": "The
|
|
460
|
-
"fieldName": "
|
|
402
|
+
"description": "The style variant of the banner.",
|
|
403
|
+
"fieldName": "variant"
|
|
461
404
|
}
|
|
462
405
|
],
|
|
463
406
|
"superclass": {
|
|
@@ -465,8 +408,8 @@
|
|
|
465
408
|
"package": "lit"
|
|
466
409
|
},
|
|
467
410
|
"status": "ready",
|
|
468
|
-
"category": "
|
|
469
|
-
"tagName": "nord-
|
|
411
|
+
"category": "feedback",
|
|
412
|
+
"tagName": "nord-banner",
|
|
470
413
|
"customElement": true
|
|
471
414
|
}
|
|
472
415
|
],
|
|
@@ -475,20 +418,20 @@
|
|
|
475
418
|
"kind": "js",
|
|
476
419
|
"name": "default",
|
|
477
420
|
"declaration": {
|
|
478
|
-
"name": "
|
|
479
|
-
"module": "src/
|
|
421
|
+
"name": "Banner",
|
|
422
|
+
"module": "src/banner/Banner.ts"
|
|
480
423
|
}
|
|
481
424
|
},
|
|
482
425
|
{
|
|
483
426
|
"kind": "custom-element-definition",
|
|
484
|
-
"name": "nord-
|
|
427
|
+
"name": "nord-banner",
|
|
485
428
|
"declaration": {
|
|
486
|
-
"name": "
|
|
487
|
-
"module": "src/
|
|
429
|
+
"name": "Banner",
|
|
430
|
+
"module": "src/banner/Banner.ts"
|
|
488
431
|
}
|
|
489
432
|
}
|
|
490
433
|
],
|
|
491
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
434
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
492
435
|
},
|
|
493
436
|
{
|
|
494
437
|
"kind": "javascript-module",
|
|
@@ -534,7 +477,7 @@
|
|
|
534
477
|
"kind": "field",
|
|
535
478
|
"name": "variant",
|
|
536
479
|
"type": {
|
|
537
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
480
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\" | \"switch\""
|
|
538
481
|
},
|
|
539
482
|
"default": "\"default\"",
|
|
540
483
|
"description": "The style variant of the button.",
|
|
@@ -776,7 +719,7 @@
|
|
|
776
719
|
{
|
|
777
720
|
"name": "variant",
|
|
778
721
|
"type": {
|
|
779
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
722
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\" | \"switch\""
|
|
780
723
|
},
|
|
781
724
|
"default": "\"default\"",
|
|
782
725
|
"description": "The style variant of the button.",
|
|
@@ -926,7 +869,7 @@
|
|
|
926
869
|
}
|
|
927
870
|
}
|
|
928
871
|
],
|
|
929
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n"
|
|
872
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n| `switch` | Switch style is reserved for the clinic switcher in the top left corner of an application. |\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n"
|
|
930
873
|
},
|
|
931
874
|
{
|
|
932
875
|
"kind": "javascript-module",
|
|
@@ -1534,74 +1477,6 @@
|
|
|
1534
1477
|
],
|
|
1535
1478
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n"
|
|
1536
1479
|
},
|
|
1537
|
-
{
|
|
1538
|
-
"kind": "javascript-module",
|
|
1539
|
-
"path": "src/banner/Banner.ts",
|
|
1540
|
-
"declarations": [
|
|
1541
|
-
{
|
|
1542
|
-
"kind": "class",
|
|
1543
|
-
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1544
|
-
"name": "Banner",
|
|
1545
|
-
"slots": [
|
|
1546
|
-
{
|
|
1547
|
-
"description": "default slot",
|
|
1548
|
-
"name": ""
|
|
1549
|
-
}
|
|
1550
|
-
],
|
|
1551
|
-
"members": [
|
|
1552
|
-
{
|
|
1553
|
-
"kind": "field",
|
|
1554
|
-
"name": "variant",
|
|
1555
|
-
"type": {
|
|
1556
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1557
|
-
},
|
|
1558
|
-
"default": "\"info\"",
|
|
1559
|
-
"description": "The style variant of the banner.",
|
|
1560
|
-
"attribute": "variant",
|
|
1561
|
-
"reflects": true
|
|
1562
|
-
}
|
|
1563
|
-
],
|
|
1564
|
-
"attributes": [
|
|
1565
|
-
{
|
|
1566
|
-
"name": "variant",
|
|
1567
|
-
"type": {
|
|
1568
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1569
|
-
},
|
|
1570
|
-
"default": "\"info\"",
|
|
1571
|
-
"description": "The style variant of the banner.",
|
|
1572
|
-
"fieldName": "variant"
|
|
1573
|
-
}
|
|
1574
|
-
],
|
|
1575
|
-
"superclass": {
|
|
1576
|
-
"name": "LitElement",
|
|
1577
|
-
"package": "lit"
|
|
1578
|
-
},
|
|
1579
|
-
"status": "new",
|
|
1580
|
-
"category": "feedback",
|
|
1581
|
-
"tagName": "nord-banner",
|
|
1582
|
-
"customElement": true
|
|
1583
|
-
}
|
|
1584
|
-
],
|
|
1585
|
-
"exports": [
|
|
1586
|
-
{
|
|
1587
|
-
"kind": "js",
|
|
1588
|
-
"name": "default",
|
|
1589
|
-
"declaration": {
|
|
1590
|
-
"name": "Banner",
|
|
1591
|
-
"module": "src/banner/Banner.ts"
|
|
1592
|
-
}
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
"kind": "custom-element-definition",
|
|
1596
|
-
"name": "nord-banner",
|
|
1597
|
-
"declaration": {
|
|
1598
|
-
"name": "Banner",
|
|
1599
|
-
"module": "src/banner/Banner.ts"
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
],
|
|
1603
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
1604
|
-
},
|
|
1605
1480
|
{
|
|
1606
1481
|
"kind": "javascript-module",
|
|
1607
1482
|
"path": "src/checkbox/Checkbox.ts",
|
|
@@ -2214,7 +2089,7 @@
|
|
|
2214
2089
|
}
|
|
2215
2090
|
}
|
|
2216
2091
|
],
|
|
2217
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n-
|
|
2092
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n"
|
|
2218
2093
|
},
|
|
2219
2094
|
{
|
|
2220
2095
|
"kind": "javascript-module",
|
|
@@ -2807,20 +2682,153 @@
|
|
|
2807
2682
|
},
|
|
2808
2683
|
{
|
|
2809
2684
|
"kind": "javascript-module",
|
|
2810
|
-
"path": "src/
|
|
2685
|
+
"path": "src/avatar/Avatar.ts",
|
|
2811
2686
|
"declarations": [
|
|
2812
2687
|
{
|
|
2813
|
-
"kind": "
|
|
2814
|
-
"
|
|
2815
|
-
"
|
|
2688
|
+
"kind": "class",
|
|
2689
|
+
"description": "Avatar is used for showing a thumbnail representation of a user or entity.\nDefault avatar illustration is displayed when no src is specified.",
|
|
2690
|
+
"name": "Avatar",
|
|
2691
|
+
"members": [
|
|
2816
2692
|
{
|
|
2817
|
-
"
|
|
2693
|
+
"kind": "field",
|
|
2694
|
+
"name": "state",
|
|
2818
2695
|
"type": {
|
|
2819
|
-
"text": "
|
|
2820
|
-
}
|
|
2696
|
+
"text": "States<typeof transition>"
|
|
2697
|
+
},
|
|
2698
|
+
"privacy": "private",
|
|
2699
|
+
"default": "\"initial\""
|
|
2821
2700
|
},
|
|
2822
2701
|
{
|
|
2823
|
-
"
|
|
2702
|
+
"kind": "field",
|
|
2703
|
+
"name": "size",
|
|
2704
|
+
"type": {
|
|
2705
|
+
"text": "\"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
2706
|
+
},
|
|
2707
|
+
"default": "\"m\"",
|
|
2708
|
+
"description": "The size of the avatar.",
|
|
2709
|
+
"attribute": "size",
|
|
2710
|
+
"reflects": true
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"kind": "field",
|
|
2714
|
+
"name": "src",
|
|
2715
|
+
"type": {
|
|
2716
|
+
"text": "string | undefined"
|
|
2717
|
+
},
|
|
2718
|
+
"description": "The URL of the avatar image uploaded by the user.",
|
|
2719
|
+
"attribute": "src",
|
|
2720
|
+
"reflects": true
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"kind": "field",
|
|
2724
|
+
"name": "name",
|
|
2725
|
+
"type": {
|
|
2726
|
+
"text": "string"
|
|
2727
|
+
},
|
|
2728
|
+
"default": "\"\"",
|
|
2729
|
+
"description": "The name of the person.",
|
|
2730
|
+
"attribute": "name"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"kind": "method",
|
|
2734
|
+
"name": "handleSrcChange",
|
|
2735
|
+
"privacy": "protected"
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
"kind": "method",
|
|
2739
|
+
"name": "renderImage",
|
|
2740
|
+
"privacy": "protected"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
"kind": "method",
|
|
2744
|
+
"name": "renderFallback",
|
|
2745
|
+
"privacy": "protected"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"kind": "method",
|
|
2749
|
+
"name": "handleLoad",
|
|
2750
|
+
"privacy": "private"
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
"kind": "method",
|
|
2754
|
+
"name": "handleError",
|
|
2755
|
+
"privacy": "private"
|
|
2756
|
+
}
|
|
2757
|
+
],
|
|
2758
|
+
"attributes": [
|
|
2759
|
+
{
|
|
2760
|
+
"name": "size",
|
|
2761
|
+
"type": {
|
|
2762
|
+
"text": "\"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
2763
|
+
},
|
|
2764
|
+
"default": "\"m\"",
|
|
2765
|
+
"description": "The size of the avatar.",
|
|
2766
|
+
"fieldName": "size"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "src",
|
|
2770
|
+
"type": {
|
|
2771
|
+
"text": "string | undefined"
|
|
2772
|
+
},
|
|
2773
|
+
"description": "The URL of the avatar image uploaded by the user.",
|
|
2774
|
+
"fieldName": "src"
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
"name": "name",
|
|
2778
|
+
"type": {
|
|
2779
|
+
"text": "string"
|
|
2780
|
+
},
|
|
2781
|
+
"default": "\"\"",
|
|
2782
|
+
"description": "The name of the person.",
|
|
2783
|
+
"fieldName": "name"
|
|
2784
|
+
}
|
|
2785
|
+
],
|
|
2786
|
+
"superclass": {
|
|
2787
|
+
"name": "LitElement",
|
|
2788
|
+
"package": "lit"
|
|
2789
|
+
},
|
|
2790
|
+
"status": "ready",
|
|
2791
|
+
"category": "image",
|
|
2792
|
+
"tagName": "nord-avatar",
|
|
2793
|
+
"customElement": true
|
|
2794
|
+
}
|
|
2795
|
+
],
|
|
2796
|
+
"exports": [
|
|
2797
|
+
{
|
|
2798
|
+
"kind": "js",
|
|
2799
|
+
"name": "default",
|
|
2800
|
+
"declaration": {
|
|
2801
|
+
"name": "Avatar",
|
|
2802
|
+
"module": "src/avatar/Avatar.ts"
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"kind": "custom-element-definition",
|
|
2807
|
+
"name": "nord-avatar",
|
|
2808
|
+
"declaration": {
|
|
2809
|
+
"name": "Avatar",
|
|
2810
|
+
"module": "src/avatar/Avatar.ts"
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
],
|
|
2814
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always add the name of the person using the `name` property.\n- For the best results, use square images or images cropped into a square.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Try to avoid using landscape or portrait images as avatars. Let users crop their images before or after uploading if possible.\n\n</div>\n"
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
"kind": "javascript-module",
|
|
2818
|
+
"path": "src/common/attribute.ts",
|
|
2819
|
+
"declarations": [
|
|
2820
|
+
{
|
|
2821
|
+
"kind": "function",
|
|
2822
|
+
"name": "add",
|
|
2823
|
+
"parameters": [
|
|
2824
|
+
{
|
|
2825
|
+
"name": "element",
|
|
2826
|
+
"type": {
|
|
2827
|
+
"text": "Element"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"name": "attr",
|
|
2824
2832
|
"type": {
|
|
2825
2833
|
"text": "string"
|
|
2826
2834
|
}
|
|
@@ -3764,6 +3772,30 @@
|
|
|
3764
3772
|
}
|
|
3765
3773
|
}
|
|
3766
3774
|
]
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"kind": "function",
|
|
3778
|
+
"name": "clamp",
|
|
3779
|
+
"parameters": [
|
|
3780
|
+
{
|
|
3781
|
+
"name": "value",
|
|
3782
|
+
"type": {
|
|
3783
|
+
"text": "number"
|
|
3784
|
+
}
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"name": "min",
|
|
3788
|
+
"type": {
|
|
3789
|
+
"text": "number"
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"name": "max",
|
|
3794
|
+
"type": {
|
|
3795
|
+
"text": "number"
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
]
|
|
3767
3799
|
}
|
|
3768
3800
|
],
|
|
3769
3801
|
"exports": [
|
|
@@ -3782,6 +3814,14 @@
|
|
|
3782
3814
|
"name": "range",
|
|
3783
3815
|
"module": "src/common/number.ts"
|
|
3784
3816
|
}
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
"kind": "js",
|
|
3820
|
+
"name": "clamp",
|
|
3821
|
+
"declaration": {
|
|
3822
|
+
"name": "clamp",
|
|
3823
|
+
"module": "src/common/number.ts"
|
|
3824
|
+
}
|
|
3785
3825
|
}
|
|
3786
3826
|
]
|
|
3787
3827
|
},
|
|
@@ -3960,6 +4000,55 @@
|
|
|
3960
4000
|
}
|
|
3961
4001
|
]
|
|
3962
4002
|
},
|
|
4003
|
+
{
|
|
4004
|
+
"kind": "javascript-module",
|
|
4005
|
+
"path": "src/common/storage.ts",
|
|
4006
|
+
"declarations": [
|
|
4007
|
+
{
|
|
4008
|
+
"kind": "function",
|
|
4009
|
+
"name": "storage",
|
|
4010
|
+
"parameters": [
|
|
4011
|
+
{
|
|
4012
|
+
"name": "key",
|
|
4013
|
+
"type": {
|
|
4014
|
+
"text": "string"
|
|
4015
|
+
}
|
|
4016
|
+
},
|
|
4017
|
+
{
|
|
4018
|
+
"name": "defaultValue",
|
|
4019
|
+
"type": {
|
|
4020
|
+
"text": "T"
|
|
4021
|
+
}
|
|
4022
|
+
},
|
|
4023
|
+
{
|
|
4024
|
+
"name": "serialize",
|
|
4025
|
+
"default": "JSON.stringify",
|
|
4026
|
+
"type": {
|
|
4027
|
+
"text": "(value: T) => string"
|
|
4028
|
+
}
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
"name": "deserialize",
|
|
4032
|
+
"default": "JSON.parse",
|
|
4033
|
+
"type": {
|
|
4034
|
+
"text": "(value: string) => T"
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
],
|
|
4038
|
+
"description": "Thin wrapper around local storage which simplifies (de)serialization and default values.\nBy default, (de)serializes as JSON."
|
|
4039
|
+
}
|
|
4040
|
+
],
|
|
4041
|
+
"exports": [
|
|
4042
|
+
{
|
|
4043
|
+
"kind": "js",
|
|
4044
|
+
"name": "storage",
|
|
4045
|
+
"declaration": {
|
|
4046
|
+
"name": "storage",
|
|
4047
|
+
"module": "src/common/storage.ts"
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
]
|
|
4051
|
+
},
|
|
3963
4052
|
{
|
|
3964
4053
|
"kind": "javascript-module",
|
|
3965
4054
|
"path": "src/date-picker/DatePicker.ts",
|
|
@@ -5381,7 +5470,7 @@
|
|
|
5381
5470
|
"name": "LitElement",
|
|
5382
5471
|
"package": "lit"
|
|
5383
5472
|
},
|
|
5384
|
-
"status": "
|
|
5473
|
+
"status": "ready",
|
|
5385
5474
|
"category": "structure",
|
|
5386
5475
|
"tagName": "nord-header",
|
|
5387
5476
|
"customElement": true
|
|
@@ -6303,44 +6392,294 @@
|
|
|
6303
6392
|
"members": [
|
|
6304
6393
|
{
|
|
6305
6394
|
"kind": "field",
|
|
6306
|
-
"name": "
|
|
6395
|
+
"name": "peekTimeoutId",
|
|
6396
|
+
"type": {
|
|
6397
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
6398
|
+
},
|
|
6399
|
+
"privacy": "private"
|
|
6400
|
+
},
|
|
6401
|
+
{
|
|
6402
|
+
"kind": "field",
|
|
6403
|
+
"name": "navToggleEl",
|
|
6404
|
+
"type": {
|
|
6405
|
+
"text": "Element | undefined"
|
|
6406
|
+
},
|
|
6407
|
+
"privacy": "private"
|
|
6408
|
+
},
|
|
6409
|
+
{
|
|
6410
|
+
"kind": "field",
|
|
6411
|
+
"name": "navEl",
|
|
6412
|
+
"type": {
|
|
6413
|
+
"text": "HTMLDivElement"
|
|
6414
|
+
},
|
|
6415
|
+
"privacy": "private"
|
|
6416
|
+
},
|
|
6417
|
+
{
|
|
6418
|
+
"kind": "field",
|
|
6419
|
+
"name": "navWidth",
|
|
6420
|
+
"privacy": "private"
|
|
6421
|
+
},
|
|
6422
|
+
{
|
|
6423
|
+
"kind": "field",
|
|
6424
|
+
"name": "isDragging",
|
|
6307
6425
|
"type": {
|
|
6308
6426
|
"text": "boolean"
|
|
6309
6427
|
},
|
|
6310
6428
|
"privacy": "private",
|
|
6311
|
-
"
|
|
6312
|
-
|
|
6313
|
-
"inheritedFrom": {
|
|
6314
|
-
"name": "DraftComponentMixin",
|
|
6315
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
6316
|
-
}
|
|
6317
|
-
}
|
|
6318
|
-
],
|
|
6319
|
-
"mixins": [
|
|
6429
|
+
"default": "false"
|
|
6430
|
+
},
|
|
6320
6431
|
{
|
|
6321
|
-
"
|
|
6322
|
-
"
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6432
|
+
"kind": "field",
|
|
6433
|
+
"name": "navState",
|
|
6434
|
+
"type": {
|
|
6435
|
+
"text": "NavState"
|
|
6436
|
+
},
|
|
6437
|
+
"privacy": "private"
|
|
6438
|
+
},
|
|
6439
|
+
{
|
|
6440
|
+
"kind": "field",
|
|
6441
|
+
"name": "navOpen",
|
|
6442
|
+
"type": {
|
|
6443
|
+
"text": "boolean"
|
|
6444
|
+
},
|
|
6445
|
+
"description": "Controls whether the navigation is hidden off-screen or not.\nDefaults to `true` for wide viewports, and `false` otherwise.",
|
|
6446
|
+
"attribute": "nav-open",
|
|
6447
|
+
"reflects": true
|
|
6448
|
+
},
|
|
6449
|
+
{
|
|
6450
|
+
"kind": "field",
|
|
6451
|
+
"name": "navToggle",
|
|
6452
|
+
"type": {
|
|
6453
|
+
"text": "string | undefined"
|
|
6454
|
+
},
|
|
6455
|
+
"description": "ID reference of element used to toggle the navigation.",
|
|
6456
|
+
"attribute": "nav-toggle"
|
|
6457
|
+
},
|
|
6458
|
+
{
|
|
6459
|
+
"kind": "field",
|
|
6460
|
+
"name": "lightDismiss",
|
|
6461
|
+
"privacy": "private",
|
|
6462
|
+
"default": "new LightDismissController(this, {\n isOpen: () => this.navState === \"opened\" && !this.mq.matches,\n onDismiss: () => this.navTransition(\"close\"),\n isDismissible: node => node !== this.navEl && node !== this.navToggleEl,\n })"
|
|
6463
|
+
},
|
|
6464
|
+
{
|
|
6465
|
+
"kind": "field",
|
|
6466
|
+
"name": "mq",
|
|
6467
|
+
"privacy": "private",
|
|
6468
|
+
"default": "new MediaQueryController(this, mediaQuery, () => this.handleMediaQueryChange())"
|
|
6469
|
+
},
|
|
6470
|
+
{
|
|
6471
|
+
"kind": "field",
|
|
6472
|
+
"name": "direction",
|
|
6473
|
+
"privacy": "private",
|
|
6474
|
+
"default": "new DirectionController(this)"
|
|
6475
|
+
},
|
|
6476
|
+
{
|
|
6477
|
+
"kind": "method",
|
|
6478
|
+
"name": "getToggleElement",
|
|
6479
|
+
"privacy": "protected"
|
|
6480
|
+
},
|
|
6481
|
+
{
|
|
6482
|
+
"kind": "method",
|
|
6483
|
+
"name": "cleanup",
|
|
6484
|
+
"privacy": "private"
|
|
6485
|
+
},
|
|
6486
|
+
{
|
|
6487
|
+
"kind": "method",
|
|
6488
|
+
"name": "handleNavWidthChange",
|
|
6489
|
+
"privacy": "protected"
|
|
6490
|
+
},
|
|
6491
|
+
{
|
|
6492
|
+
"kind": "method",
|
|
6493
|
+
"name": "handleNavStateChange",
|
|
6494
|
+
"privacy": "protected",
|
|
6495
|
+
"parameters": [
|
|
6496
|
+
{
|
|
6497
|
+
"name": "prev",
|
|
6498
|
+
"type": {
|
|
6499
|
+
"text": "NavState"
|
|
6500
|
+
}
|
|
6501
|
+
}
|
|
6502
|
+
]
|
|
6503
|
+
},
|
|
6504
|
+
{
|
|
6505
|
+
"kind": "method",
|
|
6506
|
+
"name": "handleOpenChange",
|
|
6507
|
+
"privacy": "protected"
|
|
6508
|
+
},
|
|
6509
|
+
{
|
|
6510
|
+
"kind": "method",
|
|
6511
|
+
"name": "navTransition",
|
|
6512
|
+
"privacy": "private",
|
|
6513
|
+
"parameters": [
|
|
6514
|
+
{
|
|
6515
|
+
"name": "event",
|
|
6516
|
+
"type": {
|
|
6517
|
+
"text": "NavEvent"
|
|
6518
|
+
}
|
|
6519
|
+
}
|
|
6520
|
+
]
|
|
6521
|
+
},
|
|
6522
|
+
{
|
|
6523
|
+
"kind": "method",
|
|
6524
|
+
"name": "handleClick",
|
|
6525
|
+
"privacy": "private"
|
|
6526
|
+
},
|
|
6527
|
+
{
|
|
6528
|
+
"kind": "method",
|
|
6529
|
+
"name": "handleDropdownOpen",
|
|
6530
|
+
"privacy": "private",
|
|
6531
|
+
"parameters": [
|
|
6532
|
+
{
|
|
6533
|
+
"name": "e",
|
|
6534
|
+
"type": {
|
|
6535
|
+
"text": "Event"
|
|
6536
|
+
}
|
|
6537
|
+
}
|
|
6538
|
+
]
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
"kind": "method",
|
|
6542
|
+
"name": "handleDropdownClose",
|
|
6543
|
+
"privacy": "private",
|
|
6544
|
+
"parameters": [
|
|
6545
|
+
{
|
|
6546
|
+
"name": "e",
|
|
6547
|
+
"type": {
|
|
6548
|
+
"text": "Event"
|
|
6549
|
+
}
|
|
6550
|
+
}
|
|
6551
|
+
]
|
|
6552
|
+
},
|
|
6553
|
+
{
|
|
6554
|
+
"kind": "field",
|
|
6555
|
+
"name": "handleMediaQueryChange",
|
|
6556
|
+
"privacy": "private"
|
|
6557
|
+
},
|
|
6558
|
+
{
|
|
6559
|
+
"kind": "field",
|
|
6560
|
+
"name": "handleToggleClick",
|
|
6561
|
+
"privacy": "private"
|
|
6562
|
+
},
|
|
6563
|
+
{
|
|
6564
|
+
"kind": "field",
|
|
6565
|
+
"name": "handleNavFocus",
|
|
6566
|
+
"privacy": "private"
|
|
6567
|
+
},
|
|
6568
|
+
{
|
|
6569
|
+
"kind": "field",
|
|
6570
|
+
"name": "handleMainFocus",
|
|
6571
|
+
"privacy": "private"
|
|
6572
|
+
},
|
|
6573
|
+
{
|
|
6574
|
+
"kind": "field",
|
|
6575
|
+
"name": "handleMouseEnter",
|
|
6576
|
+
"privacy": "private"
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
"kind": "field",
|
|
6580
|
+
"name": "handleMouseLeave",
|
|
6581
|
+
"privacy": "private"
|
|
6582
|
+
},
|
|
6583
|
+
{
|
|
6584
|
+
"kind": "field",
|
|
6585
|
+
"name": "handleTransitionEnd",
|
|
6586
|
+
"privacy": "private"
|
|
6587
|
+
},
|
|
6588
|
+
{
|
|
6589
|
+
"kind": "method",
|
|
6590
|
+
"name": "handleKeyboardResize",
|
|
6591
|
+
"privacy": "private",
|
|
6592
|
+
"parameters": [
|
|
6593
|
+
{
|
|
6594
|
+
"name": "e",
|
|
6595
|
+
"type": {
|
|
6596
|
+
"text": "KeyboardEvent"
|
|
6597
|
+
}
|
|
6598
|
+
}
|
|
6599
|
+
]
|
|
6600
|
+
},
|
|
6601
|
+
{
|
|
6602
|
+
"kind": "method",
|
|
6603
|
+
"name": "setNavWidth",
|
|
6604
|
+
"privacy": "private",
|
|
6605
|
+
"parameters": [
|
|
6606
|
+
{
|
|
6607
|
+
"name": "width",
|
|
6608
|
+
"type": {
|
|
6609
|
+
"text": "number"
|
|
6610
|
+
}
|
|
6611
|
+
}
|
|
6612
|
+
]
|
|
6613
|
+
},
|
|
6614
|
+
{
|
|
6615
|
+
"kind": "method",
|
|
6616
|
+
"name": "startDragging",
|
|
6617
|
+
"privacy": "private",
|
|
6618
|
+
"parameters": [
|
|
6619
|
+
{
|
|
6620
|
+
"name": "e",
|
|
6621
|
+
"type": {
|
|
6622
|
+
"text": "PointerEvent"
|
|
6623
|
+
}
|
|
6624
|
+
}
|
|
6625
|
+
]
|
|
6626
|
+
},
|
|
6627
|
+
{
|
|
6628
|
+
"kind": "method",
|
|
6629
|
+
"name": "stopDragging",
|
|
6630
|
+
"privacy": "private"
|
|
6631
|
+
},
|
|
6632
|
+
{
|
|
6633
|
+
"kind": "method",
|
|
6634
|
+
"name": "handleDrag",
|
|
6635
|
+
"privacy": "private",
|
|
6636
|
+
"parameters": [
|
|
6637
|
+
{
|
|
6638
|
+
"name": "e",
|
|
6639
|
+
"type": {
|
|
6640
|
+
"text": "PointerEvent"
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
]
|
|
6644
|
+
}
|
|
6645
|
+
],
|
|
6646
|
+
"attributes": [
|
|
6647
|
+
{
|
|
6648
|
+
"name": "nav-open",
|
|
6649
|
+
"type": {
|
|
6650
|
+
"text": "boolean"
|
|
6651
|
+
},
|
|
6652
|
+
"description": "Controls whether the navigation is hidden off-screen or not.\nDefaults to `true` for wide viewports, and `false` otherwise.",
|
|
6653
|
+
"fieldName": "navOpen"
|
|
6654
|
+
},
|
|
6655
|
+
{
|
|
6656
|
+
"name": "nav-toggle",
|
|
6657
|
+
"type": {
|
|
6658
|
+
"text": "string | undefined"
|
|
6659
|
+
},
|
|
6660
|
+
"description": "ID reference of element used to toggle the navigation.",
|
|
6661
|
+
"fieldName": "navToggle"
|
|
6662
|
+
}
|
|
6663
|
+
],
|
|
6664
|
+
"superclass": {
|
|
6665
|
+
"name": "LitElement",
|
|
6666
|
+
"package": "lit"
|
|
6667
|
+
},
|
|
6668
|
+
"status": "ready",
|
|
6669
|
+
"category": "structure",
|
|
6670
|
+
"tagName": "nord-layout",
|
|
6671
|
+
"customElement": true
|
|
6672
|
+
}
|
|
6673
|
+
],
|
|
6674
|
+
"exports": [
|
|
6675
|
+
{
|
|
6676
|
+
"kind": "js",
|
|
6677
|
+
"name": "default",
|
|
6678
|
+
"declaration": {
|
|
6679
|
+
"name": "Layout",
|
|
6680
|
+
"module": "src/layout/Layout.ts"
|
|
6681
|
+
}
|
|
6682
|
+
},
|
|
6344
6683
|
{
|
|
6345
6684
|
"kind": "custom-element-definition",
|
|
6346
6685
|
"name": "nord-layout",
|
|
@@ -6641,7 +6980,7 @@
|
|
|
6641
6980
|
"name": "LitElement",
|
|
6642
6981
|
"package": "lit"
|
|
6643
6982
|
},
|
|
6644
|
-
"status": "
|
|
6983
|
+
"status": "ready",
|
|
6645
6984
|
"category": "navigation",
|
|
6646
6985
|
"tagName": "nord-nav-group",
|
|
6647
6986
|
"customElement": true
|
|
@@ -6900,7 +7239,7 @@
|
|
|
6900
7239
|
"name": "LitElement",
|
|
6901
7240
|
"package": "lit"
|
|
6902
7241
|
},
|
|
6903
|
-
"status": "
|
|
7242
|
+
"status": "ready",
|
|
6904
7243
|
"category": "navigation",
|
|
6905
7244
|
"tagName": "nord-nav-item",
|
|
6906
7245
|
"customElement": true
|
|
@@ -6948,33 +7287,12 @@
|
|
|
6948
7287
|
"name": "footer"
|
|
6949
7288
|
}
|
|
6950
7289
|
],
|
|
6951
|
-
"members": [
|
|
6952
|
-
{
|
|
6953
|
-
"kind": "field",
|
|
6954
|
-
"name": "_warningLogged",
|
|
6955
|
-
"type": {
|
|
6956
|
-
"text": "boolean"
|
|
6957
|
-
},
|
|
6958
|
-
"privacy": "private",
|
|
6959
|
-
"static": true,
|
|
6960
|
-
"default": "false",
|
|
6961
|
-
"inheritedFrom": {
|
|
6962
|
-
"name": "DraftComponentMixin",
|
|
6963
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
6964
|
-
}
|
|
6965
|
-
}
|
|
6966
|
-
],
|
|
6967
|
-
"mixins": [
|
|
6968
|
-
{
|
|
6969
|
-
"name": "DraftComponentMixin",
|
|
6970
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
6971
|
-
}
|
|
6972
|
-
],
|
|
7290
|
+
"members": [],
|
|
6973
7291
|
"superclass": {
|
|
6974
7292
|
"name": "LitElement",
|
|
6975
7293
|
"package": "lit"
|
|
6976
7294
|
},
|
|
6977
|
-
"status": "
|
|
7295
|
+
"status": "ready",
|
|
6978
7296
|
"category": "navigation",
|
|
6979
7297
|
"tagName": "nord-navigation",
|
|
6980
7298
|
"customElement": true
|
|
@@ -9628,320 +9946,650 @@
|
|
|
9628
9946
|
},
|
|
9629
9947
|
{
|
|
9630
9948
|
"kind": "javascript-module",
|
|
9631
|
-
"path": "src/
|
|
9949
|
+
"path": "src/toggle/Toggle.ts",
|
|
9632
9950
|
"declarations": [
|
|
9633
9951
|
{
|
|
9634
9952
|
"kind": "class",
|
|
9635
|
-
"description": "
|
|
9636
|
-
"name": "
|
|
9953
|
+
"description": "Toggle switch gives control over a feature or option that can be\nturned on or off. If a physical switch would work for the action, a\ntoggle is probably the best component to use.",
|
|
9954
|
+
"name": "Toggle",
|
|
9637
9955
|
"slots": [
|
|
9638
9956
|
{
|
|
9639
|
-
"description": "
|
|
9640
|
-
"name": ""
|
|
9957
|
+
"description": "Use when a label requires more than plain text.",
|
|
9958
|
+
"name": "label"
|
|
9641
9959
|
},
|
|
9642
9960
|
{
|
|
9643
|
-
"description": "Optional slot that holds
|
|
9644
|
-
"name": "
|
|
9961
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
9962
|
+
"name": "hint"
|
|
9963
|
+
},
|
|
9964
|
+
{
|
|
9965
|
+
"description": "Optional slot that holds error text for the input.",
|
|
9966
|
+
"name": "error"
|
|
9645
9967
|
}
|
|
9646
9968
|
],
|
|
9647
9969
|
"members": [
|
|
9648
9970
|
{
|
|
9649
9971
|
"kind": "field",
|
|
9650
|
-
"name": "
|
|
9651
|
-
"
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9972
|
+
"name": "formValue",
|
|
9973
|
+
"privacy": "protected",
|
|
9974
|
+
"inheritedFrom": {
|
|
9975
|
+
"name": "FormAssociatedMixin",
|
|
9976
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
9977
|
+
}
|
|
9655
9978
|
},
|
|
9656
9979
|
{
|
|
9657
9980
|
"kind": "field",
|
|
9658
|
-
"name": "
|
|
9659
|
-
"
|
|
9660
|
-
|
|
9981
|
+
"name": "checked",
|
|
9982
|
+
"type": {
|
|
9983
|
+
"text": "boolean"
|
|
9984
|
+
},
|
|
9985
|
+
"default": "false",
|
|
9986
|
+
"description": "Controls whether the toggle is checked or not.",
|
|
9987
|
+
"attribute": "checked"
|
|
9661
9988
|
},
|
|
9662
9989
|
{
|
|
9663
9990
|
"kind": "field",
|
|
9664
|
-
"name": "
|
|
9665
|
-
"
|
|
9666
|
-
|
|
9991
|
+
"name": "reverse",
|
|
9992
|
+
"type": {
|
|
9993
|
+
"text": "boolean"
|
|
9994
|
+
},
|
|
9995
|
+
"default": "false",
|
|
9996
|
+
"description": "Controls whether the contents are displayed in reverse order,\nputting the label before the toggle.",
|
|
9997
|
+
"attribute": "reverse"
|
|
9667
9998
|
},
|
|
9668
9999
|
{
|
|
9669
10000
|
"kind": "field",
|
|
9670
|
-
"name": "
|
|
10001
|
+
"name": "size",
|
|
9671
10002
|
"type": {
|
|
9672
|
-
"text": "
|
|
10003
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
9673
10004
|
},
|
|
9674
|
-
"
|
|
10005
|
+
"default": "\"m\"",
|
|
10006
|
+
"description": "The size of the toggle switch.",
|
|
10007
|
+
"attribute": "size",
|
|
10008
|
+
"reflects": true
|
|
10009
|
+
},
|
|
10010
|
+
{
|
|
10011
|
+
"kind": "method",
|
|
10012
|
+
"name": "handleChange",
|
|
10013
|
+
"privacy": "protected",
|
|
10014
|
+
"parameters": [
|
|
10015
|
+
{
|
|
10016
|
+
"name": "e",
|
|
10017
|
+
"type": {
|
|
10018
|
+
"text": "Event"
|
|
10019
|
+
}
|
|
10020
|
+
}
|
|
10021
|
+
],
|
|
10022
|
+
"return": {
|
|
10023
|
+
"type": {
|
|
10024
|
+
"text": "void"
|
|
10025
|
+
}
|
|
10026
|
+
},
|
|
10027
|
+
"inheritedFrom": {
|
|
10028
|
+
"name": "FormAssociatedMixin",
|
|
10029
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10030
|
+
}
|
|
9675
10031
|
},
|
|
9676
10032
|
{
|
|
9677
10033
|
"kind": "field",
|
|
9678
|
-
"name": "
|
|
10034
|
+
"name": "_warningLogged",
|
|
9679
10035
|
"type": {
|
|
9680
|
-
"text": "
|
|
10036
|
+
"text": "boolean"
|
|
9681
10037
|
},
|
|
9682
|
-
"privacy": "private"
|
|
10038
|
+
"privacy": "private",
|
|
10039
|
+
"static": true,
|
|
10040
|
+
"default": "false",
|
|
10041
|
+
"inheritedFrom": {
|
|
10042
|
+
"name": "DraftComponentMixin",
|
|
10043
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10044
|
+
}
|
|
9683
10045
|
},
|
|
9684
10046
|
{
|
|
9685
10047
|
"kind": "field",
|
|
9686
|
-
"name": "
|
|
9687
|
-
"privacy": "
|
|
9688
|
-
"
|
|
10048
|
+
"name": "labelSlot",
|
|
10049
|
+
"privacy": "protected",
|
|
10050
|
+
"default": "new SlotController(this, \"label\")",
|
|
10051
|
+
"inheritedFrom": {
|
|
10052
|
+
"name": "FormAssociatedMixin",
|
|
10053
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10054
|
+
}
|
|
9689
10055
|
},
|
|
9690
10056
|
{
|
|
9691
10057
|
"kind": "field",
|
|
9692
|
-
"name": "
|
|
9693
|
-
"
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
10058
|
+
"name": "errorSlot",
|
|
10059
|
+
"privacy": "protected",
|
|
10060
|
+
"default": "new SlotController(this, \"error\")",
|
|
10061
|
+
"inheritedFrom": {
|
|
10062
|
+
"name": "FormAssociatedMixin",
|
|
10063
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10064
|
+
}
|
|
9699
10065
|
},
|
|
9700
10066
|
{
|
|
9701
10067
|
"kind": "field",
|
|
9702
|
-
"name": "
|
|
10068
|
+
"name": "hintSlot",
|
|
10069
|
+
"privacy": "protected",
|
|
10070
|
+
"default": "new SlotController(this, \"hint\")",
|
|
10071
|
+
"inheritedFrom": {
|
|
10072
|
+
"name": "FormAssociatedMixin",
|
|
10073
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10074
|
+
}
|
|
10075
|
+
},
|
|
10076
|
+
{
|
|
10077
|
+
"kind": "field",
|
|
10078
|
+
"name": "formData",
|
|
10079
|
+
"privacy": "protected",
|
|
10080
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
10081
|
+
"inheritedFrom": {
|
|
10082
|
+
"name": "FormAssociatedMixin",
|
|
10083
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10084
|
+
}
|
|
10085
|
+
},
|
|
10086
|
+
{
|
|
10087
|
+
"kind": "field",
|
|
10088
|
+
"name": "inputId",
|
|
9703
10089
|
"type": {
|
|
9704
|
-
"text": "
|
|
10090
|
+
"text": "string"
|
|
9705
10091
|
},
|
|
9706
|
-
"privacy": "
|
|
9707
|
-
"default": "
|
|
10092
|
+
"privacy": "protected",
|
|
10093
|
+
"default": "\"input\"",
|
|
10094
|
+
"inheritedFrom": {
|
|
10095
|
+
"name": "FormAssociatedMixin",
|
|
10096
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10097
|
+
}
|
|
9708
10098
|
},
|
|
9709
10099
|
{
|
|
9710
10100
|
"kind": "field",
|
|
9711
|
-
"name": "
|
|
10101
|
+
"name": "errorId",
|
|
9712
10102
|
"type": {
|
|
9713
|
-
"text": "
|
|
10103
|
+
"text": "string"
|
|
9714
10104
|
},
|
|
9715
|
-
"
|
|
9716
|
-
"
|
|
9717
|
-
"
|
|
9718
|
-
|
|
10105
|
+
"privacy": "protected",
|
|
10106
|
+
"default": "\"error\"",
|
|
10107
|
+
"inheritedFrom": {
|
|
10108
|
+
"name": "FormAssociatedMixin",
|
|
10109
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10110
|
+
}
|
|
9719
10111
|
},
|
|
9720
10112
|
{
|
|
9721
10113
|
"kind": "field",
|
|
9722
|
-
"name": "
|
|
10114
|
+
"name": "hintId",
|
|
9723
10115
|
"type": {
|
|
9724
10116
|
"text": "string"
|
|
9725
10117
|
},
|
|
9726
|
-
"
|
|
9727
|
-
"
|
|
9728
|
-
"
|
|
9729
|
-
|
|
10118
|
+
"privacy": "protected",
|
|
10119
|
+
"default": "\"hint\"",
|
|
10120
|
+
"inheritedFrom": {
|
|
10121
|
+
"name": "FormAssociatedMixin",
|
|
10122
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10123
|
+
}
|
|
9730
10124
|
},
|
|
9731
10125
|
{
|
|
9732
10126
|
"kind": "field",
|
|
9733
|
-
"name": "
|
|
10127
|
+
"name": "label",
|
|
9734
10128
|
"type": {
|
|
9735
10129
|
"text": "string"
|
|
9736
10130
|
},
|
|
9737
10131
|
"default": "\"\"",
|
|
9738
|
-
"description": "
|
|
9739
|
-
"attribute": "
|
|
9740
|
-
"
|
|
10132
|
+
"description": "Label for the input.",
|
|
10133
|
+
"attribute": "label",
|
|
10134
|
+
"inheritedFrom": {
|
|
10135
|
+
"name": "FormAssociatedMixin",
|
|
10136
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10137
|
+
}
|
|
9741
10138
|
},
|
|
9742
10139
|
{
|
|
9743
10140
|
"kind": "field",
|
|
9744
|
-
"name": "
|
|
10141
|
+
"name": "hint",
|
|
9745
10142
|
"type": {
|
|
9746
|
-
"text": "
|
|
10143
|
+
"text": "string | undefined"
|
|
9747
10144
|
},
|
|
9748
|
-
"
|
|
9749
|
-
"
|
|
9750
|
-
"
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
"kind": "method",
|
|
9755
|
-
"name": "handleIdChange",
|
|
9756
|
-
"privacy": "protected"
|
|
9757
|
-
},
|
|
9758
|
-
{
|
|
9759
|
-
"kind": "method",
|
|
9760
|
-
"name": "handleStateChange",
|
|
9761
|
-
"privacy": "private",
|
|
9762
|
-
"parameters": [
|
|
9763
|
-
{
|
|
9764
|
-
"name": "prevState",
|
|
9765
|
-
"type": {
|
|
9766
|
-
"text": "TooltipStates"
|
|
9767
|
-
}
|
|
9768
|
-
}
|
|
9769
|
-
]
|
|
10145
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
10146
|
+
"attribute": "hint",
|
|
10147
|
+
"inheritedFrom": {
|
|
10148
|
+
"name": "FormAssociatedMixin",
|
|
10149
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10150
|
+
}
|
|
9770
10151
|
},
|
|
9771
10152
|
{
|
|
9772
10153
|
"kind": "field",
|
|
9773
|
-
"name": "
|
|
9774
|
-
"
|
|
9775
|
-
|
|
10154
|
+
"name": "hideLabel",
|
|
10155
|
+
"type": {
|
|
10156
|
+
"text": "boolean"
|
|
10157
|
+
},
|
|
10158
|
+
"default": "false",
|
|
10159
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
10160
|
+
"attribute": "hide-label",
|
|
10161
|
+
"inheritedFrom": {
|
|
10162
|
+
"name": "FormAssociatedMixin",
|
|
10163
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10164
|
+
}
|
|
9776
10165
|
},
|
|
9777
10166
|
{
|
|
9778
10167
|
"kind": "field",
|
|
9779
|
-
"name": "
|
|
9780
|
-
"
|
|
10168
|
+
"name": "placeholder",
|
|
10169
|
+
"type": {
|
|
10170
|
+
"text": "string | undefined"
|
|
10171
|
+
},
|
|
10172
|
+
"description": "Placeholder text to display within the input.",
|
|
10173
|
+
"attribute": "placeholder",
|
|
10174
|
+
"inheritedFrom": {
|
|
10175
|
+
"name": "FormAssociatedMixin",
|
|
10176
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10177
|
+
}
|
|
9781
10178
|
},
|
|
9782
10179
|
{
|
|
9783
10180
|
"kind": "field",
|
|
9784
|
-
"name": "
|
|
9785
|
-
"
|
|
10181
|
+
"name": "error",
|
|
10182
|
+
"type": {
|
|
10183
|
+
"text": "string | undefined"
|
|
10184
|
+
},
|
|
10185
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
10186
|
+
"attribute": "error",
|
|
10187
|
+
"inheritedFrom": {
|
|
10188
|
+
"name": "FormAssociatedMixin",
|
|
10189
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10190
|
+
}
|
|
9786
10191
|
},
|
|
9787
10192
|
{
|
|
9788
10193
|
"kind": "field",
|
|
9789
|
-
"name": "
|
|
9790
|
-
"
|
|
10194
|
+
"name": "required",
|
|
10195
|
+
"type": {
|
|
10196
|
+
"text": "boolean"
|
|
10197
|
+
},
|
|
10198
|
+
"default": "false",
|
|
10199
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
10200
|
+
"attribute": "required",
|
|
10201
|
+
"inheritedFrom": {
|
|
10202
|
+
"name": "FormAssociatedMixin",
|
|
10203
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10204
|
+
}
|
|
9791
10205
|
},
|
|
9792
10206
|
{
|
|
9793
10207
|
"kind": "field",
|
|
9794
|
-
"name": "
|
|
9795
|
-
"
|
|
10208
|
+
"name": "expand",
|
|
10209
|
+
"type": {
|
|
10210
|
+
"text": "boolean"
|
|
10211
|
+
},
|
|
10212
|
+
"default": "false",
|
|
10213
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
10214
|
+
"attribute": "expand",
|
|
10215
|
+
"reflects": true,
|
|
10216
|
+
"inheritedFrom": {
|
|
10217
|
+
"name": "FormAssociatedMixin",
|
|
10218
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10219
|
+
}
|
|
10220
|
+
},
|
|
10221
|
+
{
|
|
10222
|
+
"kind": "method",
|
|
10223
|
+
"name": "handleInput",
|
|
10224
|
+
"privacy": "protected",
|
|
10225
|
+
"parameters": [
|
|
10226
|
+
{
|
|
10227
|
+
"name": "e",
|
|
10228
|
+
"type": {
|
|
10229
|
+
"text": "Event"
|
|
10230
|
+
}
|
|
10231
|
+
}
|
|
10232
|
+
],
|
|
10233
|
+
"inheritedFrom": {
|
|
10234
|
+
"name": "FormAssociatedMixin",
|
|
10235
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10236
|
+
}
|
|
10237
|
+
},
|
|
10238
|
+
{
|
|
10239
|
+
"kind": "method",
|
|
10240
|
+
"name": "renderLabel",
|
|
10241
|
+
"privacy": "protected",
|
|
10242
|
+
"inheritedFrom": {
|
|
10243
|
+
"name": "FormAssociatedMixin",
|
|
10244
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10245
|
+
}
|
|
10246
|
+
},
|
|
10247
|
+
{
|
|
10248
|
+
"kind": "method",
|
|
10249
|
+
"name": "renderError",
|
|
10250
|
+
"privacy": "protected",
|
|
10251
|
+
"inheritedFrom": {
|
|
10252
|
+
"name": "FormAssociatedMixin",
|
|
10253
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10254
|
+
}
|
|
10255
|
+
},
|
|
10256
|
+
{
|
|
10257
|
+
"kind": "method",
|
|
10258
|
+
"name": "getDescribedBy",
|
|
10259
|
+
"privacy": "protected",
|
|
10260
|
+
"inheritedFrom": {
|
|
10261
|
+
"name": "FormAssociatedMixin",
|
|
10262
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10263
|
+
}
|
|
10264
|
+
},
|
|
10265
|
+
{
|
|
10266
|
+
"kind": "method",
|
|
10267
|
+
"name": "getInvalid",
|
|
10268
|
+
"privacy": "protected",
|
|
10269
|
+
"inheritedFrom": {
|
|
10270
|
+
"name": "FormAssociatedMixin",
|
|
10271
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10272
|
+
}
|
|
9796
10273
|
},
|
|
9797
10274
|
{
|
|
9798
10275
|
"kind": "field",
|
|
9799
|
-
"name": "
|
|
9800
|
-
"privacy": "
|
|
10276
|
+
"name": "hasHint",
|
|
10277
|
+
"privacy": "protected",
|
|
10278
|
+
"inheritedFrom": {
|
|
10279
|
+
"name": "FormAssociatedMixin",
|
|
10280
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10281
|
+
}
|
|
9801
10282
|
},
|
|
9802
10283
|
{
|
|
9803
10284
|
"kind": "field",
|
|
9804
|
-
"name": "
|
|
9805
|
-
"privacy": "
|
|
10285
|
+
"name": "hasError",
|
|
10286
|
+
"privacy": "protected",
|
|
10287
|
+
"inheritedFrom": {
|
|
10288
|
+
"name": "FormAssociatedMixin",
|
|
10289
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10290
|
+
}
|
|
9806
10291
|
},
|
|
9807
10292
|
{
|
|
9808
10293
|
"kind": "field",
|
|
9809
|
-
"name": "
|
|
9810
|
-
"
|
|
10294
|
+
"name": "disabled",
|
|
10295
|
+
"type": {
|
|
10296
|
+
"text": "boolean"
|
|
10297
|
+
},
|
|
10298
|
+
"default": "false",
|
|
10299
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
10300
|
+
"attribute": "disabled",
|
|
10301
|
+
"reflects": true,
|
|
10302
|
+
"inheritedFrom": {
|
|
10303
|
+
"name": "InputMixin",
|
|
10304
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10305
|
+
}
|
|
10306
|
+
},
|
|
10307
|
+
{
|
|
10308
|
+
"kind": "field",
|
|
10309
|
+
"name": "name",
|
|
10310
|
+
"type": {
|
|
10311
|
+
"text": "string | undefined"
|
|
10312
|
+
},
|
|
10313
|
+
"description": "The name of the form component.",
|
|
10314
|
+
"attribute": "name",
|
|
10315
|
+
"inheritedFrom": {
|
|
10316
|
+
"name": "InputMixin",
|
|
10317
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10318
|
+
}
|
|
10319
|
+
},
|
|
10320
|
+
{
|
|
10321
|
+
"kind": "field",
|
|
10322
|
+
"name": "value",
|
|
10323
|
+
"type": {
|
|
10324
|
+
"text": "string"
|
|
10325
|
+
},
|
|
10326
|
+
"default": "\"\"",
|
|
10327
|
+
"description": "The value of the form component.",
|
|
10328
|
+
"attribute": "value",
|
|
10329
|
+
"inheritedFrom": {
|
|
10330
|
+
"name": "InputMixin",
|
|
10331
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10332
|
+
}
|
|
10333
|
+
},
|
|
10334
|
+
{
|
|
10335
|
+
"kind": "field",
|
|
10336
|
+
"name": "form",
|
|
10337
|
+
"privacy": "protected",
|
|
10338
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
10339
|
+
"inheritedFrom": {
|
|
10340
|
+
"name": "InputMixin",
|
|
10341
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10342
|
+
}
|
|
10343
|
+
},
|
|
10344
|
+
{
|
|
10345
|
+
"kind": "field",
|
|
10346
|
+
"name": "focusableRef",
|
|
10347
|
+
"privacy": "protected",
|
|
10348
|
+
"inheritedFrom": {
|
|
10349
|
+
"name": "FocusableMixin",
|
|
10350
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10351
|
+
}
|
|
10352
|
+
},
|
|
10353
|
+
{
|
|
10354
|
+
"kind": "method",
|
|
10355
|
+
"name": "focus",
|
|
10356
|
+
"parameters": [
|
|
10357
|
+
{
|
|
10358
|
+
"name": "options",
|
|
10359
|
+
"optional": true,
|
|
10360
|
+
"type": {
|
|
10361
|
+
"text": "FocusOptions"
|
|
10362
|
+
},
|
|
10363
|
+
"description": "An object which controls aspects of the focusing process."
|
|
10364
|
+
}
|
|
10365
|
+
],
|
|
10366
|
+
"description": "Programmatically move focus to the component.",
|
|
10367
|
+
"inheritedFrom": {
|
|
10368
|
+
"name": "FocusableMixin",
|
|
10369
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10370
|
+
}
|
|
10371
|
+
},
|
|
10372
|
+
{
|
|
10373
|
+
"kind": "method",
|
|
10374
|
+
"name": "blur",
|
|
10375
|
+
"description": "Programmatically remove focus from the component.",
|
|
10376
|
+
"inheritedFrom": {
|
|
10377
|
+
"name": "FocusableMixin",
|
|
10378
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10379
|
+
}
|
|
10380
|
+
},
|
|
10381
|
+
{
|
|
10382
|
+
"kind": "method",
|
|
10383
|
+
"name": "click",
|
|
10384
|
+
"description": "Programmatically simulates a click on the component.",
|
|
10385
|
+
"inheritedFrom": {
|
|
10386
|
+
"name": "FocusableMixin",
|
|
10387
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10388
|
+
}
|
|
9811
10389
|
}
|
|
9812
10390
|
],
|
|
9813
10391
|
"attributes": [
|
|
9814
10392
|
{
|
|
9815
|
-
"name": "
|
|
10393
|
+
"name": "checked",
|
|
9816
10394
|
"type": {
|
|
9817
|
-
"text": "
|
|
10395
|
+
"text": "boolean"
|
|
9818
10396
|
},
|
|
9819
|
-
"default": "
|
|
9820
|
-
"description": "
|
|
9821
|
-
"fieldName": "
|
|
10397
|
+
"default": "false",
|
|
10398
|
+
"description": "Controls whether the toggle is checked or not.",
|
|
10399
|
+
"fieldName": "checked"
|
|
9822
10400
|
},
|
|
9823
10401
|
{
|
|
9824
|
-
"name": "
|
|
10402
|
+
"name": "reverse",
|
|
9825
10403
|
"type": {
|
|
9826
|
-
"text": "
|
|
10404
|
+
"text": "boolean"
|
|
9827
10405
|
},
|
|
9828
|
-
"default": "
|
|
9829
|
-
"description": "
|
|
9830
|
-
"fieldName": "
|
|
10406
|
+
"default": "false",
|
|
10407
|
+
"description": "Controls whether the contents are displayed in reverse order,\nputting the label before the toggle.",
|
|
10408
|
+
"fieldName": "reverse"
|
|
9831
10409
|
},
|
|
9832
10410
|
{
|
|
9833
|
-
"name": "
|
|
10411
|
+
"name": "size",
|
|
10412
|
+
"type": {
|
|
10413
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
10414
|
+
},
|
|
10415
|
+
"default": "\"m\"",
|
|
10416
|
+
"description": "The size of the toggle switch.",
|
|
10417
|
+
"fieldName": "size"
|
|
10418
|
+
},
|
|
10419
|
+
{
|
|
10420
|
+
"name": "label",
|
|
9834
10421
|
"type": {
|
|
9835
10422
|
"text": "string"
|
|
9836
10423
|
},
|
|
9837
10424
|
"default": "\"\"",
|
|
9838
|
-
"description": "
|
|
9839
|
-
"fieldName": "
|
|
10425
|
+
"description": "Label for the input.",
|
|
10426
|
+
"fieldName": "label",
|
|
10427
|
+
"inheritedFrom": {
|
|
10428
|
+
"name": "FormAssociatedMixin",
|
|
10429
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10430
|
+
}
|
|
9840
10431
|
},
|
|
9841
10432
|
{
|
|
9842
|
-
"name": "
|
|
10433
|
+
"name": "hint",
|
|
9843
10434
|
"type": {
|
|
9844
|
-
"text": "
|
|
10435
|
+
"text": "string | undefined"
|
|
9845
10436
|
},
|
|
9846
|
-
"
|
|
9847
|
-
"
|
|
9848
|
-
"
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
"package": "lit"
|
|
9854
|
-
},
|
|
9855
|
-
"status": "ready",
|
|
9856
|
-
"category": "overlay",
|
|
9857
|
-
"tagName": "nord-tooltip",
|
|
9858
|
-
"customElement": true
|
|
9859
|
-
}
|
|
9860
|
-
],
|
|
9861
|
-
"exports": [
|
|
9862
|
-
{
|
|
9863
|
-
"kind": "js",
|
|
9864
|
-
"name": "default",
|
|
9865
|
-
"declaration": {
|
|
9866
|
-
"name": "Tooltip",
|
|
9867
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
9868
|
-
}
|
|
9869
|
-
},
|
|
9870
|
-
{
|
|
9871
|
-
"kind": "custom-element-definition",
|
|
9872
|
-
"name": "nord-tooltip",
|
|
9873
|
-
"declaration": {
|
|
9874
|
-
"name": "Tooltip",
|
|
9875
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
9876
|
-
}
|
|
9877
|
-
}
|
|
9878
|
-
],
|
|
9879
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessibility.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n---\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n---\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n"
|
|
9880
|
-
},
|
|
9881
|
-
{
|
|
9882
|
-
"kind": "javascript-module",
|
|
9883
|
-
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
9884
|
-
"declarations": [
|
|
9885
|
-
{
|
|
9886
|
-
"kind": "class",
|
|
9887
|
-
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
9888
|
-
"name": "VisuallyHidden",
|
|
9889
|
-
"slots": [
|
|
10437
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
10438
|
+
"fieldName": "hint",
|
|
10439
|
+
"inheritedFrom": {
|
|
10440
|
+
"name": "FormAssociatedMixin",
|
|
10441
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10442
|
+
}
|
|
10443
|
+
},
|
|
9890
10444
|
{
|
|
9891
|
-
"
|
|
9892
|
-
"
|
|
10445
|
+
"name": "hide-label",
|
|
10446
|
+
"type": {
|
|
10447
|
+
"text": "boolean"
|
|
10448
|
+
},
|
|
10449
|
+
"default": "false",
|
|
10450
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
10451
|
+
"fieldName": "hideLabel",
|
|
10452
|
+
"inheritedFrom": {
|
|
10453
|
+
"name": "FormAssociatedMixin",
|
|
10454
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10455
|
+
}
|
|
10456
|
+
},
|
|
10457
|
+
{
|
|
10458
|
+
"name": "placeholder",
|
|
10459
|
+
"type": {
|
|
10460
|
+
"text": "string | undefined"
|
|
10461
|
+
},
|
|
10462
|
+
"description": "Placeholder text to display within the input.",
|
|
10463
|
+
"fieldName": "placeholder",
|
|
10464
|
+
"inheritedFrom": {
|
|
10465
|
+
"name": "FormAssociatedMixin",
|
|
10466
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10467
|
+
}
|
|
10468
|
+
},
|
|
10469
|
+
{
|
|
10470
|
+
"name": "error",
|
|
10471
|
+
"type": {
|
|
10472
|
+
"text": "string | undefined"
|
|
10473
|
+
},
|
|
10474
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
10475
|
+
"fieldName": "error",
|
|
10476
|
+
"inheritedFrom": {
|
|
10477
|
+
"name": "FormAssociatedMixin",
|
|
10478
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10479
|
+
}
|
|
10480
|
+
},
|
|
10481
|
+
{
|
|
10482
|
+
"name": "required",
|
|
10483
|
+
"type": {
|
|
10484
|
+
"text": "boolean"
|
|
10485
|
+
},
|
|
10486
|
+
"default": "false",
|
|
10487
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
10488
|
+
"fieldName": "required",
|
|
10489
|
+
"inheritedFrom": {
|
|
10490
|
+
"name": "FormAssociatedMixin",
|
|
10491
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10492
|
+
}
|
|
10493
|
+
},
|
|
10494
|
+
{
|
|
10495
|
+
"name": "expand",
|
|
10496
|
+
"type": {
|
|
10497
|
+
"text": "boolean"
|
|
10498
|
+
},
|
|
10499
|
+
"default": "false",
|
|
10500
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
10501
|
+
"fieldName": "expand",
|
|
10502
|
+
"inheritedFrom": {
|
|
10503
|
+
"name": "FormAssociatedMixin",
|
|
10504
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10505
|
+
}
|
|
10506
|
+
},
|
|
10507
|
+
{
|
|
10508
|
+
"name": "disabled",
|
|
10509
|
+
"type": {
|
|
10510
|
+
"text": "boolean"
|
|
10511
|
+
},
|
|
10512
|
+
"default": "false",
|
|
10513
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
10514
|
+
"fieldName": "disabled",
|
|
10515
|
+
"inheritedFrom": {
|
|
10516
|
+
"name": "InputMixin",
|
|
10517
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10518
|
+
}
|
|
10519
|
+
},
|
|
10520
|
+
{
|
|
10521
|
+
"name": "name",
|
|
10522
|
+
"type": {
|
|
10523
|
+
"text": "string | undefined"
|
|
10524
|
+
},
|
|
10525
|
+
"description": "The name of the form component.",
|
|
10526
|
+
"fieldName": "name",
|
|
10527
|
+
"inheritedFrom": {
|
|
10528
|
+
"name": "InputMixin",
|
|
10529
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10530
|
+
}
|
|
10531
|
+
},
|
|
10532
|
+
{
|
|
10533
|
+
"name": "value",
|
|
10534
|
+
"type": {
|
|
10535
|
+
"text": "string"
|
|
10536
|
+
},
|
|
10537
|
+
"default": "\"\"",
|
|
10538
|
+
"description": "The value of the form component.",
|
|
10539
|
+
"fieldName": "value",
|
|
10540
|
+
"inheritedFrom": {
|
|
10541
|
+
"name": "InputMixin",
|
|
10542
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
10543
|
+
}
|
|
10544
|
+
}
|
|
10545
|
+
],
|
|
10546
|
+
"mixins": [
|
|
10547
|
+
{
|
|
10548
|
+
"name": "DraftComponentMixin",
|
|
10549
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10550
|
+
},
|
|
10551
|
+
{
|
|
10552
|
+
"name": "FormAssociatedMixin",
|
|
10553
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
10554
|
+
},
|
|
10555
|
+
{
|
|
10556
|
+
"name": "InputMixin",
|
|
10557
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
10558
|
+
},
|
|
10559
|
+
{
|
|
10560
|
+
"name": "FocusableMixin",
|
|
10561
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9893
10562
|
}
|
|
9894
10563
|
],
|
|
9895
|
-
"members": [],
|
|
9896
10564
|
"superclass": {
|
|
9897
10565
|
"name": "LitElement",
|
|
9898
10566
|
"package": "lit"
|
|
9899
10567
|
},
|
|
9900
|
-
"status": "
|
|
9901
|
-
"category": "
|
|
9902
|
-
"tagName": "nord-
|
|
9903
|
-
"customElement": true
|
|
9904
|
-
|
|
9905
|
-
],
|
|
9906
|
-
"exports": [
|
|
9907
|
-
{
|
|
9908
|
-
"kind": "js",
|
|
9909
|
-
"name": "default",
|
|
9910
|
-
"declaration": {
|
|
9911
|
-
"name": "VisuallyHidden",
|
|
9912
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9913
|
-
}
|
|
9914
|
-
},
|
|
9915
|
-
{
|
|
9916
|
-
"kind": "custom-element-definition",
|
|
9917
|
-
"name": "nord-visually-hidden",
|
|
9918
|
-
"declaration": {
|
|
9919
|
-
"name": "VisuallyHidden",
|
|
9920
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9921
|
-
}
|
|
9922
|
-
}
|
|
9923
|
-
],
|
|
9924
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n"
|
|
9925
|
-
},
|
|
9926
|
-
{
|
|
9927
|
-
"kind": "javascript-module",
|
|
9928
|
-
"path": "src/common/decorators/observe.ts",
|
|
9929
|
-
"declarations": [
|
|
9930
|
-
{
|
|
9931
|
-
"kind": "function",
|
|
9932
|
-
"name": "observe",
|
|
9933
|
-
"parameters": [
|
|
10568
|
+
"status": "draft",
|
|
10569
|
+
"category": "form",
|
|
10570
|
+
"tagName": "nord-toggle",
|
|
10571
|
+
"customElement": true,
|
|
10572
|
+
"events": [
|
|
9934
10573
|
{
|
|
9935
|
-
"name": "
|
|
10574
|
+
"name": "input",
|
|
9936
10575
|
"type": {
|
|
9937
|
-
"text": "
|
|
10576
|
+
"text": "NordEvent"
|
|
10577
|
+
},
|
|
10578
|
+
"description": "Fired as the user types into the input.",
|
|
10579
|
+
"inheritedFrom": {
|
|
10580
|
+
"name": "FormAssociatedMixin",
|
|
10581
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
9938
10582
|
}
|
|
9939
10583
|
},
|
|
9940
10584
|
{
|
|
9941
|
-
"name": "
|
|
9942
|
-
"default": "\"update\"",
|
|
10585
|
+
"name": "change",
|
|
9943
10586
|
"type": {
|
|
9944
|
-
"text": "
|
|
10587
|
+
"text": "NordEvent"
|
|
10588
|
+
},
|
|
10589
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
10590
|
+
"inheritedFrom": {
|
|
10591
|
+
"name": "FormAssociatedMixin",
|
|
10592
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
9945
10593
|
}
|
|
9946
10594
|
}
|
|
9947
10595
|
]
|
|
@@ -9950,221 +10598,720 @@
|
|
|
9950
10598
|
"exports": [
|
|
9951
10599
|
{
|
|
9952
10600
|
"kind": "js",
|
|
9953
|
-
"name": "
|
|
10601
|
+
"name": "default",
|
|
9954
10602
|
"declaration": {
|
|
9955
|
-
"name": "
|
|
9956
|
-
"module": "src/
|
|
10603
|
+
"name": "Toggle",
|
|
10604
|
+
"module": "src/toggle/Toggle.ts"
|
|
10605
|
+
}
|
|
10606
|
+
},
|
|
10607
|
+
{
|
|
10608
|
+
"kind": "custom-element-definition",
|
|
10609
|
+
"name": "nord-toggle",
|
|
10610
|
+
"declaration": {
|
|
10611
|
+
"name": "Toggle",
|
|
10612
|
+
"module": "src/toggle/Toggle.ts"
|
|
9957
10613
|
}
|
|
9958
10614
|
}
|
|
9959
|
-
]
|
|
10615
|
+
],
|
|
10616
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for any feature or option that can be turned on or off.\n- If a physical switch would work for the action, the toggle is probably the best component to use.\n- Use for making it possible to choose one or more options from a limited number of options.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another toggle when another one is clicked. Only exception is when a toggle is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nToggle labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing toggle labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n"
|
|
9960
10617
|
},
|
|
9961
10618
|
{
|
|
9962
10619
|
"kind": "javascript-module",
|
|
9963
|
-
"path": "src/
|
|
10620
|
+
"path": "src/tooltip/Tooltip.ts",
|
|
9964
10621
|
"declarations": [
|
|
9965
10622
|
{
|
|
9966
|
-
"kind": "
|
|
9967
|
-
"
|
|
9968
|
-
"
|
|
9969
|
-
|
|
9970
|
-
"text": "typeof value | typeof nothing"
|
|
9971
|
-
}
|
|
9972
|
-
},
|
|
9973
|
-
"parameters": [
|
|
9974
|
-
{
|
|
9975
|
-
"name": "value",
|
|
9976
|
-
"type": {
|
|
9977
|
-
"text": "any"
|
|
9978
|
-
}
|
|
9979
|
-
}
|
|
9980
|
-
],
|
|
9981
|
-
"description": "if value is truthy, return it, otherwise return nothing"
|
|
9982
|
-
},
|
|
9983
|
-
{
|
|
9984
|
-
"kind": "function",
|
|
9985
|
-
"name": "cond",
|
|
9986
|
-
"return": {
|
|
9987
|
-
"type": {
|
|
9988
|
-
"text": "typeof trueCase | typeof nothing"
|
|
9989
|
-
}
|
|
9990
|
-
},
|
|
9991
|
-
"parameters": [
|
|
10623
|
+
"kind": "class",
|
|
10624
|
+
"description": "Tooltips are floating containers for displaying additional information\nfor the currently focused element. A tooltip can be useful when you want\nto e.g. give a hint about an existing Command Menu shortcut.",
|
|
10625
|
+
"name": "Tooltip",
|
|
10626
|
+
"slots": [
|
|
9992
10627
|
{
|
|
9993
|
-
"
|
|
9994
|
-
"
|
|
9995
|
-
"text": "unknown"
|
|
9996
|
-
}
|
|
10628
|
+
"description": "The tooltip content",
|
|
10629
|
+
"name": ""
|
|
9997
10630
|
},
|
|
9998
10631
|
{
|
|
9999
|
-
"
|
|
10000
|
-
"
|
|
10001
|
-
"text": "any"
|
|
10002
|
-
}
|
|
10632
|
+
"description": "Optional slot that holds shortcut keys to access the subject",
|
|
10633
|
+
"name": "shortcut"
|
|
10003
10634
|
}
|
|
10004
10635
|
],
|
|
10005
|
-
"
|
|
10006
|
-
},
|
|
10007
|
-
{
|
|
10008
|
-
"kind": "function",
|
|
10009
|
-
"name": "cond",
|
|
10010
|
-
"return": {
|
|
10011
|
-
"type": {
|
|
10012
|
-
"text": "typeof trueCase"
|
|
10013
|
-
}
|
|
10014
|
-
},
|
|
10015
|
-
"parameters": [
|
|
10636
|
+
"members": [
|
|
10016
10637
|
{
|
|
10017
|
-
"
|
|
10638
|
+
"kind": "field",
|
|
10639
|
+
"name": "lastOpened",
|
|
10018
10640
|
"type": {
|
|
10019
|
-
"text": "
|
|
10020
|
-
}
|
|
10641
|
+
"text": "Tooltip | undefined"
|
|
10642
|
+
},
|
|
10643
|
+
"privacy": "private",
|
|
10644
|
+
"static": true
|
|
10021
10645
|
},
|
|
10022
10646
|
{
|
|
10023
|
-
"
|
|
10024
|
-
"
|
|
10025
|
-
|
|
10026
|
-
|
|
10647
|
+
"kind": "field",
|
|
10648
|
+
"name": "shortcutSlot",
|
|
10649
|
+
"privacy": "private",
|
|
10650
|
+
"default": "new SlotController(this, \"shortcut\")"
|
|
10651
|
+
},
|
|
10652
|
+
{
|
|
10653
|
+
"kind": "field",
|
|
10654
|
+
"name": "events",
|
|
10655
|
+
"privacy": "private",
|
|
10656
|
+
"default": "new EventController(this)"
|
|
10657
|
+
},
|
|
10658
|
+
{
|
|
10659
|
+
"kind": "field",
|
|
10660
|
+
"name": "currentElement",
|
|
10661
|
+
"type": {
|
|
10662
|
+
"text": "FocusableElement | undefined"
|
|
10663
|
+
},
|
|
10664
|
+
"privacy": "private"
|
|
10665
|
+
},
|
|
10666
|
+
{
|
|
10667
|
+
"kind": "field",
|
|
10668
|
+
"name": "timeoutId",
|
|
10669
|
+
"type": {
|
|
10670
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
10671
|
+
},
|
|
10672
|
+
"privacy": "private"
|
|
10673
|
+
},
|
|
10674
|
+
{
|
|
10675
|
+
"kind": "field",
|
|
10676
|
+
"name": "proxy",
|
|
10677
|
+
"privacy": "private",
|
|
10678
|
+
"description": "the proxy element is for cases where the targetElement is a web component,\nand the WC has a focusable child in its shadow root e.g. a button component.\nin this case, when the tooltip is shown, we inject the proxy into targetElement's shadow root\nand wire up aria-describedby from the focusable element to the proxy.\nwhen the tooltip is hidden, we remove the proxy and remove the aria-describedby relationship."
|
|
10679
|
+
},
|
|
10680
|
+
{
|
|
10681
|
+
"kind": "field",
|
|
10682
|
+
"name": "state",
|
|
10683
|
+
"type": {
|
|
10684
|
+
"text": "TooltipStates"
|
|
10685
|
+
},
|
|
10686
|
+
"privacy": "private",
|
|
10687
|
+
"default": "\"hidden\"",
|
|
10688
|
+
"description": "The current state of the tooltip, dependent on the state machine"
|
|
10689
|
+
},
|
|
10690
|
+
{
|
|
10691
|
+
"kind": "field",
|
|
10692
|
+
"name": "coords",
|
|
10693
|
+
"type": {
|
|
10694
|
+
"text": "[number, number]"
|
|
10695
|
+
},
|
|
10696
|
+
"privacy": "private",
|
|
10697
|
+
"default": "[0, 0]"
|
|
10698
|
+
},
|
|
10699
|
+
{
|
|
10700
|
+
"kind": "field",
|
|
10701
|
+
"name": "position",
|
|
10702
|
+
"type": {
|
|
10703
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10704
|
+
},
|
|
10705
|
+
"default": "\"block-start\"",
|
|
10706
|
+
"description": "Control the position of the tooltip component.\nWhen set to \"none\", the tooltip will be shown above\nbut accommodate for browser boundaries.",
|
|
10707
|
+
"attribute": "position",
|
|
10708
|
+
"reflects": true
|
|
10709
|
+
},
|
|
10710
|
+
{
|
|
10711
|
+
"kind": "field",
|
|
10712
|
+
"name": "role",
|
|
10713
|
+
"type": {
|
|
10714
|
+
"text": "string"
|
|
10715
|
+
},
|
|
10716
|
+
"default": "\"tooltip\"",
|
|
10717
|
+
"description": "The tooltip role, set on the component by default.",
|
|
10718
|
+
"attribute": "role",
|
|
10719
|
+
"reflects": true
|
|
10720
|
+
},
|
|
10721
|
+
{
|
|
10722
|
+
"kind": "field",
|
|
10723
|
+
"name": "id",
|
|
10724
|
+
"type": {
|
|
10725
|
+
"text": "string"
|
|
10726
|
+
},
|
|
10727
|
+
"default": "\"\"",
|
|
10728
|
+
"description": "The id for the active element to reference via aria-describedby.",
|
|
10729
|
+
"attribute": "id",
|
|
10730
|
+
"reflects": true
|
|
10731
|
+
},
|
|
10732
|
+
{
|
|
10733
|
+
"kind": "field",
|
|
10734
|
+
"name": "delay",
|
|
10735
|
+
"type": {
|
|
10736
|
+
"text": "number"
|
|
10737
|
+
},
|
|
10738
|
+
"default": "500",
|
|
10739
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
10740
|
+
"attribute": "delay",
|
|
10741
|
+
"reflects": true
|
|
10742
|
+
},
|
|
10743
|
+
{
|
|
10744
|
+
"kind": "method",
|
|
10745
|
+
"name": "handleIdChange",
|
|
10746
|
+
"privacy": "protected"
|
|
10747
|
+
},
|
|
10748
|
+
{
|
|
10749
|
+
"kind": "method",
|
|
10750
|
+
"name": "handleStateChange",
|
|
10751
|
+
"privacy": "private",
|
|
10752
|
+
"parameters": [
|
|
10753
|
+
{
|
|
10754
|
+
"name": "prevState",
|
|
10755
|
+
"type": {
|
|
10756
|
+
"text": "TooltipStates"
|
|
10757
|
+
}
|
|
10758
|
+
}
|
|
10759
|
+
]
|
|
10760
|
+
},
|
|
10761
|
+
{
|
|
10762
|
+
"kind": "field",
|
|
10763
|
+
"name": "updatePosition",
|
|
10764
|
+
"privacy": "private",
|
|
10765
|
+
"description": "Setting and updating the position of the tooltip"
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
"kind": "field",
|
|
10769
|
+
"name": "hideTooltip",
|
|
10770
|
+
"privacy": "private"
|
|
10771
|
+
},
|
|
10772
|
+
{
|
|
10773
|
+
"kind": "field",
|
|
10774
|
+
"name": "reposition",
|
|
10775
|
+
"privacy": "private"
|
|
10776
|
+
},
|
|
10777
|
+
{
|
|
10778
|
+
"kind": "field",
|
|
10779
|
+
"name": "handleShow",
|
|
10780
|
+
"privacy": "private"
|
|
10781
|
+
},
|
|
10782
|
+
{
|
|
10783
|
+
"kind": "field",
|
|
10784
|
+
"name": "handleHide",
|
|
10785
|
+
"privacy": "private"
|
|
10786
|
+
},
|
|
10787
|
+
{
|
|
10788
|
+
"kind": "field",
|
|
10789
|
+
"name": "hideOnEscape",
|
|
10790
|
+
"privacy": "private"
|
|
10791
|
+
},
|
|
10792
|
+
{
|
|
10793
|
+
"kind": "field",
|
|
10794
|
+
"name": "addDescribedBy",
|
|
10795
|
+
"privacy": "private"
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
"kind": "field",
|
|
10799
|
+
"name": "removeDescribedBy",
|
|
10800
|
+
"privacy": "private"
|
|
10027
10801
|
}
|
|
10028
10802
|
],
|
|
10029
|
-
"
|
|
10030
|
-
},
|
|
10031
|
-
{
|
|
10032
|
-
"kind": "function",
|
|
10033
|
-
"name": "cond",
|
|
10034
|
-
"return": {
|
|
10035
|
-
"type": {
|
|
10036
|
-
"text": "typeof nothing"
|
|
10037
|
-
}
|
|
10038
|
-
},
|
|
10039
|
-
"parameters": [
|
|
10803
|
+
"attributes": [
|
|
10040
10804
|
{
|
|
10041
|
-
"name": "
|
|
10805
|
+
"name": "position",
|
|
10042
10806
|
"type": {
|
|
10043
|
-
"text": "
|
|
10044
|
-
}
|
|
10807
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10808
|
+
},
|
|
10809
|
+
"default": "\"block-start\"",
|
|
10810
|
+
"description": "Control the position of the tooltip component.\nWhen set to \"none\", the tooltip will be shown above\nbut accommodate for browser boundaries.",
|
|
10811
|
+
"fieldName": "position"
|
|
10045
10812
|
},
|
|
10046
10813
|
{
|
|
10047
|
-
"name": "
|
|
10814
|
+
"name": "role",
|
|
10048
10815
|
"type": {
|
|
10049
|
-
"text": "
|
|
10050
|
-
}
|
|
10816
|
+
"text": "string"
|
|
10817
|
+
},
|
|
10818
|
+
"default": "\"tooltip\"",
|
|
10819
|
+
"description": "The tooltip role, set on the component by default.",
|
|
10820
|
+
"fieldName": "role"
|
|
10821
|
+
},
|
|
10822
|
+
{
|
|
10823
|
+
"name": "id",
|
|
10824
|
+
"type": {
|
|
10825
|
+
"text": "string"
|
|
10826
|
+
},
|
|
10827
|
+
"default": "\"\"",
|
|
10828
|
+
"description": "The id for the active element to reference via aria-describedby.",
|
|
10829
|
+
"fieldName": "id"
|
|
10830
|
+
},
|
|
10831
|
+
{
|
|
10832
|
+
"name": "delay",
|
|
10833
|
+
"type": {
|
|
10834
|
+
"text": "number"
|
|
10835
|
+
},
|
|
10836
|
+
"default": "500",
|
|
10837
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
10838
|
+
"fieldName": "delay"
|
|
10839
|
+
}
|
|
10840
|
+
],
|
|
10841
|
+
"superclass": {
|
|
10842
|
+
"name": "LitElement",
|
|
10843
|
+
"package": "lit"
|
|
10844
|
+
},
|
|
10845
|
+
"status": "ready",
|
|
10846
|
+
"category": "overlay",
|
|
10847
|
+
"tagName": "nord-tooltip",
|
|
10848
|
+
"customElement": true
|
|
10849
|
+
}
|
|
10850
|
+
],
|
|
10851
|
+
"exports": [
|
|
10852
|
+
{
|
|
10853
|
+
"kind": "js",
|
|
10854
|
+
"name": "default",
|
|
10855
|
+
"declaration": {
|
|
10856
|
+
"name": "Tooltip",
|
|
10857
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
10858
|
+
}
|
|
10859
|
+
},
|
|
10860
|
+
{
|
|
10861
|
+
"kind": "custom-element-definition",
|
|
10862
|
+
"name": "nord-tooltip",
|
|
10863
|
+
"declaration": {
|
|
10864
|
+
"name": "Tooltip",
|
|
10865
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
10866
|
+
}
|
|
10867
|
+
}
|
|
10868
|
+
],
|
|
10869
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessibility.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n---\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n---\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n"
|
|
10870
|
+
},
|
|
10871
|
+
{
|
|
10872
|
+
"kind": "javascript-module",
|
|
10873
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
10874
|
+
"declarations": [
|
|
10875
|
+
{
|
|
10876
|
+
"kind": "class",
|
|
10877
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
10878
|
+
"name": "VisuallyHidden",
|
|
10879
|
+
"slots": [
|
|
10880
|
+
{
|
|
10881
|
+
"description": "The visually hidden content.",
|
|
10882
|
+
"name": ""
|
|
10883
|
+
}
|
|
10884
|
+
],
|
|
10885
|
+
"members": [],
|
|
10886
|
+
"superclass": {
|
|
10887
|
+
"name": "LitElement",
|
|
10888
|
+
"package": "lit"
|
|
10889
|
+
},
|
|
10890
|
+
"status": "ready",
|
|
10891
|
+
"category": "text",
|
|
10892
|
+
"tagName": "nord-visually-hidden",
|
|
10893
|
+
"customElement": true
|
|
10894
|
+
}
|
|
10895
|
+
],
|
|
10896
|
+
"exports": [
|
|
10897
|
+
{
|
|
10898
|
+
"kind": "js",
|
|
10899
|
+
"name": "default",
|
|
10900
|
+
"declaration": {
|
|
10901
|
+
"name": "VisuallyHidden",
|
|
10902
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
10903
|
+
}
|
|
10904
|
+
},
|
|
10905
|
+
{
|
|
10906
|
+
"kind": "custom-element-definition",
|
|
10907
|
+
"name": "nord-visually-hidden",
|
|
10908
|
+
"declaration": {
|
|
10909
|
+
"name": "VisuallyHidden",
|
|
10910
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
10911
|
+
}
|
|
10912
|
+
}
|
|
10913
|
+
],
|
|
10914
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n"
|
|
10915
|
+
},
|
|
10916
|
+
{
|
|
10917
|
+
"kind": "javascript-module",
|
|
10918
|
+
"path": "src/common/controllers/DirectionController.ts",
|
|
10919
|
+
"declarations": [
|
|
10920
|
+
{
|
|
10921
|
+
"kind": "class",
|
|
10922
|
+
"description": "",
|
|
10923
|
+
"name": "DirectionController",
|
|
10924
|
+
"members": [
|
|
10925
|
+
{
|
|
10926
|
+
"kind": "field",
|
|
10927
|
+
"name": "hosts",
|
|
10928
|
+
"privacy": "private",
|
|
10929
|
+
"static": true,
|
|
10930
|
+
"default": "new Set<ReactiveControllerHost>()"
|
|
10931
|
+
},
|
|
10932
|
+
{
|
|
10933
|
+
"kind": "field",
|
|
10934
|
+
"name": "observer",
|
|
10935
|
+
"type": {
|
|
10936
|
+
"text": "MutationObserver | undefined"
|
|
10937
|
+
},
|
|
10938
|
+
"privacy": "private",
|
|
10939
|
+
"static": true
|
|
10940
|
+
},
|
|
10941
|
+
{
|
|
10942
|
+
"kind": "field",
|
|
10943
|
+
"name": "dir",
|
|
10944
|
+
"type": {
|
|
10945
|
+
"text": "WritingDirection"
|
|
10946
|
+
}
|
|
10947
|
+
},
|
|
10948
|
+
{
|
|
10949
|
+
"kind": "field",
|
|
10950
|
+
"name": "isLTR"
|
|
10951
|
+
},
|
|
10952
|
+
{
|
|
10953
|
+
"kind": "field",
|
|
10954
|
+
"name": "isRTL"
|
|
10955
|
+
},
|
|
10956
|
+
{
|
|
10957
|
+
"kind": "method",
|
|
10958
|
+
"name": "hostConnected"
|
|
10959
|
+
},
|
|
10960
|
+
{
|
|
10961
|
+
"kind": "method",
|
|
10962
|
+
"name": "hostDisconnected"
|
|
10963
|
+
},
|
|
10964
|
+
{
|
|
10965
|
+
"kind": "method",
|
|
10966
|
+
"name": "observe",
|
|
10967
|
+
"privacy": "private",
|
|
10968
|
+
"static": true
|
|
10969
|
+
}
|
|
10970
|
+
]
|
|
10971
|
+
}
|
|
10972
|
+
],
|
|
10973
|
+
"exports": [
|
|
10974
|
+
{
|
|
10975
|
+
"kind": "js",
|
|
10976
|
+
"name": "DirectionController",
|
|
10977
|
+
"declaration": {
|
|
10978
|
+
"name": "DirectionController",
|
|
10979
|
+
"module": "src/common/controllers/DirectionController.ts"
|
|
10980
|
+
}
|
|
10981
|
+
}
|
|
10982
|
+
]
|
|
10983
|
+
},
|
|
10984
|
+
{
|
|
10985
|
+
"kind": "javascript-module",
|
|
10986
|
+
"path": "src/common/controllers/EventController.ts",
|
|
10987
|
+
"declarations": [
|
|
10988
|
+
{
|
|
10989
|
+
"kind": "class",
|
|
10990
|
+
"description": "",
|
|
10991
|
+
"name": "EventController",
|
|
10992
|
+
"members": [
|
|
10993
|
+
{
|
|
10994
|
+
"kind": "field",
|
|
10995
|
+
"name": "listeners",
|
|
10996
|
+
"type": {
|
|
10997
|
+
"text": "Array<() => void>"
|
|
10998
|
+
},
|
|
10999
|
+
"privacy": "private",
|
|
11000
|
+
"default": "[]"
|
|
11001
|
+
},
|
|
11002
|
+
{
|
|
11003
|
+
"kind": "method",
|
|
11004
|
+
"name": "hostDisconnected"
|
|
11005
|
+
},
|
|
11006
|
+
{
|
|
11007
|
+
"kind": "method",
|
|
11008
|
+
"name": "listen",
|
|
11009
|
+
"return": {
|
|
11010
|
+
"type": {
|
|
11011
|
+
"text": "void"
|
|
11012
|
+
}
|
|
11013
|
+
},
|
|
11014
|
+
"parameters": [
|
|
11015
|
+
{
|
|
11016
|
+
"name": "window",
|
|
11017
|
+
"type": {
|
|
11018
|
+
"text": "Window"
|
|
11019
|
+
}
|
|
11020
|
+
},
|
|
11021
|
+
{
|
|
11022
|
+
"name": "type",
|
|
11023
|
+
"type": {
|
|
11024
|
+
"text": "K"
|
|
11025
|
+
}
|
|
11026
|
+
},
|
|
11027
|
+
{
|
|
11028
|
+
"name": "listener",
|
|
11029
|
+
"type": {
|
|
11030
|
+
"text": "(this: Window, ev: WindowEventMap[K]) => any"
|
|
11031
|
+
}
|
|
11032
|
+
},
|
|
11033
|
+
{
|
|
11034
|
+
"name": "options",
|
|
11035
|
+
"optional": true,
|
|
11036
|
+
"type": {
|
|
11037
|
+
"text": "boolean | AddEventListenerOptions"
|
|
11038
|
+
}
|
|
11039
|
+
}
|
|
11040
|
+
]
|
|
11041
|
+
},
|
|
11042
|
+
{
|
|
11043
|
+
"kind": "method",
|
|
11044
|
+
"name": "listen",
|
|
11045
|
+
"return": {
|
|
11046
|
+
"type": {
|
|
11047
|
+
"text": "void"
|
|
11048
|
+
}
|
|
11049
|
+
},
|
|
11050
|
+
"parameters": [
|
|
11051
|
+
{
|
|
11052
|
+
"name": "document",
|
|
11053
|
+
"type": {
|
|
11054
|
+
"text": "Document"
|
|
11055
|
+
}
|
|
11056
|
+
},
|
|
11057
|
+
{
|
|
11058
|
+
"name": "type",
|
|
11059
|
+
"type": {
|
|
11060
|
+
"text": "K"
|
|
11061
|
+
}
|
|
11062
|
+
},
|
|
11063
|
+
{
|
|
11064
|
+
"name": "listener",
|
|
11065
|
+
"type": {
|
|
11066
|
+
"text": "(this: Document, ev: DocumentEventMap[K]) => any"
|
|
11067
|
+
}
|
|
11068
|
+
},
|
|
11069
|
+
{
|
|
11070
|
+
"name": "options",
|
|
11071
|
+
"optional": true,
|
|
11072
|
+
"type": {
|
|
11073
|
+
"text": "boolean | AddEventListenerOptions"
|
|
11074
|
+
}
|
|
11075
|
+
}
|
|
11076
|
+
]
|
|
11077
|
+
},
|
|
11078
|
+
{
|
|
11079
|
+
"kind": "method",
|
|
11080
|
+
"name": "listen",
|
|
11081
|
+
"return": {
|
|
11082
|
+
"type": {
|
|
11083
|
+
"text": "void"
|
|
11084
|
+
}
|
|
11085
|
+
},
|
|
11086
|
+
"parameters": [
|
|
11087
|
+
{
|
|
11088
|
+
"name": "element",
|
|
11089
|
+
"type": {
|
|
11090
|
+
"text": "HTMLElement"
|
|
11091
|
+
}
|
|
11092
|
+
},
|
|
11093
|
+
{
|
|
11094
|
+
"name": "type",
|
|
11095
|
+
"type": {
|
|
11096
|
+
"text": "K"
|
|
11097
|
+
}
|
|
11098
|
+
},
|
|
11099
|
+
{
|
|
11100
|
+
"name": "listener",
|
|
11101
|
+
"type": {
|
|
11102
|
+
"text": "(this: HTMLElement, ev: HTMLElementEventMap[K]) => any"
|
|
11103
|
+
}
|
|
11104
|
+
},
|
|
11105
|
+
{
|
|
11106
|
+
"name": "options",
|
|
11107
|
+
"optional": true,
|
|
11108
|
+
"type": {
|
|
11109
|
+
"text": "boolean | AddEventListenerOptions"
|
|
11110
|
+
}
|
|
11111
|
+
}
|
|
11112
|
+
]
|
|
11113
|
+
},
|
|
11114
|
+
{
|
|
11115
|
+
"kind": "method",
|
|
11116
|
+
"name": "listen",
|
|
11117
|
+
"return": {
|
|
11118
|
+
"type": {
|
|
11119
|
+
"text": "void"
|
|
11120
|
+
}
|
|
11121
|
+
},
|
|
11122
|
+
"parameters": [
|
|
11123
|
+
{
|
|
11124
|
+
"name": "element",
|
|
11125
|
+
"type": {
|
|
11126
|
+
"text": "ShadowRoot"
|
|
11127
|
+
}
|
|
11128
|
+
},
|
|
11129
|
+
{
|
|
11130
|
+
"name": "type",
|
|
11131
|
+
"type": {
|
|
11132
|
+
"text": "K"
|
|
11133
|
+
}
|
|
11134
|
+
},
|
|
11135
|
+
{
|
|
11136
|
+
"name": "listener",
|
|
11137
|
+
"type": {
|
|
11138
|
+
"text": "(this: ShadowRoot, ev: ShadowRootEventMap[K]) => any"
|
|
11139
|
+
}
|
|
11140
|
+
},
|
|
11141
|
+
{
|
|
11142
|
+
"name": "options",
|
|
11143
|
+
"optional": true,
|
|
11144
|
+
"type": {
|
|
11145
|
+
"text": "boolean | AddEventListenerOptions"
|
|
11146
|
+
}
|
|
11147
|
+
}
|
|
11148
|
+
]
|
|
11149
|
+
},
|
|
11150
|
+
{
|
|
11151
|
+
"kind": "method",
|
|
11152
|
+
"name": "listen",
|
|
11153
|
+
"parameters": [
|
|
11154
|
+
{
|
|
11155
|
+
"name": "element",
|
|
11156
|
+
"type": {
|
|
11157
|
+
"text": "Window | Document | HTMLElement | ShadowRoot"
|
|
11158
|
+
}
|
|
11159
|
+
},
|
|
11160
|
+
{
|
|
11161
|
+
"name": "type",
|
|
11162
|
+
"type": {
|
|
11163
|
+
"text": "string"
|
|
11164
|
+
}
|
|
11165
|
+
},
|
|
11166
|
+
{
|
|
11167
|
+
"name": "listener",
|
|
11168
|
+
"type": {
|
|
11169
|
+
"text": "(ev: any) => any"
|
|
11170
|
+
}
|
|
11171
|
+
},
|
|
11172
|
+
{
|
|
11173
|
+
"name": "options",
|
|
11174
|
+
"optional": true,
|
|
11175
|
+
"type": {
|
|
11176
|
+
"text": "boolean | AddEventListenerOptions"
|
|
11177
|
+
}
|
|
11178
|
+
}
|
|
11179
|
+
]
|
|
10051
11180
|
}
|
|
10052
|
-
]
|
|
10053
|
-
|
|
10054
|
-
|
|
11181
|
+
]
|
|
11182
|
+
}
|
|
11183
|
+
],
|
|
11184
|
+
"exports": [
|
|
10055
11185
|
{
|
|
10056
|
-
"kind": "
|
|
10057
|
-
"name": "
|
|
10058
|
-
"
|
|
10059
|
-
"
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
11186
|
+
"kind": "js",
|
|
11187
|
+
"name": "EventController",
|
|
11188
|
+
"declaration": {
|
|
11189
|
+
"name": "EventController",
|
|
11190
|
+
"module": "src/common/controllers/EventController.ts"
|
|
11191
|
+
}
|
|
11192
|
+
}
|
|
11193
|
+
]
|
|
11194
|
+
},
|
|
11195
|
+
{
|
|
11196
|
+
"kind": "javascript-module",
|
|
11197
|
+
"path": "src/common/controllers/FormDataController.ts",
|
|
11198
|
+
"declarations": [
|
|
11199
|
+
{
|
|
11200
|
+
"kind": "class",
|
|
11201
|
+
"description": "",
|
|
11202
|
+
"name": "FormDataController",
|
|
11203
|
+
"members": [
|
|
10064
11204
|
{
|
|
10065
|
-
"
|
|
11205
|
+
"kind": "field",
|
|
11206
|
+
"name": "events",
|
|
10066
11207
|
"type": {
|
|
10067
|
-
"text": "
|
|
10068
|
-
}
|
|
11208
|
+
"text": "EventController"
|
|
11209
|
+
},
|
|
11210
|
+
"privacy": "private",
|
|
11211
|
+
"default": "new EventController(host)"
|
|
10069
11212
|
},
|
|
10070
11213
|
{
|
|
10071
|
-
"
|
|
10072
|
-
"
|
|
10073
|
-
"text": "any"
|
|
10074
|
-
}
|
|
11214
|
+
"kind": "method",
|
|
11215
|
+
"name": "hostConnected"
|
|
10075
11216
|
},
|
|
10076
11217
|
{
|
|
10077
|
-
"
|
|
10078
|
-
"
|
|
10079
|
-
|
|
10080
|
-
}
|
|
11218
|
+
"kind": "field",
|
|
11219
|
+
"name": "handleFormData",
|
|
11220
|
+
"privacy": "private"
|
|
10081
11221
|
}
|
|
10082
|
-
]
|
|
10083
|
-
|
|
10084
|
-
|
|
11222
|
+
]
|
|
11223
|
+
}
|
|
11224
|
+
],
|
|
11225
|
+
"exports": [
|
|
10085
11226
|
{
|
|
10086
|
-
"kind": "
|
|
10087
|
-
"name": "
|
|
10088
|
-
"
|
|
10089
|
-
"
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
11227
|
+
"kind": "js",
|
|
11228
|
+
"name": "FormDataController",
|
|
11229
|
+
"declaration": {
|
|
11230
|
+
"name": "FormDataController",
|
|
11231
|
+
"module": "src/common/controllers/FormDataController.ts"
|
|
11232
|
+
}
|
|
11233
|
+
}
|
|
11234
|
+
]
|
|
11235
|
+
},
|
|
11236
|
+
{
|
|
11237
|
+
"kind": "javascript-module",
|
|
11238
|
+
"path": "src/common/controllers/LightDismissController.ts",
|
|
11239
|
+
"declarations": [
|
|
11240
|
+
{
|
|
11241
|
+
"kind": "class",
|
|
11242
|
+
"description": "",
|
|
11243
|
+
"name": "LightDismissController",
|
|
11244
|
+
"members": [
|
|
10094
11245
|
{
|
|
10095
|
-
"
|
|
11246
|
+
"kind": "field",
|
|
11247
|
+
"name": "shortcut",
|
|
10096
11248
|
"type": {
|
|
10097
|
-
"text": "
|
|
10098
|
-
}
|
|
11249
|
+
"text": "ShortcutController"
|
|
11250
|
+
},
|
|
11251
|
+
"privacy": "private",
|
|
11252
|
+
"default": "new ShortcutController(host, { Escape: this.handleEsc })"
|
|
10099
11253
|
},
|
|
10100
11254
|
{
|
|
10101
|
-
"
|
|
11255
|
+
"kind": "field",
|
|
11256
|
+
"name": "events",
|
|
10102
11257
|
"type": {
|
|
10103
|
-
"text": "
|
|
10104
|
-
}
|
|
11258
|
+
"text": "EventController"
|
|
11259
|
+
},
|
|
11260
|
+
"privacy": "private",
|
|
11261
|
+
"default": "new EventController(host)"
|
|
10105
11262
|
},
|
|
10106
11263
|
{
|
|
10107
|
-
"
|
|
10108
|
-
"
|
|
10109
|
-
"text": "any"
|
|
10110
|
-
}
|
|
10111
|
-
}
|
|
10112
|
-
],
|
|
10113
|
-
"description": "condition is true, so always return trueCase"
|
|
10114
|
-
},
|
|
10115
|
-
{
|
|
10116
|
-
"kind": "function",
|
|
10117
|
-
"name": "cond",
|
|
10118
|
-
"return": {
|
|
10119
|
-
"type": {
|
|
10120
|
-
"text": "typeof falseCase"
|
|
10121
|
-
}
|
|
10122
|
-
},
|
|
10123
|
-
"parameters": [
|
|
10124
|
-
{
|
|
10125
|
-
"name": "condition",
|
|
10126
|
-
"type": {
|
|
10127
|
-
"text": "false"
|
|
10128
|
-
}
|
|
11264
|
+
"kind": "method",
|
|
11265
|
+
"name": "hostConnected"
|
|
10129
11266
|
},
|
|
10130
11267
|
{
|
|
10131
|
-
"
|
|
10132
|
-
"
|
|
10133
|
-
|
|
10134
|
-
}
|
|
11268
|
+
"kind": "field",
|
|
11269
|
+
"name": "handleEsc",
|
|
11270
|
+
"privacy": "private"
|
|
10135
11271
|
},
|
|
10136
11272
|
{
|
|
10137
|
-
"
|
|
10138
|
-
"
|
|
10139
|
-
|
|
10140
|
-
}
|
|
11273
|
+
"kind": "field",
|
|
11274
|
+
"name": "handleClickOut",
|
|
11275
|
+
"privacy": "private"
|
|
10141
11276
|
}
|
|
10142
|
-
]
|
|
10143
|
-
|
|
10144
|
-
|
|
11277
|
+
]
|
|
11278
|
+
}
|
|
11279
|
+
],
|
|
11280
|
+
"exports": [
|
|
10145
11281
|
{
|
|
10146
|
-
"kind": "
|
|
10147
|
-
"name": "
|
|
10148
|
-
"
|
|
11282
|
+
"kind": "js",
|
|
11283
|
+
"name": "LightDismissController",
|
|
11284
|
+
"declaration": {
|
|
11285
|
+
"name": "LightDismissController",
|
|
11286
|
+
"module": "src/common/controllers/LightDismissController.ts"
|
|
11287
|
+
}
|
|
11288
|
+
}
|
|
11289
|
+
]
|
|
11290
|
+
},
|
|
11291
|
+
{
|
|
11292
|
+
"kind": "javascript-module",
|
|
11293
|
+
"path": "src/common/controllers/LightDomController.ts",
|
|
11294
|
+
"declarations": [
|
|
11295
|
+
{
|
|
11296
|
+
"kind": "class",
|
|
11297
|
+
"description": "",
|
|
11298
|
+
"name": "LightDomController",
|
|
11299
|
+
"members": [
|
|
10149
11300
|
{
|
|
10150
|
-
"
|
|
11301
|
+
"kind": "field",
|
|
11302
|
+
"name": "container",
|
|
10151
11303
|
"type": {
|
|
10152
|
-
"text": "
|
|
10153
|
-
}
|
|
11304
|
+
"text": "HTMLElement"
|
|
11305
|
+
},
|
|
11306
|
+
"privacy": "private"
|
|
10154
11307
|
},
|
|
10155
11308
|
{
|
|
10156
|
-
"
|
|
10157
|
-
"
|
|
10158
|
-
"type": {
|
|
10159
|
-
"text": "any"
|
|
10160
|
-
}
|
|
11309
|
+
"kind": "method",
|
|
11310
|
+
"name": "hostUpdated"
|
|
10161
11311
|
},
|
|
10162
11312
|
{
|
|
10163
|
-
"
|
|
10164
|
-
"
|
|
10165
|
-
"type": {
|
|
10166
|
-
"text": "any"
|
|
10167
|
-
}
|
|
11313
|
+
"kind": "method",
|
|
11314
|
+
"name": "hostDisconnected"
|
|
10168
11315
|
}
|
|
10169
11316
|
]
|
|
10170
11317
|
}
|
|
@@ -10172,265 +11319,255 @@
|
|
|
10172
11319
|
"exports": [
|
|
10173
11320
|
{
|
|
10174
11321
|
"kind": "js",
|
|
10175
|
-
"name": "
|
|
10176
|
-
"declaration": {
|
|
10177
|
-
"name": "cond",
|
|
10178
|
-
"module": "src/common/directives/cond.ts"
|
|
10179
|
-
}
|
|
10180
|
-
},
|
|
10181
|
-
{
|
|
10182
|
-
"kind": "js",
|
|
10183
|
-
"name": "cond",
|
|
10184
|
-
"declaration": {
|
|
10185
|
-
"name": "cond",
|
|
10186
|
-
"module": "src/common/directives/cond.ts"
|
|
10187
|
-
}
|
|
10188
|
-
},
|
|
10189
|
-
{
|
|
10190
|
-
"kind": "js",
|
|
10191
|
-
"name": "cond",
|
|
10192
|
-
"declaration": {
|
|
10193
|
-
"name": "cond",
|
|
10194
|
-
"module": "src/common/directives/cond.ts"
|
|
10195
|
-
}
|
|
10196
|
-
},
|
|
10197
|
-
{
|
|
10198
|
-
"kind": "js",
|
|
10199
|
-
"name": "cond",
|
|
10200
|
-
"declaration": {
|
|
10201
|
-
"name": "cond",
|
|
10202
|
-
"module": "src/common/directives/cond.ts"
|
|
10203
|
-
}
|
|
10204
|
-
},
|
|
10205
|
-
{
|
|
10206
|
-
"kind": "js",
|
|
10207
|
-
"name": "cond",
|
|
10208
|
-
"declaration": {
|
|
10209
|
-
"name": "cond",
|
|
10210
|
-
"module": "src/common/directives/cond.ts"
|
|
10211
|
-
}
|
|
10212
|
-
},
|
|
10213
|
-
{
|
|
10214
|
-
"kind": "js",
|
|
10215
|
-
"name": "cond",
|
|
10216
|
-
"declaration": {
|
|
10217
|
-
"name": "cond",
|
|
10218
|
-
"module": "src/common/directives/cond.ts"
|
|
10219
|
-
}
|
|
10220
|
-
},
|
|
10221
|
-
{
|
|
10222
|
-
"kind": "js",
|
|
10223
|
-
"name": "cond",
|
|
10224
|
-
"declaration": {
|
|
10225
|
-
"name": "cond",
|
|
10226
|
-
"module": "src/common/directives/cond.ts"
|
|
10227
|
-
}
|
|
10228
|
-
},
|
|
10229
|
-
{
|
|
10230
|
-
"kind": "js",
|
|
10231
|
-
"name": "cond",
|
|
11322
|
+
"name": "LightDomController",
|
|
10232
11323
|
"declaration": {
|
|
10233
|
-
"name": "
|
|
10234
|
-
"module": "src/common/
|
|
11324
|
+
"name": "LightDomController",
|
|
11325
|
+
"module": "src/common/controllers/LightDomController.ts"
|
|
10235
11326
|
}
|
|
10236
11327
|
}
|
|
10237
11328
|
]
|
|
10238
11329
|
},
|
|
10239
11330
|
{
|
|
10240
11331
|
"kind": "javascript-module",
|
|
10241
|
-
"path": "src/common/
|
|
11332
|
+
"path": "src/common/controllers/LightSlotController.ts",
|
|
10242
11333
|
"declarations": [
|
|
10243
11334
|
{
|
|
10244
|
-
"kind": "
|
|
10245
|
-
"
|
|
10246
|
-
"
|
|
10247
|
-
|
|
10248
|
-
"text": "TInner"
|
|
10249
|
-
}
|
|
10250
|
-
},
|
|
10251
|
-
"parameters": [
|
|
11335
|
+
"kind": "class",
|
|
11336
|
+
"description": "Handles cases where a component needs to render to light DOM,\nand potentially sync component properties to user-supplied content.",
|
|
11337
|
+
"name": "LightSlotController",
|
|
11338
|
+
"members": [
|
|
10252
11339
|
{
|
|
10253
|
-
"
|
|
11340
|
+
"kind": "field",
|
|
11341
|
+
"name": "renderHook",
|
|
10254
11342
|
"type": {
|
|
10255
|
-
"text": "
|
|
10256
|
-
}
|
|
11343
|
+
"text": "Comment"
|
|
11344
|
+
},
|
|
11345
|
+
"privacy": "private"
|
|
10257
11346
|
},
|
|
10258
11347
|
{
|
|
10259
|
-
"
|
|
11348
|
+
"kind": "field",
|
|
11349
|
+
"name": "lightDom",
|
|
10260
11350
|
"type": {
|
|
10261
|
-
"text": "
|
|
10262
|
-
}
|
|
11351
|
+
"text": "LightDomController"
|
|
11352
|
+
},
|
|
11353
|
+
"privacy": "private",
|
|
11354
|
+
"default": "new LightDomController(host, {\n render: () => (this.hasContent ? nothing : this.options.render()),\n renderOptions: { renderBefore: this.renderHook },\n })"
|
|
10263
11355
|
},
|
|
10264
11356
|
{
|
|
10265
|
-
"
|
|
10266
|
-
"
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
]
|
|
10271
|
-
},
|
|
10272
|
-
{
|
|
10273
|
-
"kind": "function",
|
|
10274
|
-
"name": "wrapIf",
|
|
10275
|
-
"return": {
|
|
10276
|
-
"type": {
|
|
10277
|
-
"text": "TWrapper"
|
|
10278
|
-
}
|
|
10279
|
-
},
|
|
10280
|
-
"parameters": [
|
|
10281
|
-
{
|
|
10282
|
-
"name": "condition",
|
|
10283
|
-
"type": {
|
|
10284
|
-
"text": "true"
|
|
11357
|
+
"kind": "method",
|
|
11358
|
+
"name": "hostConnected",
|
|
11359
|
+
"inheritedFrom": {
|
|
11360
|
+
"name": "SlotController",
|
|
11361
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10285
11362
|
}
|
|
10286
11363
|
},
|
|
10287
11364
|
{
|
|
10288
|
-
"
|
|
10289
|
-
"
|
|
10290
|
-
"text": "() => TInner"
|
|
10291
|
-
}
|
|
11365
|
+
"kind": "method",
|
|
11366
|
+
"name": "hostDisconnected"
|
|
10292
11367
|
},
|
|
10293
11368
|
{
|
|
10294
|
-
"
|
|
10295
|
-
"
|
|
10296
|
-
|
|
11369
|
+
"kind": "field",
|
|
11370
|
+
"name": "onChange",
|
|
11371
|
+
"privacy": "protected",
|
|
11372
|
+
"parameters": [
|
|
11373
|
+
{
|
|
11374
|
+
"name": "_e",
|
|
11375
|
+
"type": {
|
|
11376
|
+
"text": "Event"
|
|
11377
|
+
}
|
|
11378
|
+
}
|
|
11379
|
+
],
|
|
11380
|
+
"inheritedFrom": {
|
|
11381
|
+
"name": "SlotController",
|
|
11382
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10297
11383
|
}
|
|
10298
|
-
}
|
|
10299
|
-
]
|
|
10300
|
-
},
|
|
10301
|
-
{
|
|
10302
|
-
"kind": "function",
|
|
10303
|
-
"name": "wrapIf",
|
|
10304
|
-
"return": {
|
|
10305
|
-
"type": {
|
|
10306
|
-
"text": "TInner | TWrapper"
|
|
10307
|
-
}
|
|
10308
|
-
},
|
|
10309
|
-
"parameters": [
|
|
11384
|
+
},
|
|
10310
11385
|
{
|
|
10311
|
-
"
|
|
10312
|
-
"
|
|
10313
|
-
|
|
10314
|
-
}
|
|
11386
|
+
"kind": "method",
|
|
11387
|
+
"name": "syncLightDom",
|
|
11388
|
+
"privacy": "private"
|
|
10315
11389
|
},
|
|
10316
11390
|
{
|
|
10317
|
-
"
|
|
11391
|
+
"kind": "field",
|
|
11392
|
+
"name": "events",
|
|
10318
11393
|
"type": {
|
|
10319
|
-
"text": "
|
|
11394
|
+
"text": "EventController"
|
|
11395
|
+
},
|
|
11396
|
+
"privacy": "private",
|
|
11397
|
+
"default": "new EventController(host)",
|
|
11398
|
+
"inheritedFrom": {
|
|
11399
|
+
"name": "SlotController",
|
|
11400
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10320
11401
|
}
|
|
10321
11402
|
},
|
|
10322
11403
|
{
|
|
10323
|
-
"
|
|
10324
|
-
"
|
|
10325
|
-
|
|
11404
|
+
"kind": "field",
|
|
11405
|
+
"name": "hasContent",
|
|
11406
|
+
"inheritedFrom": {
|
|
11407
|
+
"name": "SlotController",
|
|
11408
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10326
11409
|
}
|
|
10327
|
-
}
|
|
10328
|
-
]
|
|
10329
|
-
},
|
|
10330
|
-
{
|
|
10331
|
-
"kind": "function",
|
|
10332
|
-
"name": "wrapIf",
|
|
10333
|
-
"parameters": [
|
|
11410
|
+
},
|
|
10334
11411
|
{
|
|
10335
|
-
"
|
|
10336
|
-
"
|
|
10337
|
-
|
|
11412
|
+
"kind": "field",
|
|
11413
|
+
"name": "isEmpty",
|
|
11414
|
+
"inheritedFrom": {
|
|
11415
|
+
"name": "SlotController",
|
|
11416
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10338
11417
|
}
|
|
10339
11418
|
},
|
|
10340
11419
|
{
|
|
10341
|
-
"
|
|
10342
|
-
"
|
|
10343
|
-
|
|
11420
|
+
"kind": "field",
|
|
11421
|
+
"name": "content",
|
|
11422
|
+
"inheritedFrom": {
|
|
11423
|
+
"name": "SlotController",
|
|
11424
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10344
11425
|
}
|
|
10345
11426
|
},
|
|
10346
11427
|
{
|
|
10347
|
-
"
|
|
10348
|
-
"
|
|
10349
|
-
|
|
11428
|
+
"kind": "field",
|
|
11429
|
+
"name": "handleSlotChange",
|
|
11430
|
+
"privacy": "private",
|
|
11431
|
+
"inheritedFrom": {
|
|
11432
|
+
"name": "SlotController",
|
|
11433
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10350
11434
|
}
|
|
10351
11435
|
}
|
|
10352
11436
|
],
|
|
10353
|
-
"
|
|
10354
|
-
"
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
11437
|
+
"superclass": {
|
|
11438
|
+
"name": "SlotController",
|
|
11439
|
+
"module": "/src/common/controllers/SlotController.js"
|
|
11440
|
+
},
|
|
11441
|
+
"status": null,
|
|
11442
|
+
"category": null
|
|
10358
11443
|
}
|
|
10359
11444
|
],
|
|
10360
11445
|
"exports": [
|
|
10361
11446
|
{
|
|
10362
11447
|
"kind": "js",
|
|
10363
|
-
"name": "
|
|
11448
|
+
"name": "LightSlotController",
|
|
10364
11449
|
"declaration": {
|
|
10365
|
-
"name": "
|
|
10366
|
-
"module": "src/common/
|
|
11450
|
+
"name": "LightSlotController",
|
|
11451
|
+
"module": "src/common/controllers/LightSlotController.ts"
|
|
10367
11452
|
}
|
|
10368
|
-
}
|
|
11453
|
+
}
|
|
11454
|
+
]
|
|
11455
|
+
},
|
|
11456
|
+
{
|
|
11457
|
+
"kind": "javascript-module",
|
|
11458
|
+
"path": "src/common/controllers/MediaQueryController.ts",
|
|
11459
|
+
"declarations": [
|
|
10369
11460
|
{
|
|
10370
|
-
"kind": "
|
|
10371
|
-
"
|
|
10372
|
-
"
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
11461
|
+
"kind": "class",
|
|
11462
|
+
"description": "",
|
|
11463
|
+
"name": "MediaQueryController",
|
|
11464
|
+
"members": [
|
|
11465
|
+
{
|
|
11466
|
+
"kind": "field",
|
|
11467
|
+
"name": "mq",
|
|
11468
|
+
"type": {
|
|
11469
|
+
"text": "MediaQueryList"
|
|
11470
|
+
},
|
|
11471
|
+
"privacy": "private"
|
|
11472
|
+
},
|
|
11473
|
+
{
|
|
11474
|
+
"kind": "field",
|
|
11475
|
+
"name": "matches"
|
|
11476
|
+
},
|
|
11477
|
+
{
|
|
11478
|
+
"kind": "method",
|
|
11479
|
+
"name": "hostConnected"
|
|
11480
|
+
},
|
|
11481
|
+
{
|
|
11482
|
+
"kind": "method",
|
|
11483
|
+
"name": "hostDisconnected"
|
|
11484
|
+
},
|
|
11485
|
+
{
|
|
11486
|
+
"kind": "field",
|
|
11487
|
+
"name": "handleChange"
|
|
11488
|
+
}
|
|
11489
|
+
]
|
|
11490
|
+
}
|
|
11491
|
+
],
|
|
11492
|
+
"exports": [
|
|
10377
11493
|
{
|
|
10378
11494
|
"kind": "js",
|
|
10379
|
-
"name": "
|
|
11495
|
+
"name": "MediaQueryController",
|
|
10380
11496
|
"declaration": {
|
|
10381
|
-
"name": "
|
|
10382
|
-
"module": "src/common/
|
|
11497
|
+
"name": "MediaQueryController",
|
|
11498
|
+
"module": "src/common/controllers/MediaQueryController.ts"
|
|
10383
11499
|
}
|
|
10384
|
-
}
|
|
11500
|
+
}
|
|
11501
|
+
]
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"kind": "javascript-module",
|
|
11505
|
+
"path": "src/common/controllers/PortalController.ts",
|
|
11506
|
+
"declarations": [
|
|
11507
|
+
{
|
|
11508
|
+
"kind": "class",
|
|
11509
|
+
"description": "",
|
|
11510
|
+
"name": "PortalController",
|
|
11511
|
+
"members": [
|
|
11512
|
+
{
|
|
11513
|
+
"kind": "field",
|
|
11514
|
+
"name": "renderHook",
|
|
11515
|
+
"type": {
|
|
11516
|
+
"text": "Comment"
|
|
11517
|
+
},
|
|
11518
|
+
"privacy": "private"
|
|
11519
|
+
},
|
|
11520
|
+
{
|
|
11521
|
+
"kind": "field",
|
|
11522
|
+
"name": "lightDom",
|
|
11523
|
+
"type": {
|
|
11524
|
+
"text": "LightDomController"
|
|
11525
|
+
},
|
|
11526
|
+
"privacy": "private",
|
|
11527
|
+
"default": "new LightDomController(host, {\n render: () => this.options.render.call(host),\n container: options.outlet,\n renderOptions: {\n renderBefore: this.renderHook,\n host,\n },\n })"
|
|
11528
|
+
},
|
|
11529
|
+
{
|
|
11530
|
+
"kind": "method",
|
|
11531
|
+
"name": "hostConnected"
|
|
11532
|
+
},
|
|
11533
|
+
{
|
|
11534
|
+
"kind": "method",
|
|
11535
|
+
"name": "hostUpdated"
|
|
11536
|
+
},
|
|
11537
|
+
{
|
|
11538
|
+
"kind": "method",
|
|
11539
|
+
"name": "hostDisconnected"
|
|
11540
|
+
}
|
|
11541
|
+
]
|
|
11542
|
+
}
|
|
11543
|
+
],
|
|
11544
|
+
"exports": [
|
|
10385
11545
|
{
|
|
10386
11546
|
"kind": "js",
|
|
10387
|
-
"name": "
|
|
11547
|
+
"name": "PortalController",
|
|
10388
11548
|
"declaration": {
|
|
10389
|
-
"name": "
|
|
10390
|
-
"module": "src/common/
|
|
11549
|
+
"name": "PortalController",
|
|
11550
|
+
"module": "src/common/controllers/PortalController.ts"
|
|
10391
11551
|
}
|
|
10392
11552
|
}
|
|
10393
11553
|
]
|
|
10394
11554
|
},
|
|
10395
11555
|
{
|
|
10396
11556
|
"kind": "javascript-module",
|
|
10397
|
-
"path": "src/common/controllers/
|
|
11557
|
+
"path": "src/common/controllers/ShortcutController.ts",
|
|
10398
11558
|
"declarations": [
|
|
10399
11559
|
{
|
|
10400
11560
|
"kind": "class",
|
|
10401
11561
|
"description": "",
|
|
10402
|
-
"name": "
|
|
11562
|
+
"name": "ShortcutController",
|
|
10403
11563
|
"members": [
|
|
10404
11564
|
{
|
|
10405
11565
|
"kind": "field",
|
|
10406
|
-
"name": "
|
|
10407
|
-
"privacy": "private",
|
|
10408
|
-
"static": true,
|
|
10409
|
-
"default": "new Set<ReactiveControllerHost>()"
|
|
10410
|
-
},
|
|
10411
|
-
{
|
|
10412
|
-
"kind": "field",
|
|
10413
|
-
"name": "observer",
|
|
11566
|
+
"name": "unregister",
|
|
10414
11567
|
"type": {
|
|
10415
|
-
"text": "
|
|
11568
|
+
"text": "ReturnType<typeof tinykeys> | undefined"
|
|
10416
11569
|
},
|
|
10417
|
-
"privacy": "private"
|
|
10418
|
-
"static": true
|
|
10419
|
-
},
|
|
10420
|
-
{
|
|
10421
|
-
"kind": "field",
|
|
10422
|
-
"name": "dir",
|
|
10423
|
-
"type": {
|
|
10424
|
-
"text": "WritingDirection"
|
|
10425
|
-
}
|
|
10426
|
-
},
|
|
10427
|
-
{
|
|
10428
|
-
"kind": "field",
|
|
10429
|
-
"name": "isLTR"
|
|
10430
|
-
},
|
|
10431
|
-
{
|
|
10432
|
-
"kind": "field",
|
|
10433
|
-
"name": "isRTL"
|
|
11570
|
+
"privacy": "private"
|
|
10434
11571
|
},
|
|
10435
11572
|
{
|
|
10436
11573
|
"kind": "method",
|
|
@@ -10442,9 +11579,19 @@
|
|
|
10442
11579
|
},
|
|
10443
11580
|
{
|
|
10444
11581
|
"kind": "method",
|
|
10445
|
-
"name": "
|
|
10446
|
-
|
|
10447
|
-
|
|
11582
|
+
"name": "unbind"
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
"kind": "method",
|
|
11586
|
+
"name": "bind",
|
|
11587
|
+
"parameters": [
|
|
11588
|
+
{
|
|
11589
|
+
"name": "shortcuts",
|
|
11590
|
+
"type": {
|
|
11591
|
+
"text": "KeyBindingMap"
|
|
11592
|
+
}
|
|
11593
|
+
}
|
|
11594
|
+
]
|
|
10448
11595
|
}
|
|
10449
11596
|
]
|
|
10450
11597
|
}
|
|
@@ -10452,207 +11599,70 @@
|
|
|
10452
11599
|
"exports": [
|
|
10453
11600
|
{
|
|
10454
11601
|
"kind": "js",
|
|
10455
|
-
"name": "
|
|
11602
|
+
"name": "ShortcutController",
|
|
10456
11603
|
"declaration": {
|
|
10457
|
-
"name": "
|
|
10458
|
-
"module": "src/common/controllers/
|
|
11604
|
+
"name": "ShortcutController",
|
|
11605
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
11606
|
+
}
|
|
11607
|
+
},
|
|
11608
|
+
{
|
|
11609
|
+
"kind": "js",
|
|
11610
|
+
"name": "ShortcutMap",
|
|
11611
|
+
"declaration": {
|
|
11612
|
+
"name": "KeyBindingMap",
|
|
11613
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
10459
11614
|
}
|
|
10460
11615
|
}
|
|
10461
11616
|
]
|
|
10462
11617
|
},
|
|
10463
11618
|
{
|
|
10464
11619
|
"kind": "javascript-module",
|
|
10465
|
-
"path": "src/common/controllers/
|
|
11620
|
+
"path": "src/common/controllers/SlotController.ts",
|
|
10466
11621
|
"declarations": [
|
|
10467
11622
|
{
|
|
10468
11623
|
"kind": "class",
|
|
10469
11624
|
"description": "",
|
|
10470
|
-
"name": "
|
|
11625
|
+
"name": "SlotController",
|
|
10471
11626
|
"members": [
|
|
10472
11627
|
{
|
|
10473
11628
|
"kind": "field",
|
|
10474
|
-
"name": "
|
|
11629
|
+
"name": "events",
|
|
10475
11630
|
"type": {
|
|
10476
|
-
"text": "
|
|
11631
|
+
"text": "EventController"
|
|
10477
11632
|
},
|
|
10478
11633
|
"privacy": "private",
|
|
10479
|
-
"default": "
|
|
11634
|
+
"default": "new EventController(host)"
|
|
10480
11635
|
},
|
|
10481
11636
|
{
|
|
10482
11637
|
"kind": "method",
|
|
10483
|
-
"name": "
|
|
11638
|
+
"name": "hostConnected"
|
|
10484
11639
|
},
|
|
10485
11640
|
{
|
|
10486
|
-
"kind": "
|
|
10487
|
-
"name": "
|
|
10488
|
-
"return": {
|
|
10489
|
-
"type": {
|
|
10490
|
-
"text": "void"
|
|
10491
|
-
}
|
|
10492
|
-
},
|
|
10493
|
-
"parameters": [
|
|
10494
|
-
{
|
|
10495
|
-
"name": "window",
|
|
10496
|
-
"type": {
|
|
10497
|
-
"text": "Window"
|
|
10498
|
-
}
|
|
10499
|
-
},
|
|
10500
|
-
{
|
|
10501
|
-
"name": "type",
|
|
10502
|
-
"type": {
|
|
10503
|
-
"text": "K"
|
|
10504
|
-
}
|
|
10505
|
-
},
|
|
10506
|
-
{
|
|
10507
|
-
"name": "listener",
|
|
10508
|
-
"type": {
|
|
10509
|
-
"text": "(this: Window, ev: WindowEventMap[K]) => any"
|
|
10510
|
-
}
|
|
10511
|
-
},
|
|
10512
|
-
{
|
|
10513
|
-
"name": "options",
|
|
10514
|
-
"optional": true,
|
|
10515
|
-
"type": {
|
|
10516
|
-
"text": "boolean | AddEventListenerOptions"
|
|
10517
|
-
}
|
|
10518
|
-
}
|
|
10519
|
-
]
|
|
11641
|
+
"kind": "field",
|
|
11642
|
+
"name": "hasContent"
|
|
10520
11643
|
},
|
|
10521
11644
|
{
|
|
10522
|
-
"kind": "
|
|
10523
|
-
"name": "
|
|
10524
|
-
"return": {
|
|
10525
|
-
"type": {
|
|
10526
|
-
"text": "void"
|
|
10527
|
-
}
|
|
10528
|
-
},
|
|
10529
|
-
"parameters": [
|
|
10530
|
-
{
|
|
10531
|
-
"name": "document",
|
|
10532
|
-
"type": {
|
|
10533
|
-
"text": "Document"
|
|
10534
|
-
}
|
|
10535
|
-
},
|
|
10536
|
-
{
|
|
10537
|
-
"name": "type",
|
|
10538
|
-
"type": {
|
|
10539
|
-
"text": "K"
|
|
10540
|
-
}
|
|
10541
|
-
},
|
|
10542
|
-
{
|
|
10543
|
-
"name": "listener",
|
|
10544
|
-
"type": {
|
|
10545
|
-
"text": "(this: Document, ev: DocumentEventMap[K]) => any"
|
|
10546
|
-
}
|
|
10547
|
-
},
|
|
10548
|
-
{
|
|
10549
|
-
"name": "options",
|
|
10550
|
-
"optional": true,
|
|
10551
|
-
"type": {
|
|
10552
|
-
"text": "boolean | AddEventListenerOptions"
|
|
10553
|
-
}
|
|
10554
|
-
}
|
|
10555
|
-
]
|
|
11645
|
+
"kind": "field",
|
|
11646
|
+
"name": "isEmpty"
|
|
10556
11647
|
},
|
|
10557
11648
|
{
|
|
10558
|
-
"kind": "
|
|
10559
|
-
"name": "
|
|
10560
|
-
"return": {
|
|
10561
|
-
"type": {
|
|
10562
|
-
"text": "void"
|
|
10563
|
-
}
|
|
10564
|
-
},
|
|
10565
|
-
"parameters": [
|
|
10566
|
-
{
|
|
10567
|
-
"name": "element",
|
|
10568
|
-
"type": {
|
|
10569
|
-
"text": "HTMLElement"
|
|
10570
|
-
}
|
|
10571
|
-
},
|
|
10572
|
-
{
|
|
10573
|
-
"name": "type",
|
|
10574
|
-
"type": {
|
|
10575
|
-
"text": "K"
|
|
10576
|
-
}
|
|
10577
|
-
},
|
|
10578
|
-
{
|
|
10579
|
-
"name": "listener",
|
|
10580
|
-
"type": {
|
|
10581
|
-
"text": "(this: HTMLElement, ev: HTMLElementEventMap[K]) => any"
|
|
10582
|
-
}
|
|
10583
|
-
},
|
|
10584
|
-
{
|
|
10585
|
-
"name": "options",
|
|
10586
|
-
"optional": true,
|
|
10587
|
-
"type": {
|
|
10588
|
-
"text": "boolean | AddEventListenerOptions"
|
|
10589
|
-
}
|
|
10590
|
-
}
|
|
10591
|
-
]
|
|
11649
|
+
"kind": "field",
|
|
11650
|
+
"name": "content"
|
|
10592
11651
|
},
|
|
10593
11652
|
{
|
|
10594
|
-
"kind": "
|
|
10595
|
-
"name": "
|
|
10596
|
-
"
|
|
10597
|
-
"type": {
|
|
10598
|
-
"text": "void"
|
|
10599
|
-
}
|
|
10600
|
-
},
|
|
10601
|
-
"parameters": [
|
|
10602
|
-
{
|
|
10603
|
-
"name": "element",
|
|
10604
|
-
"type": {
|
|
10605
|
-
"text": "ShadowRoot"
|
|
10606
|
-
}
|
|
10607
|
-
},
|
|
10608
|
-
{
|
|
10609
|
-
"name": "type",
|
|
10610
|
-
"type": {
|
|
10611
|
-
"text": "K"
|
|
10612
|
-
}
|
|
10613
|
-
},
|
|
10614
|
-
{
|
|
10615
|
-
"name": "listener",
|
|
10616
|
-
"type": {
|
|
10617
|
-
"text": "(this: ShadowRoot, ev: ShadowRootEventMap[K]) => any"
|
|
10618
|
-
}
|
|
10619
|
-
},
|
|
10620
|
-
{
|
|
10621
|
-
"name": "options",
|
|
10622
|
-
"optional": true,
|
|
10623
|
-
"type": {
|
|
10624
|
-
"text": "boolean | AddEventListenerOptions"
|
|
10625
|
-
}
|
|
10626
|
-
}
|
|
10627
|
-
]
|
|
11653
|
+
"kind": "field",
|
|
11654
|
+
"name": "handleSlotChange",
|
|
11655
|
+
"privacy": "private"
|
|
10628
11656
|
},
|
|
10629
11657
|
{
|
|
10630
11658
|
"kind": "method",
|
|
10631
|
-
"name": "
|
|
11659
|
+
"name": "onChange",
|
|
11660
|
+
"privacy": "protected",
|
|
10632
11661
|
"parameters": [
|
|
10633
11662
|
{
|
|
10634
|
-
"name": "
|
|
10635
|
-
"type": {
|
|
10636
|
-
"text": "Window | Document | HTMLElement | ShadowRoot"
|
|
10637
|
-
}
|
|
10638
|
-
},
|
|
10639
|
-
{
|
|
10640
|
-
"name": "type",
|
|
10641
|
-
"type": {
|
|
10642
|
-
"text": "string"
|
|
10643
|
-
}
|
|
10644
|
-
},
|
|
10645
|
-
{
|
|
10646
|
-
"name": "listener",
|
|
10647
|
-
"type": {
|
|
10648
|
-
"text": "(ev: any) => any"
|
|
10649
|
-
}
|
|
10650
|
-
},
|
|
10651
|
-
{
|
|
10652
|
-
"name": "options",
|
|
10653
|
-
"optional": true,
|
|
11663
|
+
"name": "_e",
|
|
10654
11664
|
"type": {
|
|
10655
|
-
"text": "
|
|
11665
|
+
"text": "Event"
|
|
10656
11666
|
}
|
|
10657
11667
|
}
|
|
10658
11668
|
]
|
|
@@ -10663,22 +11673,22 @@
|
|
|
10663
11673
|
"exports": [
|
|
10664
11674
|
{
|
|
10665
11675
|
"kind": "js",
|
|
10666
|
-
"name": "
|
|
11676
|
+
"name": "SlotController",
|
|
10667
11677
|
"declaration": {
|
|
10668
|
-
"name": "
|
|
10669
|
-
"module": "src/common/controllers/
|
|
11678
|
+
"name": "SlotController",
|
|
11679
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
10670
11680
|
}
|
|
10671
11681
|
}
|
|
10672
11682
|
]
|
|
10673
11683
|
},
|
|
10674
11684
|
{
|
|
10675
11685
|
"kind": "javascript-module",
|
|
10676
|
-
"path": "src/common/controllers/
|
|
11686
|
+
"path": "src/common/controllers/SwipeController.ts",
|
|
10677
11687
|
"declarations": [
|
|
10678
11688
|
{
|
|
10679
11689
|
"kind": "class",
|
|
10680
11690
|
"description": "",
|
|
10681
|
-
"name": "
|
|
11691
|
+
"name": "SwipeController",
|
|
10682
11692
|
"members": [
|
|
10683
11693
|
{
|
|
10684
11694
|
"kind": "field",
|
|
@@ -10690,107 +11700,133 @@
|
|
|
10690
11700
|
"default": "new EventController(host)"
|
|
10691
11701
|
},
|
|
10692
11702
|
{
|
|
10693
|
-
"kind": "
|
|
10694
|
-
"name": "
|
|
11703
|
+
"kind": "field",
|
|
11704
|
+
"name": "hadFirstUpdate",
|
|
11705
|
+
"type": {
|
|
11706
|
+
"text": "boolean"
|
|
11707
|
+
},
|
|
11708
|
+
"privacy": "private",
|
|
11709
|
+
"default": "false"
|
|
10695
11710
|
},
|
|
10696
11711
|
{
|
|
10697
11712
|
"kind": "field",
|
|
10698
|
-
"name": "
|
|
10699
|
-
"
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
{
|
|
10706
|
-
"kind": "js",
|
|
10707
|
-
"name": "FormDataController",
|
|
10708
|
-
"declaration": {
|
|
10709
|
-
"name": "FormDataController",
|
|
10710
|
-
"module": "src/common/controllers/FormDataController.ts"
|
|
10711
|
-
}
|
|
10712
|
-
}
|
|
10713
|
-
]
|
|
10714
|
-
},
|
|
10715
|
-
{
|
|
10716
|
-
"kind": "javascript-module",
|
|
10717
|
-
"path": "src/common/controllers/LightDismissController.ts",
|
|
10718
|
-
"declarations": [
|
|
10719
|
-
{
|
|
10720
|
-
"kind": "class",
|
|
10721
|
-
"description": "",
|
|
10722
|
-
"name": "LightDismissController",
|
|
10723
|
-
"members": [
|
|
11713
|
+
"name": "initialTouchX",
|
|
11714
|
+
"type": {
|
|
11715
|
+
"text": "number"
|
|
11716
|
+
},
|
|
11717
|
+
"privacy": "private",
|
|
11718
|
+
"default": "0"
|
|
11719
|
+
},
|
|
10724
11720
|
{
|
|
10725
11721
|
"kind": "field",
|
|
10726
|
-
"name": "
|
|
11722
|
+
"name": "initialTouchY",
|
|
10727
11723
|
"type": {
|
|
10728
|
-
"text": "
|
|
11724
|
+
"text": "number"
|
|
10729
11725
|
},
|
|
10730
11726
|
"privacy": "private",
|
|
10731
|
-
"default": "
|
|
11727
|
+
"default": "0"
|
|
10732
11728
|
},
|
|
10733
11729
|
{
|
|
10734
11730
|
"kind": "field",
|
|
10735
|
-
"name": "
|
|
11731
|
+
"name": "options",
|
|
10736
11732
|
"type": {
|
|
10737
|
-
"text": "
|
|
11733
|
+
"text": "SetRequired<SwipeControllerOptions, \"target\">"
|
|
10738
11734
|
},
|
|
10739
11735
|
"privacy": "private",
|
|
10740
|
-
"default": "
|
|
11736
|
+
"default": "{\n target: () => host,\n ...options,\n }"
|
|
10741
11737
|
},
|
|
10742
11738
|
{
|
|
10743
11739
|
"kind": "method",
|
|
10744
|
-
"name": "
|
|
11740
|
+
"name": "hostUpdated"
|
|
11741
|
+
},
|
|
11742
|
+
{
|
|
11743
|
+
"kind": "method",
|
|
11744
|
+
"name": "hostDisconnected"
|
|
10745
11745
|
},
|
|
10746
11746
|
{
|
|
10747
11747
|
"kind": "field",
|
|
10748
|
-
"name": "
|
|
11748
|
+
"name": "handleTouchStart",
|
|
10749
11749
|
"privacy": "private"
|
|
10750
11750
|
},
|
|
10751
11751
|
{
|
|
10752
11752
|
"kind": "field",
|
|
10753
|
-
"name": "
|
|
11753
|
+
"name": "handleTouchEnd",
|
|
10754
11754
|
"privacy": "private"
|
|
10755
11755
|
}
|
|
10756
11756
|
]
|
|
11757
|
+
},
|
|
11758
|
+
{
|
|
11759
|
+
"kind": "function",
|
|
11760
|
+
"name": "isHorizontalSwipe",
|
|
11761
|
+
"parameters": [
|
|
11762
|
+
{
|
|
11763
|
+
"name": "{ distX, distY }",
|
|
11764
|
+
"type": {
|
|
11765
|
+
"text": "SwipeDetails"
|
|
11766
|
+
}
|
|
11767
|
+
}
|
|
11768
|
+
]
|
|
11769
|
+
},
|
|
11770
|
+
{
|
|
11771
|
+
"kind": "function",
|
|
11772
|
+
"name": "isDownwardsSwipe",
|
|
11773
|
+
"parameters": [
|
|
11774
|
+
{
|
|
11775
|
+
"name": "{ distX, distY }",
|
|
11776
|
+
"type": {
|
|
11777
|
+
"text": "SwipeDetails"
|
|
11778
|
+
}
|
|
11779
|
+
}
|
|
11780
|
+
]
|
|
10757
11781
|
}
|
|
10758
11782
|
],
|
|
10759
11783
|
"exports": [
|
|
10760
11784
|
{
|
|
10761
11785
|
"kind": "js",
|
|
10762
|
-
"name": "
|
|
11786
|
+
"name": "SwipeController",
|
|
10763
11787
|
"declaration": {
|
|
10764
|
-
"name": "
|
|
10765
|
-
"module": "src/common/controllers/
|
|
11788
|
+
"name": "SwipeController",
|
|
11789
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
11790
|
+
}
|
|
11791
|
+
},
|
|
11792
|
+
{
|
|
11793
|
+
"kind": "js",
|
|
11794
|
+
"name": "isHorizontalSwipe",
|
|
11795
|
+
"declaration": {
|
|
11796
|
+
"name": "isHorizontalSwipe",
|
|
11797
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
11798
|
+
}
|
|
11799
|
+
},
|
|
11800
|
+
{
|
|
11801
|
+
"kind": "js",
|
|
11802
|
+
"name": "isDownwardsSwipe",
|
|
11803
|
+
"declaration": {
|
|
11804
|
+
"name": "isDownwardsSwipe",
|
|
11805
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
10766
11806
|
}
|
|
10767
11807
|
}
|
|
10768
11808
|
]
|
|
10769
11809
|
},
|
|
10770
11810
|
{
|
|
10771
11811
|
"kind": "javascript-module",
|
|
10772
|
-
"path": "src/common/
|
|
11812
|
+
"path": "src/common/decorators/observe.ts",
|
|
10773
11813
|
"declarations": [
|
|
10774
11814
|
{
|
|
10775
|
-
"kind": "
|
|
10776
|
-
"
|
|
10777
|
-
"
|
|
10778
|
-
"members": [
|
|
11815
|
+
"kind": "function",
|
|
11816
|
+
"name": "observe",
|
|
11817
|
+
"parameters": [
|
|
10779
11818
|
{
|
|
10780
|
-
"
|
|
10781
|
-
"name": "container",
|
|
11819
|
+
"name": "propertyName",
|
|
10782
11820
|
"type": {
|
|
10783
|
-
"text": "
|
|
10784
|
-
}
|
|
10785
|
-
"privacy": "private"
|
|
10786
|
-
},
|
|
10787
|
-
{
|
|
10788
|
-
"kind": "method",
|
|
10789
|
-
"name": "hostUpdated"
|
|
11821
|
+
"text": "string"
|
|
11822
|
+
}
|
|
10790
11823
|
},
|
|
10791
11824
|
{
|
|
10792
|
-
"
|
|
10793
|
-
"
|
|
11825
|
+
"name": "lifecycle",
|
|
11826
|
+
"default": "\"update\"",
|
|
11827
|
+
"type": {
|
|
11828
|
+
"text": "ObserveLifecycle"
|
|
11829
|
+
}
|
|
10794
11830
|
}
|
|
10795
11831
|
]
|
|
10796
11832
|
}
|
|
@@ -10798,177 +11834,221 @@
|
|
|
10798
11834
|
"exports": [
|
|
10799
11835
|
{
|
|
10800
11836
|
"kind": "js",
|
|
10801
|
-
"name": "
|
|
11837
|
+
"name": "observe",
|
|
10802
11838
|
"declaration": {
|
|
10803
|
-
"name": "
|
|
10804
|
-
"module": "src/common/
|
|
11839
|
+
"name": "observe",
|
|
11840
|
+
"module": "src/common/decorators/observe.ts"
|
|
10805
11841
|
}
|
|
10806
11842
|
}
|
|
10807
11843
|
]
|
|
10808
11844
|
},
|
|
10809
11845
|
{
|
|
10810
11846
|
"kind": "javascript-module",
|
|
10811
|
-
"path": "src/common/
|
|
11847
|
+
"path": "src/common/directives/cond.ts",
|
|
10812
11848
|
"declarations": [
|
|
10813
11849
|
{
|
|
10814
|
-
"kind": "
|
|
10815
|
-
"
|
|
10816
|
-
"
|
|
10817
|
-
|
|
11850
|
+
"kind": "function",
|
|
11851
|
+
"name": "cond",
|
|
11852
|
+
"return": {
|
|
11853
|
+
"type": {
|
|
11854
|
+
"text": "typeof value | typeof nothing"
|
|
11855
|
+
}
|
|
11856
|
+
},
|
|
11857
|
+
"parameters": [
|
|
10818
11858
|
{
|
|
10819
|
-
"
|
|
10820
|
-
"name": "renderHook",
|
|
11859
|
+
"name": "value",
|
|
10821
11860
|
"type": {
|
|
10822
|
-
"text": "
|
|
10823
|
-
}
|
|
10824
|
-
|
|
11861
|
+
"text": "any"
|
|
11862
|
+
}
|
|
11863
|
+
}
|
|
11864
|
+
],
|
|
11865
|
+
"description": "if value is truthy, return it, otherwise return nothing"
|
|
11866
|
+
},
|
|
11867
|
+
{
|
|
11868
|
+
"kind": "function",
|
|
11869
|
+
"name": "cond",
|
|
11870
|
+
"return": {
|
|
11871
|
+
"type": {
|
|
11872
|
+
"text": "typeof trueCase | typeof nothing"
|
|
11873
|
+
}
|
|
11874
|
+
},
|
|
11875
|
+
"parameters": [
|
|
11876
|
+
{
|
|
11877
|
+
"name": "condition",
|
|
11878
|
+
"type": {
|
|
11879
|
+
"text": "unknown"
|
|
11880
|
+
}
|
|
11881
|
+
},
|
|
11882
|
+
{
|
|
11883
|
+
"name": "trueCase",
|
|
11884
|
+
"type": {
|
|
11885
|
+
"text": "any"
|
|
11886
|
+
}
|
|
11887
|
+
}
|
|
11888
|
+
],
|
|
11889
|
+
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
11890
|
+
},
|
|
11891
|
+
{
|
|
11892
|
+
"kind": "function",
|
|
11893
|
+
"name": "cond",
|
|
11894
|
+
"return": {
|
|
11895
|
+
"type": {
|
|
11896
|
+
"text": "typeof trueCase"
|
|
11897
|
+
}
|
|
11898
|
+
},
|
|
11899
|
+
"parameters": [
|
|
11900
|
+
{
|
|
11901
|
+
"name": "condition",
|
|
11902
|
+
"type": {
|
|
11903
|
+
"text": "true"
|
|
11904
|
+
}
|
|
11905
|
+
},
|
|
11906
|
+
{
|
|
11907
|
+
"name": "trueCase",
|
|
11908
|
+
"type": {
|
|
11909
|
+
"text": "any"
|
|
11910
|
+
}
|
|
11911
|
+
}
|
|
11912
|
+
],
|
|
11913
|
+
"description": "condition is true, so always return trueCase"
|
|
11914
|
+
},
|
|
11915
|
+
{
|
|
11916
|
+
"kind": "function",
|
|
11917
|
+
"name": "cond",
|
|
11918
|
+
"return": {
|
|
11919
|
+
"type": {
|
|
11920
|
+
"text": "typeof nothing"
|
|
11921
|
+
}
|
|
11922
|
+
},
|
|
11923
|
+
"parameters": [
|
|
11924
|
+
{
|
|
11925
|
+
"name": "condition",
|
|
11926
|
+
"type": {
|
|
11927
|
+
"text": "false"
|
|
11928
|
+
}
|
|
10825
11929
|
},
|
|
10826
11930
|
{
|
|
10827
|
-
"
|
|
10828
|
-
"
|
|
11931
|
+
"name": "trueCase",
|
|
11932
|
+
"type": {
|
|
11933
|
+
"text": "any"
|
|
11934
|
+
}
|
|
11935
|
+
}
|
|
11936
|
+
],
|
|
11937
|
+
"description": "condition is false, to will always return nothing"
|
|
11938
|
+
},
|
|
11939
|
+
{
|
|
11940
|
+
"kind": "function",
|
|
11941
|
+
"name": "cond",
|
|
11942
|
+
"return": {
|
|
11943
|
+
"type": {
|
|
11944
|
+
"text": "typeof trueCase | typeof falseCase"
|
|
11945
|
+
}
|
|
11946
|
+
},
|
|
11947
|
+
"parameters": [
|
|
11948
|
+
{
|
|
11949
|
+
"name": "condition",
|
|
10829
11950
|
"type": {
|
|
10830
|
-
"text": "
|
|
10831
|
-
},
|
|
10832
|
-
"privacy": "private",
|
|
10833
|
-
"default": "new LightDomController(host, {\n render: () => (this.hasContent ? nothing : this.options.render()),\n renderOptions: { renderBefore: this.renderHook },\n })"
|
|
10834
|
-
},
|
|
10835
|
-
{
|
|
10836
|
-
"kind": "method",
|
|
10837
|
-
"name": "hostConnected",
|
|
10838
|
-
"inheritedFrom": {
|
|
10839
|
-
"name": "SlotController",
|
|
10840
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
11951
|
+
"text": "unknown"
|
|
10841
11952
|
}
|
|
10842
11953
|
},
|
|
10843
11954
|
{
|
|
10844
|
-
"
|
|
10845
|
-
"
|
|
11955
|
+
"name": "trueCase",
|
|
11956
|
+
"type": {
|
|
11957
|
+
"text": "any"
|
|
11958
|
+
}
|
|
10846
11959
|
},
|
|
10847
11960
|
{
|
|
10848
|
-
"
|
|
10849
|
-
"
|
|
10850
|
-
|
|
10851
|
-
"parameters": [
|
|
10852
|
-
{
|
|
10853
|
-
"name": "_e",
|
|
10854
|
-
"type": {
|
|
10855
|
-
"text": "Event"
|
|
10856
|
-
}
|
|
10857
|
-
}
|
|
10858
|
-
],
|
|
10859
|
-
"inheritedFrom": {
|
|
10860
|
-
"name": "SlotController",
|
|
10861
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
11961
|
+
"name": "falseCase",
|
|
11962
|
+
"type": {
|
|
11963
|
+
"text": "any"
|
|
10862
11964
|
}
|
|
10863
|
-
}
|
|
11965
|
+
}
|
|
11966
|
+
],
|
|
11967
|
+
"description": "if condition is truthy, return trueCase, otherwise return falseCase"
|
|
11968
|
+
},
|
|
11969
|
+
{
|
|
11970
|
+
"kind": "function",
|
|
11971
|
+
"name": "cond",
|
|
11972
|
+
"return": {
|
|
11973
|
+
"type": {
|
|
11974
|
+
"text": "typeof trueCase"
|
|
11975
|
+
}
|
|
11976
|
+
},
|
|
11977
|
+
"parameters": [
|
|
10864
11978
|
{
|
|
10865
|
-
"
|
|
10866
|
-
"
|
|
10867
|
-
|
|
11979
|
+
"name": "condition",
|
|
11980
|
+
"type": {
|
|
11981
|
+
"text": "true"
|
|
11982
|
+
}
|
|
10868
11983
|
},
|
|
10869
11984
|
{
|
|
10870
|
-
"
|
|
10871
|
-
"name": "events",
|
|
11985
|
+
"name": "trueCase",
|
|
10872
11986
|
"type": {
|
|
10873
|
-
"text": "
|
|
10874
|
-
},
|
|
10875
|
-
"privacy": "private",
|
|
10876
|
-
"default": "new EventController(host)",
|
|
10877
|
-
"inheritedFrom": {
|
|
10878
|
-
"name": "SlotController",
|
|
10879
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
11987
|
+
"text": "any"
|
|
10880
11988
|
}
|
|
10881
11989
|
},
|
|
10882
11990
|
{
|
|
10883
|
-
"
|
|
10884
|
-
"
|
|
10885
|
-
|
|
10886
|
-
"name": "SlotController",
|
|
10887
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
11991
|
+
"name": "falseCase",
|
|
11992
|
+
"type": {
|
|
11993
|
+
"text": "any"
|
|
10888
11994
|
}
|
|
10889
|
-
}
|
|
11995
|
+
}
|
|
11996
|
+
],
|
|
11997
|
+
"description": "condition is true, so always return trueCase"
|
|
11998
|
+
},
|
|
11999
|
+
{
|
|
12000
|
+
"kind": "function",
|
|
12001
|
+
"name": "cond",
|
|
12002
|
+
"return": {
|
|
12003
|
+
"type": {
|
|
12004
|
+
"text": "typeof falseCase"
|
|
12005
|
+
}
|
|
12006
|
+
},
|
|
12007
|
+
"parameters": [
|
|
10890
12008
|
{
|
|
10891
|
-
"
|
|
10892
|
-
"
|
|
10893
|
-
|
|
10894
|
-
"name": "SlotController",
|
|
10895
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
12009
|
+
"name": "condition",
|
|
12010
|
+
"type": {
|
|
12011
|
+
"text": "false"
|
|
10896
12012
|
}
|
|
10897
12013
|
},
|
|
10898
12014
|
{
|
|
10899
|
-
"
|
|
10900
|
-
"
|
|
10901
|
-
|
|
10902
|
-
"name": "SlotController",
|
|
10903
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
12015
|
+
"name": "trueCase",
|
|
12016
|
+
"type": {
|
|
12017
|
+
"text": "any"
|
|
10904
12018
|
}
|
|
10905
12019
|
},
|
|
10906
12020
|
{
|
|
10907
|
-
"
|
|
10908
|
-
"
|
|
10909
|
-
|
|
10910
|
-
"inheritedFrom": {
|
|
10911
|
-
"name": "SlotController",
|
|
10912
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
12021
|
+
"name": "falseCase",
|
|
12022
|
+
"type": {
|
|
12023
|
+
"text": "any"
|
|
10913
12024
|
}
|
|
10914
12025
|
}
|
|
10915
12026
|
],
|
|
10916
|
-
"
|
|
10917
|
-
|
|
10918
|
-
"module": "/src/common/controllers/SlotController.js"
|
|
10919
|
-
},
|
|
10920
|
-
"status": null,
|
|
10921
|
-
"category": null
|
|
10922
|
-
}
|
|
10923
|
-
],
|
|
10924
|
-
"exports": [
|
|
10925
|
-
{
|
|
10926
|
-
"kind": "js",
|
|
10927
|
-
"name": "LightSlotController",
|
|
10928
|
-
"declaration": {
|
|
10929
|
-
"name": "LightSlotController",
|
|
10930
|
-
"module": "src/common/controllers/LightSlotController.ts"
|
|
10931
|
-
}
|
|
10932
|
-
}
|
|
10933
|
-
]
|
|
10934
|
-
},
|
|
10935
|
-
{
|
|
10936
|
-
"kind": "javascript-module",
|
|
10937
|
-
"path": "src/common/controllers/PortalController.ts",
|
|
10938
|
-
"declarations": [
|
|
12027
|
+
"description": "condition is false, so always return falseCase"
|
|
12028
|
+
},
|
|
10939
12029
|
{
|
|
10940
|
-
"kind": "
|
|
10941
|
-
"
|
|
10942
|
-
"
|
|
10943
|
-
"members": [
|
|
12030
|
+
"kind": "function",
|
|
12031
|
+
"name": "cond",
|
|
12032
|
+
"parameters": [
|
|
10944
12033
|
{
|
|
10945
|
-
"
|
|
10946
|
-
"name": "renderHook",
|
|
12034
|
+
"name": "condition",
|
|
10947
12035
|
"type": {
|
|
10948
|
-
"text": "
|
|
10949
|
-
}
|
|
10950
|
-
"privacy": "private"
|
|
12036
|
+
"text": "unknown"
|
|
12037
|
+
}
|
|
10951
12038
|
},
|
|
10952
12039
|
{
|
|
10953
|
-
"
|
|
10954
|
-
"
|
|
12040
|
+
"name": "trueCase",
|
|
12041
|
+
"default": "condition",
|
|
10955
12042
|
"type": {
|
|
10956
|
-
"text": "
|
|
10957
|
-
}
|
|
10958
|
-
"privacy": "private",
|
|
10959
|
-
"default": "new LightDomController(host, {\n render: () => this.options.render.call(host),\n container: options.outlet,\n renderOptions: {\n renderBefore: this.renderHook,\n host,\n },\n })"
|
|
10960
|
-
},
|
|
10961
|
-
{
|
|
10962
|
-
"kind": "method",
|
|
10963
|
-
"name": "hostConnected"
|
|
10964
|
-
},
|
|
10965
|
-
{
|
|
10966
|
-
"kind": "method",
|
|
10967
|
-
"name": "hostUpdated"
|
|
12043
|
+
"text": "any"
|
|
12044
|
+
}
|
|
10968
12045
|
},
|
|
10969
12046
|
{
|
|
10970
|
-
"
|
|
10971
|
-
"
|
|
12047
|
+
"name": "falseCase",
|
|
12048
|
+
"default": "nothing",
|
|
12049
|
+
"type": {
|
|
12050
|
+
"text": "any"
|
|
12051
|
+
}
|
|
10972
12052
|
}
|
|
10973
12053
|
]
|
|
10974
12054
|
}
|
|
@@ -10976,265 +12056,222 @@
|
|
|
10976
12056
|
"exports": [
|
|
10977
12057
|
{
|
|
10978
12058
|
"kind": "js",
|
|
10979
|
-
"name": "
|
|
12059
|
+
"name": "cond",
|
|
10980
12060
|
"declaration": {
|
|
10981
|
-
"name": "
|
|
10982
|
-
"module": "src/common/
|
|
12061
|
+
"name": "cond",
|
|
12062
|
+
"module": "src/common/directives/cond.ts"
|
|
10983
12063
|
}
|
|
10984
|
-
}
|
|
10985
|
-
]
|
|
10986
|
-
},
|
|
10987
|
-
{
|
|
10988
|
-
"kind": "javascript-module",
|
|
10989
|
-
"path": "src/common/controllers/ShortcutController.ts",
|
|
10990
|
-
"declarations": [
|
|
12064
|
+
},
|
|
10991
12065
|
{
|
|
10992
|
-
"kind": "
|
|
10993
|
-
"
|
|
10994
|
-
"
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
},
|
|
11016
|
-
{
|
|
11017
|
-
"kind": "method",
|
|
11018
|
-
"name": "bind",
|
|
11019
|
-
"parameters": [
|
|
11020
|
-
{
|
|
11021
|
-
"name": "shortcuts",
|
|
11022
|
-
"type": {
|
|
11023
|
-
"text": "KeyBindingMap"
|
|
11024
|
-
}
|
|
11025
|
-
}
|
|
11026
|
-
]
|
|
11027
|
-
}
|
|
11028
|
-
]
|
|
11029
|
-
}
|
|
11030
|
-
],
|
|
11031
|
-
"exports": [
|
|
12066
|
+
"kind": "js",
|
|
12067
|
+
"name": "cond",
|
|
12068
|
+
"declaration": {
|
|
12069
|
+
"name": "cond",
|
|
12070
|
+
"module": "src/common/directives/cond.ts"
|
|
12071
|
+
}
|
|
12072
|
+
},
|
|
12073
|
+
{
|
|
12074
|
+
"kind": "js",
|
|
12075
|
+
"name": "cond",
|
|
12076
|
+
"declaration": {
|
|
12077
|
+
"name": "cond",
|
|
12078
|
+
"module": "src/common/directives/cond.ts"
|
|
12079
|
+
}
|
|
12080
|
+
},
|
|
12081
|
+
{
|
|
12082
|
+
"kind": "js",
|
|
12083
|
+
"name": "cond",
|
|
12084
|
+
"declaration": {
|
|
12085
|
+
"name": "cond",
|
|
12086
|
+
"module": "src/common/directives/cond.ts"
|
|
12087
|
+
}
|
|
12088
|
+
},
|
|
11032
12089
|
{
|
|
11033
12090
|
"kind": "js",
|
|
11034
|
-
"name": "
|
|
12091
|
+
"name": "cond",
|
|
11035
12092
|
"declaration": {
|
|
11036
|
-
"name": "
|
|
11037
|
-
"module": "src/common/
|
|
12093
|
+
"name": "cond",
|
|
12094
|
+
"module": "src/common/directives/cond.ts"
|
|
11038
12095
|
}
|
|
11039
12096
|
},
|
|
11040
12097
|
{
|
|
11041
12098
|
"kind": "js",
|
|
11042
|
-
"name": "
|
|
12099
|
+
"name": "cond",
|
|
11043
12100
|
"declaration": {
|
|
11044
|
-
"name": "
|
|
11045
|
-
"module": "src/common/
|
|
12101
|
+
"name": "cond",
|
|
12102
|
+
"module": "src/common/directives/cond.ts"
|
|
11046
12103
|
}
|
|
11047
|
-
}
|
|
11048
|
-
]
|
|
11049
|
-
},
|
|
11050
|
-
{
|
|
11051
|
-
"kind": "javascript-module",
|
|
11052
|
-
"path": "src/common/controllers/SlotController.ts",
|
|
11053
|
-
"declarations": [
|
|
12104
|
+
},
|
|
11054
12105
|
{
|
|
11055
|
-
"kind": "
|
|
11056
|
-
"
|
|
11057
|
-
"
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
"type": {
|
|
11063
|
-
"text": "EventController"
|
|
11064
|
-
},
|
|
11065
|
-
"privacy": "private",
|
|
11066
|
-
"default": "new EventController(host)"
|
|
11067
|
-
},
|
|
11068
|
-
{
|
|
11069
|
-
"kind": "method",
|
|
11070
|
-
"name": "hostConnected"
|
|
11071
|
-
},
|
|
11072
|
-
{
|
|
11073
|
-
"kind": "field",
|
|
11074
|
-
"name": "hasContent"
|
|
11075
|
-
},
|
|
11076
|
-
{
|
|
11077
|
-
"kind": "field",
|
|
11078
|
-
"name": "isEmpty"
|
|
11079
|
-
},
|
|
11080
|
-
{
|
|
11081
|
-
"kind": "field",
|
|
11082
|
-
"name": "content"
|
|
11083
|
-
},
|
|
11084
|
-
{
|
|
11085
|
-
"kind": "field",
|
|
11086
|
-
"name": "handleSlotChange",
|
|
11087
|
-
"privacy": "private"
|
|
11088
|
-
},
|
|
11089
|
-
{
|
|
11090
|
-
"kind": "method",
|
|
11091
|
-
"name": "onChange",
|
|
11092
|
-
"privacy": "protected",
|
|
11093
|
-
"parameters": [
|
|
11094
|
-
{
|
|
11095
|
-
"name": "_e",
|
|
11096
|
-
"type": {
|
|
11097
|
-
"text": "Event"
|
|
11098
|
-
}
|
|
11099
|
-
}
|
|
11100
|
-
]
|
|
11101
|
-
}
|
|
11102
|
-
]
|
|
11103
|
-
}
|
|
11104
|
-
],
|
|
11105
|
-
"exports": [
|
|
12106
|
+
"kind": "js",
|
|
12107
|
+
"name": "cond",
|
|
12108
|
+
"declaration": {
|
|
12109
|
+
"name": "cond",
|
|
12110
|
+
"module": "src/common/directives/cond.ts"
|
|
12111
|
+
}
|
|
12112
|
+
},
|
|
11106
12113
|
{
|
|
11107
12114
|
"kind": "js",
|
|
11108
|
-
"name": "
|
|
12115
|
+
"name": "cond",
|
|
11109
12116
|
"declaration": {
|
|
11110
|
-
"name": "
|
|
11111
|
-
"module": "src/common/
|
|
12117
|
+
"name": "cond",
|
|
12118
|
+
"module": "src/common/directives/cond.ts"
|
|
11112
12119
|
}
|
|
11113
12120
|
}
|
|
11114
12121
|
]
|
|
11115
12122
|
},
|
|
11116
12123
|
{
|
|
11117
12124
|
"kind": "javascript-module",
|
|
11118
|
-
"path": "src/common/
|
|
12125
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
11119
12126
|
"declarations": [
|
|
11120
12127
|
{
|
|
11121
|
-
"kind": "
|
|
11122
|
-
"
|
|
11123
|
-
"
|
|
11124
|
-
|
|
12128
|
+
"kind": "function",
|
|
12129
|
+
"name": "wrapIf",
|
|
12130
|
+
"return": {
|
|
12131
|
+
"type": {
|
|
12132
|
+
"text": "TInner"
|
|
12133
|
+
}
|
|
12134
|
+
},
|
|
12135
|
+
"parameters": [
|
|
11125
12136
|
{
|
|
11126
|
-
"
|
|
11127
|
-
"name": "events",
|
|
12137
|
+
"name": "condition",
|
|
11128
12138
|
"type": {
|
|
11129
|
-
"text": "
|
|
11130
|
-
}
|
|
11131
|
-
"privacy": "private",
|
|
11132
|
-
"default": "new EventController(host)"
|
|
12139
|
+
"text": "false"
|
|
12140
|
+
}
|
|
11133
12141
|
},
|
|
11134
12142
|
{
|
|
11135
|
-
"
|
|
11136
|
-
"name": "hadFirstUpdate",
|
|
12143
|
+
"name": "inner",
|
|
11137
12144
|
"type": {
|
|
11138
|
-
"text": "
|
|
11139
|
-
}
|
|
11140
|
-
"privacy": "private",
|
|
11141
|
-
"default": "false"
|
|
12145
|
+
"text": "() => TInner"
|
|
12146
|
+
}
|
|
11142
12147
|
},
|
|
11143
12148
|
{
|
|
11144
|
-
"
|
|
11145
|
-
"name": "initialTouchX",
|
|
12149
|
+
"name": "wrapper",
|
|
11146
12150
|
"type": {
|
|
11147
|
-
"text": "
|
|
11148
|
-
}
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
12151
|
+
"text": "(inner: TInner) => TWrapper"
|
|
12152
|
+
}
|
|
12153
|
+
}
|
|
12154
|
+
]
|
|
12155
|
+
},
|
|
12156
|
+
{
|
|
12157
|
+
"kind": "function",
|
|
12158
|
+
"name": "wrapIf",
|
|
12159
|
+
"return": {
|
|
12160
|
+
"type": {
|
|
12161
|
+
"text": "TWrapper"
|
|
12162
|
+
}
|
|
12163
|
+
},
|
|
12164
|
+
"parameters": [
|
|
11152
12165
|
{
|
|
11153
|
-
"
|
|
11154
|
-
"name": "initialTouchY",
|
|
12166
|
+
"name": "condition",
|
|
11155
12167
|
"type": {
|
|
11156
|
-
"text": "
|
|
11157
|
-
}
|
|
11158
|
-
"privacy": "private",
|
|
11159
|
-
"default": "0"
|
|
12168
|
+
"text": "true"
|
|
12169
|
+
}
|
|
11160
12170
|
},
|
|
11161
12171
|
{
|
|
11162
|
-
"
|
|
11163
|
-
"name": "options",
|
|
12172
|
+
"name": "inner",
|
|
11164
12173
|
"type": {
|
|
11165
|
-
"text": "
|
|
11166
|
-
}
|
|
11167
|
-
"privacy": "private",
|
|
11168
|
-
"default": "{\n target: () => host,\n ...options,\n }"
|
|
11169
|
-
},
|
|
11170
|
-
{
|
|
11171
|
-
"kind": "method",
|
|
11172
|
-
"name": "hostUpdated"
|
|
11173
|
-
},
|
|
11174
|
-
{
|
|
11175
|
-
"kind": "method",
|
|
11176
|
-
"name": "hostDisconnected"
|
|
11177
|
-
},
|
|
11178
|
-
{
|
|
11179
|
-
"kind": "field",
|
|
11180
|
-
"name": "handleTouchStart",
|
|
11181
|
-
"privacy": "private"
|
|
12174
|
+
"text": "() => TInner"
|
|
12175
|
+
}
|
|
11182
12176
|
},
|
|
11183
12177
|
{
|
|
11184
|
-
"
|
|
11185
|
-
"
|
|
11186
|
-
|
|
12178
|
+
"name": "wrapper",
|
|
12179
|
+
"type": {
|
|
12180
|
+
"text": "(inner: TInner) => TWrapper"
|
|
12181
|
+
}
|
|
11187
12182
|
}
|
|
11188
12183
|
]
|
|
11189
12184
|
},
|
|
11190
12185
|
{
|
|
11191
12186
|
"kind": "function",
|
|
11192
|
-
"name": "
|
|
12187
|
+
"name": "wrapIf",
|
|
12188
|
+
"return": {
|
|
12189
|
+
"type": {
|
|
12190
|
+
"text": "TInner | TWrapper"
|
|
12191
|
+
}
|
|
12192
|
+
},
|
|
11193
12193
|
"parameters": [
|
|
11194
12194
|
{
|
|
11195
|
-
"name": "
|
|
12195
|
+
"name": "condition",
|
|
11196
12196
|
"type": {
|
|
11197
|
-
"text": "
|
|
12197
|
+
"text": "unknown"
|
|
12198
|
+
}
|
|
12199
|
+
},
|
|
12200
|
+
{
|
|
12201
|
+
"name": "inner",
|
|
12202
|
+
"type": {
|
|
12203
|
+
"text": "() => TInner"
|
|
12204
|
+
}
|
|
12205
|
+
},
|
|
12206
|
+
{
|
|
12207
|
+
"name": "wrapper",
|
|
12208
|
+
"type": {
|
|
12209
|
+
"text": "(inner: TInner) => TWrapper"
|
|
11198
12210
|
}
|
|
11199
12211
|
}
|
|
11200
12212
|
]
|
|
11201
12213
|
},
|
|
11202
12214
|
{
|
|
11203
12215
|
"kind": "function",
|
|
11204
|
-
"name": "
|
|
12216
|
+
"name": "wrapIf",
|
|
11205
12217
|
"parameters": [
|
|
11206
12218
|
{
|
|
11207
|
-
"name": "
|
|
12219
|
+
"name": "condition",
|
|
11208
12220
|
"type": {
|
|
11209
|
-
"text": "
|
|
12221
|
+
"text": "any"
|
|
12222
|
+
}
|
|
12223
|
+
},
|
|
12224
|
+
{
|
|
12225
|
+
"name": "inner",
|
|
12226
|
+
"type": {
|
|
12227
|
+
"text": "() => TInner"
|
|
12228
|
+
}
|
|
12229
|
+
},
|
|
12230
|
+
{
|
|
12231
|
+
"name": "wrapper",
|
|
12232
|
+
"type": {
|
|
12233
|
+
"text": "(innards: TInner) => TWrapper"
|
|
11210
12234
|
}
|
|
11211
12235
|
}
|
|
11212
|
-
]
|
|
12236
|
+
],
|
|
12237
|
+
"return": {
|
|
12238
|
+
"type": {
|
|
12239
|
+
"text": ""
|
|
12240
|
+
}
|
|
12241
|
+
}
|
|
11213
12242
|
}
|
|
11214
12243
|
],
|
|
11215
12244
|
"exports": [
|
|
11216
12245
|
{
|
|
11217
12246
|
"kind": "js",
|
|
11218
|
-
"name": "
|
|
12247
|
+
"name": "wrapIf",
|
|
11219
12248
|
"declaration": {
|
|
11220
|
-
"name": "
|
|
11221
|
-
"module": "src/common/
|
|
12249
|
+
"name": "wrapIf",
|
|
12250
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
11222
12251
|
}
|
|
11223
12252
|
},
|
|
11224
12253
|
{
|
|
11225
12254
|
"kind": "js",
|
|
11226
|
-
"name": "
|
|
12255
|
+
"name": "wrapIf",
|
|
11227
12256
|
"declaration": {
|
|
11228
|
-
"name": "
|
|
11229
|
-
"module": "src/common/
|
|
12257
|
+
"name": "wrapIf",
|
|
12258
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
11230
12259
|
}
|
|
11231
12260
|
},
|
|
11232
12261
|
{
|
|
11233
12262
|
"kind": "js",
|
|
11234
|
-
"name": "
|
|
12263
|
+
"name": "wrapIf",
|
|
11235
12264
|
"declaration": {
|
|
11236
|
-
"name": "
|
|
11237
|
-
"module": "src/common/
|
|
12265
|
+
"name": "wrapIf",
|
|
12266
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
12267
|
+
}
|
|
12268
|
+
},
|
|
12269
|
+
{
|
|
12270
|
+
"kind": "js",
|
|
12271
|
+
"name": "wrapIf",
|
|
12272
|
+
"declaration": {
|
|
12273
|
+
"name": "wrapIf",
|
|
12274
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
11238
12275
|
}
|
|
11239
12276
|
}
|
|
11240
12277
|
]
|