@nordhealth/components 1.0.0-alpha.40 → 1.0.0-alpha.44

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.
Files changed (116) hide show
  1. package/custom-elements.json +3225 -876
  2. package/lib/Badge.js +1 -1
  3. package/lib/Badge.js.map +1 -1
  4. package/lib/Button.js +1 -1
  5. package/lib/Button.js.map +1 -1
  6. package/lib/Calendar-3ce42a4e.js +13 -0
  7. package/lib/Calendar-3ce42a4e.js.map +1 -0
  8. package/lib/Calendar.js +2 -0
  9. package/lib/Calendar.js.map +1 -0
  10. package/lib/Card.js +1 -1
  11. package/lib/Card.js.map +1 -1
  12. package/lib/CommandMenu.js +2 -2
  13. package/lib/CommandMenu.js.map +1 -1
  14. package/lib/CommandMenuAction.js +1 -1
  15. package/lib/CommandMenuAction.js.map +1 -1
  16. package/lib/DatePicker.js +2 -0
  17. package/lib/DatePicker.js.map +1 -0
  18. package/lib/DateSelectEvent.js +2 -0
  19. package/lib/DateSelectEvent.js.map +1 -0
  20. package/lib/DraftComponentMixin-1d7c27bc.js +21 -0
  21. package/lib/DraftComponentMixin-1d7c27bc.js.map +1 -0
  22. package/lib/FormField-51d4bc33.js +2 -0
  23. package/lib/FormField-51d4bc33.js.map +1 -0
  24. package/lib/Icon.js +1 -1
  25. package/lib/Icon.js.map +1 -1
  26. package/lib/Input.js +1 -1
  27. package/lib/Input.js.map +1 -1
  28. package/lib/InputMixin-3557c381.js +2 -0
  29. package/lib/{InputMixin-6c108de4.js.map → InputMixin-3557c381.js.map} +1 -1
  30. package/lib/KeyboardController.js +1 -1
  31. package/lib/KeyboardController.js.map +1 -1
  32. package/lib/LightDismissController-62f9b7d6.js +2 -0
  33. package/lib/LightDismissController-62f9b7d6.js.map +1 -0
  34. package/lib/Select.js +1 -1
  35. package/lib/Select.js.map +1 -1
  36. package/lib/ShortcutController-00c16c78.js +2 -0
  37. package/lib/ShortcutController-00c16c78.js.map +1 -0
  38. package/lib/Spinner.js +1 -1
  39. package/lib/Spinner.js.map +1 -1
  40. package/lib/Stack.js +1 -1
  41. package/lib/Stack.js.map +1 -1
  42. package/lib/Table.js +1 -1
  43. package/lib/Table.js.map +1 -1
  44. package/lib/TextField-fa6242da.js +2 -0
  45. package/lib/TextField-fa6242da.js.map +1 -0
  46. package/lib/Textarea.js +1 -1
  47. package/lib/Textarea.js.map +1 -1
  48. package/lib/VisuallyHidden.js +1 -1
  49. package/lib/VisuallyHidden.js.map +1 -1
  50. package/lib/calendar-localization.js +2 -0
  51. package/lib/calendar-localization.js.map +1 -0
  52. package/lib/class-map-756151db.js +7 -0
  53. package/lib/class-map-756151db.js.map +1 -0
  54. package/lib/collection-f3631dc8.js +2 -0
  55. package/lib/collection-f3631dc8.js.map +1 -0
  56. package/lib/date-adapter.js +2 -0
  57. package/lib/date-adapter.js.map +1 -0
  58. package/lib/date-localization.js +2 -0
  59. package/lib/date-localization.js.map +1 -0
  60. package/lib/dates-ccf5a897.js +2 -0
  61. package/lib/dates-ccf5a897.js.map +1 -0
  62. package/lib/if-defined-9acae812.js +7 -0
  63. package/lib/{if-defined-617ae549.js.map → if-defined-9acae812.js.map} +1 -1
  64. package/lib/index.js +1 -1
  65. package/lib/lit-element-5ddf42d5.js +24 -0
  66. package/lib/lit-element-5ddf42d5.js.map +1 -0
  67. package/lib/month-view.js +2 -0
  68. package/lib/month-view.js.map +1 -0
  69. package/lib/number-3ff8cd9b.js +2 -0
  70. package/lib/number-3ff8cd9b.js.map +1 -0
  71. package/lib/{ref-65ef7607.js → ref-9addd32e.js} +4 -4
  72. package/lib/{ref-65ef7607.js.map → ref-9addd32e.js.map} +1 -1
  73. package/lib/src/button/Button.d.ts +1 -3
  74. package/lib/src/calendar/Calendar.d.ts +86 -0
  75. package/lib/src/calendar/DateSelectEvent.d.ts +6 -0
  76. package/lib/src/calendar/calendar-localization.d.ts +15 -0
  77. package/lib/src/calendar/month-view.d.ts +32 -0
  78. package/lib/src/card/Card.test.d.ts +2 -0
  79. package/lib/src/common/collection.d.ts +15 -0
  80. package/lib/src/common/controllers/DirectionController.d.ts +14 -0
  81. package/lib/src/common/controllers/LightDismissController.d.ts +1 -0
  82. package/lib/src/common/controllers/SwipeController.d.ts +32 -0
  83. package/lib/src/common/dates.d.ts +50 -0
  84. package/lib/src/common/dates.test.d.ts +1 -0
  85. package/lib/src/common/input.d.ts +1 -0
  86. package/lib/src/common/mixins/FormAssociatedMixin.d.ts +1 -0
  87. package/lib/src/common/number.d.ts +1 -0
  88. package/lib/src/date-picker/DatePicker.d.ts +116 -0
  89. package/lib/src/date-picker/DatePicker.test.d.ts +1 -0
  90. package/lib/src/date-picker/date-adapter.d.ts +10 -0
  91. package/lib/src/date-picker/date-localization.d.ts +8 -0
  92. package/lib/src/index.d.ts +2 -0
  93. package/lib/src/input/Input.d.ts +1 -0
  94. package/lib/src/input/Input.test.d.ts +1 -0
  95. package/lib/state-70f38ceb.js +7 -0
  96. package/lib/state-70f38ceb.js.map +1 -0
  97. package/lib/tinykeys.module-26a9f7a7.js +2 -0
  98. package/lib/tinykeys.module-26a9f7a7.js.map +1 -0
  99. package/lib/unsafe-html-c7264329.js +7 -0
  100. package/lib/{unsafe-html-21f62902.js.map → unsafe-html-c7264329.js.map} +1 -1
  101. package/package.json +8 -4
  102. package/lib/CommandMenuAction-b286bcbb.js +0 -7
  103. package/lib/CommandMenuAction-b286bcbb.js.map +0 -1
  104. package/lib/DraftComponentMixin-4bb26f5d.js +0 -44
  105. package/lib/DraftComponentMixin-4bb26f5d.js.map +0 -1
  106. package/lib/FormField-02dd3b4f.js +0 -2
  107. package/lib/FormField-02dd3b4f.js.map +0 -1
  108. package/lib/Icon-559d954d.js +0 -7
  109. package/lib/Icon-559d954d.js.map +0 -1
  110. package/lib/InputMixin-6c108de4.js +0 -2
  111. package/lib/KeyboardController-28c7135b.js +0 -2
  112. package/lib/KeyboardController-28c7135b.js.map +0 -1
  113. package/lib/TextField-bfdc253c.js +0 -2
  114. package/lib/TextField-bfdc253c.js.map +0 -1
  115. package/lib/if-defined-617ae549.js +0 -7
  116. package/lib/unsafe-html-21f62902.js +0 -7
@@ -110,6 +110,22 @@
110
110
  "name": "default",
111
111
  "module": "\"./textarea/Textarea.js\""
112
112
  }
113
+ },
114
+ {
115
+ "kind": "js",
116
+ "name": "Calendar",
117
+ "declaration": {
118
+ "name": "default",
119
+ "module": "\"./calendar/Calendar.js\""
120
+ }
121
+ },
122
+ {
123
+ "kind": "js",
124
+ "name": "DatePicker",
125
+ "declaration": {
126
+ "name": "default",
127
+ "module": "\"./date-picker/DatePicker.js\""
128
+ }
113
129
  }
114
130
  ]
115
131
  },
