@nordhealth/components 1.13.1 → 1.14.2
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 +1903 -1874
- package/lib/{AutocompleteMixin-ca948bdb.js → AutocompleteMixin-370de2be.js} +2 -2
- package/lib/{AutocompleteMixin-ca948bdb.js.map → AutocompleteMixin-370de2be.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/{Calendar-c2dc6905.js → Calendar-7905498d.js} +2 -2
- package/lib/{Calendar-c2dc6905.js.map → Calendar-7905498d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +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/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-5a0a26a0.js → Component-49a41387.js} +2 -2
- package/lib/Component-49a41387.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/DirectionController-8b298382.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-d99ebeef.js.map +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/{FocusableMixin-175ea4d7.js → FocusableMixin-99db12c1.js} +2 -2
- package/lib/{FocusableMixin-175ea4d7.js.map → FocusableMixin-99db12c1.js.map} +1 -1
- package/lib/{FormAssociatedMixin-d0d98a92.js → FormAssociatedMixin-f6e5b3cd.js} +2 -2
- package/lib/{FormAssociatedMixin-d0d98a92.js.map → FormAssociatedMixin-f6e5b3cd.js.map} +1 -1
- package/lib/{FormField-d3767c2e.js → FormField-72062bf1.js} +2 -2
- package/lib/FormField-72062bf1.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-9334d385.js → InputMixin-158f63fb.js} +2 -2
- package/lib/{InputMixin-9334d385.js.map → InputMixin-158f63fb.js.map} +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDismissController-a2645ae6.js.map +1 -1
- package/lib/{LightDomController-6d26dea2.js → LightDomController-9a6e398f.js} +2 -2
- package/lib/{LightDomController-6d26dea2.js.map → LightDomController-9a6e398f.js.map} +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Popout.js +1 -1
- package/lib/Popout.js.map +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +2 -2
- package/lib/Qrcode.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/SelectEvent.js.map +1 -1
- package/lib/ShortcutController-87615e31.js.map +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-ea6eff46.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/{TextField-f48e2e5c.js → TextField-c34519d4.js} +2 -2
- package/lib/{TextField-f48e2e5c.js.map → TextField-c34519d4.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +18 -18
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-cd6c8cbd.js +7 -0
- package/lib/{class-map-f1b6f1fa.js.map → class-map-cd6c8cbd.js.map} +1 -1
- package/lib/collection-800f5002.js.map +1 -1
- package/lib/cond-0a8d4554.js +2 -0
- package/lib/{cond-97c45476.js.map → cond-0a8d4554.js.map} +1 -1
- package/lib/dates-a8de5b83.js.map +1 -1
- package/lib/directive-de55b00a.js.map +1 -1
- package/lib/events-731d0007.js.map +1 -1
- package/lib/fsm-50373df9.js.map +1 -1
- package/lib/{if-defined-fe1a64e3.js → if-defined-f43b1487.js} +2 -2
- package/lib/{if-defined-fe1a64e3.js.map → if-defined-f43b1487.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/lit-element-79bc2e0e.js +24 -0
- package/lib/lit-element-79bc2e0e.js.map +1 -0
- package/lib/month-view.js +1 -1
- package/lib/month-view.js.map +1 -1
- package/lib/number-c3ab3e95.js.map +1 -1
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/positioning-3bbd3548.js +2 -0
- package/lib/positioning-3bbd3548.js.map +1 -0
- package/lib/property-03f59dce.js.map +1 -1
- package/lib/query-2d22378e.js.map +1 -1
- package/lib/query-assigned-elements-e6cbac30.js +12 -0
- package/lib/{query-assigned-elements-ef860822.js.map → query-assigned-elements-e6cbac30.js.map} +1 -1
- package/lib/{ref-57ff8ffc.js → ref-697b28b5.js} +5 -5
- package/lib/ref-697b28b5.js.map +1 -0
- package/lib/repeat-e7acc0bd.js +7 -0
- package/lib/repeat-e7acc0bd.js.map +1 -0
- package/lib/src/button/Button.test.d.ts +2 -0
- package/lib/src/dropdown/Dropdown.d.ts +5 -0
- package/lib/state-70f38ceb.js.map +1 -1
- package/lib/tinykeys.module-84e6cc41.js.map +1 -1
- package/lib/translation.js.map +1 -1
- package/lib/{unsafe-html-61a04601.js → unsafe-html-be8023cd.js} +3 -3
- package/lib/{unsafe-html-61a04601.js.map → unsafe-html-be8023cd.js.map} +1 -1
- package/package.json +24 -21
- package/lib/Component-5a0a26a0.js.map +0 -1
- package/lib/FormField-d3767c2e.js.map +0 -1
- package/lib/class-map-f1b6f1fa.js +0 -7
- package/lib/cond-97c45476.js +0 -2
- package/lib/lit-element-67e6cd99.js +0 -24
- package/lib/lit-element-67e6cd99.js.map +0 -1
- package/lib/positioning-b660767c.js +0 -2
- package/lib/positioning-b660767c.js.map +0 -1
- package/lib/query-assigned-elements-ef860822.js +0 -12
- package/lib/ref-57ff8ffc.js.map +0 -1
- package/lib/repeat-084c4167.js +0 -7
- package/lib/repeat-084c4167.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -574,125 +574,140 @@
|
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"kind": "javascript-module",
|
|
577
|
-
"path": "src/
|
|
577
|
+
"path": "src/calendar/Calendar.ts",
|
|
578
578
|
"declarations": [
|
|
579
579
|
{
|
|
580
580
|
"kind": "class",
|
|
581
|
-
"description": "
|
|
582
|
-
"name": "
|
|
583
|
-
"
|
|
581
|
+
"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.",
|
|
582
|
+
"name": "Calendar",
|
|
583
|
+
"members": [
|
|
584
584
|
{
|
|
585
|
-
"
|
|
586
|
-
"name": ""
|
|
585
|
+
"kind": "field",
|
|
586
|
+
"name": "dialogLabelId",
|
|
587
|
+
"type": {
|
|
588
|
+
"text": "string"
|
|
589
|
+
},
|
|
590
|
+
"privacy": "private",
|
|
591
|
+
"default": "\"dialog-header\""
|
|
587
592
|
},
|
|
588
593
|
{
|
|
589
|
-
"
|
|
590
|
-
"name": "
|
|
594
|
+
"kind": "field",
|
|
595
|
+
"name": "monthSelectNode",
|
|
596
|
+
"type": {
|
|
597
|
+
"text": "HTMLElement"
|
|
598
|
+
},
|
|
599
|
+
"privacy": "private"
|
|
591
600
|
},
|
|
592
601
|
{
|
|
593
|
-
"
|
|
594
|
-
"name": "
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
602
|
+
"kind": "field",
|
|
603
|
+
"name": "focusedDayNode",
|
|
604
|
+
"type": {
|
|
605
|
+
"text": "HTMLButtonElement"
|
|
606
|
+
},
|
|
607
|
+
"privacy": "private"
|
|
608
|
+
},
|
|
598
609
|
{
|
|
599
610
|
"kind": "field",
|
|
600
|
-
"name": "
|
|
611
|
+
"name": "direction",
|
|
612
|
+
"privacy": "private",
|
|
613
|
+
"default": "new DirectionController(this)"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"kind": "field",
|
|
617
|
+
"name": "swipe",
|
|
618
|
+
"privacy": "private",
|
|
619
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"kind": "field",
|
|
623
|
+
"name": "shortcuts",
|
|
601
624
|
"privacy": "private"
|
|
602
625
|
},
|
|
603
626
|
{
|
|
604
627
|
"kind": "field",
|
|
605
|
-
"name": "
|
|
628
|
+
"name": "localize",
|
|
606
629
|
"privacy": "private",
|
|
607
|
-
"default": "new
|
|
630
|
+
"default": "new LocalizeController<\"nord-calendar\">(this, {\n onLangChange: () => this.handleLangChange(),\n })"
|
|
608
631
|
},
|
|
609
632
|
{
|
|
610
633
|
"kind": "field",
|
|
611
|
-
"name": "
|
|
634
|
+
"name": "dateFormatShort",
|
|
635
|
+
"type": {
|
|
636
|
+
"text": "Intl.DateTimeFormat"
|
|
637
|
+
},
|
|
612
638
|
"privacy": "private",
|
|
613
|
-
"
|
|
639
|
+
"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"
|
|
614
640
|
},
|
|
615
641
|
{
|
|
616
642
|
"kind": "field",
|
|
617
|
-
"name": "
|
|
643
|
+
"name": "monthNames",
|
|
618
644
|
"type": {
|
|
619
|
-
"text": "
|
|
645
|
+
"text": "string[]"
|
|
620
646
|
},
|
|
621
|
-
"
|
|
622
|
-
"description": "The style variant of the button.",
|
|
623
|
-
"attribute": "variant",
|
|
624
|
-
"reflects": true
|
|
647
|
+
"privacy": "private"
|
|
625
648
|
},
|
|
626
649
|
{
|
|
627
650
|
"kind": "field",
|
|
628
|
-
"name": "
|
|
651
|
+
"name": "monthNamesShort",
|
|
629
652
|
"type": {
|
|
630
|
-
"text": "
|
|
653
|
+
"text": "string[]"
|
|
631
654
|
},
|
|
632
|
-
"
|
|
633
|
-
"description": "The type of the button.",
|
|
634
|
-
"attribute": "type",
|
|
635
|
-
"reflects": true
|
|
655
|
+
"privacy": "private"
|
|
636
656
|
},
|
|
637
657
|
{
|
|
638
658
|
"kind": "field",
|
|
639
|
-
"name": "
|
|
659
|
+
"name": "dayNames",
|
|
640
660
|
"type": {
|
|
641
|
-
"text": "
|
|
661
|
+
"text": "string[]"
|
|
642
662
|
},
|
|
643
|
-
"
|
|
644
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
645
|
-
"attribute": "size",
|
|
646
|
-
"reflects": true
|
|
663
|
+
"privacy": "private"
|
|
647
664
|
},
|
|
648
665
|
{
|
|
649
666
|
"kind": "field",
|
|
650
|
-
"name": "
|
|
667
|
+
"name": "dayNamesShort",
|
|
651
668
|
"type": {
|
|
652
|
-
"text": "
|
|
669
|
+
"text": "string[]"
|
|
653
670
|
},
|
|
654
|
-
"privacy": "private"
|
|
655
|
-
"attribute": "aria-expanded"
|
|
671
|
+
"privacy": "private"
|
|
656
672
|
},
|
|
657
673
|
{
|
|
658
674
|
"kind": "field",
|
|
659
|
-
"name": "
|
|
675
|
+
"name": "value",
|
|
660
676
|
"type": {
|
|
661
|
-
"text": "
|
|
677
|
+
"text": "string"
|
|
662
678
|
},
|
|
663
|
-
"
|
|
664
|
-
"
|
|
679
|
+
"default": "\"\"",
|
|
680
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
681
|
+
"attribute": "value"
|
|
665
682
|
},
|
|
666
683
|
{
|
|
667
684
|
"kind": "field",
|
|
668
|
-
"name": "
|
|
685
|
+
"name": "firstDayOfWeek",
|
|
669
686
|
"type": {
|
|
670
|
-
"text": "
|
|
687
|
+
"text": "DaysOfWeek"
|
|
671
688
|
},
|
|
672
|
-
"description": "
|
|
673
|
-
"attribute": "
|
|
674
|
-
"reflects": true
|
|
689
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
690
|
+
"attribute": "firstDayOfWeek"
|
|
675
691
|
},
|
|
676
692
|
{
|
|
677
693
|
"kind": "field",
|
|
678
|
-
"name": "
|
|
694
|
+
"name": "min",
|
|
679
695
|
"type": {
|
|
680
|
-
"text": "
|
|
696
|
+
"text": "string"
|
|
681
697
|
},
|
|
682
|
-
"default": "
|
|
683
|
-
"description": "
|
|
684
|
-
"attribute": "
|
|
698
|
+
"default": "\"\"",
|
|
699
|
+
"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.",
|
|
700
|
+
"attribute": "min"
|
|
685
701
|
},
|
|
686
702
|
{
|
|
687
703
|
"kind": "field",
|
|
688
|
-
"name": "
|
|
704
|
+
"name": "max",
|
|
689
705
|
"type": {
|
|
690
|
-
"text": "
|
|
706
|
+
"text": "string"
|
|
691
707
|
},
|
|
692
|
-
"default": "\"
|
|
693
|
-
"description": "
|
|
694
|
-
"attribute": "
|
|
695
|
-
"reflects": true
|
|
708
|
+
"default": "\"\"",
|
|
709
|
+
"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.",
|
|
710
|
+
"attribute": "max"
|
|
696
711
|
},
|
|
697
712
|
{
|
|
698
713
|
"kind": "field",
|
|
@@ -701,242 +716,239 @@
|
|
|
701
716
|
"text": "boolean"
|
|
702
717
|
},
|
|
703
718
|
"default": "false",
|
|
704
|
-
"description": "Controls whether the
|
|
719
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
705
720
|
"attribute": "expand",
|
|
706
721
|
"reflects": true
|
|
707
722
|
},
|
|
708
723
|
{
|
|
709
724
|
"kind": "field",
|
|
710
|
-
"name": "
|
|
725
|
+
"name": "isDateDisabled",
|
|
726
|
+
"type": {
|
|
727
|
+
"text": "DateDisabledPredicate"
|
|
728
|
+
},
|
|
729
|
+
"default": "isDateDisabled",
|
|
730
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"kind": "field",
|
|
734
|
+
"name": "activeFocus",
|
|
711
735
|
"type": {
|
|
712
736
|
"text": "boolean"
|
|
713
737
|
},
|
|
714
|
-
"
|
|
715
|
-
"
|
|
716
|
-
|
|
717
|
-
|
|
738
|
+
"privacy": "private",
|
|
739
|
+
"default": "false"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"kind": "field",
|
|
743
|
+
"name": "focusedDay",
|
|
744
|
+
"privacy": "private",
|
|
745
|
+
"default": "new Date()"
|
|
718
746
|
},
|
|
719
747
|
{
|
|
720
748
|
"kind": "method",
|
|
721
|
-
"name": "
|
|
749
|
+
"name": "focus",
|
|
750
|
+
"parameters": [
|
|
751
|
+
{
|
|
752
|
+
"name": "options",
|
|
753
|
+
"optional": true,
|
|
754
|
+
"type": {
|
|
755
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
756
|
+
},
|
|
757
|
+
"description": "An object which controls aspects of the focusing process."
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
"description": "Programmatically move focus to the calendar."
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"kind": "method",
|
|
764
|
+
"name": "handleValueChange",
|
|
765
|
+
"privacy": "protected"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"kind": "method",
|
|
769
|
+
"name": "handleFocusedDayChange",
|
|
770
|
+
"privacy": "protected"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"kind": "method",
|
|
774
|
+
"name": "handleLangChange",
|
|
775
|
+
"privacy": "private"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"kind": "field",
|
|
779
|
+
"name": "handleDaySelect",
|
|
780
|
+
"privacy": "private"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"kind": "method",
|
|
784
|
+
"name": "addDays",
|
|
722
785
|
"privacy": "private",
|
|
723
786
|
"parameters": [
|
|
724
787
|
{
|
|
725
|
-
"name": "
|
|
788
|
+
"name": "days",
|
|
726
789
|
"type": {
|
|
727
|
-
"text": "
|
|
790
|
+
"text": "number"
|
|
728
791
|
}
|
|
729
792
|
}
|
|
730
|
-
]
|
|
731
|
-
"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."
|
|
793
|
+
]
|
|
732
794
|
},
|
|
733
795
|
{
|
|
734
796
|
"kind": "method",
|
|
735
|
-
"name": "
|
|
797
|
+
"name": "addMonths",
|
|
736
798
|
"privacy": "private",
|
|
737
799
|
"parameters": [
|
|
738
800
|
{
|
|
739
|
-
"name": "
|
|
801
|
+
"name": "months",
|
|
740
802
|
"type": {
|
|
741
|
-
"text": "
|
|
803
|
+
"text": "number"
|
|
742
804
|
}
|
|
743
805
|
}
|
|
744
806
|
]
|
|
745
807
|
},
|
|
746
808
|
{
|
|
747
809
|
"kind": "method",
|
|
748
|
-
"name": "
|
|
810
|
+
"name": "addYears",
|
|
811
|
+
"privacy": "private",
|
|
812
|
+
"parameters": [
|
|
813
|
+
{
|
|
814
|
+
"name": "years",
|
|
815
|
+
"type": {
|
|
816
|
+
"text": "number"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "method",
|
|
823
|
+
"name": "startOfWeek",
|
|
749
824
|
"privacy": "private"
|
|
750
825
|
},
|
|
751
826
|
{
|
|
752
|
-
"kind": "
|
|
753
|
-
"name": "
|
|
827
|
+
"kind": "method",
|
|
828
|
+
"name": "endOfWeek",
|
|
754
829
|
"privacy": "private"
|
|
755
830
|
},
|
|
756
831
|
{
|
|
757
832
|
"kind": "method",
|
|
758
|
-
"name": "
|
|
833
|
+
"name": "setMonth",
|
|
759
834
|
"privacy": "private",
|
|
760
835
|
"parameters": [
|
|
761
836
|
{
|
|
762
|
-
"name": "
|
|
837
|
+
"name": "month",
|
|
763
838
|
"type": {
|
|
764
|
-
"text": "
|
|
839
|
+
"text": "number"
|
|
765
840
|
}
|
|
766
841
|
}
|
|
767
842
|
]
|
|
768
843
|
},
|
|
769
844
|
{
|
|
770
845
|
"kind": "method",
|
|
771
|
-
"name": "
|
|
846
|
+
"name": "setYear",
|
|
772
847
|
"privacy": "private",
|
|
773
|
-
"
|
|
848
|
+
"parameters": [
|
|
849
|
+
{
|
|
850
|
+
"name": "year",
|
|
851
|
+
"type": {
|
|
852
|
+
"text": "number"
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
]
|
|
774
856
|
},
|
|
775
857
|
{
|
|
776
|
-
"kind": "
|
|
777
|
-
"name": "
|
|
778
|
-
"
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
788
|
-
}
|
|
858
|
+
"kind": "method",
|
|
859
|
+
"name": "setFocusedDay",
|
|
860
|
+
"privacy": "private",
|
|
861
|
+
"parameters": [
|
|
862
|
+
{
|
|
863
|
+
"name": "day",
|
|
864
|
+
"type": {
|
|
865
|
+
"text": "Date"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
]
|
|
789
869
|
},
|
|
790
870
|
{
|
|
791
871
|
"kind": "field",
|
|
792
|
-
"name": "
|
|
793
|
-
"
|
|
794
|
-
"text": "string | undefined"
|
|
795
|
-
},
|
|
796
|
-
"description": "The name of the form component.",
|
|
797
|
-
"attribute": "name",
|
|
798
|
-
"inheritedFrom": {
|
|
799
|
-
"name": "InputMixin",
|
|
800
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
801
|
-
}
|
|
872
|
+
"name": "handleMonthSelect",
|
|
873
|
+
"privacy": "private"
|
|
802
874
|
},
|
|
803
875
|
{
|
|
804
876
|
"kind": "field",
|
|
805
|
-
"name": "
|
|
806
|
-
"
|
|
807
|
-
"text": "string"
|
|
808
|
-
},
|
|
809
|
-
"default": "\"\"",
|
|
810
|
-
"description": "The value of the form component.",
|
|
811
|
-
"attribute": "value",
|
|
812
|
-
"inheritedFrom": {
|
|
813
|
-
"name": "InputMixin",
|
|
814
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
815
|
-
}
|
|
877
|
+
"name": "handleYearSelect",
|
|
878
|
+
"privacy": "private"
|
|
816
879
|
},
|
|
817
880
|
{
|
|
818
881
|
"kind": "field",
|
|
819
|
-
"name": "
|
|
820
|
-
"
|
|
821
|
-
"inheritedFrom": {
|
|
822
|
-
"name": "InputMixin",
|
|
823
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
824
|
-
}
|
|
882
|
+
"name": "handleNextMonthClick",
|
|
883
|
+
"privacy": "private"
|
|
825
884
|
},
|
|
826
885
|
{
|
|
827
886
|
"kind": "field",
|
|
828
|
-
"name": "
|
|
829
|
-
"privacy": "
|
|
830
|
-
"inheritedFrom": {
|
|
831
|
-
"name": "FocusableMixin",
|
|
832
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"kind": "method",
|
|
837
|
-
"name": "focus",
|
|
838
|
-
"parameters": [
|
|
839
|
-
{
|
|
840
|
-
"name": "options",
|
|
841
|
-
"optional": true,
|
|
842
|
-
"type": {
|
|
843
|
-
"text": "FocusOptions"
|
|
844
|
-
},
|
|
845
|
-
"description": "An object which controls aspects of the focusing process."
|
|
846
|
-
}
|
|
847
|
-
],
|
|
848
|
-
"description": "Programmatically move focus to the component.",
|
|
849
|
-
"inheritedFrom": {
|
|
850
|
-
"name": "FocusableMixin",
|
|
851
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
852
|
-
}
|
|
887
|
+
"name": "handlePreviousMonthClick",
|
|
888
|
+
"privacy": "private"
|
|
853
889
|
},
|
|
854
890
|
{
|
|
855
|
-
"kind": "
|
|
856
|
-
"name": "
|
|
857
|
-
"
|
|
858
|
-
"inheritedFrom": {
|
|
859
|
-
"name": "FocusableMixin",
|
|
860
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
861
|
-
}
|
|
891
|
+
"kind": "field",
|
|
892
|
+
"name": "enableActiveFocus",
|
|
893
|
+
"privacy": "private"
|
|
862
894
|
},
|
|
863
895
|
{
|
|
864
|
-
"kind": "
|
|
865
|
-
"name": "
|
|
866
|
-
"
|
|
867
|
-
"inheritedFrom": {
|
|
868
|
-
"name": "FocusableMixin",
|
|
869
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
870
|
-
}
|
|
896
|
+
"kind": "field",
|
|
897
|
+
"name": "disableActiveFocus",
|
|
898
|
+
"privacy": "private"
|
|
871
899
|
}
|
|
872
900
|
],
|
|
873
|
-
"
|
|
874
|
-
{
|
|
875
|
-
"name": "variant",
|
|
876
|
-
"type": {
|
|
877
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\" | \"switch\""
|
|
878
|
-
},
|
|
879
|
-
"default": "\"default\"",
|
|
880
|
-
"description": "The style variant of the button.",
|
|
881
|
-
"fieldName": "variant"
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"name": "type",
|
|
885
|
-
"type": {
|
|
886
|
-
"text": "\"button\" | \"submit\" | \"reset\""
|
|
887
|
-
},
|
|
888
|
-
"default": "\"submit\"",
|
|
889
|
-
"description": "The type of the button.",
|
|
890
|
-
"fieldName": "type"
|
|
891
|
-
},
|
|
901
|
+
"events": [
|
|
892
902
|
{
|
|
893
|
-
"name": "
|
|
903
|
+
"name": "nord-focus-date",
|
|
894
904
|
"type": {
|
|
895
|
-
"text": "
|
|
905
|
+
"text": "DateSelectEvent"
|
|
896
906
|
},
|
|
897
|
-
"
|
|
898
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
899
|
-
"fieldName": "size"
|
|
907
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
900
908
|
},
|
|
901
909
|
{
|
|
902
|
-
"name": "aria-expanded",
|
|
903
910
|
"type": {
|
|
904
|
-
"text": "
|
|
911
|
+
"text": "DateSelectEvent"
|
|
905
912
|
},
|
|
906
|
-
"
|
|
907
|
-
|
|
913
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
914
|
+
"name": "change"
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"attributes": [
|
|
908
918
|
{
|
|
909
|
-
"name": "
|
|
919
|
+
"name": "value",
|
|
910
920
|
"type": {
|
|
911
|
-
"text": "
|
|
921
|
+
"text": "string"
|
|
912
922
|
},
|
|
913
|
-
"
|
|
923
|
+
"default": "\"\"",
|
|
924
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
925
|
+
"fieldName": "value"
|
|
914
926
|
},
|
|
915
927
|
{
|
|
916
|
-
"name": "
|
|
928
|
+
"name": "firstDayOfWeek",
|
|
917
929
|
"type": {
|
|
918
|
-
"text": "
|
|
930
|
+
"text": "DaysOfWeek"
|
|
919
931
|
},
|
|
920
|
-
"description": "
|
|
921
|
-
"fieldName": "
|
|
932
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
933
|
+
"fieldName": "firstDayOfWeek"
|
|
922
934
|
},
|
|
923
935
|
{
|
|
924
|
-
"name": "
|
|
936
|
+
"name": "min",
|
|
925
937
|
"type": {
|
|
926
|
-
"text": "
|
|
938
|
+
"text": "string"
|
|
927
939
|
},
|
|
928
|
-
"default": "
|
|
929
|
-
"description": "
|
|
930
|
-
"fieldName": "
|
|
940
|
+
"default": "\"\"",
|
|
941
|
+
"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.",
|
|
942
|
+
"fieldName": "min"
|
|
931
943
|
},
|
|
932
944
|
{
|
|
933
|
-
"name": "
|
|
945
|
+
"name": "max",
|
|
934
946
|
"type": {
|
|
935
|
-
"text": "
|
|
947
|
+
"text": "string"
|
|
936
948
|
},
|
|
937
|
-
"default": "\"
|
|
938
|
-
"description": "
|
|
939
|
-
"fieldName": "
|
|
949
|
+
"default": "\"\"",
|
|
950
|
+
"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.",
|
|
951
|
+
"fieldName": "max"
|
|
940
952
|
},
|
|
941
953
|
{
|
|
942
954
|
"name": "expand",
|
|
@@ -944,65 +956,8 @@
|
|
|
944
956
|
"text": "boolean"
|
|
945
957
|
},
|
|
946
958
|
"default": "false",
|
|
947
|
-
"description": "Controls whether the
|
|
959
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
948
960
|
"fieldName": "expand"
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"name": "loading",
|
|
952
|
-
"type": {
|
|
953
|
-
"text": "boolean"
|
|
954
|
-
},
|
|
955
|
-
"default": "false",
|
|
956
|
-
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
957
|
-
"fieldName": "loading"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"name": "disabled",
|
|
961
|
-
"type": {
|
|
962
|
-
"text": "boolean"
|
|
963
|
-
},
|
|
964
|
-
"default": "false",
|
|
965
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
966
|
-
"fieldName": "disabled",
|
|
967
|
-
"inheritedFrom": {
|
|
968
|
-
"name": "InputMixin",
|
|
969
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"name": "name",
|
|
974
|
-
"type": {
|
|
975
|
-
"text": "string | undefined"
|
|
976
|
-
},
|
|
977
|
-
"description": "The name of the form component.",
|
|
978
|
-
"fieldName": "name",
|
|
979
|
-
"inheritedFrom": {
|
|
980
|
-
"name": "InputMixin",
|
|
981
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
982
|
-
}
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"name": "value",
|
|
986
|
-
"type": {
|
|
987
|
-
"text": "string"
|
|
988
|
-
},
|
|
989
|
-
"default": "\"\"",
|
|
990
|
-
"description": "The value of the form component.",
|
|
991
|
-
"fieldName": "value",
|
|
992
|
-
"inheritedFrom": {
|
|
993
|
-
"name": "InputMixin",
|
|
994
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
],
|
|
998
|
-
"mixins": [
|
|
999
|
-
{
|
|
1000
|
-
"name": "InputMixin",
|
|
1001
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"name": "FocusableMixin",
|
|
1005
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1006
961
|
}
|
|
1007
962
|
],
|
|
1008
963
|
"superclass": {
|
|
@@ -1010,9 +965,9 @@
|
|
|
1010
965
|
"package": "lit"
|
|
1011
966
|
},
|
|
1012
967
|
"status": "ready",
|
|
1013
|
-
"category": "
|
|
968
|
+
"category": "list",
|
|
1014
969
|
"displayName": null,
|
|
1015
|
-
"tagName": "nord-
|
|
970
|
+
"tagName": "nord-calendar",
|
|
1016
971
|
"customElement": true
|
|
1017
972
|
}
|
|
1018
973
|
],
|
|
@@ -1021,38 +976,138 @@
|
|
|
1021
976
|
"kind": "js",
|
|
1022
977
|
"name": "default",
|
|
1023
978
|
"declaration": {
|
|
1024
|
-
"name": "
|
|
1025
|
-
"module": "src/
|
|
979
|
+
"name": "Calendar",
|
|
980
|
+
"module": "src/calendar/Calendar.ts"
|
|
1026
981
|
}
|
|
1027
982
|
},
|
|
1028
983
|
{
|
|
1029
984
|
"kind": "custom-element-definition",
|
|
1030
|
-
"name": "nord-
|
|
985
|
+
"name": "nord-calendar",
|
|
1031
986
|
"declaration": {
|
|
1032
|
-
"name": "
|
|
1033
|
-
"module": "src/
|
|
987
|
+
"name": "Calendar",
|
|
988
|
+
"module": "src/calendar/Calendar.ts"
|
|
1034
989
|
}
|
|
1035
990
|
}
|
|
1036
991
|
],
|
|
1037
|
-
"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-
|
|
992
|
+
"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"
|
|
1038
993
|
},
|
|
1039
994
|
{
|
|
1040
995
|
"kind": "javascript-module",
|
|
1041
|
-
"path": "src/
|
|
996
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1042
997
|
"declarations": [
|
|
1043
998
|
{
|
|
1044
999
|
"kind": "class",
|
|
1045
|
-
"description": "
|
|
1046
|
-
"name": "
|
|
1047
|
-
"
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1000
|
+
"description": "",
|
|
1001
|
+
"name": "DateSelectEvent",
|
|
1002
|
+
"superclass": {
|
|
1003
|
+
"name": "NordEvent",
|
|
1004
|
+
"module": "/src/common/events.js"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
"exports": [
|
|
1009
|
+
{
|
|
1010
|
+
"kind": "js",
|
|
1011
|
+
"name": "DateSelectEvent",
|
|
1012
|
+
"declaration": {
|
|
1013
|
+
"name": "DateSelectEvent",
|
|
1014
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
],
|
|
1018
|
+
"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"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"kind": "javascript-module",
|
|
1022
|
+
"path": "src/calendar/localization.ts",
|
|
1023
|
+
"declarations": [
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "variable",
|
|
1026
|
+
"name": "calendarLocalization",
|
|
1027
|
+
"type": {
|
|
1028
|
+
"text": "object"
|
|
1029
|
+
},
|
|
1030
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"exports": [
|
|
1034
|
+
{
|
|
1035
|
+
"kind": "js",
|
|
1036
|
+
"name": "default",
|
|
1037
|
+
"declaration": {
|
|
1038
|
+
"name": "calendarLocalization",
|
|
1039
|
+
"module": "src/calendar/localization.ts"
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"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"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"kind": "javascript-module",
|
|
1047
|
+
"path": "src/calendar/month-view.ts",
|
|
1048
|
+
"declarations": [
|
|
1049
|
+
{
|
|
1050
|
+
"kind": "function",
|
|
1051
|
+
"name": "dayView",
|
|
1052
|
+
"parameters": [
|
|
1053
|
+
{
|
|
1054
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1055
|
+
"type": {
|
|
1056
|
+
"text": "DatePickerDayProps"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"kind": "function",
|
|
1063
|
+
"name": "monthView",
|
|
1064
|
+
"parameters": [
|
|
1065
|
+
{
|
|
1066
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1067
|
+
"type": {
|
|
1068
|
+
"text": "MonthViewArgs"
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"exports": [
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "js",
|
|
1077
|
+
"name": "dayView",
|
|
1078
|
+
"declaration": {
|
|
1079
|
+
"name": "dayView",
|
|
1080
|
+
"module": "src/calendar/month-view.ts"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"kind": "js",
|
|
1085
|
+
"name": "monthView",
|
|
1086
|
+
"declaration": {
|
|
1087
|
+
"name": "monthView",
|
|
1088
|
+
"module": "src/calendar/month-view.ts"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
"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"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"kind": "javascript-module",
|
|
1096
|
+
"path": "src/badge/Badge.ts",
|
|
1097
|
+
"declarations": [
|
|
1098
|
+
{
|
|
1099
|
+
"kind": "class",
|
|
1100
|
+
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
1101
|
+
"name": "Badge",
|
|
1102
|
+
"slots": [
|
|
1103
|
+
{
|
|
1104
|
+
"description": "The badge content.",
|
|
1105
|
+
"name": ""
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"members": [
|
|
1109
|
+
{
|
|
1110
|
+
"kind": "field",
|
|
1056
1111
|
"name": "type",
|
|
1057
1112
|
"type": {
|
|
1058
1113
|
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
@@ -1107,140 +1162,125 @@
|
|
|
1107
1162
|
},
|
|
1108
1163
|
{
|
|
1109
1164
|
"kind": "javascript-module",
|
|
1110
|
-
"path": "src/
|
|
1165
|
+
"path": "src/button/Button.ts",
|
|
1111
1166
|
"declarations": [
|
|
1112
1167
|
{
|
|
1113
1168
|
"kind": "class",
|
|
1114
|
-
"description": "
|
|
1115
|
-
"name": "
|
|
1116
|
-
"
|
|
1117
|
-
{
|
|
1118
|
-
"kind": "field",
|
|
1119
|
-
"name": "dialogLabelId",
|
|
1120
|
-
"type": {
|
|
1121
|
-
"text": "string"
|
|
1122
|
-
},
|
|
1123
|
-
"privacy": "private",
|
|
1124
|
-
"default": "\"dialog-header\""
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"kind": "field",
|
|
1128
|
-
"name": "monthSelectNode",
|
|
1129
|
-
"type": {
|
|
1130
|
-
"text": "HTMLElement"
|
|
1131
|
-
},
|
|
1132
|
-
"privacy": "private"
|
|
1133
|
-
},
|
|
1169
|
+
"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.",
|
|
1170
|
+
"name": "Button",
|
|
1171
|
+
"slots": [
|
|
1134
1172
|
{
|
|
1135
|
-
"
|
|
1136
|
-
"name": "
|
|
1137
|
-
"type": {
|
|
1138
|
-
"text": "HTMLButtonElement"
|
|
1139
|
-
},
|
|
1140
|
-
"privacy": "private"
|
|
1173
|
+
"description": "The button content",
|
|
1174
|
+
"name": ""
|
|
1141
1175
|
},
|
|
1142
1176
|
{
|
|
1143
|
-
"
|
|
1144
|
-
"name": "
|
|
1145
|
-
"privacy": "private",
|
|
1146
|
-
"default": "new DirectionController(this)"
|
|
1177
|
+
"description": "Used to place content at the start of button text. Typically used for icons.",
|
|
1178
|
+
"name": "start"
|
|
1147
1179
|
},
|
|
1148
1180
|
{
|
|
1149
|
-
"
|
|
1150
|
-
"name": "
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1181
|
+
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
1182
|
+
"name": "end"
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"members": [
|
|
1154
1186
|
{
|
|
1155
1187
|
"kind": "field",
|
|
1156
|
-
"name": "
|
|
1188
|
+
"name": "buttonRef",
|
|
1157
1189
|
"privacy": "private"
|
|
1158
1190
|
},
|
|
1159
1191
|
{
|
|
1160
1192
|
"kind": "field",
|
|
1161
|
-
"name": "
|
|
1193
|
+
"name": "events",
|
|
1162
1194
|
"privacy": "private",
|
|
1163
|
-
"default": "new
|
|
1195
|
+
"default": "new EventController(this)"
|
|
1164
1196
|
},
|
|
1165
1197
|
{
|
|
1166
1198
|
"kind": "field",
|
|
1167
|
-
"name": "
|
|
1168
|
-
"type": {
|
|
1169
|
-
"text": "Intl.DateTimeFormat"
|
|
1170
|
-
},
|
|
1199
|
+
"name": "lightDom",
|
|
1171
1200
|
"privacy": "private",
|
|
1172
|
-
"
|
|
1201
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
1173
1202
|
},
|
|
1174
1203
|
{
|
|
1175
1204
|
"kind": "field",
|
|
1176
|
-
"name": "
|
|
1205
|
+
"name": "variant",
|
|
1177
1206
|
"type": {
|
|
1178
|
-
"text": "
|
|
1207
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\" | \"switch\""
|
|
1179
1208
|
},
|
|
1180
|
-
"
|
|
1209
|
+
"default": "\"default\"",
|
|
1210
|
+
"description": "The style variant of the button.",
|
|
1211
|
+
"attribute": "variant",
|
|
1212
|
+
"reflects": true
|
|
1181
1213
|
},
|
|
1182
1214
|
{
|
|
1183
1215
|
"kind": "field",
|
|
1184
|
-
"name": "
|
|
1216
|
+
"name": "type",
|
|
1185
1217
|
"type": {
|
|
1186
|
-
"text": "
|
|
1218
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1187
1219
|
},
|
|
1188
|
-
"
|
|
1220
|
+
"default": "\"submit\"",
|
|
1221
|
+
"description": "The type of the button.",
|
|
1222
|
+
"attribute": "type",
|
|
1223
|
+
"reflects": true
|
|
1189
1224
|
},
|
|
1190
1225
|
{
|
|
1191
1226
|
"kind": "field",
|
|
1192
|
-
"name": "
|
|
1227
|
+
"name": "size",
|
|
1193
1228
|
"type": {
|
|
1194
|
-
"text": "
|
|
1229
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1195
1230
|
},
|
|
1196
|
-
"
|
|
1231
|
+
"default": "\"m\"",
|
|
1232
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1233
|
+
"attribute": "size",
|
|
1234
|
+
"reflects": true
|
|
1197
1235
|
},
|
|
1198
1236
|
{
|
|
1199
1237
|
"kind": "field",
|
|
1200
|
-
"name": "
|
|
1238
|
+
"name": "accessibleExpanded",
|
|
1201
1239
|
"type": {
|
|
1202
|
-
"text": "
|
|
1240
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1203
1241
|
},
|
|
1204
|
-
"privacy": "private"
|
|
1242
|
+
"privacy": "private",
|
|
1243
|
+
"attribute": "aria-expanded"
|
|
1205
1244
|
},
|
|
1206
1245
|
{
|
|
1207
1246
|
"kind": "field",
|
|
1208
|
-
"name": "
|
|
1247
|
+
"name": "accessibleHasPopup",
|
|
1209
1248
|
"type": {
|
|
1210
|
-
"text": "
|
|
1249
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1211
1250
|
},
|
|
1212
|
-
"
|
|
1213
|
-
"
|
|
1214
|
-
"attribute": "value"
|
|
1251
|
+
"privacy": "private",
|
|
1252
|
+
"attribute": "aria-haspopup"
|
|
1215
1253
|
},
|
|
1216
1254
|
{
|
|
1217
1255
|
"kind": "field",
|
|
1218
|
-
"name": "
|
|
1256
|
+
"name": "href",
|
|
1219
1257
|
"type": {
|
|
1220
|
-
"text": "
|
|
1258
|
+
"text": "string | undefined"
|
|
1221
1259
|
},
|
|
1222
|
-
"description": "
|
|
1223
|
-
"attribute": "
|
|
1260
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1261
|
+
"attribute": "href",
|
|
1262
|
+
"reflects": true
|
|
1224
1263
|
},
|
|
1225
1264
|
{
|
|
1226
1265
|
"kind": "field",
|
|
1227
|
-
"name": "
|
|
1266
|
+
"name": "download",
|
|
1228
1267
|
"type": {
|
|
1229
|
-
"text": "
|
|
1268
|
+
"text": "boolean"
|
|
1230
1269
|
},
|
|
1231
|
-
"default": "
|
|
1232
|
-
"description": "
|
|
1233
|
-
"attribute": "
|
|
1270
|
+
"default": "false",
|
|
1271
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1272
|
+
"attribute": "download"
|
|
1234
1273
|
},
|
|
1235
1274
|
{
|
|
1236
1275
|
"kind": "field",
|
|
1237
|
-
"name": "
|
|
1276
|
+
"name": "target",
|
|
1238
1277
|
"type": {
|
|
1239
|
-
"text": "
|
|
1278
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1240
1279
|
},
|
|
1241
|
-
"default": "\"\"",
|
|
1242
|
-
"description": "
|
|
1243
|
-
"attribute": "
|
|
1280
|
+
"default": "\"_self\"",
|
|
1281
|
+
"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.",
|
|
1282
|
+
"attribute": "target",
|
|
1283
|
+
"reflects": true
|
|
1244
1284
|
},
|
|
1245
1285
|
{
|
|
1246
1286
|
"kind": "field",
|
|
@@ -1249,239 +1289,250 @@
|
|
|
1249
1289
|
"text": "boolean"
|
|
1250
1290
|
},
|
|
1251
1291
|
"default": "false",
|
|
1252
|
-
"description": "Controls whether the
|
|
1292
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1253
1293
|
"attribute": "expand",
|
|
1254
1294
|
"reflects": true
|
|
1255
1295
|
},
|
|
1256
1296
|
{
|
|
1257
1297
|
"kind": "field",
|
|
1258
|
-
"name": "
|
|
1298
|
+
"name": "loading",
|
|
1259
1299
|
"type": {
|
|
1260
|
-
"text": "
|
|
1300
|
+
"text": "boolean"
|
|
1261
1301
|
},
|
|
1262
|
-
"default": "
|
|
1263
|
-
"description": "Controls
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
"kind": "field",
|
|
1267
|
-
"name": "activeFocus",
|
|
1268
|
-
"type": {
|
|
1269
|
-
"text": "boolean"
|
|
1270
|
-
},
|
|
1271
|
-
"privacy": "private",
|
|
1272
|
-
"default": "false"
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"kind": "field",
|
|
1276
|
-
"name": "focusedDay",
|
|
1277
|
-
"privacy": "private",
|
|
1278
|
-
"default": "new Date()"
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
"kind": "method",
|
|
1282
|
-
"name": "focus",
|
|
1283
|
-
"parameters": [
|
|
1284
|
-
{
|
|
1285
|
-
"name": "options",
|
|
1286
|
-
"optional": true,
|
|
1287
|
-
"type": {
|
|
1288
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1289
|
-
},
|
|
1290
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1291
|
-
}
|
|
1292
|
-
],
|
|
1293
|
-
"description": "Programmatically move focus to the calendar."
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
"kind": "method",
|
|
1297
|
-
"name": "handleValueChange",
|
|
1298
|
-
"privacy": "protected"
|
|
1299
|
-
},
|
|
1300
|
-
{
|
|
1301
|
-
"kind": "method",
|
|
1302
|
-
"name": "handleFocusedDayChange",
|
|
1303
|
-
"privacy": "protected"
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
"kind": "method",
|
|
1307
|
-
"name": "handleLangChange",
|
|
1308
|
-
"privacy": "private"
|
|
1309
|
-
},
|
|
1310
|
-
{
|
|
1311
|
-
"kind": "field",
|
|
1312
|
-
"name": "handleDaySelect",
|
|
1313
|
-
"privacy": "private"
|
|
1314
|
-
},
|
|
1315
|
-
{
|
|
1316
|
-
"kind": "method",
|
|
1317
|
-
"name": "addDays",
|
|
1318
|
-
"privacy": "private",
|
|
1319
|
-
"parameters": [
|
|
1320
|
-
{
|
|
1321
|
-
"name": "days",
|
|
1322
|
-
"type": {
|
|
1323
|
-
"text": "number"
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
]
|
|
1302
|
+
"default": "false",
|
|
1303
|
+
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
1304
|
+
"attribute": "loading",
|
|
1305
|
+
"reflects": true
|
|
1327
1306
|
},
|
|
1328
1307
|
{
|
|
1329
1308
|
"kind": "method",
|
|
1330
|
-
"name": "
|
|
1309
|
+
"name": "renderLink",
|
|
1331
1310
|
"privacy": "private",
|
|
1332
1311
|
"parameters": [
|
|
1333
1312
|
{
|
|
1334
|
-
"name": "
|
|
1313
|
+
"name": "innards",
|
|
1335
1314
|
"type": {
|
|
1336
|
-
"text": "
|
|
1315
|
+
"text": "TemplateResult"
|
|
1337
1316
|
}
|
|
1338
1317
|
}
|
|
1339
|
-
]
|
|
1318
|
+
],
|
|
1319
|
+
"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."
|
|
1340
1320
|
},
|
|
1341
1321
|
{
|
|
1342
1322
|
"kind": "method",
|
|
1343
|
-
"name": "
|
|
1323
|
+
"name": "renderButton",
|
|
1344
1324
|
"privacy": "private",
|
|
1345
1325
|
"parameters": [
|
|
1346
1326
|
{
|
|
1347
|
-
"name": "
|
|
1327
|
+
"name": "innards",
|
|
1348
1328
|
"type": {
|
|
1349
|
-
"text": "
|
|
1329
|
+
"text": "TemplateResult"
|
|
1350
1330
|
}
|
|
1351
1331
|
}
|
|
1352
1332
|
]
|
|
1353
1333
|
},
|
|
1354
1334
|
{
|
|
1355
1335
|
"kind": "method",
|
|
1356
|
-
"name": "
|
|
1336
|
+
"name": "renderLightDom",
|
|
1357
1337
|
"privacy": "private"
|
|
1358
1338
|
},
|
|
1359
1339
|
{
|
|
1360
|
-
"kind": "
|
|
1361
|
-
"name": "
|
|
1340
|
+
"kind": "field",
|
|
1341
|
+
"name": "handleOuterClick",
|
|
1362
1342
|
"privacy": "private"
|
|
1363
1343
|
},
|
|
1364
1344
|
{
|
|
1365
1345
|
"kind": "method",
|
|
1366
|
-
"name": "
|
|
1346
|
+
"name": "handleClick",
|
|
1367
1347
|
"privacy": "private",
|
|
1368
1348
|
"parameters": [
|
|
1369
1349
|
{
|
|
1370
|
-
"name": "
|
|
1350
|
+
"name": "e",
|
|
1371
1351
|
"type": {
|
|
1372
|
-
"text": "
|
|
1352
|
+
"text": "Event"
|
|
1373
1353
|
}
|
|
1374
1354
|
}
|
|
1375
1355
|
]
|
|
1376
1356
|
},
|
|
1377
1357
|
{
|
|
1378
1358
|
"kind": "method",
|
|
1379
|
-
"name": "
|
|
1359
|
+
"name": "handleProxyChange",
|
|
1380
1360
|
"privacy": "private",
|
|
1381
1361
|
"parameters": [
|
|
1382
1362
|
{
|
|
1383
|
-
"name": "
|
|
1363
|
+
"name": "e",
|
|
1384
1364
|
"type": {
|
|
1385
|
-
"text": "
|
|
1365
|
+
"text": "Event"
|
|
1386
1366
|
}
|
|
1387
1367
|
}
|
|
1388
|
-
]
|
|
1368
|
+
],
|
|
1369
|
+
"description": "React/Vue etc may remove our proxy button when updating button text, since they are unaware of its existence.\nSo we listen for a slotchange event, and if the element is no longer connected to the DOM we add it back in."
|
|
1389
1370
|
},
|
|
1390
1371
|
{
|
|
1391
|
-
"kind": "
|
|
1392
|
-
"name": "
|
|
1393
|
-
"
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1372
|
+
"kind": "field",
|
|
1373
|
+
"name": "disabled",
|
|
1374
|
+
"type": {
|
|
1375
|
+
"text": "boolean"
|
|
1376
|
+
},
|
|
1377
|
+
"default": "false",
|
|
1378
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1379
|
+
"attribute": "disabled",
|
|
1380
|
+
"reflects": true,
|
|
1381
|
+
"inheritedFrom": {
|
|
1382
|
+
"name": "InputMixin",
|
|
1383
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1384
|
+
}
|
|
1402
1385
|
},
|
|
1403
1386
|
{
|
|
1404
1387
|
"kind": "field",
|
|
1405
|
-
"name": "
|
|
1406
|
-
"
|
|
1388
|
+
"name": "name",
|
|
1389
|
+
"type": {
|
|
1390
|
+
"text": "string | undefined"
|
|
1391
|
+
},
|
|
1392
|
+
"description": "The name of the form component.",
|
|
1393
|
+
"attribute": "name",
|
|
1394
|
+
"inheritedFrom": {
|
|
1395
|
+
"name": "InputMixin",
|
|
1396
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1397
|
+
}
|
|
1407
1398
|
},
|
|
1408
1399
|
{
|
|
1409
1400
|
"kind": "field",
|
|
1410
|
-
"name": "
|
|
1411
|
-
"
|
|
1401
|
+
"name": "value",
|
|
1402
|
+
"type": {
|
|
1403
|
+
"text": "string"
|
|
1404
|
+
},
|
|
1405
|
+
"default": "\"\"",
|
|
1406
|
+
"description": "The value of the form component.",
|
|
1407
|
+
"attribute": "value",
|
|
1408
|
+
"inheritedFrom": {
|
|
1409
|
+
"name": "InputMixin",
|
|
1410
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1411
|
+
}
|
|
1412
1412
|
},
|
|
1413
1413
|
{
|
|
1414
1414
|
"kind": "field",
|
|
1415
|
-
"name": "
|
|
1416
|
-
"
|
|
1415
|
+
"name": "form",
|
|
1416
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
1417
|
+
"inheritedFrom": {
|
|
1418
|
+
"name": "InputMixin",
|
|
1419
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1420
|
+
}
|
|
1417
1421
|
},
|
|
1418
1422
|
{
|
|
1419
1423
|
"kind": "field",
|
|
1420
|
-
"name": "
|
|
1421
|
-
"privacy": "
|
|
1424
|
+
"name": "focusableRef",
|
|
1425
|
+
"privacy": "protected",
|
|
1426
|
+
"inheritedFrom": {
|
|
1427
|
+
"name": "FocusableMixin",
|
|
1428
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1429
|
+
}
|
|
1422
1430
|
},
|
|
1423
1431
|
{
|
|
1424
|
-
"kind": "
|
|
1425
|
-
"name": "
|
|
1426
|
-
"
|
|
1432
|
+
"kind": "method",
|
|
1433
|
+
"name": "focus",
|
|
1434
|
+
"parameters": [
|
|
1435
|
+
{
|
|
1436
|
+
"name": "options",
|
|
1437
|
+
"optional": true,
|
|
1438
|
+
"type": {
|
|
1439
|
+
"text": "FocusOptions"
|
|
1440
|
+
},
|
|
1441
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"description": "Programmatically move focus to the component.",
|
|
1445
|
+
"inheritedFrom": {
|
|
1446
|
+
"name": "FocusableMixin",
|
|
1447
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1448
|
+
}
|
|
1427
1449
|
},
|
|
1428
1450
|
{
|
|
1429
|
-
"kind": "
|
|
1430
|
-
"name": "
|
|
1431
|
-
"
|
|
1451
|
+
"kind": "method",
|
|
1452
|
+
"name": "blur",
|
|
1453
|
+
"description": "Programmatically remove focus from the component.",
|
|
1454
|
+
"inheritedFrom": {
|
|
1455
|
+
"name": "FocusableMixin",
|
|
1456
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"kind": "method",
|
|
1461
|
+
"name": "click",
|
|
1462
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1463
|
+
"inheritedFrom": {
|
|
1464
|
+
"name": "FocusableMixin",
|
|
1465
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1466
|
+
}
|
|
1432
1467
|
}
|
|
1433
1468
|
],
|
|
1434
|
-
"
|
|
1469
|
+
"attributes": [
|
|
1435
1470
|
{
|
|
1436
|
-
"name": "
|
|
1471
|
+
"name": "variant",
|
|
1437
1472
|
"type": {
|
|
1438
|
-
"text": "
|
|
1473
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\" | \"switch\""
|
|
1439
1474
|
},
|
|
1440
|
-
"
|
|
1475
|
+
"default": "\"default\"",
|
|
1476
|
+
"description": "The style variant of the button.",
|
|
1477
|
+
"fieldName": "variant"
|
|
1441
1478
|
},
|
|
1442
1479
|
{
|
|
1480
|
+
"name": "type",
|
|
1443
1481
|
"type": {
|
|
1444
|
-
"text": "
|
|
1482
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1445
1483
|
},
|
|
1446
|
-
"
|
|
1447
|
-
"
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
"attributes": [
|
|
1484
|
+
"default": "\"submit\"",
|
|
1485
|
+
"description": "The type of the button.",
|
|
1486
|
+
"fieldName": "type"
|
|
1487
|
+
},
|
|
1451
1488
|
{
|
|
1452
|
-
"name": "
|
|
1489
|
+
"name": "size",
|
|
1453
1490
|
"type": {
|
|
1454
|
-
"text": "
|
|
1491
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1455
1492
|
},
|
|
1456
|
-
"default": "\"\"",
|
|
1457
|
-
"description": "The
|
|
1458
|
-
"fieldName": "
|
|
1493
|
+
"default": "\"m\"",
|
|
1494
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1495
|
+
"fieldName": "size"
|
|
1459
1496
|
},
|
|
1460
1497
|
{
|
|
1461
|
-
"name": "
|
|
1498
|
+
"name": "aria-expanded",
|
|
1462
1499
|
"type": {
|
|
1463
|
-
"text": "
|
|
1500
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1464
1501
|
},
|
|
1465
|
-
"
|
|
1466
|
-
"fieldName": "firstDayOfWeek"
|
|
1502
|
+
"fieldName": "accessibleExpanded"
|
|
1467
1503
|
},
|
|
1468
1504
|
{
|
|
1469
|
-
"name": "
|
|
1505
|
+
"name": "aria-haspopup",
|
|
1470
1506
|
"type": {
|
|
1471
|
-
"text": "
|
|
1507
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1472
1508
|
},
|
|
1473
|
-
"
|
|
1474
|
-
"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.",
|
|
1475
|
-
"fieldName": "min"
|
|
1509
|
+
"fieldName": "accessibleHasPopup"
|
|
1476
1510
|
},
|
|
1477
1511
|
{
|
|
1478
|
-
"name": "
|
|
1512
|
+
"name": "href",
|
|
1479
1513
|
"type": {
|
|
1480
|
-
"text": "string"
|
|
1514
|
+
"text": "string | undefined"
|
|
1481
1515
|
},
|
|
1482
|
-
"
|
|
1483
|
-
"
|
|
1484
|
-
|
|
1516
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1517
|
+
"fieldName": "href"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"name": "download",
|
|
1521
|
+
"type": {
|
|
1522
|
+
"text": "boolean"
|
|
1523
|
+
},
|
|
1524
|
+
"default": "false",
|
|
1525
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1526
|
+
"fieldName": "download"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"name": "target",
|
|
1530
|
+
"type": {
|
|
1531
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1532
|
+
},
|
|
1533
|
+
"default": "\"_self\"",
|
|
1534
|
+
"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.",
|
|
1535
|
+
"fieldName": "target"
|
|
1485
1536
|
},
|
|
1486
1537
|
{
|
|
1487
1538
|
"name": "expand",
|
|
@@ -1489,8 +1540,65 @@
|
|
|
1489
1540
|
"text": "boolean"
|
|
1490
1541
|
},
|
|
1491
1542
|
"default": "false",
|
|
1492
|
-
"description": "Controls whether the
|
|
1543
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1493
1544
|
"fieldName": "expand"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"name": "loading",
|
|
1548
|
+
"type": {
|
|
1549
|
+
"text": "boolean"
|
|
1550
|
+
},
|
|
1551
|
+
"default": "false",
|
|
1552
|
+
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
1553
|
+
"fieldName": "loading"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"name": "disabled",
|
|
1557
|
+
"type": {
|
|
1558
|
+
"text": "boolean"
|
|
1559
|
+
},
|
|
1560
|
+
"default": "false",
|
|
1561
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1562
|
+
"fieldName": "disabled",
|
|
1563
|
+
"inheritedFrom": {
|
|
1564
|
+
"name": "InputMixin",
|
|
1565
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "name",
|
|
1570
|
+
"type": {
|
|
1571
|
+
"text": "string | undefined"
|
|
1572
|
+
},
|
|
1573
|
+
"description": "The name of the form component.",
|
|
1574
|
+
"fieldName": "name",
|
|
1575
|
+
"inheritedFrom": {
|
|
1576
|
+
"name": "InputMixin",
|
|
1577
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"name": "value",
|
|
1582
|
+
"type": {
|
|
1583
|
+
"text": "string"
|
|
1584
|
+
},
|
|
1585
|
+
"default": "\"\"",
|
|
1586
|
+
"description": "The value of the form component.",
|
|
1587
|
+
"fieldName": "value",
|
|
1588
|
+
"inheritedFrom": {
|
|
1589
|
+
"name": "InputMixin",
|
|
1590
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
"mixins": [
|
|
1595
|
+
{
|
|
1596
|
+
"name": "InputMixin",
|
|
1597
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"name": "FocusableMixin",
|
|
1601
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1494
1602
|
}
|
|
1495
1603
|
],
|
|
1496
1604
|
"superclass": {
|
|
@@ -1498,9 +1606,9 @@
|
|
|
1498
1606
|
"package": "lit"
|
|
1499
1607
|
},
|
|
1500
1608
|
"status": "ready",
|
|
1501
|
-
"category": "
|
|
1609
|
+
"category": "action",
|
|
1502
1610
|
"displayName": null,
|
|
1503
|
-
"tagName": "nord-
|
|
1611
|
+
"tagName": "nord-button",
|
|
1504
1612
|
"customElement": true
|
|
1505
1613
|
}
|
|
1506
1614
|
],
|
|
@@ -1509,120 +1617,20 @@
|
|
|
1509
1617
|
"kind": "js",
|
|
1510
1618
|
"name": "default",
|
|
1511
1619
|
"declaration": {
|
|
1512
|
-
"name": "
|
|
1513
|
-
"module": "src/
|
|
1620
|
+
"name": "Button",
|
|
1621
|
+
"module": "src/button/Button.ts"
|
|
1514
1622
|
}
|
|
1515
1623
|
},
|
|
1516
1624
|
{
|
|
1517
1625
|
"kind": "custom-element-definition",
|
|
1518
|
-
"name": "nord-
|
|
1519
|
-
"declaration": {
|
|
1520
|
-
"name": "Calendar",
|
|
1521
|
-
"module": "src/calendar/Calendar.ts"
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
],
|
|
1525
|
-
"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"
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
"kind": "javascript-module",
|
|
1529
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
1530
|
-
"declarations": [
|
|
1531
|
-
{
|
|
1532
|
-
"kind": "class",
|
|
1533
|
-
"description": "",
|
|
1534
|
-
"name": "DateSelectEvent",
|
|
1535
|
-
"superclass": {
|
|
1536
|
-
"name": "NordEvent",
|
|
1537
|
-
"module": "/src/common/events.js"
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
],
|
|
1541
|
-
"exports": [
|
|
1542
|
-
{
|
|
1543
|
-
"kind": "js",
|
|
1544
|
-
"name": "DateSelectEvent",
|
|
1545
|
-
"declaration": {
|
|
1546
|
-
"name": "DateSelectEvent",
|
|
1547
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
],
|
|
1551
|
-
"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"
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
"kind": "javascript-module",
|
|
1555
|
-
"path": "src/calendar/localization.ts",
|
|
1556
|
-
"declarations": [
|
|
1557
|
-
{
|
|
1558
|
-
"kind": "variable",
|
|
1559
|
-
"name": "calendarLocalization",
|
|
1560
|
-
"type": {
|
|
1561
|
-
"text": "object"
|
|
1562
|
-
},
|
|
1563
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1564
|
-
}
|
|
1565
|
-
],
|
|
1566
|
-
"exports": [
|
|
1567
|
-
{
|
|
1568
|
-
"kind": "js",
|
|
1569
|
-
"name": "default",
|
|
1570
|
-
"declaration": {
|
|
1571
|
-
"name": "calendarLocalization",
|
|
1572
|
-
"module": "src/calendar/localization.ts"
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
],
|
|
1576
|
-
"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"
|
|
1577
|
-
},
|
|
1578
|
-
{
|
|
1579
|
-
"kind": "javascript-module",
|
|
1580
|
-
"path": "src/calendar/month-view.ts",
|
|
1581
|
-
"declarations": [
|
|
1582
|
-
{
|
|
1583
|
-
"kind": "function",
|
|
1584
|
-
"name": "dayView",
|
|
1585
|
-
"parameters": [
|
|
1586
|
-
{
|
|
1587
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1588
|
-
"type": {
|
|
1589
|
-
"text": "DatePickerDayProps"
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
]
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
"kind": "function",
|
|
1596
|
-
"name": "monthView",
|
|
1597
|
-
"parameters": [
|
|
1598
|
-
{
|
|
1599
|
-
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1600
|
-
"type": {
|
|
1601
|
-
"text": "MonthViewArgs"
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
]
|
|
1605
|
-
}
|
|
1606
|
-
],
|
|
1607
|
-
"exports": [
|
|
1608
|
-
{
|
|
1609
|
-
"kind": "js",
|
|
1610
|
-
"name": "dayView",
|
|
1611
|
-
"declaration": {
|
|
1612
|
-
"name": "dayView",
|
|
1613
|
-
"module": "src/calendar/month-view.ts"
|
|
1614
|
-
}
|
|
1615
|
-
},
|
|
1616
|
-
{
|
|
1617
|
-
"kind": "js",
|
|
1618
|
-
"name": "monthView",
|
|
1626
|
+
"name": "nord-button",
|
|
1619
1627
|
"declaration": {
|
|
1620
|
-
"name": "
|
|
1621
|
-
"module": "src/
|
|
1628
|
+
"name": "Button",
|
|
1629
|
+
"module": "src/button/Button.ts"
|
|
1622
1630
|
}
|
|
1623
1631
|
}
|
|
1624
1632
|
],
|
|
1625
|
-
"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-
|
|
1633
|
+
"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- Only use one primary button per section, as a main call-to-action.\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 a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n| `switch` | Switch style is reserved for the clinic switcher in the top left corner of an application. |\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n"
|
|
1626
1634
|
},
|
|
1627
1635
|
{
|
|
1628
1636
|
"kind": "javascript-module",
|
|
@@ -5210,6 +5218,17 @@
|
|
|
5210
5218
|
"attribute": "expand",
|
|
5211
5219
|
"reflects": true
|
|
5212
5220
|
},
|
|
5221
|
+
{
|
|
5222
|
+
"kind": "field",
|
|
5223
|
+
"name": "size",
|
|
5224
|
+
"type": {
|
|
5225
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
5226
|
+
},
|
|
5227
|
+
"default": "\"m\"",
|
|
5228
|
+
"description": "The size of the dropdown. This affects the minimum and maximum inline-size\nof the dropdown.",
|
|
5229
|
+
"attribute": "size",
|
|
5230
|
+
"reflects": true
|
|
5231
|
+
},
|
|
5213
5232
|
{
|
|
5214
5233
|
"kind": "method",
|
|
5215
5234
|
"name": "hide",
|
|
@@ -5271,6 +5290,15 @@
|
|
|
5271
5290
|
"default": "false",
|
|
5272
5291
|
"description": "Controls whether the toggle slot expands to fill the width of its container.",
|
|
5273
5292
|
"fieldName": "expand"
|
|
5293
|
+
},
|
|
5294
|
+
{
|
|
5295
|
+
"name": "size",
|
|
5296
|
+
"type": {
|
|
5297
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
5298
|
+
},
|
|
5299
|
+
"default": "\"m\"",
|
|
5300
|
+
"description": "The size of the dropdown. This affects the minimum and maximum inline-size\nof the dropdown.",
|
|
5301
|
+
"fieldName": "size"
|
|
5274
5302
|
}
|
|
5275
5303
|
],
|
|
5276
5304
|
"superclass": {
|
|
@@ -5302,7 +5330,7 @@
|
|
|
5302
5330
|
}
|
|
5303
5331
|
}
|
|
5304
5332
|
],
|
|
5305
|
-
"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- Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or commands, where an action is initiated based on the selection.\n- When organizing dropdown menu items, sort the list in a logical order by putting the most selected option at the top.\n- Use for a “more” menu, where the control contains an icon.\n- Use for user profiles, where the control is an avatar.\n- Use in conjunction with the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for
|
|
5333
|
+
"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- Dropdown menus are typically used when you have 5-15 items to choose from. They’re used for navigation or commands, where an action is initiated based on the selection.\n- When organizing dropdown menu items, sort the list in a logical order by putting the most selected option at the top.\n- Use for a “more” menu, where the control contains an icon.\n- Use for user profiles, where the control is an avatar.\n- Use in conjunction with the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for form inputs or selects, use the [select component](/components/select/) or [input component](/components/input/) instead.\n- Don’t use for hiding primary actions since they should be visible by default.\n- Don’t nest elements or components other than the [dropdown item](/components/dropdown-item/) and [dropdown group](/components/dropdown-group/) components. Consider using the [popout component](/components/popout/) when creating custom UI.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written 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\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, 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 dropdown items 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\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n"
|
|
5306
5334
|
},
|
|
5307
5335
|
{
|
|
5308
5336
|
"kind": "javascript-module",
|
|
@@ -8188,32 +8216,38 @@
|
|
|
8188
8216
|
},
|
|
8189
8217
|
{
|
|
8190
8218
|
"kind": "javascript-module",
|
|
8191
|
-
"path": "src/
|
|
8219
|
+
"path": "src/qrcode/Qrcode.ts",
|
|
8192
8220
|
"declarations": [
|
|
8193
8221
|
{
|
|
8194
8222
|
"kind": "class",
|
|
8195
|
-
"description": "
|
|
8196
|
-
"name": "
|
|
8223
|
+
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
8224
|
+
"name": "Qrcode",
|
|
8197
8225
|
"members": [
|
|
8198
8226
|
{
|
|
8199
8227
|
"kind": "field",
|
|
8200
|
-
"name": "
|
|
8228
|
+
"name": "canvas",
|
|
8201
8229
|
"type": {
|
|
8202
|
-
"text": "
|
|
8230
|
+
"text": "HTMLElement"
|
|
8203
8231
|
},
|
|
8204
|
-
"
|
|
8205
|
-
"attribute": "value",
|
|
8206
|
-
"reflects": true
|
|
8232
|
+
"privacy": "private"
|
|
8207
8233
|
},
|
|
8208
8234
|
{
|
|
8209
8235
|
"kind": "field",
|
|
8210
|
-
"name": "
|
|
8236
|
+
"name": "computed",
|
|
8211
8237
|
"type": {
|
|
8212
|
-
"text": "
|
|
8238
|
+
"text": "HTMLElement"
|
|
8213
8239
|
},
|
|
8214
|
-
"
|
|
8215
|
-
|
|
8216
|
-
|
|
8240
|
+
"privacy": "private"
|
|
8241
|
+
},
|
|
8242
|
+
{
|
|
8243
|
+
"kind": "field",
|
|
8244
|
+
"name": "value",
|
|
8245
|
+
"type": {
|
|
8246
|
+
"text": "string"
|
|
8247
|
+
},
|
|
8248
|
+
"default": "\"\"",
|
|
8249
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
8250
|
+
"attribute": "value",
|
|
8217
8251
|
"reflects": true
|
|
8218
8252
|
},
|
|
8219
8253
|
{
|
|
@@ -8222,167 +8256,8 @@
|
|
|
8222
8256
|
"type": {
|
|
8223
8257
|
"text": "string"
|
|
8224
8258
|
},
|
|
8225
|
-
"default": "\"
|
|
8226
|
-
"description": "
|
|
8227
|
-
"attribute": "label",
|
|
8228
|
-
"reflects": true
|
|
8229
|
-
},
|
|
8230
|
-
{
|
|
8231
|
-
"kind": "field",
|
|
8232
|
-
"name": "focusableRef",
|
|
8233
|
-
"privacy": "protected",
|
|
8234
|
-
"inheritedFrom": {
|
|
8235
|
-
"name": "FocusableMixin",
|
|
8236
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8237
|
-
}
|
|
8238
|
-
},
|
|
8239
|
-
{
|
|
8240
|
-
"kind": "method",
|
|
8241
|
-
"name": "focus",
|
|
8242
|
-
"parameters": [
|
|
8243
|
-
{
|
|
8244
|
-
"name": "options",
|
|
8245
|
-
"optional": true,
|
|
8246
|
-
"type": {
|
|
8247
|
-
"text": "FocusOptions"
|
|
8248
|
-
},
|
|
8249
|
-
"description": "An object which controls aspects of the focusing process."
|
|
8250
|
-
}
|
|
8251
|
-
],
|
|
8252
|
-
"description": "Programmatically move focus to the component.",
|
|
8253
|
-
"inheritedFrom": {
|
|
8254
|
-
"name": "FocusableMixin",
|
|
8255
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8256
|
-
}
|
|
8257
|
-
},
|
|
8258
|
-
{
|
|
8259
|
-
"kind": "method",
|
|
8260
|
-
"name": "blur",
|
|
8261
|
-
"description": "Programmatically remove focus from the component.",
|
|
8262
|
-
"inheritedFrom": {
|
|
8263
|
-
"name": "FocusableMixin",
|
|
8264
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8265
|
-
}
|
|
8266
|
-
},
|
|
8267
|
-
{
|
|
8268
|
-
"kind": "method",
|
|
8269
|
-
"name": "click",
|
|
8270
|
-
"description": "Programmatically simulates a click on the component.",
|
|
8271
|
-
"inheritedFrom": {
|
|
8272
|
-
"name": "FocusableMixin",
|
|
8273
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8274
|
-
}
|
|
8275
|
-
}
|
|
8276
|
-
],
|
|
8277
|
-
"attributes": [
|
|
8278
|
-
{
|
|
8279
|
-
"name": "value",
|
|
8280
|
-
"type": {
|
|
8281
|
-
"text": "number | undefined"
|
|
8282
|
-
},
|
|
8283
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
8284
|
-
"fieldName": "value"
|
|
8285
|
-
},
|
|
8286
|
-
{
|
|
8287
|
-
"name": "max",
|
|
8288
|
-
"type": {
|
|
8289
|
-
"text": "number"
|
|
8290
|
-
},
|
|
8291
|
-
"default": "100",
|
|
8292
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
8293
|
-
"fieldName": "max"
|
|
8294
|
-
},
|
|
8295
|
-
{
|
|
8296
|
-
"name": "label",
|
|
8297
|
-
"type": {
|
|
8298
|
-
"text": "string"
|
|
8299
|
-
},
|
|
8300
|
-
"default": "\"Current progress\"",
|
|
8301
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
8302
|
-
"fieldName": "label"
|
|
8303
|
-
}
|
|
8304
|
-
],
|
|
8305
|
-
"mixins": [
|
|
8306
|
-
{
|
|
8307
|
-
"name": "FocusableMixin",
|
|
8308
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8309
|
-
}
|
|
8310
|
-
],
|
|
8311
|
-
"superclass": {
|
|
8312
|
-
"name": "LitElement",
|
|
8313
|
-
"package": "lit"
|
|
8314
|
-
},
|
|
8315
|
-
"status": "ready",
|
|
8316
|
-
"category": "feedback",
|
|
8317
|
-
"displayName": null,
|
|
8318
|
-
"tagName": "nord-progress-bar",
|
|
8319
|
-
"customElement": true
|
|
8320
|
-
}
|
|
8321
|
-
],
|
|
8322
|
-
"exports": [
|
|
8323
|
-
{
|
|
8324
|
-
"kind": "js",
|
|
8325
|
-
"name": "default",
|
|
8326
|
-
"declaration": {
|
|
8327
|
-
"name": "ProgressBar",
|
|
8328
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
8329
|
-
}
|
|
8330
|
-
},
|
|
8331
|
-
{
|
|
8332
|
-
"kind": "custom-element-definition",
|
|
8333
|
-
"name": "nord-progress-bar",
|
|
8334
|
-
"declaration": {
|
|
8335
|
-
"name": "ProgressBar",
|
|
8336
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
8337
|
-
}
|
|
8338
|
-
}
|
|
8339
|
-
],
|
|
8340
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n"
|
|
8341
|
-
},
|
|
8342
|
-
{
|
|
8343
|
-
"kind": "javascript-module",
|
|
8344
|
-
"path": "src/qrcode/Qrcode.ts",
|
|
8345
|
-
"declarations": [
|
|
8346
|
-
{
|
|
8347
|
-
"kind": "class",
|
|
8348
|
-
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
8349
|
-
"name": "Qrcode",
|
|
8350
|
-
"members": [
|
|
8351
|
-
{
|
|
8352
|
-
"kind": "field",
|
|
8353
|
-
"name": "canvas",
|
|
8354
|
-
"type": {
|
|
8355
|
-
"text": "HTMLElement"
|
|
8356
|
-
},
|
|
8357
|
-
"privacy": "private"
|
|
8358
|
-
},
|
|
8359
|
-
{
|
|
8360
|
-
"kind": "field",
|
|
8361
|
-
"name": "computed",
|
|
8362
|
-
"type": {
|
|
8363
|
-
"text": "HTMLElement"
|
|
8364
|
-
},
|
|
8365
|
-
"privacy": "private"
|
|
8366
|
-
},
|
|
8367
|
-
{
|
|
8368
|
-
"kind": "field",
|
|
8369
|
-
"name": "value",
|
|
8370
|
-
"type": {
|
|
8371
|
-
"text": "string"
|
|
8372
|
-
},
|
|
8373
|
-
"default": "\"\"",
|
|
8374
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
8375
|
-
"attribute": "value",
|
|
8376
|
-
"reflects": true
|
|
8377
|
-
},
|
|
8378
|
-
{
|
|
8379
|
-
"kind": "field",
|
|
8380
|
-
"name": "label",
|
|
8381
|
-
"type": {
|
|
8382
|
-
"text": "string"
|
|
8383
|
-
},
|
|
8384
|
-
"default": "\"\"",
|
|
8385
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
8259
|
+
"default": "\"\"",
|
|
8260
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
8386
8261
|
"attribute": "label",
|
|
8387
8262
|
"reflects": true
|
|
8388
8263
|
},
|
|
@@ -8525,100 +8400,253 @@
|
|
|
8525
8400
|
},
|
|
8526
8401
|
{
|
|
8527
8402
|
"kind": "javascript-module",
|
|
8528
|
-
"path": "src/
|
|
8403
|
+
"path": "src/progress-bar/ProgressBar.ts",
|
|
8529
8404
|
"declarations": [
|
|
8530
8405
|
{
|
|
8531
8406
|
"kind": "class",
|
|
8532
|
-
"description": "
|
|
8533
|
-
"name": "
|
|
8534
|
-
"slots": [
|
|
8535
|
-
{
|
|
8536
|
-
"description": "Use when a label requires more than plain text.",
|
|
8537
|
-
"name": "label"
|
|
8538
|
-
},
|
|
8539
|
-
{
|
|
8540
|
-
"description": "Optional slot that holds hint text for the input.",
|
|
8541
|
-
"name": "hint"
|
|
8542
|
-
},
|
|
8543
|
-
{
|
|
8544
|
-
"description": "Optional slot that holds error text for the input.",
|
|
8545
|
-
"name": "error"
|
|
8546
|
-
}
|
|
8547
|
-
],
|
|
8407
|
+
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
8408
|
+
"name": "ProgressBar",
|
|
8548
8409
|
"members": [
|
|
8549
8410
|
{
|
|
8550
8411
|
"kind": "field",
|
|
8551
|
-
"name": "
|
|
8412
|
+
"name": "value",
|
|
8552
8413
|
"type": {
|
|
8553
|
-
"text": "
|
|
8414
|
+
"text": "number | undefined"
|
|
8554
8415
|
},
|
|
8555
|
-
"
|
|
8556
|
-
"
|
|
8557
|
-
"
|
|
8558
|
-
"name": "FormAssociatedMixin",
|
|
8559
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8560
|
-
}
|
|
8416
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
8417
|
+
"attribute": "value",
|
|
8418
|
+
"reflects": true
|
|
8561
8419
|
},
|
|
8562
8420
|
{
|
|
8563
8421
|
"kind": "field",
|
|
8564
|
-
"name": "
|
|
8422
|
+
"name": "max",
|
|
8565
8423
|
"type": {
|
|
8566
|
-
"text": "
|
|
8424
|
+
"text": "number"
|
|
8567
8425
|
},
|
|
8568
|
-
"
|
|
8569
|
-
"
|
|
8570
|
-
"
|
|
8571
|
-
|
|
8572
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8573
|
-
}
|
|
8426
|
+
"default": "100",
|
|
8427
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
8428
|
+
"attribute": "max",
|
|
8429
|
+
"reflects": true
|
|
8574
8430
|
},
|
|
8575
8431
|
{
|
|
8576
8432
|
"kind": "field",
|
|
8577
|
-
"name": "
|
|
8433
|
+
"name": "label",
|
|
8578
8434
|
"type": {
|
|
8579
8435
|
"text": "string"
|
|
8580
8436
|
},
|
|
8581
|
-
"
|
|
8582
|
-
"
|
|
8583
|
-
"
|
|
8584
|
-
|
|
8585
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8586
|
-
}
|
|
8437
|
+
"default": "\"Current progress\"",
|
|
8438
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
8439
|
+
"attribute": "label",
|
|
8440
|
+
"reflects": true
|
|
8587
8441
|
},
|
|
8588
8442
|
{
|
|
8589
8443
|
"kind": "field",
|
|
8590
|
-
"name": "
|
|
8444
|
+
"name": "focusableRef",
|
|
8591
8445
|
"privacy": "protected",
|
|
8592
|
-
"default": "new LightSlotController(this, {\n slotName: \"hint\",\n render: () => (this.hint ? html`<div slot=\"hint-internal\" id=${this.hintId}>${this.hint}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
8593
|
-
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
8594
8446
|
"inheritedFrom": {
|
|
8595
|
-
"name": "
|
|
8596
|
-
"module": "src/common/mixins/
|
|
8447
|
+
"name": "FocusableMixin",
|
|
8448
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8597
8449
|
}
|
|
8598
8450
|
},
|
|
8599
8451
|
{
|
|
8600
|
-
"kind": "
|
|
8601
|
-
"name": "
|
|
8602
|
-
"
|
|
8603
|
-
|
|
8452
|
+
"kind": "method",
|
|
8453
|
+
"name": "focus",
|
|
8454
|
+
"parameters": [
|
|
8455
|
+
{
|
|
8456
|
+
"name": "options",
|
|
8457
|
+
"optional": true,
|
|
8458
|
+
"type": {
|
|
8459
|
+
"text": "FocusOptions"
|
|
8460
|
+
},
|
|
8461
|
+
"description": "An object which controls aspects of the focusing process."
|
|
8462
|
+
}
|
|
8463
|
+
],
|
|
8464
|
+
"description": "Programmatically move focus to the component.",
|
|
8604
8465
|
"inheritedFrom": {
|
|
8605
|
-
"name": "
|
|
8606
|
-
"module": "src/common/mixins/
|
|
8466
|
+
"name": "FocusableMixin",
|
|
8467
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8607
8468
|
}
|
|
8608
8469
|
},
|
|
8609
8470
|
{
|
|
8610
|
-
"kind": "
|
|
8611
|
-
"name": "
|
|
8612
|
-
"
|
|
8613
|
-
"default": "new LightSlotController(this, {\n slotName: \"error\",\n render: () => (this.error ? html`<div slot=\"error-internal\" id=${this.errorId}>${this.error}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
8471
|
+
"kind": "method",
|
|
8472
|
+
"name": "blur",
|
|
8473
|
+
"description": "Programmatically remove focus from the component.",
|
|
8614
8474
|
"inheritedFrom": {
|
|
8615
|
-
"name": "
|
|
8616
|
-
"module": "src/common/mixins/
|
|
8475
|
+
"name": "FocusableMixin",
|
|
8476
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8617
8477
|
}
|
|
8618
8478
|
},
|
|
8619
8479
|
{
|
|
8620
|
-
"kind": "
|
|
8621
|
-
"name": "
|
|
8480
|
+
"kind": "method",
|
|
8481
|
+
"name": "click",
|
|
8482
|
+
"description": "Programmatically simulates a click on the component.",
|
|
8483
|
+
"inheritedFrom": {
|
|
8484
|
+
"name": "FocusableMixin",
|
|
8485
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
],
|
|
8489
|
+
"attributes": [
|
|
8490
|
+
{
|
|
8491
|
+
"name": "value",
|
|
8492
|
+
"type": {
|
|
8493
|
+
"text": "number | undefined"
|
|
8494
|
+
},
|
|
8495
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
8496
|
+
"fieldName": "value"
|
|
8497
|
+
},
|
|
8498
|
+
{
|
|
8499
|
+
"name": "max",
|
|
8500
|
+
"type": {
|
|
8501
|
+
"text": "number"
|
|
8502
|
+
},
|
|
8503
|
+
"default": "100",
|
|
8504
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
8505
|
+
"fieldName": "max"
|
|
8506
|
+
},
|
|
8507
|
+
{
|
|
8508
|
+
"name": "label",
|
|
8509
|
+
"type": {
|
|
8510
|
+
"text": "string"
|
|
8511
|
+
},
|
|
8512
|
+
"default": "\"Current progress\"",
|
|
8513
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
8514
|
+
"fieldName": "label"
|
|
8515
|
+
}
|
|
8516
|
+
],
|
|
8517
|
+
"mixins": [
|
|
8518
|
+
{
|
|
8519
|
+
"name": "FocusableMixin",
|
|
8520
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8521
|
+
}
|
|
8522
|
+
],
|
|
8523
|
+
"superclass": {
|
|
8524
|
+
"name": "LitElement",
|
|
8525
|
+
"package": "lit"
|
|
8526
|
+
},
|
|
8527
|
+
"status": "ready",
|
|
8528
|
+
"category": "feedback",
|
|
8529
|
+
"displayName": null,
|
|
8530
|
+
"tagName": "nord-progress-bar",
|
|
8531
|
+
"customElement": true
|
|
8532
|
+
}
|
|
8533
|
+
],
|
|
8534
|
+
"exports": [
|
|
8535
|
+
{
|
|
8536
|
+
"kind": "js",
|
|
8537
|
+
"name": "default",
|
|
8538
|
+
"declaration": {
|
|
8539
|
+
"name": "ProgressBar",
|
|
8540
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
8541
|
+
}
|
|
8542
|
+
},
|
|
8543
|
+
{
|
|
8544
|
+
"kind": "custom-element-definition",
|
|
8545
|
+
"name": "nord-progress-bar",
|
|
8546
|
+
"declaration": {
|
|
8547
|
+
"name": "ProgressBar",
|
|
8548
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
8549
|
+
}
|
|
8550
|
+
}
|
|
8551
|
+
],
|
|
8552
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n"
|
|
8553
|
+
},
|
|
8554
|
+
{
|
|
8555
|
+
"kind": "javascript-module",
|
|
8556
|
+
"path": "src/radio/Radio.ts",
|
|
8557
|
+
"declarations": [
|
|
8558
|
+
{
|
|
8559
|
+
"kind": "class",
|
|
8560
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
8561
|
+
"name": "Radio",
|
|
8562
|
+
"slots": [
|
|
8563
|
+
{
|
|
8564
|
+
"description": "Use when a label requires more than plain text.",
|
|
8565
|
+
"name": "label"
|
|
8566
|
+
},
|
|
8567
|
+
{
|
|
8568
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
8569
|
+
"name": "hint"
|
|
8570
|
+
},
|
|
8571
|
+
{
|
|
8572
|
+
"description": "Optional slot that holds error text for the input.",
|
|
8573
|
+
"name": "error"
|
|
8574
|
+
}
|
|
8575
|
+
],
|
|
8576
|
+
"members": [
|
|
8577
|
+
{
|
|
8578
|
+
"kind": "field",
|
|
8579
|
+
"name": "inputId",
|
|
8580
|
+
"type": {
|
|
8581
|
+
"text": "string"
|
|
8582
|
+
},
|
|
8583
|
+
"privacy": "protected",
|
|
8584
|
+
"default": "\"input\"",
|
|
8585
|
+
"inheritedFrom": {
|
|
8586
|
+
"name": "FormAssociatedMixin",
|
|
8587
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "field",
|
|
8592
|
+
"name": "hintId",
|
|
8593
|
+
"type": {
|
|
8594
|
+
"text": "string"
|
|
8595
|
+
},
|
|
8596
|
+
"privacy": "protected",
|
|
8597
|
+
"default": "\"hint\"",
|
|
8598
|
+
"inheritedFrom": {
|
|
8599
|
+
"name": "FormAssociatedMixin",
|
|
8600
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8601
|
+
}
|
|
8602
|
+
},
|
|
8603
|
+
{
|
|
8604
|
+
"kind": "field",
|
|
8605
|
+
"name": "errorId",
|
|
8606
|
+
"type": {
|
|
8607
|
+
"text": "string"
|
|
8608
|
+
},
|
|
8609
|
+
"privacy": "protected",
|
|
8610
|
+
"default": "\"error\"",
|
|
8611
|
+
"inheritedFrom": {
|
|
8612
|
+
"name": "FormAssociatedMixin",
|
|
8613
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8614
|
+
}
|
|
8615
|
+
},
|
|
8616
|
+
{
|
|
8617
|
+
"kind": "field",
|
|
8618
|
+
"name": "hintSlot",
|
|
8619
|
+
"privacy": "protected",
|
|
8620
|
+
"default": "new LightSlotController(this, {\n slotName: \"hint\",\n render: () => (this.hint ? html`<div slot=\"hint-internal\" id=${this.hintId}>${this.hint}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
8621
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
8622
|
+
"inheritedFrom": {
|
|
8623
|
+
"name": "FormAssociatedMixin",
|
|
8624
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8625
|
+
}
|
|
8626
|
+
},
|
|
8627
|
+
{
|
|
8628
|
+
"kind": "field",
|
|
8629
|
+
"name": "labelSlot",
|
|
8630
|
+
"privacy": "protected",
|
|
8631
|
+
"default": "new LightSlotController(this, {\n slotName: \"label\",\n render: () => (this.label ? html`<label slot=\"label-internal\" for=${this.inputId}>${this.label}</label>` : nothing),\n syncLightDom: element => {\n if (!isLabel(element)) {\n // eslint-disable-next-line no-console\n console.warn(`NORD: Only <label> elements should be placed in radio's \"label\" slot`)\n } else {\n element.htmlFor = this.inputId\n }\n },\n })",
|
|
8632
|
+
"inheritedFrom": {
|
|
8633
|
+
"name": "FormAssociatedMixin",
|
|
8634
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8635
|
+
}
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
"kind": "field",
|
|
8639
|
+
"name": "errorSlot",
|
|
8640
|
+
"privacy": "protected",
|
|
8641
|
+
"default": "new LightSlotController(this, {\n slotName: \"error\",\n render: () => (this.error ? html`<div slot=\"error-internal\" id=${this.errorId}>${this.error}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
8642
|
+
"inheritedFrom": {
|
|
8643
|
+
"name": "FormAssociatedMixin",
|
|
8644
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8645
|
+
}
|
|
8646
|
+
},
|
|
8647
|
+
{
|
|
8648
|
+
"kind": "field",
|
|
8649
|
+
"name": "inputSlot",
|
|
8622
8650
|
"privacy": "protected",
|
|
8623
8651
|
"default": "new LightDomController(this, {\n render: () =>\n html`\n <input\n slot=\"input\"\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n ${ref(this.focusableRef)}\n class=\"n-input\"\n id=${this.inputId}\n type=\"radio\"\n name=${cond(this.name)}\n .value=${cond(this.value)}\n .checked=${this.checked}\n ?disabled=${this.disabled}\n ?required=${this.required}\n aria-describedby=${cond(this.getDescribedBy())}\n aria-invalid=${cond(this.getInvalid())}\n form=${cond(this.getAttribute(\"form\") || undefined)}\n />\n `,\n })"
|
|
8624
8652
|
},
|
|
@@ -10041,9 +10069,9 @@
|
|
|
10041
10069
|
},
|
|
10042
10070
|
"default": "false",
|
|
10043
10071
|
"description": "This property is deprecated and will be removed in a future version. We recommend using standard [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) over this property. Please see the [updated usage example](/components/stack/?example=using+responsive+media+query).",
|
|
10072
|
+
"deprecated": true,
|
|
10044
10073
|
"attribute": "responsive",
|
|
10045
|
-
"reflects": true
|
|
10046
|
-
"deprecated": true
|
|
10074
|
+
"reflects": true
|
|
10047
10075
|
},
|
|
10048
10076
|
{
|
|
10049
10077
|
"kind": "field",
|
|
@@ -10102,6 +10130,7 @@
|
|
|
10102
10130
|
},
|
|
10103
10131
|
"default": "false",
|
|
10104
10132
|
"description": "This property is deprecated and will be removed in a future version. We recommend using standard [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) over this property. Please see the [updated usage example](/components/stack/?example=using+responsive+media+query).",
|
|
10133
|
+
"deprecated": "true",
|
|
10105
10134
|
"fieldName": "responsive"
|
|
10106
10135
|
},
|
|
10107
10136
|
{
|
|
@@ -12519,211 +12548,340 @@
|
|
|
12519
12548
|
},
|
|
12520
12549
|
{
|
|
12521
12550
|
"kind": "javascript-module",
|
|
12522
|
-
"path": "src/common/
|
|
12551
|
+
"path": "src/common/controllers/DirectionController.ts",
|
|
12523
12552
|
"declarations": [
|
|
12524
12553
|
{
|
|
12525
|
-
"kind": "
|
|
12526
|
-
"
|
|
12527
|
-
"
|
|
12528
|
-
|
|
12529
|
-
"text": "typeof value | typeof nothing"
|
|
12530
|
-
}
|
|
12531
|
-
},
|
|
12532
|
-
"parameters": [
|
|
12554
|
+
"kind": "class",
|
|
12555
|
+
"description": "",
|
|
12556
|
+
"name": "DirectionController",
|
|
12557
|
+
"members": [
|
|
12533
12558
|
{
|
|
12534
|
-
"
|
|
12535
|
-
"
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
"description": "if value is truthy, return it, otherwise return nothing"
|
|
12541
|
-
},
|
|
12542
|
-
{
|
|
12543
|
-
"kind": "function",
|
|
12544
|
-
"name": "cond",
|
|
12545
|
-
"return": {
|
|
12546
|
-
"type": {
|
|
12547
|
-
"text": "typeof trueCase | typeof nothing"
|
|
12548
|
-
}
|
|
12549
|
-
},
|
|
12550
|
-
"parameters": [
|
|
12559
|
+
"kind": "field",
|
|
12560
|
+
"name": "hosts",
|
|
12561
|
+
"privacy": "private",
|
|
12562
|
+
"static": true,
|
|
12563
|
+
"default": "new Set<ReactiveControllerHost>()"
|
|
12564
|
+
},
|
|
12551
12565
|
{
|
|
12552
|
-
"
|
|
12566
|
+
"kind": "field",
|
|
12567
|
+
"name": "observer",
|
|
12553
12568
|
"type": {
|
|
12554
|
-
"text": "
|
|
12555
|
-
}
|
|
12569
|
+
"text": "MutationObserver | undefined"
|
|
12570
|
+
},
|
|
12571
|
+
"privacy": "private",
|
|
12572
|
+
"static": true
|
|
12556
12573
|
},
|
|
12557
12574
|
{
|
|
12558
|
-
"
|
|
12575
|
+
"kind": "field",
|
|
12576
|
+
"name": "dir",
|
|
12559
12577
|
"type": {
|
|
12560
|
-
"text": "
|
|
12578
|
+
"text": "WritingDirection"
|
|
12561
12579
|
}
|
|
12562
|
-
}
|
|
12563
|
-
],
|
|
12564
|
-
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
12565
|
-
},
|
|
12566
|
-
{
|
|
12567
|
-
"kind": "function",
|
|
12568
|
-
"name": "cond",
|
|
12569
|
-
"return": {
|
|
12570
|
-
"type": {
|
|
12571
|
-
"text": "typeof trueCase"
|
|
12572
|
-
}
|
|
12573
|
-
},
|
|
12574
|
-
"parameters": [
|
|
12580
|
+
},
|
|
12575
12581
|
{
|
|
12576
|
-
"
|
|
12577
|
-
"
|
|
12578
|
-
"text": "true"
|
|
12579
|
-
}
|
|
12582
|
+
"kind": "field",
|
|
12583
|
+
"name": "isLTR"
|
|
12580
12584
|
},
|
|
12581
12585
|
{
|
|
12582
|
-
"
|
|
12583
|
-
"
|
|
12584
|
-
|
|
12585
|
-
}
|
|
12586
|
-
}
|
|
12587
|
-
],
|
|
12588
|
-
"description": "condition is true, so always return trueCase"
|
|
12589
|
-
},
|
|
12590
|
-
{
|
|
12591
|
-
"kind": "function",
|
|
12592
|
-
"name": "cond",
|
|
12593
|
-
"return": {
|
|
12594
|
-
"type": {
|
|
12595
|
-
"text": "typeof nothing"
|
|
12596
|
-
}
|
|
12597
|
-
},
|
|
12598
|
-
"parameters": [
|
|
12586
|
+
"kind": "field",
|
|
12587
|
+
"name": "isRTL"
|
|
12588
|
+
},
|
|
12599
12589
|
{
|
|
12600
|
-
"
|
|
12601
|
-
"
|
|
12602
|
-
"text": "false"
|
|
12603
|
-
}
|
|
12590
|
+
"kind": "method",
|
|
12591
|
+
"name": "hostConnected"
|
|
12604
12592
|
},
|
|
12605
12593
|
{
|
|
12606
|
-
"
|
|
12607
|
-
"
|
|
12608
|
-
|
|
12609
|
-
|
|
12594
|
+
"kind": "method",
|
|
12595
|
+
"name": "hostDisconnected"
|
|
12596
|
+
},
|
|
12597
|
+
{
|
|
12598
|
+
"kind": "method",
|
|
12599
|
+
"name": "observe",
|
|
12600
|
+
"privacy": "private",
|
|
12601
|
+
"static": true
|
|
12610
12602
|
}
|
|
12611
|
-
]
|
|
12612
|
-
|
|
12613
|
-
|
|
12603
|
+
]
|
|
12604
|
+
}
|
|
12605
|
+
],
|
|
12606
|
+
"exports": [
|
|
12614
12607
|
{
|
|
12615
|
-
"kind": "
|
|
12616
|
-
"name": "
|
|
12617
|
-
"
|
|
12618
|
-
"
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12608
|
+
"kind": "js",
|
|
12609
|
+
"name": "DirectionController",
|
|
12610
|
+
"declaration": {
|
|
12611
|
+
"name": "DirectionController",
|
|
12612
|
+
"module": "src/common/controllers/DirectionController.ts"
|
|
12613
|
+
}
|
|
12614
|
+
}
|
|
12615
|
+
]
|
|
12616
|
+
},
|
|
12617
|
+
{
|
|
12618
|
+
"kind": "javascript-module",
|
|
12619
|
+
"path": "src/common/controllers/EventController.ts",
|
|
12620
|
+
"declarations": [
|
|
12621
|
+
{
|
|
12622
|
+
"kind": "class",
|
|
12623
|
+
"description": "",
|
|
12624
|
+
"name": "EventController",
|
|
12625
|
+
"members": [
|
|
12623
12626
|
{
|
|
12624
|
-
"
|
|
12627
|
+
"kind": "field",
|
|
12628
|
+
"name": "listeners",
|
|
12625
12629
|
"type": {
|
|
12626
|
-
"text": "
|
|
12627
|
-
}
|
|
12630
|
+
"text": "Array<() => void>"
|
|
12631
|
+
},
|
|
12632
|
+
"privacy": "private",
|
|
12633
|
+
"default": "[]"
|
|
12628
12634
|
},
|
|
12629
12635
|
{
|
|
12630
|
-
"
|
|
12631
|
-
"
|
|
12632
|
-
"text": "any"
|
|
12633
|
-
}
|
|
12636
|
+
"kind": "method",
|
|
12637
|
+
"name": "hostDisconnected"
|
|
12634
12638
|
},
|
|
12635
12639
|
{
|
|
12636
|
-
"
|
|
12637
|
-
"
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12640
|
+
"kind": "method",
|
|
12641
|
+
"name": "listen",
|
|
12642
|
+
"return": {
|
|
12643
|
+
"type": {
|
|
12644
|
+
"text": "void"
|
|
12645
|
+
}
|
|
12646
|
+
},
|
|
12647
|
+
"parameters": [
|
|
12648
|
+
{
|
|
12649
|
+
"name": "window",
|
|
12650
|
+
"type": {
|
|
12651
|
+
"text": "Window"
|
|
12652
|
+
}
|
|
12653
|
+
},
|
|
12654
|
+
{
|
|
12655
|
+
"name": "type",
|
|
12656
|
+
"type": {
|
|
12657
|
+
"text": "K"
|
|
12658
|
+
}
|
|
12659
|
+
},
|
|
12660
|
+
{
|
|
12661
|
+
"name": "listener",
|
|
12662
|
+
"type": {
|
|
12663
|
+
"text": "(this: Window, ev: WindowEventMap[K]) => any"
|
|
12664
|
+
}
|
|
12665
|
+
},
|
|
12666
|
+
{
|
|
12667
|
+
"name": "options",
|
|
12668
|
+
"optional": true,
|
|
12669
|
+
"type": {
|
|
12670
|
+
"text": "boolean | AddEventListenerOptions"
|
|
12671
|
+
}
|
|
12672
|
+
}
|
|
12673
|
+
]
|
|
12674
|
+
},
|
|
12653
12675
|
{
|
|
12654
|
-
"
|
|
12655
|
-
"
|
|
12656
|
-
|
|
12657
|
-
|
|
12676
|
+
"kind": "method",
|
|
12677
|
+
"name": "listen",
|
|
12678
|
+
"return": {
|
|
12679
|
+
"type": {
|
|
12680
|
+
"text": "void"
|
|
12681
|
+
}
|
|
12682
|
+
},
|
|
12683
|
+
"parameters": [
|
|
12684
|
+
{
|
|
12685
|
+
"name": "document",
|
|
12686
|
+
"type": {
|
|
12687
|
+
"text": "Document"
|
|
12688
|
+
}
|
|
12689
|
+
},
|
|
12690
|
+
{
|
|
12691
|
+
"name": "type",
|
|
12692
|
+
"type": {
|
|
12693
|
+
"text": "K"
|
|
12694
|
+
}
|
|
12695
|
+
},
|
|
12696
|
+
{
|
|
12697
|
+
"name": "listener",
|
|
12698
|
+
"type": {
|
|
12699
|
+
"text": "(this: Document, ev: DocumentEventMap[K]) => any"
|
|
12700
|
+
}
|
|
12701
|
+
},
|
|
12702
|
+
{
|
|
12703
|
+
"name": "options",
|
|
12704
|
+
"optional": true,
|
|
12705
|
+
"type": {
|
|
12706
|
+
"text": "boolean | AddEventListenerOptions"
|
|
12707
|
+
}
|
|
12708
|
+
}
|
|
12709
|
+
]
|
|
12658
12710
|
},
|
|
12659
12711
|
{
|
|
12660
|
-
"
|
|
12661
|
-
"
|
|
12662
|
-
|
|
12663
|
-
|
|
12712
|
+
"kind": "method",
|
|
12713
|
+
"name": "listen",
|
|
12714
|
+
"return": {
|
|
12715
|
+
"type": {
|
|
12716
|
+
"text": "void"
|
|
12717
|
+
}
|
|
12718
|
+
},
|
|
12719
|
+
"parameters": [
|
|
12720
|
+
{
|
|
12721
|
+
"name": "element",
|
|
12722
|
+
"type": {
|
|
12723
|
+
"text": "HTMLElement"
|
|
12724
|
+
}
|
|
12725
|
+
},
|
|
12726
|
+
{
|
|
12727
|
+
"name": "type",
|
|
12728
|
+
"type": {
|
|
12729
|
+
"text": "K"
|
|
12730
|
+
}
|
|
12731
|
+
},
|
|
12732
|
+
{
|
|
12733
|
+
"name": "listener",
|
|
12734
|
+
"type": {
|
|
12735
|
+
"text": "(this: HTMLElement, ev: HTMLElementEventMap[K]) => any"
|
|
12736
|
+
}
|
|
12737
|
+
},
|
|
12738
|
+
{
|
|
12739
|
+
"name": "options",
|
|
12740
|
+
"optional": true,
|
|
12741
|
+
"type": {
|
|
12742
|
+
"text": "boolean | AddEventListenerOptions"
|
|
12743
|
+
}
|
|
12744
|
+
}
|
|
12745
|
+
]
|
|
12664
12746
|
},
|
|
12665
12747
|
{
|
|
12666
|
-
"
|
|
12667
|
-
"
|
|
12668
|
-
|
|
12669
|
-
|
|
12748
|
+
"kind": "method",
|
|
12749
|
+
"name": "listen",
|
|
12750
|
+
"return": {
|
|
12751
|
+
"type": {
|
|
12752
|
+
"text": "void"
|
|
12753
|
+
}
|
|
12754
|
+
},
|
|
12755
|
+
"parameters": [
|
|
12756
|
+
{
|
|
12757
|
+
"name": "element",
|
|
12758
|
+
"type": {
|
|
12759
|
+
"text": "ShadowRoot"
|
|
12760
|
+
}
|
|
12761
|
+
},
|
|
12762
|
+
{
|
|
12763
|
+
"name": "type",
|
|
12764
|
+
"type": {
|
|
12765
|
+
"text": "K"
|
|
12766
|
+
}
|
|
12767
|
+
},
|
|
12768
|
+
{
|
|
12769
|
+
"name": "listener",
|
|
12770
|
+
"type": {
|
|
12771
|
+
"text": "(this: ShadowRoot, ev: ShadowRootEventMap[K]) => any"
|
|
12772
|
+
}
|
|
12773
|
+
},
|
|
12774
|
+
{
|
|
12775
|
+
"name": "options",
|
|
12776
|
+
"optional": true,
|
|
12777
|
+
"type": {
|
|
12778
|
+
"text": "boolean | AddEventListenerOptions"
|
|
12779
|
+
}
|
|
12780
|
+
}
|
|
12781
|
+
]
|
|
12782
|
+
},
|
|
12783
|
+
{
|
|
12784
|
+
"kind": "method",
|
|
12785
|
+
"name": "listen",
|
|
12786
|
+
"parameters": [
|
|
12787
|
+
{
|
|
12788
|
+
"name": "element",
|
|
12789
|
+
"type": {
|
|
12790
|
+
"text": "Window | Document | HTMLElement | ShadowRoot"
|
|
12791
|
+
}
|
|
12792
|
+
},
|
|
12793
|
+
{
|
|
12794
|
+
"name": "type",
|
|
12795
|
+
"type": {
|
|
12796
|
+
"text": "string"
|
|
12797
|
+
}
|
|
12798
|
+
},
|
|
12799
|
+
{
|
|
12800
|
+
"name": "listener",
|
|
12801
|
+
"type": {
|
|
12802
|
+
"text": "(ev: any) => any"
|
|
12803
|
+
}
|
|
12804
|
+
},
|
|
12805
|
+
{
|
|
12806
|
+
"name": "options",
|
|
12807
|
+
"optional": true,
|
|
12808
|
+
"type": {
|
|
12809
|
+
"text": "boolean | AddEventListenerOptions"
|
|
12810
|
+
}
|
|
12811
|
+
}
|
|
12812
|
+
]
|
|
12670
12813
|
}
|
|
12671
|
-
]
|
|
12672
|
-
|
|
12673
|
-
|
|
12814
|
+
]
|
|
12815
|
+
}
|
|
12816
|
+
],
|
|
12817
|
+
"exports": [
|
|
12674
12818
|
{
|
|
12675
|
-
"kind": "
|
|
12676
|
-
"name": "
|
|
12677
|
-
"
|
|
12678
|
-
"
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12819
|
+
"kind": "js",
|
|
12820
|
+
"name": "EventController",
|
|
12821
|
+
"declaration": {
|
|
12822
|
+
"name": "EventController",
|
|
12823
|
+
"module": "src/common/controllers/EventController.ts"
|
|
12824
|
+
}
|
|
12825
|
+
}
|
|
12826
|
+
]
|
|
12827
|
+
},
|
|
12828
|
+
{
|
|
12829
|
+
"kind": "javascript-module",
|
|
12830
|
+
"path": "src/common/controllers/FocusTrapController.ts",
|
|
12831
|
+
"declarations": [
|
|
12832
|
+
{
|
|
12833
|
+
"kind": "class",
|
|
12834
|
+
"description": "",
|
|
12835
|
+
"name": "FocusTrapController",
|
|
12836
|
+
"members": [
|
|
12683
12837
|
{
|
|
12684
|
-
"
|
|
12838
|
+
"kind": "field",
|
|
12839
|
+
"name": "lastScrollY",
|
|
12685
12840
|
"type": {
|
|
12686
|
-
"text": "
|
|
12687
|
-
}
|
|
12841
|
+
"text": "number"
|
|
12842
|
+
},
|
|
12843
|
+
"privacy": "private",
|
|
12844
|
+
"default": "0"
|
|
12688
12845
|
},
|
|
12689
12846
|
{
|
|
12690
|
-
"
|
|
12847
|
+
"kind": "field",
|
|
12848
|
+
"name": "lastFocused",
|
|
12691
12849
|
"type": {
|
|
12692
|
-
"text": "
|
|
12693
|
-
}
|
|
12850
|
+
"text": "HTMLElement | undefined"
|
|
12851
|
+
},
|
|
12852
|
+
"privacy": "private"
|
|
12694
12853
|
},
|
|
12695
12854
|
{
|
|
12696
|
-
"
|
|
12697
|
-
"
|
|
12698
|
-
|
|
12699
|
-
}
|
|
12700
|
-
}
|
|
12701
|
-
],
|
|
12702
|
-
"description": "condition is false, so always return falseCase"
|
|
12703
|
-
},
|
|
12704
|
-
{
|
|
12705
|
-
"kind": "function",
|
|
12706
|
-
"name": "cond",
|
|
12707
|
-
"parameters": [
|
|
12855
|
+
"kind": "method",
|
|
12856
|
+
"name": "hostDisconnected"
|
|
12857
|
+
},
|
|
12708
12858
|
{
|
|
12709
|
-
"
|
|
12710
|
-
"
|
|
12711
|
-
"text": "unknown"
|
|
12712
|
-
}
|
|
12859
|
+
"kind": "method",
|
|
12860
|
+
"name": "trap"
|
|
12713
12861
|
},
|
|
12714
12862
|
{
|
|
12715
|
-
"
|
|
12716
|
-
"
|
|
12717
|
-
"type": {
|
|
12718
|
-
"text": "any"
|
|
12719
|
-
}
|
|
12863
|
+
"kind": "method",
|
|
12864
|
+
"name": "release"
|
|
12720
12865
|
},
|
|
12721
12866
|
{
|
|
12722
|
-
"
|
|
12723
|
-
"
|
|
12724
|
-
"
|
|
12725
|
-
|
|
12726
|
-
|
|
12867
|
+
"kind": "field",
|
|
12868
|
+
"name": "handleFocusOut",
|
|
12869
|
+
"privacy": "private"
|
|
12870
|
+
},
|
|
12871
|
+
{
|
|
12872
|
+
"kind": "field",
|
|
12873
|
+
"name": "handleFocusIn",
|
|
12874
|
+
"privacy": "private"
|
|
12875
|
+
},
|
|
12876
|
+
{
|
|
12877
|
+
"kind": "method",
|
|
12878
|
+
"name": "recaptureFocus",
|
|
12879
|
+
"privacy": "private"
|
|
12880
|
+
},
|
|
12881
|
+
{
|
|
12882
|
+
"kind": "field",
|
|
12883
|
+
"name": "restoreScroll",
|
|
12884
|
+
"privacy": "private"
|
|
12727
12885
|
}
|
|
12728
12886
|
]
|
|
12729
12887
|
}
|
|
@@ -12731,490 +12889,308 @@
|
|
|
12731
12889
|
"exports": [
|
|
12732
12890
|
{
|
|
12733
12891
|
"kind": "js",
|
|
12734
|
-
"name": "
|
|
12735
|
-
"declaration": {
|
|
12736
|
-
"name": "cond",
|
|
12737
|
-
"module": "src/common/directives/cond.ts"
|
|
12738
|
-
}
|
|
12739
|
-
},
|
|
12740
|
-
{
|
|
12741
|
-
"kind": "js",
|
|
12742
|
-
"name": "cond",
|
|
12743
|
-
"declaration": {
|
|
12744
|
-
"name": "cond",
|
|
12745
|
-
"module": "src/common/directives/cond.ts"
|
|
12746
|
-
}
|
|
12747
|
-
},
|
|
12748
|
-
{
|
|
12749
|
-
"kind": "js",
|
|
12750
|
-
"name": "cond",
|
|
12751
|
-
"declaration": {
|
|
12752
|
-
"name": "cond",
|
|
12753
|
-
"module": "src/common/directives/cond.ts"
|
|
12754
|
-
}
|
|
12755
|
-
},
|
|
12756
|
-
{
|
|
12757
|
-
"kind": "js",
|
|
12758
|
-
"name": "cond",
|
|
12759
|
-
"declaration": {
|
|
12760
|
-
"name": "cond",
|
|
12761
|
-
"module": "src/common/directives/cond.ts"
|
|
12762
|
-
}
|
|
12763
|
-
},
|
|
12764
|
-
{
|
|
12765
|
-
"kind": "js",
|
|
12766
|
-
"name": "cond",
|
|
12767
|
-
"declaration": {
|
|
12768
|
-
"name": "cond",
|
|
12769
|
-
"module": "src/common/directives/cond.ts"
|
|
12770
|
-
}
|
|
12771
|
-
},
|
|
12772
|
-
{
|
|
12773
|
-
"kind": "js",
|
|
12774
|
-
"name": "cond",
|
|
12892
|
+
"name": "FocusTrapController",
|
|
12775
12893
|
"declaration": {
|
|
12776
|
-
"name": "
|
|
12777
|
-
"module": "src/common/
|
|
12894
|
+
"name": "FocusTrapController",
|
|
12895
|
+
"module": "src/common/controllers/FocusTrapController.ts"
|
|
12778
12896
|
}
|
|
12779
|
-
}
|
|
12897
|
+
}
|
|
12898
|
+
]
|
|
12899
|
+
},
|
|
12900
|
+
{
|
|
12901
|
+
"kind": "javascript-module",
|
|
12902
|
+
"path": "src/common/controllers/FormDataController.ts",
|
|
12903
|
+
"declarations": [
|
|
12780
12904
|
{
|
|
12781
|
-
"kind": "
|
|
12782
|
-
"
|
|
12783
|
-
"
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12905
|
+
"kind": "class",
|
|
12906
|
+
"description": "",
|
|
12907
|
+
"name": "FormDataController",
|
|
12908
|
+
"members": [
|
|
12909
|
+
{
|
|
12910
|
+
"kind": "field",
|
|
12911
|
+
"name": "events",
|
|
12912
|
+
"type": {
|
|
12913
|
+
"text": "EventController"
|
|
12914
|
+
},
|
|
12915
|
+
"privacy": "private",
|
|
12916
|
+
"default": "new EventController(host)"
|
|
12917
|
+
},
|
|
12918
|
+
{
|
|
12919
|
+
"kind": "method",
|
|
12920
|
+
"name": "hostConnected"
|
|
12921
|
+
},
|
|
12922
|
+
{
|
|
12923
|
+
"kind": "field",
|
|
12924
|
+
"name": "handleFormData",
|
|
12925
|
+
"privacy": "private"
|
|
12926
|
+
}
|
|
12927
|
+
]
|
|
12928
|
+
}
|
|
12929
|
+
],
|
|
12930
|
+
"exports": [
|
|
12788
12931
|
{
|
|
12789
12932
|
"kind": "js",
|
|
12790
|
-
"name": "
|
|
12933
|
+
"name": "FormDataController",
|
|
12791
12934
|
"declaration": {
|
|
12792
|
-
"name": "
|
|
12793
|
-
"module": "src/common/
|
|
12935
|
+
"name": "FormDataController",
|
|
12936
|
+
"module": "src/common/controllers/FormDataController.ts"
|
|
12794
12937
|
}
|
|
12795
12938
|
}
|
|
12796
12939
|
]
|
|
12797
12940
|
},
|
|
12798
12941
|
{
|
|
12799
12942
|
"kind": "javascript-module",
|
|
12800
|
-
"path": "src/common/
|
|
12943
|
+
"path": "src/common/controllers/LightDismissController.ts",
|
|
12801
12944
|
"declarations": [
|
|
12802
12945
|
{
|
|
12803
|
-
"kind": "
|
|
12804
|
-
"
|
|
12805
|
-
"
|
|
12806
|
-
|
|
12807
|
-
"text": "TInner"
|
|
12808
|
-
}
|
|
12809
|
-
},
|
|
12810
|
-
"parameters": [
|
|
12946
|
+
"kind": "class",
|
|
12947
|
+
"description": "",
|
|
12948
|
+
"name": "LightDismissController",
|
|
12949
|
+
"members": [
|
|
12811
12950
|
{
|
|
12812
|
-
"
|
|
12951
|
+
"kind": "field",
|
|
12952
|
+
"name": "shortcut",
|
|
12813
12953
|
"type": {
|
|
12814
|
-
"text": "
|
|
12815
|
-
}
|
|
12954
|
+
"text": "ShortcutController"
|
|
12955
|
+
},
|
|
12956
|
+
"privacy": "private",
|
|
12957
|
+
"default": "new ShortcutController(host, { Escape: this.handleEsc })"
|
|
12816
12958
|
},
|
|
12817
12959
|
{
|
|
12818
|
-
"
|
|
12960
|
+
"kind": "field",
|
|
12961
|
+
"name": "events",
|
|
12819
12962
|
"type": {
|
|
12820
|
-
"text": "
|
|
12821
|
-
}
|
|
12963
|
+
"text": "EventController"
|
|
12964
|
+
},
|
|
12965
|
+
"privacy": "private",
|
|
12966
|
+
"default": "new EventController(host)"
|
|
12822
12967
|
},
|
|
12823
12968
|
{
|
|
12824
|
-
"
|
|
12825
|
-
"
|
|
12826
|
-
"text": "(inner: TInner) => TWrapper"
|
|
12827
|
-
}
|
|
12828
|
-
}
|
|
12829
|
-
]
|
|
12830
|
-
},
|
|
12831
|
-
{
|
|
12832
|
-
"kind": "function",
|
|
12833
|
-
"name": "wrapIf",
|
|
12834
|
-
"return": {
|
|
12835
|
-
"type": {
|
|
12836
|
-
"text": "TWrapper"
|
|
12837
|
-
}
|
|
12838
|
-
},
|
|
12839
|
-
"parameters": [
|
|
12840
|
-
{
|
|
12841
|
-
"name": "condition",
|
|
12842
|
-
"type": {
|
|
12843
|
-
"text": "true"
|
|
12844
|
-
}
|
|
12969
|
+
"kind": "method",
|
|
12970
|
+
"name": "hostConnected"
|
|
12845
12971
|
},
|
|
12846
12972
|
{
|
|
12847
|
-
"
|
|
12848
|
-
"
|
|
12849
|
-
|
|
12850
|
-
}
|
|
12973
|
+
"kind": "field",
|
|
12974
|
+
"name": "handleEsc",
|
|
12975
|
+
"privacy": "private"
|
|
12851
12976
|
},
|
|
12852
12977
|
{
|
|
12853
|
-
"
|
|
12854
|
-
"
|
|
12855
|
-
|
|
12856
|
-
}
|
|
12978
|
+
"kind": "field",
|
|
12979
|
+
"name": "handleClickOut",
|
|
12980
|
+
"privacy": "private"
|
|
12857
12981
|
}
|
|
12858
12982
|
]
|
|
12859
|
-
}
|
|
12983
|
+
}
|
|
12984
|
+
],
|
|
12985
|
+
"exports": [
|
|
12860
12986
|
{
|
|
12861
|
-
"kind": "
|
|
12862
|
-
"name": "
|
|
12863
|
-
"
|
|
12864
|
-
"
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
},
|
|
12875
|
-
{
|
|
12876
|
-
"name": "inner",
|
|
12877
|
-
"type": {
|
|
12878
|
-
"text": "() => TInner"
|
|
12879
|
-
}
|
|
12880
|
-
},
|
|
12881
|
-
{
|
|
12882
|
-
"name": "wrapper",
|
|
12883
|
-
"type": {
|
|
12884
|
-
"text": "(inner: TInner) => TWrapper"
|
|
12885
|
-
}
|
|
12886
|
-
}
|
|
12887
|
-
]
|
|
12888
|
-
},
|
|
12987
|
+
"kind": "js",
|
|
12988
|
+
"name": "LightDismissController",
|
|
12989
|
+
"declaration": {
|
|
12990
|
+
"name": "LightDismissController",
|
|
12991
|
+
"module": "src/common/controllers/LightDismissController.ts"
|
|
12992
|
+
}
|
|
12993
|
+
}
|
|
12994
|
+
]
|
|
12995
|
+
},
|
|
12996
|
+
{
|
|
12997
|
+
"kind": "javascript-module",
|
|
12998
|
+
"path": "src/common/controllers/LightDomController.ts",
|
|
12999
|
+
"declarations": [
|
|
12889
13000
|
{
|
|
12890
|
-
"kind": "
|
|
12891
|
-
"
|
|
12892
|
-
"
|
|
13001
|
+
"kind": "class",
|
|
13002
|
+
"description": "",
|
|
13003
|
+
"name": "LightDomController",
|
|
13004
|
+
"members": [
|
|
12893
13005
|
{
|
|
12894
|
-
"
|
|
13006
|
+
"kind": "field",
|
|
13007
|
+
"name": "container",
|
|
12895
13008
|
"type": {
|
|
12896
|
-
"text": "
|
|
12897
|
-
}
|
|
13009
|
+
"text": "HTMLElement"
|
|
13010
|
+
},
|
|
13011
|
+
"privacy": "private"
|
|
12898
13012
|
},
|
|
12899
13013
|
{
|
|
12900
|
-
"
|
|
12901
|
-
"
|
|
12902
|
-
"text": "() => TInner"
|
|
12903
|
-
}
|
|
13014
|
+
"kind": "method",
|
|
13015
|
+
"name": "hostUpdated"
|
|
12904
13016
|
},
|
|
12905
13017
|
{
|
|
12906
|
-
"
|
|
12907
|
-
"
|
|
12908
|
-
"text": "(innards: TInner) => TWrapper"
|
|
12909
|
-
}
|
|
12910
|
-
}
|
|
12911
|
-
],
|
|
12912
|
-
"return": {
|
|
12913
|
-
"type": {
|
|
12914
|
-
"text": ""
|
|
13018
|
+
"kind": "method",
|
|
13019
|
+
"name": "hostDisconnected"
|
|
12915
13020
|
}
|
|
12916
|
-
|
|
13021
|
+
]
|
|
12917
13022
|
}
|
|
12918
13023
|
],
|
|
12919
13024
|
"exports": [
|
|
12920
13025
|
{
|
|
12921
13026
|
"kind": "js",
|
|
12922
|
-
"name": "
|
|
12923
|
-
"declaration": {
|
|
12924
|
-
"name": "wrapIf",
|
|
12925
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
12926
|
-
}
|
|
12927
|
-
},
|
|
12928
|
-
{
|
|
12929
|
-
"kind": "js",
|
|
12930
|
-
"name": "wrapIf",
|
|
12931
|
-
"declaration": {
|
|
12932
|
-
"name": "wrapIf",
|
|
12933
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
12934
|
-
}
|
|
12935
|
-
},
|
|
12936
|
-
{
|
|
12937
|
-
"kind": "js",
|
|
12938
|
-
"name": "wrapIf",
|
|
12939
|
-
"declaration": {
|
|
12940
|
-
"name": "wrapIf",
|
|
12941
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
12942
|
-
}
|
|
12943
|
-
},
|
|
12944
|
-
{
|
|
12945
|
-
"kind": "js",
|
|
12946
|
-
"name": "wrapIf",
|
|
13027
|
+
"name": "LightDomController",
|
|
12947
13028
|
"declaration": {
|
|
12948
|
-
"name": "
|
|
12949
|
-
"module": "src/common/
|
|
13029
|
+
"name": "LightDomController",
|
|
13030
|
+
"module": "src/common/controllers/LightDomController.ts"
|
|
12950
13031
|
}
|
|
12951
13032
|
}
|
|
12952
13033
|
]
|
|
12953
13034
|
},
|
|
12954
13035
|
{
|
|
12955
13036
|
"kind": "javascript-module",
|
|
12956
|
-
"path": "src/common/controllers/
|
|
13037
|
+
"path": "src/common/controllers/LightSlotController.ts",
|
|
12957
13038
|
"declarations": [
|
|
12958
13039
|
{
|
|
12959
13040
|
"kind": "class",
|
|
12960
|
-
"description": "",
|
|
12961
|
-
"name": "
|
|
13041
|
+
"description": "Handles cases where a component needs to render to light DOM,\nand potentially sync component properties to user-supplied content.",
|
|
13042
|
+
"name": "LightSlotController",
|
|
12962
13043
|
"members": [
|
|
12963
13044
|
{
|
|
12964
13045
|
"kind": "field",
|
|
12965
|
-
"name": "
|
|
13046
|
+
"name": "renderHook",
|
|
13047
|
+
"type": {
|
|
13048
|
+
"text": "Comment"
|
|
13049
|
+
},
|
|
13050
|
+
"privacy": "private"
|
|
13051
|
+
},
|
|
13052
|
+
{
|
|
13053
|
+
"kind": "field",
|
|
13054
|
+
"name": "lightDom",
|
|
13055
|
+
"type": {
|
|
13056
|
+
"text": "LightDomController"
|
|
13057
|
+
},
|
|
12966
13058
|
"privacy": "private",
|
|
12967
|
-
"
|
|
12968
|
-
|
|
13059
|
+
"default": "new LightDomController(host, {\n render: () => (this.hasContent ? nothing : this.options.render()),\n renderOptions: { renderBefore: this.renderHook },\n })"
|
|
13060
|
+
},
|
|
13061
|
+
{
|
|
13062
|
+
"kind": "method",
|
|
13063
|
+
"name": "hostConnected",
|
|
13064
|
+
"inheritedFrom": {
|
|
13065
|
+
"name": "SlotController",
|
|
13066
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13067
|
+
}
|
|
13068
|
+
},
|
|
13069
|
+
{
|
|
13070
|
+
"kind": "method",
|
|
13071
|
+
"name": "hostDisconnected"
|
|
13072
|
+
},
|
|
13073
|
+
{
|
|
13074
|
+
"kind": "field",
|
|
13075
|
+
"name": "onChange",
|
|
13076
|
+
"privacy": "protected",
|
|
13077
|
+
"parameters": [
|
|
13078
|
+
{
|
|
13079
|
+
"name": "_e",
|
|
13080
|
+
"type": {
|
|
13081
|
+
"text": "Event"
|
|
13082
|
+
}
|
|
13083
|
+
}
|
|
13084
|
+
],
|
|
13085
|
+
"inheritedFrom": {
|
|
13086
|
+
"name": "SlotController",
|
|
13087
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13088
|
+
}
|
|
13089
|
+
},
|
|
13090
|
+
{
|
|
13091
|
+
"kind": "method",
|
|
13092
|
+
"name": "syncLightDom",
|
|
13093
|
+
"privacy": "private"
|
|
12969
13094
|
},
|
|
12970
13095
|
{
|
|
12971
13096
|
"kind": "field",
|
|
12972
|
-
"name": "
|
|
13097
|
+
"name": "events",
|
|
12973
13098
|
"type": {
|
|
12974
|
-
"text": "
|
|
13099
|
+
"text": "EventController"
|
|
12975
13100
|
},
|
|
12976
13101
|
"privacy": "private",
|
|
12977
|
-
"
|
|
13102
|
+
"default": "new EventController(host)",
|
|
13103
|
+
"inheritedFrom": {
|
|
13104
|
+
"name": "SlotController",
|
|
13105
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13106
|
+
}
|
|
12978
13107
|
},
|
|
12979
13108
|
{
|
|
12980
13109
|
"kind": "field",
|
|
12981
|
-
"name": "
|
|
12982
|
-
"
|
|
12983
|
-
"
|
|
13110
|
+
"name": "hasContent",
|
|
13111
|
+
"inheritedFrom": {
|
|
13112
|
+
"name": "SlotController",
|
|
13113
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
12984
13114
|
}
|
|
12985
13115
|
},
|
|
12986
13116
|
{
|
|
12987
13117
|
"kind": "field",
|
|
12988
|
-
"name": "
|
|
13118
|
+
"name": "isEmpty",
|
|
13119
|
+
"inheritedFrom": {
|
|
13120
|
+
"name": "SlotController",
|
|
13121
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13122
|
+
}
|
|
12989
13123
|
},
|
|
12990
13124
|
{
|
|
12991
13125
|
"kind": "field",
|
|
12992
|
-
"name": "
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
},
|
|
12998
|
-
{
|
|
12999
|
-
"kind": "method",
|
|
13000
|
-
"name": "hostDisconnected"
|
|
13126
|
+
"name": "content",
|
|
13127
|
+
"inheritedFrom": {
|
|
13128
|
+
"name": "SlotController",
|
|
13129
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13130
|
+
}
|
|
13001
13131
|
},
|
|
13002
13132
|
{
|
|
13003
|
-
"kind": "
|
|
13004
|
-
"name": "
|
|
13133
|
+
"kind": "field",
|
|
13134
|
+
"name": "handleSlotChange",
|
|
13005
13135
|
"privacy": "private",
|
|
13006
|
-
"
|
|
13136
|
+
"inheritedFrom": {
|
|
13137
|
+
"name": "SlotController",
|
|
13138
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13139
|
+
}
|
|
13007
13140
|
}
|
|
13008
|
-
]
|
|
13141
|
+
],
|
|
13142
|
+
"superclass": {
|
|
13143
|
+
"name": "SlotController",
|
|
13144
|
+
"module": "/src/common/controllers/SlotController.js"
|
|
13145
|
+
},
|
|
13146
|
+
"status": null,
|
|
13147
|
+
"category": null,
|
|
13148
|
+
"displayName": null
|
|
13009
13149
|
}
|
|
13010
13150
|
],
|
|
13011
13151
|
"exports": [
|
|
13012
13152
|
{
|
|
13013
13153
|
"kind": "js",
|
|
13014
|
-
"name": "
|
|
13154
|
+
"name": "LightSlotController",
|
|
13015
13155
|
"declaration": {
|
|
13016
|
-
"name": "
|
|
13017
|
-
"module": "src/common/controllers/
|
|
13156
|
+
"name": "LightSlotController",
|
|
13157
|
+
"module": "src/common/controllers/LightSlotController.ts"
|
|
13018
13158
|
}
|
|
13019
13159
|
}
|
|
13020
13160
|
]
|
|
13021
13161
|
},
|
|
13022
13162
|
{
|
|
13023
13163
|
"kind": "javascript-module",
|
|
13024
|
-
"path": "src/common/controllers/
|
|
13025
|
-
"declarations": [
|
|
13026
|
-
{
|
|
13027
|
-
"kind": "class",
|
|
13028
|
-
"description": "",
|
|
13029
|
-
"name": "
|
|
13030
|
-
"members": [
|
|
13031
|
-
{
|
|
13032
|
-
"kind": "field",
|
|
13033
|
-
"name": "
|
|
13034
|
-
"type": {
|
|
13035
|
-
"text": "
|
|
13036
|
-
},
|
|
13037
|
-
"privacy": "private"
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
"
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
"
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
"
|
|
13053
|
-
|
|
13054
|
-
"name": "window",
|
|
13055
|
-
"type": {
|
|
13056
|
-
"text": "Window"
|
|
13057
|
-
}
|
|
13058
|
-
},
|
|
13059
|
-
{
|
|
13060
|
-
"name": "type",
|
|
13061
|
-
"type": {
|
|
13062
|
-
"text": "K"
|
|
13063
|
-
}
|
|
13064
|
-
},
|
|
13065
|
-
{
|
|
13066
|
-
"name": "listener",
|
|
13067
|
-
"type": {
|
|
13068
|
-
"text": "(this: Window, ev: WindowEventMap[K]) => any"
|
|
13069
|
-
}
|
|
13070
|
-
},
|
|
13071
|
-
{
|
|
13072
|
-
"name": "options",
|
|
13073
|
-
"optional": true,
|
|
13074
|
-
"type": {
|
|
13075
|
-
"text": "boolean | AddEventListenerOptions"
|
|
13076
|
-
}
|
|
13077
|
-
}
|
|
13078
|
-
]
|
|
13079
|
-
},
|
|
13080
|
-
{
|
|
13081
|
-
"kind": "method",
|
|
13082
|
-
"name": "listen",
|
|
13083
|
-
"return": {
|
|
13084
|
-
"type": {
|
|
13085
|
-
"text": "void"
|
|
13086
|
-
}
|
|
13087
|
-
},
|
|
13088
|
-
"parameters": [
|
|
13089
|
-
{
|
|
13090
|
-
"name": "document",
|
|
13091
|
-
"type": {
|
|
13092
|
-
"text": "Document"
|
|
13093
|
-
}
|
|
13094
|
-
},
|
|
13095
|
-
{
|
|
13096
|
-
"name": "type",
|
|
13097
|
-
"type": {
|
|
13098
|
-
"text": "K"
|
|
13099
|
-
}
|
|
13100
|
-
},
|
|
13101
|
-
{
|
|
13102
|
-
"name": "listener",
|
|
13103
|
-
"type": {
|
|
13104
|
-
"text": "(this: Document, ev: DocumentEventMap[K]) => any"
|
|
13105
|
-
}
|
|
13106
|
-
},
|
|
13107
|
-
{
|
|
13108
|
-
"name": "options",
|
|
13109
|
-
"optional": true,
|
|
13110
|
-
"type": {
|
|
13111
|
-
"text": "boolean | AddEventListenerOptions"
|
|
13112
|
-
}
|
|
13113
|
-
}
|
|
13114
|
-
]
|
|
13115
|
-
},
|
|
13116
|
-
{
|
|
13117
|
-
"kind": "method",
|
|
13118
|
-
"name": "listen",
|
|
13119
|
-
"return": {
|
|
13120
|
-
"type": {
|
|
13121
|
-
"text": "void"
|
|
13122
|
-
}
|
|
13123
|
-
},
|
|
13124
|
-
"parameters": [
|
|
13125
|
-
{
|
|
13126
|
-
"name": "element",
|
|
13127
|
-
"type": {
|
|
13128
|
-
"text": "HTMLElement"
|
|
13129
|
-
}
|
|
13130
|
-
},
|
|
13131
|
-
{
|
|
13132
|
-
"name": "type",
|
|
13133
|
-
"type": {
|
|
13134
|
-
"text": "K"
|
|
13135
|
-
}
|
|
13136
|
-
},
|
|
13137
|
-
{
|
|
13138
|
-
"name": "listener",
|
|
13139
|
-
"type": {
|
|
13140
|
-
"text": "(this: HTMLElement, ev: HTMLElementEventMap[K]) => any"
|
|
13141
|
-
}
|
|
13142
|
-
},
|
|
13143
|
-
{
|
|
13144
|
-
"name": "options",
|
|
13145
|
-
"optional": true,
|
|
13146
|
-
"type": {
|
|
13147
|
-
"text": "boolean | AddEventListenerOptions"
|
|
13148
|
-
}
|
|
13149
|
-
}
|
|
13150
|
-
]
|
|
13151
|
-
},
|
|
13152
|
-
{
|
|
13153
|
-
"kind": "method",
|
|
13154
|
-
"name": "listen",
|
|
13155
|
-
"return": {
|
|
13156
|
-
"type": {
|
|
13157
|
-
"text": "void"
|
|
13158
|
-
}
|
|
13159
|
-
},
|
|
13160
|
-
"parameters": [
|
|
13161
|
-
{
|
|
13162
|
-
"name": "element",
|
|
13163
|
-
"type": {
|
|
13164
|
-
"text": "ShadowRoot"
|
|
13165
|
-
}
|
|
13166
|
-
},
|
|
13167
|
-
{
|
|
13168
|
-
"name": "type",
|
|
13169
|
-
"type": {
|
|
13170
|
-
"text": "K"
|
|
13171
|
-
}
|
|
13172
|
-
},
|
|
13173
|
-
{
|
|
13174
|
-
"name": "listener",
|
|
13175
|
-
"type": {
|
|
13176
|
-
"text": "(this: ShadowRoot, ev: ShadowRootEventMap[K]) => any"
|
|
13177
|
-
}
|
|
13178
|
-
},
|
|
13179
|
-
{
|
|
13180
|
-
"name": "options",
|
|
13181
|
-
"optional": true,
|
|
13182
|
-
"type": {
|
|
13183
|
-
"text": "boolean | AddEventListenerOptions"
|
|
13184
|
-
}
|
|
13185
|
-
}
|
|
13186
|
-
]
|
|
13187
|
-
},
|
|
13188
|
-
{
|
|
13189
|
-
"kind": "method",
|
|
13190
|
-
"name": "listen",
|
|
13191
|
-
"parameters": [
|
|
13192
|
-
{
|
|
13193
|
-
"name": "element",
|
|
13194
|
-
"type": {
|
|
13195
|
-
"text": "Window | Document | HTMLElement | ShadowRoot"
|
|
13196
|
-
}
|
|
13197
|
-
},
|
|
13198
|
-
{
|
|
13199
|
-
"name": "type",
|
|
13200
|
-
"type": {
|
|
13201
|
-
"text": "string"
|
|
13202
|
-
}
|
|
13203
|
-
},
|
|
13204
|
-
{
|
|
13205
|
-
"name": "listener",
|
|
13206
|
-
"type": {
|
|
13207
|
-
"text": "(ev: any) => any"
|
|
13208
|
-
}
|
|
13209
|
-
},
|
|
13210
|
-
{
|
|
13211
|
-
"name": "options",
|
|
13212
|
-
"optional": true,
|
|
13213
|
-
"type": {
|
|
13214
|
-
"text": "boolean | AddEventListenerOptions"
|
|
13215
|
-
}
|
|
13216
|
-
}
|
|
13217
|
-
]
|
|
13164
|
+
"path": "src/common/controllers/MediaQueryController.ts",
|
|
13165
|
+
"declarations": [
|
|
13166
|
+
{
|
|
13167
|
+
"kind": "class",
|
|
13168
|
+
"description": "",
|
|
13169
|
+
"name": "MediaQueryController",
|
|
13170
|
+
"members": [
|
|
13171
|
+
{
|
|
13172
|
+
"kind": "field",
|
|
13173
|
+
"name": "mq",
|
|
13174
|
+
"type": {
|
|
13175
|
+
"text": "MediaQueryList"
|
|
13176
|
+
},
|
|
13177
|
+
"privacy": "private"
|
|
13178
|
+
},
|
|
13179
|
+
{
|
|
13180
|
+
"kind": "field",
|
|
13181
|
+
"name": "matches"
|
|
13182
|
+
},
|
|
13183
|
+
{
|
|
13184
|
+
"kind": "method",
|
|
13185
|
+
"name": "hostConnected"
|
|
13186
|
+
},
|
|
13187
|
+
{
|
|
13188
|
+
"kind": "method",
|
|
13189
|
+
"name": "hostDisconnected"
|
|
13190
|
+
},
|
|
13191
|
+
{
|
|
13192
|
+
"kind": "field",
|
|
13193
|
+
"name": "handleChange"
|
|
13218
13194
|
}
|
|
13219
13195
|
]
|
|
13220
13196
|
}
|
|
@@ -13222,71 +13198,115 @@
|
|
|
13222
13198
|
"exports": [
|
|
13223
13199
|
{
|
|
13224
13200
|
"kind": "js",
|
|
13225
|
-
"name": "
|
|
13201
|
+
"name": "MediaQueryController",
|
|
13226
13202
|
"declaration": {
|
|
13227
|
-
"name": "
|
|
13228
|
-
"module": "src/common/controllers/
|
|
13203
|
+
"name": "MediaQueryController",
|
|
13204
|
+
"module": "src/common/controllers/MediaQueryController.ts"
|
|
13229
13205
|
}
|
|
13230
13206
|
}
|
|
13231
13207
|
]
|
|
13232
13208
|
},
|
|
13233
13209
|
{
|
|
13234
13210
|
"kind": "javascript-module",
|
|
13235
|
-
"path": "src/common/controllers/
|
|
13211
|
+
"path": "src/common/controllers/PortalController.ts",
|
|
13236
13212
|
"declarations": [
|
|
13237
13213
|
{
|
|
13238
13214
|
"kind": "class",
|
|
13239
13215
|
"description": "",
|
|
13240
|
-
"name": "
|
|
13216
|
+
"name": "PortalController",
|
|
13241
13217
|
"members": [
|
|
13242
13218
|
{
|
|
13243
13219
|
"kind": "field",
|
|
13244
|
-
"name": "
|
|
13220
|
+
"name": "renderHook",
|
|
13245
13221
|
"type": {
|
|
13246
|
-
"text": "
|
|
13222
|
+
"text": "Comment"
|
|
13247
13223
|
},
|
|
13248
|
-
"privacy": "private"
|
|
13249
|
-
"default": "0"
|
|
13224
|
+
"privacy": "private"
|
|
13250
13225
|
},
|
|
13251
13226
|
{
|
|
13252
13227
|
"kind": "field",
|
|
13253
|
-
"name": "
|
|
13228
|
+
"name": "lightDom",
|
|
13254
13229
|
"type": {
|
|
13255
|
-
"text": "
|
|
13230
|
+
"text": "LightDomController"
|
|
13256
13231
|
},
|
|
13257
|
-
"privacy": "private"
|
|
13232
|
+
"privacy": "private",
|
|
13233
|
+
"default": "new LightDomController(host, {\n render: () => this.options.render.call(host),\n container: options.outlet,\n renderOptions: {\n renderBefore: this.renderHook,\n host,\n },\n })"
|
|
13258
13234
|
},
|
|
13259
13235
|
{
|
|
13260
13236
|
"kind": "method",
|
|
13261
|
-
"name": "
|
|
13237
|
+
"name": "hostConnected"
|
|
13262
13238
|
},
|
|
13263
13239
|
{
|
|
13264
13240
|
"kind": "method",
|
|
13265
|
-
"name": "
|
|
13241
|
+
"name": "hostUpdated"
|
|
13266
13242
|
},
|
|
13267
13243
|
{
|
|
13268
13244
|
"kind": "method",
|
|
13269
|
-
"name": "
|
|
13270
|
-
}
|
|
13245
|
+
"name": "hostDisconnected"
|
|
13246
|
+
}
|
|
13247
|
+
]
|
|
13248
|
+
}
|
|
13249
|
+
],
|
|
13250
|
+
"exports": [
|
|
13251
|
+
{
|
|
13252
|
+
"kind": "js",
|
|
13253
|
+
"name": "PortalController",
|
|
13254
|
+
"declaration": {
|
|
13255
|
+
"name": "PortalController",
|
|
13256
|
+
"module": "src/common/controllers/PortalController.ts"
|
|
13257
|
+
}
|
|
13258
|
+
}
|
|
13259
|
+
]
|
|
13260
|
+
},
|
|
13261
|
+
{
|
|
13262
|
+
"kind": "javascript-module",
|
|
13263
|
+
"path": "src/common/controllers/ScrollbarController.ts",
|
|
13264
|
+
"declarations": [
|
|
13265
|
+
{
|
|
13266
|
+
"kind": "class",
|
|
13267
|
+
"description": "",
|
|
13268
|
+
"name": "ScrollbarController",
|
|
13269
|
+
"members": [
|
|
13271
13270
|
{
|
|
13272
13271
|
"kind": "field",
|
|
13273
|
-
"name": "
|
|
13274
|
-
"privacy": "private"
|
|
13272
|
+
"name": "resets",
|
|
13273
|
+
"privacy": "private",
|
|
13274
|
+
"default": "new Set<() => void>()"
|
|
13275
|
+
},
|
|
13276
|
+
{
|
|
13277
|
+
"kind": "method",
|
|
13278
|
+
"name": "hostDisconnected"
|
|
13275
13279
|
},
|
|
13276
13280
|
{
|
|
13277
13281
|
"kind": "field",
|
|
13278
|
-
"name": "
|
|
13279
|
-
"privacy": "private"
|
|
13282
|
+
"name": "width"
|
|
13280
13283
|
},
|
|
13281
13284
|
{
|
|
13282
13285
|
"kind": "method",
|
|
13283
|
-
"name": "
|
|
13284
|
-
"privacy": "private"
|
|
13286
|
+
"name": "hide"
|
|
13285
13287
|
},
|
|
13286
13288
|
{
|
|
13287
|
-
"kind": "
|
|
13288
|
-
"name": "
|
|
13289
|
-
|
|
13289
|
+
"kind": "method",
|
|
13290
|
+
"name": "restore"
|
|
13291
|
+
},
|
|
13292
|
+
{
|
|
13293
|
+
"kind": "method",
|
|
13294
|
+
"name": "setStyle",
|
|
13295
|
+
"privacy": "private",
|
|
13296
|
+
"parameters": [
|
|
13297
|
+
{
|
|
13298
|
+
"name": "property",
|
|
13299
|
+
"type": {
|
|
13300
|
+
"text": "string"
|
|
13301
|
+
}
|
|
13302
|
+
},
|
|
13303
|
+
{
|
|
13304
|
+
"name": "value",
|
|
13305
|
+
"type": {
|
|
13306
|
+
"text": "string"
|
|
13307
|
+
}
|
|
13308
|
+
}
|
|
13309
|
+
]
|
|
13290
13310
|
}
|
|
13291
13311
|
]
|
|
13292
13312
|
}
|
|
@@ -13294,40 +13314,54 @@
|
|
|
13294
13314
|
"exports": [
|
|
13295
13315
|
{
|
|
13296
13316
|
"kind": "js",
|
|
13297
|
-
"name": "
|
|
13317
|
+
"name": "ScrollbarController",
|
|
13298
13318
|
"declaration": {
|
|
13299
|
-
"name": "
|
|
13300
|
-
"module": "src/common/controllers/
|
|
13319
|
+
"name": "ScrollbarController",
|
|
13320
|
+
"module": "src/common/controllers/ScrollbarController.ts"
|
|
13301
13321
|
}
|
|
13302
13322
|
}
|
|
13303
13323
|
]
|
|
13304
13324
|
},
|
|
13305
13325
|
{
|
|
13306
13326
|
"kind": "javascript-module",
|
|
13307
|
-
"path": "src/common/controllers/
|
|
13327
|
+
"path": "src/common/controllers/ShortcutController.ts",
|
|
13308
13328
|
"declarations": [
|
|
13309
13329
|
{
|
|
13310
13330
|
"kind": "class",
|
|
13311
13331
|
"description": "",
|
|
13312
|
-
"name": "
|
|
13332
|
+
"name": "ShortcutController",
|
|
13313
13333
|
"members": [
|
|
13314
13334
|
{
|
|
13315
13335
|
"kind": "field",
|
|
13316
|
-
"name": "
|
|
13336
|
+
"name": "unregister",
|
|
13317
13337
|
"type": {
|
|
13318
|
-
"text": "
|
|
13338
|
+
"text": "ReturnType<typeof tinykeys> | undefined"
|
|
13319
13339
|
},
|
|
13320
|
-
"privacy": "private"
|
|
13321
|
-
"default": "new EventController(host)"
|
|
13340
|
+
"privacy": "private"
|
|
13322
13341
|
},
|
|
13323
13342
|
{
|
|
13324
13343
|
"kind": "method",
|
|
13325
13344
|
"name": "hostConnected"
|
|
13326
13345
|
},
|
|
13327
13346
|
{
|
|
13328
|
-
"kind": "
|
|
13329
|
-
"name": "
|
|
13330
|
-
|
|
13347
|
+
"kind": "method",
|
|
13348
|
+
"name": "hostDisconnected"
|
|
13349
|
+
},
|
|
13350
|
+
{
|
|
13351
|
+
"kind": "method",
|
|
13352
|
+
"name": "unbind"
|
|
13353
|
+
},
|
|
13354
|
+
{
|
|
13355
|
+
"kind": "method",
|
|
13356
|
+
"name": "bind",
|
|
13357
|
+
"parameters": [
|
|
13358
|
+
{
|
|
13359
|
+
"name": "shortcuts",
|
|
13360
|
+
"type": {
|
|
13361
|
+
"text": "KeyBindingMap"
|
|
13362
|
+
}
|
|
13363
|
+
}
|
|
13364
|
+
]
|
|
13331
13365
|
}
|
|
13332
13366
|
]
|
|
13333
13367
|
}
|
|
@@ -13335,32 +13369,31 @@
|
|
|
13335
13369
|
"exports": [
|
|
13336
13370
|
{
|
|
13337
13371
|
"kind": "js",
|
|
13338
|
-
"name": "
|
|
13372
|
+
"name": "ShortcutController",
|
|
13339
13373
|
"declaration": {
|
|
13340
|
-
"name": "
|
|
13341
|
-
"module": "src/common/controllers/
|
|
13374
|
+
"name": "ShortcutController",
|
|
13375
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
13376
|
+
}
|
|
13377
|
+
},
|
|
13378
|
+
{
|
|
13379
|
+
"kind": "js",
|
|
13380
|
+
"name": "ShortcutMap",
|
|
13381
|
+
"declaration": {
|
|
13382
|
+
"name": "KeyBindingMap",
|
|
13383
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
13342
13384
|
}
|
|
13343
13385
|
}
|
|
13344
13386
|
]
|
|
13345
13387
|
},
|
|
13346
13388
|
{
|
|
13347
13389
|
"kind": "javascript-module",
|
|
13348
|
-
"path": "src/common/controllers/
|
|
13390
|
+
"path": "src/common/controllers/SlotController.ts",
|
|
13349
13391
|
"declarations": [
|
|
13350
13392
|
{
|
|
13351
13393
|
"kind": "class",
|
|
13352
13394
|
"description": "",
|
|
13353
|
-
"name": "
|
|
13395
|
+
"name": "SlotController",
|
|
13354
13396
|
"members": [
|
|
13355
|
-
{
|
|
13356
|
-
"kind": "field",
|
|
13357
|
-
"name": "shortcut",
|
|
13358
|
-
"type": {
|
|
13359
|
-
"text": "ShortcutController"
|
|
13360
|
-
},
|
|
13361
|
-
"privacy": "private",
|
|
13362
|
-
"default": "new ShortcutController(host, { Escape: this.handleEsc })"
|
|
13363
|
-
},
|
|
13364
13397
|
{
|
|
13365
13398
|
"kind": "field",
|
|
13366
13399
|
"name": "events",
|
|
@@ -13376,13 +13409,33 @@
|
|
|
13376
13409
|
},
|
|
13377
13410
|
{
|
|
13378
13411
|
"kind": "field",
|
|
13379
|
-
"name": "
|
|
13380
|
-
"privacy": "private"
|
|
13412
|
+
"name": "hasContent"
|
|
13381
13413
|
},
|
|
13382
13414
|
{
|
|
13383
13415
|
"kind": "field",
|
|
13384
|
-
"name": "
|
|
13416
|
+
"name": "isEmpty"
|
|
13417
|
+
},
|
|
13418
|
+
{
|
|
13419
|
+
"kind": "field",
|
|
13420
|
+
"name": "content"
|
|
13421
|
+
},
|
|
13422
|
+
{
|
|
13423
|
+
"kind": "field",
|
|
13424
|
+
"name": "handleSlotChange",
|
|
13385
13425
|
"privacy": "private"
|
|
13426
|
+
},
|
|
13427
|
+
{
|
|
13428
|
+
"kind": "method",
|
|
13429
|
+
"name": "onChange",
|
|
13430
|
+
"privacy": "protected",
|
|
13431
|
+
"parameters": [
|
|
13432
|
+
{
|
|
13433
|
+
"name": "_e",
|
|
13434
|
+
"type": {
|
|
13435
|
+
"text": "Event"
|
|
13436
|
+
}
|
|
13437
|
+
}
|
|
13438
|
+
]
|
|
13386
13439
|
}
|
|
13387
13440
|
]
|
|
13388
13441
|
}
|
|
@@ -13390,30 +13443,67 @@
|
|
|
13390
13443
|
"exports": [
|
|
13391
13444
|
{
|
|
13392
13445
|
"kind": "js",
|
|
13393
|
-
"name": "
|
|
13446
|
+
"name": "SlotController",
|
|
13394
13447
|
"declaration": {
|
|
13395
|
-
"name": "
|
|
13396
|
-
"module": "src/common/controllers/
|
|
13448
|
+
"name": "SlotController",
|
|
13449
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
13397
13450
|
}
|
|
13398
13451
|
}
|
|
13399
13452
|
]
|
|
13400
13453
|
},
|
|
13401
13454
|
{
|
|
13402
13455
|
"kind": "javascript-module",
|
|
13403
|
-
"path": "src/common/controllers/
|
|
13456
|
+
"path": "src/common/controllers/SwipeController.ts",
|
|
13404
13457
|
"declarations": [
|
|
13405
13458
|
{
|
|
13406
13459
|
"kind": "class",
|
|
13407
13460
|
"description": "",
|
|
13408
|
-
"name": "
|
|
13461
|
+
"name": "SwipeController",
|
|
13409
13462
|
"members": [
|
|
13410
13463
|
{
|
|
13411
13464
|
"kind": "field",
|
|
13412
|
-
"name": "
|
|
13465
|
+
"name": "events",
|
|
13466
|
+
"type": {
|
|
13467
|
+
"text": "EventController"
|
|
13468
|
+
},
|
|
13469
|
+
"privacy": "private",
|
|
13470
|
+
"default": "new EventController(host)"
|
|
13471
|
+
},
|
|
13472
|
+
{
|
|
13473
|
+
"kind": "field",
|
|
13474
|
+
"name": "hadFirstUpdate",
|
|
13475
|
+
"type": {
|
|
13476
|
+
"text": "boolean"
|
|
13477
|
+
},
|
|
13478
|
+
"privacy": "private",
|
|
13479
|
+
"default": "false"
|
|
13480
|
+
},
|
|
13481
|
+
{
|
|
13482
|
+
"kind": "field",
|
|
13483
|
+
"name": "initialTouchX",
|
|
13484
|
+
"type": {
|
|
13485
|
+
"text": "number"
|
|
13486
|
+
},
|
|
13487
|
+
"privacy": "private",
|
|
13488
|
+
"default": "0"
|
|
13489
|
+
},
|
|
13490
|
+
{
|
|
13491
|
+
"kind": "field",
|
|
13492
|
+
"name": "initialTouchY",
|
|
13493
|
+
"type": {
|
|
13494
|
+
"text": "number"
|
|
13495
|
+
},
|
|
13496
|
+
"privacy": "private",
|
|
13497
|
+
"default": "0"
|
|
13498
|
+
},
|
|
13499
|
+
{
|
|
13500
|
+
"kind": "field",
|
|
13501
|
+
"name": "options",
|
|
13413
13502
|
"type": {
|
|
13414
|
-
"text": "
|
|
13503
|
+
"text": "SetRequired<SwipeControllerOptions, \"target\">"
|
|
13415
13504
|
},
|
|
13416
|
-
"privacy": "private"
|
|
13505
|
+
"privacy": "private",
|
|
13506
|
+
"default": "{\n target: () => host,\n ...options,\n }"
|
|
13417
13507
|
},
|
|
13418
13508
|
{
|
|
13419
13509
|
"kind": "method",
|
|
@@ -13422,6 +13512,40 @@
|
|
|
13422
13512
|
{
|
|
13423
13513
|
"kind": "method",
|
|
13424
13514
|
"name": "hostDisconnected"
|
|
13515
|
+
},
|
|
13516
|
+
{
|
|
13517
|
+
"kind": "field",
|
|
13518
|
+
"name": "handleTouchStart",
|
|
13519
|
+
"privacy": "private"
|
|
13520
|
+
},
|
|
13521
|
+
{
|
|
13522
|
+
"kind": "field",
|
|
13523
|
+
"name": "handleTouchEnd",
|
|
13524
|
+
"privacy": "private"
|
|
13525
|
+
}
|
|
13526
|
+
]
|
|
13527
|
+
},
|
|
13528
|
+
{
|
|
13529
|
+
"kind": "function",
|
|
13530
|
+
"name": "isHorizontalSwipe",
|
|
13531
|
+
"parameters": [
|
|
13532
|
+
{
|
|
13533
|
+
"name": "{ distX, distY }",
|
|
13534
|
+
"type": {
|
|
13535
|
+
"text": "SwipeDetails"
|
|
13536
|
+
}
|
|
13537
|
+
}
|
|
13538
|
+
]
|
|
13539
|
+
},
|
|
13540
|
+
{
|
|
13541
|
+
"kind": "function",
|
|
13542
|
+
"name": "isDownwardsSwipe",
|
|
13543
|
+
"parameters": [
|
|
13544
|
+
{
|
|
13545
|
+
"name": "{ distX, distY }",
|
|
13546
|
+
"type": {
|
|
13547
|
+
"text": "SwipeDetails"
|
|
13548
|
+
}
|
|
13425
13549
|
}
|
|
13426
13550
|
]
|
|
13427
13551
|
}
|
|
@@ -13429,225 +13553,237 @@
|
|
|
13429
13553
|
"exports": [
|
|
13430
13554
|
{
|
|
13431
13555
|
"kind": "js",
|
|
13432
|
-
"name": "
|
|
13556
|
+
"name": "SwipeController",
|
|
13433
13557
|
"declaration": {
|
|
13434
|
-
"name": "
|
|
13435
|
-
"module": "src/common/controllers/
|
|
13558
|
+
"name": "SwipeController",
|
|
13559
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
13560
|
+
}
|
|
13561
|
+
},
|
|
13562
|
+
{
|
|
13563
|
+
"kind": "js",
|
|
13564
|
+
"name": "isHorizontalSwipe",
|
|
13565
|
+
"declaration": {
|
|
13566
|
+
"name": "isHorizontalSwipe",
|
|
13567
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
13568
|
+
}
|
|
13569
|
+
},
|
|
13570
|
+
{
|
|
13571
|
+
"kind": "js",
|
|
13572
|
+
"name": "isDownwardsSwipe",
|
|
13573
|
+
"declaration": {
|
|
13574
|
+
"name": "isDownwardsSwipe",
|
|
13575
|
+
"module": "src/common/controllers/SwipeController.ts"
|
|
13436
13576
|
}
|
|
13437
13577
|
}
|
|
13438
13578
|
]
|
|
13439
13579
|
},
|
|
13440
13580
|
{
|
|
13441
13581
|
"kind": "javascript-module",
|
|
13442
|
-
"path": "src/common/
|
|
13582
|
+
"path": "src/common/directives/cond.ts",
|
|
13443
13583
|
"declarations": [
|
|
13444
13584
|
{
|
|
13445
|
-
"kind": "
|
|
13446
|
-
"
|
|
13447
|
-
"
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
"text": "Comment"
|
|
13454
|
-
},
|
|
13455
|
-
"privacy": "private"
|
|
13456
|
-
},
|
|
13585
|
+
"kind": "function",
|
|
13586
|
+
"name": "cond",
|
|
13587
|
+
"return": {
|
|
13588
|
+
"type": {
|
|
13589
|
+
"text": "typeof value | typeof nothing"
|
|
13590
|
+
}
|
|
13591
|
+
},
|
|
13592
|
+
"parameters": [
|
|
13457
13593
|
{
|
|
13458
|
-
"
|
|
13459
|
-
"name": "lightDom",
|
|
13594
|
+
"name": "value",
|
|
13460
13595
|
"type": {
|
|
13461
|
-
"text": "
|
|
13462
|
-
},
|
|
13463
|
-
"privacy": "private",
|
|
13464
|
-
"default": "new LightDomController(host, {\n render: () => (this.hasContent ? nothing : this.options.render()),\n renderOptions: { renderBefore: this.renderHook },\n })"
|
|
13465
|
-
},
|
|
13466
|
-
{
|
|
13467
|
-
"kind": "method",
|
|
13468
|
-
"name": "hostConnected",
|
|
13469
|
-
"inheritedFrom": {
|
|
13470
|
-
"name": "SlotController",
|
|
13471
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13596
|
+
"text": "any"
|
|
13472
13597
|
}
|
|
13473
|
-
}
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13598
|
+
}
|
|
13599
|
+
],
|
|
13600
|
+
"description": "if value is truthy, return it, otherwise return nothing"
|
|
13601
|
+
},
|
|
13602
|
+
{
|
|
13603
|
+
"kind": "function",
|
|
13604
|
+
"name": "cond",
|
|
13605
|
+
"return": {
|
|
13606
|
+
"type": {
|
|
13607
|
+
"text": "typeof trueCase | typeof nothing"
|
|
13608
|
+
}
|
|
13609
|
+
},
|
|
13610
|
+
"parameters": [
|
|
13478
13611
|
{
|
|
13479
|
-
"
|
|
13480
|
-
"
|
|
13481
|
-
|
|
13482
|
-
"parameters": [
|
|
13483
|
-
{
|
|
13484
|
-
"name": "_e",
|
|
13485
|
-
"type": {
|
|
13486
|
-
"text": "Event"
|
|
13487
|
-
}
|
|
13488
|
-
}
|
|
13489
|
-
],
|
|
13490
|
-
"inheritedFrom": {
|
|
13491
|
-
"name": "SlotController",
|
|
13492
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13612
|
+
"name": "condition",
|
|
13613
|
+
"type": {
|
|
13614
|
+
"text": "unknown"
|
|
13493
13615
|
}
|
|
13494
13616
|
},
|
|
13495
13617
|
{
|
|
13496
|
-
"
|
|
13497
|
-
"name": "syncLightDom",
|
|
13498
|
-
"privacy": "private"
|
|
13499
|
-
},
|
|
13500
|
-
{
|
|
13501
|
-
"kind": "field",
|
|
13502
|
-
"name": "events",
|
|
13618
|
+
"name": "trueCase",
|
|
13503
13619
|
"type": {
|
|
13504
|
-
"text": "
|
|
13505
|
-
},
|
|
13506
|
-
"privacy": "private",
|
|
13507
|
-
"default": "new EventController(host)",
|
|
13508
|
-
"inheritedFrom": {
|
|
13509
|
-
"name": "SlotController",
|
|
13510
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13620
|
+
"text": "any"
|
|
13511
13621
|
}
|
|
13512
|
-
}
|
|
13622
|
+
}
|
|
13623
|
+
],
|
|
13624
|
+
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
13625
|
+
},
|
|
13626
|
+
{
|
|
13627
|
+
"kind": "function",
|
|
13628
|
+
"name": "cond",
|
|
13629
|
+
"return": {
|
|
13630
|
+
"type": {
|
|
13631
|
+
"text": "typeof trueCase"
|
|
13632
|
+
}
|
|
13633
|
+
},
|
|
13634
|
+
"parameters": [
|
|
13513
13635
|
{
|
|
13514
|
-
"
|
|
13515
|
-
"
|
|
13516
|
-
|
|
13517
|
-
"name": "SlotController",
|
|
13518
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13636
|
+
"name": "condition",
|
|
13637
|
+
"type": {
|
|
13638
|
+
"text": "true"
|
|
13519
13639
|
}
|
|
13520
13640
|
},
|
|
13521
13641
|
{
|
|
13522
|
-
"
|
|
13523
|
-
"
|
|
13524
|
-
|
|
13525
|
-
"name": "SlotController",
|
|
13526
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13642
|
+
"name": "trueCase",
|
|
13643
|
+
"type": {
|
|
13644
|
+
"text": "any"
|
|
13527
13645
|
}
|
|
13528
|
-
}
|
|
13646
|
+
}
|
|
13647
|
+
],
|
|
13648
|
+
"description": "condition is true, so always return trueCase"
|
|
13649
|
+
},
|
|
13650
|
+
{
|
|
13651
|
+
"kind": "function",
|
|
13652
|
+
"name": "cond",
|
|
13653
|
+
"return": {
|
|
13654
|
+
"type": {
|
|
13655
|
+
"text": "typeof nothing"
|
|
13656
|
+
}
|
|
13657
|
+
},
|
|
13658
|
+
"parameters": [
|
|
13529
13659
|
{
|
|
13530
|
-
"
|
|
13531
|
-
"
|
|
13532
|
-
|
|
13533
|
-
"name": "SlotController",
|
|
13534
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13660
|
+
"name": "condition",
|
|
13661
|
+
"type": {
|
|
13662
|
+
"text": "false"
|
|
13535
13663
|
}
|
|
13536
13664
|
},
|
|
13537
13665
|
{
|
|
13538
|
-
"
|
|
13539
|
-
"
|
|
13540
|
-
|
|
13541
|
-
"inheritedFrom": {
|
|
13542
|
-
"name": "SlotController",
|
|
13543
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
13666
|
+
"name": "trueCase",
|
|
13667
|
+
"type": {
|
|
13668
|
+
"text": "any"
|
|
13544
13669
|
}
|
|
13545
13670
|
}
|
|
13546
13671
|
],
|
|
13547
|
-
"
|
|
13548
|
-
|
|
13549
|
-
"module": "/src/common/controllers/SlotController.js"
|
|
13550
|
-
},
|
|
13551
|
-
"status": null,
|
|
13552
|
-
"category": null,
|
|
13553
|
-
"displayName": null
|
|
13554
|
-
}
|
|
13555
|
-
],
|
|
13556
|
-
"exports": [
|
|
13557
|
-
{
|
|
13558
|
-
"kind": "js",
|
|
13559
|
-
"name": "LightSlotController",
|
|
13560
|
-
"declaration": {
|
|
13561
|
-
"name": "LightSlotController",
|
|
13562
|
-
"module": "src/common/controllers/LightSlotController.ts"
|
|
13563
|
-
}
|
|
13564
|
-
}
|
|
13565
|
-
]
|
|
13566
|
-
},
|
|
13567
|
-
{
|
|
13568
|
-
"kind": "javascript-module",
|
|
13569
|
-
"path": "src/common/controllers/MediaQueryController.ts",
|
|
13570
|
-
"declarations": [
|
|
13672
|
+
"description": "condition is false, to will always return nothing"
|
|
13673
|
+
},
|
|
13571
13674
|
{
|
|
13572
|
-
"kind": "
|
|
13573
|
-
"
|
|
13574
|
-
"
|
|
13575
|
-
|
|
13675
|
+
"kind": "function",
|
|
13676
|
+
"name": "cond",
|
|
13677
|
+
"return": {
|
|
13678
|
+
"type": {
|
|
13679
|
+
"text": "typeof trueCase | typeof falseCase"
|
|
13680
|
+
}
|
|
13681
|
+
},
|
|
13682
|
+
"parameters": [
|
|
13576
13683
|
{
|
|
13577
|
-
"
|
|
13578
|
-
"name": "mq",
|
|
13684
|
+
"name": "condition",
|
|
13579
13685
|
"type": {
|
|
13580
|
-
"text": "
|
|
13581
|
-
}
|
|
13582
|
-
"privacy": "private"
|
|
13686
|
+
"text": "unknown"
|
|
13687
|
+
}
|
|
13583
13688
|
},
|
|
13584
13689
|
{
|
|
13585
|
-
"
|
|
13586
|
-
"
|
|
13690
|
+
"name": "trueCase",
|
|
13691
|
+
"type": {
|
|
13692
|
+
"text": "any"
|
|
13693
|
+
}
|
|
13587
13694
|
},
|
|
13588
13695
|
{
|
|
13589
|
-
"
|
|
13590
|
-
"
|
|
13696
|
+
"name": "falseCase",
|
|
13697
|
+
"type": {
|
|
13698
|
+
"text": "any"
|
|
13699
|
+
}
|
|
13700
|
+
}
|
|
13701
|
+
],
|
|
13702
|
+
"description": "if condition is truthy, return trueCase, otherwise return falseCase"
|
|
13703
|
+
},
|
|
13704
|
+
{
|
|
13705
|
+
"kind": "function",
|
|
13706
|
+
"name": "cond",
|
|
13707
|
+
"return": {
|
|
13708
|
+
"type": {
|
|
13709
|
+
"text": "typeof trueCase"
|
|
13710
|
+
}
|
|
13711
|
+
},
|
|
13712
|
+
"parameters": [
|
|
13713
|
+
{
|
|
13714
|
+
"name": "condition",
|
|
13715
|
+
"type": {
|
|
13716
|
+
"text": "true"
|
|
13717
|
+
}
|
|
13591
13718
|
},
|
|
13592
13719
|
{
|
|
13593
|
-
"
|
|
13594
|
-
"
|
|
13720
|
+
"name": "trueCase",
|
|
13721
|
+
"type": {
|
|
13722
|
+
"text": "any"
|
|
13723
|
+
}
|
|
13595
13724
|
},
|
|
13596
13725
|
{
|
|
13597
|
-
"
|
|
13598
|
-
"
|
|
13726
|
+
"name": "falseCase",
|
|
13727
|
+
"type": {
|
|
13728
|
+
"text": "any"
|
|
13729
|
+
}
|
|
13599
13730
|
}
|
|
13600
|
-
]
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
"exports": [
|
|
13604
|
-
{
|
|
13605
|
-
"kind": "js",
|
|
13606
|
-
"name": "MediaQueryController",
|
|
13607
|
-
"declaration": {
|
|
13608
|
-
"name": "MediaQueryController",
|
|
13609
|
-
"module": "src/common/controllers/MediaQueryController.ts"
|
|
13610
|
-
}
|
|
13611
|
-
}
|
|
13612
|
-
]
|
|
13613
|
-
},
|
|
13614
|
-
{
|
|
13615
|
-
"kind": "javascript-module",
|
|
13616
|
-
"path": "src/common/controllers/PortalController.ts",
|
|
13617
|
-
"declarations": [
|
|
13731
|
+
],
|
|
13732
|
+
"description": "condition is true, so always return trueCase"
|
|
13733
|
+
},
|
|
13618
13734
|
{
|
|
13619
|
-
"kind": "
|
|
13620
|
-
"
|
|
13621
|
-
"
|
|
13622
|
-
|
|
13735
|
+
"kind": "function",
|
|
13736
|
+
"name": "cond",
|
|
13737
|
+
"return": {
|
|
13738
|
+
"type": {
|
|
13739
|
+
"text": "typeof falseCase"
|
|
13740
|
+
}
|
|
13741
|
+
},
|
|
13742
|
+
"parameters": [
|
|
13623
13743
|
{
|
|
13624
|
-
"
|
|
13625
|
-
"name": "renderHook",
|
|
13744
|
+
"name": "condition",
|
|
13626
13745
|
"type": {
|
|
13627
|
-
"text": "
|
|
13628
|
-
}
|
|
13629
|
-
"privacy": "private"
|
|
13746
|
+
"text": "false"
|
|
13747
|
+
}
|
|
13630
13748
|
},
|
|
13631
13749
|
{
|
|
13632
|
-
"
|
|
13633
|
-
"name": "lightDom",
|
|
13750
|
+
"name": "trueCase",
|
|
13634
13751
|
"type": {
|
|
13635
|
-
"text": "
|
|
13636
|
-
}
|
|
13637
|
-
"privacy": "private",
|
|
13638
|
-
"default": "new LightDomController(host, {\n render: () => this.options.render.call(host),\n container: options.outlet,\n renderOptions: {\n renderBefore: this.renderHook,\n host,\n },\n })"
|
|
13752
|
+
"text": "any"
|
|
13753
|
+
}
|
|
13639
13754
|
},
|
|
13640
13755
|
{
|
|
13641
|
-
"
|
|
13642
|
-
"
|
|
13756
|
+
"name": "falseCase",
|
|
13757
|
+
"type": {
|
|
13758
|
+
"text": "any"
|
|
13759
|
+
}
|
|
13760
|
+
}
|
|
13761
|
+
],
|
|
13762
|
+
"description": "condition is false, so always return falseCase"
|
|
13763
|
+
},
|
|
13764
|
+
{
|
|
13765
|
+
"kind": "function",
|
|
13766
|
+
"name": "cond",
|
|
13767
|
+
"parameters": [
|
|
13768
|
+
{
|
|
13769
|
+
"name": "condition",
|
|
13770
|
+
"type": {
|
|
13771
|
+
"text": "unknown"
|
|
13772
|
+
}
|
|
13643
13773
|
},
|
|
13644
13774
|
{
|
|
13645
|
-
"
|
|
13646
|
-
"
|
|
13775
|
+
"name": "trueCase",
|
|
13776
|
+
"default": "condition",
|
|
13777
|
+
"type": {
|
|
13778
|
+
"text": "any"
|
|
13779
|
+
}
|
|
13647
13780
|
},
|
|
13648
13781
|
{
|
|
13649
|
-
"
|
|
13650
|
-
"
|
|
13782
|
+
"name": "falseCase",
|
|
13783
|
+
"default": "nothing",
|
|
13784
|
+
"type": {
|
|
13785
|
+
"text": "any"
|
|
13786
|
+
}
|
|
13651
13787
|
}
|
|
13652
13788
|
]
|
|
13653
13789
|
}
|
|
@@ -13655,329 +13791,222 @@
|
|
|
13655
13791
|
"exports": [
|
|
13656
13792
|
{
|
|
13657
13793
|
"kind": "js",
|
|
13658
|
-
"name": "
|
|
13794
|
+
"name": "cond",
|
|
13659
13795
|
"declaration": {
|
|
13660
|
-
"name": "
|
|
13661
|
-
"module": "src/common/
|
|
13796
|
+
"name": "cond",
|
|
13797
|
+
"module": "src/common/directives/cond.ts"
|
|
13662
13798
|
}
|
|
13663
|
-
}
|
|
13664
|
-
]
|
|
13665
|
-
},
|
|
13666
|
-
{
|
|
13667
|
-
"kind": "javascript-module",
|
|
13668
|
-
"path": "src/common/controllers/ScrollbarController.ts",
|
|
13669
|
-
"declarations": [
|
|
13799
|
+
},
|
|
13670
13800
|
{
|
|
13671
|
-
"kind": "
|
|
13672
|
-
"
|
|
13673
|
-
"
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
"privacy": "private",
|
|
13679
|
-
"default": "new Set<() => void>()"
|
|
13680
|
-
},
|
|
13681
|
-
{
|
|
13682
|
-
"kind": "method",
|
|
13683
|
-
"name": "hostDisconnected"
|
|
13684
|
-
},
|
|
13685
|
-
{
|
|
13686
|
-
"kind": "field",
|
|
13687
|
-
"name": "width"
|
|
13688
|
-
},
|
|
13689
|
-
{
|
|
13690
|
-
"kind": "method",
|
|
13691
|
-
"name": "hide"
|
|
13692
|
-
},
|
|
13693
|
-
{
|
|
13694
|
-
"kind": "method",
|
|
13695
|
-
"name": "restore"
|
|
13696
|
-
},
|
|
13697
|
-
{
|
|
13698
|
-
"kind": "method",
|
|
13699
|
-
"name": "setStyle",
|
|
13700
|
-
"privacy": "private",
|
|
13701
|
-
"parameters": [
|
|
13702
|
-
{
|
|
13703
|
-
"name": "property",
|
|
13704
|
-
"type": {
|
|
13705
|
-
"text": "string"
|
|
13706
|
-
}
|
|
13707
|
-
},
|
|
13708
|
-
{
|
|
13709
|
-
"name": "value",
|
|
13710
|
-
"type": {
|
|
13711
|
-
"text": "string"
|
|
13712
|
-
}
|
|
13713
|
-
}
|
|
13714
|
-
]
|
|
13715
|
-
}
|
|
13716
|
-
]
|
|
13717
|
-
}
|
|
13718
|
-
],
|
|
13719
|
-
"exports": [
|
|
13801
|
+
"kind": "js",
|
|
13802
|
+
"name": "cond",
|
|
13803
|
+
"declaration": {
|
|
13804
|
+
"name": "cond",
|
|
13805
|
+
"module": "src/common/directives/cond.ts"
|
|
13806
|
+
}
|
|
13807
|
+
},
|
|
13720
13808
|
{
|
|
13721
13809
|
"kind": "js",
|
|
13722
|
-
"name": "
|
|
13810
|
+
"name": "cond",
|
|
13723
13811
|
"declaration": {
|
|
13724
|
-
"name": "
|
|
13725
|
-
"module": "src/common/
|
|
13812
|
+
"name": "cond",
|
|
13813
|
+
"module": "src/common/directives/cond.ts"
|
|
13726
13814
|
}
|
|
13727
|
-
}
|
|
13728
|
-
]
|
|
13729
|
-
},
|
|
13730
|
-
{
|
|
13731
|
-
"kind": "javascript-module",
|
|
13732
|
-
"path": "src/common/controllers/ShortcutController.ts",
|
|
13733
|
-
"declarations": [
|
|
13815
|
+
},
|
|
13734
13816
|
{
|
|
13735
|
-
"kind": "
|
|
13736
|
-
"
|
|
13737
|
-
"
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
"type": {
|
|
13743
|
-
"text": "ReturnType<typeof tinykeys> | undefined"
|
|
13744
|
-
},
|
|
13745
|
-
"privacy": "private"
|
|
13746
|
-
},
|
|
13747
|
-
{
|
|
13748
|
-
"kind": "method",
|
|
13749
|
-
"name": "hostConnected"
|
|
13750
|
-
},
|
|
13751
|
-
{
|
|
13752
|
-
"kind": "method",
|
|
13753
|
-
"name": "hostDisconnected"
|
|
13754
|
-
},
|
|
13755
|
-
{
|
|
13756
|
-
"kind": "method",
|
|
13757
|
-
"name": "unbind"
|
|
13758
|
-
},
|
|
13759
|
-
{
|
|
13760
|
-
"kind": "method",
|
|
13761
|
-
"name": "bind",
|
|
13762
|
-
"parameters": [
|
|
13763
|
-
{
|
|
13764
|
-
"name": "shortcuts",
|
|
13765
|
-
"type": {
|
|
13766
|
-
"text": "KeyBindingMap"
|
|
13767
|
-
}
|
|
13768
|
-
}
|
|
13769
|
-
]
|
|
13770
|
-
}
|
|
13771
|
-
]
|
|
13772
|
-
}
|
|
13773
|
-
],
|
|
13774
|
-
"exports": [
|
|
13817
|
+
"kind": "js",
|
|
13818
|
+
"name": "cond",
|
|
13819
|
+
"declaration": {
|
|
13820
|
+
"name": "cond",
|
|
13821
|
+
"module": "src/common/directives/cond.ts"
|
|
13822
|
+
}
|
|
13823
|
+
},
|
|
13775
13824
|
{
|
|
13776
13825
|
"kind": "js",
|
|
13777
|
-
"name": "
|
|
13826
|
+
"name": "cond",
|
|
13778
13827
|
"declaration": {
|
|
13779
|
-
"name": "
|
|
13780
|
-
"module": "src/common/
|
|
13828
|
+
"name": "cond",
|
|
13829
|
+
"module": "src/common/directives/cond.ts"
|
|
13781
13830
|
}
|
|
13782
13831
|
},
|
|
13783
13832
|
{
|
|
13784
13833
|
"kind": "js",
|
|
13785
|
-
"name": "
|
|
13834
|
+
"name": "cond",
|
|
13786
13835
|
"declaration": {
|
|
13787
|
-
"name": "
|
|
13788
|
-
"module": "src/common/
|
|
13836
|
+
"name": "cond",
|
|
13837
|
+
"module": "src/common/directives/cond.ts"
|
|
13789
13838
|
}
|
|
13790
|
-
}
|
|
13791
|
-
]
|
|
13792
|
-
},
|
|
13793
|
-
{
|
|
13794
|
-
"kind": "javascript-module",
|
|
13795
|
-
"path": "src/common/controllers/SlotController.ts",
|
|
13796
|
-
"declarations": [
|
|
13839
|
+
},
|
|
13797
13840
|
{
|
|
13798
|
-
"kind": "
|
|
13799
|
-
"
|
|
13800
|
-
"
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
"type": {
|
|
13806
|
-
"text": "EventController"
|
|
13807
|
-
},
|
|
13808
|
-
"privacy": "private",
|
|
13809
|
-
"default": "new EventController(host)"
|
|
13810
|
-
},
|
|
13811
|
-
{
|
|
13812
|
-
"kind": "method",
|
|
13813
|
-
"name": "hostConnected"
|
|
13814
|
-
},
|
|
13815
|
-
{
|
|
13816
|
-
"kind": "field",
|
|
13817
|
-
"name": "hasContent"
|
|
13818
|
-
},
|
|
13819
|
-
{
|
|
13820
|
-
"kind": "field",
|
|
13821
|
-
"name": "isEmpty"
|
|
13822
|
-
},
|
|
13823
|
-
{
|
|
13824
|
-
"kind": "field",
|
|
13825
|
-
"name": "content"
|
|
13826
|
-
},
|
|
13827
|
-
{
|
|
13828
|
-
"kind": "field",
|
|
13829
|
-
"name": "handleSlotChange",
|
|
13830
|
-
"privacy": "private"
|
|
13831
|
-
},
|
|
13832
|
-
{
|
|
13833
|
-
"kind": "method",
|
|
13834
|
-
"name": "onChange",
|
|
13835
|
-
"privacy": "protected",
|
|
13836
|
-
"parameters": [
|
|
13837
|
-
{
|
|
13838
|
-
"name": "_e",
|
|
13839
|
-
"type": {
|
|
13840
|
-
"text": "Event"
|
|
13841
|
-
}
|
|
13842
|
-
}
|
|
13843
|
-
]
|
|
13844
|
-
}
|
|
13845
|
-
]
|
|
13846
|
-
}
|
|
13847
|
-
],
|
|
13848
|
-
"exports": [
|
|
13841
|
+
"kind": "js",
|
|
13842
|
+
"name": "cond",
|
|
13843
|
+
"declaration": {
|
|
13844
|
+
"name": "cond",
|
|
13845
|
+
"module": "src/common/directives/cond.ts"
|
|
13846
|
+
}
|
|
13847
|
+
},
|
|
13849
13848
|
{
|
|
13850
13849
|
"kind": "js",
|
|
13851
|
-
"name": "
|
|
13850
|
+
"name": "cond",
|
|
13852
13851
|
"declaration": {
|
|
13853
|
-
"name": "
|
|
13854
|
-
"module": "src/common/
|
|
13852
|
+
"name": "cond",
|
|
13853
|
+
"module": "src/common/directives/cond.ts"
|
|
13855
13854
|
}
|
|
13856
13855
|
}
|
|
13857
13856
|
]
|
|
13858
13857
|
},
|
|
13859
13858
|
{
|
|
13860
13859
|
"kind": "javascript-module",
|
|
13861
|
-
"path": "src/common/
|
|
13860
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
13862
13861
|
"declarations": [
|
|
13863
13862
|
{
|
|
13864
|
-
"kind": "
|
|
13865
|
-
"
|
|
13866
|
-
"
|
|
13867
|
-
|
|
13863
|
+
"kind": "function",
|
|
13864
|
+
"name": "wrapIf",
|
|
13865
|
+
"return": {
|
|
13866
|
+
"type": {
|
|
13867
|
+
"text": "TInner"
|
|
13868
|
+
}
|
|
13869
|
+
},
|
|
13870
|
+
"parameters": [
|
|
13868
13871
|
{
|
|
13869
|
-
"
|
|
13870
|
-
"name": "events",
|
|
13872
|
+
"name": "condition",
|
|
13871
13873
|
"type": {
|
|
13872
|
-
"text": "
|
|
13873
|
-
}
|
|
13874
|
-
"privacy": "private",
|
|
13875
|
-
"default": "new EventController(host)"
|
|
13874
|
+
"text": "false"
|
|
13875
|
+
}
|
|
13876
13876
|
},
|
|
13877
13877
|
{
|
|
13878
|
-
"
|
|
13879
|
-
"name": "hadFirstUpdate",
|
|
13878
|
+
"name": "inner",
|
|
13880
13879
|
"type": {
|
|
13881
|
-
"text": "
|
|
13882
|
-
}
|
|
13883
|
-
"privacy": "private",
|
|
13884
|
-
"default": "false"
|
|
13880
|
+
"text": "() => TInner"
|
|
13881
|
+
}
|
|
13885
13882
|
},
|
|
13886
13883
|
{
|
|
13887
|
-
"
|
|
13888
|
-
"name": "initialTouchX",
|
|
13884
|
+
"name": "wrapper",
|
|
13889
13885
|
"type": {
|
|
13890
|
-
"text": "
|
|
13891
|
-
}
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13886
|
+
"text": "(inner: TInner) => TWrapper"
|
|
13887
|
+
}
|
|
13888
|
+
}
|
|
13889
|
+
]
|
|
13890
|
+
},
|
|
13891
|
+
{
|
|
13892
|
+
"kind": "function",
|
|
13893
|
+
"name": "wrapIf",
|
|
13894
|
+
"return": {
|
|
13895
|
+
"type": {
|
|
13896
|
+
"text": "TWrapper"
|
|
13897
|
+
}
|
|
13898
|
+
},
|
|
13899
|
+
"parameters": [
|
|
13895
13900
|
{
|
|
13896
|
-
"
|
|
13897
|
-
"name": "initialTouchY",
|
|
13901
|
+
"name": "condition",
|
|
13898
13902
|
"type": {
|
|
13899
|
-
"text": "
|
|
13900
|
-
}
|
|
13901
|
-
"privacy": "private",
|
|
13902
|
-
"default": "0"
|
|
13903
|
+
"text": "true"
|
|
13904
|
+
}
|
|
13903
13905
|
},
|
|
13904
13906
|
{
|
|
13905
|
-
"
|
|
13906
|
-
"name": "options",
|
|
13907
|
+
"name": "inner",
|
|
13907
13908
|
"type": {
|
|
13908
|
-
"text": "
|
|
13909
|
-
}
|
|
13910
|
-
"privacy": "private",
|
|
13911
|
-
"default": "{\n target: () => host,\n ...options,\n }"
|
|
13912
|
-
},
|
|
13913
|
-
{
|
|
13914
|
-
"kind": "method",
|
|
13915
|
-
"name": "hostUpdated"
|
|
13916
|
-
},
|
|
13917
|
-
{
|
|
13918
|
-
"kind": "method",
|
|
13919
|
-
"name": "hostDisconnected"
|
|
13920
|
-
},
|
|
13921
|
-
{
|
|
13922
|
-
"kind": "field",
|
|
13923
|
-
"name": "handleTouchStart",
|
|
13924
|
-
"privacy": "private"
|
|
13909
|
+
"text": "() => TInner"
|
|
13910
|
+
}
|
|
13925
13911
|
},
|
|
13926
13912
|
{
|
|
13927
|
-
"
|
|
13928
|
-
"
|
|
13929
|
-
|
|
13913
|
+
"name": "wrapper",
|
|
13914
|
+
"type": {
|
|
13915
|
+
"text": "(inner: TInner) => TWrapper"
|
|
13916
|
+
}
|
|
13930
13917
|
}
|
|
13931
13918
|
]
|
|
13932
13919
|
},
|
|
13933
13920
|
{
|
|
13934
13921
|
"kind": "function",
|
|
13935
|
-
"name": "
|
|
13922
|
+
"name": "wrapIf",
|
|
13923
|
+
"return": {
|
|
13924
|
+
"type": {
|
|
13925
|
+
"text": "TInner | TWrapper"
|
|
13926
|
+
}
|
|
13927
|
+
},
|
|
13936
13928
|
"parameters": [
|
|
13937
13929
|
{
|
|
13938
|
-
"name": "
|
|
13930
|
+
"name": "condition",
|
|
13939
13931
|
"type": {
|
|
13940
|
-
"text": "
|
|
13932
|
+
"text": "unknown"
|
|
13933
|
+
}
|
|
13934
|
+
},
|
|
13935
|
+
{
|
|
13936
|
+
"name": "inner",
|
|
13937
|
+
"type": {
|
|
13938
|
+
"text": "() => TInner"
|
|
13939
|
+
}
|
|
13940
|
+
},
|
|
13941
|
+
{
|
|
13942
|
+
"name": "wrapper",
|
|
13943
|
+
"type": {
|
|
13944
|
+
"text": "(inner: TInner) => TWrapper"
|
|
13941
13945
|
}
|
|
13942
13946
|
}
|
|
13943
13947
|
]
|
|
13944
13948
|
},
|
|
13945
13949
|
{
|
|
13946
13950
|
"kind": "function",
|
|
13947
|
-
"name": "
|
|
13951
|
+
"name": "wrapIf",
|
|
13948
13952
|
"parameters": [
|
|
13949
13953
|
{
|
|
13950
|
-
"name": "
|
|
13954
|
+
"name": "condition",
|
|
13951
13955
|
"type": {
|
|
13952
|
-
"text": "
|
|
13956
|
+
"text": "any"
|
|
13957
|
+
}
|
|
13958
|
+
},
|
|
13959
|
+
{
|
|
13960
|
+
"name": "inner",
|
|
13961
|
+
"type": {
|
|
13962
|
+
"text": "() => TInner"
|
|
13963
|
+
}
|
|
13964
|
+
},
|
|
13965
|
+
{
|
|
13966
|
+
"name": "wrapper",
|
|
13967
|
+
"type": {
|
|
13968
|
+
"text": "(innards: TInner) => TWrapper"
|
|
13953
13969
|
}
|
|
13954
13970
|
}
|
|
13955
|
-
]
|
|
13971
|
+
],
|
|
13972
|
+
"return": {
|
|
13973
|
+
"type": {
|
|
13974
|
+
"text": ""
|
|
13975
|
+
}
|
|
13976
|
+
}
|
|
13956
13977
|
}
|
|
13957
13978
|
],
|
|
13958
13979
|
"exports": [
|
|
13959
13980
|
{
|
|
13960
13981
|
"kind": "js",
|
|
13961
|
-
"name": "
|
|
13982
|
+
"name": "wrapIf",
|
|
13962
13983
|
"declaration": {
|
|
13963
|
-
"name": "
|
|
13964
|
-
"module": "src/common/
|
|
13984
|
+
"name": "wrapIf",
|
|
13985
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
13965
13986
|
}
|
|
13966
13987
|
},
|
|
13967
13988
|
{
|
|
13968
13989
|
"kind": "js",
|
|
13969
|
-
"name": "
|
|
13990
|
+
"name": "wrapIf",
|
|
13970
13991
|
"declaration": {
|
|
13971
|
-
"name": "
|
|
13972
|
-
"module": "src/common/
|
|
13992
|
+
"name": "wrapIf",
|
|
13993
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
13973
13994
|
}
|
|
13974
13995
|
},
|
|
13975
13996
|
{
|
|
13976
13997
|
"kind": "js",
|
|
13977
|
-
"name": "
|
|
13998
|
+
"name": "wrapIf",
|
|
13978
13999
|
"declaration": {
|
|
13979
|
-
"name": "
|
|
13980
|
-
"module": "src/common/
|
|
14000
|
+
"name": "wrapIf",
|
|
14001
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
14002
|
+
}
|
|
14003
|
+
},
|
|
14004
|
+
{
|
|
14005
|
+
"kind": "js",
|
|
14006
|
+
"name": "wrapIf",
|
|
14007
|
+
"declaration": {
|
|
14008
|
+
"name": "wrapIf",
|
|
14009
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
13981
14010
|
}
|
|
13982
14011
|
}
|
|
13983
14012
|
]
|