@nordhealth/components 1.0.0-alpha.41 → 1.0.0-alpha.45

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 +3003 -654
  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-a3670c4d.js +13 -0
  7. package/lib/Calendar-a3670c4d.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": {
@@ -681,454 +694,273 @@
681
694
  },
682
695
  {
683
696
  "kind": "javascript-module",
684
- "path": "src/common/collection.ts",
697
+ "path": "src/calendar/Calendar.ts",
685
698
  "declarations": [
686
699
  {
687
- "kind": "function",
688
- "name": "groupBy",
689
- "parameters": [
700
+ "kind": "class",
701
+ "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.",
702
+ "name": "Calendar",
703
+ "members": [
690
704
  {
691
- "name": "array",
705
+ "kind": "field",
706
+ "name": "dialogLabelId",
692
707
  "type": {
693
- "text": "Array<TObject>"
708
+ "text": "string"
694
709
  },
695
- "description": "the collection of objects to group"
710
+ "privacy": "private",
711
+ "default": "\"dialog-header\""
696
712
  },
697
713
  {
698
- "name": "key",
714
+ "kind": "field",
715
+ "name": "monthSelectNode",
699
716
  "type": {
700
- "text": "TKey"
717
+ "text": "HTMLElement"
701
718
  },
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": [
764
- {
765
- "name": "root",
766
- "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": [
793
- {
794
- "name": "val",
795
- "type": {
796
- "text": "number"
797
- }
798
- },
799
- {
800
- "name": "min",
801
- "type": {
802
- "text": "number"
803
- }
719
+ "privacy": "private"
804
720
  },
805
- {
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
721
  {
876
722
  "kind": "field",
877
- "name": "inputRef",
723
+ "name": "focusedDayNode",
724
+ "type": {
725
+ "text": "HTMLButtonElement"
726
+ },
878
727
  "privacy": "private"
879
728
  },
880
729
  {
881
730
  "kind": "field",
882
- "name": "listRef",
883
- "privacy": "private"
731
+ "name": "direction",
732
+ "privacy": "private",
733
+ "default": "new DirectionController(this)"
884
734
  },
885
735
  {
886
736
  "kind": "field",
887
- "name": "previousFocus",
888
- "type": {
889
- "text": "HTMLElement | undefined"
890
- },
891
- "privacy": "private"
737
+ "name": "swipe",
738
+ "privacy": "private",
739
+ "default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
892
740
  },
893
741
  {
894
742
  "kind": "field",
895
- "name": "dismissController",
896
- "privacy": "private",
897
- "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
743
+ "name": "shortcuts",
744
+ "privacy": "private"
898
745
  },
899
746
  {
900
747
  "kind": "field",
901
- "name": "keyboardController",
748
+ "name": "dateFormatShort",
749
+ "type": {
750
+ "text": "Intl.DateTimeFormat"
751
+ },
902
752
  "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 })"
753
+ "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"
904
754
  },
905
755
  {
906
756
  "kind": "field",
907
- "name": "open",
757
+ "name": "localization",
908
758
  "type": {
909
- "text": "boolean"
759
+ "text": "CalendarLocalizedText"
910
760
  },
911
- "default": "false",
912
- "description": "Show or hide the command menu.",
913
- "attribute": "open"
761
+ "default": "localization"
914
762
  },
915
763
  {
916
764
  "kind": "field",
917
- "name": "placeholder",
765
+ "name": "value",
918
766
  "type": {
919
767
  "text": "string"
920
768
  },
921
- "default": "\"Type a command or search...\"",
922
- "description": "Hint text to display in the search field.",
923
- "attribute": "placeholder"
769
+ "default": "\"\"",
770
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
771
+ "attribute": "value"
924
772
  },
925
773
  {
926
774
  "kind": "field",
927
- "name": "commands",
775
+ "name": "firstDayOfWeek",
928
776
  "type": {
929
- "text": "Array<ICommandMenuAction>"
777
+ "text": "DaysOfWeek"
930
778
  },
931
- "default": "[]",
932
- "description": "Array of commands to be included in the menu."
779
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
780
+ "attribute": "firstDayOfWeek"
933
781
  },
934
782
  {
935
783
  "kind": "field",
936
- "name": "parent",
784
+ "name": "min",
937
785
  "type": {
938
- "text": "string | undefined"
786
+ "text": "string"
939
787
  },
940
- "privacy": "private"
788
+ "default": "\"\"",
789
+ "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.",
790
+ "attribute": "min"
941
791
  },
942
792
  {
943
793
  "kind": "field",
944
- "name": "search",
794
+ "name": "max",
945
795
  "type": {
946
796
  "text": "string"
947
797
  },
948
- "privacy": "private",
949
- "default": "\"\""
798
+ "default": "\"\"",
799
+ "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.",
800
+ "attribute": "max"
950
801
  },
951
802
  {
952
803
  "kind": "field",
953
- "name": "bump",
804
+ "name": "isDateDisabled",
954
805
  "type": {
955
- "text": "boolean"
806
+ "text": "DateDisabledPredicate"
956
807
  },
957
- "privacy": "private",
958
- "default": "true"
808
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
959
809
  },
960
810
  {
961
811
  "kind": "field",
962
- "name": "selectedIndex",
812
+ "name": "activeFocus",
963
813
  "type": {
964
- "text": "number"
814
+ "text": "boolean"
965
815
  },
966
816
  "privacy": "private",
967
- "default": "0"
817
+ "default": "false"
968
818
  },
969
819
  {
970
820
  "kind": "field",
971
- "name": "filteredCommands",
972
- "type": {
973
- "text": "Array<ICommandMenuAction>"
974
- },
821
+ "name": "focusedDay",
975
822
  "privacy": "private",
976
- "default": "[]"
977
- },
978
- {
979
- "kind": "field",
980
- "name": "selected",
981
- "type": {
982
- "text": "ICommandMenuAction"
983
- },
984
- "privacy": "private"
823
+ "default": "new Date()"
985
824
  },
986
825
  {
987
826
  "kind": "method",
988
- "name": "show",
827
+ "name": "focus",
989
828
  "parameters": [
990
829
  {
991
830
  "name": "options",
992
- "default": "{}",
831
+ "optional": true,
993
832
  "type": {
994
- "text": "{ parent?: string }"
995
- },
996
- "description": "allows you to open the menu filtered to a specific parent command."
833
+ "text": "FocusOptions & { target: \"day\" | \"month\" }"
834
+ }
997
835
  }
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."
836
+ ]
1010
837
  },
1011
838
  {
1012
839
  "kind": "method",
1013
- "name": "focus",
1014
- "description": "Focus the command menu's input."
840
+ "name": "createDateFormatter",
841
+ "privacy": "private"
1015
842
  },
1016
843
  {
1017
- "kind": "method",
1018
- "name": "renderNoResults",
844
+ "kind": "field",
845
+ "name": "handleDaySelect",
1019
846
  "privacy": "private"
1020
847
  },
1021
848
  {
1022
849
  "kind": "method",
1023
- "name": "renderSection",
850
+ "name": "addDays",
1024
851
  "privacy": "private",
1025
852
  "parameters": [
1026
853
  {
1027
- "name": "section",
1028
- "type": {
1029
- "text": "string | undefined"
1030
- }
1031
- },
1032
- {
1033
- "name": "commands",
854
+ "name": "days",
1034
855
  "type": {
1035
- "text": "ICommandMenuAction[]"
856
+ "text": "number"
1036
857
  }
1037
858
  }
1038
859
  ]
1039
860
  },
1040
861
  {
1041
862
  "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",
863
+ "name": "addMonths",
1053
864
  "privacy": "private",
1054
865
  "parameters": [
1055
866
  {
1056
- "name": "event",
867
+ "name": "months",
1057
868
  "type": {
1058
- "text": "KeyboardEvent"
869
+ "text": "number"
1059
870
  }
1060
871
  }
1061
872
  ]
1062
873
  },
1063
874
  {
1064
875
  "kind": "method",
1065
- "name": "select",
876
+ "name": "addYears",
1066
877
  "privacy": "private",
1067
878
  "parameters": [
1068
879
  {
1069
- "name": "command",
1070
- "default": "this.selected",
880
+ "name": "years",
1071
881
  "type": {
1072
- "text": "ICommandMenuAction"
882
+ "text": "number"
1073
883
  }
1074
884
  }
1075
885
  ]
1076
886
  },
1077
887
  {
1078
888
  "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",
889
+ "name": "startOfWeek",
1090
890
  "privacy": "private"
1091
891
  },
1092
892
  {
1093
893
  "kind": "method",
1094
- "name": "previous",
894
+ "name": "endOfWeek",
1095
895
  "privacy": "private"
1096
896
  },
1097
897
  {
1098
898
  "kind": "method",
1099
- "name": "goBack",
1100
- "privacy": "private"
899
+ "name": "setMonth",
900
+ "privacy": "private",
901
+ "parameters": [
902
+ {
903
+ "name": "month",
904
+ "type": {
905
+ "text": "number"
906
+ }
907
+ }
908
+ ]
1101
909
  },
1102
910
  {
1103
911
  "kind": "method",
1104
- "name": "setParent",
912
+ "name": "setYear",
1105
913
  "privacy": "private",
1106
914
  "parameters": [
1107
915
  {
1108
- "name": "parent",
1109
- "optional": true,
916
+ "name": "year",
1110
917
  "type": {
1111
- "text": "string"
918
+ "text": "number"
1112
919
  }
1113
920
  }
1114
921
  ]
1115
922
  },
1116
923
  {
1117
924
  "kind": "method",
1118
- "name": "setSearch",
925
+ "name": "setFocusedDay",
1119
926
  "privacy": "private",
1120
927
  "parameters": [
1121
928
  {
1122
- "name": "str",
929
+ "name": "day",
1123
930
  "type": {
1124
- "text": "string"
931
+ "text": "Date"
1125
932
  }
1126
933
  }
1127
934
  ]
1128
935
  },
1129
936
  {
1130
- "kind": "method",
1131
- "name": "filterCommands",
937
+ "kind": "field",
938
+ "name": "handleMonthSelect",
939
+ "privacy": "private"
940
+ },
941
+ {
942
+ "kind": "field",
943
+ "name": "handleYearSelect",
944
+ "privacy": "private"
945
+ },
946
+ {
947
+ "kind": "field",
948
+ "name": "handleNextMonthClick",
949
+ "privacy": "private"
950
+ },
951
+ {
952
+ "kind": "field",
953
+ "name": "handlePreviousMonthClick",
954
+ "privacy": "private"
955
+ },
956
+ {
957
+ "kind": "field",
958
+ "name": "enableActiveFocus",
959
+ "privacy": "private"
960
+ },
961
+ {
962
+ "kind": "field",
963
+ "name": "disableActiveFocus",
1132
964
  "privacy": "private"
1133
965
  },
1134
966
  {
@@ -1146,47 +978,41 @@
1146
978
  }
1147
979
  }
1148
980
  ],
1149
- "events": [
981
+ "attributes": [
1150
982
  {
1151
- "name": "open",
983
+ "name": "value",
1152
984
  "type": {
1153
- "text": "NordEvent"
985
+ "text": "string"
1154
986
  },
1155
- "description": "The command menu was opened foo."
987
+ "default": "\"\"",
988
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
989
+ "fieldName": "value"
1156
990
  },
1157
991
  {
1158
- "name": "close",
992
+ "name": "firstDayOfWeek",
1159
993
  "type": {
1160
- "text": "NordEvent"
994
+ "text": "DaysOfWeek"
1161
995
  },
1162
- "description": "The command menu was closed bar."
996
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
997
+ "fieldName": "firstDayOfWeek"
1163
998
  },
1164
999
  {
1000
+ "name": "min",
1165
1001
  "type": {
1166
- "text": "SelectEvent"
1167
- },
1168
- "description": "User selected a command from the menu.",
1169
- "name": "n-select"
1170
- }
1171
- ],
1172
- "attributes": [
1173
- {
1174
- "name": "open",
1175
- "type": {
1176
- "text": "boolean"
1002
+ "text": "string"
1177
1003
  },
1178
- "default": "false",
1179
- "description": "Show or hide the command menu.",
1180
- "fieldName": "open"
1004
+ "default": "\"\"",
1005
+ "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.",
1006
+ "fieldName": "min"
1181
1007
  },
1182
1008
  {
1183
- "name": "placeholder",
1009
+ "name": "max",
1184
1010
  "type": {
1185
1011
  "text": "string"
1186
1012
  },
1187
- "default": "\"Type a command or search...\"",
1188
- "description": "Hint text to display in the search field.",
1189
- "fieldName": "placeholder"
1013
+ "default": "\"\"",
1014
+ "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.",
1015
+ "fieldName": "max"
1190
1016
  }
1191
1017
  ],
1192
1018
  "mixins": [
@@ -1200,8 +1026,8 @@
1200
1026
  "package": "lit"
1201
1027
  },
1202
1028
  "status": "draft",
1203
- "category": "action",
1204
- "tagName": "nord-command-menu",
1029
+ "category": "form",
1030
+ "tagName": "nord-calendar",
1205
1031
  "customElement": true
1206
1032
  }
1207
1033
  ],
@@ -1210,82 +1036,2328 @@
1210
1036
  "kind": "js",
1211
1037
  "name": "default",
1212
1038
  "declaration": {
1213
- "name": "CommandMenu",
1214
- "module": "src/command-menu/CommandMenu.ts"
1039
+ "name": "Calendar",
1040
+ "module": "src/calendar/Calendar.ts"
1215
1041
  }
1216
1042
  },
1217
1043
  {
1218
1044
  "kind": "custom-element-definition",
1219
- "name": "nord-command-menu",
1045
+ "name": "nord-calendar",
1220
1046
  "declaration": {
1221
- "name": "CommandMenu",
1222
- "module": "src/command-menu/CommandMenu.ts"
1047
+ "name": "Calendar",
1048
+ "module": "src/calendar/Calendar.ts"
1223
1049
  }
1224
1050
  }
1225
1051
  ]
1226
1052
  },
1227
1053
  {
1228
1054
  "kind": "javascript-module",
1229
- "path": "src/command-menu/CommandMenuAction.ts",
1055
+ "path": "src/calendar/DateSelectEvent.ts",
1230
1056
  "declarations": [
1231
1057
  {
1232
1058
  "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",
1059
+ "description": "",
1060
+ "name": "DateSelectEvent",
1235
1061
  "members": [
1236
1062
  {
1237
1063
  "kind": "field",
1238
- "name": "command",
1064
+ "name": "eventName",
1239
1065
  "type": {
1240
- "text": "ICommandMenuAction"
1066
+ "text": "string"
1241
1067
  },
1242
- "attribute": "command"
1068
+ "static": true,
1069
+ "default": "\"nord-select\""
1243
1070
  },
1244
1071
  {
1245
1072
  "kind": "field",
1246
- "name": "selected",
1073
+ "name": "date",
1247
1074
  "type": {
1248
- "text": "boolean"
1075
+ "text": "Date"
1249
1076
  },
1250
- "default": "false",
1251
- "attribute": "selected"
1252
- },
1253
- {
1254
- "kind": "method",
1255
- "name": "ensureInView",
1256
- "privacy": "private",
1257
- "description": "Scroll to show element"
1258
- },
1259
- {
1260
- "kind": "method",
1261
- "name": "renderShortcut",
1262
- "privacy": "private"
1077
+ "default": "date"
1263
1078
  }
1264
1079
  ],
1265
- "attributes": [
1080
+ "superclass": {
1081
+ "name": "NordEvent",
1082
+ "module": "/src/common/events.js"
1083
+ }
1084
+ }
1085
+ ],
1086
+ "exports": [
1087
+ {
1088
+ "kind": "js",
1089
+ "name": "DateSelectEvent",
1090
+ "declaration": {
1091
+ "name": "DateSelectEvent",
1092
+ "module": "src/calendar/DateSelectEvent.ts"
1093
+ }
1094
+ }
1095
+ ]
1096
+ },
1097
+ {
1098
+ "kind": "javascript-module",
1099
+ "path": "src/calendar/calendar-localization.ts",
1100
+ "declarations": [
1101
+ {
1102
+ "kind": "variable",
1103
+ "name": "localization",
1104
+ "type": {
1105
+ "text": "CalendarLocalizedText"
1106
+ },
1107
+ "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}"
1108
+ }
1109
+ ],
1110
+ "exports": [
1111
+ {
1112
+ "kind": "js",
1113
+ "name": "default",
1114
+ "declaration": {
1115
+ "name": "localization",
1116
+ "module": "src/calendar/calendar-localization.ts"
1117
+ }
1118
+ }
1119
+ ]
1120
+ },
1121
+ {
1122
+ "kind": "javascript-module",
1123
+ "path": "src/calendar/month-view.ts",
1124
+ "declarations": [
1125
+ {
1126
+ "kind": "function",
1127
+ "name": "dayView",
1128
+ "parameters": [
1266
1129
  {
1267
- "name": "command",
1130
+ "name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
1268
1131
  "type": {
1269
- "text": "ICommandMenuAction"
1270
- },
1271
- "fieldName": "command"
1272
- },
1132
+ "text": "DatePickerDayProps"
1133
+ }
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "kind": "function",
1139
+ "name": "monthView",
1140
+ "parameters": [
1273
1141
  {
1274
- "name": "selected",
1142
+ "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}",
1275
1143
  "type": {
1276
- "text": "boolean"
1277
- },
1278
- "default": "false",
1279
- "fieldName": "selected"
1144
+ "text": "MonthViewArgs"
1145
+ }
1146
+ }
1147
+ ]
1148
+ }
1149
+ ],
1150
+ "exports": [
1151
+ {
1152
+ "kind": "js",
1153
+ "name": "dayView",
1154
+ "declaration": {
1155
+ "name": "dayView",
1156
+ "module": "src/calendar/month-view.ts"
1157
+ }
1158
+ },
1159
+ {
1160
+ "kind": "js",
1161
+ "name": "monthView",
1162
+ "declaration": {
1163
+ "name": "monthView",
1164
+ "module": "src/calendar/month-view.ts"
1165
+ }
1166
+ }
1167
+ ]
1168
+ },
1169
+ {
1170
+ "kind": "javascript-module",
1171
+ "path": "src/common/collection.ts",
1172
+ "declarations": [
1173
+ {
1174
+ "kind": "function",
1175
+ "name": "groupBy",
1176
+ "parameters": [
1177
+ {
1178
+ "name": "array",
1179
+ "type": {
1180
+ "text": "Array<TObject>"
1181
+ },
1182
+ "description": "the collection of objects to group"
1183
+ },
1184
+ {
1185
+ "name": "key",
1186
+ "type": {
1187
+ "text": "TKey"
1188
+ },
1189
+ "description": "the property to group by"
1190
+ }
1191
+ ],
1192
+ "description": "Groups an array objects by property value",
1193
+ "return": {
1194
+ "type": {
1195
+ "text": ""
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ "kind": "function",
1201
+ "name": "chunk",
1202
+ "return": {
1203
+ "type": {
1204
+ "text": ""
1205
+ }
1206
+ },
1207
+ "parameters": [
1208
+ {
1209
+ "name": "array",
1210
+ "type": {
1211
+ "text": "T[]"
1212
+ }
1213
+ },
1214
+ {
1215
+ "name": "chunkSize",
1216
+ "type": {
1217
+ "text": "number"
1218
+ }
1219
+ }
1220
+ ],
1221
+ "description": "Split an array into chunks of the given size"
1222
+ },
1223
+ {
1224
+ "kind": "function",
1225
+ "name": "mapWithOffset",
1226
+ "return": {
1227
+ "type": {
1228
+ "text": ""
1229
+ }
1230
+ },
1231
+ "parameters": [
1232
+ {
1233
+ "name": "array",
1234
+ "type": {
1235
+ "text": "T[]"
1236
+ }
1237
+ },
1238
+ {
1239
+ "name": "startingOffset",
1240
+ "type": {
1241
+ "text": "number"
1242
+ }
1243
+ },
1244
+ {
1245
+ "name": "mapFn",
1246
+ "type": {
1247
+ "text": "(item: T) => U"
1248
+ }
1249
+ }
1250
+ ],
1251
+ "description": "maps over an array, starting at the given offset and wrapping around."
1252
+ }
1253
+ ],
1254
+ "exports": [
1255
+ {
1256
+ "kind": "js",
1257
+ "name": "groupBy",
1258
+ "declaration": {
1259
+ "name": "groupBy",
1260
+ "module": "src/common/collection.ts"
1261
+ }
1262
+ },
1263
+ {
1264
+ "kind": "js",
1265
+ "name": "chunk",
1266
+ "declaration": {
1267
+ "name": "chunk",
1268
+ "module": "src/common/collection.ts"
1269
+ }
1270
+ },
1271
+ {
1272
+ "kind": "js",
1273
+ "name": "mapWithOffset",
1274
+ "declaration": {
1275
+ "name": "mapWithOffset",
1276
+ "module": "src/common/collection.ts"
1277
+ }
1278
+ }
1279
+ ]
1280
+ },
1281
+ {
1282
+ "kind": "javascript-module",
1283
+ "path": "src/common/dates.ts",
1284
+ "declarations": [
1285
+ {
1286
+ "kind": "function",
1287
+ "name": "createDate",
1288
+ "return": {
1289
+ "type": {
1290
+ "text": "Date | undefined"
1291
+ }
1292
+ },
1293
+ "parameters": [
1294
+ {
1295
+ "name": "year",
1296
+ "type": {
1297
+ "text": "string"
1298
+ }
1299
+ },
1300
+ {
1301
+ "name": "month",
1302
+ "type": {
1303
+ "text": "string"
1304
+ }
1305
+ },
1306
+ {
1307
+ "name": "day",
1308
+ "type": {
1309
+ "text": "string"
1310
+ }
1311
+ }
1312
+ ]
1313
+ },
1314
+ {
1315
+ "kind": "function",
1316
+ "name": "parseISODate",
1317
+ "return": {
1318
+ "type": {
1319
+ "text": "Date | undefined"
1320
+ }
1321
+ },
1322
+ "parameters": [
1323
+ {
1324
+ "name": "value",
1325
+ "type": {
1326
+ "text": "string"
1327
+ },
1328
+ "description": "date string in ISO format YYYY-MM-DD"
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ "kind": "function",
1334
+ "name": "printISODate",
1335
+ "return": {
1336
+ "type": {
1337
+ "text": "string"
1338
+ }
1339
+ },
1340
+ "parameters": [
1341
+ {
1342
+ "name": "date",
1343
+ "type": {
1344
+ "text": "Date"
1345
+ }
1346
+ }
1347
+ ],
1348
+ "description": "print date in format YYYY-MM-DD"
1349
+ },
1350
+ {
1351
+ "kind": "function",
1352
+ "name": "isEqualMonth",
1353
+ "return": {
1354
+ "type": {
1355
+ "text": "boolean"
1356
+ }
1357
+ },
1358
+ "parameters": [
1359
+ {
1360
+ "name": "a",
1361
+ "optional": true,
1362
+ "type": {
1363
+ "text": "Date"
1364
+ }
1365
+ },
1366
+ {
1367
+ "name": "b",
1368
+ "optional": true,
1369
+ "type": {
1370
+ "text": "Date"
1371
+ }
1372
+ }
1373
+ ],
1374
+ "description": "Compare if two dates are in the same month of the same year."
1375
+ },
1376
+ {
1377
+ "kind": "function",
1378
+ "name": "isEqual",
1379
+ "return": {
1380
+ "type": {
1381
+ "text": "boolean"
1382
+ }
1383
+ },
1384
+ "parameters": [
1385
+ {
1386
+ "name": "a",
1387
+ "optional": true,
1388
+ "type": {
1389
+ "text": "Date"
1390
+ }
1391
+ },
1392
+ {
1393
+ "name": "b",
1394
+ "optional": true,
1395
+ "type": {
1396
+ "text": "Date"
1397
+ }
1398
+ }
1399
+ ],
1400
+ "description": "Compare if two dates are equal in terms of day, month, and year"
1401
+ },
1402
+ {
1403
+ "kind": "function",
1404
+ "name": "addDays",
1405
+ "return": {
1406
+ "type": {
1407
+ "text": "Date"
1408
+ }
1409
+ },
1410
+ "parameters": [
1411
+ {
1412
+ "name": "date",
1413
+ "type": {
1414
+ "text": "Date"
1415
+ }
1416
+ },
1417
+ {
1418
+ "name": "days",
1419
+ "type": {
1420
+ "text": "number"
1421
+ }
1422
+ }
1423
+ ]
1424
+ },
1425
+ {
1426
+ "kind": "function",
1427
+ "name": "addMonths",
1428
+ "return": {
1429
+ "type": {
1430
+ "text": "Date"
1431
+ }
1432
+ },
1433
+ "parameters": [
1434
+ {
1435
+ "name": "date",
1436
+ "type": {
1437
+ "text": "Date"
1438
+ }
1439
+ },
1440
+ {
1441
+ "name": "months",
1442
+ "type": {
1443
+ "text": "number"
1444
+ }
1445
+ }
1446
+ ]
1447
+ },
1448
+ {
1449
+ "kind": "function",
1450
+ "name": "addYears",
1451
+ "return": {
1452
+ "type": {
1453
+ "text": "Date"
1454
+ }
1455
+ },
1456
+ "parameters": [
1457
+ {
1458
+ "name": "date",
1459
+ "type": {
1460
+ "text": "Date"
1461
+ }
1462
+ },
1463
+ {
1464
+ "name": "years",
1465
+ "type": {
1466
+ "text": "number"
1467
+ }
1468
+ }
1469
+ ]
1470
+ },
1471
+ {
1472
+ "kind": "function",
1473
+ "name": "startOfWeek",
1474
+ "return": {
1475
+ "type": {
1476
+ "text": "Date"
1477
+ }
1478
+ },
1479
+ "parameters": [
1480
+ {
1481
+ "name": "date",
1482
+ "type": {
1483
+ "text": "Date"
1484
+ }
1485
+ },
1486
+ {
1487
+ "name": "firstDayOfWeek",
1488
+ "default": "DaysOfWeek.Monday",
1489
+ "type": {
1490
+ "text": "DaysOfWeek"
1491
+ }
1492
+ }
1493
+ ]
1494
+ },
1495
+ {
1496
+ "kind": "function",
1497
+ "name": "endOfWeek",
1498
+ "return": {
1499
+ "type": {
1500
+ "text": "Date"
1501
+ }
1502
+ },
1503
+ "parameters": [
1504
+ {
1505
+ "name": "date",
1506
+ "type": {
1507
+ "text": "Date"
1508
+ }
1509
+ },
1510
+ {
1511
+ "name": "firstDayOfWeek",
1512
+ "default": "DaysOfWeek.Monday",
1513
+ "type": {
1514
+ "text": "DaysOfWeek"
1515
+ }
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ "kind": "function",
1521
+ "name": "startOfMonth",
1522
+ "return": {
1523
+ "type": {
1524
+ "text": "Date"
1525
+ }
1526
+ },
1527
+ "parameters": [
1528
+ {
1529
+ "name": "date",
1530
+ "type": {
1531
+ "text": "Date"
1532
+ }
1533
+ }
1534
+ ]
1535
+ },
1536
+ {
1537
+ "kind": "function",
1538
+ "name": "endOfMonth",
1539
+ "return": {
1540
+ "type": {
1541
+ "text": "Date"
1542
+ }
1543
+ },
1544
+ "parameters": [
1545
+ {
1546
+ "name": "date",
1547
+ "type": {
1548
+ "text": "Date"
1549
+ }
1550
+ }
1551
+ ]
1552
+ },
1553
+ {
1554
+ "kind": "function",
1555
+ "name": "setMonth",
1556
+ "return": {
1557
+ "type": {
1558
+ "text": "Date"
1559
+ }
1560
+ },
1561
+ "parameters": [
1562
+ {
1563
+ "name": "date",
1564
+ "type": {
1565
+ "text": "Date"
1566
+ }
1567
+ },
1568
+ {
1569
+ "name": "month",
1570
+ "type": {
1571
+ "text": "number"
1572
+ }
1573
+ }
1574
+ ]
1575
+ },
1576
+ {
1577
+ "kind": "function",
1578
+ "name": "setYear",
1579
+ "return": {
1580
+ "type": {
1581
+ "text": "Date"
1582
+ }
1583
+ },
1584
+ "parameters": [
1585
+ {
1586
+ "name": "date",
1587
+ "type": {
1588
+ "text": "Date"
1589
+ }
1590
+ },
1591
+ {
1592
+ "name": "year",
1593
+ "type": {
1594
+ "text": "number"
1595
+ }
1596
+ }
1597
+ ]
1598
+ },
1599
+ {
1600
+ "kind": "function",
1601
+ "name": "clamp",
1602
+ "return": {
1603
+ "type": {
1604
+ "text": "Date"
1605
+ }
1606
+ },
1607
+ "parameters": [
1608
+ {
1609
+ "name": "date",
1610
+ "type": {
1611
+ "text": "Date"
1612
+ }
1613
+ },
1614
+ {
1615
+ "name": "min",
1616
+ "optional": true,
1617
+ "type": {
1618
+ "text": "Date"
1619
+ }
1620
+ },
1621
+ {
1622
+ "name": "max",
1623
+ "optional": true,
1624
+ "type": {
1625
+ "text": "Date"
1626
+ }
1627
+ }
1628
+ ],
1629
+ "description": "Ensures date is within range, returns min or max if out of bounds"
1630
+ },
1631
+ {
1632
+ "kind": "function",
1633
+ "name": "inRange",
1634
+ "return": {
1635
+ "type": {
1636
+ "text": "boolean"
1637
+ }
1638
+ },
1639
+ "parameters": [
1640
+ {
1641
+ "name": "date",
1642
+ "type": {
1643
+ "text": "Date"
1644
+ }
1645
+ },
1646
+ {
1647
+ "name": "min",
1648
+ "optional": true,
1649
+ "type": {
1650
+ "text": "Date"
1651
+ }
1652
+ },
1653
+ {
1654
+ "name": "max",
1655
+ "optional": true,
1656
+ "type": {
1657
+ "text": "Date"
1658
+ }
1659
+ }
1660
+ ],
1661
+ "description": "Check if date is within a min and max"
1662
+ },
1663
+ {
1664
+ "kind": "function",
1665
+ "name": "getViewOfMonth",
1666
+ "return": {
1667
+ "type": {
1668
+ "text": "Date[]"
1669
+ }
1670
+ },
1671
+ "parameters": [
1672
+ {
1673
+ "name": "date",
1674
+ "type": {
1675
+ "text": "Date"
1676
+ }
1677
+ },
1678
+ {
1679
+ "name": "firstDayOfWeek",
1680
+ "default": "DaysOfWeek.Monday",
1681
+ "type": {
1682
+ "text": "DaysOfWeek"
1683
+ }
1684
+ }
1685
+ ],
1686
+ "description": "given a date, return an array of dates from a calendar perspective"
1687
+ }
1688
+ ],
1689
+ "exports": [
1690
+ {
1691
+ "kind": "js",
1692
+ "name": "createDate",
1693
+ "declaration": {
1694
+ "name": "createDate",
1695
+ "module": "src/common/dates.ts"
1696
+ }
1697
+ },
1698
+ {
1699
+ "kind": "js",
1700
+ "name": "parseISODate",
1701
+ "declaration": {
1702
+ "name": "parseISODate",
1703
+ "module": "src/common/dates.ts"
1704
+ }
1705
+ },
1706
+ {
1707
+ "kind": "js",
1708
+ "name": "printISODate",
1709
+ "declaration": {
1710
+ "name": "printISODate",
1711
+ "module": "src/common/dates.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "js",
1716
+ "name": "isEqualMonth",
1717
+ "declaration": {
1718
+ "name": "isEqualMonth",
1719
+ "module": "src/common/dates.ts"
1720
+ }
1721
+ },
1722
+ {
1723
+ "kind": "js",
1724
+ "name": "isEqual",
1725
+ "declaration": {
1726
+ "name": "isEqual",
1727
+ "module": "src/common/dates.ts"
1728
+ }
1729
+ },
1730
+ {
1731
+ "kind": "js",
1732
+ "name": "addDays",
1733
+ "declaration": {
1734
+ "name": "addDays",
1735
+ "module": "src/common/dates.ts"
1736
+ }
1737
+ },
1738
+ {
1739
+ "kind": "js",
1740
+ "name": "addMonths",
1741
+ "declaration": {
1742
+ "name": "addMonths",
1743
+ "module": "src/common/dates.ts"
1744
+ }
1745
+ },
1746
+ {
1747
+ "kind": "js",
1748
+ "name": "addYears",
1749
+ "declaration": {
1750
+ "name": "addYears",
1751
+ "module": "src/common/dates.ts"
1752
+ }
1753
+ },
1754
+ {
1755
+ "kind": "js",
1756
+ "name": "startOfWeek",
1757
+ "declaration": {
1758
+ "name": "startOfWeek",
1759
+ "module": "src/common/dates.ts"
1760
+ }
1761
+ },
1762
+ {
1763
+ "kind": "js",
1764
+ "name": "endOfWeek",
1765
+ "declaration": {
1766
+ "name": "endOfWeek",
1767
+ "module": "src/common/dates.ts"
1768
+ }
1769
+ },
1770
+ {
1771
+ "kind": "js",
1772
+ "name": "startOfMonth",
1773
+ "declaration": {
1774
+ "name": "startOfMonth",
1775
+ "module": "src/common/dates.ts"
1776
+ }
1777
+ },
1778
+ {
1779
+ "kind": "js",
1780
+ "name": "endOfMonth",
1781
+ "declaration": {
1782
+ "name": "endOfMonth",
1783
+ "module": "src/common/dates.ts"
1784
+ }
1785
+ },
1786
+ {
1787
+ "kind": "js",
1788
+ "name": "setMonth",
1789
+ "declaration": {
1790
+ "name": "setMonth",
1791
+ "module": "src/common/dates.ts"
1792
+ }
1793
+ },
1794
+ {
1795
+ "kind": "js",
1796
+ "name": "setYear",
1797
+ "declaration": {
1798
+ "name": "setYear",
1799
+ "module": "src/common/dates.ts"
1800
+ }
1801
+ },
1802
+ {
1803
+ "kind": "js",
1804
+ "name": "clamp",
1805
+ "declaration": {
1806
+ "name": "clamp",
1807
+ "module": "src/common/dates.ts"
1808
+ }
1809
+ },
1810
+ {
1811
+ "kind": "js",
1812
+ "name": "inRange",
1813
+ "declaration": {
1814
+ "name": "inRange",
1815
+ "module": "src/common/dates.ts"
1816
+ }
1817
+ },
1818
+ {
1819
+ "kind": "js",
1820
+ "name": "getViewOfMonth",
1821
+ "declaration": {
1822
+ "name": "getViewOfMonth",
1823
+ "module": "src/common/dates.ts"
1824
+ }
1825
+ }
1826
+ ]
1827
+ },
1828
+ {
1829
+ "kind": "javascript-module",
1830
+ "path": "src/common/events.ts",
1831
+ "declarations": [
1832
+ {
1833
+ "kind": "class",
1834
+ "description": "A base class for events which defaults to bubbling and composed",
1835
+ "name": "NordEvent",
1836
+ "superclass": {
1837
+ "name": "Event",
1838
+ "module": "src/common/events.ts"
1839
+ },
1840
+ "status": null,
1841
+ "category": null
1842
+ }
1843
+ ],
1844
+ "exports": [
1845
+ {
1846
+ "kind": "js",
1847
+ "name": "NordEvent",
1848
+ "declaration": {
1849
+ "name": "NordEvent",
1850
+ "module": "src/common/events.ts"
1851
+ }
1852
+ }
1853
+ ]
1854
+ },
1855
+ {
1856
+ "kind": "javascript-module",
1857
+ "path": "src/common/focus.ts",
1858
+ "declarations": [
1859
+ {
1860
+ "kind": "function",
1861
+ "name": "getFocusedElement",
1862
+ "return": {
1863
+ "type": {
1864
+ "text": "Element | undefined"
1865
+ }
1866
+ },
1867
+ "parameters": [
1868
+ {
1869
+ "name": "root",
1870
+ "type": {
1871
+ "text": "Document | ShadowRoot"
1872
+ }
1873
+ }
1874
+ ],
1875
+ "description": "Gets the currently focused element, taking shadow roots into account."
1876
+ }
1877
+ ],
1878
+ "exports": [
1879
+ {
1880
+ "kind": "js",
1881
+ "name": "getFocusedElement",
1882
+ "declaration": {
1883
+ "name": "getFocusedElement",
1884
+ "module": "src/common/focus.ts"
1885
+ }
1886
+ }
1887
+ ]
1888
+ },
1889
+ {
1890
+ "kind": "javascript-module",
1891
+ "path": "src/common/input.ts",
1892
+ "declarations": [
1893
+ {
1894
+ "kind": "function",
1895
+ "name": "cleanValue",
1896
+ "return": {
1897
+ "type": {
1898
+ "text": "string"
1899
+ }
1900
+ },
1901
+ "parameters": [
1902
+ {
1903
+ "name": "inputEl",
1904
+ "type": {
1905
+ "text": "HTMLInputElement"
1906
+ }
1907
+ },
1908
+ {
1909
+ "name": "regex",
1910
+ "type": {
1911
+ "text": "RegExp"
1912
+ }
1913
+ }
1914
+ ]
1915
+ }
1916
+ ],
1917
+ "exports": [
1918
+ {
1919
+ "kind": "js",
1920
+ "name": "cleanValue",
1921
+ "declaration": {
1922
+ "name": "cleanValue",
1923
+ "module": "src/common/input.ts"
1924
+ }
1925
+ }
1926
+ ]
1927
+ },
1928
+ {
1929
+ "kind": "javascript-module",
1930
+ "path": "src/common/number.ts",
1931
+ "declarations": [
1932
+ {
1933
+ "kind": "function",
1934
+ "name": "wrap",
1935
+ "parameters": [
1936
+ {
1937
+ "name": "val",
1938
+ "type": {
1939
+ "text": "number"
1940
+ }
1941
+ },
1942
+ {
1943
+ "name": "min",
1944
+ "type": {
1945
+ "text": "number"
1946
+ }
1947
+ },
1948
+ {
1949
+ "name": "max",
1950
+ "type": {
1951
+ "text": "number"
1952
+ }
1953
+ }
1954
+ ],
1955
+ "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"
1956
+ },
1957
+ {
1958
+ "kind": "function",
1959
+ "name": "range",
1960
+ "parameters": [
1961
+ {
1962
+ "name": "from",
1963
+ "type": {
1964
+ "text": "number"
1965
+ }
1966
+ },
1967
+ {
1968
+ "name": "to",
1969
+ "type": {
1970
+ "text": "number"
1971
+ }
1972
+ }
1973
+ ]
1974
+ }
1975
+ ],
1976
+ "exports": [
1977
+ {
1978
+ "kind": "js",
1979
+ "name": "wrap",
1980
+ "declaration": {
1981
+ "name": "wrap",
1982
+ "module": "src/common/number.ts"
1983
+ }
1984
+ },
1985
+ {
1986
+ "kind": "js",
1987
+ "name": "range",
1988
+ "declaration": {
1989
+ "name": "range",
1990
+ "module": "src/common/number.ts"
1991
+ }
1992
+ }
1993
+ ]
1994
+ },
1995
+ {
1996
+ "kind": "javascript-module",
1997
+ "path": "src/common/ref.ts",
1998
+ "declarations": [
1999
+ {
2000
+ "kind": "function",
2001
+ "name": "mergeRefs",
2002
+ "return": {
2003
+ "type": {
2004
+ "text": "RefCallback"
2005
+ }
2006
+ },
2007
+ "parameters": [
2008
+ {
2009
+ "name": "refs",
2010
+ "type": {
2011
+ "text": "Ref[]"
2012
+ }
2013
+ }
2014
+ ],
2015
+ "description": "Creates a ref callback which will assign the element to every given ref"
2016
+ }
2017
+ ],
2018
+ "exports": [
2019
+ {
2020
+ "kind": "js",
2021
+ "name": "mergeRefs",
2022
+ "declaration": {
2023
+ "name": "mergeRefs",
2024
+ "module": "src/common/ref.ts"
2025
+ }
2026
+ }
2027
+ ]
2028
+ },
2029
+ {
2030
+ "kind": "javascript-module",
2031
+ "path": "src/command-menu/CommandMenu.ts",
2032
+ "declarations": [
2033
+ {
2034
+ "kind": "class",
2035
+ "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.",
2036
+ "name": "CommandMenu",
2037
+ "slots": [
2038
+ {
2039
+ "description": "Used to replace the default footer contents.",
2040
+ "name": "footer"
2041
+ }
2042
+ ],
2043
+ "members": [
2044
+ {
2045
+ "kind": "field",
2046
+ "name": "inputRef",
2047
+ "privacy": "private"
2048
+ },
2049
+ {
2050
+ "kind": "field",
2051
+ "name": "listRef",
2052
+ "privacy": "private"
2053
+ },
2054
+ {
2055
+ "kind": "field",
2056
+ "name": "previousFocus",
2057
+ "type": {
2058
+ "text": "HTMLElement | undefined"
2059
+ },
2060
+ "privacy": "private"
2061
+ },
2062
+ {
2063
+ "kind": "field",
2064
+ "name": "dismissController",
2065
+ "privacy": "private",
2066
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
2067
+ },
2068
+ {
2069
+ "kind": "field",
2070
+ "name": "keyboardController",
2071
+ "privacy": "private",
2072
+ "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 })"
2073
+ },
2074
+ {
2075
+ "kind": "field",
2076
+ "name": "open",
2077
+ "type": {
2078
+ "text": "boolean"
2079
+ },
2080
+ "default": "false",
2081
+ "description": "Show or hide the command menu.",
2082
+ "attribute": "open"
2083
+ },
2084
+ {
2085
+ "kind": "field",
2086
+ "name": "placeholder",
2087
+ "type": {
2088
+ "text": "string"
2089
+ },
2090
+ "default": "\"Type a command or search...\"",
2091
+ "description": "Hint text to display in the search field.",
2092
+ "attribute": "placeholder"
2093
+ },
2094
+ {
2095
+ "kind": "field",
2096
+ "name": "commands",
2097
+ "type": {
2098
+ "text": "Array<ICommandMenuAction>"
2099
+ },
2100
+ "default": "[]",
2101
+ "description": "Array of commands to be included in the menu."
2102
+ },
2103
+ {
2104
+ "kind": "field",
2105
+ "name": "parent",
2106
+ "type": {
2107
+ "text": "string | undefined"
2108
+ },
2109
+ "privacy": "private"
2110
+ },
2111
+ {
2112
+ "kind": "field",
2113
+ "name": "search",
2114
+ "type": {
2115
+ "text": "string"
2116
+ },
2117
+ "privacy": "private",
2118
+ "default": "\"\""
2119
+ },
2120
+ {
2121
+ "kind": "field",
2122
+ "name": "bump",
2123
+ "type": {
2124
+ "text": "boolean"
2125
+ },
2126
+ "privacy": "private",
2127
+ "default": "true"
2128
+ },
2129
+ {
2130
+ "kind": "field",
2131
+ "name": "selectedIndex",
2132
+ "type": {
2133
+ "text": "number"
2134
+ },
2135
+ "privacy": "private",
2136
+ "default": "0"
2137
+ },
2138
+ {
2139
+ "kind": "field",
2140
+ "name": "filteredCommands",
2141
+ "type": {
2142
+ "text": "Array<ICommandMenuAction>"
2143
+ },
2144
+ "privacy": "private",
2145
+ "default": "[]"
2146
+ },
2147
+ {
2148
+ "kind": "field",
2149
+ "name": "selected",
2150
+ "type": {
2151
+ "text": "ICommandMenuAction"
2152
+ },
2153
+ "privacy": "private"
2154
+ },
2155
+ {
2156
+ "kind": "method",
2157
+ "name": "show",
2158
+ "parameters": [
2159
+ {
2160
+ "name": "options",
2161
+ "default": "{}",
2162
+ "type": {
2163
+ "text": "{ parent?: string }"
2164
+ },
2165
+ "description": "allows you to open the menu filtered to a specific parent command."
2166
+ }
2167
+ ],
2168
+ "description": "Show the command menu programmatically."
2169
+ },
2170
+ {
2171
+ "kind": "method",
2172
+ "name": "close",
2173
+ "description": "Close the command menu programmatically."
2174
+ },
2175
+ {
2176
+ "kind": "method",
2177
+ "name": "toggleOpen",
2178
+ "description": "Toggle the open state programmatically."
2179
+ },
2180
+ {
2181
+ "kind": "method",
2182
+ "name": "focus",
2183
+ "description": "Focus the command menu's input."
2184
+ },
2185
+ {
2186
+ "kind": "method",
2187
+ "name": "renderNoResults",
2188
+ "privacy": "private"
2189
+ },
2190
+ {
2191
+ "kind": "method",
2192
+ "name": "renderSection",
2193
+ "privacy": "private",
2194
+ "parameters": [
2195
+ {
2196
+ "name": "section",
2197
+ "type": {
2198
+ "text": "string | undefined"
2199
+ }
2200
+ },
2201
+ {
2202
+ "name": "commands",
2203
+ "type": {
2204
+ "text": "ICommandMenuAction[]"
2205
+ }
2206
+ }
2207
+ ]
2208
+ },
2209
+ {
2210
+ "kind": "method",
2211
+ "name": "handleAnimationEnd",
2212
+ "privacy": "private"
2213
+ },
2214
+ {
2215
+ "kind": "method",
2216
+ "name": "handleBlur",
2217
+ "privacy": "private"
2218
+ },
2219
+ {
2220
+ "kind": "method",
2221
+ "name": "handleInput",
2222
+ "privacy": "private",
2223
+ "parameters": [
2224
+ {
2225
+ "name": "event",
2226
+ "type": {
2227
+ "text": "KeyboardEvent"
2228
+ }
2229
+ }
2230
+ ]
2231
+ },
2232
+ {
2233
+ "kind": "method",
2234
+ "name": "select",
2235
+ "privacy": "private",
2236
+ "parameters": [
2237
+ {
2238
+ "name": "command",
2239
+ "default": "this.selected",
2240
+ "type": {
2241
+ "text": "ICommandMenuAction"
2242
+ }
2243
+ }
2244
+ ]
2245
+ },
2246
+ {
2247
+ "kind": "method",
2248
+ "name": "start",
2249
+ "privacy": "private"
2250
+ },
2251
+ {
2252
+ "kind": "method",
2253
+ "name": "end",
2254
+ "privacy": "private"
2255
+ },
2256
+ {
2257
+ "kind": "method",
2258
+ "name": "next",
2259
+ "privacy": "private"
2260
+ },
2261
+ {
2262
+ "kind": "method",
2263
+ "name": "previous",
2264
+ "privacy": "private"
2265
+ },
2266
+ {
2267
+ "kind": "method",
2268
+ "name": "goBack",
2269
+ "privacy": "private"
2270
+ },
2271
+ {
2272
+ "kind": "method",
2273
+ "name": "setParent",
2274
+ "privacy": "private",
2275
+ "parameters": [
2276
+ {
2277
+ "name": "parent",
2278
+ "optional": true,
2279
+ "type": {
2280
+ "text": "string"
2281
+ }
2282
+ }
2283
+ ]
2284
+ },
2285
+ {
2286
+ "kind": "method",
2287
+ "name": "setSearch",
2288
+ "privacy": "private",
2289
+ "parameters": [
2290
+ {
2291
+ "name": "str",
2292
+ "type": {
2293
+ "text": "string"
2294
+ }
2295
+ }
2296
+ ]
2297
+ },
2298
+ {
2299
+ "kind": "method",
2300
+ "name": "filterCommands",
2301
+ "privacy": "private"
2302
+ },
2303
+ {
2304
+ "kind": "field",
2305
+ "name": "_warningLogged",
2306
+ "type": {
2307
+ "text": "boolean"
2308
+ },
2309
+ "privacy": "private",
2310
+ "static": true,
2311
+ "default": "false",
2312
+ "inheritedFrom": {
2313
+ "name": "DraftComponentMixin",
2314
+ "module": "src/common/mixins/DraftComponentMixin.ts"
2315
+ }
2316
+ }
2317
+ ],
2318
+ "events": [
2319
+ {
2320
+ "name": "open",
2321
+ "type": {
2322
+ "text": "NordEvent"
2323
+ },
2324
+ "description": "The command menu was opened foo."
2325
+ },
2326
+ {
2327
+ "name": "close",
2328
+ "type": {
2329
+ "text": "NordEvent"
2330
+ },
2331
+ "description": "The command menu was closed bar."
2332
+ },
2333
+ {
2334
+ "type": {
2335
+ "text": "SelectEvent"
2336
+ },
2337
+ "description": "User selected a command from the menu.",
2338
+ "name": "n-select"
2339
+ }
2340
+ ],
2341
+ "attributes": [
2342
+ {
2343
+ "name": "open",
2344
+ "type": {
2345
+ "text": "boolean"
2346
+ },
2347
+ "default": "false",
2348
+ "description": "Show or hide the command menu.",
2349
+ "fieldName": "open"
2350
+ },
2351
+ {
2352
+ "name": "placeholder",
2353
+ "type": {
2354
+ "text": "string"
2355
+ },
2356
+ "default": "\"Type a command or search...\"",
2357
+ "description": "Hint text to display in the search field.",
2358
+ "fieldName": "placeholder"
2359
+ }
2360
+ ],
2361
+ "mixins": [
2362
+ {
2363
+ "name": "DraftComponentMixin",
2364
+ "module": "/src/common/mixins/DraftComponentMixin.js"
2365
+ }
2366
+ ],
2367
+ "superclass": {
2368
+ "name": "LitElement",
2369
+ "package": "lit"
2370
+ },
2371
+ "status": "draft",
2372
+ "category": "action",
2373
+ "tagName": "nord-command-menu",
2374
+ "customElement": true
2375
+ }
2376
+ ],
2377
+ "exports": [
2378
+ {
2379
+ "kind": "js",
2380
+ "name": "default",
2381
+ "declaration": {
2382
+ "name": "CommandMenu",
2383
+ "module": "src/command-menu/CommandMenu.ts"
2384
+ }
2385
+ },
2386
+ {
2387
+ "kind": "custom-element-definition",
2388
+ "name": "nord-command-menu",
2389
+ "declaration": {
2390
+ "name": "CommandMenu",
2391
+ "module": "src/command-menu/CommandMenu.ts"
2392
+ }
2393
+ }
2394
+ ]
2395
+ },
2396
+ {
2397
+ "kind": "javascript-module",
2398
+ "path": "src/command-menu/CommandMenuAction.ts",
2399
+ "declarations": [
2400
+ {
2401
+ "kind": "class",
2402
+ "description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
2403
+ "name": "CommandMenuAction",
2404
+ "members": [
2405
+ {
2406
+ "kind": "field",
2407
+ "name": "command",
2408
+ "type": {
2409
+ "text": "ICommandMenuAction"
2410
+ },
2411
+ "attribute": "command"
2412
+ },
2413
+ {
2414
+ "kind": "field",
2415
+ "name": "selected",
2416
+ "type": {
2417
+ "text": "boolean"
2418
+ },
2419
+ "default": "false",
2420
+ "attribute": "selected"
2421
+ },
2422
+ {
2423
+ "kind": "method",
2424
+ "name": "ensureInView",
2425
+ "privacy": "private",
2426
+ "description": "Scroll to show element"
2427
+ },
2428
+ {
2429
+ "kind": "method",
2430
+ "name": "renderShortcut",
2431
+ "privacy": "private"
2432
+ }
2433
+ ],
2434
+ "attributes": [
2435
+ {
2436
+ "name": "command",
2437
+ "type": {
2438
+ "text": "ICommandMenuAction"
2439
+ },
2440
+ "fieldName": "command"
2441
+ },
2442
+ {
2443
+ "name": "selected",
2444
+ "type": {
2445
+ "text": "boolean"
2446
+ },
2447
+ "default": "false",
2448
+ "fieldName": "selected"
2449
+ }
2450
+ ],
2451
+ "superclass": {
2452
+ "name": "LitElement",
2453
+ "package": "lit"
2454
+ },
2455
+ "status": "internal",
2456
+ "category": null,
2457
+ "tagName": "nord-command-menu-action",
2458
+ "customElement": true
2459
+ }
2460
+ ],
2461
+ "exports": [
2462
+ {
2463
+ "kind": "js",
2464
+ "name": "default",
2465
+ "declaration": {
2466
+ "name": "CommandMenuAction",
2467
+ "module": "src/command-menu/CommandMenuAction.ts"
2468
+ }
2469
+ },
2470
+ {
2471
+ "kind": "custom-element-definition",
2472
+ "name": "nord-command-menu-action",
2473
+ "declaration": {
2474
+ "name": "CommandMenuAction",
2475
+ "module": "src/command-menu/CommandMenuAction.ts"
2476
+ }
2477
+ }
2478
+ ]
2479
+ },
2480
+ {
2481
+ "kind": "javascript-module",
2482
+ "path": "src/command-menu/ICommandMenuAction.ts",
2483
+ "declarations": [],
2484
+ "exports": []
2485
+ },
2486
+ {
2487
+ "kind": "javascript-module",
2488
+ "path": "src/command-menu/KeyboardController.ts",
2489
+ "declarations": [
2490
+ {
2491
+ "kind": "class",
2492
+ "description": "",
2493
+ "name": "KeyboardController",
2494
+ "members": [
2495
+ {
2496
+ "kind": "field",
2497
+ "name": "host",
2498
+ "type": {
2499
+ "text": "CommandMenu"
2500
+ },
2501
+ "privacy": "private",
2502
+ "default": "host"
2503
+ },
2504
+ {
2505
+ "kind": "field",
2506
+ "name": "globalShortcuts",
2507
+ "type": {
2508
+ "text": "ShortcutController"
2509
+ },
2510
+ "privacy": "private",
2511
+ "default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
2512
+ },
2513
+ {
2514
+ "kind": "field",
2515
+ "name": "navigationShortcuts",
2516
+ "type": {
2517
+ "text": "ShortcutController"
2518
+ },
2519
+ "privacy": "private",
2520
+ "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 )"
2521
+ },
2522
+ {
2523
+ "kind": "field",
2524
+ "name": "commandShortcuts",
2525
+ "type": {
2526
+ "text": "ShortcutController"
2527
+ },
2528
+ "privacy": "private",
2529
+ "default": "new ShortcutController(host)"
2530
+ },
2531
+ {
2532
+ "kind": "method",
2533
+ "name": "registerCommandShortcuts"
2534
+ }
2535
+ ]
2536
+ }
2537
+ ],
2538
+ "exports": [
2539
+ {
2540
+ "kind": "js",
2541
+ "name": "KeyboardController",
2542
+ "declaration": {
2543
+ "name": "KeyboardController",
2544
+ "module": "src/command-menu/KeyboardController.ts"
2545
+ }
2546
+ }
2547
+ ]
2548
+ },
2549
+ {
2550
+ "kind": "javascript-module",
2551
+ "path": "src/command-menu/events.ts",
2552
+ "declarations": [
2553
+ {
2554
+ "kind": "class",
2555
+ "description": "",
2556
+ "name": "SelectEvent",
2557
+ "members": [
2558
+ {
2559
+ "kind": "field",
2560
+ "name": "command",
2561
+ "type": {
2562
+ "text": "ICommandMenuAction"
2563
+ },
2564
+ "default": "command"
2565
+ }
2566
+ ],
2567
+ "superclass": {
2568
+ "name": "NordEvent",
2569
+ "module": "/src/common/events.js"
2570
+ }
2571
+ }
2572
+ ],
2573
+ "exports": [
2574
+ {
2575
+ "kind": "js",
2576
+ "name": "SelectEvent",
2577
+ "declaration": {
2578
+ "name": "SelectEvent",
2579
+ "module": "src/command-menu/events.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
+ },
3126
+ "privacy": "private",
3127
+ "static": true,
3128
+ "default": "false",
3129
+ "inheritedFrom": {
3130
+ "name": "DraftComponentMixin",
3131
+ "module": "src/common/mixins/DraftComponentMixin.ts"
3132
+ }
3133
+ }
3134
+ ],
3135
+ "events": [
3136
+ {
3137
+ "name": "open",
3138
+ "type": {
3139
+ "text": "NordEvent"
3140
+ },
3141
+ "description": "Dispatched when the calendar is toggled open."
3142
+ },
3143
+ {
3144
+ "name": "close",
3145
+ "type": {
3146
+ "text": "NordEvent"
3147
+ },
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
+ }
3296
+ },
3297
+ {
3298
+ "name": "expand",
3299
+ "type": {
3300
+ "text": "boolean"
3301
+ },
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
+ },
3310
+ {
3311
+ "name": "disabled",
3312
+ "type": {
3313
+ "text": "boolean"
3314
+ },
3315
+ "default": "false",
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
+ }
3322
+ },
3323
+ {
3324
+ "name": "name",
3325
+ "type": {
3326
+ "text": "string | undefined"
3327
+ },
3328
+ "description": "The name of the input component.",
3329
+ "fieldName": "name",
3330
+ "inheritedFrom": {
3331
+ "name": "InputMixin",
3332
+ "module": "src/common/mixins/InputMixin.ts"
3333
+ }
3334
+ }
3335
+ ],
3336
+ "mixins": [
3337
+ {
3338
+ "name": "FormAssociatedMixin",
3339
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
3340
+ },
3341
+ {
3342
+ "name": "InputMixin",
3343
+ "module": "/src/common/mixins/InputMixin.js"
3344
+ },
3345
+ {
3346
+ "name": "FocusableMixin",
3347
+ "module": "/src/common/mixins/FocusableMixin.js"
3348
+ },
3349
+ {
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": {
@@ -2158,19 +4198,168 @@
2158
4198
  }
2159
4199
  }
2160
4200
  ],
2161
- "mixins": [
4201
+ "mixins": [
4202
+ {
4203
+ "name": "FormAssociatedMixin",
4204
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
4205
+ },
4206
+ {
4207
+ "name": "InputMixin",
4208
+ "module": "/src/common/mixins/InputMixin.js"
4209
+ },
4210
+ {
4211
+ "name": "FocusableMixin",
4212
+ "module": "/src/common/mixins/FocusableMixin.js"
4213
+ },
4214
+ {
4215
+ "name": "DraftComponentMixin",
4216
+ "module": "/src/common/mixins/DraftComponentMixin.js"
4217
+ }
4218
+ ],
4219
+ "superclass": {
4220
+ "name": "LitElement",
4221
+ "package": "lit"
4222
+ },
4223
+ "status": "draft",
4224
+ "category": "form",
4225
+ "tagName": "nord-input",
4226
+ "customElement": true,
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
+ },
4239
+ {
4240
+ "name": "change",
4241
+ "type": {
4242
+ "text": "NordEvent"
4243
+ },
4244
+ "description": "Fired whenever the input's value is changed via user interaction.",
4245
+ "inheritedFrom": {
4246
+ "name": "FormAssociatedMixin",
4247
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4248
+ }
4249
+ }
4250
+ ]
4251
+ }
4252
+ ],
4253
+ "exports": [
4254
+ {
4255
+ "kind": "js",
4256
+ "name": "default",
4257
+ "declaration": {
4258
+ "name": "Input",
4259
+ "module": "src/input/Input.ts"
4260
+ }
4261
+ },
4262
+ {
4263
+ "kind": "custom-element-definition",
4264
+ "name": "nord-input",
4265
+ "declaration": {
4266
+ "name": "Input",
4267
+ "module": "src/input/Input.ts"
4268
+ }
4269
+ }
4270
+ ]
4271
+ },
4272
+ {
4273
+ "kind": "javascript-module",
4274
+ "path": "src/stack/Stack.ts",
4275
+ "declarations": [
4276
+ {
4277
+ "kind": "class",
4278
+ "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
4279
+ "name": "Stack",
4280
+ "slots": [
4281
+ {
4282
+ "description": "The stack content.",
4283
+ "name": ""
4284
+ }
4285
+ ],
4286
+ "members": [
4287
+ {
4288
+ "kind": "field",
4289
+ "name": "gap",
4290
+ "type": {
4291
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4292
+ },
4293
+ "default": "\"m\"",
4294
+ "description": "The space injected between components.",
4295
+ "attribute": "gap",
4296
+ "reflects": true
4297
+ },
4298
+ {
4299
+ "kind": "field",
4300
+ "name": "direction",
4301
+ "type": {
4302
+ "text": "\"vertical\" | \"horizontal\""
4303
+ },
4304
+ "default": "\"vertical\"",
4305
+ "description": "The direction of the stack.",
4306
+ "attribute": "direction",
4307
+ "reflects": true
4308
+ },
4309
+ {
4310
+ "kind": "field",
4311
+ "name": "alignItems",
4312
+ "type": {
4313
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
4314
+ },
4315
+ "description": "How to align the child items inside the stack.",
4316
+ "attribute": "align-items",
4317
+ "reflects": true
4318
+ },
4319
+ {
4320
+ "kind": "field",
4321
+ "name": "_warningLogged",
4322
+ "type": {
4323
+ "text": "boolean"
4324
+ },
4325
+ "privacy": "private",
4326
+ "static": true,
4327
+ "default": "false",
4328
+ "inheritedFrom": {
4329
+ "name": "DraftComponentMixin",
4330
+ "module": "src/common/mixins/DraftComponentMixin.ts"
4331
+ }
4332
+ }
4333
+ ],
4334
+ "attributes": [
2162
4335
  {
2163
- "name": "FormAssociatedMixin",
2164
- "module": "/src/common/mixins/FormAssociatedMixin.js"
4336
+ "name": "gap",
4337
+ "type": {
4338
+ "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4339
+ },
4340
+ "default": "\"m\"",
4341
+ "description": "The space injected between components.",
4342
+ "fieldName": "gap"
2165
4343
  },
2166
4344
  {
2167
- "name": "InputMixin",
2168
- "module": "/src/common/mixins/InputMixin.js"
4345
+ "name": "direction",
4346
+ "type": {
4347
+ "text": "\"vertical\" | \"horizontal\""
4348
+ },
4349
+ "default": "\"vertical\"",
4350
+ "description": "The direction of the stack.",
4351
+ "fieldName": "direction"
2169
4352
  },
2170
4353
  {
2171
- "name": "FocusableMixin",
2172
- "module": "/src/common/mixins/FocusableMixin.js"
2173
- },
4354
+ "name": "align-items",
4355
+ "type": {
4356
+ "text": "\"center\" | \"start\" | \"end\" | undefined"
4357
+ },
4358
+ "description": "How to align the child items inside the stack.",
4359
+ "fieldName": "alignItems"
4360
+ }
4361
+ ],
4362
+ "mixins": [
2174
4363
  {
2175
4364
  "name": "DraftComponentMixin",
2176
4365
  "module": "/src/common/mixins/DraftComponentMixin.js"
@@ -2181,22 +4370,9 @@
2181
4370
  "package": "lit"
2182
4371
  },
2183
4372
  "status": "draft",
2184
- "category": "form",
2185
- "tagName": "nord-input",
2186
- "customElement": true,
2187
- "events": [
2188
- {
2189
- "name": "change",
2190
- "type": {
2191
- "text": "NordEvent"
2192
- },
2193
- "description": "Fired whenever the input's value is changed via user interaction.",
2194
- "inheritedFrom": {
2195
- "name": "FormAssociatedMixin",
2196
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2197
- }
2198
- }
2199
- ]
4373
+ "category": "structure",
4374
+ "tagName": "nord-stack",
4375
+ "customElement": true
2200
4376
  }
2201
4377
  ],
2202
4378
  "exports": [
@@ -2204,16 +4380,16 @@
2204
4380
  "kind": "js",
2205
4381
  "name": "default",
2206
4382
  "declaration": {
2207
- "name": "Input",
2208
- "module": "src/input/Input.ts"
4383
+ "name": "Stack",
4384
+ "module": "src/stack/Stack.ts"
2209
4385
  }
2210
4386
  },
2211
4387
  {
2212
4388
  "kind": "custom-element-definition",
2213
- "name": "nord-input",
4389
+ "name": "nord-stack",
2214
4390
  "declaration": {
2215
- "name": "Input",
2216
- "module": "src/input/Input.ts"
4391
+ "name": "Stack",
4392
+ "module": "src/stack/Stack.ts"
2217
4393
  }
2218
4394
  }
2219
4395
  ]
@@ -2411,7 +4587,7 @@
2411
4587
  },
2412
4588
  {
2413
4589
  "kind": "method",
2414
- "name": "handleChange",
4590
+ "name": "handleInput",
2415
4591
  "privacy": "protected",
2416
4592
  "parameters": [
2417
4593
  {
@@ -2426,6 +4602,15 @@
2426
4602
  "module": "src/common/mixins/FormAssociatedMixin.ts"
2427
4603
  }
2428
4604
  },
4605
+ {
4606
+ "kind": "method",
4607
+ "name": "handleChange",
4608
+ "privacy": "protected",
4609
+ "inheritedFrom": {
4610
+ "name": "FormAssociatedMixin",
4611
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4612
+ }
4613
+ },
2429
4614
  {
2430
4615
  "kind": "method",
2431
4616
  "name": "renderLabel",
@@ -2520,8 +4705,9 @@
2520
4705
  "kind": "field",
2521
4706
  "name": "value",
2522
4707
  "type": {
2523
- "text": "string | undefined"
4708
+ "text": "string"
2524
4709
  },
4710
+ "default": "\"\"",
2525
4711
  "description": "The value of the input component.",
2526
4712
  "attribute": "value",
2527
4713
  "inheritedFrom": {
@@ -2743,8 +4929,9 @@
2743
4929
  {
2744
4930
  "name": "value",
2745
4931
  "type": {
2746
- "text": "string | undefined"
4932
+ "text": "string"
2747
4933
  },
4934
+ "default": "\"\"",
2748
4935
  "description": "The value of the input component.",
2749
4936
  "fieldName": "value",
2750
4937
  "inheritedFrom": {
@@ -2754,6 +4941,17 @@
2754
4941
  }
2755
4942
  ],
2756
4943
  "events": [
4944
+ {
4945
+ "name": "input",
4946
+ "type": {
4947
+ "text": "NordEvent"
4948
+ },
4949
+ "description": "Fired as the user types into the input.",
4950
+ "inheritedFrom": {
4951
+ "name": "FormAssociatedMixin",
4952
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4953
+ }
4954
+ },
2757
4955
  {
2758
4956
  "name": "change",
2759
4957
  "type": {
@@ -2787,105 +4985,6 @@
2787
4985
  }
2788
4986
  ]
2789
4987
  },
2790
- {
2791
- "kind": "javascript-module",
2792
- "path": "src/table/Table.ts",
2793
- "declarations": [
2794
- {
2795
- "kind": "class",
2796
- "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.",
2797
- "name": "Table",
2798
- "slots": [
2799
- {
2800
- "description": "The table.",
2801
- "name": ""
2802
- }
2803
- ],
2804
- "members": [
2805
- {
2806
- "kind": "field",
2807
- "name": "density",
2808
- "type": {
2809
- "text": "\"condensed\" | \"default\" | \"relaxed\""
2810
- },
2811
- "default": "\"default\"",
2812
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
2813
- "attribute": "density",
2814
- "reflects": true
2815
- },
2816
- {
2817
- "kind": "method",
2818
- "name": "renderStyles",
2819
- "privacy": "private",
2820
- "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
2821
- },
2822
- {
2823
- "kind": "method",
2824
- "name": "createRenderRoot",
2825
- "privacy": "protected",
2826
- "description": "opt out of shadow dom"
2827
- },
2828
- {
2829
- "kind": "field",
2830
- "name": "_warningLogged",
2831
- "type": {
2832
- "text": "boolean"
2833
- },
2834
- "privacy": "private",
2835
- "static": true,
2836
- "default": "false",
2837
- "inheritedFrom": {
2838
- "name": "DraftComponentMixin",
2839
- "module": "src/common/mixins/DraftComponentMixin.ts"
2840
- }
2841
- }
2842
- ],
2843
- "attributes": [
2844
- {
2845
- "name": "density",
2846
- "type": {
2847
- "text": "\"condensed\" | \"default\" | \"relaxed\""
2848
- },
2849
- "default": "\"default\"",
2850
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
2851
- "fieldName": "density"
2852
- }
2853
- ],
2854
- "mixins": [
2855
- {
2856
- "name": "DraftComponentMixin",
2857
- "module": "/src/common/mixins/DraftComponentMixin.js"
2858
- }
2859
- ],
2860
- "superclass": {
2861
- "name": "LitElement",
2862
- "package": "lit"
2863
- },
2864
- "status": "draft",
2865
- "category": "list",
2866
- "tagName": "nord-table",
2867
- "customElement": true
2868
- }
2869
- ],
2870
- "exports": [
2871
- {
2872
- "kind": "js",
2873
- "name": "default",
2874
- "declaration": {
2875
- "name": "Table",
2876
- "module": "src/table/Table.ts"
2877
- }
2878
- },
2879
- {
2880
- "kind": "custom-element-definition",
2881
- "name": "nord-table",
2882
- "declaration": {
2883
- "name": "Table",
2884
- "module": "src/table/Table.ts"
2885
- }
2886
- }
2887
- ]
2888
- },
2889
4988
  {
2890
4989
  "kind": "javascript-module",
2891
4990
  "path": "src/spinner/Spinner.ts",
@@ -3005,50 +5104,41 @@
3005
5104
  },
3006
5105
  {
3007
5106
  "kind": "javascript-module",
3008
- "path": "src/stack/Stack.ts",
5107
+ "path": "src/table/Table.ts",
3009
5108
  "declarations": [
3010
5109
  {
3011
5110
  "kind": "class",
3012
- "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
3013
- "name": "Stack",
5111
+ "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.",
5112
+ "name": "Table",
3014
5113
  "slots": [
3015
5114
  {
3016
- "description": "The stack content.",
5115
+ "description": "The table.",
3017
5116
  "name": ""
3018
5117
  }
3019
5118
  ],
3020
5119
  "members": [
3021
5120
  {
3022
5121
  "kind": "field",
3023
- "name": "gap",
5122
+ "name": "density",
3024
5123
  "type": {
3025
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
5124
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
3026
5125
  },
3027
- "default": "\"m\"",
3028
- "description": "The space injected between components.",
3029
- "attribute": "gap",
5126
+ "default": "\"default\"",
5127
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5128
+ "attribute": "density",
3030
5129
  "reflects": true
3031
5130
  },
3032
5131
  {
3033
- "kind": "field",
3034
- "name": "direction",
3035
- "type": {
3036
- "text": "\"vertical\" | \"horizontal\""
3037
- },
3038
- "default": "\"vertical\"",
3039
- "description": "The direction of the stack.",
3040
- "attribute": "direction",
3041
- "reflects": true
5132
+ "kind": "method",
5133
+ "name": "renderStyles",
5134
+ "privacy": "private",
5135
+ "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
3042
5136
  },
3043
5137
  {
3044
- "kind": "field",
3045
- "name": "alignItems",
3046
- "type": {
3047
- "text": "\"center\" | \"start\" | \"end\" | undefined"
3048
- },
3049
- "description": "How to align the child items inside the stack.",
3050
- "attribute": "align-items",
3051
- "reflects": true
5138
+ "kind": "method",
5139
+ "name": "createRenderRoot",
5140
+ "privacy": "protected",
5141
+ "description": "opt out of shadow dom"
3052
5142
  },
3053
5143
  {
3054
5144
  "kind": "field",
@@ -3067,30 +5157,13 @@
3067
5157
  ],
3068
5158
  "attributes": [
3069
5159
  {
3070
- "name": "gap",
3071
- "type": {
3072
- "text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3073
- },
3074
- "default": "\"m\"",
3075
- "description": "The space injected between components.",
3076
- "fieldName": "gap"
3077
- },
3078
- {
3079
- "name": "direction",
3080
- "type": {
3081
- "text": "\"vertical\" | \"horizontal\""
3082
- },
3083
- "default": "\"vertical\"",
3084
- "description": "The direction of the stack.",
3085
- "fieldName": "direction"
3086
- },
3087
- {
3088
- "name": "align-items",
5160
+ "name": "density",
3089
5161
  "type": {
3090
- "text": "\"center\" | \"start\" | \"end\" | undefined"
5162
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
3091
5163
  },
3092
- "description": "How to align the child items inside the stack.",
3093
- "fieldName": "alignItems"
5164
+ "default": "\"default\"",
5165
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5166
+ "fieldName": "density"
3094
5167
  }
3095
5168
  ],
3096
5169
  "mixins": [
@@ -3104,8 +5177,8 @@
3104
5177
  "package": "lit"
3105
5178
  },
3106
5179
  "status": "draft",
3107
- "category": "structure",
3108
- "tagName": "nord-stack",
5180
+ "category": "list",
5181
+ "tagName": "nord-table",
3109
5182
  "customElement": true
3110
5183
  }
3111
5184
  ],
@@ -3114,16 +5187,16 @@
3114
5187
  "kind": "js",
3115
5188
  "name": "default",
3116
5189
  "declaration": {
3117
- "name": "Stack",
3118
- "module": "src/stack/Stack.ts"
5190
+ "name": "Table",
5191
+ "module": "src/table/Table.ts"
3119
5192
  }
3120
5193
  },
3121
5194
  {
3122
5195
  "kind": "custom-element-definition",
3123
- "name": "nord-stack",
5196
+ "name": "nord-table",
3124
5197
  "declaration": {
3125
- "name": "Stack",
3126
- "module": "src/stack/Stack.ts"
5198
+ "name": "Table",
5199
+ "module": "src/table/Table.ts"
3127
5200
  }
3128
5201
  }
3129
5202
  ]
@@ -3297,7 +5370,7 @@
3297
5370
  },
3298
5371
  {
3299
5372
  "kind": "method",
3300
- "name": "handleChange",
5373
+ "name": "handleInput",
3301
5374
  "privacy": "protected",
3302
5375
  "parameters": [
3303
5376
  {
@@ -3312,6 +5385,15 @@
3312
5385
  "module": "src/common/mixins/FormAssociatedMixin.ts"
3313
5386
  }
3314
5387
  },
5388
+ {
5389
+ "kind": "method",
5390
+ "name": "handleChange",
5391
+ "privacy": "protected",
5392
+ "inheritedFrom": {
5393
+ "name": "FormAssociatedMixin",
5394
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5395
+ }
5396
+ },
3315
5397
  {
3316
5398
  "kind": "method",
3317
5399
  "name": "renderLabel",
@@ -3406,8 +5488,9 @@
3406
5488
  "kind": "field",
3407
5489
  "name": "value",
3408
5490
  "type": {
3409
- "text": "string | undefined"
5491
+ "text": "string"
3410
5492
  },
5493
+ "default": "\"\"",
3411
5494
  "description": "The value of the input component.",
3412
5495
  "attribute": "value",
3413
5496
  "inheritedFrom": {
@@ -3612,8 +5695,9 @@
3612
5695
  {
3613
5696
  "name": "value",
3614
5697
  "type": {
3615
- "text": "string | undefined"
5698
+ "text": "string"
3616
5699
  },
5700
+ "default": "\"\"",
3617
5701
  "description": "The value of the input component.",
3618
5702
  "fieldName": "value",
3619
5703
  "inheritedFrom": {
@@ -3649,6 +5733,17 @@
3649
5733
  "tagName": "nord-textarea",
3650
5734
  "customElement": true,
3651
5735
  "events": [
5736
+ {
5737
+ "name": "input",
5738
+ "type": {
5739
+ "text": "NordEvent"
5740
+ },
5741
+ "description": "Fired as the user types into the input.",
5742
+ "inheritedFrom": {
5743
+ "name": "FormAssociatedMixin",
5744
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5745
+ }
5746
+ },
3652
5747
  {
3653
5748
  "name": "change",
3654
5749
  "type": {
@@ -3747,6 +5842,83 @@
3747
5842
  }
3748
5843
  ]
3749
5844
  },
5845
+ {
5846
+ "kind": "javascript-module",
5847
+ "path": "src/common/controllers/DirectionController.ts",
5848
+ "declarations": [
5849
+ {
5850
+ "kind": "class",
5851
+ "description": "",
5852
+ "name": "DirectionController",
5853
+ "members": [
5854
+ {
5855
+ "kind": "field",
5856
+ "name": "hosts",
5857
+ "privacy": "private",
5858
+ "static": true,
5859
+ "default": "new Set<ReactiveControllerHost>()"
5860
+ },
5861
+ {
5862
+ "kind": "field",
5863
+ "name": "observer",
5864
+ "type": {
5865
+ "text": "MutationObserver | undefined"
5866
+ },
5867
+ "privacy": "private",
5868
+ "static": true
5869
+ },
5870
+ {
5871
+ "kind": "field",
5872
+ "name": "host",
5873
+ "type": {
5874
+ "text": "ReactiveControllerHost"
5875
+ },
5876
+ "privacy": "private",
5877
+ "default": "host"
5878
+ },
5879
+ {
5880
+ "kind": "field",
5881
+ "name": "dir",
5882
+ "type": {
5883
+ "text": "WritingDirection"
5884
+ }
5885
+ },
5886
+ {
5887
+ "kind": "field",
5888
+ "name": "isLTR"
5889
+ },
5890
+ {
5891
+ "kind": "field",
5892
+ "name": "isRTL"
5893
+ },
5894
+ {
5895
+ "kind": "method",
5896
+ "name": "hostConnected"
5897
+ },
5898
+ {
5899
+ "kind": "method",
5900
+ "name": "hostDisconnected"
5901
+ },
5902
+ {
5903
+ "kind": "method",
5904
+ "name": "observe",
5905
+ "privacy": "private",
5906
+ "static": true
5907
+ }
5908
+ ]
5909
+ }
5910
+ ],
5911
+ "exports": [
5912
+ {
5913
+ "kind": "js",
5914
+ "name": "DirectionController",
5915
+ "declaration": {
5916
+ "name": "DirectionController",
5917
+ "module": "src/common/controllers/DirectionController.ts"
5918
+ }
5919
+ }
5920
+ ]
5921
+ },
3750
5922
  {
3751
5923
  "kind": "javascript-module",
3752
5924
  "path": "src/common/controllers/LightDismissController.ts",
@@ -3952,6 +6124,151 @@
3952
6124
  }
3953
6125
  ]
3954
6126
  },
6127
+ {
6128
+ "kind": "javascript-module",
6129
+ "path": "src/common/controllers/SwipeController.ts",
6130
+ "declarations": [
6131
+ {
6132
+ "kind": "class",
6133
+ "description": "",
6134
+ "name": "SwipeController",
6135
+ "members": [
6136
+ {
6137
+ "kind": "field",
6138
+ "name": "host",
6139
+ "type": {
6140
+ "text": "ReactiveElement"
6141
+ },
6142
+ "privacy": "private",
6143
+ "default": "host"
6144
+ },
6145
+ {
6146
+ "kind": "field",
6147
+ "name": "attached",
6148
+ "type": {
6149
+ "text": "boolean"
6150
+ },
6151
+ "privacy": "private",
6152
+ "default": "false"
6153
+ },
6154
+ {
6155
+ "kind": "field",
6156
+ "name": "initialTouchX",
6157
+ "type": {
6158
+ "text": "number"
6159
+ },
6160
+ "privacy": "private",
6161
+ "default": "0"
6162
+ },
6163
+ {
6164
+ "kind": "field",
6165
+ "name": "initialTouchY",
6166
+ "type": {
6167
+ "text": "number"
6168
+ },
6169
+ "privacy": "private",
6170
+ "default": "0"
6171
+ },
6172
+ {
6173
+ "kind": "field",
6174
+ "name": "target",
6175
+ "type": {
6176
+ "text": "() => HTMLElement"
6177
+ },
6178
+ "privacy": "private"
6179
+ },
6180
+ {
6181
+ "kind": "field",
6182
+ "name": "onSwipeEnd",
6183
+ "type": {
6184
+ "text": "SwipeControllerOptions[\"onSwipeEnd\"]"
6185
+ },
6186
+ "privacy": "private"
6187
+ },
6188
+ {
6189
+ "kind": "field",
6190
+ "name": "matchesGesture",
6191
+ "type": {
6192
+ "text": "SwipeControllerOptions[\"matchesGesture\"]"
6193
+ }
6194
+ },
6195
+ {
6196
+ "kind": "method",
6197
+ "name": "hostUpdated"
6198
+ },
6199
+ {
6200
+ "kind": "method",
6201
+ "name": "hostDisconnected"
6202
+ },
6203
+ {
6204
+ "kind": "field",
6205
+ "name": "handleTouchStart",
6206
+ "privacy": "private"
6207
+ },
6208
+ {
6209
+ "kind": "field",
6210
+ "name": "handleTouchMove",
6211
+ "privacy": "private"
6212
+ },
6213
+ {
6214
+ "kind": "field",
6215
+ "name": "handleTouchEnd",
6216
+ "privacy": "private"
6217
+ }
6218
+ ]
6219
+ },
6220
+ {
6221
+ "kind": "function",
6222
+ "name": "isHorizontalSwipe",
6223
+ "parameters": [
6224
+ {
6225
+ "name": "{ distX, distY }",
6226
+ "type": {
6227
+ "text": "SwipeDetails"
6228
+ }
6229
+ }
6230
+ ]
6231
+ },
6232
+ {
6233
+ "kind": "function",
6234
+ "name": "isDownwardsSwipe",
6235
+ "parameters": [
6236
+ {
6237
+ "name": "{ distX, distY }",
6238
+ "type": {
6239
+ "text": "SwipeDetails"
6240
+ }
6241
+ }
6242
+ ]
6243
+ }
6244
+ ],
6245
+ "exports": [
6246
+ {
6247
+ "kind": "js",
6248
+ "name": "SwipeController",
6249
+ "declaration": {
6250
+ "name": "SwipeController",
6251
+ "module": "src/common/controllers/SwipeController.ts"
6252
+ }
6253
+ },
6254
+ {
6255
+ "kind": "js",
6256
+ "name": "isHorizontalSwipe",
6257
+ "declaration": {
6258
+ "name": "isHorizontalSwipe",
6259
+ "module": "src/common/controllers/SwipeController.ts"
6260
+ }
6261
+ },
6262
+ {
6263
+ "kind": "js",
6264
+ "name": "isDownwardsSwipe",
6265
+ "declaration": {
6266
+ "name": "isDownwardsSwipe",
6267
+ "module": "src/common/controllers/SwipeController.ts"
6268
+ }
6269
+ }
6270
+ ]
6271
+ },
3955
6272
  {
3956
6273
  "kind": "javascript-module",
3957
6274
  "path": "src/common/directives/cond.ts",
@@ -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
  }