@nordhealth/components 1.0.0-beta.15 → 1.0.0-beta.18
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 +998 -985
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/{Calendar-4cb3c8f2.js → Calendar-d2da5dc7.js} +3 -3
- package/lib/Calendar-d2da5dc7.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +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/DateSelectEvent.js +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/FocusableMixin-ca9d30fa.js +2 -0
- package/lib/{FocusableMixin-98e13999.js.map → FocusableMixin-ca9d30fa.js.map} +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/bundle.js +8 -8
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/number-02c91604.js +7 -0
- package/lib/{number-e7cd246c.js.map → number-02c91604.js.map} +1 -1
- package/lib/ref-82d2502a.js +17 -0
- package/lib/ref-82d2502a.js.map +1 -0
- package/lib/src/calendar/Calendar.d.ts +8 -0
- package/lib/src/calendar/Calendar.test.d.ts +2 -0
- package/lib/src/calendar/DateSelectEvent.d.ts +1 -2
- package/lib/src/date-picker/DatePicker.d.ts +3 -3
- package/package.json +5 -5
- package/lib/Calendar-4cb3c8f2.js.map +0 -1
- package/lib/FocusableMixin-98e13999.js +0 -2
- package/lib/directive-helpers-e7b6bf4b.js +0 -7
- package/lib/directive-helpers-e7b6bf4b.js.map +0 -1
- package/lib/number-e7cd246c.js +0 -7
- package/lib/ref-eb5cfa10.js +0 -12
- package/lib/ref-eb5cfa10.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -422,380 +422,372 @@
|
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
424
|
"kind": "javascript-module",
|
|
425
|
-
"path": "src/
|
|
425
|
+
"path": "src/button/Button.ts",
|
|
426
426
|
"declarations": [
|
|
427
427
|
{
|
|
428
428
|
"kind": "class",
|
|
429
|
-
"description": "
|
|
430
|
-
"name": "
|
|
429
|
+
"description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
|
|
430
|
+
"name": "Button",
|
|
431
431
|
"slots": [
|
|
432
432
|
{
|
|
433
|
-
"description": "
|
|
433
|
+
"description": "The button content",
|
|
434
434
|
"name": ""
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"members": [
|
|
435
|
+
},
|
|
438
436
|
{
|
|
439
|
-
"
|
|
440
|
-
"name": "
|
|
441
|
-
|
|
442
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
443
|
-
},
|
|
444
|
-
"default": "\"info\"",
|
|
445
|
-
"description": "The style variant of the banner.",
|
|
446
|
-
"attribute": "variant",
|
|
447
|
-
"reflects": true
|
|
448
|
-
}
|
|
449
|
-
],
|
|
450
|
-
"attributes": [
|
|
437
|
+
"description": "Used to place content before button text. Typically used for icons.",
|
|
438
|
+
"name": "before"
|
|
439
|
+
},
|
|
451
440
|
{
|
|
452
|
-
"
|
|
453
|
-
"
|
|
454
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
455
|
-
},
|
|
456
|
-
"default": "\"info\"",
|
|
457
|
-
"description": "The style variant of the banner.",
|
|
458
|
-
"fieldName": "variant"
|
|
441
|
+
"description": "Used to place content after button text. Typically used for icons.",
|
|
442
|
+
"name": "after"
|
|
459
443
|
}
|
|
460
444
|
],
|
|
461
|
-
"superclass": {
|
|
462
|
-
"name": "LitElement",
|
|
463
|
-
"package": "lit"
|
|
464
|
-
},
|
|
465
|
-
"status": "new",
|
|
466
|
-
"category": "feedback",
|
|
467
|
-
"tagName": "nord-banner",
|
|
468
|
-
"customElement": true
|
|
469
|
-
}
|
|
470
|
-
],
|
|
471
|
-
"exports": [
|
|
472
|
-
{
|
|
473
|
-
"kind": "js",
|
|
474
|
-
"name": "default",
|
|
475
|
-
"declaration": {
|
|
476
|
-
"name": "Banner",
|
|
477
|
-
"module": "src/banner/Banner.ts"
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"kind": "custom-element-definition",
|
|
482
|
-
"name": "nord-banner",
|
|
483
|
-
"declaration": {
|
|
484
|
-
"name": "Banner",
|
|
485
|
-
"module": "src/banner/Banner.ts"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"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"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"kind": "javascript-module",
|
|
493
|
-
"path": "src/calendar/Calendar.ts",
|
|
494
|
-
"declarations": [
|
|
495
|
-
{
|
|
496
|
-
"kind": "class",
|
|
497
|
-
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
498
|
-
"name": "Calendar",
|
|
499
445
|
"members": [
|
|
500
446
|
{
|
|
501
447
|
"kind": "field",
|
|
502
|
-
"name": "
|
|
503
|
-
"type": {
|
|
504
|
-
"text": "string"
|
|
505
|
-
},
|
|
506
|
-
"privacy": "private",
|
|
507
|
-
"default": "\"dialog-header\""
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"kind": "field",
|
|
511
|
-
"name": "monthSelectNode",
|
|
512
|
-
"type": {
|
|
513
|
-
"text": "HTMLElement"
|
|
514
|
-
},
|
|
515
|
-
"privacy": "private"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"kind": "field",
|
|
519
|
-
"name": "focusedDayNode",
|
|
520
|
-
"type": {
|
|
521
|
-
"text": "HTMLButtonElement"
|
|
522
|
-
},
|
|
523
|
-
"privacy": "private"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"kind": "field",
|
|
527
|
-
"name": "direction",
|
|
528
|
-
"privacy": "private",
|
|
529
|
-
"default": "new DirectionController(this)"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"kind": "field",
|
|
533
|
-
"name": "swipe",
|
|
534
|
-
"privacy": "private",
|
|
535
|
-
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"kind": "field",
|
|
539
|
-
"name": "shortcuts",
|
|
448
|
+
"name": "buttonRef",
|
|
540
449
|
"privacy": "private"
|
|
541
450
|
},
|
|
542
451
|
{
|
|
543
452
|
"kind": "field",
|
|
544
|
-
"name": "
|
|
545
|
-
"type": {
|
|
546
|
-
"text": "Intl.DateTimeFormat"
|
|
547
|
-
},
|
|
453
|
+
"name": "lightDom",
|
|
548
454
|
"privacy": "private",
|
|
549
|
-
"
|
|
455
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
550
456
|
},
|
|
551
457
|
{
|
|
552
458
|
"kind": "field",
|
|
553
|
-
"name": "
|
|
459
|
+
"name": "variant",
|
|
554
460
|
"type": {
|
|
555
|
-
"text": "
|
|
461
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
556
462
|
},
|
|
557
|
-
"default": "
|
|
463
|
+
"default": "\"default\"",
|
|
464
|
+
"description": "The style variant of the button.",
|
|
465
|
+
"attribute": "variant",
|
|
466
|
+
"reflects": true
|
|
558
467
|
},
|
|
559
468
|
{
|
|
560
469
|
"kind": "field",
|
|
561
|
-
"name": "
|
|
470
|
+
"name": "type",
|
|
562
471
|
"type": {
|
|
563
|
-
"text": "
|
|
472
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
564
473
|
},
|
|
565
|
-
"default": "\"\"",
|
|
566
|
-
"description": "The
|
|
567
|
-
"attribute": "
|
|
474
|
+
"default": "\"submit\"",
|
|
475
|
+
"description": "The type of the button.",
|
|
476
|
+
"attribute": "type",
|
|
477
|
+
"reflects": true
|
|
568
478
|
},
|
|
569
479
|
{
|
|
570
480
|
"kind": "field",
|
|
571
|
-
"name": "
|
|
481
|
+
"name": "size",
|
|
572
482
|
"type": {
|
|
573
|
-
"text": "
|
|
483
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
574
484
|
},
|
|
575
|
-
"
|
|
576
|
-
"
|
|
485
|
+
"default": "\"m\"",
|
|
486
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
487
|
+
"attribute": "size",
|
|
488
|
+
"reflects": true
|
|
577
489
|
},
|
|
578
490
|
{
|
|
579
491
|
"kind": "field",
|
|
580
|
-
"name": "
|
|
492
|
+
"name": "href",
|
|
581
493
|
"type": {
|
|
582
|
-
"text": "string"
|
|
494
|
+
"text": "string | undefined"
|
|
583
495
|
},
|
|
584
|
-
"
|
|
585
|
-
"
|
|
586
|
-
"
|
|
496
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
497
|
+
"attribute": "href",
|
|
498
|
+
"reflects": true
|
|
587
499
|
},
|
|
588
500
|
{
|
|
589
501
|
"kind": "field",
|
|
590
|
-
"name": "
|
|
502
|
+
"name": "download",
|
|
591
503
|
"type": {
|
|
592
|
-
"text": "
|
|
504
|
+
"text": "boolean"
|
|
593
505
|
},
|
|
594
|
-
"default": "
|
|
595
|
-
"description": "
|
|
596
|
-
"attribute": "
|
|
506
|
+
"default": "false",
|
|
507
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
508
|
+
"attribute": "download"
|
|
597
509
|
},
|
|
598
510
|
{
|
|
599
511
|
"kind": "field",
|
|
600
|
-
"name": "
|
|
512
|
+
"name": "target",
|
|
601
513
|
"type": {
|
|
602
|
-
"text": "
|
|
514
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
603
515
|
},
|
|
604
|
-
"default": "
|
|
605
|
-
"description": "
|
|
516
|
+
"default": "\"_self\"",
|
|
517
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
518
|
+
"attribute": "target",
|
|
519
|
+
"reflects": true
|
|
606
520
|
},
|
|
607
521
|
{
|
|
608
522
|
"kind": "field",
|
|
609
|
-
"name": "
|
|
523
|
+
"name": "expand",
|
|
610
524
|
"type": {
|
|
611
525
|
"text": "boolean"
|
|
612
526
|
},
|
|
613
|
-
"
|
|
614
|
-
"
|
|
527
|
+
"default": "false",
|
|
528
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
529
|
+
"attribute": "expand",
|
|
530
|
+
"reflects": true
|
|
615
531
|
},
|
|
616
532
|
{
|
|
617
|
-
"kind": "
|
|
618
|
-
"name": "
|
|
533
|
+
"kind": "method",
|
|
534
|
+
"name": "renderLink",
|
|
619
535
|
"privacy": "private",
|
|
620
|
-
"
|
|
536
|
+
"parameters": [
|
|
537
|
+
{
|
|
538
|
+
"name": "innards",
|
|
539
|
+
"type": {
|
|
540
|
+
"text": "TemplateResult"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
621
545
|
},
|
|
622
546
|
{
|
|
623
547
|
"kind": "method",
|
|
624
|
-
"name": "
|
|
548
|
+
"name": "renderButton",
|
|
549
|
+
"privacy": "private",
|
|
625
550
|
"parameters": [
|
|
626
551
|
{
|
|
627
|
-
"name": "
|
|
628
|
-
"optional": true,
|
|
552
|
+
"name": "innards",
|
|
629
553
|
"type": {
|
|
630
|
-
"text": "
|
|
554
|
+
"text": "TemplateResult"
|
|
631
555
|
}
|
|
632
556
|
}
|
|
633
557
|
]
|
|
634
558
|
},
|
|
635
559
|
{
|
|
636
560
|
"kind": "method",
|
|
637
|
-
"name": "
|
|
561
|
+
"name": "renderLightDom",
|
|
638
562
|
"privacy": "private"
|
|
639
563
|
},
|
|
640
564
|
{
|
|
641
565
|
"kind": "field",
|
|
642
|
-
"name": "
|
|
566
|
+
"name": "handleOuterClick",
|
|
643
567
|
"privacy": "private"
|
|
644
568
|
},
|
|
645
569
|
{
|
|
646
570
|
"kind": "method",
|
|
647
|
-
"name": "
|
|
571
|
+
"name": "handleClick",
|
|
648
572
|
"privacy": "private",
|
|
649
573
|
"parameters": [
|
|
650
574
|
{
|
|
651
|
-
"name": "
|
|
575
|
+
"name": "e",
|
|
652
576
|
"type": {
|
|
653
|
-
"text": "
|
|
577
|
+
"text": "Event"
|
|
654
578
|
}
|
|
655
579
|
}
|
|
656
580
|
]
|
|
657
581
|
},
|
|
658
582
|
{
|
|
659
|
-
"kind": "
|
|
660
|
-
"name": "
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
583
|
+
"kind": "field",
|
|
584
|
+
"name": "disabled",
|
|
585
|
+
"type": {
|
|
586
|
+
"text": "boolean"
|
|
587
|
+
},
|
|
588
|
+
"default": "false",
|
|
589
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
590
|
+
"attribute": "disabled",
|
|
591
|
+
"reflects": true,
|
|
592
|
+
"inheritedFrom": {
|
|
593
|
+
"name": "InputMixin",
|
|
594
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
595
|
+
}
|
|
670
596
|
},
|
|
671
597
|
{
|
|
672
|
-
"kind": "
|
|
673
|
-
"name": "
|
|
674
|
-
"
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
},
|
|
598
|
+
"kind": "field",
|
|
599
|
+
"name": "name",
|
|
600
|
+
"type": {
|
|
601
|
+
"text": "string | undefined"
|
|
602
|
+
},
|
|
603
|
+
"description": "The name of the form component.",
|
|
604
|
+
"attribute": "name",
|
|
605
|
+
"inheritedFrom": {
|
|
606
|
+
"name": "InputMixin",
|
|
607
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
684
610
|
{
|
|
685
|
-
"kind": "
|
|
686
|
-
"name": "
|
|
687
|
-
"
|
|
611
|
+
"kind": "field",
|
|
612
|
+
"name": "value",
|
|
613
|
+
"type": {
|
|
614
|
+
"text": "string"
|
|
615
|
+
},
|
|
616
|
+
"default": "\"\"",
|
|
617
|
+
"description": "The value of the form component.",
|
|
618
|
+
"attribute": "value",
|
|
619
|
+
"inheritedFrom": {
|
|
620
|
+
"name": "InputMixin",
|
|
621
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
622
|
+
}
|
|
688
623
|
},
|
|
689
624
|
{
|
|
690
|
-
"kind": "
|
|
691
|
-
"name": "
|
|
692
|
-
"privacy": "
|
|
625
|
+
"kind": "field",
|
|
626
|
+
"name": "form",
|
|
627
|
+
"privacy": "protected",
|
|
628
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
629
|
+
"inheritedFrom": {
|
|
630
|
+
"name": "InputMixin",
|
|
631
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
632
|
+
}
|
|
693
633
|
},
|
|
694
634
|
{
|
|
695
|
-
"kind": "
|
|
696
|
-
"name": "
|
|
697
|
-
"privacy": "
|
|
698
|
-
"
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"text": "number"
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
]
|
|
635
|
+
"kind": "field",
|
|
636
|
+
"name": "focusableRef",
|
|
637
|
+
"privacy": "protected",
|
|
638
|
+
"inheritedFrom": {
|
|
639
|
+
"name": "FocusableMixin",
|
|
640
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
641
|
+
}
|
|
706
642
|
},
|
|
707
643
|
{
|
|
708
644
|
"kind": "method",
|
|
709
|
-
"name": "
|
|
710
|
-
"privacy": "private",
|
|
645
|
+
"name": "focus",
|
|
711
646
|
"parameters": [
|
|
712
647
|
{
|
|
713
|
-
"name": "
|
|
648
|
+
"name": "options",
|
|
649
|
+
"optional": true,
|
|
714
650
|
"type": {
|
|
715
|
-
"text": "
|
|
716
|
-
}
|
|
651
|
+
"text": "FocusOptions"
|
|
652
|
+
},
|
|
653
|
+
"description": "An object which controls aspects of the focusing process."
|
|
717
654
|
}
|
|
718
|
-
]
|
|
655
|
+
],
|
|
656
|
+
"description": "Programmatically move focus to the component.",
|
|
657
|
+
"inheritedFrom": {
|
|
658
|
+
"name": "FocusableMixin",
|
|
659
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
660
|
+
}
|
|
719
661
|
},
|
|
720
662
|
{
|
|
721
663
|
"kind": "method",
|
|
722
|
-
"name": "
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
"text": "Date"
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
]
|
|
664
|
+
"name": "blur",
|
|
665
|
+
"description": "Programmatically remove focus from the component.",
|
|
666
|
+
"inheritedFrom": {
|
|
667
|
+
"name": "FocusableMixin",
|
|
668
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
669
|
+
}
|
|
732
670
|
},
|
|
733
671
|
{
|
|
734
|
-
"kind": "
|
|
735
|
-
"name": "
|
|
736
|
-
"
|
|
672
|
+
"kind": "method",
|
|
673
|
+
"name": "click",
|
|
674
|
+
"description": "Programmatically simulates a click on the component.",
|
|
675
|
+
"inheritedFrom": {
|
|
676
|
+
"name": "FocusableMixin",
|
|
677
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"attributes": [
|
|
682
|
+
{
|
|
683
|
+
"name": "variant",
|
|
684
|
+
"type": {
|
|
685
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
686
|
+
},
|
|
687
|
+
"default": "\"default\"",
|
|
688
|
+
"description": "The style variant of the button.",
|
|
689
|
+
"fieldName": "variant"
|
|
737
690
|
},
|
|
738
691
|
{
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
|
|
692
|
+
"name": "type",
|
|
693
|
+
"type": {
|
|
694
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
695
|
+
},
|
|
696
|
+
"default": "\"submit\"",
|
|
697
|
+
"description": "The type of the button.",
|
|
698
|
+
"fieldName": "type"
|
|
742
699
|
},
|
|
743
700
|
{
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
|
|
701
|
+
"name": "size",
|
|
702
|
+
"type": {
|
|
703
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
704
|
+
},
|
|
705
|
+
"default": "\"m\"",
|
|
706
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
707
|
+
"fieldName": "size"
|
|
747
708
|
},
|
|
748
709
|
{
|
|
749
|
-
"
|
|
750
|
-
"
|
|
751
|
-
|
|
710
|
+
"name": "href",
|
|
711
|
+
"type": {
|
|
712
|
+
"text": "string | undefined"
|
|
713
|
+
},
|
|
714
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
715
|
+
"fieldName": "href"
|
|
752
716
|
},
|
|
753
717
|
{
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
|
|
718
|
+
"name": "download",
|
|
719
|
+
"type": {
|
|
720
|
+
"text": "boolean"
|
|
721
|
+
},
|
|
722
|
+
"default": "false",
|
|
723
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
724
|
+
"fieldName": "download"
|
|
757
725
|
},
|
|
758
726
|
{
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
727
|
+
"name": "target",
|
|
728
|
+
"type": {
|
|
729
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
730
|
+
},
|
|
731
|
+
"default": "\"_self\"",
|
|
732
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
733
|
+
"fieldName": "target"
|
|
734
|
+
},
|
|
765
735
|
{
|
|
766
|
-
"name": "
|
|
736
|
+
"name": "expand",
|
|
767
737
|
"type": {
|
|
768
|
-
"text": "
|
|
738
|
+
"text": "boolean"
|
|
769
739
|
},
|
|
770
|
-
"default": "
|
|
771
|
-
"description": "
|
|
772
|
-
"fieldName": "
|
|
740
|
+
"default": "false",
|
|
741
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
742
|
+
"fieldName": "expand"
|
|
773
743
|
},
|
|
774
744
|
{
|
|
775
|
-
"name": "
|
|
745
|
+
"name": "disabled",
|
|
776
746
|
"type": {
|
|
777
|
-
"text": "
|
|
747
|
+
"text": "boolean"
|
|
778
748
|
},
|
|
779
|
-
"
|
|
780
|
-
"
|
|
749
|
+
"default": "false",
|
|
750
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
751
|
+
"fieldName": "disabled",
|
|
752
|
+
"inheritedFrom": {
|
|
753
|
+
"name": "InputMixin",
|
|
754
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
755
|
+
}
|
|
781
756
|
},
|
|
782
757
|
{
|
|
783
|
-
"name": "
|
|
758
|
+
"name": "name",
|
|
784
759
|
"type": {
|
|
785
|
-
"text": "string"
|
|
760
|
+
"text": "string | undefined"
|
|
786
761
|
},
|
|
787
|
-
"
|
|
788
|
-
"
|
|
789
|
-
"
|
|
762
|
+
"description": "The name of the form component.",
|
|
763
|
+
"fieldName": "name",
|
|
764
|
+
"inheritedFrom": {
|
|
765
|
+
"name": "InputMixin",
|
|
766
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
767
|
+
}
|
|
790
768
|
},
|
|
791
769
|
{
|
|
792
|
-
"name": "
|
|
770
|
+
"name": "value",
|
|
793
771
|
"type": {
|
|
794
772
|
"text": "string"
|
|
795
773
|
},
|
|
796
774
|
"default": "\"\"",
|
|
797
|
-
"description": "
|
|
798
|
-
"fieldName": "
|
|
775
|
+
"description": "The value of the form component.",
|
|
776
|
+
"fieldName": "value",
|
|
777
|
+
"inheritedFrom": {
|
|
778
|
+
"name": "InputMixin",
|
|
779
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"mixins": [
|
|
784
|
+
{
|
|
785
|
+
"name": "InputMixin",
|
|
786
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"name": "FocusableMixin",
|
|
790
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
799
791
|
}
|
|
800
792
|
],
|
|
801
793
|
"superclass": {
|
|
@@ -803,8 +795,8 @@
|
|
|
803
795
|
"package": "lit"
|
|
804
796
|
},
|
|
805
797
|
"status": "ready",
|
|
806
|
-
"category": "
|
|
807
|
-
"tagName": "nord-
|
|
798
|
+
"category": "action",
|
|
799
|
+
"tagName": "nord-button",
|
|
808
800
|
"customElement": true
|
|
809
801
|
}
|
|
810
802
|
],
|
|
@@ -813,77 +805,67 @@
|
|
|
813
805
|
"kind": "js",
|
|
814
806
|
"name": "default",
|
|
815
807
|
"declaration": {
|
|
816
|
-
"name": "
|
|
817
|
-
"module": "src/
|
|
808
|
+
"name": "Button",
|
|
809
|
+
"module": "src/button/Button.ts"
|
|
818
810
|
}
|
|
819
811
|
},
|
|
820
812
|
{
|
|
821
813
|
"kind": "custom-element-definition",
|
|
822
|
-
"name": "nord-
|
|
814
|
+
"name": "nord-button",
|
|
823
815
|
"declaration": {
|
|
824
|
-
"name": "
|
|
825
|
-
"module": "src/
|
|
816
|
+
"name": "Button",
|
|
817
|
+
"module": "src/button/Button.ts"
|
|
826
818
|
}
|
|
827
819
|
}
|
|
828
820
|
],
|
|
829
|
-
"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
|
|
821
|
+
"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"
|
|
830
822
|
},
|
|
831
823
|
{
|
|
832
824
|
"kind": "javascript-module",
|
|
833
|
-
"path": "src/
|
|
825
|
+
"path": "src/banner/Banner.ts",
|
|
834
826
|
"declarations": [
|
|
835
827
|
{
|
|
836
828
|
"kind": "class",
|
|
837
|
-
"description": "",
|
|
838
|
-
"name": "
|
|
829
|
+
"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.",
|
|
830
|
+
"name": "Banner",
|
|
831
|
+
"slots": [
|
|
832
|
+
{
|
|
833
|
+
"description": "default slot",
|
|
834
|
+
"name": ""
|
|
835
|
+
}
|
|
836
|
+
],
|
|
839
837
|
"members": [
|
|
840
838
|
{
|
|
841
839
|
"kind": "field",
|
|
842
|
-
"name": "
|
|
840
|
+
"name": "variant",
|
|
843
841
|
"type": {
|
|
844
|
-
"text": "
|
|
842
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
845
843
|
},
|
|
846
|
-
"
|
|
847
|
-
"
|
|
848
|
-
|
|
844
|
+
"default": "\"info\"",
|
|
845
|
+
"description": "The style variant of the banner.",
|
|
846
|
+
"attribute": "variant",
|
|
847
|
+
"reflects": true
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
"attributes": [
|
|
849
851
|
{
|
|
850
|
-
"
|
|
851
|
-
"name": "date",
|
|
852
|
+
"name": "variant",
|
|
852
853
|
"type": {
|
|
853
|
-
"text": "
|
|
854
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
854
855
|
},
|
|
855
|
-
"default": "
|
|
856
|
+
"default": "\"info\"",
|
|
857
|
+
"description": "The style variant of the banner.",
|
|
858
|
+
"fieldName": "variant"
|
|
856
859
|
}
|
|
857
860
|
],
|
|
858
861
|
"superclass": {
|
|
859
|
-
"name": "
|
|
860
|
-
"
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"exports": [
|
|
865
|
-
{
|
|
866
|
-
"kind": "js",
|
|
867
|
-
"name": "DateSelectEvent",
|
|
868
|
-
"declaration": {
|
|
869
|
-
"name": "DateSelectEvent",
|
|
870
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
],
|
|
874
|
-
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
"kind": "javascript-module",
|
|
878
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
879
|
-
"declarations": [
|
|
880
|
-
{
|
|
881
|
-
"kind": "variable",
|
|
882
|
-
"name": "localization",
|
|
883
|
-
"type": {
|
|
884
|
-
"text": "CalendarLocalizedText"
|
|
862
|
+
"name": "LitElement",
|
|
863
|
+
"package": "lit"
|
|
885
864
|
},
|
|
886
|
-
"
|
|
865
|
+
"status": "new",
|
|
866
|
+
"category": "feedback",
|
|
867
|
+
"tagName": "nord-banner",
|
|
868
|
+
"customElement": true
|
|
887
869
|
}
|
|
888
870
|
],
|
|
889
871
|
"exports": [
|
|
@@ -891,430 +873,347 @@
|
|
|
891
873
|
"kind": "js",
|
|
892
874
|
"name": "default",
|
|
893
875
|
"declaration": {
|
|
894
|
-
"name": "
|
|
895
|
-
"module": "src/
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
],
|
|
899
|
-
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"kind": "javascript-module",
|
|
903
|
-
"path": "src/calendar/month-view.ts",
|
|
904
|
-
"declarations": [
|
|
905
|
-
{
|
|
906
|
-
"kind": "function",
|
|
907
|
-
"name": "dayView",
|
|
908
|
-
"parameters": [
|
|
909
|
-
{
|
|
910
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
911
|
-
"type": {
|
|
912
|
-
"text": "DatePickerDayProps"
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
]
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"kind": "function",
|
|
919
|
-
"name": "monthView",
|
|
920
|
-
"parameters": [
|
|
921
|
-
{
|
|
922
|
-
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
923
|
-
"type": {
|
|
924
|
-
"text": "MonthViewArgs"
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
]
|
|
928
|
-
}
|
|
929
|
-
],
|
|
930
|
-
"exports": [
|
|
931
|
-
{
|
|
932
|
-
"kind": "js",
|
|
933
|
-
"name": "dayView",
|
|
934
|
-
"declaration": {
|
|
935
|
-
"name": "dayView",
|
|
936
|
-
"module": "src/calendar/month-view.ts"
|
|
876
|
+
"name": "Banner",
|
|
877
|
+
"module": "src/banner/Banner.ts"
|
|
937
878
|
}
|
|
938
879
|
},
|
|
939
880
|
{
|
|
940
|
-
"kind": "
|
|
941
|
-
"name": "
|
|
881
|
+
"kind": "custom-element-definition",
|
|
882
|
+
"name": "nord-banner",
|
|
942
883
|
"declaration": {
|
|
943
|
-
"name": "
|
|
944
|
-
"module": "src/
|
|
884
|
+
"name": "Banner",
|
|
885
|
+
"module": "src/banner/Banner.ts"
|
|
945
886
|
}
|
|
946
887
|
}
|
|
947
888
|
],
|
|
948
|
-
"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
|
|
889
|
+
"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"
|
|
949
890
|
},
|
|
950
891
|
{
|
|
951
892
|
"kind": "javascript-module",
|
|
952
|
-
"path": "src/
|
|
893
|
+
"path": "src/calendar/Calendar.ts",
|
|
953
894
|
"declarations": [
|
|
954
895
|
{
|
|
955
896
|
"kind": "class",
|
|
956
|
-
"description": "
|
|
957
|
-
"name": "
|
|
958
|
-
"
|
|
897
|
+
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
898
|
+
"name": "Calendar",
|
|
899
|
+
"members": [
|
|
959
900
|
{
|
|
960
|
-
"
|
|
961
|
-
"name": ""
|
|
901
|
+
"kind": "field",
|
|
902
|
+
"name": "dialogLabelId",
|
|
903
|
+
"type": {
|
|
904
|
+
"text": "string"
|
|
905
|
+
},
|
|
906
|
+
"privacy": "private",
|
|
907
|
+
"default": "\"dialog-header\""
|
|
962
908
|
},
|
|
963
909
|
{
|
|
964
|
-
"
|
|
965
|
-
"name": "
|
|
910
|
+
"kind": "field",
|
|
911
|
+
"name": "monthSelectNode",
|
|
912
|
+
"type": {
|
|
913
|
+
"text": "HTMLElement"
|
|
914
|
+
},
|
|
915
|
+
"privacy": "private"
|
|
966
916
|
},
|
|
967
917
|
{
|
|
968
|
-
"
|
|
969
|
-
"name": "
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
918
|
+
"kind": "field",
|
|
919
|
+
"name": "focusedDayNode",
|
|
920
|
+
"type": {
|
|
921
|
+
"text": "HTMLButtonElement"
|
|
922
|
+
},
|
|
923
|
+
"privacy": "private"
|
|
924
|
+
},
|
|
973
925
|
{
|
|
974
926
|
"kind": "field",
|
|
975
|
-
"name": "
|
|
927
|
+
"name": "direction",
|
|
928
|
+
"privacy": "private",
|
|
929
|
+
"default": "new DirectionController(this)"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"kind": "field",
|
|
933
|
+
"name": "swipe",
|
|
934
|
+
"privacy": "private",
|
|
935
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"kind": "field",
|
|
939
|
+
"name": "shortcuts",
|
|
976
940
|
"privacy": "private"
|
|
977
941
|
},
|
|
978
942
|
{
|
|
979
943
|
"kind": "field",
|
|
980
|
-
"name": "
|
|
944
|
+
"name": "dateFormatShort",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "Intl.DateTimeFormat"
|
|
947
|
+
},
|
|
981
948
|
"privacy": "private",
|
|
982
|
-
"
|
|
949
|
+
"description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
|
|
983
950
|
},
|
|
984
951
|
{
|
|
985
952
|
"kind": "field",
|
|
986
|
-
"name": "
|
|
953
|
+
"name": "localization",
|
|
987
954
|
"type": {
|
|
988
|
-
"text": "
|
|
955
|
+
"text": "CalendarLocalizedText"
|
|
989
956
|
},
|
|
990
|
-
"default": "
|
|
991
|
-
"description": "The style variant of the button.",
|
|
992
|
-
"attribute": "variant",
|
|
993
|
-
"reflects": true
|
|
957
|
+
"default": "localization"
|
|
994
958
|
},
|
|
995
959
|
{
|
|
996
960
|
"kind": "field",
|
|
997
|
-
"name": "
|
|
961
|
+
"name": "value",
|
|
998
962
|
"type": {
|
|
999
|
-
"text": "
|
|
963
|
+
"text": "string"
|
|
1000
964
|
},
|
|
1001
|
-
"default": "\"
|
|
1002
|
-
"description": "The
|
|
1003
|
-
"attribute": "
|
|
1004
|
-
"reflects": true
|
|
965
|
+
"default": "\"\"",
|
|
966
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
967
|
+
"attribute": "value"
|
|
1005
968
|
},
|
|
1006
969
|
{
|
|
1007
970
|
"kind": "field",
|
|
1008
|
-
"name": "
|
|
971
|
+
"name": "firstDayOfWeek",
|
|
1009
972
|
"type": {
|
|
1010
|
-
"text": "
|
|
973
|
+
"text": "DaysOfWeek"
|
|
1011
974
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"attribute": "size",
|
|
1015
|
-
"reflects": true
|
|
975
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
976
|
+
"attribute": "firstDayOfWeek"
|
|
1016
977
|
},
|
|
1017
978
|
{
|
|
1018
979
|
"kind": "field",
|
|
1019
|
-
"name": "
|
|
980
|
+
"name": "min",
|
|
1020
981
|
"type": {
|
|
1021
|
-
"text": "string
|
|
982
|
+
"text": "string"
|
|
1022
983
|
},
|
|
1023
|
-
"
|
|
1024
|
-
"
|
|
1025
|
-
"
|
|
984
|
+
"default": "\"\"",
|
|
985
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
986
|
+
"attribute": "min"
|
|
1026
987
|
},
|
|
1027
988
|
{
|
|
1028
989
|
"kind": "field",
|
|
1029
|
-
"name": "
|
|
990
|
+
"name": "max",
|
|
1030
991
|
"type": {
|
|
1031
|
-
"text": "
|
|
992
|
+
"text": "string"
|
|
1032
993
|
},
|
|
1033
|
-
"default": "
|
|
1034
|
-
"description": "
|
|
1035
|
-
"attribute": "
|
|
994
|
+
"default": "\"\"",
|
|
995
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
996
|
+
"attribute": "max"
|
|
1036
997
|
},
|
|
1037
998
|
{
|
|
1038
999
|
"kind": "field",
|
|
1039
|
-
"name": "
|
|
1000
|
+
"name": "isDateDisabled",
|
|
1040
1001
|
"type": {
|
|
1041
|
-
"text": "
|
|
1002
|
+
"text": "DateDisabledPredicate"
|
|
1042
1003
|
},
|
|
1043
|
-
"default": "
|
|
1044
|
-
"description": "
|
|
1045
|
-
"attribute": "target",
|
|
1046
|
-
"reflects": true
|
|
1004
|
+
"default": "isDateDisabled",
|
|
1005
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1047
1006
|
},
|
|
1048
1007
|
{
|
|
1049
1008
|
"kind": "field",
|
|
1050
|
-
"name": "
|
|
1009
|
+
"name": "activeFocus",
|
|
1051
1010
|
"type": {
|
|
1052
1011
|
"text": "boolean"
|
|
1053
1012
|
},
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"attribute": "expand",
|
|
1057
|
-
"reflects": true
|
|
1013
|
+
"privacy": "private",
|
|
1014
|
+
"default": "false"
|
|
1058
1015
|
},
|
|
1059
1016
|
{
|
|
1060
|
-
"kind": "
|
|
1061
|
-
"name": "
|
|
1017
|
+
"kind": "field",
|
|
1018
|
+
"name": "focusedDay",
|
|
1062
1019
|
"privacy": "private",
|
|
1063
|
-
"
|
|
1064
|
-
{
|
|
1065
|
-
"name": "innards",
|
|
1066
|
-
"type": {
|
|
1067
|
-
"text": "TemplateResult"
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
],
|
|
1071
|
-
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
1020
|
+
"default": "new Date()"
|
|
1072
1021
|
},
|
|
1073
1022
|
{
|
|
1074
1023
|
"kind": "method",
|
|
1075
|
-
"name": "
|
|
1076
|
-
"privacy": "private",
|
|
1024
|
+
"name": "focus",
|
|
1077
1025
|
"parameters": [
|
|
1078
1026
|
{
|
|
1079
|
-
"name": "
|
|
1027
|
+
"name": "options",
|
|
1028
|
+
"optional": true,
|
|
1080
1029
|
"type": {
|
|
1081
|
-
"text": "
|
|
1082
|
-
}
|
|
1030
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1031
|
+
},
|
|
1032
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1083
1033
|
}
|
|
1084
|
-
]
|
|
1034
|
+
],
|
|
1035
|
+
"description": "Programmatically move focus to the calendar."
|
|
1085
1036
|
},
|
|
1086
1037
|
{
|
|
1087
1038
|
"kind": "method",
|
|
1088
|
-
"name": "
|
|
1039
|
+
"name": "createDateFormatter",
|
|
1089
1040
|
"privacy": "private"
|
|
1090
1041
|
},
|
|
1091
1042
|
{
|
|
1092
1043
|
"kind": "field",
|
|
1093
|
-
"name": "
|
|
1044
|
+
"name": "handleDaySelect",
|
|
1094
1045
|
"privacy": "private"
|
|
1095
1046
|
},
|
|
1096
1047
|
{
|
|
1097
1048
|
"kind": "method",
|
|
1098
|
-
"name": "
|
|
1049
|
+
"name": "addDays",
|
|
1099
1050
|
"privacy": "private",
|
|
1100
1051
|
"parameters": [
|
|
1101
1052
|
{
|
|
1102
|
-
"name": "
|
|
1053
|
+
"name": "days",
|
|
1103
1054
|
"type": {
|
|
1104
|
-
"text": "
|
|
1055
|
+
"text": "number"
|
|
1105
1056
|
}
|
|
1106
1057
|
}
|
|
1107
1058
|
]
|
|
1108
1059
|
},
|
|
1109
1060
|
{
|
|
1110
|
-
"kind": "
|
|
1111
|
-
"name": "
|
|
1112
|
-
"
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1122
|
-
}
|
|
1061
|
+
"kind": "method",
|
|
1062
|
+
"name": "addMonths",
|
|
1063
|
+
"privacy": "private",
|
|
1064
|
+
"parameters": [
|
|
1065
|
+
{
|
|
1066
|
+
"name": "months",
|
|
1067
|
+
"type": {
|
|
1068
|
+
"text": "number"
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1123
1072
|
},
|
|
1124
1073
|
{
|
|
1125
|
-
"kind": "
|
|
1126
|
-
"name": "
|
|
1127
|
-
"
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1074
|
+
"kind": "method",
|
|
1075
|
+
"name": "addYears",
|
|
1076
|
+
"privacy": "private",
|
|
1077
|
+
"parameters": [
|
|
1078
|
+
{
|
|
1079
|
+
"name": "years",
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "number"
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
]
|
|
1136
1085
|
},
|
|
1137
1086
|
{
|
|
1138
|
-
"kind": "
|
|
1139
|
-
"name": "
|
|
1140
|
-
"
|
|
1141
|
-
"text": "string"
|
|
1142
|
-
},
|
|
1143
|
-
"default": "\"\"",
|
|
1144
|
-
"description": "The value of the form component.",
|
|
1145
|
-
"attribute": "value",
|
|
1146
|
-
"inheritedFrom": {
|
|
1147
|
-
"name": "InputMixin",
|
|
1148
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1149
|
-
}
|
|
1087
|
+
"kind": "method",
|
|
1088
|
+
"name": "startOfWeek",
|
|
1089
|
+
"privacy": "private"
|
|
1150
1090
|
},
|
|
1151
1091
|
{
|
|
1152
|
-
"kind": "
|
|
1153
|
-
"name": "
|
|
1154
|
-
"privacy": "
|
|
1155
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
1156
|
-
"inheritedFrom": {
|
|
1157
|
-
"name": "InputMixin",
|
|
1158
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1159
|
-
}
|
|
1092
|
+
"kind": "method",
|
|
1093
|
+
"name": "endOfWeek",
|
|
1094
|
+
"privacy": "private"
|
|
1160
1095
|
},
|
|
1161
1096
|
{
|
|
1162
|
-
"kind": "
|
|
1163
|
-
"name": "
|
|
1164
|
-
"privacy": "
|
|
1165
|
-
"
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1097
|
+
"kind": "method",
|
|
1098
|
+
"name": "setMonth",
|
|
1099
|
+
"privacy": "private",
|
|
1100
|
+
"parameters": [
|
|
1101
|
+
{
|
|
1102
|
+
"name": "month",
|
|
1103
|
+
"type": {
|
|
1104
|
+
"text": "number"
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1169
1108
|
},
|
|
1170
1109
|
{
|
|
1171
1110
|
"kind": "method",
|
|
1172
|
-
"name": "
|
|
1111
|
+
"name": "setYear",
|
|
1112
|
+
"privacy": "private",
|
|
1173
1113
|
"parameters": [
|
|
1174
1114
|
{
|
|
1175
|
-
"name": "
|
|
1176
|
-
"optional": true,
|
|
1115
|
+
"name": "year",
|
|
1177
1116
|
"type": {
|
|
1178
|
-
"text": "
|
|
1179
|
-
}
|
|
1180
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1117
|
+
"text": "number"
|
|
1118
|
+
}
|
|
1181
1119
|
}
|
|
1182
|
-
]
|
|
1183
|
-
"description": "Programmatically move focus to the component.",
|
|
1184
|
-
"inheritedFrom": {
|
|
1185
|
-
"name": "FocusableMixin",
|
|
1186
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1187
|
-
}
|
|
1120
|
+
]
|
|
1188
1121
|
},
|
|
1189
1122
|
{
|
|
1190
1123
|
"kind": "method",
|
|
1191
|
-
"name": "
|
|
1192
|
-
"
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1124
|
+
"name": "setFocusedDay",
|
|
1125
|
+
"privacy": "private",
|
|
1126
|
+
"parameters": [
|
|
1127
|
+
{
|
|
1128
|
+
"name": "day",
|
|
1129
|
+
"type": {
|
|
1130
|
+
"text": "Date"
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
]
|
|
1197
1134
|
},
|
|
1198
1135
|
{
|
|
1199
|
-
"kind": "
|
|
1200
|
-
"name": "
|
|
1201
|
-
"
|
|
1202
|
-
|
|
1203
|
-
"name": "FocusableMixin",
|
|
1204
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
],
|
|
1208
|
-
"attributes": [
|
|
1136
|
+
"kind": "field",
|
|
1137
|
+
"name": "handleMonthSelect",
|
|
1138
|
+
"privacy": "private"
|
|
1139
|
+
},
|
|
1209
1140
|
{
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1212
|
-
|
|
1213
|
-
},
|
|
1214
|
-
"default": "\"default\"",
|
|
1215
|
-
"description": "The style variant of the button.",
|
|
1216
|
-
"fieldName": "variant"
|
|
1141
|
+
"kind": "field",
|
|
1142
|
+
"name": "handleYearSelect",
|
|
1143
|
+
"privacy": "private"
|
|
1217
1144
|
},
|
|
1218
1145
|
{
|
|
1219
|
-
"
|
|
1220
|
-
"
|
|
1221
|
-
|
|
1222
|
-
},
|
|
1223
|
-
"default": "\"submit\"",
|
|
1224
|
-
"description": "The type of the button.",
|
|
1225
|
-
"fieldName": "type"
|
|
1146
|
+
"kind": "field",
|
|
1147
|
+
"name": "handleNextMonthClick",
|
|
1148
|
+
"privacy": "private"
|
|
1226
1149
|
},
|
|
1227
1150
|
{
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1230
|
-
|
|
1231
|
-
},
|
|
1232
|
-
"default": "\"m\"",
|
|
1233
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1234
|
-
"fieldName": "size"
|
|
1151
|
+
"kind": "field",
|
|
1152
|
+
"name": "handlePreviousMonthClick",
|
|
1153
|
+
"privacy": "private"
|
|
1235
1154
|
},
|
|
1236
1155
|
{
|
|
1237
|
-
"
|
|
1238
|
-
"
|
|
1239
|
-
|
|
1240
|
-
},
|
|
1241
|
-
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1242
|
-
"fieldName": "href"
|
|
1156
|
+
"kind": "field",
|
|
1157
|
+
"name": "enableActiveFocus",
|
|
1158
|
+
"privacy": "private"
|
|
1243
1159
|
},
|
|
1244
1160
|
{
|
|
1245
|
-
"
|
|
1161
|
+
"kind": "field",
|
|
1162
|
+
"name": "disableActiveFocus",
|
|
1163
|
+
"privacy": "private"
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
"events": [
|
|
1167
|
+
{
|
|
1168
|
+
"name": "nord-focus-date",
|
|
1246
1169
|
"type": {
|
|
1247
|
-
"text": "
|
|
1170
|
+
"text": "DateSelectEvent"
|
|
1248
1171
|
},
|
|
1249
|
-
"
|
|
1250
|
-
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1251
|
-
"fieldName": "download"
|
|
1172
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
1252
1173
|
},
|
|
1253
1174
|
{
|
|
1254
|
-
"name": "target",
|
|
1255
1175
|
"type": {
|
|
1256
|
-
"text": "
|
|
1176
|
+
"text": "DateSelectEvent"
|
|
1257
1177
|
},
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1260
|
-
|
|
1261
|
-
|
|
1178
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
1179
|
+
"name": "change"
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1182
|
+
"attributes": [
|
|
1262
1183
|
{
|
|
1263
|
-
"name": "
|
|
1184
|
+
"name": "value",
|
|
1264
1185
|
"type": {
|
|
1265
|
-
"text": "
|
|
1186
|
+
"text": "string"
|
|
1266
1187
|
},
|
|
1267
|
-
"default": "
|
|
1268
|
-
"description": "
|
|
1269
|
-
"fieldName": "
|
|
1188
|
+
"default": "\"\"",
|
|
1189
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1190
|
+
"fieldName": "value"
|
|
1270
1191
|
},
|
|
1271
1192
|
{
|
|
1272
|
-
"name": "
|
|
1193
|
+
"name": "firstDayOfWeek",
|
|
1273
1194
|
"type": {
|
|
1274
|
-
"text": "
|
|
1195
|
+
"text": "DaysOfWeek"
|
|
1275
1196
|
},
|
|
1276
|
-
"
|
|
1277
|
-
"
|
|
1278
|
-
"fieldName": "disabled",
|
|
1279
|
-
"inheritedFrom": {
|
|
1280
|
-
"name": "InputMixin",
|
|
1281
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1282
|
-
}
|
|
1197
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1198
|
+
"fieldName": "firstDayOfWeek"
|
|
1283
1199
|
},
|
|
1284
1200
|
{
|
|
1285
|
-
"name": "
|
|
1201
|
+
"name": "min",
|
|
1286
1202
|
"type": {
|
|
1287
|
-
"text": "string
|
|
1203
|
+
"text": "string"
|
|
1288
1204
|
},
|
|
1289
|
-
"
|
|
1290
|
-
"
|
|
1291
|
-
"
|
|
1292
|
-
"name": "InputMixin",
|
|
1293
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1294
|
-
}
|
|
1205
|
+
"default": "\"\"",
|
|
1206
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
1207
|
+
"fieldName": "min"
|
|
1295
1208
|
},
|
|
1296
1209
|
{
|
|
1297
|
-
"name": "
|
|
1210
|
+
"name": "max",
|
|
1298
1211
|
"type": {
|
|
1299
1212
|
"text": "string"
|
|
1300
1213
|
},
|
|
1301
1214
|
"default": "\"\"",
|
|
1302
|
-
"description": "
|
|
1303
|
-
"fieldName": "
|
|
1304
|
-
"inheritedFrom": {
|
|
1305
|
-
"name": "InputMixin",
|
|
1306
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
],
|
|
1310
|
-
"mixins": [
|
|
1311
|
-
{
|
|
1312
|
-
"name": "InputMixin",
|
|
1313
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1314
|
-
},
|
|
1315
|
-
{
|
|
1316
|
-
"name": "FocusableMixin",
|
|
1317
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1215
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
1216
|
+
"fieldName": "max"
|
|
1318
1217
|
}
|
|
1319
1218
|
],
|
|
1320
1219
|
"superclass": {
|
|
@@ -1322,8 +1221,8 @@
|
|
|
1322
1221
|
"package": "lit"
|
|
1323
1222
|
},
|
|
1324
1223
|
"status": "ready",
|
|
1325
|
-
"category": "
|
|
1326
|
-
"tagName": "nord-
|
|
1224
|
+
"category": "list",
|
|
1225
|
+
"tagName": "nord-calendar",
|
|
1327
1226
|
"customElement": true
|
|
1328
1227
|
}
|
|
1329
1228
|
],
|
|
@@ -1332,20 +1231,130 @@
|
|
|
1332
1231
|
"kind": "js",
|
|
1333
1232
|
"name": "default",
|
|
1334
1233
|
"declaration": {
|
|
1335
|
-
"name": "
|
|
1336
|
-
"module": "src/
|
|
1234
|
+
"name": "Calendar",
|
|
1235
|
+
"module": "src/calendar/Calendar.ts"
|
|
1337
1236
|
}
|
|
1338
1237
|
},
|
|
1339
1238
|
{
|
|
1340
1239
|
"kind": "custom-element-definition",
|
|
1341
|
-
"name": "nord-
|
|
1240
|
+
"name": "nord-calendar",
|
|
1342
1241
|
"declaration": {
|
|
1343
|
-
"name": "
|
|
1344
|
-
"module": "src/
|
|
1242
|
+
"name": "Calendar",
|
|
1243
|
+
"module": "src/calendar/Calendar.ts"
|
|
1345
1244
|
}
|
|
1346
1245
|
}
|
|
1347
1246
|
],
|
|
1348
|
-
"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
|
|
1247
|
+
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"kind": "javascript-module",
|
|
1251
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1252
|
+
"declarations": [
|
|
1253
|
+
{
|
|
1254
|
+
"kind": "class",
|
|
1255
|
+
"description": "",
|
|
1256
|
+
"name": "DateSelectEvent",
|
|
1257
|
+
"members": [
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "field",
|
|
1260
|
+
"name": "date",
|
|
1261
|
+
"type": {
|
|
1262
|
+
"text": "Date"
|
|
1263
|
+
},
|
|
1264
|
+
"default": "date"
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
"superclass": {
|
|
1268
|
+
"name": "NordEvent",
|
|
1269
|
+
"module": "/src/common/events.js"
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
"exports": [
|
|
1274
|
+
{
|
|
1275
|
+
"kind": "js",
|
|
1276
|
+
"name": "DateSelectEvent",
|
|
1277
|
+
"declaration": {
|
|
1278
|
+
"name": "DateSelectEvent",
|
|
1279
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
],
|
|
1283
|
+
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"kind": "javascript-module",
|
|
1287
|
+
"path": "src/calendar/calendar-localization.ts",
|
|
1288
|
+
"declarations": [
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "variable",
|
|
1291
|
+
"name": "localization",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"text": "CalendarLocalizedText"
|
|
1294
|
+
},
|
|
1295
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
"exports": [
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "js",
|
|
1301
|
+
"name": "default",
|
|
1302
|
+
"declaration": {
|
|
1303
|
+
"name": "localization",
|
|
1304
|
+
"module": "src/calendar/calendar-localization.ts"
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "javascript-module",
|
|
1312
|
+
"path": "src/calendar/month-view.ts",
|
|
1313
|
+
"declarations": [
|
|
1314
|
+
{
|
|
1315
|
+
"kind": "function",
|
|
1316
|
+
"name": "dayView",
|
|
1317
|
+
"parameters": [
|
|
1318
|
+
{
|
|
1319
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1320
|
+
"type": {
|
|
1321
|
+
"text": "DatePickerDayProps"
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"kind": "function",
|
|
1328
|
+
"name": "monthView",
|
|
1329
|
+
"parameters": [
|
|
1330
|
+
{
|
|
1331
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1332
|
+
"type": {
|
|
1333
|
+
"text": "MonthViewArgs"
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
]
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"exports": [
|
|
1340
|
+
{
|
|
1341
|
+
"kind": "js",
|
|
1342
|
+
"name": "dayView",
|
|
1343
|
+
"declaration": {
|
|
1344
|
+
"name": "dayView",
|
|
1345
|
+
"module": "src/calendar/month-view.ts"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "js",
|
|
1350
|
+
"name": "monthView",
|
|
1351
|
+
"declaration": {
|
|
1352
|
+
"name": "monthView",
|
|
1353
|
+
"module": "src/calendar/month-view.ts"
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1357
|
+
"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 when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1349
1358
|
},
|
|
1350
1359
|
{
|
|
1351
1360
|
"kind": "javascript-module",
|
|
@@ -3589,11 +3598,56 @@
|
|
|
3589
3598
|
"kind": "js",
|
|
3590
3599
|
"name": "mergeRefs",
|
|
3591
3600
|
"declaration": {
|
|
3592
|
-
"name": "mergeRefs",
|
|
3593
|
-
"module": "src/common/ref.ts"
|
|
3601
|
+
"name": "mergeRefs",
|
|
3602
|
+
"module": "src/common/ref.ts"
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
]
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"kind": "javascript-module",
|
|
3609
|
+
"path": "src/empty-state/EmptyState.ts",
|
|
3610
|
+
"declarations": [
|
|
3611
|
+
{
|
|
3612
|
+
"kind": "class",
|
|
3613
|
+
"description": "Empty state can be used when there is no data to display to\ndescribe what the user can do next. Empty state provides\nexplanation and guidance to help user progress.",
|
|
3614
|
+
"name": "EmptyState",
|
|
3615
|
+
"slots": [
|
|
3616
|
+
{
|
|
3617
|
+
"description": "default slot",
|
|
3618
|
+
"name": ""
|
|
3619
|
+
}
|
|
3620
|
+
],
|
|
3621
|
+
"members": [],
|
|
3622
|
+
"superclass": {
|
|
3623
|
+
"name": "LitElement",
|
|
3624
|
+
"package": "lit"
|
|
3625
|
+
},
|
|
3626
|
+
"status": "new",
|
|
3627
|
+
"category": "feedback",
|
|
3628
|
+
"tagName": "nord-empty-state",
|
|
3629
|
+
"customElement": true
|
|
3630
|
+
}
|
|
3631
|
+
],
|
|
3632
|
+
"exports": [
|
|
3633
|
+
{
|
|
3634
|
+
"kind": "js",
|
|
3635
|
+
"name": "default",
|
|
3636
|
+
"declaration": {
|
|
3637
|
+
"name": "EmptyState",
|
|
3638
|
+
"module": "src/empty-state/EmptyState.ts"
|
|
3639
|
+
}
|
|
3640
|
+
},
|
|
3641
|
+
{
|
|
3642
|
+
"kind": "custom-element-definition",
|
|
3643
|
+
"name": "nord-empty-state",
|
|
3644
|
+
"declaration": {
|
|
3645
|
+
"name": "EmptyState",
|
|
3646
|
+
"module": "src/empty-state/EmptyState.ts"
|
|
3594
3647
|
}
|
|
3595
3648
|
}
|
|
3596
|
-
]
|
|
3649
|
+
],
|
|
3650
|
+
"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 when another component or part of UI has no items or data to show.\n- Help users by clearly explaining the benefit and utility of a product or feature.\n- Be encouraging and never make users feel unsuccessful or guilty.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic banner to highlight specific content.\n\n</div>\n\n---\n\n## Content guidelines\n\nEmpty state headings should state to the user what’s wrong or why there’s no content:\n\n<div class=\"n-usage n-usage-do\">No results found</div>\n<div class=\"n-usage n-usage-dont\">Error</div>\n\nWhen writing empty state headings, 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\">You don’t have access to this content</div>\n<div class=\"n-usage n-usage-dont\">You Don’t Have Access To This Content</div>\n\nDescriptions in empty states should add useful and relevant additional information:\n\n<div class=\"n-usage n-usage-do\">We were unable to connect to the service. Click Retry to try again or View log to learn what happened.</div>\n<div class=\"n-usage n-usage-dont\">No connection.</div>\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\">Clear filters</div>\n<div class=\"n-usage n-usage-dont\">Clear</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\">View log</div>\n<div class=\"n-usage n-usage-dont\">View Log</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\">Request access</div>\n<div class=\"n-usage n-usage-dont\">Request an access</div>\n"
|
|
3597
3651
|
},
|
|
3598
3652
|
{
|
|
3599
3653
|
"kind": "javascript-module",
|
|
@@ -3773,10 +3827,14 @@
|
|
|
3773
3827
|
"parameters": [
|
|
3774
3828
|
{
|
|
3775
3829
|
"name": "moveFocusToButton",
|
|
3776
|
-
"default": "true"
|
|
3830
|
+
"default": "true",
|
|
3831
|
+
"description": "controls whether focus should be returned to the date picker's button",
|
|
3832
|
+
"type": {
|
|
3833
|
+
"text": "boolean"
|
|
3834
|
+
}
|
|
3777
3835
|
}
|
|
3778
3836
|
],
|
|
3779
|
-
"description": "Hide the calendar modal
|
|
3837
|
+
"description": "Hide the calendar modal"
|
|
3780
3838
|
},
|
|
3781
3839
|
{
|
|
3782
3840
|
"kind": "method",
|
|
@@ -4484,51 +4542,6 @@
|
|
|
4484
4542
|
],
|
|
4485
4543
|
"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 when the user needs to choose a single date or a date range.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use to choose a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nDate picker is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Choose date button\n\n- `Space, Enter`: Opens the date picker dialog and moves focus to the first select menu in the dialog.\n\n### Date picker dialog\n\n- `Esc`: Closes the date picker dialog and moves focus back to the “choose date” button.\n- `Tab`: Moves focus to the next element in the dialog. Please note since the calendar uses `role=\"grid\"`, only one button in the calendar grid is in the tab sequence. Additionally, if focus is on the last focusable element, focus is next moved back to the first focusable element inside the date picker dialog.\n- `Shift + Tab`: Same as above, but in reverse order.\n\n### Date picker dialog: Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Date picker dialog: Date grid\n\n- `Space, Enter`: Selects a date, closes the dialog, and moves focus back to the “Choose Date” button. Additionally updates the value of the date picker input with the selected date, and adds selected date to “Choose Date” button label.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n\n#### Date picker dialog: Close button\n\n- `Space, Enter`: Closes the dialog, moves focus to “choose date” button, but does not update the date in input.\n"
|
|
4486
4544
|
},
|
|
4487
|
-
{
|
|
4488
|
-
"kind": "javascript-module",
|
|
4489
|
-
"path": "src/empty-state/EmptyState.ts",
|
|
4490
|
-
"declarations": [
|
|
4491
|
-
{
|
|
4492
|
-
"kind": "class",
|
|
4493
|
-
"description": "Empty state can be used when there is no data to display to\ndescribe what the user can do next. Empty state provides\nexplanation and guidance to help user progress.",
|
|
4494
|
-
"name": "EmptyState",
|
|
4495
|
-
"slots": [
|
|
4496
|
-
{
|
|
4497
|
-
"description": "default slot",
|
|
4498
|
-
"name": ""
|
|
4499
|
-
}
|
|
4500
|
-
],
|
|
4501
|
-
"members": [],
|
|
4502
|
-
"superclass": {
|
|
4503
|
-
"name": "LitElement",
|
|
4504
|
-
"package": "lit"
|
|
4505
|
-
},
|
|
4506
|
-
"status": "new",
|
|
4507
|
-
"category": "feedback",
|
|
4508
|
-
"tagName": "nord-empty-state",
|
|
4509
|
-
"customElement": true
|
|
4510
|
-
}
|
|
4511
|
-
],
|
|
4512
|
-
"exports": [
|
|
4513
|
-
{
|
|
4514
|
-
"kind": "js",
|
|
4515
|
-
"name": "default",
|
|
4516
|
-
"declaration": {
|
|
4517
|
-
"name": "EmptyState",
|
|
4518
|
-
"module": "src/empty-state/EmptyState.ts"
|
|
4519
|
-
}
|
|
4520
|
-
},
|
|
4521
|
-
{
|
|
4522
|
-
"kind": "custom-element-definition",
|
|
4523
|
-
"name": "nord-empty-state",
|
|
4524
|
-
"declaration": {
|
|
4525
|
-
"name": "EmptyState",
|
|
4526
|
-
"module": "src/empty-state/EmptyState.ts"
|
|
4527
|
-
}
|
|
4528
|
-
}
|
|
4529
|
-
],
|
|
4530
|
-
"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 when another component or part of UI has no items or data to show.\n- Help users by clearly explaining the benefit and utility of a product or feature.\n- Be encouraging and never make users feel unsuccessful or guilty.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic banner to highlight specific content.\n\n</div>\n\n---\n\n## Content guidelines\n\nEmpty state headings should state to the user what’s wrong or why there’s no content:\n\n<div class=\"n-usage n-usage-do\">No results found</div>\n<div class=\"n-usage n-usage-dont\">Error</div>\n\nWhen writing empty state headings, 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\">You don’t have access to this content</div>\n<div class=\"n-usage n-usage-dont\">You Don’t Have Access To This Content</div>\n\nDescriptions in empty states should add useful and relevant additional information:\n\n<div class=\"n-usage n-usage-do\">We were unable to connect to the service. Click Retry to try again or View log to learn what happened.</div>\n<div class=\"n-usage n-usage-dont\">No connection.</div>\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\">Clear filters</div>\n<div class=\"n-usage n-usage-dont\">Clear</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\">View log</div>\n<div class=\"n-usage n-usage-dont\">View Log</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\">Request access</div>\n<div class=\"n-usage n-usage-dont\">Request an access</div>\n"
|
|
4531
|
-
},
|
|
4532
4545
|
{
|
|
4533
4546
|
"kind": "javascript-module",
|
|
4534
4547
|
"path": "src/fieldset/Fieldset.ts",
|
|
@@ -4660,6 +4673,82 @@
|
|
|
4660
4673
|
],
|
|
4661
4674
|
"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 the fieldset component when you need to create a relationship between multiple form inputs.\n- It is especially important to use with a group of radio components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use with a checkbox component when there is **only one** checkbox. For example, when accepting terms and conditions.\n\n</div>\n\n-------\n\n## Content guidelines\n\nFieldset label should be clear, accurate and predictable. It should help the user to understand how the items in the fieldset are grouped together, or what kind of choice the user is making:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Choose</div>\n\nWhen writing fieldset 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\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick A Color</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\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick a color.</div>\n\nDo not use colons in fieldset label:\n\n<div class=\"n-usage n-usage-do\">Payment details</div>\n<div class=\"n-usage n-usage-dont\">Payment details:</div>\n\n-------\n\n## Additional considerations\n\n- A label (which becomes to `<legend>` inside the fieldset) is always required.\n- Hint text can be used to offer further information or explanation for an option.\n"
|
|
4662
4675
|
},
|
|
4676
|
+
{
|
|
4677
|
+
"kind": "javascript-module",
|
|
4678
|
+
"path": "src/header/Header.ts",
|
|
4679
|
+
"declarations": [
|
|
4680
|
+
{
|
|
4681
|
+
"kind": "class",
|
|
4682
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4683
|
+
"name": "Header",
|
|
4684
|
+
"slots": [
|
|
4685
|
+
{
|
|
4686
|
+
"description": "The header content.",
|
|
4687
|
+
"name": ""
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
4691
|
+
"name": "action"
|
|
4692
|
+
}
|
|
4693
|
+
],
|
|
4694
|
+
"members": [
|
|
4695
|
+
{
|
|
4696
|
+
"kind": "field",
|
|
4697
|
+
"name": "actionSlot",
|
|
4698
|
+
"privacy": "private",
|
|
4699
|
+
"default": "new SlotController(this, \"action\")"
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
"kind": "field",
|
|
4703
|
+
"name": "_warningLogged",
|
|
4704
|
+
"type": {
|
|
4705
|
+
"text": "boolean"
|
|
4706
|
+
},
|
|
4707
|
+
"privacy": "private",
|
|
4708
|
+
"static": true,
|
|
4709
|
+
"default": "false",
|
|
4710
|
+
"inheritedFrom": {
|
|
4711
|
+
"name": "DraftComponentMixin",
|
|
4712
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4715
|
+
],
|
|
4716
|
+
"mixins": [
|
|
4717
|
+
{
|
|
4718
|
+
"name": "DraftComponentMixin",
|
|
4719
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4720
|
+
}
|
|
4721
|
+
],
|
|
4722
|
+
"superclass": {
|
|
4723
|
+
"name": "LitElement",
|
|
4724
|
+
"package": "lit"
|
|
4725
|
+
},
|
|
4726
|
+
"status": "draft",
|
|
4727
|
+
"category": "structure",
|
|
4728
|
+
"tagName": "nord-header",
|
|
4729
|
+
"customElement": true
|
|
4730
|
+
}
|
|
4731
|
+
],
|
|
4732
|
+
"exports": [
|
|
4733
|
+
{
|
|
4734
|
+
"kind": "js",
|
|
4735
|
+
"name": "default",
|
|
4736
|
+
"declaration": {
|
|
4737
|
+
"name": "Header",
|
|
4738
|
+
"module": "src/header/Header.ts"
|
|
4739
|
+
}
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
"kind": "custom-element-definition",
|
|
4743
|
+
"name": "nord-header",
|
|
4744
|
+
"declaration": {
|
|
4745
|
+
"name": "Header",
|
|
4746
|
+
"module": "src/header/Header.ts"
|
|
4747
|
+
}
|
|
4748
|
+
}
|
|
4749
|
+
],
|
|
4750
|
+
"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 the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
4751
|
+
},
|
|
4663
4752
|
{
|
|
4664
4753
|
"kind": "javascript-module",
|
|
4665
4754
|
"path": "src/icon/Icon.ts",
|
|
@@ -4895,82 +4984,6 @@
|
|
|
4895
4984
|
],
|
|
4896
4985
|
"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 provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n"
|
|
4897
4986
|
},
|
|
4898
|
-
{
|
|
4899
|
-
"kind": "javascript-module",
|
|
4900
|
-
"path": "src/header/Header.ts",
|
|
4901
|
-
"declarations": [
|
|
4902
|
-
{
|
|
4903
|
-
"kind": "class",
|
|
4904
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4905
|
-
"name": "Header",
|
|
4906
|
-
"slots": [
|
|
4907
|
-
{
|
|
4908
|
-
"description": "The header content.",
|
|
4909
|
-
"name": ""
|
|
4910
|
-
},
|
|
4911
|
-
{
|
|
4912
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
4913
|
-
"name": "action"
|
|
4914
|
-
}
|
|
4915
|
-
],
|
|
4916
|
-
"members": [
|
|
4917
|
-
{
|
|
4918
|
-
"kind": "field",
|
|
4919
|
-
"name": "actionSlot",
|
|
4920
|
-
"privacy": "private",
|
|
4921
|
-
"default": "new SlotController(this, \"action\")"
|
|
4922
|
-
},
|
|
4923
|
-
{
|
|
4924
|
-
"kind": "field",
|
|
4925
|
-
"name": "_warningLogged",
|
|
4926
|
-
"type": {
|
|
4927
|
-
"text": "boolean"
|
|
4928
|
-
},
|
|
4929
|
-
"privacy": "private",
|
|
4930
|
-
"static": true,
|
|
4931
|
-
"default": "false",
|
|
4932
|
-
"inheritedFrom": {
|
|
4933
|
-
"name": "DraftComponentMixin",
|
|
4934
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4935
|
-
}
|
|
4936
|
-
}
|
|
4937
|
-
],
|
|
4938
|
-
"mixins": [
|
|
4939
|
-
{
|
|
4940
|
-
"name": "DraftComponentMixin",
|
|
4941
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4942
|
-
}
|
|
4943
|
-
],
|
|
4944
|
-
"superclass": {
|
|
4945
|
-
"name": "LitElement",
|
|
4946
|
-
"package": "lit"
|
|
4947
|
-
},
|
|
4948
|
-
"status": "draft",
|
|
4949
|
-
"category": "structure",
|
|
4950
|
-
"tagName": "nord-header",
|
|
4951
|
-
"customElement": true
|
|
4952
|
-
}
|
|
4953
|
-
],
|
|
4954
|
-
"exports": [
|
|
4955
|
-
{
|
|
4956
|
-
"kind": "js",
|
|
4957
|
-
"name": "default",
|
|
4958
|
-
"declaration": {
|
|
4959
|
-
"name": "Header",
|
|
4960
|
-
"module": "src/header/Header.ts"
|
|
4961
|
-
}
|
|
4962
|
-
},
|
|
4963
|
-
{
|
|
4964
|
-
"kind": "custom-element-definition",
|
|
4965
|
-
"name": "nord-header",
|
|
4966
|
-
"declaration": {
|
|
4967
|
-
"name": "Header",
|
|
4968
|
-
"module": "src/header/Header.ts"
|
|
4969
|
-
}
|
|
4970
|
-
}
|
|
4971
|
-
],
|
|
4972
|
-
"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 the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
4973
|
-
},
|
|
4974
4987
|
{
|
|
4975
4988
|
"kind": "javascript-module",
|
|
4976
4989
|
"path": "src/input/Input.ts",
|
|
@@ -5605,27 +5618,28 @@
|
|
|
5605
5618
|
},
|
|
5606
5619
|
{
|
|
5607
5620
|
"kind": "javascript-module",
|
|
5608
|
-
"path": "src/
|
|
5621
|
+
"path": "src/nav-group/NavGroup.ts",
|
|
5609
5622
|
"declarations": [
|
|
5610
5623
|
{
|
|
5611
5624
|
"kind": "class",
|
|
5612
|
-
"description": "
|
|
5613
|
-
"name": "
|
|
5625
|
+
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
5626
|
+
"name": "NavGroup",
|
|
5614
5627
|
"slots": [
|
|
5615
5628
|
{
|
|
5616
|
-
"description": "The default
|
|
5629
|
+
"description": "The default slot used for the nav items.",
|
|
5617
5630
|
"name": ""
|
|
5618
|
-
},
|
|
5619
|
-
{
|
|
5620
|
-
"description": "Used to place content inside the navigation sidebar.",
|
|
5621
|
-
"name": "nav"
|
|
5622
|
-
},
|
|
5623
|
-
{
|
|
5624
|
-
"description": "Used to place content inside the header section.",
|
|
5625
|
-
"name": "header"
|
|
5626
5631
|
}
|
|
5627
5632
|
],
|
|
5628
5633
|
"members": [
|
|
5634
|
+
{
|
|
5635
|
+
"kind": "field",
|
|
5636
|
+
"name": "heading",
|
|
5637
|
+
"type": {
|
|
5638
|
+
"text": "string | undefined"
|
|
5639
|
+
},
|
|
5640
|
+
"description": "Heading and accessible label for the nav group",
|
|
5641
|
+
"attribute": "heading"
|
|
5642
|
+
},
|
|
5629
5643
|
{
|
|
5630
5644
|
"kind": "field",
|
|
5631
5645
|
"name": "_warningLogged",
|
|
@@ -5641,6 +5655,16 @@
|
|
|
5641
5655
|
}
|
|
5642
5656
|
}
|
|
5643
5657
|
],
|
|
5658
|
+
"attributes": [
|
|
5659
|
+
{
|
|
5660
|
+
"name": "heading",
|
|
5661
|
+
"type": {
|
|
5662
|
+
"text": "string | undefined"
|
|
5663
|
+
},
|
|
5664
|
+
"description": "Heading and accessible label for the nav group",
|
|
5665
|
+
"fieldName": "heading"
|
|
5666
|
+
}
|
|
5667
|
+
],
|
|
5644
5668
|
"mixins": [
|
|
5645
5669
|
{
|
|
5646
5670
|
"name": "DraftComponentMixin",
|
|
@@ -5652,8 +5676,8 @@
|
|
|
5652
5676
|
"package": "lit"
|
|
5653
5677
|
},
|
|
5654
5678
|
"status": "draft",
|
|
5655
|
-
"category": "
|
|
5656
|
-
"tagName": "nord-
|
|
5679
|
+
"category": "navigation",
|
|
5680
|
+
"tagName": "nord-nav-group",
|
|
5657
5681
|
"customElement": true
|
|
5658
5682
|
}
|
|
5659
5683
|
],
|
|
@@ -5662,45 +5686,44 @@
|
|
|
5662
5686
|
"kind": "js",
|
|
5663
5687
|
"name": "default",
|
|
5664
5688
|
"declaration": {
|
|
5665
|
-
"name": "
|
|
5666
|
-
"module": "src/
|
|
5689
|
+
"name": "NavGroup",
|
|
5690
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
5667
5691
|
}
|
|
5668
5692
|
},
|
|
5669
5693
|
{
|
|
5670
5694
|
"kind": "custom-element-definition",
|
|
5671
|
-
"name": "nord-
|
|
5695
|
+
"name": "nord-nav-group",
|
|
5672
5696
|
"declaration": {
|
|
5673
|
-
"name": "
|
|
5674
|
-
"module": "src/
|
|
5697
|
+
"name": "NavGroup",
|
|
5698
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
5675
5699
|
}
|
|
5676
5700
|
}
|
|
5677
5701
|
],
|
|
5678
|
-
"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-
|
|
5702
|
+
"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- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item 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 item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoud all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n"
|
|
5679
5703
|
},
|
|
5680
5704
|
{
|
|
5681
5705
|
"kind": "javascript-module",
|
|
5682
|
-
"path": "src/
|
|
5706
|
+
"path": "src/layout/Layout.ts",
|
|
5683
5707
|
"declarations": [
|
|
5684
5708
|
{
|
|
5685
5709
|
"kind": "class",
|
|
5686
|
-
"description": "
|
|
5687
|
-
"name": "
|
|
5710
|
+
"description": "Layout component is used to create the main layout of an app. Layout\ncurrently comes with one main configuration: two-column.",
|
|
5711
|
+
"name": "Layout",
|
|
5688
5712
|
"slots": [
|
|
5689
5713
|
{
|
|
5690
|
-
"description": "The default
|
|
5714
|
+
"description": "The default main section content.",
|
|
5691
5715
|
"name": ""
|
|
5716
|
+
},
|
|
5717
|
+
{
|
|
5718
|
+
"description": "Used to place content inside the navigation sidebar.",
|
|
5719
|
+
"name": "nav"
|
|
5720
|
+
},
|
|
5721
|
+
{
|
|
5722
|
+
"description": "Used to place content inside the header section.",
|
|
5723
|
+
"name": "header"
|
|
5692
5724
|
}
|
|
5693
5725
|
],
|
|
5694
5726
|
"members": [
|
|
5695
|
-
{
|
|
5696
|
-
"kind": "field",
|
|
5697
|
-
"name": "heading",
|
|
5698
|
-
"type": {
|
|
5699
|
-
"text": "string | undefined"
|
|
5700
|
-
},
|
|
5701
|
-
"description": "Heading and accessible label for the nav group",
|
|
5702
|
-
"attribute": "heading"
|
|
5703
|
-
},
|
|
5704
5727
|
{
|
|
5705
5728
|
"kind": "field",
|
|
5706
5729
|
"name": "_warningLogged",
|
|
@@ -5716,16 +5739,6 @@
|
|
|
5716
5739
|
}
|
|
5717
5740
|
}
|
|
5718
5741
|
],
|
|
5719
|
-
"attributes": [
|
|
5720
|
-
{
|
|
5721
|
-
"name": "heading",
|
|
5722
|
-
"type": {
|
|
5723
|
-
"text": "string | undefined"
|
|
5724
|
-
},
|
|
5725
|
-
"description": "Heading and accessible label for the nav group",
|
|
5726
|
-
"fieldName": "heading"
|
|
5727
|
-
}
|
|
5728
|
-
],
|
|
5729
5742
|
"mixins": [
|
|
5730
5743
|
{
|
|
5731
5744
|
"name": "DraftComponentMixin",
|
|
@@ -5737,8 +5750,8 @@
|
|
|
5737
5750
|
"package": "lit"
|
|
5738
5751
|
},
|
|
5739
5752
|
"status": "draft",
|
|
5740
|
-
"category": "
|
|
5741
|
-
"tagName": "nord-
|
|
5753
|
+
"category": "structure",
|
|
5754
|
+
"tagName": "nord-layout",
|
|
5742
5755
|
"customElement": true
|
|
5743
5756
|
}
|
|
5744
5757
|
],
|
|
@@ -5747,20 +5760,20 @@
|
|
|
5747
5760
|
"kind": "js",
|
|
5748
5761
|
"name": "default",
|
|
5749
5762
|
"declaration": {
|
|
5750
|
-
"name": "
|
|
5751
|
-
"module": "src/
|
|
5763
|
+
"name": "Layout",
|
|
5764
|
+
"module": "src/layout/Layout.ts"
|
|
5752
5765
|
}
|
|
5753
5766
|
},
|
|
5754
5767
|
{
|
|
5755
5768
|
"kind": "custom-element-definition",
|
|
5756
|
-
"name": "nord-
|
|
5769
|
+
"name": "nord-layout",
|
|
5757
5770
|
"declaration": {
|
|
5758
|
-
"name": "
|
|
5759
|
-
"module": "src/
|
|
5771
|
+
"name": "Layout",
|
|
5772
|
+
"module": "src/layout/Layout.ts"
|
|
5760
5773
|
}
|
|
5761
5774
|
}
|
|
5762
5775
|
],
|
|
5763
|
-
"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-
|
|
5776
|
+
"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- To visually group content in a layout section, use the Card component.\n- To lay out a set of smaller components, use the Stack component.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Never put layout component inside another HTML landmark.\n- Don’t use when you need a vertical or horizontal layout system. Use Stack component instead.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Layout component uses `<main>` element internally which is an HTML sectioning element which by default defines an ARIA landmark role. For that reason you should never put layout component inside another HTML landmark.\n"
|
|
5764
5777
|
},
|
|
5765
5778
|
{
|
|
5766
5779
|
"kind": "javascript-module",
|
|
@@ -8499,80 +8512,256 @@
|
|
|
8499
8512
|
"fieldName": "delay"
|
|
8500
8513
|
}
|
|
8501
8514
|
],
|
|
8502
|
-
"superclass": {
|
|
8503
|
-
"name": "LitElement",
|
|
8504
|
-
"package": "lit"
|
|
8505
|
-
},
|
|
8506
|
-
"status": "ready",
|
|
8507
|
-
"category": "overlay",
|
|
8508
|
-
"tagName": "nord-tooltip",
|
|
8509
|
-
"customElement": true
|
|
8515
|
+
"superclass": {
|
|
8516
|
+
"name": "LitElement",
|
|
8517
|
+
"package": "lit"
|
|
8518
|
+
},
|
|
8519
|
+
"status": "ready",
|
|
8520
|
+
"category": "overlay",
|
|
8521
|
+
"tagName": "nord-tooltip",
|
|
8522
|
+
"customElement": true
|
|
8523
|
+
}
|
|
8524
|
+
],
|
|
8525
|
+
"exports": [
|
|
8526
|
+
{
|
|
8527
|
+
"kind": "js",
|
|
8528
|
+
"name": "default",
|
|
8529
|
+
"declaration": {
|
|
8530
|
+
"name": "Tooltip",
|
|
8531
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
8532
|
+
}
|
|
8533
|
+
},
|
|
8534
|
+
{
|
|
8535
|
+
"kind": "custom-element-definition",
|
|
8536
|
+
"name": "nord-tooltip",
|
|
8537
|
+
"declaration": {
|
|
8538
|
+
"name": "Tooltip",
|
|
8539
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
],
|
|
8543
|
+
"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 accessability.\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"
|
|
8544
|
+
},
|
|
8545
|
+
{
|
|
8546
|
+
"kind": "javascript-module",
|
|
8547
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
8548
|
+
"declarations": [
|
|
8549
|
+
{
|
|
8550
|
+
"kind": "class",
|
|
8551
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
8552
|
+
"name": "VisuallyHidden",
|
|
8553
|
+
"slots": [
|
|
8554
|
+
{
|
|
8555
|
+
"description": "The visually hidden content.",
|
|
8556
|
+
"name": ""
|
|
8557
|
+
}
|
|
8558
|
+
],
|
|
8559
|
+
"members": [],
|
|
8560
|
+
"superclass": {
|
|
8561
|
+
"name": "LitElement",
|
|
8562
|
+
"package": "lit"
|
|
8563
|
+
},
|
|
8564
|
+
"status": "ready",
|
|
8565
|
+
"category": "text",
|
|
8566
|
+
"tagName": "nord-visually-hidden",
|
|
8567
|
+
"customElement": true
|
|
8568
|
+
}
|
|
8569
|
+
],
|
|
8570
|
+
"exports": [
|
|
8571
|
+
{
|
|
8572
|
+
"kind": "js",
|
|
8573
|
+
"name": "default",
|
|
8574
|
+
"declaration": {
|
|
8575
|
+
"name": "VisuallyHidden",
|
|
8576
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8577
|
+
}
|
|
8578
|
+
},
|
|
8579
|
+
{
|
|
8580
|
+
"kind": "custom-element-definition",
|
|
8581
|
+
"name": "nord-visually-hidden",
|
|
8582
|
+
"declaration": {
|
|
8583
|
+
"name": "VisuallyHidden",
|
|
8584
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8585
|
+
}
|
|
8586
|
+
}
|
|
8587
|
+
],
|
|
8588
|
+
"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"
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "javascript-module",
|
|
8592
|
+
"path": "src/common/directives/cond.ts",
|
|
8593
|
+
"declarations": [
|
|
8594
|
+
{
|
|
8595
|
+
"kind": "variable",
|
|
8596
|
+
"name": "cond"
|
|
8597
|
+
}
|
|
8598
|
+
],
|
|
8599
|
+
"exports": [
|
|
8600
|
+
{
|
|
8601
|
+
"kind": "js",
|
|
8602
|
+
"name": "cond",
|
|
8603
|
+
"declaration": {
|
|
8604
|
+
"name": "cond",
|
|
8605
|
+
"module": "src/common/directives/cond.ts"
|
|
8606
|
+
}
|
|
8607
|
+
}
|
|
8608
|
+
]
|
|
8609
|
+
},
|
|
8610
|
+
{
|
|
8611
|
+
"kind": "javascript-module",
|
|
8612
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
8613
|
+
"declarations": [
|
|
8614
|
+
{
|
|
8615
|
+
"kind": "function",
|
|
8616
|
+
"name": "wrapIf",
|
|
8617
|
+
"return": {
|
|
8618
|
+
"type": {
|
|
8619
|
+
"text": "TInner"
|
|
8620
|
+
}
|
|
8621
|
+
},
|
|
8622
|
+
"parameters": [
|
|
8623
|
+
{
|
|
8624
|
+
"name": "condition",
|
|
8625
|
+
"type": {
|
|
8626
|
+
"text": "false"
|
|
8627
|
+
}
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
"name": "inner",
|
|
8631
|
+
"type": {
|
|
8632
|
+
"text": "() => TInner"
|
|
8633
|
+
}
|
|
8634
|
+
},
|
|
8635
|
+
{
|
|
8636
|
+
"name": "wrapper",
|
|
8637
|
+
"type": {
|
|
8638
|
+
"text": "(inner: TInner) => TWrapper"
|
|
8639
|
+
}
|
|
8640
|
+
}
|
|
8641
|
+
]
|
|
8642
|
+
},
|
|
8643
|
+
{
|
|
8644
|
+
"kind": "function",
|
|
8645
|
+
"name": "wrapIf",
|
|
8646
|
+
"return": {
|
|
8647
|
+
"type": {
|
|
8648
|
+
"text": "TWrapper"
|
|
8649
|
+
}
|
|
8650
|
+
},
|
|
8651
|
+
"parameters": [
|
|
8652
|
+
{
|
|
8653
|
+
"name": "condition",
|
|
8654
|
+
"type": {
|
|
8655
|
+
"text": "true"
|
|
8656
|
+
}
|
|
8657
|
+
},
|
|
8658
|
+
{
|
|
8659
|
+
"name": "inner",
|
|
8660
|
+
"type": {
|
|
8661
|
+
"text": "() => TInner"
|
|
8662
|
+
}
|
|
8663
|
+
},
|
|
8664
|
+
{
|
|
8665
|
+
"name": "wrapper",
|
|
8666
|
+
"type": {
|
|
8667
|
+
"text": "(inner: TInner) => TWrapper"
|
|
8668
|
+
}
|
|
8669
|
+
}
|
|
8670
|
+
]
|
|
8671
|
+
},
|
|
8672
|
+
{
|
|
8673
|
+
"kind": "function",
|
|
8674
|
+
"name": "wrapIf",
|
|
8675
|
+
"return": {
|
|
8676
|
+
"type": {
|
|
8677
|
+
"text": "TInner | TWrapper"
|
|
8678
|
+
}
|
|
8679
|
+
},
|
|
8680
|
+
"parameters": [
|
|
8681
|
+
{
|
|
8682
|
+
"name": "condition",
|
|
8683
|
+
"type": {
|
|
8684
|
+
"text": "unknown"
|
|
8685
|
+
}
|
|
8686
|
+
},
|
|
8687
|
+
{
|
|
8688
|
+
"name": "inner",
|
|
8689
|
+
"type": {
|
|
8690
|
+
"text": "() => TInner"
|
|
8691
|
+
}
|
|
8692
|
+
},
|
|
8693
|
+
{
|
|
8694
|
+
"name": "wrapper",
|
|
8695
|
+
"type": {
|
|
8696
|
+
"text": "(inner: TInner) => TWrapper"
|
|
8697
|
+
}
|
|
8698
|
+
}
|
|
8699
|
+
]
|
|
8700
|
+
},
|
|
8701
|
+
{
|
|
8702
|
+
"kind": "function",
|
|
8703
|
+
"name": "wrapIf",
|
|
8704
|
+
"parameters": [
|
|
8705
|
+
{
|
|
8706
|
+
"name": "condition",
|
|
8707
|
+
"type": {
|
|
8708
|
+
"text": "any"
|
|
8709
|
+
}
|
|
8710
|
+
},
|
|
8711
|
+
{
|
|
8712
|
+
"name": "inner",
|
|
8713
|
+
"type": {
|
|
8714
|
+
"text": "() => TInner"
|
|
8715
|
+
}
|
|
8716
|
+
},
|
|
8717
|
+
{
|
|
8718
|
+
"name": "wrapper",
|
|
8719
|
+
"type": {
|
|
8720
|
+
"text": "(innards: TInner) => TWrapper"
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
],
|
|
8724
|
+
"return": {
|
|
8725
|
+
"type": {
|
|
8726
|
+
"text": ""
|
|
8727
|
+
}
|
|
8728
|
+
}
|
|
8510
8729
|
}
|
|
8511
8730
|
],
|
|
8512
8731
|
"exports": [
|
|
8513
8732
|
{
|
|
8514
8733
|
"kind": "js",
|
|
8515
|
-
"name": "
|
|
8734
|
+
"name": "wrapIf",
|
|
8516
8735
|
"declaration": {
|
|
8517
|
-
"name": "
|
|
8518
|
-
"module": "src/
|
|
8736
|
+
"name": "wrapIf",
|
|
8737
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
8519
8738
|
}
|
|
8520
8739
|
},
|
|
8521
8740
|
{
|
|
8522
|
-
"kind": "
|
|
8523
|
-
"name": "
|
|
8741
|
+
"kind": "js",
|
|
8742
|
+
"name": "wrapIf",
|
|
8524
8743
|
"declaration": {
|
|
8525
|
-
"name": "
|
|
8526
|
-
"module": "src/
|
|
8744
|
+
"name": "wrapIf",
|
|
8745
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
8527
8746
|
}
|
|
8528
|
-
}
|
|
8529
|
-
],
|
|
8530
|
-
"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 accessability.\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"
|
|
8531
|
-
},
|
|
8532
|
-
{
|
|
8533
|
-
"kind": "javascript-module",
|
|
8534
|
-
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
8535
|
-
"declarations": [
|
|
8536
|
-
{
|
|
8537
|
-
"kind": "class",
|
|
8538
|
-
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
8539
|
-
"name": "VisuallyHidden",
|
|
8540
|
-
"slots": [
|
|
8541
|
-
{
|
|
8542
|
-
"description": "The visually hidden content.",
|
|
8543
|
-
"name": ""
|
|
8544
|
-
}
|
|
8545
|
-
],
|
|
8546
|
-
"members": [],
|
|
8547
|
-
"superclass": {
|
|
8548
|
-
"name": "LitElement",
|
|
8549
|
-
"package": "lit"
|
|
8550
|
-
},
|
|
8551
|
-
"status": "ready",
|
|
8552
|
-
"category": "text",
|
|
8553
|
-
"tagName": "nord-visually-hidden",
|
|
8554
|
-
"customElement": true
|
|
8555
|
-
}
|
|
8556
|
-
],
|
|
8557
|
-
"exports": [
|
|
8747
|
+
},
|
|
8558
8748
|
{
|
|
8559
8749
|
"kind": "js",
|
|
8560
|
-
"name": "
|
|
8750
|
+
"name": "wrapIf",
|
|
8561
8751
|
"declaration": {
|
|
8562
|
-
"name": "
|
|
8563
|
-
"module": "src/
|
|
8752
|
+
"name": "wrapIf",
|
|
8753
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
8564
8754
|
}
|
|
8565
8755
|
},
|
|
8566
8756
|
{
|
|
8567
|
-
"kind": "
|
|
8568
|
-
"name": "
|
|
8757
|
+
"kind": "js",
|
|
8758
|
+
"name": "wrapIf",
|
|
8569
8759
|
"declaration": {
|
|
8570
|
-
"name": "
|
|
8571
|
-
"module": "src/
|
|
8760
|
+
"name": "wrapIf",
|
|
8761
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
8572
8762
|
}
|
|
8573
8763
|
}
|
|
8574
|
-
]
|
|
8575
|
-
"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"
|
|
8764
|
+
]
|
|
8576
8765
|
},
|
|
8577
8766
|
{
|
|
8578
8767
|
"kind": "javascript-module",
|
|
@@ -9288,182 +9477,6 @@
|
|
|
9288
9477
|
}
|
|
9289
9478
|
]
|
|
9290
9479
|
},
|
|
9291
|
-
{
|
|
9292
|
-
"kind": "javascript-module",
|
|
9293
|
-
"path": "src/common/directives/cond.ts",
|
|
9294
|
-
"declarations": [
|
|
9295
|
-
{
|
|
9296
|
-
"kind": "variable",
|
|
9297
|
-
"name": "cond"
|
|
9298
|
-
}
|
|
9299
|
-
],
|
|
9300
|
-
"exports": [
|
|
9301
|
-
{
|
|
9302
|
-
"kind": "js",
|
|
9303
|
-
"name": "cond",
|
|
9304
|
-
"declaration": {
|
|
9305
|
-
"name": "cond",
|
|
9306
|
-
"module": "src/common/directives/cond.ts"
|
|
9307
|
-
}
|
|
9308
|
-
}
|
|
9309
|
-
]
|
|
9310
|
-
},
|
|
9311
|
-
{
|
|
9312
|
-
"kind": "javascript-module",
|
|
9313
|
-
"path": "src/common/directives/wrapIf.ts",
|
|
9314
|
-
"declarations": [
|
|
9315
|
-
{
|
|
9316
|
-
"kind": "function",
|
|
9317
|
-
"name": "wrapIf",
|
|
9318
|
-
"return": {
|
|
9319
|
-
"type": {
|
|
9320
|
-
"text": "TInner"
|
|
9321
|
-
}
|
|
9322
|
-
},
|
|
9323
|
-
"parameters": [
|
|
9324
|
-
{
|
|
9325
|
-
"name": "condition",
|
|
9326
|
-
"type": {
|
|
9327
|
-
"text": "false"
|
|
9328
|
-
}
|
|
9329
|
-
},
|
|
9330
|
-
{
|
|
9331
|
-
"name": "inner",
|
|
9332
|
-
"type": {
|
|
9333
|
-
"text": "() => TInner"
|
|
9334
|
-
}
|
|
9335
|
-
},
|
|
9336
|
-
{
|
|
9337
|
-
"name": "wrapper",
|
|
9338
|
-
"type": {
|
|
9339
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9340
|
-
}
|
|
9341
|
-
}
|
|
9342
|
-
]
|
|
9343
|
-
},
|
|
9344
|
-
{
|
|
9345
|
-
"kind": "function",
|
|
9346
|
-
"name": "wrapIf",
|
|
9347
|
-
"return": {
|
|
9348
|
-
"type": {
|
|
9349
|
-
"text": "TWrapper"
|
|
9350
|
-
}
|
|
9351
|
-
},
|
|
9352
|
-
"parameters": [
|
|
9353
|
-
{
|
|
9354
|
-
"name": "condition",
|
|
9355
|
-
"type": {
|
|
9356
|
-
"text": "true"
|
|
9357
|
-
}
|
|
9358
|
-
},
|
|
9359
|
-
{
|
|
9360
|
-
"name": "inner",
|
|
9361
|
-
"type": {
|
|
9362
|
-
"text": "() => TInner"
|
|
9363
|
-
}
|
|
9364
|
-
},
|
|
9365
|
-
{
|
|
9366
|
-
"name": "wrapper",
|
|
9367
|
-
"type": {
|
|
9368
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9369
|
-
}
|
|
9370
|
-
}
|
|
9371
|
-
]
|
|
9372
|
-
},
|
|
9373
|
-
{
|
|
9374
|
-
"kind": "function",
|
|
9375
|
-
"name": "wrapIf",
|
|
9376
|
-
"return": {
|
|
9377
|
-
"type": {
|
|
9378
|
-
"text": "TInner | TWrapper"
|
|
9379
|
-
}
|
|
9380
|
-
},
|
|
9381
|
-
"parameters": [
|
|
9382
|
-
{
|
|
9383
|
-
"name": "condition",
|
|
9384
|
-
"type": {
|
|
9385
|
-
"text": "unknown"
|
|
9386
|
-
}
|
|
9387
|
-
},
|
|
9388
|
-
{
|
|
9389
|
-
"name": "inner",
|
|
9390
|
-
"type": {
|
|
9391
|
-
"text": "() => TInner"
|
|
9392
|
-
}
|
|
9393
|
-
},
|
|
9394
|
-
{
|
|
9395
|
-
"name": "wrapper",
|
|
9396
|
-
"type": {
|
|
9397
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9398
|
-
}
|
|
9399
|
-
}
|
|
9400
|
-
]
|
|
9401
|
-
},
|
|
9402
|
-
{
|
|
9403
|
-
"kind": "function",
|
|
9404
|
-
"name": "wrapIf",
|
|
9405
|
-
"parameters": [
|
|
9406
|
-
{
|
|
9407
|
-
"name": "condition",
|
|
9408
|
-
"type": {
|
|
9409
|
-
"text": "any"
|
|
9410
|
-
}
|
|
9411
|
-
},
|
|
9412
|
-
{
|
|
9413
|
-
"name": "inner",
|
|
9414
|
-
"type": {
|
|
9415
|
-
"text": "() => TInner"
|
|
9416
|
-
}
|
|
9417
|
-
},
|
|
9418
|
-
{
|
|
9419
|
-
"name": "wrapper",
|
|
9420
|
-
"type": {
|
|
9421
|
-
"text": "(innards: TInner) => TWrapper"
|
|
9422
|
-
}
|
|
9423
|
-
}
|
|
9424
|
-
],
|
|
9425
|
-
"return": {
|
|
9426
|
-
"type": {
|
|
9427
|
-
"text": ""
|
|
9428
|
-
}
|
|
9429
|
-
}
|
|
9430
|
-
}
|
|
9431
|
-
],
|
|
9432
|
-
"exports": [
|
|
9433
|
-
{
|
|
9434
|
-
"kind": "js",
|
|
9435
|
-
"name": "wrapIf",
|
|
9436
|
-
"declaration": {
|
|
9437
|
-
"name": "wrapIf",
|
|
9438
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
9439
|
-
}
|
|
9440
|
-
},
|
|
9441
|
-
{
|
|
9442
|
-
"kind": "js",
|
|
9443
|
-
"name": "wrapIf",
|
|
9444
|
-
"declaration": {
|
|
9445
|
-
"name": "wrapIf",
|
|
9446
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
9447
|
-
}
|
|
9448
|
-
},
|
|
9449
|
-
{
|
|
9450
|
-
"kind": "js",
|
|
9451
|
-
"name": "wrapIf",
|
|
9452
|
-
"declaration": {
|
|
9453
|
-
"name": "wrapIf",
|
|
9454
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
9455
|
-
}
|
|
9456
|
-
},
|
|
9457
|
-
{
|
|
9458
|
-
"kind": "js",
|
|
9459
|
-
"name": "wrapIf",
|
|
9460
|
-
"declaration": {
|
|
9461
|
-
"name": "wrapIf",
|
|
9462
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
9463
|
-
}
|
|
9464
|
-
}
|
|
9465
|
-
]
|
|
9466
|
-
},
|
|
9467
9480
|
{
|
|
9468
9481
|
"kind": "javascript-module",
|
|
9469
9482
|
"path": "src/common/mixins/DraftComponentMixin.ts",
|