@@ -225,7 +241,7 @@
225
241
  "members": [
226
242
  {
227
243
  "kind": "field",
228
- "name": "_proxyButton",
244
+ "name": "buttonRef",
229
245
  "privacy": "private"
230
246
  },
231
247
  {
@@ -318,11 +334,6 @@
318
334
  "name": "syncProxyButton",
319
335
  "privacy": "private"
320
336
  },
321
- {
322
- "kind": "method",
323
- "name": "cleanupProxyButton",
324
- "privacy": "private"
325
- },
326
337
  {
327
338
  "kind": "field",
328
339
  "name": "disabled",
@@ -354,8 +365,9 @@
354
365
  "kind": "field",
355
366
  "name": "value",
356
367
  "type": {
357
- "text": "string | undefined"
368
+ "text": "string"
358
369
  },
370
+ "default": "\"\"",
359
371
  "description": "The value of the input component.",
360
372
  "attribute": "value",
361
373
  "inheritedFrom": {
@@ -525,8 +537,9 @@
525
537
  {
526
538
  "name": "value",
527
539
  "type": {
528
- "text": "string | undefined"
540
+ "text": "string"
529
541
  },
542
+ "default": "\"\"",
530
543
  "description": "The value of the input component.",
531
544
  "fieldName": "value",
532
545
  "inheritedFrom": {
@@ -580,563 +593,2536 @@
580
593
  },
581
594
  {
582
595
  "kind": "javascript-module",
583
- "path": "src/card/Card.ts",
596
+ "path": "src/calendar/Calendar.ts",
584
597
  "declarations": [
585
598
  {
586
599
  "kind": "class",
587
- "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
588
- "name": "Card",
589
- "slots": [
600
+ "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 IS0-8601 format.",
601
+ "name": "Calendar",
602
+ "members": [
590
603
  {
591
- "description": "The card content.",
592
- "name": ""
604
+ "kind": "field",
605
+ "name": "dialogLabelId",
606
+ "type": {
607
+ "text": "string"
608
+ },
609
+ "privacy": "private",
610
+ "default": "\"dialog-header\""
593
611
  },
594
612
  {
595
- "description": "Optional slot that holds a header for the card.",
596
- "name": "header"
613
+ "kind": "field",
614
+ "name": "monthSelectNode",
615
+ "type": {
616
+ "text": "HTMLElement"
617
+ },
618
+ "privacy": "private"
597
619
  },
598
620
  {
599
- "description": "Optional slot that holds footer content for the card.",
600
- "name": "footer"
601
- }
602
- ],
603
- "members": [
621
+ "kind": "field",
622
+ "name": "focusedDayNode",
623
+ "type": {
624
+ "text": "HTMLButtonElement"
625
+ },
626
+ "privacy": "private"
627
+ },
604
628
  {
605
629
  "kind": "field",
606
- "name": "slots",
630
+ "name": "direction",
607
631
  "privacy": "private",
608
- "default": "new SlotController(this)"
632
+ "default": "new DirectionController(this)"
609
633
  },
610
634
  {
611
635
  "kind": "field",
612
- "name": "padding",
613
- "type": {
614
- "text": "\"m\" | \"l\" | \"none\""
615
- },
616
- "default": "\"m\"",
617
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
618
- "attribute": "padding",
619
- "reflects": true
636
+ "name": "swipe",
637
+ "privacy": "private",
638
+ "default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
620
639
  },
621
640
  {
622
641
  "kind": "field",
623
- "name": "_warningLogged",
642
+ "name": "shortcuts",
643
+ "privacy": "private"
644
+ },
645
+ {
646
+ "kind": "field",
647
+ "name": "dateFormatShort",
624
648
  "type": {
625
- "text": "boolean"
649
+ "text": "Intl.DateTimeFormat"
626
650
  },
627
651
  "privacy": "private",
628
- "static": true,
629
- "default": "false",
630
- "inheritedFrom": {
631
- "name": "DraftComponentMixin",
632
- "module": "src/common/mixins/DraftComponentMixin.ts"
633
- }
634
- }
635
- ],
636
- "attributes": [
652
+ "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"
653
+ },
637
654
  {
638
- "name": "padding",
655
+ "kind": "field",
656
+ "name": "localization",
639
657
  "type": {
640
- "text": "\"m\" | \"l\" | \"none\""
658
+ "text": "CalendarLocalizedText"
641
659
  },
642
- "default": "\"m\"",
643
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
644
- "fieldName": "padding"
645
- }
646
- ],
647
- "mixins": [
648
- {
649
- "name": "DraftComponentMixin",
650
- "module": "/src/common/mixins/DraftComponentMixin.js"
651
- }
652
- ],
653
- "superclass": {
654
- "name": "LitElement",
655
- "package": "lit"
656
- },
657
- "status": "draft",
658
- "category": "structure",
659
- "tagName": "nord-card",
660
- "customElement": true
661
- }
662
- ],
663
- "exports": [
664
- {
665
- "kind": "js",
666
- "name": "default",
667
- "declaration": {
668
- "name": "Card",
669
- "module": "src/card/Card.ts"
670
- }
671
- },
672
- {
673
- "kind": "custom-element-definition",
674
- "name": "nord-card",
675
- "declaration": {
676
- "name": "Card",
677
- "module": "src/card/Card.ts"
678
- }
679
- }
680
- ]
681
- },
682
- {
683
- "kind": "javascript-module",
684
- "path": "src/common/collection.ts",
685
- "declarations": [
686
- {
687
- "kind": "function",
688
- "name": "groupBy",
689
- "parameters": [
660
+ "default": "localization"
661
+ },
690
662
  {
691
- "name": "array",
663
+ "kind": "field",
664
+ "name": "value",
692
665
  "type": {
693
- "text": "Array<TObject>"
666
+ "text": "string"
694
667
  },
695
- "description": "the collection of objects to group"
668
+ "default": "\"\"",
669
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
670
+ "attribute": "value"
696
671
  },
697
672
  {
698
- "name": "key",
673
+ "kind": "field",
674
+ "name": "firstDayOfWeek",
699
675
  "type": {
700
- "text": "TKey"
676
+ "text": "DaysOfWeek"
701
677
  },
702
- "description": "the property to group by"
703
- }
704
- ],
705
- "description": "Groups an array objects by property value",
706
- "return": {
707
- "type": {
708
- "text": ""
709
- }
710
- }
711
- }
712
- ],
713
- "exports": [
714
- {
715
- "kind": "js",
716
- "name": "groupBy",
717
- "declaration": {
718
- "name": "groupBy",
719
- "module": "src/common/collection.ts"
720
- }
721
- }
722
- ]
723
- },
724
- {
725
- "kind": "javascript-module",
726
- "path": "src/common/events.ts",
727
- "declarations": [
728
- {
729
- "kind": "class",
730
- "description": "A base class for events which defaults to bubbling and composed",
731
- "name": "NordEvent",
732
- "superclass": {
733
- "name": "Event",
734
- "module": "src/common/events.ts"
735
- },
736
- "status": null,
737
- "category": null
738
- }
739
- ],
740
- "exports": [
741
- {
742
- "kind": "js",
743
- "name": "NordEvent",
744
- "declaration": {
745
- "name": "NordEvent",
746
- "module": "src/common/events.ts"
747
- }
748
- }
749
- ]
750
- },
751
- {
752
- "kind": "javascript-module",
753
- "path": "src/common/focus.ts",
754
- "declarations": [
755
- {
756
- "kind": "function",
757
- "name": "getFocusedElement",
758
- "return": {
759
- "type": {
760
- "text": "Element | undefined"
761
- }
762
- },
763
- "parameters": [
678
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
679
+ "attribute": "firstDayOfWeek"
680
+ },
764
681
  {
765
- "name": "root",
682
+ "kind": "field",
683
+ "name": "min",
766
684
  "type": {
767
- "text": "Document | ShadowRoot"
768
- }
769
- }
770
- ],
771
- "description": "Gets the currently focused element, taking shadow roots into account."
772
- }
773
- ],
774
- "exports": [
775
- {
776
- "kind": "js",
777
- "name": "getFocusedElement",
778
- "declaration": {
779
- "name": "getFocusedElement",
780
- "module": "src/common/focus.ts"
781
- }
782
- }
783
- ]
784
- },
785
- {
786
- "kind": "javascript-module",
787
- "path": "src/common/number.ts",
788
- "declarations": [
789
- {
790
- "kind": "function",
791
- "name": "wrap",
792
- "parameters": [
685
+ "text": "string"
686
+ },
687
+ "default": "\"\"",
688
+ "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.",
689
+ "attribute": "min"
690
+ },
793
691
  {
794
- "name": "val",
692
+ "kind": "field",
693
+ "name": "max",
795
694
  "type": {
796
- "text": "number"
797
- }
695
+ "text": "string"
696
+ },
697
+ "default": "\"\"",
698
+ "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.",
699
+ "attribute": "max"
798
700
  },
799
701
  {
800
- "name": "min",
702
+ "kind": "field",
703
+ "name": "isDateDisabled",
801
704
  "type": {
802
- "text": "number"
803
- }
705
+ "text": "DateDisabledPredicate"
706
+ },
707
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
804
708
  },
805
709
  {
806
- "name": "max",
807
- "type": {
808
- "text": "number"
809
- }
810
- }
811
- ],
812
- "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
813
- }
814
- ],
815
- "exports": [
816
- {
817
- "kind": "js",
818
- "name": "wrap",
819
- "declaration": {
820
- "name": "wrap",
821
- "module": "src/common/number.ts"
822
- }
823
- }
824
- ]
825
- },
826
- {
827
- "kind": "javascript-module",
828
- "path": "src/common/ref.ts",
829
- "declarations": [
830
- {
831
- "kind": "function",
832
- "name": "mergeRefs",
833
- "return": {
834
- "type": {
835
- "text": "RefCallback"
836
- }
837
- },
838
- "parameters": [
839
- {
840
- "name": "refs",
841
- "type": {
842
- "text": "Ref[]"
843
- }
844
- }
845
- ],
846
- "description": "Creates a ref callback which will assign the element to every given ref"
847
- }
848
- ],
849
- "exports": [
850
- {
851
- "kind": "js",
852
- "name": "mergeRefs",
853
- "declaration": {
854
- "name": "mergeRefs",
855
- "module": "src/common/ref.ts"
856
- }
857
- }
858
- ]
859
- },
860
- {
861
- "kind": "javascript-module",
862
- "path": "src/command-menu/CommandMenu.ts",
863
- "declarations": [
864
- {
865
- "kind": "class",
866
- "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
867
- "name": "CommandMenu",
868
- "slots": [
869
- {
870
- "description": "Used to replace the default footer contents.",
871
- "name": "footer"
872
- }
873
- ],
874
- "members": [
875
- {
876
- "kind": "field",
877
- "name": "inputRef",
878
- "privacy": "private"
879
- },
880
- {
881
- "kind": "field",
882
- "name": "listRef",
883
- "privacy": "private"
884
- },
885
- {
886
- "kind": "field",
887
- "name": "previousFocus",
888
- "type": {
889
- "text": "HTMLElement | undefined"
890
- },
891
- "privacy": "private"
892
- },
893
- {
894
- "kind": "field",
895
- "name": "dismissController",
896
- "privacy": "private",
897
- "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
898
- },
899
- {
900
- "kind": "field",
901
- "name": "keyboardController",
902
- "privacy": "private",
903
- "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
904
- },
905
- {
906
- "kind": "field",
907
- "name": "open",
908
- "type": {
909
- "text": "boolean"
910
- },
911
- "default": "false",
912
- "description": "Show or hide the command menu.",
913
- "attribute": "open"
914
- },
915
- {
916
- "kind": "field",
917
- "name": "placeholder",
918
- "type": {
919
- "text": "string"
920
- },
921
- "default": "\"Type a command or search...\"",
922
- "description": "Hint text to display in the search field.",
923
- "attribute": "placeholder"
924
- },
925
- {
926
- "kind": "field",
927
- "name": "commands",
928
- "type": {
929
- "text": "Array<ICommandMenuAction>"
930
- },
931
- "default": "[]",
932
- "description": "Array of commands to be included in the menu."
933
- },
934
- {
935
- "kind": "field",
936
- "name": "parent",
937
- "type": {
938
- "text": "string | undefined"
939
- },
940
- "privacy": "private"
941
- },
942
- {
943
- "kind": "field",
944
- "name": "search",
945
- "type": {
946
- "text": "string"
947
- },
948
- "privacy": "private",
949
- "default": "\"\""
950
- },
951
- {
952
- "kind": "field",
953
- "name": "bump",
710
+ "kind": "field",
711
+ "name": "activeFocus",
954
712
  "type": {
955
713
  "text": "boolean"
956
714
  },
957
715
  "privacy": "private",
958
- "default": "true"
959
- },
960
- {
961
- "kind": "field",
962
- "name": "selectedIndex",
963
- "type": {
964
- "text": "number"
965
- },
966
- "privacy": "private",
967
- "default": "0"
716
+ "default": "false"
968
717
  },
969
718
  {
970
719
  "kind": "field",
971
- "name": "filteredCommands",
972
- "type": {
973
- "text": "Array<ICommandMenuAction>"
974
- },
720
+ "name": "focusedDay",
975
721
  "privacy": "private",
976
- "default": "[]"
977
- },
978
- {
979
- "kind": "field",
980
- "name": "selected",
981
- "type": {
982
- "text": "ICommandMenuAction"
983
- },
984
- "privacy": "private"
722
+ "default": "new Date()"
985
723
  },
986
724
  {
987
725
  "kind": "method",
988
- "name": "show",
726
+ "name": "focus",
989
727
  "parameters": [
990
728
  {
991
729
  "name": "options",
992
- "default": "{}",
730
+ "optional": true,
993
731
  "type": {
994
- "text": "{ parent?: string }"
995
- },
996
- "description": "allows you to open the menu filtered to a specific parent command."
732
+ "text": "FocusOptions & { target: \"day\" | \"month\" }"
733
+ }
997
734
  }
998
- ],
999
- "description": "Show the command menu programmatically."
1000
- },
1001
- {
1002
- "kind": "method",
1003
- "name": "close",
1004
- "description": "Close the command menu programmatically."
1005
- },
1006
- {
1007
- "kind": "method",
1008
- "name": "toggleOpen",
1009
- "description": "Toggle the open state programmatically."
735
+ ]
1010
736
  },
1011
737
  {
1012
738
  "kind": "method",
1013
- "name": "focus",
1014
- "description": "Focus the command menu's input."
739
+ "name": "createDateFormatter",
740
+ "privacy": "private"
1015
741
  },
1016
742
  {
1017
- "kind": "method",
1018
- "name": "renderNoResults",
743
+ "kind": "field",
744
+ "name": "handleDaySelect",
1019
745
  "privacy": "private"
1020
746
  },
1021
747
  {
1022
748
  "kind": "method",
1023
- "name": "renderSection",
749
+ "name": "addDays",
1024
750
  "privacy": "private",
1025
751
  "parameters": [
1026
752
  {
1027
- "name": "section",
1028
- "type": {
1029
- "text": "string | undefined"
1030
- }
1031
- },
1032
- {
1033
- "name": "commands",
753
+ "name": "days",
1034
754
  "type": {
1035
- "text": "ICommandMenuAction[]"
755
+ "text": "number"
1036
756
  }
1037
757
  }
1038
758
  ]
1039
759
  },
1040
760
  {
1041
761
  "kind": "method",
1042
- "name": "handleAnimationEnd",
1043
- "privacy": "private"
1044
- },
1045
- {
1046
- "kind": "method",
1047
- "name": "handleBlur",
1048
- "privacy": "private"
1049
- },
1050
- {
1051
- "kind": "method",
1052
- "name": "handleInput",
762
+ "name": "addMonths",
1053
763
  "privacy": "private",
1054
764
  "parameters": [
1055
765
  {
1056
- "name": "event",
766
+ "name": "months",
1057
767
  "type": {
1058
- "text": "KeyboardEvent"
768
+ "text": "number"
1059
769
  }
1060
770
  }
1061
771
  ]
1062
772
  },
1063
773
  {
1064
774
  "kind": "method",
1065
- "name": "select",
775
+ "name": "addYears",
1066
776
  "privacy": "private",
1067
777
  "parameters": [
1068
778
  {
1069
- "name": "command",
1070
- "default": "this.selected",
779
+ "name": "years",
1071
780
  "type": {
1072
- "text": "ICommandMenuAction"
781
+ "text": "number"
1073
782
  }
1074
783
  }
1075
784
  ]
1076
785
  },
1077
786
  {
1078
787
  "kind": "method",
1079
- "name": "start",
1080
- "privacy": "private"
1081
- },
1082
- {
1083
- "kind": "method",
1084
- "name": "end",
1085
- "privacy": "private"
1086
- },
1087
- {
1088
- "kind": "method",
1089
- "name": "next",
788
+ "name": "startOfWeek",
1090
789
  "privacy": "private"
1091
790
  },
1092
791
  {
1093
792
  "kind": "method",
1094
- "name": "previous",
793
+ "name": "endOfWeek",
1095
794
  "privacy": "private"
1096
795
  },
1097
796
  {
1098
797
  "kind": "method",
1099
- "name": "goBack",
1100
- "privacy": "private"
798
+ "name": "setMonth",
799
+ "privacy": "private",
800
+ "parameters": [
801
+ {
802
+ "name": "month",
803
+ "type": {
804
+ "text": "number"
805
+ }
806
+ }
807
+ ]
1101
808
  },
1102
809
  {
1103
810
  "kind": "method",
1104
- "name": "setParent",
811
+ "name": "setYear",
1105
812
  "privacy": "private",
1106
813
  "parameters": [
1107
814
  {
1108
- "name": "parent",
1109
- "optional": true,
815
+ "name": "year",
1110
816
  "type": {
1111
- "text": "string"
817
+ "text": "number"
1112
818
  }
1113
819
  }
1114
820
  ]
1115
821
  },
1116
822
  {
1117
823
  "kind": "method",
1118
- "name": "setSearch",
824
+ "name": "setFocusedDay",
1119
825
  "privacy": "private",
1120
826
  "parameters": [
1121
827
  {
1122
- "name": "str",
828
+ "name": "day",
1123
829
  "type": {
1124
- "text": "string"
830
+ "text": "Date"
1125
831
  }
1126
832
  }
1127
833
  ]
1128
834
  },
1129
835
  {
1130
- "kind": "method",
1131
- "name": "filterCommands",
836
+ "kind": "field",
837
+ "name": "handleMonthSelect",
1132
838
  "privacy": "private"
1133
839
  },
1134
840
  {
1135
841
  "kind": "field",
1136
- "name": "_warningLogged",
1137
- "type": {
1138
- "text": "boolean"
1139
- },
842
+ "name": "handleYearSelect",
843
+ "privacy": "private"
844
+ },
845
+ {
846
+ "kind": "field",
847
+ "name": "handleNextMonthClick",
848
+ "privacy": "private"
849
+ },
850
+ {
851
+ "kind": "field",
852
+ "name": "handlePreviousMonthClick",
853
+ "privacy": "private"
854
+ },
855
+ {
856
+ "kind": "field",
857
+ "name": "enableActiveFocus",
858
+ "privacy": "private"
859
+ },
860
+ {
861
+ "kind": "field",
862
+ "name": "disableActiveFocus",
863
+ "privacy": "private"
864
+ },
865
+ {
866
+ "kind": "field",
867
+ "name": "_warningLogged",
868
+ "type": {
869
+ "text": "boolean"
870
+ },
871
+ "privacy": "private",
872
+ "static": true,
873
+ "default": "false",
874
+ "inheritedFrom": {
875
+ "name": "DraftComponentMixin",
876
+ "module": "src/common/mixins/DraftComponentMixin.ts"
877
+ }
878
+ }
879
+ ],
880
+ "attributes": [
881
+ {
882
+ "name": "value",
883
+ "type": {
884
+ "text": "string"
885
+ },
886
+ "default": "\"\"",
887
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
888
+ "fieldName": "value"
889
+ },
890
+ {
891
+ "name": "firstDayOfWeek",
892
+ "type": {
893
+ "text": "DaysOfWeek"
894
+ },
895
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
896
+ "fieldName": "firstDayOfWeek"
897
+ },
898
+ {
899
+ "name": "min",
900
+ "type": {
901
+ "text": "string"
902
+ },
903
+ "default": "\"\"",
904
+ "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.",
905
+ "fieldName": "min"
906
+ },
907
+ {
908
+ "name": "max",
909
+ "type": {
910
+ "text": "string"
911
+ },
912
+ "default": "\"\"",
913
+ "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.",
914
+ "fieldName": "max"
915
+ }
916
+ ],
917
+ "mixins": [
918
+ {
919
+ "name": "DraftComponentMixin",
920
+ "module": "/src/common/mixins/DraftComponentMixin.js"
921
+ }
922
+ ],
923
+ "superclass": {
924
+ "name": "LitElement",
925
+ "package": "lit"
926
+ },
927
+ "status": "draft",
928
+ "category": "form",
929
+ "tagName": "nord-calendar",
930
+ "customElement": true
931
+ }
932
+ ],
933
+ "exports": [
934
+ {
935
+ "kind": "js",
936
+ "name": "default",
937
+ "declaration": {
938
+ "name": "Calendar",
939
+ "module": "src/calendar/Calendar.ts"
940
+ }
941
+ },
942
+ {
943
+ "kind": "custom-element-definition",
944
+ "name": "nord-calendar",
945
+ "declaration": {
946
+ "name": "Calendar",
947
+ "module": "src/calendar/Calendar.ts"
948
+ }
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ "kind": "javascript-module",
954
+ "path": "src/calendar/DateSelectEvent.ts",
955
+ "declarations": [
956
+ {
957
+ "kind": "class",
958
+ "description": "",
959
+ "name": "DateSelectEvent",
960
+ "members": [
961
+ {
962
+ "kind": "field",
963
+ "name": "eventName",
964
+ "type": {
965
+ "text": "string"
966
+ },
967
+ "static": true,
968
+ "default": "\"nord-select\""
969
+ },
970
+ {
971
+ "kind": "field",
972
+ "name": "date",
973
+ "type": {
974
+ "text": "Date"
975
+ },
976
+ "default": "date"
977
+ }
978
+ ],
979
+ "superclass": {
980
+ "name": "NordEvent",
981
+ "module": "/src/common/events.js"
982
+ }
983
+ }
984
+ ],
985
+ "exports": [
986
+ {
987
+ "kind": "js",
988
+ "name": "DateSelectEvent",
989
+ "declaration": {
990
+ "name": "DateSelectEvent",
991
+ "module": "src/calendar/DateSelectEvent.ts"
992
+ }
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "kind": "javascript-module",
998
+ "path": "src/calendar/calendar-localization.ts",
999
+ "declarations": [
1000
+ {
1001
+ "kind": "variable",
1002
+ "name": "localization",
1003
+ "type": {
1004
+ "text": "CalendarLocalizedText"
1005
+ },
1006
+ "default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
1007
+ }
1008
+ ],
1009
+ "exports": [
1010
+ {
1011
+ "kind": "js",
1012
+ "name": "default",
1013
+ "declaration": {
1014
+ "name": "localization",
1015
+ "module": "src/calendar/calendar-localization.ts"
1016
+ }
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "kind": "javascript-module",
1022
+ "path": "src/calendar/month-view.ts",
1023
+ "declarations": [
1024
+ {
1025
+ "kind": "function",
1026
+ "name": "dayView",
1027
+ "parameters": [
1028
+ {
1029
+ "name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
1030
+ "type": {
1031
+ "text": "DatePickerDayProps"
1032
+ }
1033
+ }
1034
+ ]
1035
+ },
1036
+ {
1037
+ "kind": "function",
1038
+ "name": "monthView",
1039
+ "parameters": [
1040
+ {
1041
+ "name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
1042
+ "type": {
1043
+ "text": "MonthViewArgs"
1044
+ }
1045
+ }
1046
+ ]
1047
+ }
1048
+ ],
1049
+ "exports": [
1050
+ {
1051
+ "kind": "js",
1052
+ "name": "dayView",
1053
+ "declaration": {
1054
+ "name": "dayView",
1055
+ "module": "src/calendar/month-view.ts"
1056
+ }
1057
+ },
1058
+ {
1059
+ "kind": "js",
1060
+ "name": "monthView",
1061
+ "declaration": {
1062
+ "name": "monthView",
1063
+ "module": "src/calendar/month-view.ts"
1064
+ }
1065
+ }
1066
+ ]
1067
+ },
1068
+ {
1069
+ "kind": "javascript-module",
1070
+ "path": "src/command-menu/CommandMenu.ts",
1071
+ "declarations": [
1072
+ {
1073
+ "kind": "class",
1074
+ "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
1075
+ "name": "CommandMenu",
1076
+ "slots": [
1077
+ {
1078
+ "description": "Used to replace the default footer contents.",
1079
+ "name": "footer"
1080
+ }
1081
+ ],
1082
+ "members": [
1083
+ {
1084
+ "kind": "field",
1085
+ "name": "inputRef",
1086
+ "privacy": "private"
1087
+ },
1088
+ {
1089
+ "kind": "field",
1090
+ "name": "listRef",
1091
+ "privacy": "private"
1092
+ },
1093
+ {
1094
+ "kind": "field",
1095
+ "name": "previousFocus",
1096
+ "type": {
1097
+ "text": "HTMLElement | undefined"
1098
+ },
1099
+ "privacy": "private"
1100
+ },
1101
+ {
1102
+ "kind": "field",
1103
+ "name": "dismissController",
1104
+ "privacy": "private",
1105
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
1106
+ },
1107
+ {
1108
+ "kind": "field",
1109
+ "name": "keyboardController",
1110
+ "privacy": "private",
1111
+ "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
1112
+ },
1113
+ {
1114
+ "kind": "field",
1115
+ "name": "open",
1116
+ "type": {
1117
+ "text": "boolean"
1118
+ },
1119
+ "default": "false",
1120
+ "description": "Show or hide the command menu.",
1121
+ "attribute": "open"
1122
+ },
1123
+ {
1124
+ "kind": "field",
1125
+ "name": "placeholder",
1126
+ "type": {
1127
+ "text": "string"
1128
+ },
1129
+ "default": "\"Type a command or search...\"",
1130
+ "description": "Hint text to display in the search field.",
1131
+ "attribute": "placeholder"
1132
+ },
1133
+ {
1134
+ "kind": "field",
1135
+ "name": "commands",
1136
+ "type": {
1137
+ "text": "Array<ICommandMenuAction>"
1138
+ },
1139
+ "default": "[]",
1140
+ "description": "Array of commands to be included in the menu."
1141
+ },
1142
+ {
1143
+ "kind": "field",
1144
+ "name": "parent",
1145
+ "type": {
1146
+ "text": "string | undefined"
1147
+ },
1148
+ "privacy": "private"
1149
+ },
1150
+ {
1151
+ "kind": "field",
1152
+ "name": "search",
1153
+ "type": {
1154
+ "text": "string"
1155
+ },
1156
+ "privacy": "private",
1157
+ "default": "\"\""
1158
+ },
1159
+ {
1160
+ "kind": "field",
1161
+ "name": "bump",
1162
+ "type": {
1163
+ "text": "boolean"
1164
+ },
1165
+ "privacy": "private",
1166
+ "default": "true"
1167
+ },
1168
+ {
1169
+ "kind": "field",
1170
+ "name": "selectedIndex",
1171
+ "type": {
1172
+ "text": "number"
1173
+ },
1174
+ "privacy": "private",
1175
+ "default": "0"
1176
+ },
1177
+ {
1178
+ "kind": "field",
1179
+ "name": "filteredCommands",
1180
+ "type": {
1181
+ "text": "Array<ICommandMenuAction>"
1182
+ },
1183
+ "privacy": "private",
1184
+ "default": "[]"
1185
+ },
1186
+ {
1187
+ "kind": "field",
1188
+ "name": "selected",
1189
+ "type": {
1190
+ "text": "ICommandMenuAction"
1191
+ },
1192
+ "privacy": "private"
1193
+ },
1194
+ {
1195
+ "kind": "method",
1196
+ "name": "show",
1197
+ "parameters": [
1198
+ {
1199
+ "name": "options",
1200
+ "default": "{}",
1201
+ "type": {
1202
+ "text": "{ parent?: string }"
1203
+ },
1204
+ "description": "allows you to open the menu filtered to a specific parent command."
1205
+ }
1206
+ ],
1207
+ "description": "Show the command menu programmatically."
1208
+ },
1209
+ {
1210
+ "kind": "method",
1211
+ "name": "close",
1212
+ "description": "Close the command menu programmatically."
1213
+ },
1214
+ {
1215
+ "kind": "method",
1216
+ "name": "toggleOpen",
1217
+ "description": "Toggle the open state programmatically."
1218
+ },
1219
+ {
1220
+ "kind": "method",
1221
+ "name": "focus",
1222
+ "description": "Focus the command menu's input."
1223
+ },
1224
+ {
1225
+ "kind": "method",
1226
+ "name": "renderNoResults",
1227
+ "privacy": "private"
1228
+ },
1229
+ {
1230
+ "kind": "method",
1231
+ "name": "renderSection",
1232
+ "privacy": "private",
1233
+ "parameters": [
1234
+ {
1235
+ "name": "section",
1236
+ "type": {
1237
+ "text": "string | undefined"
1238
+ }
1239
+ },
1240
+ {
1241
+ "name": "commands",
1242
+ "type": {
1243
+ "text": "ICommandMenuAction[]"
1244
+ }
1245
+ }
1246
+ ]
1247
+ },
1248
+ {
1249
+ "kind": "method",
1250
+ "name": "handleAnimationEnd",
1251
+ "privacy": "private"
1252
+ },
1253
+ {
1254
+ "kind": "method",
1255
+ "name": "handleBlur",
1256
+ "privacy": "private"
1257
+ },
1258
+ {
1259
+ "kind": "method",
1260
+ "name": "handleInput",
1261
+ "privacy": "private",
1262
+ "parameters": [
1263
+ {
1264
+ "name": "event",
1265
+ "type": {
1266
+ "text": "KeyboardEvent"
1267
+ }
1268
+ }
1269
+ ]
1270
+ },
1271
+ {
1272
+ "kind": "method",
1273
+ "name": "select",
1274
+ "privacy": "private",
1275
+ "parameters": [
1276
+ {
1277
+ "name": "command",
1278
+ "default": "this.selected",
1279
+ "type": {
1280
+ "text": "ICommandMenuAction"
1281
+ }
1282
+ }
1283
+ ]
1284
+ },
1285
+ {
1286
+ "kind": "method",
1287
+ "name": "start",
1288
+ "privacy": "private"
1289
+ },
1290
+ {
1291
+ "kind": "method",
1292
+ "name": "end",
1293
+ "privacy": "private"
1294
+ },
1295
+ {
1296
+ "kind": "method",
1297
+ "name": "next",
1298
+ "privacy": "private"
1299
+ },
1300
+ {
1301
+ "kind": "method",
1302
+ "name": "previous",
1303
+ "privacy": "private"
1304
+ },
1305
+ {
1306
+ "kind": "method",
1307
+ "name": "goBack",
1308
+ "privacy": "private"
1309
+ },
1310
+ {
1311
+ "kind": "method",
1312
+ "name": "setParent",
1313
+ "privacy": "private",
1314
+ "parameters": [
1315
+ {
1316
+ "name": "parent",
1317
+ "optional": true,
1318
+ "type": {
1319
+ "text": "string"
1320
+ }
1321
+ }
1322
+ ]
1323
+ },
1324
+ {
1325
+ "kind": "method",
1326
+ "name": "setSearch",
1327
+ "privacy": "private",
1328
+ "parameters": [
1329
+ {
1330
+ "name": "str",
1331
+ "type": {
1332
+ "text": "string"
1333
+ }
1334
+ }
1335
+ ]
1336
+ },
1337
+ {
1338
+ "kind": "method",
1339
+ "name": "filterCommands",
1340
+ "privacy": "private"
1341
+ },
1342
+ {
1343
+ "kind": "field",
1344
+ "name": "_warningLogged",
1345
+ "type": {
1346
+ "text": "boolean"
1347
+ },
1348
+ "privacy": "private",
1349
+ "static": true,
1350
+ "default": "false",
1351
+ "inheritedFrom": {
1352
+ "name": "DraftComponentMixin",
1353
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1354
+ }
1355
+ }
1356
+ ],
1357
+ "events": [
1358
+ {
1359
+ "name": "open",
1360
+ "type": {
1361
+ "text": "NordEvent"
1362
+ },
1363
+ "description": "The command menu was opened foo."
1364
+ },
1365
+ {
1366
+ "name": "close",
1367
+ "type": {
1368
+ "text": "NordEvent"
1369
+ },
1370
+ "description": "The command menu was closed bar."
1371
+ },
1372
+ {
1373
+ "type": {
1374
+ "text": "SelectEvent"
1375
+ },
1376
+ "description": "User selected a command from the menu.",
1377
+ "name": "n-select"
1378
+ }
1379
+ ],
1380
+ "attributes": [
1381
+ {
1382
+ "name": "open",
1383
+ "type": {
1384
+ "text": "boolean"
1385
+ },
1386
+ "default": "false",
1387
+ "description": "Show or hide the command menu.",
1388
+ "fieldName": "open"
1389
+ },
1390
+ {
1391
+ "name": "placeholder",
1392
+ "type": {
1393
+ "text": "string"
1394
+ },
1395
+ "default": "\"Type a command or search...\"",
1396
+ "description": "Hint text to display in the search field.",
1397
+ "fieldName": "placeholder"
1398
+ }
1399
+ ],
1400
+ "mixins": [
1401
+ {
1402
+ "name": "DraftComponentMixin",
1403
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1404
+ }
1405
+ ],
1406
+ "superclass": {
1407
+ "name": "LitElement",
1408
+ "package": "lit"
1409
+ },
1410
+ "status": "draft",
1411
+ "category": "action",
1412
+ "tagName": "nord-command-menu",
1413
+ "customElement": true
1414
+ }
1415
+ ],
1416
+ "exports": [
1417
+ {
1418
+ "kind": "js",
1419
+ "name": "default",
1420
+ "declaration": {
1421
+ "name": "CommandMenu",
1422
+ "module": "src/command-menu/CommandMenu.ts"
1423
+ }
1424
+ },
1425
+ {
1426
+ "kind": "custom-element-definition",
1427
+ "name": "nord-command-menu",
1428
+ "declaration": {
1429
+ "name": "CommandMenu",
1430
+ "module": "src/command-menu/CommandMenu.ts"
1431
+ }
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "kind": "javascript-module",
1437
+ "path": "src/command-menu/CommandMenuAction.ts",
1438
+ "declarations": [
1439
+ {
1440
+ "kind": "class",
1441
+ "description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
1442
+ "name": "CommandMenuAction",
1443
+ "members": [
1444
+ {
1445
+ "kind": "field",
1446
+ "name": "command",
1447
+ "type": {
1448
+ "text": "ICommandMenuAction"
1449
+ },
1450
+ "attribute": "command"
1451
+ },
1452
+ {
1453
+ "kind": "field",
1454
+ "name": "selected",
1455
+ "type": {
1456
+ "text": "boolean"
1457
+ },
1458
+ "default": "false",
1459
+ "attribute": "selected"
1460
+ },
1461
+ {
1462
+ "kind": "method",
1463
+ "name": "ensureInView",
1464
+ "privacy": "private",
1465
+ "description": "Scroll to show element"
1466
+ },
1467
+ {
1468
+ "kind": "method",
1469
+ "name": "renderShortcut",
1470
+ "privacy": "private"
1471
+ }
1472
+ ],
1473
+ "attributes": [
1474
+ {
1475
+ "name": "command",
1476
+ "type": {
1477
+ "text": "ICommandMenuAction"
1478
+ },
1479
+ "fieldName": "command"
1480
+ },
1481
+ {
1482
+ "name": "selected",
1483
+ "type": {
1484
+ "text": "boolean"
1485
+ },
1486
+ "default": "false",
1487
+ "fieldName": "selected"
1488
+ }
1489
+ ],
1490
+ "superclass": {
1491
+ "name": "LitElement",
1492
+ "package": "lit"
1493
+ },
1494
+ "status": "internal",
1495
+ "category": null,
1496
+ "tagName": "nord-command-menu-action",
1497
+ "customElement": true
1498
+ }
1499
+ ],
1500
+ "exports": [
1501
+ {
1502
+ "kind": "js",
1503
+ "name": "default",
1504
+ "declaration": {
1505
+ "name": "CommandMenuAction",
1506
+ "module": "src/command-menu/CommandMenuAction.ts"
1507
+ }
1508
+ },
1509
+ {
1510
+ "kind": "custom-element-definition",
1511
+ "name": "nord-command-menu-action",
1512
+ "declaration": {
1513
+ "name": "CommandMenuAction",
1514
+ "module": "src/command-menu/CommandMenuAction.ts"
1515
+ }
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ "kind": "javascript-module",
1521
+ "path": "src/command-menu/ICommandMenuAction.ts",
1522
+ "declarations": [],
1523
+ "exports": []
1524
+ },
1525
+ {
1526
+ "kind": "javascript-module",
1527
+ "path": "src/command-menu/KeyboardController.ts",
1528
+ "declarations": [
1529
+ {
1530
+ "kind": "class",
1531
+ "description": "",
1532
+ "name": "KeyboardController",
1533
+ "members": [
1534
+ {
1535
+ "kind": "field",
1536
+ "name": "host",
1537
+ "type": {
1538
+ "text": "CommandMenu"
1539
+ },
1540
+ "privacy": "private",
1541
+ "default": "host"
1542
+ },
1543
+ {
1544
+ "kind": "field",
1545
+ "name": "globalShortcuts",
1546
+ "type": {
1547
+ "text": "ShortcutController"
1548
+ },
1549
+ "privacy": "private",
1550
+ "default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
1551
+ },
1552
+ {
1553
+ "kind": "field",
1554
+ "name": "navigationShortcuts",
1555
+ "type": {
1556
+ "text": "ShortcutController"
1557
+ },
1558
+ "privacy": "private",
1559
+ "default": "new ShortcutController(\n host,\n {\n Enter: preventDefault(actions.trigger),\n Backspace: actions.goBack, // we don't want to prevent default, since that would stop backspace deleting chars\n End: preventDefault(actions.end),\n Home: preventDefault(actions.start),\n ArrowDown: preventDefault(actions.next),\n ArrowUp: preventDefault(actions.previous),\n },\n host\n )"
1560
+ },
1561
+ {
1562
+ "kind": "field",
1563
+ "name": "commandShortcuts",
1564
+ "type": {
1565
+ "text": "ShortcutController"
1566
+ },
1567
+ "privacy": "private",
1568
+ "default": "new ShortcutController(host)"
1569
+ },
1570
+ {
1571
+ "kind": "method",
1572
+ "name": "registerCommandShortcuts"
1573
+ }
1574
+ ]
1575
+ }
1576
+ ],
1577
+ "exports": [
1578
+ {
1579
+ "kind": "js",
1580
+ "name": "KeyboardController",
1581
+ "declaration": {
1582
+ "name": "KeyboardController",
1583
+ "module": "src/command-menu/KeyboardController.ts"
1584
+ }
1585
+ }
1586
+ ]
1587
+ },
1588
+ {
1589
+ "kind": "javascript-module",
1590
+ "path": "src/command-menu/events.ts",
1591
+ "declarations": [
1592
+ {
1593
+ "kind": "class",
1594
+ "description": "",
1595
+ "name": "SelectEvent",
1596
+ "members": [
1597
+ {
1598
+ "kind": "field",
1599
+ "name": "command",
1600
+ "type": {
1601
+ "text": "ICommandMenuAction"
1602
+ },
1603
+ "default": "command"
1604
+ }
1605
+ ],
1606
+ "superclass": {
1607
+ "name": "NordEvent",
1608
+ "module": "/src/common/events.js"
1609
+ }
1610
+ }
1611
+ ],
1612
+ "exports": [
1613
+ {
1614
+ "kind": "js",
1615
+ "name": "SelectEvent",
1616
+ "declaration": {
1617
+ "name": "SelectEvent",
1618
+ "module": "src/command-menu/events.ts"
1619
+ }
1620
+ }
1621
+ ]
1622
+ },
1623
+ {
1624
+ "kind": "javascript-module",
1625
+ "path": "src/card/Card.ts",
1626
+ "declarations": [
1627
+ {
1628
+ "kind": "class",
1629
+ "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
1630
+ "name": "Card",
1631
+ "slots": [
1632
+ {
1633
+ "description": "The card content.",
1634
+ "name": ""
1635
+ },
1636
+ {
1637
+ "description": "Optional slot that holds a header for the card.",
1638
+ "name": "header"
1639
+ },
1640
+ {
1641
+ "description": "Optional slot that holds footer content for the card.",
1642
+ "name": "footer"
1643
+ }
1644
+ ],
1645
+ "members": [
1646
+ {
1647
+ "kind": "field",
1648
+ "name": "slots",
1649
+ "privacy": "private",
1650
+ "default": "new SlotController(this)"
1651
+ },
1652
+ {
1653
+ "kind": "field",
1654
+ "name": "padding",
1655
+ "type": {
1656
+ "text": "\"m\" | \"l\" | \"none\""
1657
+ },
1658
+ "default": "\"m\"",
1659
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1660
+ "attribute": "padding",
1661
+ "reflects": true
1662
+ },
1663
+ {
1664
+ "kind": "field",
1665
+ "name": "_warningLogged",
1666
+ "type": {
1667
+ "text": "boolean"
1668
+ },
1669
+ "privacy": "private",
1670
+ "static": true,
1671
+ "default": "false",
1672
+ "inheritedFrom": {
1673
+ "name": "DraftComponentMixin",
1674
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1675
+ }
1676
+ }
1677
+ ],
1678
+ "attributes": [
1679
+ {
1680
+ "name": "padding",
1681
+ "type": {
1682
+ "text": "\"m\" | \"l\" | \"none\""
1683
+ },
1684
+ "default": "\"m\"",
1685
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1686
+ "fieldName": "padding"
1687
+ }
1688
+ ],
1689
+ "mixins": [
1690
+ {
1691
+ "name": "DraftComponentMixin",
1692
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1693
+ }
1694
+ ],
1695
+ "superclass": {
1696
+ "name": "LitElement",
1697
+ "package": "lit"
1698
+ },
1699
+ "status": "draft",
1700
+ "category": "structure",
1701
+ "tagName": "nord-card",
1702
+ "customElement": true
1703
+ }
1704
+ ],
1705
+ "exports": [
1706
+ {
1707
+ "kind": "js",
1708
+ "name": "default",
1709
+ "declaration": {
1710
+ "name": "Card",
1711
+ "module": "src/card/Card.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "custom-element-definition",
1716
+ "name": "nord-card",
1717
+ "declaration": {
1718
+ "name": "Card",
1719
+ "module": "src/card/Card.ts"
1720
+ }
1721
+ }
1722
+ ]
1723
+ },
1724
+ {
1725
+ "kind": "javascript-module",
1726
+ "path": "src/common/collection.ts",
1727
+ "declarations": [
1728
+ {
1729
+ "kind": "function",
1730
+ "name": "groupBy",
1731
+ "parameters": [
1732
+ {
1733
+ "name": "array",
1734
+ "type": {
1735
+ "text": "Array<TObject>"
1736
+ },
1737
+ "description": "the collection of objects to group"
1738
+ },
1739
+ {
1740
+ "name": "key",
1741
+ "type": {
1742
+ "text": "TKey"
1743
+ },
1744
+ "description": "the property to group by"
1745
+ }
1746
+ ],
1747
+ "description": "Groups an array objects by property value",
1748
+ "return": {
1749
+ "type": {
1750
+ "text": ""
1751
+ }
1752
+ }
1753
+ },
1754
+ {
1755
+ "kind": "function",
1756
+ "name": "chunk",
1757
+ "return": {
1758
+ "type": {
1759
+ "text": ""
1760
+ }
1761
+ },
1762
+ "parameters": [
1763
+ {
1764
+ "name": "array",
1765
+ "type": {
1766
+ "text": "T[]"
1767
+ }
1768
+ },
1769
+ {
1770
+ "name": "chunkSize",
1771
+ "type": {
1772
+ "text": "number"
1773
+ }
1774
+ }
1775
+ ],
1776
+ "description": "Split an array into chunks of the given size"
1777
+ },
1778
+ {
1779
+ "kind": "function",
1780
+ "name": "mapWithOffset",
1781
+ "return": {
1782
+ "type": {
1783
+ "text": ""
1784
+ }
1785
+ },
1786
+ "parameters": [
1787
+ {
1788
+ "name": "array",
1789
+ "type": {
1790
+ "text": "T[]"
1791
+ }
1792
+ },
1793
+ {
1794
+ "name": "startingOffset",
1795
+ "type": {
1796
+ "text": "number"
1797
+ }
1798
+ },
1799
+ {
1800
+ "name": "mapFn",
1801
+ "type": {
1802
+ "text": "(item: T) => U"
1803
+ }
1804
+ }
1805
+ ],
1806
+ "description": "maps over an array, starting at the given offset and wrapping around."
1807
+ }
1808
+ ],
1809
+ "exports": [
1810
+ {
1811
+ "kind": "js",
1812
+ "name": "groupBy",
1813
+ "declaration": {
1814
+ "name": "groupBy",
1815
+ "module": "src/common/collection.ts"
1816
+ }
1817
+ },
1818
+ {
1819
+ "kind": "js",
1820
+ "name": "chunk",
1821
+ "declaration": {
1822
+ "name": "chunk",
1823
+ "module": "src/common/collection.ts"
1824
+ }
1825
+ },
1826
+ {
1827
+ "kind": "js",
1828
+ "name": "mapWithOffset",
1829
+ "declaration": {
1830
+ "name": "mapWithOffset",
1831
+ "module": "src/common/collection.ts"
1832
+ }
1833
+ }
1834
+ ]
1835
+ },
1836
+ {
1837
+ "kind": "javascript-module",
1838
+ "path": "src/common/dates.ts",
1839
+ "declarations": [
1840
+ {
1841
+ "kind": "function",
1842
+ "name": "createDate",
1843
+ "return": {
1844
+ "type": {
1845
+ "text": "Date | undefined"
1846
+ }
1847
+ },
1848
+ "parameters": [
1849
+ {
1850
+ "name": "year",
1851
+ "type": {
1852
+ "text": "string"
1853
+ }
1854
+ },
1855
+ {
1856
+ "name": "month",
1857
+ "type": {
1858
+ "text": "string"
1859
+ }
1860
+ },
1861
+ {
1862
+ "name": "day",
1863
+ "type": {
1864
+ "text": "string"
1865
+ }
1866
+ }
1867
+ ]
1868
+ },
1869
+ {
1870
+ "kind": "function",
1871
+ "name": "parseISODate",
1872
+ "return": {
1873
+ "type": {
1874
+ "text": "Date | undefined"
1875
+ }
1876
+ },
1877
+ "parameters": [
1878
+ {
1879
+ "name": "value",
1880
+ "type": {
1881
+ "text": "string"
1882
+ },
1883
+ "description": "date string in ISO format YYYY-MM-DD"
1884
+ }
1885
+ ]
1886
+ },
1887
+ {
1888
+ "kind": "function",
1889
+ "name": "printISODate",
1890
+ "return": {
1891
+ "type": {
1892
+ "text": "string"
1893
+ }
1894
+ },
1895
+ "parameters": [
1896
+ {
1897
+ "name": "date",
1898
+ "type": {
1899
+ "text": "Date"
1900
+ }
1901
+ }
1902
+ ],
1903
+ "description": "print date in format YYYY-MM-DD"
1904
+ },
1905
+ {
1906
+ "kind": "function",
1907
+ "name": "isEqualMonth",
1908
+ "return": {
1909
+ "type": {
1910
+ "text": "boolean"
1911
+ }
1912
+ },
1913
+ "parameters": [
1914
+ {
1915
+ "name": "a",
1916
+ "optional": true,
1917
+ "type": {
1918
+ "text": "Date"
1919
+ }
1920
+ },
1921
+ {
1922
+ "name": "b",
1923
+ "optional": true,
1924
+ "type": {
1925
+ "text": "Date"
1926
+ }
1927
+ }
1928
+ ],
1929
+ "description": "Compare if two dates are in the same month of the same year."
1930
+ },
1931
+ {
1932
+ "kind": "function",
1933
+ "name": "isEqual",
1934
+ "return": {
1935
+ "type": {
1936
+ "text": "boolean"
1937
+ }
1938
+ },
1939
+ "parameters": [
1940
+ {
1941
+ "name": "a",
1942
+ "optional": true,
1943
+ "type": {
1944
+ "text": "Date"
1945
+ }
1946
+ },
1947
+ {
1948
+ "name": "b",
1949
+ "optional": true,
1950
+ "type": {
1951
+ "text": "Date"
1952
+ }
1953
+ }
1954
+ ],
1955
+ "description": "Compare if two dates are equal in terms of day, month, and year"
1956
+ },
1957
+ {
1958
+ "kind": "function",
1959
+ "name": "addDays",
1960
+ "return": {
1961
+ "type": {
1962
+ "text": "Date"
1963
+ }
1964
+ },
1965
+ "parameters": [
1966
+ {
1967
+ "name": "date",
1968
+ "type": {
1969
+ "text": "Date"
1970
+ }
1971
+ },
1972
+ {
1973
+ "name": "days",
1974
+ "type": {
1975
+ "text": "number"
1976
+ }
1977
+ }
1978
+ ]
1979
+ },
1980
+ {
1981
+ "kind": "function",
1982
+ "name": "addMonths",
1983
+ "return": {
1984
+ "type": {
1985
+ "text": "Date"
1986
+ }
1987
+ },
1988
+ "parameters": [
1989
+ {
1990
+ "name": "date",
1991
+ "type": {
1992
+ "text": "Date"
1993
+ }
1994
+ },
1995
+ {
1996
+ "name": "months",
1997
+ "type": {
1998
+ "text": "number"
1999
+ }
2000
+ }
2001
+ ]
2002
+ },
2003
+ {
2004
+ "kind": "function",
2005
+ "name": "addYears",
2006
+ "return": {
2007
+ "type": {
2008
+ "text": "Date"
2009
+ }
2010
+ },
2011
+ "parameters": [
2012
+ {
2013
+ "name": "date",
2014
+ "type": {
2015
+ "text": "Date"
2016
+ }
2017
+ },
2018
+ {
2019
+ "name": "years",
2020
+ "type": {
2021
+ "text": "number"
2022
+ }
2023
+ }
2024
+ ]
2025
+ },
2026
+ {
2027
+ "kind": "function",
2028
+ "name": "startOfWeek",
2029
+ "return": {
2030
+ "type": {
2031
+ "text": "Date"
2032
+ }
2033
+ },
2034
+ "parameters": [
2035
+ {
2036
+ "name": "date",
2037
+ "type": {
2038
+ "text": "Date"
2039
+ }
2040
+ },
2041
+ {
2042
+ "name": "firstDayOfWeek",
2043
+ "default": "DaysOfWeek.Monday",
2044
+ "type": {
2045
+ "text": "DaysOfWeek"
2046
+ }
2047
+ }
2048
+ ]
2049
+ },
2050
+ {
2051
+ "kind": "function",
2052
+ "name": "endOfWeek",
2053
+ "return": {
2054
+ "type": {
2055
+ "text": "Date"
2056
+ }
2057
+ },
2058
+ "parameters": [
2059
+ {
2060
+ "name": "date",
2061
+ "type": {
2062
+ "text": "Date"
2063
+ }
2064
+ },
2065
+ {
2066
+ "name": "firstDayOfWeek",
2067
+ "default": "DaysOfWeek.Monday",
2068
+ "type": {
2069
+ "text": "DaysOfWeek"
2070
+ }
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
2075
+ "kind": "function",
2076
+ "name": "startOfMonth",
2077
+ "return": {
2078
+ "type": {
2079
+ "text": "Date"
2080
+ }
2081
+ },
2082
+ "parameters": [
2083
+ {
2084
+ "name": "date",
2085
+ "type": {
2086
+ "text": "Date"
2087
+ }
2088
+ }
2089
+ ]
2090
+ },
2091
+ {
2092
+ "kind": "function",
2093
+ "name": "endOfMonth",
2094
+ "return": {
2095
+ "type": {
2096
+ "text": "Date"
2097
+ }
2098
+ },
2099
+ "parameters": [
2100
+ {
2101
+ "name": "date",
2102
+ "type": {
2103
+ "text": "Date"
2104
+ }
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "kind": "function",
2110
+ "name": "setMonth",
2111
+ "return": {
2112
+ "type": {
2113
+ "text": "Date"
2114
+ }
2115
+ },
2116
+ "parameters": [
2117
+ {
2118
+ "name": "date",
2119
+ "type": {
2120
+ "text": "Date"
2121
+ }
2122
+ },
2123
+ {
2124
+ "name": "month",
2125
+ "type": {
2126
+ "text": "number"
2127
+ }
2128
+ }
2129
+ ]
2130
+ },
2131
+ {
2132
+ "kind": "function",
2133
+ "name": "setYear",
2134
+ "return": {
2135
+ "type": {
2136
+ "text": "Date"
2137
+ }
2138
+ },
2139
+ "parameters": [
2140
+ {
2141
+ "name": "date",
2142
+ "type": {
2143
+ "text": "Date"
2144
+ }
2145
+ },
2146
+ {
2147
+ "name": "year",
2148
+ "type": {
2149
+ "text": "number"
2150
+ }
2151
+ }
2152
+ ]
2153
+ },
2154
+ {
2155
+ "kind": "function",
2156
+ "name": "clamp",
2157
+ "return": {
2158
+ "type": {
2159
+ "text": "Date"
2160
+ }
2161
+ },
2162
+ "parameters": [
2163
+ {
2164
+ "name": "date",
2165
+ "type": {
2166
+ "text": "Date"
2167
+ }
2168
+ },
2169
+ {
2170
+ "name": "min",
2171
+ "optional": true,
2172
+ "type": {
2173
+ "text": "Date"
2174
+ }
2175
+ },
2176
+ {
2177
+ "name": "max",
2178
+ "optional": true,
2179
+ "type": {
2180
+ "text": "Date"
2181
+ }
2182
+ }
2183
+ ],
2184
+ "description": "Ensures date is within range, returns min or max if out of bounds"
2185
+ },
2186
+ {
2187
+ "kind": "function",
2188
+ "name": "inRange",
2189
+ "return": {
2190
+ "type": {
2191
+ "text": "boolean"
2192
+ }
2193
+ },
2194
+ "parameters": [
2195
+ {
2196
+ "name": "date",
2197
+ "type": {
2198
+ "text": "Date"
2199
+ }
2200
+ },
2201
+ {
2202
+ "name": "min",
2203
+ "optional": true,
2204
+ "type": {
2205
+ "text": "Date"
2206
+ }
2207
+ },
2208
+ {
2209
+ "name": "max",
2210
+ "optional": true,
2211
+ "type": {
2212
+ "text": "Date"
2213
+ }
2214
+ }
2215
+ ],
2216
+ "description": "Check if date is within a min and max"
2217
+ },
2218
+ {
2219
+ "kind": "function",
2220
+ "name": "getViewOfMonth",
2221
+ "return": {
2222
+ "type": {
2223
+ "text": "Date[]"
2224
+ }
2225
+ },
2226
+ "parameters": [
2227
+ {
2228
+ "name": "date",
2229
+ "type": {
2230
+ "text": "Date"
2231
+ }
2232
+ },
2233
+ {
2234
+ "name": "firstDayOfWeek",
2235
+ "default": "DaysOfWeek.Monday",
2236
+ "type": {
2237
+ "text": "DaysOfWeek"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "description": "given a date, return an array of dates from a calendar perspective"
2242
+ }
2243
+ ],
2244
+ "exports": [
2245
+ {
2246
+ "kind": "js",
2247
+ "name": "createDate",
2248
+ "declaration": {
2249
+ "name": "createDate",
2250
+ "module": "src/common/dates.ts"
2251
+ }
2252
+ },
2253
+ {
2254
+ "kind": "js",
2255
+ "name": "parseISODate",
2256
+ "declaration": {
2257
+ "name": "parseISODate",
2258
+ "module": "src/common/dates.ts"
2259
+ }
2260
+ },
2261
+ {
2262
+ "kind": "js",
2263
+ "name": "printISODate",
2264
+ "declaration": {
2265
+ "name": "printISODate",
2266
+ "module": "src/common/dates.ts"
2267
+ }
2268
+ },
2269
+ {
2270
+ "kind": "js",
2271
+ "name": "isEqualMonth",
2272
+ "declaration": {
2273
+ "name": "isEqualMonth",
2274
+ "module": "src/common/dates.ts"
2275
+ }
2276
+ },
2277
+ {
2278
+ "kind": "js",
2279
+ "name": "isEqual",
2280
+ "declaration": {
2281
+ "name": "isEqual",
2282
+ "module": "src/common/dates.ts"
2283
+ }
2284
+ },
2285
+ {
2286
+ "kind": "js",
2287
+ "name": "addDays",
2288
+ "declaration": {
2289
+ "name": "addDays",
2290
+ "module": "src/common/dates.ts"
2291
+ }
2292
+ },
2293
+ {
2294
+ "kind": "js",
2295
+ "name": "addMonths",
2296
+ "declaration": {
2297
+ "name": "addMonths",
2298
+ "module": "src/common/dates.ts"
2299
+ }
2300
+ },
2301
+ {
2302
+ "kind": "js",
2303
+ "name": "addYears",
2304
+ "declaration": {
2305
+ "name": "addYears",
2306
+ "module": "src/common/dates.ts"
2307
+ }
2308
+ },
2309
+ {
2310
+ "kind": "js",
2311
+ "name": "startOfWeek",
2312
+ "declaration": {
2313
+ "name": "startOfWeek",
2314
+ "module": "src/common/dates.ts"
2315
+ }
2316
+ },
2317
+ {
2318
+ "kind": "js",
2319
+ "name": "endOfWeek",
2320
+ "declaration": {
2321
+ "name": "endOfWeek",
2322
+ "module": "src/common/dates.ts"
2323
+ }
2324
+ },
2325
+ {
2326
+ "kind": "js",
2327
+ "name": "startOfMonth",
2328
+ "declaration": {
2329
+ "name": "startOfMonth",
2330
+ "module": "src/common/dates.ts"
2331
+ }
2332
+ },
2333
+ {
2334
+ "kind": "js",
2335
+ "name": "endOfMonth",
2336
+ "declaration": {
2337
+ "name": "endOfMonth",
2338
+ "module": "src/common/dates.ts"
2339
+ }
2340
+ },
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "setMonth",
2344
+ "declaration": {
2345
+ "name": "setMonth",
2346
+ "module": "src/common/dates.ts"
2347
+ }
2348
+ },
2349
+ {
2350
+ "kind": "js",
2351
+ "name": "setYear",
2352
+ "declaration": {
2353
+ "name": "setYear",
2354
+ "module": "src/common/dates.ts"
2355
+ }
2356
+ },
2357
+ {
2358
+ "kind": "js",
2359
+ "name": "clamp",
2360
+ "declaration": {
2361
+ "name": "clamp",
2362
+ "module": "src/common/dates.ts"
2363
+ }
2364
+ },
2365
+ {
2366
+ "kind": "js",
2367
+ "name": "inRange",
2368
+ "declaration": {
2369
+ "name": "inRange",
2370
+ "module": "src/common/dates.ts"
2371
+ }
2372
+ },
2373
+ {
2374
+ "kind": "js",
2375
+ "name": "getViewOfMonth",
2376
+ "declaration": {
2377
+ "name": "getViewOfMonth",
2378
+ "module": "src/common/dates.ts"
2379
+ }
2380
+ }
2381
+ ]
2382
+ },
2383
+ {
2384
+ "kind": "javascript-module",
2385
+ "path": "src/common/events.ts",
2386
+ "declarations": [
2387
+ {
2388
+ "kind": "class",
2389
+ "description": "A base class for events which defaults to bubbling and composed",
2390
+ "name": "NordEvent",
2391
+ "superclass": {
2392
+ "name": "Event",
2393
+ "module": "src/common/events.ts"
2394
+ },
2395
+ "status": null,
2396
+ "category": null
2397
+ }
2398
+ ],
2399
+ "exports": [
2400
+ {
2401
+ "kind": "js",
2402
+ "name": "NordEvent",
2403
+ "declaration": {
2404
+ "name": "NordEvent",
2405
+ "module": "src/common/events.ts"
2406
+ }
2407
+ }
2408
+ ]
2409
+ },
2410
+ {
2411
+ "kind": "javascript-module",
2412
+ "path": "src/common/focus.ts",
2413
+ "declarations": [
2414
+ {
2415
+ "kind": "function",
2416
+ "name": "getFocusedElement",
2417
+ "return": {
2418
+ "type": {
2419
+ "text": "Element | undefined"
2420
+ }
2421
+ },
2422
+ "parameters": [
2423
+ {
2424
+ "name": "root",
2425
+ "type": {
2426
+ "text": "Document | ShadowRoot"
2427
+ }
2428
+ }
2429
+ ],
2430
+ "description": "Gets the currently focused element, taking shadow roots into account."
2431
+ }
2432
+ ],
2433
+ "exports": [
2434
+ {
2435
+ "kind": "js",
2436
+ "name": "getFocusedElement",
2437
+ "declaration": {
2438
+ "name": "getFocusedElement",
2439
+ "module": "src/common/focus.ts"
2440
+ }
2441
+ }
2442
+ ]
2443
+ },
2444
+ {
2445
+ "kind": "javascript-module",
2446
+ "path": "src/common/input.ts",
2447
+ "declarations": [
2448
+ {
2449
+ "kind": "function",
2450
+ "name": "cleanValue",
2451
+ "return": {
2452
+ "type": {
2453
+ "text": "string"
2454
+ }
2455
+ },
2456
+ "parameters": [
2457
+ {
2458
+ "name": "inputEl",
2459
+ "type": {
2460
+ "text": "HTMLInputElement"
2461
+ }
2462
+ },
2463
+ {
2464
+ "name": "regex",
2465
+ "type": {
2466
+ "text": "RegExp"
2467
+ }
2468
+ }
2469
+ ]
2470
+ }
2471
+ ],
2472
+ "exports": [
2473
+ {
2474
+ "kind": "js",
2475
+ "name": "cleanValue",
2476
+ "declaration": {
2477
+ "name": "cleanValue",
2478
+ "module": "src/common/input.ts"
2479
+ }
2480
+ }
2481
+ ]
2482
+ },
2483
+ {
2484
+ "kind": "javascript-module",
2485
+ "path": "src/common/number.ts",
2486
+ "declarations": [
2487
+ {
2488
+ "kind": "function",
2489
+ "name": "wrap",
2490
+ "parameters": [
2491
+ {
2492
+ "name": "val",
2493
+ "type": {
2494
+ "text": "number"
2495
+ }
2496
+ },
2497
+ {
2498
+ "name": "min",
2499
+ "type": {
2500
+ "text": "number"
2501
+ }
2502
+ },
2503
+ {
2504
+ "name": "max",
2505
+ "type": {
2506
+ "text": "number"
2507
+ }
2508
+ }
2509
+ ],
2510
+ "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
2511
+ },
2512
+ {
2513
+ "kind": "function",
2514
+ "name": "range",
2515
+ "parameters": [
2516
+ {
2517
+ "name": "from",
2518
+ "type": {
2519
+ "text": "number"
2520
+ }
2521
+ },
2522
+ {
2523
+ "name": "to",
2524
+ "type": {
2525
+ "text": "number"
2526
+ }
2527
+ }
2528
+ ]
2529
+ }
2530
+ ],
2531
+ "exports": [
2532
+ {
2533
+ "kind": "js",
2534
+ "name": "wrap",
2535
+ "declaration": {
2536
+ "name": "wrap",
2537
+ "module": "src/common/number.ts"
2538
+ }
2539
+ },
2540
+ {
2541
+ "kind": "js",
2542
+ "name": "range",
2543
+ "declaration": {
2544
+ "name": "range",
2545
+ "module": "src/common/number.ts"
2546
+ }
2547
+ }
2548
+ ]
2549
+ },
2550
+ {
2551
+ "kind": "javascript-module",
2552
+ "path": "src/common/ref.ts",
2553
+ "declarations": [
2554
+ {
2555
+ "kind": "function",
2556
+ "name": "mergeRefs",
2557
+ "return": {
2558
+ "type": {
2559
+ "text": "RefCallback"
2560
+ }
2561
+ },
2562
+ "parameters": [
2563
+ {
2564
+ "name": "refs",
2565
+ "type": {
2566
+ "text": "Ref[]"
2567
+ }
2568
+ }
2569
+ ],
2570
+ "description": "Creates a ref callback which will assign the element to every given ref"
2571
+ }
2572
+ ],
2573
+ "exports": [
2574
+ {
2575
+ "kind": "js",
2576
+ "name": "mergeRefs",
2577
+ "declaration": {
2578
+ "name": "mergeRefs",
2579
+ "module": "src/common/ref.ts"
2580
+ }
2581
+ }
2582
+ ]
2583
+ },
2584
+ {
2585
+ "kind": "javascript-module",
2586
+ "path": "src/date-picker/DatePicker.ts",
2587
+ "declarations": [
2588
+ {
2589
+ "kind": "class",
2590
+ "description": "\nDate Picker allows user to enter a date either through text input,\nor by choosing a date from the calendar. Please note that the date\nmust be passed in IS0-8601 format: YYYY-MM-DD.",
2591
+ "name": "DatePicker",
2592
+ "members": [
2593
+ {
2594
+ "kind": "field",
2595
+ "name": "toggleButton",
2596
+ "type": {
2597
+ "text": "Button"
2598
+ },
2599
+ "privacy": "private"
2600
+ },
2601
+ {
2602
+ "kind": "field",
2603
+ "name": "closeButton",
2604
+ "type": {
2605
+ "text": "HTMLButtonElement"
2606
+ },
2607
+ "privacy": "private"
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "calendar",
2612
+ "type": {
2613
+ "text": "Calendar"
2614
+ },
2615
+ "privacy": "private"
2616
+ },
2617
+ {
2618
+ "kind": "field",
2619
+ "name": "dialog",
2620
+ "type": {
2621
+ "text": "HTMLElement"
2622
+ },
2623
+ "privacy": "private"
2624
+ },
2625
+ {
2626
+ "kind": "field",
2627
+ "name": "dismiss",
2628
+ "privacy": "private",
2629
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: e => this.hide(e.type !== \"click\"),\n isDismissible: node => node !== this.calendar && node !== this.toggleButton,\n })"
2630
+ },
2631
+ {
2632
+ "kind": "field",
2633
+ "name": "swipe",
2634
+ "privacy": "private",
2635
+ "default": "new SwipeController(this, {\n target: () => this.dialog,\n matchesGesture: isDownwardsSwipe,\n onSwipeEnd: () => this.hide(false),\n })"
2636
+ },
2637
+ {
2638
+ "kind": "field",
2639
+ "name": "dateFormatLong",
2640
+ "type": {
2641
+ "text": "Intl.DateTimeFormat"
2642
+ },
2643
+ "privacy": "private",
2644
+ "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"
2645
+ },
2646
+ {
2647
+ "kind": "field",
2648
+ "name": "open",
2649
+ "type": {
2650
+ "text": "boolean"
2651
+ },
2652
+ "privacy": "private",
2653
+ "default": "false"
2654
+ },
2655
+ {
2656
+ "kind": "field",
2657
+ "name": "value",
2658
+ "type": {
2659
+ "text": "string"
2660
+ },
2661
+ "default": "\"\"",
2662
+ "description": "Date value. Must be in IS0-8601 format: YYYY-MM-DD",
2663
+ "attribute": "value",
2664
+ "inheritedFrom": {
2665
+ "name": "InputMixin",
2666
+ "module": "src/common/mixins/InputMixin.ts"
2667
+ }
2668
+ },
2669
+ {
2670
+ "kind": "field",
2671
+ "name": "valueAsDate",
2672
+ "type": {
2673
+ "text": "Date | undefined"
2674
+ },
2675
+ "description": "Get/set the value of the picker as a Date object."
2676
+ },
2677
+ {
2678
+ "kind": "field",
2679
+ "name": "valueAsNumber",
2680
+ "type": {
2681
+ "text": "number"
2682
+ },
2683
+ "description": "Get/set the value of the picker as the number of milliseconds elapsed since the UNIX epoch."
2684
+ },
2685
+ {
2686
+ "kind": "field",
2687
+ "name": "min",
2688
+ "type": {
2689
+ "text": "string"
2690
+ },
2691
+ "default": "\"\"",
2692
+ "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.",
2693
+ "attribute": "min"
2694
+ },
2695
+ {
2696
+ "kind": "field",
2697
+ "name": "max",
2698
+ "type": {
2699
+ "text": "string"
2700
+ },
2701
+ "default": "\"\"",
2702
+ "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.",
2703
+ "attribute": "max"
2704
+ },
2705
+ {
2706
+ "kind": "field",
2707
+ "name": "direction",
2708
+ "type": {
2709
+ "text": "\"left\" | \"right\""
2710
+ },
2711
+ "default": "\"right\"",
2712
+ "description": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right.",
2713
+ "attribute": "direction"
2714
+ },
2715
+ {
2716
+ "kind": "field",
2717
+ "name": "firstDayOfWeek",
2718
+ "type": {
2719
+ "text": "DaysOfWeek"
2720
+ },
2721
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
2722
+ "attribute": "first-day-of-week"
2723
+ },
2724
+ {
2725
+ "kind": "field",
2726
+ "name": "localization",
2727
+ "type": {
2728
+ "text": "DatePickerLocalizedText"
2729
+ },
2730
+ "default": "localization",
2731
+ "description": "Button labels, day names, month names, etc, used for localization.\nDefault is English."
2732
+ },
2733
+ {
2734
+ "kind": "field",
2735
+ "name": "dateAdapter",
2736
+ "type": {
2737
+ "text": "DateAdapter"
2738
+ },
2739
+ "default": "isoAdapter",
2740
+ "description": "Date adapter, for custom parsing/formatting.\nMust be object with a `parse` function which accepts a `string` and returns a `Date`,\nand a `format` function which accepts a `Date` and returns a `string`.\nDefault is IS0-8601 parsing and formatting."
2741
+ },
2742
+ {
2743
+ "kind": "field",
2744
+ "name": "isDateDisabled",
2745
+ "type": {
2746
+ "text": "DateDisabledPredicate"
2747
+ },
2748
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
2749
+ },
2750
+ {
2751
+ "kind": "method",
2752
+ "name": "show",
2753
+ "description": "Show the calendar modal, moving focus to the calendar inside."
2754
+ },
2755
+ {
2756
+ "kind": "method",
2757
+ "name": "hide",
2758
+ "parameters": [
2759
+ {
2760
+ "name": "moveFocusToButton",
2761
+ "default": "true"
2762
+ }
2763
+ ],
2764
+ "description": "Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus\nreturning to the date picker's button. Default is true."
2765
+ },
2766
+ {
2767
+ "kind": "method",
2768
+ "name": "createDateFormatters",
2769
+ "privacy": "private"
2770
+ },
2771
+ {
2772
+ "kind": "method",
2773
+ "name": "focusFirst",
2774
+ "privacy": "private"
2775
+ },
2776
+ {
2777
+ "kind": "method",
2778
+ "name": "focusLast",
2779
+ "privacy": "private"
2780
+ },
2781
+ {
2782
+ "kind": "field",
2783
+ "name": "handleDaySelect",
2784
+ "privacy": "private"
2785
+ },
2786
+ {
2787
+ "kind": "field",
2788
+ "name": "toggleOpen",
2789
+ "privacy": "private"
2790
+ },
2791
+ {
2792
+ "kind": "field",
2793
+ "name": "handleBlur",
2794
+ "privacy": "private"
2795
+ },
2796
+ {
2797
+ "kind": "field",
2798
+ "name": "handleFocus",
2799
+ "privacy": "private"
2800
+ },
2801
+ {
2802
+ "kind": "field",
2803
+ "name": "handleInputChange",
2804
+ "privacy": "private"
2805
+ },
2806
+ {
2807
+ "kind": "method",
2808
+ "name": "setValue",
2809
+ "privacy": "private",
2810
+ "parameters": [
2811
+ {
2812
+ "name": "date",
2813
+ "optional": true,
2814
+ "type": {
2815
+ "text": "Date"
2816
+ }
2817
+ }
2818
+ ]
2819
+ },
2820
+ {
2821
+ "kind": "field",
2822
+ "name": "slots",
2823
+ "privacy": "protected",
2824
+ "default": "new SlotController(this)",
2825
+ "inheritedFrom": {
2826
+ "name": "FormAssociatedMixin",
2827
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2828
+ }
2829
+ },
2830
+ {
2831
+ "kind": "field",
2832
+ "name": "inputId",
2833
+ "type": {
2834
+ "text": "string"
2835
+ },
2836
+ "privacy": "protected",
2837
+ "default": "\"input\"",
2838
+ "inheritedFrom": {
2839
+ "name": "FormAssociatedMixin",
2840
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2841
+ }
2842
+ },
2843
+ {
2844
+ "kind": "field",
2845
+ "name": "label",
2846
+ "type": {
2847
+ "text": "string"
2848
+ },
2849
+ "default": "\"\"",
2850
+ "description": "Label for the input.",
2851
+ "attribute": "label",
2852
+ "inheritedFrom": {
2853
+ "name": "FormAssociatedMixin",
2854
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2855
+ }
2856
+ },
2857
+ {
2858
+ "kind": "field",
2859
+ "name": "hint",
2860
+ "type": {
2861
+ "text": "string | undefined"
2862
+ },
2863
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
2864
+ "attribute": "hint",
2865
+ "inheritedFrom": {
2866
+ "name": "FormAssociatedMixin",
2867
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2868
+ }
2869
+ },
2870
+ {
2871
+ "kind": "field",
2872
+ "name": "hideLabel",
2873
+ "type": {
2874
+ "text": "boolean"
2875
+ },
2876
+ "default": "false",
2877
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
2878
+ "attribute": "hide-label",
2879
+ "inheritedFrom": {
2880
+ "name": "FormAssociatedMixin",
2881
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2882
+ }
2883
+ },
2884
+ {
2885
+ "kind": "field",
2886
+ "name": "placeholder",
2887
+ "type": {
2888
+ "text": "string | undefined"
2889
+ },
2890
+ "description": "Placeholder text to display within the input.",
2891
+ "attribute": "placeholder",
2892
+ "inheritedFrom": {
2893
+ "name": "FormAssociatedMixin",
2894
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2895
+ }
2896
+ },
2897
+ {
2898
+ "kind": "field",
2899
+ "name": "error",
2900
+ "type": {
2901
+ "text": "string | undefined"
2902
+ },
2903
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
2904
+ "attribute": "error",
2905
+ "inheritedFrom": {
2906
+ "name": "FormAssociatedMixin",
2907
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2908
+ }
2909
+ },
2910
+ {
2911
+ "kind": "field",
2912
+ "name": "required",
2913
+ "type": {
2914
+ "text": "boolean"
2915
+ },
2916
+ "default": "false",
2917
+ "description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
2918
+ "attribute": "required",
2919
+ "inheritedFrom": {
2920
+ "name": "FormAssociatedMixin",
2921
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2922
+ }
2923
+ },
2924
+ {
2925
+ "kind": "field",
2926
+ "name": "expand",
2927
+ "type": {
2928
+ "text": "boolean"
2929
+ },
2930
+ "default": "false",
2931
+ "description": "Controls whether the input expands to fill the width of its container.",
2932
+ "attribute": "expand",
2933
+ "reflects": true,
2934
+ "inheritedFrom": {
2935
+ "name": "FormAssociatedMixin",
2936
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2937
+ }
2938
+ },
2939
+ {
2940
+ "kind": "field",
2941
+ "name": "handleFormData",
2942
+ "privacy": "private",
2943
+ "inheritedFrom": {
2944
+ "name": "FormAssociatedMixin",
2945
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2946
+ }
2947
+ },
2948
+ {
2949
+ "kind": "method",
2950
+ "name": "handleInput",
2951
+ "privacy": "protected",
2952
+ "parameters": [
2953
+ {
2954
+ "name": "e",
2955
+ "type": {
2956
+ "text": "Event"
2957
+ }
2958
+ }
2959
+ ],
2960
+ "inheritedFrom": {
2961
+ "name": "FormAssociatedMixin",
2962
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2963
+ }
2964
+ },
2965
+ {
2966
+ "kind": "method",
2967
+ "name": "handleChange",
2968
+ "privacy": "protected",
2969
+ "inheritedFrom": {
2970
+ "name": "FormAssociatedMixin",
2971
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2972
+ }
2973
+ },
2974
+ {
2975
+ "kind": "method",
2976
+ "name": "renderLabel",
2977
+ "privacy": "protected",
2978
+ "inheritedFrom": {
2979
+ "name": "FormAssociatedMixin",
2980
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2981
+ }
2982
+ },
2983
+ {
2984
+ "kind": "method",
2985
+ "name": "renderHint",
2986
+ "privacy": "private",
2987
+ "inheritedFrom": {
2988
+ "name": "FormAssociatedMixin",
2989
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2990
+ }
2991
+ },
2992
+ {
2993
+ "kind": "method",
2994
+ "name": "renderError",
2995
+ "privacy": "protected",
2996
+ "inheritedFrom": {
2997
+ "name": "FormAssociatedMixin",
2998
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2999
+ }
3000
+ },
3001
+ {
3002
+ "kind": "method",
3003
+ "name": "getDescribedBy",
3004
+ "privacy": "protected",
3005
+ "inheritedFrom": {
3006
+ "name": "FormAssociatedMixin",
3007
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3008
+ }
3009
+ },
3010
+ {
3011
+ "kind": "method",
3012
+ "name": "getInvalid",
3013
+ "privacy": "protected",
3014
+ "inheritedFrom": {
3015
+ "name": "FormAssociatedMixin",
3016
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3017
+ }
3018
+ },
3019
+ {
3020
+ "kind": "field",
3021
+ "name": "hasHint",
3022
+ "privacy": "protected",
3023
+ "inheritedFrom": {
3024
+ "name": "FormAssociatedMixin",
3025
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3026
+ }
3027
+ },
3028
+ {
3029
+ "kind": "field",
3030
+ "name": "hasError",
3031
+ "privacy": "protected",
3032
+ "inheritedFrom": {
3033
+ "name": "FormAssociatedMixin",
3034
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3035
+ }
3036
+ },
3037
+ {
3038
+ "kind": "field",
3039
+ "name": "disabled",
3040
+ "type": {
3041
+ "text": "boolean"
3042
+ },
3043
+ "default": "false",
3044
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
3045
+ "attribute": "disabled",
3046
+ "inheritedFrom": {
3047
+ "name": "InputMixin",
3048
+ "module": "src/common/mixins/InputMixin.ts"
3049
+ }
3050
+ },
3051
+ {
3052
+ "kind": "field",
3053
+ "name": "name",
3054
+ "type": {
3055
+ "text": "string | undefined"
3056
+ },
3057
+ "description": "The name of the input component.",
3058
+ "attribute": "name",
3059
+ "inheritedFrom": {
3060
+ "name": "InputMixin",
3061
+ "module": "src/common/mixins/InputMixin.ts"
3062
+ }
3063
+ },
3064
+ {
3065
+ "kind": "field",
3066
+ "name": "form",
3067
+ "privacy": "protected",
3068
+ "description": "Gets the form, if any, associated with the input element.",
3069
+ "inheritedFrom": {
3070
+ "name": "InputMixin",
3071
+ "module": "src/common/mixins/InputMixin.ts"
3072
+ }
3073
+ },
3074
+ {
3075
+ "kind": "field",
3076
+ "name": "focusableRef",
3077
+ "privacy": "protected",
3078
+ "inheritedFrom": {
3079
+ "name": "FocusableMixin",
3080
+ "module": "src/common/mixins/FocusableMixin.ts"
3081
+ }
3082
+ },
3083
+ {
3084
+ "kind": "method",
3085
+ "name": "focus",
3086
+ "parameters": [
3087
+ {
3088
+ "name": "options",
3089
+ "optional": true,
3090
+ "type": {
3091
+ "text": "FocusOptions"
3092
+ },
3093
+ "description": "An object which controls aspects of the focusing process."
3094
+ }
3095
+ ],
3096
+ "description": "Programmatically move focus to the component",
3097
+ "inheritedFrom": {
3098
+ "name": "FocusableMixin",
3099
+ "module": "src/common/mixins/FocusableMixin.ts"
3100
+ }
3101
+ },
3102
+ {
3103
+ "kind": "method",
3104
+ "name": "blur",
3105
+ "description": "Programmatically remove focus from the component.",
3106
+ "inheritedFrom": {
3107
+ "name": "FocusableMixin",
3108
+ "module": "src/common/mixins/FocusableMixin.ts"
3109
+ }
3110
+ },
3111
+ {
3112
+ "kind": "method",
3113
+ "name": "click",
3114
+ "description": "Programmatically simulates a click on the component.",
3115
+ "inheritedFrom": {
3116
+ "name": "FocusableMixin",
3117
+ "module": "src/common/mixins/FocusableMixin.ts"
3118
+ }
3119
+ },
3120
+ {
3121
+ "kind": "field",
3122
+ "name": "_warningLogged",
3123
+ "type": {
3124
+ "text": "boolean"
3125
+ },
1140
3126
  "privacy": "private",
1141
3127
  "static": true,
1142
3128
  "default": "false",
@@ -1152,140 +3138,226 @@
1152
3138
  "type": {
1153
3139
  "text": "NordEvent"
1154
3140
  },
1155
- "description": "The command menu was opened foo."
3141
+ "description": "Dispatched when the calendar is toggled open."
1156
3142
  },
1157
3143
  {
1158
3144
  "name": "close",
1159
3145
  "type": {
1160
3146
  "text": "NordEvent"
1161
3147
  },
1162
- "description": "The command menu was closed bar."
3148
+ "description": "Dispatched when the calendar is closed."
3149
+ },
3150
+ {
3151
+ "name": "change",
3152
+ "type": {
3153
+ "text": "NordEvent"
3154
+ },
3155
+ "description": "Fired whenever the input's value is changed via user interaction.",
3156
+ "inheritedFrom": {
3157
+ "name": "FormAssociatedMixin",
3158
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3159
+ }
3160
+ },
3161
+ {
3162
+ "name": "input",
3163
+ "type": {
3164
+ "text": "NordEvent"
3165
+ },
3166
+ "description": "Fired as the user types into the input.",
3167
+ "inheritedFrom": {
3168
+ "name": "FormAssociatedMixin",
3169
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3170
+ }
3171
+ }
3172
+ ],
3173
+ "attributes": [
3174
+ {
3175
+ "name": "value",
3176
+ "type": {
3177
+ "text": "string"
3178
+ },
3179
+ "default": "\"\"",
3180
+ "description": "Date value. Must be in IS0-8601 format: YYYY-MM-DD",
3181
+ "fieldName": "value",
3182
+ "inheritedFrom": {
3183
+ "name": "InputMixin",
3184
+ "module": "src/common/mixins/InputMixin.ts"
3185
+ }
3186
+ },
3187
+ {
3188
+ "name": "min",
3189
+ "type": {
3190
+ "text": "string"
3191
+ },
3192
+ "default": "\"\"",
3193
+ "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.",
3194
+ "fieldName": "min"
3195
+ },
3196
+ {
3197
+ "name": "max",
3198
+ "type": {
3199
+ "text": "string"
3200
+ },
3201
+ "default": "\"\"",
3202
+ "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.",
3203
+ "fieldName": "max"
3204
+ },
3205
+ {
3206
+ "name": "direction",
3207
+ "type": {
3208
+ "text": "\"left\" | \"right\""
3209
+ },
3210
+ "default": "\"right\"",
3211
+ "description": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right.",
3212
+ "fieldName": "direction"
3213
+ },
3214
+ {
3215
+ "name": "first-day-of-week",
3216
+ "type": {
3217
+ "text": "DaysOfWeek"
3218
+ },
3219
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
3220
+ "fieldName": "firstDayOfWeek"
3221
+ },
3222
+ {
3223
+ "name": "label",
3224
+ "type": {
3225
+ "text": "string"
3226
+ },
3227
+ "default": "\"\"",
3228
+ "description": "Label for the input.",
3229
+ "fieldName": "label",
3230
+ "inheritedFrom": {
3231
+ "name": "FormAssociatedMixin",
3232
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3233
+ }
3234
+ },
3235
+ {
3236
+ "name": "hint",
3237
+ "type": {
3238
+ "text": "string | undefined"
3239
+ },
3240
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
3241
+ "fieldName": "hint",
3242
+ "inheritedFrom": {
3243
+ "name": "FormAssociatedMixin",
3244
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3245
+ }
3246
+ },
3247
+ {
3248
+ "name": "hide-label",
3249
+ "type": {
3250
+ "text": "boolean"
3251
+ },
3252
+ "default": "false",
3253
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
3254
+ "fieldName": "hideLabel",
3255
+ "inheritedFrom": {
3256
+ "name": "FormAssociatedMixin",
3257
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3258
+ }
3259
+ },
3260
+ {
3261
+ "name": "placeholder",
3262
+ "type": {
3263
+ "text": "string | undefined"
3264
+ },
3265
+ "description": "Placeholder text to display within the input.",
3266
+ "fieldName": "placeholder",
3267
+ "inheritedFrom": {
3268
+ "name": "FormAssociatedMixin",
3269
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3270
+ }
3271
+ },
3272
+ {
3273
+ "name": "error",
3274
+ "type": {
3275
+ "text": "string | undefined"
3276
+ },
3277
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
3278
+ "fieldName": "error",
3279
+ "inheritedFrom": {
3280
+ "name": "FormAssociatedMixin",
3281
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3282
+ }
3283
+ },
3284
+ {
3285
+ "name": "required",
3286
+ "type": {
3287
+ "text": "boolean"
3288
+ },
3289
+ "default": "false",
3290
+ "description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
3291
+ "fieldName": "required",
3292
+ "inheritedFrom": {
3293
+ "name": "FormAssociatedMixin",
3294
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3295
+ }
1163
3296
  },
1164
3297
  {
3298
+ "name": "expand",
1165
3299
  "type": {
1166
- "text": "SelectEvent"
3300
+ "text": "boolean"
1167
3301
  },
1168
- "description": "User selected a command from the menu.",
1169
- "name": "n-select"
1170
- }
1171
- ],
1172
- "attributes": [
3302
+ "default": "false",
3303
+ "description": "Controls whether the input expands to fill the width of its container.",
3304
+ "fieldName": "expand",
3305
+ "inheritedFrom": {
3306
+ "name": "FormAssociatedMixin",
3307
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3308
+ }
3309
+ },
1173
3310
  {
1174
- "name": "open",
3311
+ "name": "disabled",
1175
3312
  "type": {
1176
3313
  "text": "boolean"
1177
3314
  },
1178
3315
  "default": "false",
1179
- "description": "Show or hide the command menu.",
1180
- "fieldName": "open"
3316
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
3317
+ "fieldName": "disabled",
3318
+ "inheritedFrom": {
3319
+ "name": "InputMixin",
3320
+ "module": "src/common/mixins/InputMixin.ts"
3321
+ }
1181
3322
  },
1182
3323
  {
1183
- "name": "placeholder",
3324
+ "name": "name",
1184
3325
  "type": {
1185
- "text": "string"
3326
+ "text": "string | undefined"
1186
3327
  },
1187
- "default": "\"Type a command or search...\"",
1188
- "description": "Hint text to display in the search field.",
1189
- "fieldName": "placeholder"
3328
+ "description": "The name of the input component.",
3329
+ "fieldName": "name",
3330
+ "inheritedFrom": {
3331
+ "name": "InputMixin",
3332
+ "module": "src/common/mixins/InputMixin.ts"
3333
+ }
1190
3334
  }
1191
3335
  ],
1192
3336
  "mixins": [
1193
3337
  {
1194
- "name": "DraftComponentMixin",
1195
- "module": "/src/common/mixins/DraftComponentMixin.js"
1196
- }
1197
- ],
1198
- "superclass": {
1199
- "name": "LitElement",
1200
- "package": "lit"
1201
- },
1202
- "status": "draft",
1203
- "category": "action",
1204
- "tagName": "nord-command-menu",
1205
- "customElement": true
1206
- }
1207
- ],
1208
- "exports": [
1209
- {
1210
- "kind": "js",
1211
- "name": "default",
1212
- "declaration": {
1213
- "name": "CommandMenu",
1214
- "module": "src/command-menu/CommandMenu.ts"
1215
- }
1216
- },
1217
- {
1218
- "kind": "custom-element-definition",
1219
- "name": "nord-command-menu",
1220
- "declaration": {
1221
- "name": "CommandMenu",
1222
- "module": "src/command-menu/CommandMenu.ts"
1223
- }
1224
- }
1225
- ]
1226
- },
1227
- {
1228
- "kind": "javascript-module",
1229
- "path": "src/command-menu/CommandMenuAction.ts",
1230
- "declarations": [
1231
- {
1232
- "kind": "class",
1233
- "description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
1234
- "name": "CommandMenuAction",
1235
- "members": [
1236
- {
1237
- "kind": "field",
1238
- "name": "command",
1239
- "type": {
1240
- "text": "ICommandMenuAction"
1241
- },
1242
- "attribute": "command"
1243
- },
1244
- {
1245
- "kind": "field",
1246
- "name": "selected",
1247
- "type": {
1248
- "text": "boolean"
1249
- },
1250
- "default": "false",
1251
- "attribute": "selected"
3338
+ "name": "FormAssociatedMixin",
3339
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
1252
3340
  },
1253
3341
  {
1254
- "kind": "method",
1255
- "name": "ensureInView",
1256
- "privacy": "private",
1257
- "description": "Scroll to show element"
3342
+ "name": "InputMixin",
3343
+ "module": "/src/common/mixins/InputMixin.js"
1258
3344
  },
1259
3345
  {
1260
- "kind": "method",
1261
- "name": "renderShortcut",
1262
- "privacy": "private"
1263
- }
1264
- ],
1265
- "attributes": [
1266
- {
1267
- "name": "command",
1268
- "type": {
1269
- "text": "ICommandMenuAction"
1270
- },
1271
- "fieldName": "command"
3346
+ "name": "FocusableMixin",
3347
+ "module": "/src/common/mixins/FocusableMixin.js"
1272
3348
  },
1273
3349
  {
1274
- "name": "selected",
1275
- "type": {
1276
- "text": "boolean"
1277
- },
1278
- "default": "false",
1279
- "fieldName": "selected"
3350
+ "name": "DraftComponentMixin",
3351
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1280
3352
  }
1281
3353
  ],
1282
3354
  "superclass": {
1283
3355
  "name": "LitElement",
1284
3356
  "package": "lit"
1285
3357
  },
1286
- "status": "internal",
1287
- "category": null,
1288
- "tagName": "nord-command-menu-action",
3358
+ "status": "draft",
3359
+ "category": "form",
3360
+ "tagName": "nord-date-picker",
1289
3361
  "customElement": true
1290
3362
  }
1291
3363
  ],
@@ -1294,120 +3366,64 @@
1294
3366
  "kind": "js",
1295
3367
  "name": "default",
1296
3368
  "declaration": {
1297
- "name": "CommandMenuAction",
1298
- "module": "src/command-menu/CommandMenuAction.ts"
3369
+ "name": "DatePicker",
3370
+ "module": "src/date-picker/DatePicker.ts"
1299
3371
  }
1300
3372
  },
1301
3373
  {
1302
3374
  "kind": "custom-element-definition",
1303
- "name": "nord-command-menu-action",
3375
+ "name": "nord-date-picker",
1304
3376
  "declaration": {
1305
- "name": "CommandMenuAction",
1306
- "module": "src/command-menu/CommandMenuAction.ts"
3377
+ "name": "DatePicker",
3378
+ "module": "src/date-picker/DatePicker.ts"
1307
3379
  }
1308
3380
  }
1309
3381
  ]
1310
3382
  },
1311
3383
  {
1312
3384
  "kind": "javascript-module",
1313
- "path": "src/command-menu/ICommandMenuAction.ts",
1314
- "declarations": [],
1315
- "exports": []
1316
- },
1317
- {
1318
- "kind": "javascript-module",
1319
- "path": "src/command-menu/KeyboardController.ts",
3385
+ "path": "src/date-picker/date-adapter.ts",
1320
3386
  "declarations": [
1321
3387
  {
1322
- "kind": "class",
1323
- "description": "",
1324
- "name": "KeyboardController",
1325
- "members": [
1326
- {
1327
- "kind": "field",
1328
- "name": "host",
1329
- "type": {
1330
- "text": "CommandMenu"
1331
- },
1332
- "privacy": "private",
1333
- "default": "host"
1334
- },
1335
- {
1336
- "kind": "field",
1337
- "name": "globalShortcuts",
1338
- "type": {
1339
- "text": "ShortcutController"
1340
- },
1341
- "privacy": "private",
1342
- "default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
1343
- },
1344
- {
1345
- "kind": "field",
1346
- "name": "navigationShortcuts",
1347
- "type": {
1348
- "text": "ShortcutController"
1349
- },
1350
- "privacy": "private",
1351
- "default": "new ShortcutController(\n host,\n {\n Enter: preventDefault(actions.trigger),\n Backspace: actions.goBack, // we don't want to prevent default, since that would stop backspace deleting chars\n End: preventDefault(actions.end),\n Home: preventDefault(actions.start),\n ArrowDown: preventDefault(actions.next),\n ArrowUp: preventDefault(actions.previous),\n },\n host\n )"
1352
- },
1353
- {
1354
- "kind": "field",
1355
- "name": "commandShortcuts",
1356
- "type": {
1357
- "text": "ShortcutController"
1358
- },
1359
- "privacy": "private",
1360
- "default": "new ShortcutController(host)"
1361
- },
1362
- {
1363
- "kind": "method",
1364
- "name": "registerCommandShortcuts"
1365
- }
1366
- ]
3388
+ "kind": "variable",
3389
+ "name": "isoAdapter",
3390
+ "type": {
3391
+ "text": "DateAdapter"
3392
+ },
3393
+ "default": "{ parse: parseISODate, format: printISODate }"
1367
3394
  }
1368
3395
  ],
1369
3396
  "exports": [
1370
3397
  {
1371
3398
  "kind": "js",
1372
- "name": "KeyboardController",
3399
+ "name": "isoAdapter",
1373
3400
  "declaration": {
1374
- "name": "KeyboardController",
1375
- "module": "src/command-menu/KeyboardController.ts"
3401
+ "name": "isoAdapter",
3402
+ "module": "src/date-picker/date-adapter.ts"
1376
3403
  }
1377
3404
  }
1378
3405
  ]
1379
3406
  },
1380
3407
  {
1381
3408
  "kind": "javascript-module",
1382
- "path": "src/command-menu/events.ts",
3409
+ "path": "src/date-picker/date-localization.ts",
1383
3410
  "declarations": [
1384
3411
  {
1385
- "kind": "class",
1386
- "description": "",
1387
- "name": "SelectEvent",
1388
- "members": [
1389
- {
1390
- "kind": "field",
1391
- "name": "command",
1392
- "type": {
1393
- "text": "ICommandMenuAction"
1394
- },
1395
- "default": "command"
1396
- }
1397
- ],
1398
- "superclass": {
1399
- "name": "NordEvent",
1400
- "module": "/src/common/events.js"
1401
- }
3412
+ "kind": "variable",
3413
+ "name": "localization",
3414
+ "type": {
3415
+ "text": "DatePickerLocalizedText"
3416
+ },
3417
+ "default": "{\n ...calendarLocalization,\n closeLabel: \"Close window\",\n buttonLabel: \"Choose date\",\n selectedDateMessage: \"Selected date is\",\n}"
1402
3418
  }
1403
3419
  ],
1404
3420
  "exports": [
1405
3421
  {
1406
3422
  "kind": "js",
1407
- "name": "SelectEvent",
3423
+ "name": "default",
1408
3424
  "declaration": {
1409
- "name": "SelectEvent",
1410
- "module": "src/command-menu/events.ts"
3425
+ "name": "localization",
3426
+ "module": "src/date-picker/date-localization.ts"
1411
3427
  }
1412
3428
  }
1413
3429
  ]
@@ -1703,6 +3719,19 @@
1703
3719
  "description": "The type of the input.",
1704
3720
  "attribute": "type"
1705
3721
  },
3722
+ {
3723
+ "kind": "method",
3724
+ "name": "handleKeydown",
3725
+ "privacy": "private",
3726
+ "parameters": [
3727
+ {
3728
+ "name": "e",
3729
+ "type": {
3730
+ "text": "KeyboardEvent"
3731
+ }
3732
+ }
3733
+ ]
3734
+ },
1706
3735
  {
1707
3736
  "kind": "field",
1708
3737
  "name": "slots",
@@ -1833,7 +3862,7 @@
1833
3862
  },
1834
3863
  {
1835
3864
  "kind": "method",
1836
- "name": "handleChange",
3865
+ "name": "handleInput",
1837
3866
  "privacy": "protected",
1838
3867
  "parameters": [
1839
3868
  {
@@ -1848,6 +3877,15 @@
1848
3877
  "module": "src/common/mixins/FormAssociatedMixin.ts"
1849
3878
  }
1850
3879
  },
3880
+ {
3881
+ "kind": "method",
3882
+ "name": "handleChange",
3883
+ "privacy": "protected",
3884
+ "inheritedFrom": {
3885
+ "name": "FormAssociatedMixin",
3886
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3887
+ }
3888
+ },
1851
3889
  {
1852
3890
  "kind": "method",
1853
3891
  "name": "renderLabel",
@@ -1942,8 +3980,9 @@
1942
3980
  "kind": "field",
1943
3981
  "name": "value",
1944
3982
  "type": {
1945
- "text": "string | undefined"
3983
+ "text": "string"
1946
3984
  },
3985
+ "default": "\"\"",
1947
3986
  "description": "The value of the input component.",
1948
3987
  "attribute": "value",
1949
3988
  "inheritedFrom": {
@@ -2148,8 +4187,9 @@
2148
4187
  {
2149
4188
  "name": "value",
2150
4189
  "type": {
2151
- "text": "string | undefined"
4190
+ "text": "string"
2152
4191
  },
4192
+ "default": "\"\"",
2153
4193
  "description": "The value of the input component.",
2154
4194
  "fieldName": "value",
2155
4195
  "inheritedFrom": {
@@ -2185,6 +4225,17 @@
2185
4225
  "tagName": "nord-input",
2186
4226
  "customElement": true,
2187
4227
  "events": [
4228
+ {
4229
+ "name": "input",
4230
+ "type": {
4231
+ "text": "NordEvent"
4232
+ },
4233
+ "description": "Fired as the user types into the input.",
4234
+ "inheritedFrom": {
4235
+ "name": "FormAssociatedMixin",
4236
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4237
+ }
4238
+ },
2188
4239
  {
2189
4240
  "name": "change",
2190
4241
  "type": {
@@ -2411,7 +4462,7 @@
2411
4462
  },
2412
4463
  {
2413
4464
  "kind": "method",
2414
- "name": "handleChange",
4465
+ "name": "handleInput",
2415
4466
  "privacy": "protected",
2416
4467
  "parameters": [
2417
4468
  {
@@ -2426,6 +4477,15 @@
2426
4477
  "module": "src/common/mixins/FormAssociatedMixin.ts"
2427
4478
  }
2428
4479
  },
4480
+ {
4481
+ "kind": "method",
4482
+ "name": "handleChange",
4483
+ "privacy": "protected",
4484
+ "inheritedFrom": {
4485
+ "name": "FormAssociatedMixin",
4486
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4487
+ }
4488
+ },
2429
4489
  {
2430
4490
  "kind": "method",
2431
4491
  "name": "renderLabel",
@@ -2520,8 +4580,9 @@
2520
4580
  "kind": "field",
2521
4581
  "name": "value",
2522
4582
  "type": {
2523
- "text": "string | undefined"
4583
+ "text": "string"
2524
4584
  },
4585
+ "default": "\"\"",
2525
4586
  "description": "The value of the input component.",
2526
4587
  "attribute": "value",
2527
4588
  "inheritedFrom": {
@@ -2743,8 +4804,9 @@
2743
4804
  {
2744
4805
  "name": "value",
2745
4806
  "type": {
2746
- "text": "string | undefined"
4807
+ "text": "string"
2747
4808
  },
4809
+ "default": "\"\"",
2748
4810
  "description": "The value of the input component.",
2749
4811
  "fieldName": "value",
2750
4812
  "inheritedFrom": {
@@ -2754,6 +4816,17 @@
2754
4816
  }
2755
4817
  ],
2756
4818
  "events": [
4819
+ {
4820
+ "name": "input",
4821
+ "type": {
4822
+ "text": "NordEvent"
4823
+ },
4824
+ "description": "Fired as the user types into the input.",
4825
+ "inheritedFrom": {
4826
+ "name": "FormAssociatedMixin",
4827
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4828
+ }
4829
+ },
2757
4830
  {
2758
4831
  "name": "change",
2759
4832
  "type": {
@@ -2811,20 +4884,243 @@
2811
4884
  "kind": "field",
2812
4885
  "name": "color",
2813
4886
  "type": {
2814
- "text": "string | undefined"
4887
+ "text": "string | undefined"
4888
+ },
4889
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4890
+ "attribute": "color",
4891
+ "reflects": true
4892
+ },
4893
+ {
4894
+ "kind": "field",
4895
+ "name": "label",
4896
+ "type": {
4897
+ "text": "string | undefined"
4898
+ },
4899
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4900
+ "attribute": "label",
4901
+ "reflects": true
4902
+ },
4903
+ {
4904
+ "kind": "field",
4905
+ "name": "_warningLogged",
4906
+ "type": {
4907
+ "text": "boolean"
4908
+ },
4909
+ "privacy": "private",
4910
+ "static": true,
4911
+ "default": "false",
4912
+ "inheritedFrom": {
4913
+ "name": "DraftComponentMixin",
4914
+ "module": "src/common/mixins/DraftComponentMixin.ts"
4915
+ }
4916
+ }
4917
+ ],
4918
+ "attributes": [
4919
+ {
4920
+ "name": "size",
4921
+ "type": {
4922
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4923
+ },
4924
+ "default": "\"m\"",
4925
+ "description": "The size of the spinner.",
4926
+ "fieldName": "size"
4927
+ },
4928
+ {
4929
+ "name": "color",
4930
+ "type": {
4931
+ "text": "string | undefined"
4932
+ },
4933
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4934
+ "fieldName": "color"
4935
+ },
4936
+ {
4937
+ "name": "label",
4938
+ "type": {
4939
+ "text": "string | undefined"
4940
+ },
4941
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4942
+ "fieldName": "label"
4943
+ }
4944
+ ],
4945
+ "mixins": [
4946
+ {
4947
+ "name": "DraftComponentMixin",
4948
+ "module": "/src/common/mixins/DraftComponentMixin.js"
4949
+ }
4950
+ ],
4951
+ "superclass": {
4952
+ "name": "LitElement",
4953
+ "package": "lit"
4954
+ },
4955
+ "status": "draft",
4956
+ "category": "feedback",
4957
+ "tagName": "nord-spinner",
4958
+ "customElement": true
4959
+ }
4960
+ ],
4961
+ "exports": [
4962
+ {
4963
+ "kind": "js",
4964
+ "name": "default",
4965
+ "declaration": {
4966
+ "name": "Spinner",
4967
+ "module": "src/spinner/Spinner.ts"
4968
+ }
4969
+ },
4970
+ {
4971
+ "kind": "custom-element-definition",
4972
+ "name": "nord-spinner",
4973
+ "declaration": {
4974
+ "name": "Spinner",
4975
+ "module": "src/spinner/Spinner.ts"
4976
+ }
4977
+ }
4978
+ ]
4979
+ },
4980
+ {
4981
+ "kind": "javascript-module",
4982
+ "path": "src/table/Table.ts",
4983
+ "declarations": [
4984
+ {
4985
+ "kind": "class",
4986
+ "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
4987
+ "name": "Table",
4988
+ "slots": [
4989
+ {
4990
+ "description": "The table.",
4991
+ "name": ""
4992
+ }
4993
+ ],
4994
+ "members": [
4995
+ {
4996
+ "kind": "field",
4997
+ "name": "density",
4998
+ "type": {
4999
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
5000
+ },
5001
+ "default": "\"default\"",
5002
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5003
+ "attribute": "density",
5004
+ "reflects": true
5005
+ },
5006
+ {
5007
+ "kind": "method",
5008
+ "name": "renderStyles",
5009
+ "privacy": "private",
5010
+ "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
5011
+ },
5012
+ {
5013
+ "kind": "method",
5014
+ "name": "createRenderRoot",
5015
+ "privacy": "protected",
5016
+ "description": "opt out of shadow dom"
5017
+ },
5018
+ {
5019
+ "kind": "field",
5020
+ "name": "_warningLogged",
5021
+ "type": {
5022
+ "text": "boolean"
5023
+ },
5024
+ "privacy": "private",
5025
+ "static": true,
5026
+ "default": "false",
5027
+ "inheritedFrom": {
5028
+ "name": "DraftComponentMixin",
5029
+ "module": "src/common/mixins/DraftComponentMixin.ts"
5030
+ }
5031
+ }
5032
+ ],
5033
+ "attributes": [
5034
+ {
5035
+ "name": "density",
5036
+ "type": {
5037
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
5038
+ },
5039
+ "default": "\"default\"",
5040
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5041
+ "fieldName": "density"
5042
+ }
5043
+ ],
5044
+ "mixins": [
5045
+ {
5046
+ "name": "DraftComponentMixin",
5047
+ "module": "/src/common/mixins/DraftComponentMixin.js"
5048
+ }
5049
+ ],
5050
+ "superclass": {
5051
+ "name": "LitElement",
5052
+ "package": "lit"
5053
+ },
5054
+ "status": "draft",
5055
+ "category": "list",
5056
+ "tagName": "nord-table",
5057
+ "customElement": true
5058
+ }
5059
+ ],
5060
+ "exports": [
5061
+ {
5062
+ "kind": "js",
5063
+ "name": "default",
5064
+ "declaration": {
5065
+ "name": "Table",
5066
+ "module": "src/table/Table.ts"
5067
+ }
5068
+ },
5069
+ {
5070
+ "kind": "custom-element-definition",
5071
+ "name": "nord-table",
5072
+ "declaration": {
5073
+ "name": "Table",
5074
+ "module": "src/table/Table.ts"
5075
+ }
5076
+ }
5077
+ ]
5078
+ },
5079
+ {
5080
+ "kind": "javascript-module",
5081
+ "path": "src/stack/Stack.ts",
5082
+ "declarations": [
5083
+ {
5084
+ "kind": "class",
5085
+ "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
5086
+ "name": "Stack",
5087
+ "slots": [
5088
+ {
5089
+ "description": "The stack content.",
5090
+ "name": ""
5091
+ }
5092
+ ],
5093
+ "members": [
5094
+ {
5095
+ "kind": "field",
5096
+ "name": "gap",
5097
+ "type": {
5098
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5099
+ },
5100
+ "default": "\"m\"",
5101
+ "description": "The space injected between components.",
5102
+ "attribute": "gap",
5103
+ "reflects": true
5104
+ },
5105
+ {
5106
+ "kind": "field",
5107
+ "name": "direction",
5108
+ "type": {
5109
+ "text": "\"vertical\" | \"horizontal\""
2815
5110
  },
2816
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
2817
- "attribute": "color",
5111
+ "default": "\"vertical\"",
5112
+ "description": "The direction of the stack.",
5113
+ "attribute": "direction",
2818
5114
  "reflects": true
2819
5115
  },
2820
5116
  {
2821
5117
  "kind": "field",
2822
- "name": "label",
5118
+ "name": "alignItems",
2823
5119
  "type": {
2824
- "text": "string | undefined"
5120
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
2825
5121
  },
2826
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
2827
- "attribute": "label",
5122
+ "description": "How to align the child items inside the stack.",
5123
+ "attribute": "align-items",
2828
5124
  "reflects": true
2829
5125
  },
2830
5126
  {
@@ -2844,29 +5140,30 @@
2844
5140
  ],
2845
5141
  "attributes": [
2846
5142
  {
2847
- "name": "size",
5143
+ "name": "gap",
2848
5144
  "type": {
2849
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5145
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
2850
5146
  },
2851
5147
  "default": "\"m\"",
2852
- "description": "The size of the spinner.",
2853
- "fieldName": "size"
5148
+ "description": "The space injected between components.",
5149
+ "fieldName": "gap"
2854
5150
  },
2855
5151
  {
2856
- "name": "color",
5152
+ "name": "direction",
2857
5153
  "type": {
2858
- "text": "string | undefined"
5154
+ "text": "\"vertical\" | \"horizontal\""
2859
5155
  },
2860
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
2861
- "fieldName": "color"
5156
+ "default": "\"vertical\"",
5157
+ "description": "The direction of the stack.",
5158
+ "fieldName": "direction"
2862
5159
  },
2863
5160
  {
2864
- "name": "label",
5161
+ "name": "align-items",
2865
5162
  "type": {
2866
- "text": "string | undefined"
5163
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
2867
5164
  },
2868
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
2869
- "fieldName": "label"
5165
+ "description": "How to align the child items inside the stack.",
5166
+ "fieldName": "alignItems"
2870
5167
  }
2871
5168
  ],
2872
5169
  "mixins": [
@@ -2880,8 +5177,8 @@
2880
5177
  "package": "lit"
2881
5178
  },
2882
5179
  "status": "draft",
2883
- "category": "feedback",
2884
- "tagName": "nord-spinner",
5180
+ "category": "structure",
5181
+ "tagName": "nord-stack",
2885
5182
  "customElement": true
2886
5183
  }
2887
5184
  ],
@@ -2890,58 +5187,35 @@
2890
5187
  "kind": "js",
2891
5188
  "name": "default",
2892
5189
  "declaration": {
2893
- "name": "Spinner",
2894
- "module": "src/spinner/Spinner.ts"
5190
+ "name": "Stack",
5191
+ "module": "src/stack/Stack.ts"
2895
5192
  }
2896
5193
  },
2897
5194
  {
2898
5195
  "kind": "custom-element-definition",
2899
- "name": "nord-spinner",
5196
+ "name": "nord-stack",
2900
5197
  "declaration": {
2901
- "name": "Spinner",
2902
- "module": "src/spinner/Spinner.ts"
5198
+ "name": "Stack",
5199
+ "module": "src/stack/Stack.ts"
2903
5200
  }
2904
5201
  }
2905
5202
  ]
2906
5203
  },
2907
5204
  {
2908
5205
  "kind": "javascript-module",
2909
- "path": "src/table/Table.ts",
5206
+ "path": "src/visually-hidden/VisuallyHidden.ts",
2910
5207
  "declarations": [
2911
5208
  {
2912
5209
  "kind": "class",
2913
- "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
2914
- "name": "Table",
5210
+ "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
5211
+ "name": "VisuallyHidden",
2915
5212
  "slots": [
2916
5213
  {
2917
- "description": "The table.",
5214
+ "description": "The visually hidden content.",
2918
5215
  "name": ""
2919
5216
  }
2920
5217
  ],
2921
5218
  "members": [
2922
- {
2923
- "kind": "field",
2924
- "name": "density",
2925
- "type": {
2926
- "text": "\"condensed\" | \"default\" | \"relaxed\""
2927
- },
2928
- "default": "\"default\"",
2929
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
2930
- "attribute": "density",
2931
- "reflects": true
2932
- },
2933
- {
2934
- "kind": "method",
2935
- "name": "renderStyles",
2936
- "privacy": "private",
2937
- "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
2938
- },
2939
- {
2940
- "kind": "method",
2941
- "name": "createRenderRoot",
2942
- "privacy": "protected",
2943
- "description": "opt out of shadow dom"
2944
- },
2945
5219
  {
2946
5220
  "kind": "field",
2947
5221
  "name": "_warningLogged",
@@ -2957,17 +5231,6 @@
2957
5231
  }
2958
5232
  }
2959
5233
  ],
2960
- "attributes": [
2961
- {
2962
- "name": "density",
2963
- "type": {
2964
- "text": "\"condensed\" | \"default\" | \"relaxed\""
2965
- },
2966
- "default": "\"default\"",
2967
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
2968
- "fieldName": "density"
2969
- }
2970
- ],
2971
5234
  "mixins": [
2972
5235
  {
2973
5236
  "name": "DraftComponentMixin",
@@ -2979,8 +5242,8 @@
2979
5242
  "package": "lit"
2980
5243
  },
2981
5244
  "status": "draft",
2982
- "category": "list",
2983
- "tagName": "nord-table",
5245
+ "category": "text",
5246
+ "tagName": "nord-visually-hidden",
2984
5247
  "customElement": true
2985
5248
  }
2986
5249
  ],
@@ -2989,16 +5252,16 @@
2989
5252
  "kind": "js",
2990
5253
  "name": "default",
2991
5254
  "declaration": {
2992
- "name": "Table",
2993
- "module": "src/table/Table.ts"
5255
+ "name": "VisuallyHidden",
5256
+ "module": "src/visually-hidden/VisuallyHidden.ts"
2994
5257
  }
2995
5258
  },
2996
5259
  {
2997
5260
  "kind": "custom-element-definition",
2998
- "name": "nord-table",
5261
+ "name": "nord-visually-hidden",
2999
5262
  "declaration": {
3000
- "name": "Table",
3001
- "module": "src/table/Table.ts"
5263
+ "name": "VisuallyHidden",
5264
+ "module": "src/visually-hidden/VisuallyHidden.ts"
3002
5265
  }
3003
5266
  }
3004
5267
  ]
@@ -3172,7 +5435,7 @@
3172
5435
  },
3173
5436
  {
3174
5437
  "kind": "method",
3175
- "name": "handleChange",
5438
+ "name": "handleInput",
3176
5439
  "privacy": "protected",
3177
5440
  "parameters": [
3178
5441
  {
@@ -3187,6 +5450,15 @@
3187
5450
  "module": "src/common/mixins/FormAssociatedMixin.ts"
3188
5451
  }
3189
5452
  },
5453
+ {
5454
+ "kind": "method",
5455
+ "name": "handleChange",
5456
+ "privacy": "protected",
5457
+ "inheritedFrom": {
5458
+ "name": "FormAssociatedMixin",
5459
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5460
+ }
5461
+ },
3190
5462
  {
3191
5463
  "kind": "method",
3192
5464
  "name": "renderLabel",
@@ -3281,8 +5553,9 @@
3281
5553
  "kind": "field",
3282
5554
  "name": "value",
3283
5555
  "type": {
3284
- "text": "string | undefined"
5556
+ "text": "string"
3285
5557
  },
5558
+ "default": "\"\"",
3286
5559
  "description": "The value of the input component.",
3287
5560
  "attribute": "value",
3288
5561
  "inheritedFrom": {
@@ -3487,8 +5760,9 @@
3487
5760
  {
3488
5761
  "name": "value",
3489
5762
  "type": {
3490
- "text": "string | undefined"
5763
+ "text": "string"
3491
5764
  },
5765
+ "default": "\"\"",
3492
5766
  "description": "The value of the input component.",
3493
5767
  "fieldName": "value",
3494
5768
  "inheritedFrom": {
@@ -3525,142 +5799,28 @@
3525
5799
  "customElement": true,
3526
5800
  "events": [
3527
5801
  {
3528
- "name": "change",
5802
+ "name": "input",
3529
5803
  "type": {
3530
5804
  "text": "NordEvent"
3531
5805
  },
3532
- "description": "Fired whenever the input's value is changed via user interaction.",
5806
+ "description": "Fired as the user types into the input.",
3533
5807
  "inheritedFrom": {
3534
5808
  "name": "FormAssociatedMixin",
3535
5809
  "module": "src/common/mixins/FormAssociatedMixin.ts"
3536
5810
  }
3537
- }
3538
- ]
3539
- }
3540
- ],
3541
- "exports": [
3542
- {
3543
- "kind": "js",
3544
- "name": "default",
3545
- "declaration": {
3546
- "name": "Textarea",
3547
- "module": "src/textarea/Textarea.ts"
3548
- }
3549
- },
3550
- {
3551
- "kind": "custom-element-definition",
3552
- "name": "nord-textarea",
3553
- "declaration": {
3554
- "name": "Textarea",
3555
- "module": "src/textarea/Textarea.ts"
3556
- }
3557
- }
3558
- ]
3559
- },
3560
- {
3561
- "kind": "javascript-module",
3562
- "path": "src/stack/Stack.ts",
3563
- "declarations": [
3564
- {
3565
- "kind": "class",
3566
- "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
3567
- "name": "Stack",
3568
- "slots": [
3569
- {
3570
- "description": "The stack content.",
3571
- "name": ""
3572
- }
3573
- ],
3574
- "members": [
3575
- {
3576
- "kind": "field",
3577
- "name": "gap",
3578
- "type": {
3579
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3580
- },
3581
- "default": "\"m\"",
3582
- "description": "The space injected between components.",
3583
- "attribute": "gap",
3584
- "reflects": true
3585
- },
3586
- {
3587
- "kind": "field",
3588
- "name": "direction",
3589
- "type": {
3590
- "text": "\"vertical\" | \"horizontal\""
3591
- },
3592
- "default": "\"vertical\"",
3593
- "description": "The direction of the stack.",
3594
- "attribute": "direction",
3595
- "reflects": true
3596
- },
3597
- {
3598
- "kind": "field",
3599
- "name": "alignItems",
3600
- "type": {
3601
- "text": "\"center\" | \"start\" | \"end\" | undefined"
3602
- },
3603
- "description": "How to align the child items inside the stack.",
3604
- "attribute": "align-items",
3605
- "reflects": true
3606
5811
  },
3607
5812
  {
3608
- "kind": "field",
3609
- "name": "_warningLogged",
5813
+ "name": "change",
3610
5814
  "type": {
3611
- "text": "boolean"
5815
+ "text": "NordEvent"
3612
5816
  },
3613
- "privacy": "private",
3614
- "static": true,
3615
- "default": "false",
5817
+ "description": "Fired whenever the input's value is changed via user interaction.",
3616
5818
  "inheritedFrom": {
3617
- "name": "DraftComponentMixin",
3618
- "module": "src/common/mixins/DraftComponentMixin.ts"
3619
- }
3620
- }
3621
- ],
3622
- "attributes": [
3623
- {
3624
- "name": "gap",
3625
- "type": {
3626
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3627
- },
3628
- "default": "\"m\"",
3629
- "description": "The space injected between components.",
3630
- "fieldName": "gap"
3631
- },
3632
- {
3633
- "name": "direction",
3634
- "type": {
3635
- "text": "\"vertical\" | \"horizontal\""
3636
- },
3637
- "default": "\"vertical\"",
3638
- "description": "The direction of the stack.",
3639
- "fieldName": "direction"
3640
- },
3641
- {
3642
- "name": "align-items",
3643
- "type": {
3644
- "text": "\"center\" | \"start\" | \"end\" | undefined"
3645
- },
3646
- "description": "How to align the child items inside the stack.",
3647
- "fieldName": "alignItems"
3648
- }
3649
- ],
3650
- "mixins": [
3651
- {
3652
- "name": "DraftComponentMixin",
3653
- "module": "/src/common/mixins/DraftComponentMixin.js"
3654
- }
3655
- ],
3656
- "superclass": {
3657
- "name": "LitElement",
3658
- "package": "lit"
3659
- },
3660
- "status": "draft",
3661
- "category": "structure",
3662
- "tagName": "nord-stack",
3663
- "customElement": true
5819
+ "name": "FormAssociatedMixin",
5820
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5821
+ }
5822
+ }
5823
+ ]
3664
5824
  }
3665
5825
  ],
3666
5826
  "exports": [
@@ -3668,81 +5828,113 @@
3668
5828
  "kind": "js",
3669
5829
  "name": "default",
3670
5830
  "declaration": {
3671
- "name": "Stack",
3672
- "module": "src/stack/Stack.ts"
5831
+ "name": "Textarea",
5832
+ "module": "src/textarea/Textarea.ts"
3673
5833
  }
3674
5834
  },
3675
5835
  {
3676
5836
  "kind": "custom-element-definition",
3677
- "name": "nord-stack",
5837
+ "name": "nord-textarea",
3678
5838
  "declaration": {
3679
- "name": "Stack",
3680
- "module": "src/stack/Stack.ts"
5839
+ "name": "Textarea",
5840
+ "module": "src/textarea/Textarea.ts"
3681
5841
  }
3682
5842
  }
3683
5843
  ]
3684
5844
  },
3685
5845
  {
3686
5846
  "kind": "javascript-module",
3687
- "path": "src/visually-hidden/VisuallyHidden.ts",
5847
+ "path": "src/common/directives/cond.ts",
5848
+ "declarations": [
5849
+ {
5850
+ "kind": "variable",
5851
+ "name": "cond"
5852
+ }
5853
+ ],
5854
+ "exports": [
5855
+ {
5856
+ "kind": "js",
5857
+ "name": "cond",
5858
+ "declaration": {
5859
+ "name": "cond",
5860
+ "module": "src/common/directives/cond.ts"
5861
+ }
5862
+ }
5863
+ ]
5864
+ },
5865
+ {
5866
+ "kind": "javascript-module",
5867
+ "path": "src/common/controllers/DirectionController.ts",
3688
5868
  "declarations": [
3689
5869
  {
3690
5870
  "kind": "class",
3691
- "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
3692
- "name": "VisuallyHidden",
3693
- "slots": [
3694
- {
3695
- "description": "The visually hidden content.",
3696
- "name": ""
3697
- }
3698
- ],
5871
+ "description": "",
5872
+ "name": "DirectionController",
3699
5873
  "members": [
3700
5874
  {
3701
5875
  "kind": "field",
3702
- "name": "_warningLogged",
5876
+ "name": "hosts",
5877
+ "privacy": "private",
5878
+ "static": true,
5879
+ "default": "new Set<ReactiveControllerHost>()"
5880
+ },
5881
+ {
5882
+ "kind": "field",
5883
+ "name": "observer",
3703
5884
  "type": {
3704
- "text": "boolean"
5885
+ "text": "MutationObserver | undefined"
3705
5886
  },
3706
5887
  "privacy": "private",
3707
- "static": true,
3708
- "default": "false",
3709
- "inheritedFrom": {
3710
- "name": "DraftComponentMixin",
3711
- "module": "src/common/mixins/DraftComponentMixin.ts"
5888
+ "static": true
5889
+ },
5890
+ {
5891
+ "kind": "field",
5892
+ "name": "host",
5893
+ "type": {
5894
+ "text": "ReactiveControllerHost"
5895
+ },
5896
+ "privacy": "private",
5897
+ "default": "host"
5898
+ },
5899
+ {
5900
+ "kind": "field",
5901
+ "name": "dir",
5902
+ "type": {
5903
+ "text": "WritingDirection"
3712
5904
  }
3713
- }
3714
- ],
3715
- "mixins": [
5905
+ },
3716
5906
  {
3717
- "name": "DraftComponentMixin",
3718
- "module": "/src/common/mixins/DraftComponentMixin.js"
5907
+ "kind": "field",
5908
+ "name": "isLTR"
5909
+ },
5910
+ {
5911
+ "kind": "field",
5912
+ "name": "isRTL"
5913
+ },
5914
+ {
5915
+ "kind": "method",
5916
+ "name": "hostConnected"
5917
+ },
5918
+ {
5919
+ "kind": "method",
5920
+ "name": "hostDisconnected"
5921
+ },
5922
+ {
5923
+ "kind": "method",
5924
+ "name": "observe",
5925
+ "privacy": "private",
5926
+ "static": true
3719
5927
  }
3720
- ],
3721
- "superclass": {
3722
- "name": "LitElement",
3723
- "package": "lit"
3724
- },
3725
- "status": "draft",
3726
- "category": "text",
3727
- "tagName": "nord-visually-hidden",
3728
- "customElement": true
5928
+ ]
3729
5929
  }
3730
5930
  ],
3731
5931
  "exports": [
3732
5932
  {
3733
5933
  "kind": "js",
3734
- "name": "default",
3735
- "declaration": {
3736
- "name": "VisuallyHidden",
3737
- "module": "src/visually-hidden/VisuallyHidden.ts"
3738
- }
3739
- },
3740
- {
3741
- "kind": "custom-element-definition",
3742
- "name": "nord-visually-hidden",
5934
+ "name": "DirectionController",
3743
5935
  "declaration": {
3744
- "name": "VisuallyHidden",
3745
- "module": "src/visually-hidden/VisuallyHidden.ts"
5936
+ "name": "DirectionController",
5937
+ "module": "src/common/controllers/DirectionController.ts"
3746
5938
  }
3747
5939
  }
3748
5940
  ]
@@ -3954,20 +6146,145 @@
3954
6146
  },
3955
6147
  {
3956
6148
  "kind": "javascript-module",
3957
- "path": "src/common/directives/cond.ts",
6149
+ "path": "src/common/controllers/SwipeController.ts",
3958
6150
  "declarations": [
3959
6151
  {
3960
- "kind": "variable",
3961
- "name": "cond"
6152
+ "kind": "class",
6153
+ "description": "",
6154
+ "name": "SwipeController",
6155
+ "members": [
6156
+ {
6157
+ "kind": "field",
6158
+ "name": "host",
6159
+ "type": {
6160
+ "text": "ReactiveElement"
6161
+ },
6162
+ "privacy": "private",
6163
+ "default": "host"
6164
+ },
6165
+ {
6166
+ "kind": "field",
6167
+ "name": "attached",
6168
+ "type": {
6169
+ "text": "boolean"
6170
+ },
6171
+ "privacy": "private",
6172
+ "default": "false"
6173
+ },
6174
+ {
6175
+ "kind": "field",
6176
+ "name": "initialTouchX",
6177
+ "type": {
6178
+ "text": "number"
6179
+ },
6180
+ "privacy": "private",
6181
+ "default": "0"
6182
+ },
6183
+ {
6184
+ "kind": "field",
6185
+ "name": "initialTouchY",
6186
+ "type": {
6187
+ "text": "number"
6188
+ },
6189
+ "privacy": "private",
6190
+ "default": "0"
6191
+ },
6192
+ {
6193
+ "kind": "field",
6194
+ "name": "target",
6195
+ "type": {
6196
+ "text": "() => HTMLElement"
6197
+ },
6198
+ "privacy": "private"
6199
+ },
6200
+ {
6201
+ "kind": "field",
6202
+ "name": "onSwipeEnd",
6203
+ "type": {
6204
+ "text": "SwipeControllerOptions[\"onSwipeEnd\"]"
6205
+ },
6206
+ "privacy": "private"
6207
+ },
6208
+ {
6209
+ "kind": "field",
6210
+ "name": "matchesGesture",
6211
+ "type": {
6212
+ "text": "SwipeControllerOptions[\"matchesGesture\"]"
6213
+ }
6214
+ },
6215
+ {
6216
+ "kind": "method",
6217
+ "name": "hostUpdated"
6218
+ },
6219
+ {
6220
+ "kind": "method",
6221
+ "name": "hostDisconnected"
6222
+ },
6223
+ {
6224
+ "kind": "field",
6225
+ "name": "handleTouchStart",
6226
+ "privacy": "private"
6227
+ },
6228
+ {
6229
+ "kind": "field",
6230
+ "name": "handleTouchMove",
6231
+ "privacy": "private"
6232
+ },
6233
+ {
6234
+ "kind": "field",
6235
+ "name": "handleTouchEnd",
6236
+ "privacy": "private"
6237
+ }
6238
+ ]
6239
+ },
6240
+ {
6241
+ "kind": "function",
6242
+ "name": "isHorizontalSwipe",
6243
+ "parameters": [
6244
+ {
6245
+ "name": "{ distX, distY }",
6246
+ "type": {
6247
+ "text": "SwipeDetails"
6248
+ }
6249
+ }
6250
+ ]
6251
+ },
6252
+ {
6253
+ "kind": "function",
6254
+ "name": "isDownwardsSwipe",
6255
+ "parameters": [
6256
+ {
6257
+ "name": "{ distX, distY }",
6258
+ "type": {
6259
+ "text": "SwipeDetails"
6260
+ }
6261
+ }
6262
+ ]
3962
6263
  }
3963
6264
  ],
3964
6265
  "exports": [
3965
6266
  {
3966
6267
  "kind": "js",
3967
- "name": "cond",
6268
+ "name": "SwipeController",
3968
6269
  "declaration": {
3969
- "name": "cond",
3970
- "module": "src/common/directives/cond.ts"
6270
+ "name": "SwipeController",
6271
+ "module": "src/common/controllers/SwipeController.ts"
6272
+ }
6273
+ },
6274
+ {
6275
+ "kind": "js",
6276
+ "name": "isHorizontalSwipe",
6277
+ "declaration": {
6278
+ "name": "isHorizontalSwipe",
6279
+ "module": "src/common/controllers/SwipeController.ts"
6280
+ }
6281
+ },
6282
+ {
6283
+ "kind": "js",
6284
+ "name": "isDownwardsSwipe",
6285
+ "declaration": {
6286
+ "name": "isDownwardsSwipe",
6287
+ "module": "src/common/controllers/SwipeController.ts"
3971
6288
  }
3972
6289
  }
3973
6290
  ]
@@ -4225,6 +6542,24 @@
4225
6542
  }
4226
6543
  ]
4227
6544
  },
6545
+ {
6546
+ "kind": "method",
6547
+ "name": "handleInput",
6548
+ "privacy": "protected",
6549
+ "return": {
6550
+ "type": {
6551
+ "text": "void"
6552
+ }
6553
+ },
6554
+ "parameters": [
6555
+ {
6556
+ "name": "e",
6557
+ "type": {
6558
+ "text": "Event"
6559
+ }
6560
+ }
6561
+ ]
6562
+ },
4228
6563
  {
4229
6564
  "kind": "method",
4230
6565
  "name": "renderLabel",
@@ -4362,7 +6697,7 @@
4362
6697
  },
4363
6698
  {
4364
6699
  "kind": "method",
4365
- "name": "handleChange",
6700
+ "name": "handleInput",
4366
6701
  "privacy": "protected",
4367
6702
  "parameters": [
4368
6703
  {
@@ -4373,6 +6708,11 @@
4373
6708
  }
4374
6709
  ]
4375
6710
  },
6711
+ {
6712
+ "kind": "method",
6713
+ "name": "handleChange",
6714
+ "privacy": "protected"
6715
+ },
4376
6716
  {
4377
6717
  "kind": "method",
4378
6718
  "name": "renderLabel",
@@ -4410,6 +6750,13 @@
4410
6750
  }
4411
6751
  ],
4412
6752
  "events": [
6753
+ {
6754
+ "name": "input",
6755
+ "type": {
6756
+ "text": "NordEvent"
6757
+ },
6758
+ "description": "Fired as the user types into the input."
6759
+ },
4413
6760
  {
4414
6761
  "name": "change",
4415
6762
  "type": {
@@ -4576,8 +6923,9 @@
4576
6923
  "kind": "field",
4577
6924
  "name": "value",
4578
6925
  "type": {
4579
- "text": "string | undefined"
6926
+ "text": "string"
4580
6927
  },
6928
+ "default": "\"\"",
4581
6929
  "description": "The value of the input component.",
4582
6930
  "attribute": "value"
4583
6931
  },
@@ -4609,8 +6957,9 @@
4609
6957
  {
4610
6958
  "name": "value",
4611
6959
  "type": {
4612
- "text": "string | undefined"
6960
+ "text": "string"
4613
6961
  },
6962
+ "default": "\"\"",
4614
6963
  "description": "The value of the input component.",
4615
6964
  "fieldName": "value"
4616
6965
  }