@nordhealth/components 3.4.0-alpha.0 → 3.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1557 -1557
- package/lib/{AutocompleteMixin-60503685.js → AutocompleteMixin-a98ada34.js} +2 -2
- package/lib/{AutocompleteMixin-60503685.js.map → AutocompleteMixin-a98ada34.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-f7e95d9a.js → Calendar-3fd55b5d.js} +2 -2
- package/lib/{Calendar-f7e95d9a.js.map → Calendar-3fd55b5d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-253ecb24.js → Component-1f694235.js} +2 -2
- package/lib/Component-1f694235.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/{DropdownItem-75a2468a.js → DropdownItem-4a02675f.js} +2 -2
- package/lib/DropdownItem-4a02675f.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-186c69a2.js +2 -0
- package/lib/{FocusableMixin-003e1094.js.map → FocusableMixin-186c69a2.js.map} +1 -1
- package/lib/{FormAssociatedMixin-0638b151.js → FormAssociatedMixin-5fedde68.js} +2 -2
- package/lib/{FormAssociatedMixin-0638b151.js.map → FormAssociatedMixin-5fedde68.js.map} +1 -1
- package/lib/{FormField-0783cb5a.js → FormField-3226fb17.js} +2 -2
- package/lib/FormField-3226fb17.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-87012c5a.js → InputMixin-d50cb41a.js} +2 -2
- package/lib/{InputMixin-87012c5a.js.map → InputMixin-d50cb41a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDomController-5c53b3f4.js → LightDomController-8a770234.js} +2 -2
- package/lib/{LightDomController-5c53b3f4.js.map → LightDomController-8a770234.js.map} +1 -1
- package/lib/Message.js +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/{NavToggle-7e1ba314.js → NavToggle-fbd227e5.js} +2 -2
- package/lib/{NavToggle-7e1ba314.js.map → NavToggle-fbd227e5.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/{NotificationMixin-cea138a7.js → NotificationMixin-5e028561.js} +2 -2
- package/lib/{NotificationMixin-cea138a7.js.map → NotificationMixin-5e028561.js.map} +1 -1
- package/lib/{Popout-1183c22b.js → Popout-6a85e4b6.js} +2 -2
- package/lib/{Popout-1183c22b.js.map → Popout-6a85e4b6.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-bc2098f4.js → SizeMixin-f04ac402.js} +2 -2
- package/lib/{SizeMixin-bc2098f4.js.map → SizeMixin-f04ac402.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-220280e0.js → Sticky-b4e6c315.js} +2 -2
- package/lib/Sticky-b4e6c315.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-b455a6dd.js → TextField-3f901ec8.js} +2 -2
- package/lib/{TextField-b455a6dd.js.map → TextField-3f901ec8.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +5 -5
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-4a0dec4a.js → class-map-c0d8e1e5.js} +2 -2
- package/lib/{class-map-4a0dec4a.js.map → class-map-c0d8e1e5.js.map} +1 -1
- package/lib/{collection-bba319d3.js → collection-498f2b1f.js} +3 -3
- package/lib/{collection-bba319d3.js.map → collection-498f2b1f.js.map} +1 -1
- package/lib/cond-09498763.js +2 -0
- package/lib/{cond-77258def.js.map → cond-09498763.js.map} +1 -1
- package/lib/{if-defined-10508457.js → if-defined-8a007930.js} +2 -2
- package/lib/{if-defined-10508457.js.map → if-defined-8a007930.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-a572d126.js +1 -1
- package/lib/positioning-a572d126.js.map +1 -1
- package/lib/{query-assigned-elements-2f8275b7.js → query-assigned-elements-822fe360.js} +2 -2
- package/lib/query-assigned-elements-822fe360.js.map +1 -0
- package/lib/{ref-f75a30b7.js → ref-6b46e5ea.js} +3 -3
- package/lib/{ref-f75a30b7.js.map → ref-6b46e5ea.js.map} +1 -1
- package/lib/style-map-5b757428.js +7 -0
- package/lib/style-map-5b757428.js.map +1 -0
- package/package.json +2 -2
- package/lib/Component-253ecb24.js.map +0 -1
- package/lib/DropdownItem-75a2468a.js.map +0 -1
- package/lib/FocusableMixin-003e1094.js +0 -2
- package/lib/FormField-0783cb5a.js.map +0 -1
- package/lib/Sticky-220280e0.js.map +0 -1
- package/lib/cond-77258def.js +0 -2
- package/lib/query-assigned-elements-2f8275b7.js.map +0 -1
- package/lib/style-map-75ce20b3.js +0 -7
- package/lib/style-map-75ce20b3.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -828,496 +828,478 @@
|
|
|
828
828
|
},
|
|
829
829
|
{
|
|
830
830
|
"kind": "javascript-module",
|
|
831
|
-
"path": "src/button
|
|
831
|
+
"path": "src/button/Button.ts",
|
|
832
832
|
"declarations": [
|
|
833
833
|
{
|
|
834
834
|
"kind": "class",
|
|
835
|
-
"description": "
|
|
836
|
-
"name": "
|
|
835
|
+
"description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
|
|
836
|
+
"name": "Button",
|
|
837
837
|
"cssProperties": [
|
|
838
838
|
{
|
|
839
839
|
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
840
|
-
"name": "--n-button-
|
|
840
|
+
"name": "--n-button-border-radius",
|
|
841
841
|
"default": "var(--n-border-radius-s)"
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
|
-
"description": "Controls the
|
|
845
|
-
"name": "--n-button-
|
|
844
|
+
"description": "Controls the spacing between items within the button, using our [spacing tokens](/tokens/#space).",
|
|
845
|
+
"name": "--n-button-gap",
|
|
846
|
+
"default": "var(--n-space-s)"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"description": "Controls the overlayed gradient background on the button.",
|
|
850
|
+
"name": "--n-button-gradient",
|
|
851
|
+
"default": "linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.013) 100%))"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"description": "Controls the background color of the button, using our [color tokens](/tokens/#color).",
|
|
855
|
+
"name": "--n-button-background-color",
|
|
856
|
+
"default": "var(--n-color-button)"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"description": "Controls the border color of the button, using our [color tokens](/tokens/#color).",
|
|
860
|
+
"name": "--n-button-border-color",
|
|
861
|
+
"default": "var(--n-color-border-strong)"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"description": "Controls the text alignment for the text in the button.",
|
|
865
|
+
"name": "--n-button-text-align",
|
|
866
|
+
"default": "center"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"description": "Controls the surrounding shadow, using our [box shadow tokens](/tokens/#box-shadow).",
|
|
870
|
+
"name": "--n-button-box-shadow",
|
|
846
871
|
"default": "var(--n-box-shadow)"
|
|
847
|
-
}
|
|
848
|
-
],
|
|
849
|
-
"slots": [
|
|
872
|
+
},
|
|
850
873
|
{
|
|
851
|
-
"description": "
|
|
852
|
-
"name": ""
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
"members": [
|
|
874
|
+
"description": "Controls the color of the text within the button, using our [color tokens](/tokens/#color).",
|
|
875
|
+
"name": "--n-button-color",
|
|
876
|
+
"default": "var(--n-color-text)"
|
|
877
|
+
},
|
|
856
878
|
{
|
|
857
|
-
"
|
|
858
|
-
"name": "
|
|
859
|
-
"
|
|
860
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
861
|
-
},
|
|
862
|
-
"default": "\"horizontal\"",
|
|
863
|
-
"description": "The direction of the button group.",
|
|
864
|
-
"attribute": "direction",
|
|
865
|
-
"reflects": true
|
|
879
|
+
"description": "Controls the inline, or left and right, padding of the button.",
|
|
880
|
+
"name": "--n-button-padding-inline",
|
|
881
|
+
"default": "calc(var(--n-space-m) / 1.2)"
|
|
866
882
|
},
|
|
867
883
|
{
|
|
868
|
-
"
|
|
869
|
-
"name": "
|
|
870
|
-
"
|
|
871
|
-
|
|
872
|
-
},
|
|
873
|
-
"default": "\"group\"",
|
|
874
|
-
"description": "The appropriate role for the containing element.",
|
|
875
|
-
"attribute": "role",
|
|
876
|
-
"reflects": true
|
|
877
|
-
}
|
|
878
|
-
],
|
|
879
|
-
"attributes": [
|
|
884
|
+
"description": "Controls the size of the text within the button, using our [font tokens](/tokens/#font).",
|
|
885
|
+
"name": "--n-button-font-size",
|
|
886
|
+
"default": "var(--n-font-size-m)"
|
|
887
|
+
},
|
|
880
888
|
{
|
|
881
|
-
"
|
|
882
|
-
"
|
|
883
|
-
|
|
884
|
-
},
|
|
885
|
-
"default": "\"horizontal\"",
|
|
886
|
-
"description": "The direction of the button group.",
|
|
887
|
-
"fieldName": "direction"
|
|
889
|
+
"description": "Controls the weight of the text within the button, using our [font tokens](/tokens/#font).",
|
|
890
|
+
"name": "--n-button-font-weight",
|
|
891
|
+
"default": "var(--n-font-weight)"
|
|
888
892
|
},
|
|
889
893
|
{
|
|
890
|
-
"
|
|
891
|
-
"
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
"description": "
|
|
896
|
-
"
|
|
894
|
+
"description": "Controls the minimum block size, or height, of the button using our [spacing tokens](/tokens/#space).",
|
|
895
|
+
"name": "--n-button-min-block-size",
|
|
896
|
+
"default": "var(--n-space-xl)"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"description": "Controls the color of toggle icon that gets rendered when the button is used as a [Dropdown](/components/dropdown/) toggle.",
|
|
900
|
+
"name": "--n-button-toggle-icon-color",
|
|
901
|
+
"default": "var(--n-color-icon)"
|
|
897
902
|
}
|
|
898
903
|
],
|
|
899
|
-
"
|
|
900
|
-
"name": "LitElement",
|
|
901
|
-
"package": "lit"
|
|
902
|
-
},
|
|
903
|
-
"localization": [],
|
|
904
|
-
"status": "new",
|
|
905
|
-
"category": "structure",
|
|
906
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
907
|
-
"examples": [],
|
|
908
|
-
"dependencies": [],
|
|
909
|
-
"tagName": "nord-button-group",
|
|
910
|
-
"customElement": true
|
|
911
|
-
}
|
|
912
|
-
],
|
|
913
|
-
"exports": [
|
|
914
|
-
{
|
|
915
|
-
"kind": "js",
|
|
916
|
-
"name": "default",
|
|
917
|
-
"declaration": {
|
|
918
|
-
"name": "ButtonGroup",
|
|
919
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"kind": "custom-element-definition",
|
|
924
|
-
"name": "nord-button-group",
|
|
925
|
-
"declaration": {
|
|
926
|
-
"name": "ButtonGroup",
|
|
927
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
]
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
"kind": "javascript-module",
|
|
934
|
-
"path": "src/calendar/Calendar.ts",
|
|
935
|
-
"declarations": [
|
|
936
|
-
{
|
|
937
|
-
"kind": "class",
|
|
938
|
-
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
939
|
-
"name": "Calendar",
|
|
940
|
-
"cssProperties": [
|
|
904
|
+
"slots": [
|
|
941
905
|
{
|
|
942
|
-
"description": "
|
|
943
|
-
"name": "
|
|
944
|
-
"default": "var(--n-border-radius)"
|
|
906
|
+
"description": "The button content",
|
|
907
|
+
"name": ""
|
|
945
908
|
},
|
|
946
909
|
{
|
|
947
|
-
"description": "
|
|
948
|
-
"name": "
|
|
949
|
-
|
|
910
|
+
"description": "Used to place content at the start of button text. Typically used for icons.",
|
|
911
|
+
"name": "start"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
915
|
+
"name": "end"
|
|
950
916
|
}
|
|
951
917
|
],
|
|
952
918
|
"members": [
|
|
953
919
|
{
|
|
954
920
|
"kind": "field",
|
|
955
|
-
"name": "
|
|
956
|
-
"
|
|
957
|
-
|
|
958
|
-
},
|
|
959
|
-
"privacy": "private"
|
|
921
|
+
"name": "defaultSlot",
|
|
922
|
+
"privacy": "private",
|
|
923
|
+
"default": "new SlotController(this)"
|
|
960
924
|
},
|
|
961
925
|
{
|
|
962
926
|
"kind": "field",
|
|
963
|
-
"name": "
|
|
964
|
-
"type": {
|
|
965
|
-
"text": "HTMLButtonElement"
|
|
966
|
-
},
|
|
927
|
+
"name": "buttonRef",
|
|
967
928
|
"privacy": "private"
|
|
968
929
|
},
|
|
969
930
|
{
|
|
970
931
|
"kind": "field",
|
|
971
|
-
"name": "
|
|
932
|
+
"name": "events",
|
|
972
933
|
"privacy": "private",
|
|
973
|
-
"default": "new
|
|
934
|
+
"default": "new EventController(this)"
|
|
974
935
|
},
|
|
975
936
|
{
|
|
976
937
|
"kind": "field",
|
|
977
|
-
"name": "
|
|
938
|
+
"name": "lightDom",
|
|
978
939
|
"privacy": "private",
|
|
979
|
-
"default": "new
|
|
940
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
980
941
|
},
|
|
981
942
|
{
|
|
982
943
|
"kind": "field",
|
|
983
|
-
"name": "
|
|
984
|
-
"
|
|
944
|
+
"name": "variant",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
947
|
+
},
|
|
948
|
+
"default": "\"default\"",
|
|
949
|
+
"description": "The style variant of the button.",
|
|
950
|
+
"attribute": "variant",
|
|
951
|
+
"reflects": true
|
|
985
952
|
},
|
|
986
953
|
{
|
|
987
954
|
"kind": "field",
|
|
988
|
-
"name": "
|
|
989
|
-
"
|
|
990
|
-
|
|
955
|
+
"name": "type",
|
|
956
|
+
"type": {
|
|
957
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
958
|
+
},
|
|
959
|
+
"default": "\"submit\"",
|
|
960
|
+
"description": "The type of the button.",
|
|
961
|
+
"attribute": "type",
|
|
962
|
+
"reflects": true
|
|
991
963
|
},
|
|
992
964
|
{
|
|
993
965
|
"kind": "field",
|
|
994
|
-
"name": "
|
|
966
|
+
"name": "size",
|
|
995
967
|
"type": {
|
|
996
|
-
"text": "
|
|
968
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
997
969
|
},
|
|
998
|
-
"
|
|
999
|
-
"description": "
|
|
970
|
+
"default": "\"m\"",
|
|
971
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
972
|
+
"attribute": "size",
|
|
973
|
+
"reflects": true
|
|
1000
974
|
},
|
|
1001
975
|
{
|
|
1002
976
|
"kind": "field",
|
|
1003
|
-
"name": "
|
|
977
|
+
"name": "accessibleExpanded",
|
|
1004
978
|
"type": {
|
|
1005
|
-
"text": "
|
|
979
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1006
980
|
},
|
|
1007
|
-
"privacy": "private"
|
|
981
|
+
"privacy": "private",
|
|
982
|
+
"attribute": "aria-expanded"
|
|
1008
983
|
},
|
|
1009
984
|
{
|
|
1010
985
|
"kind": "field",
|
|
1011
|
-
"name": "
|
|
986
|
+
"name": "accessibleHasPopup",
|
|
1012
987
|
"type": {
|
|
1013
|
-
"text": "
|
|
988
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1014
989
|
},
|
|
1015
|
-
"privacy": "private"
|
|
990
|
+
"privacy": "private",
|
|
991
|
+
"attribute": "aria-haspopup"
|
|
1016
992
|
},
|
|
1017
993
|
{
|
|
1018
994
|
"kind": "field",
|
|
1019
|
-
"name": "
|
|
995
|
+
"name": "href",
|
|
1020
996
|
"type": {
|
|
1021
|
-
"text": "string
|
|
997
|
+
"text": "string | undefined"
|
|
1022
998
|
},
|
|
1023
|
-
"
|
|
999
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1000
|
+
"attribute": "href",
|
|
1001
|
+
"reflects": true
|
|
1024
1002
|
},
|
|
1025
1003
|
{
|
|
1026
1004
|
"kind": "field",
|
|
1027
|
-
"name": "
|
|
1005
|
+
"name": "download",
|
|
1028
1006
|
"type": {
|
|
1029
|
-
"text": "
|
|
1007
|
+
"text": "boolean"
|
|
1030
1008
|
},
|
|
1031
|
-
"
|
|
1009
|
+
"default": "false",
|
|
1010
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1011
|
+
"attribute": "download"
|
|
1032
1012
|
},
|
|
1033
1013
|
{
|
|
1034
1014
|
"kind": "field",
|
|
1035
|
-
"name": "
|
|
1015
|
+
"name": "target",
|
|
1036
1016
|
"type": {
|
|
1037
|
-
"text": "
|
|
1017
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1038
1018
|
},
|
|
1039
|
-
"default": "\"\"",
|
|
1040
|
-
"description": "
|
|
1041
|
-
"attribute": "
|
|
1019
|
+
"default": "\"_self\"",
|
|
1020
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
1021
|
+
"attribute": "target"
|
|
1042
1022
|
},
|
|
1043
1023
|
{
|
|
1044
1024
|
"kind": "field",
|
|
1045
|
-
"name": "
|
|
1025
|
+
"name": "expand",
|
|
1046
1026
|
"type": {
|
|
1047
|
-
"text": "
|
|
1048
|
-
},
|
|
1049
|
-
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1050
|
-
"attribute": "firstDayOfWeek"
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"kind": "field",
|
|
1054
|
-
"name": "min",
|
|
1055
|
-
"type": {
|
|
1056
|
-
"text": "string"
|
|
1057
|
-
},
|
|
1058
|
-
"default": "\"\"",
|
|
1059
|
-
"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.",
|
|
1060
|
-
"attribute": "min"
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"kind": "field",
|
|
1064
|
-
"name": "max",
|
|
1065
|
-
"type": {
|
|
1066
|
-
"text": "string"
|
|
1067
|
-
},
|
|
1068
|
-
"default": "\"\"",
|
|
1069
|
-
"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.",
|
|
1070
|
-
"attribute": "max"
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"kind": "field",
|
|
1074
|
-
"name": "expand",
|
|
1075
|
-
"type": {
|
|
1076
|
-
"text": "boolean"
|
|
1027
|
+
"text": "boolean"
|
|
1077
1028
|
},
|
|
1078
1029
|
"default": "false",
|
|
1079
|
-
"description": "Controls whether the
|
|
1030
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1080
1031
|
"attribute": "expand",
|
|
1081
1032
|
"reflects": true
|
|
1082
1033
|
},
|
|
1083
1034
|
{
|
|
1084
1035
|
"kind": "field",
|
|
1085
|
-
"name": "
|
|
1086
|
-
"type": {
|
|
1087
|
-
"text": "DatePredicate"
|
|
1088
|
-
},
|
|
1089
|
-
"default": "isDateDisabled",
|
|
1090
|
-
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
"kind": "field",
|
|
1094
|
-
"name": "isDateHighlighted",
|
|
1095
|
-
"type": {
|
|
1096
|
-
"text": "(date: Date) => string | boolean"
|
|
1097
|
-
},
|
|
1098
|
-
"default": "isDateHighlighted",
|
|
1099
|
-
"description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
"kind": "field",
|
|
1103
|
-
"name": "activeFocus",
|
|
1036
|
+
"name": "loading",
|
|
1104
1037
|
"type": {
|
|
1105
1038
|
"text": "boolean"
|
|
1106
1039
|
},
|
|
1107
|
-
"
|
|
1108
|
-
"
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
"kind": "field",
|
|
1112
|
-
"name": "focusedDay",
|
|
1113
|
-
"privacy": "private",
|
|
1114
|
-
"default": "new Date()"
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
"kind": "method",
|
|
1118
|
-
"name": "focus",
|
|
1119
|
-
"parameters": [
|
|
1120
|
-
{
|
|
1121
|
-
"name": "options",
|
|
1122
|
-
"optional": true,
|
|
1123
|
-
"type": {
|
|
1124
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1125
|
-
},
|
|
1126
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1127
|
-
}
|
|
1128
|
-
],
|
|
1129
|
-
"description": "Programmatically move focus to the calendar."
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"kind": "method",
|
|
1133
|
-
"name": "handleValueChange",
|
|
1134
|
-
"privacy": "protected"
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"kind": "method",
|
|
1138
|
-
"name": "handleFocusedDayChange",
|
|
1139
|
-
"privacy": "protected"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"kind": "method",
|
|
1143
|
-
"name": "handleLangChange",
|
|
1144
|
-
"privacy": "private"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
"kind": "field",
|
|
1148
|
-
"name": "handleDaySelect",
|
|
1149
|
-
"privacy": "private"
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
"kind": "method",
|
|
1153
|
-
"name": "addDays",
|
|
1154
|
-
"privacy": "private",
|
|
1155
|
-
"parameters": [
|
|
1156
|
-
{
|
|
1157
|
-
"name": "days",
|
|
1158
|
-
"type": {
|
|
1159
|
-
"text": "number"
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
]
|
|
1040
|
+
"default": "false",
|
|
1041
|
+
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
1042
|
+
"attribute": "loading",
|
|
1043
|
+
"reflects": true
|
|
1163
1044
|
},
|
|
1164
1045
|
{
|
|
1165
1046
|
"kind": "method",
|
|
1166
|
-
"name": "
|
|
1047
|
+
"name": "renderLink",
|
|
1167
1048
|
"privacy": "private",
|
|
1168
1049
|
"parameters": [
|
|
1169
1050
|
{
|
|
1170
|
-
"name": "
|
|
1051
|
+
"name": "innards",
|
|
1171
1052
|
"type": {
|
|
1172
|
-
"text": "
|
|
1053
|
+
"text": "TemplateResult"
|
|
1173
1054
|
}
|
|
1174
1055
|
}
|
|
1175
|
-
]
|
|
1056
|
+
],
|
|
1057
|
+
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
1176
1058
|
},
|
|
1177
1059
|
{
|
|
1178
1060
|
"kind": "method",
|
|
1179
|
-
"name": "
|
|
1061
|
+
"name": "renderButton",
|
|
1180
1062
|
"privacy": "private",
|
|
1181
1063
|
"parameters": [
|
|
1182
1064
|
{
|
|
1183
|
-
"name": "
|
|
1065
|
+
"name": "innards",
|
|
1184
1066
|
"type": {
|
|
1185
|
-
"text": "
|
|
1067
|
+
"text": "TemplateResult"
|
|
1186
1068
|
}
|
|
1187
1069
|
}
|
|
1188
1070
|
]
|
|
1189
1071
|
},
|
|
1190
1072
|
{
|
|
1191
1073
|
"kind": "method",
|
|
1192
|
-
"name": "
|
|
1074
|
+
"name": "renderLightDom",
|
|
1193
1075
|
"privacy": "private"
|
|
1194
1076
|
},
|
|
1195
1077
|
{
|
|
1196
|
-
"kind": "
|
|
1197
|
-
"name": "
|
|
1078
|
+
"kind": "field",
|
|
1079
|
+
"name": "handleOuterClick",
|
|
1198
1080
|
"privacy": "private"
|
|
1199
1081
|
},
|
|
1200
1082
|
{
|
|
1201
1083
|
"kind": "method",
|
|
1202
|
-
"name": "
|
|
1203
|
-
"privacy": "private",
|
|
1204
|
-
"parameters": [
|
|
1205
|
-
{
|
|
1206
|
-
"name": "month",
|
|
1207
|
-
"type": {
|
|
1208
|
-
"text": "number"
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
]
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"kind": "method",
|
|
1215
|
-
"name": "setYear",
|
|
1084
|
+
"name": "handleClick",
|
|
1216
1085
|
"privacy": "private",
|
|
1217
1086
|
"parameters": [
|
|
1218
1087
|
{
|
|
1219
|
-
"name": "
|
|
1088
|
+
"name": "e",
|
|
1220
1089
|
"type": {
|
|
1221
|
-
"text": "
|
|
1090
|
+
"text": "Event"
|
|
1222
1091
|
}
|
|
1223
1092
|
}
|
|
1224
1093
|
]
|
|
1225
1094
|
},
|
|
1226
1095
|
{
|
|
1227
1096
|
"kind": "method",
|
|
1228
|
-
"name": "
|
|
1097
|
+
"name": "handleProxyChange",
|
|
1229
1098
|
"privacy": "private",
|
|
1230
1099
|
"parameters": [
|
|
1231
1100
|
{
|
|
1232
|
-
"name": "
|
|
1101
|
+
"name": "e",
|
|
1233
1102
|
"type": {
|
|
1234
|
-
"text": "
|
|
1103
|
+
"text": "Event"
|
|
1235
1104
|
}
|
|
1236
1105
|
}
|
|
1237
|
-
]
|
|
1238
|
-
|
|
1239
|
-
{
|
|
1240
|
-
"kind": "field",
|
|
1241
|
-
"name": "handleMonthSelect",
|
|
1242
|
-
"privacy": "private"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"kind": "field",
|
|
1246
|
-
"name": "handleYearSelect",
|
|
1247
|
-
"privacy": "private"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"kind": "field",
|
|
1251
|
-
"name": "handleNextMonthClick",
|
|
1252
|
-
"privacy": "private"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"kind": "field",
|
|
1256
|
-
"name": "handlePreviousMonthClick",
|
|
1257
|
-
"privacy": "private"
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"kind": "field",
|
|
1261
|
-
"name": "enableActiveFocus",
|
|
1262
|
-
"privacy": "private"
|
|
1106
|
+
],
|
|
1107
|
+
"description": "React/Vue etc may remove our proxy button when updating button text, since they are unaware of its existence.\nSo we listen for a slotchange event, and if the element is no longer connected to the DOM we add it back in."
|
|
1263
1108
|
},
|
|
1264
1109
|
{
|
|
1265
1110
|
"kind": "field",
|
|
1266
|
-
"name": "
|
|
1267
|
-
"privacy": "private"
|
|
1268
|
-
}
|
|
1269
|
-
],
|
|
1270
|
-
"events": [
|
|
1271
|
-
{
|
|
1272
|
-
"name": "nord-focus-date",
|
|
1111
|
+
"name": "disabled",
|
|
1273
1112
|
"type": {
|
|
1274
|
-
"text": "
|
|
1113
|
+
"text": "boolean"
|
|
1275
1114
|
},
|
|
1276
|
-
"
|
|
1115
|
+
"default": "false",
|
|
1116
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1117
|
+
"attribute": "disabled",
|
|
1118
|
+
"reflects": true,
|
|
1119
|
+
"inheritedFrom": {
|
|
1120
|
+
"name": "InputMixin",
|
|
1121
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1122
|
+
}
|
|
1277
1123
|
},
|
|
1278
1124
|
{
|
|
1125
|
+
"kind": "field",
|
|
1126
|
+
"name": "name",
|
|
1279
1127
|
"type": {
|
|
1280
|
-
"text": "
|
|
1128
|
+
"text": "string | undefined"
|
|
1281
1129
|
},
|
|
1282
|
-
"description": "
|
|
1283
|
-
"
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1130
|
+
"description": "The name of the form component.",
|
|
1131
|
+
"attribute": "name",
|
|
1132
|
+
"inheritedFrom": {
|
|
1133
|
+
"name": "InputMixin",
|
|
1134
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1287
1137
|
{
|
|
1138
|
+
"kind": "field",
|
|
1288
1139
|
"name": "value",
|
|
1289
1140
|
"type": {
|
|
1290
1141
|
"text": "string"
|
|
1291
1142
|
},
|
|
1292
1143
|
"default": "\"\"",
|
|
1293
|
-
"description": "The
|
|
1294
|
-
"
|
|
1144
|
+
"description": "The value of the form component.",
|
|
1145
|
+
"attribute": "value",
|
|
1146
|
+
"inheritedFrom": {
|
|
1147
|
+
"name": "InputMixin",
|
|
1148
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1149
|
+
}
|
|
1295
1150
|
},
|
|
1296
1151
|
{
|
|
1297
|
-
"
|
|
1152
|
+
"kind": "field",
|
|
1153
|
+
"name": "formAncestor",
|
|
1298
1154
|
"type": {
|
|
1299
|
-
"text": "
|
|
1155
|
+
"text": "HTMLFormElement | null"
|
|
1300
1156
|
},
|
|
1301
|
-
"
|
|
1302
|
-
"
|
|
1157
|
+
"privacy": "private",
|
|
1158
|
+
"default": "null",
|
|
1159
|
+
"inheritedFrom": {
|
|
1160
|
+
"name": "InputMixin",
|
|
1161
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1162
|
+
}
|
|
1303
1163
|
},
|
|
1304
1164
|
{
|
|
1305
|
-
"
|
|
1165
|
+
"kind": "field",
|
|
1166
|
+
"name": "_formId",
|
|
1306
1167
|
"type": {
|
|
1307
|
-
"text": "string"
|
|
1168
|
+
"text": "string | undefined"
|
|
1308
1169
|
},
|
|
1309
|
-
"
|
|
1310
|
-
"
|
|
1311
|
-
|
|
1170
|
+
"privacy": "protected",
|
|
1171
|
+
"inheritedFrom": {
|
|
1172
|
+
"name": "InputMixin",
|
|
1173
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1174
|
+
}
|
|
1312
1175
|
},
|
|
1313
1176
|
{
|
|
1314
|
-
"
|
|
1177
|
+
"kind": "field",
|
|
1178
|
+
"name": "form",
|
|
1315
1179
|
"type": {
|
|
1316
|
-
"text": "
|
|
1180
|
+
"text": "HTMLFormElement | null"
|
|
1317
1181
|
},
|
|
1318
|
-
"
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1182
|
+
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
1183
|
+
"attribute": "form",
|
|
1184
|
+
"inheritedFrom": {
|
|
1185
|
+
"name": "InputMixin",
|
|
1186
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "field",
|
|
1191
|
+
"name": "focusableRef",
|
|
1192
|
+
"privacy": "protected",
|
|
1193
|
+
"inheritedFrom": {
|
|
1194
|
+
"name": "FocusableMixin",
|
|
1195
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "method",
|
|
1200
|
+
"name": "focus",
|
|
1201
|
+
"parameters": [
|
|
1202
|
+
{
|
|
1203
|
+
"name": "options",
|
|
1204
|
+
"optional": true,
|
|
1205
|
+
"type": {
|
|
1206
|
+
"text": "FocusOptions"
|
|
1207
|
+
},
|
|
1208
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1209
|
+
}
|
|
1210
|
+
],
|
|
1211
|
+
"description": "Programmatically move focus to the component.",
|
|
1212
|
+
"inheritedFrom": {
|
|
1213
|
+
"name": "FocusableMixin",
|
|
1214
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"kind": "method",
|
|
1219
|
+
"name": "blur",
|
|
1220
|
+
"description": "Programmatically remove focus from the component.",
|
|
1221
|
+
"inheritedFrom": {
|
|
1222
|
+
"name": "FocusableMixin",
|
|
1223
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"kind": "method",
|
|
1228
|
+
"name": "click",
|
|
1229
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1230
|
+
"inheritedFrom": {
|
|
1231
|
+
"name": "FocusableMixin",
|
|
1232
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"attributes": [
|
|
1237
|
+
{
|
|
1238
|
+
"name": "variant",
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1241
|
+
},
|
|
1242
|
+
"default": "\"default\"",
|
|
1243
|
+
"description": "The style variant of the button.",
|
|
1244
|
+
"fieldName": "variant"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "type",
|
|
1248
|
+
"type": {
|
|
1249
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1250
|
+
},
|
|
1251
|
+
"default": "\"submit\"",
|
|
1252
|
+
"description": "The type of the button.",
|
|
1253
|
+
"fieldName": "type"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "size",
|
|
1257
|
+
"type": {
|
|
1258
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1259
|
+
},
|
|
1260
|
+
"default": "\"m\"",
|
|
1261
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1262
|
+
"fieldName": "size"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "aria-expanded",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1268
|
+
},
|
|
1269
|
+
"fieldName": "accessibleExpanded"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "aria-haspopup",
|
|
1273
|
+
"type": {
|
|
1274
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1275
|
+
},
|
|
1276
|
+
"fieldName": "accessibleHasPopup"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "href",
|
|
1280
|
+
"type": {
|
|
1281
|
+
"text": "string | undefined"
|
|
1282
|
+
},
|
|
1283
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1284
|
+
"fieldName": "href"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "download",
|
|
1288
|
+
"type": {
|
|
1289
|
+
"text": "boolean"
|
|
1290
|
+
},
|
|
1291
|
+
"default": "false",
|
|
1292
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1293
|
+
"fieldName": "download"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "target",
|
|
1297
|
+
"type": {
|
|
1298
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1299
|
+
},
|
|
1300
|
+
"default": "\"_self\"",
|
|
1301
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
1302
|
+
"fieldName": "target"
|
|
1321
1303
|
},
|
|
1322
1304
|
{
|
|
1323
1305
|
"name": "expand",
|
|
@@ -1325,42 +1307,92 @@
|
|
|
1325
1307
|
"text": "boolean"
|
|
1326
1308
|
},
|
|
1327
1309
|
"default": "false",
|
|
1328
|
-
"description": "Controls whether the
|
|
1310
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1329
1311
|
"fieldName": "expand"
|
|
1330
|
-
}
|
|
1331
|
-
],
|
|
1332
|
-
"superclass": {
|
|
1333
|
-
"name": "LitElement",
|
|
1334
|
-
"package": "lit"
|
|
1335
|
-
},
|
|
1336
|
-
"localization": [
|
|
1312
|
+
},
|
|
1337
1313
|
{
|
|
1338
|
-
"name": "
|
|
1339
|
-
"
|
|
1314
|
+
"name": "loading",
|
|
1315
|
+
"type": {
|
|
1316
|
+
"text": "boolean"
|
|
1317
|
+
},
|
|
1318
|
+
"default": "false",
|
|
1319
|
+
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
1320
|
+
"fieldName": "loading"
|
|
1340
1321
|
},
|
|
1341
1322
|
{
|
|
1342
|
-
"name": "
|
|
1343
|
-
"
|
|
1323
|
+
"name": "disabled",
|
|
1324
|
+
"type": {
|
|
1325
|
+
"text": "boolean"
|
|
1326
|
+
},
|
|
1327
|
+
"default": "false",
|
|
1328
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1329
|
+
"fieldName": "disabled",
|
|
1330
|
+
"inheritedFrom": {
|
|
1331
|
+
"name": "InputMixin",
|
|
1332
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1333
|
+
}
|
|
1344
1334
|
},
|
|
1345
1335
|
{
|
|
1346
|
-
"name": "
|
|
1347
|
-
"
|
|
1336
|
+
"name": "name",
|
|
1337
|
+
"type": {
|
|
1338
|
+
"text": "string | undefined"
|
|
1339
|
+
},
|
|
1340
|
+
"description": "The name of the form component.",
|
|
1341
|
+
"fieldName": "name",
|
|
1342
|
+
"inheritedFrom": {
|
|
1343
|
+
"name": "InputMixin",
|
|
1344
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1345
|
+
}
|
|
1348
1346
|
},
|
|
1349
1347
|
{
|
|
1350
|
-
"name": "
|
|
1351
|
-
"
|
|
1348
|
+
"name": "value",
|
|
1349
|
+
"type": {
|
|
1350
|
+
"text": "string"
|
|
1351
|
+
},
|
|
1352
|
+
"default": "\"\"",
|
|
1353
|
+
"description": "The value of the form component.",
|
|
1354
|
+
"fieldName": "value",
|
|
1355
|
+
"inheritedFrom": {
|
|
1356
|
+
"name": "InputMixin",
|
|
1357
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "form",
|
|
1362
|
+
"type": {
|
|
1363
|
+
"text": "HTMLFormElement | null"
|
|
1364
|
+
},
|
|
1365
|
+
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
1366
|
+
"fieldName": "form",
|
|
1367
|
+
"inheritedFrom": {
|
|
1368
|
+
"name": "InputMixin",
|
|
1369
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
],
|
|
1373
|
+
"mixins": [
|
|
1374
|
+
{
|
|
1375
|
+
"name": "InputMixin",
|
|
1376
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "FocusableMixin",
|
|
1380
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1352
1381
|
}
|
|
1353
1382
|
],
|
|
1383
|
+
"superclass": {
|
|
1384
|
+
"name": "LitElement",
|
|
1385
|
+
"package": "lit"
|
|
1386
|
+
},
|
|
1387
|
+
"localization": [],
|
|
1354
1388
|
"status": "ready",
|
|
1355
|
-
"category": "
|
|
1356
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n-
|
|
1389
|
+
"category": "action",
|
|
1390
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Icon usage in button\n\nIllustrative icons should be always positioned in the `start` slot:\n\n<img src=\"/img/components/button/start-slot.png\" class=\"n-border n-border-radius\" style=\"max-width:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button with icon in start slot\" />\n\nWhen a button is used as a dropdown toggle, the `interface-dropdown-small` icon from [Nordicons](/nordicons/) is automatically placed in the `end` slot:\n\n<img src=\"/img/components/button/dropdown.png\" class=\"n-border n-border-radius\" style=\"max-width:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Dropdown button\" />\n\nEach button size has a recommended icon size. The medium button uses the `s` icon size, the [small button](/components/button/?example=small+buttons) uses the `xs` icon size, and the [large button](/components/button/?example=large+buttons) uses the `m` icon size. The icon will adjust size automatically based on the button size, so you will get the correct behavior by default. However, this can be overridden by explicitly setting a size on the icon.\n\n<img src=\"/img/components/button/icon-sizes.png\" class=\"n-border n-border-radius\" style=\"max-width:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button icon sizes\" />\n\nUse `interface-add-small` icon in the `start` slot for create/add type primary actions in the [header](/components/header/):\n\n<img src=\"/img/components/button/create.png\" class=\"n-border n-border-radius\" style=\"max-width:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Create/add type primary action with icon\" />\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n",
|
|
1357
1391
|
"examples": [],
|
|
1358
1392
|
"dependencies": [
|
|
1359
|
-
"
|
|
1360
|
-
"visually-hidden",
|
|
1361
|
-
"icon"
|
|
1393
|
+
"spinner"
|
|
1362
1394
|
],
|
|
1363
|
-
"tagName": "nord-
|
|
1395
|
+
"tagName": "nord-button",
|
|
1364
1396
|
"customElement": true
|
|
1365
1397
|
}
|
|
1366
1398
|
],
|
|
@@ -1369,56 +1401,102 @@
|
|
|
1369
1401
|
"kind": "js",
|
|
1370
1402
|
"name": "default",
|
|
1371
1403
|
"declaration": {
|
|
1372
|
-
"name": "
|
|
1373
|
-
"module": "src/
|
|
1404
|
+
"name": "Button",
|
|
1405
|
+
"module": "src/button/Button.ts"
|
|
1374
1406
|
}
|
|
1375
1407
|
},
|
|
1376
1408
|
{
|
|
1377
1409
|
"kind": "custom-element-definition",
|
|
1378
|
-
"name": "nord-
|
|
1410
|
+
"name": "nord-button",
|
|
1379
1411
|
"declaration": {
|
|
1380
|
-
"name": "
|
|
1381
|
-
"module": "src/
|
|
1412
|
+
"name": "Button",
|
|
1413
|
+
"module": "src/button/Button.ts"
|
|
1382
1414
|
}
|
|
1383
1415
|
}
|
|
1384
1416
|
]
|
|
1385
1417
|
},
|
|
1386
1418
|
{
|
|
1387
1419
|
"kind": "javascript-module",
|
|
1388
|
-
"path": "src/
|
|
1420
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
1389
1421
|
"declarations": [
|
|
1390
1422
|
{
|
|
1391
1423
|
"kind": "class",
|
|
1392
|
-
"description": "",
|
|
1393
|
-
"name": "
|
|
1394
|
-
"
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1424
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1425
|
+
"name": "ButtonGroup",
|
|
1426
|
+
"cssProperties": [
|
|
1427
|
+
{
|
|
1428
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1429
|
+
"name": "--n-button-group-border-radius",
|
|
1430
|
+
"default": "var(--n-border-radius-s)"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1434
|
+
"name": "--n-button-group-box-shadow",
|
|
1435
|
+
"default": "var(--n-box-shadow)"
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"slots": [
|
|
1439
|
+
{
|
|
1440
|
+
"description": "The button group content",
|
|
1441
|
+
"name": ""
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"members": [
|
|
1445
|
+
{
|
|
1446
|
+
"kind": "field",
|
|
1447
|
+
"name": "direction",
|
|
1448
|
+
"type": {
|
|
1449
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1450
|
+
},
|
|
1451
|
+
"default": "\"horizontal\"",
|
|
1452
|
+
"description": "The direction of the button group.",
|
|
1453
|
+
"attribute": "direction",
|
|
1454
|
+
"reflects": true
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"kind": "field",
|
|
1458
|
+
"name": "role",
|
|
1459
|
+
"type": {
|
|
1460
|
+
"text": "string"
|
|
1461
|
+
},
|
|
1462
|
+
"default": "\"group\"",
|
|
1463
|
+
"description": "The appropriate role for the containing element.",
|
|
1464
|
+
"attribute": "role",
|
|
1465
|
+
"reflects": true
|
|
1466
|
+
}
|
|
1467
|
+
],
|
|
1468
|
+
"attributes": [
|
|
1469
|
+
{
|
|
1470
|
+
"name": "direction",
|
|
1471
|
+
"type": {
|
|
1472
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1473
|
+
},
|
|
1474
|
+
"default": "\"horizontal\"",
|
|
1475
|
+
"description": "The direction of the button group.",
|
|
1476
|
+
"fieldName": "direction"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "role",
|
|
1480
|
+
"type": {
|
|
1481
|
+
"text": "string"
|
|
1482
|
+
},
|
|
1483
|
+
"default": "\"group\"",
|
|
1484
|
+
"description": "The appropriate role for the containing element.",
|
|
1485
|
+
"fieldName": "role"
|
|
1486
|
+
}
|
|
1487
|
+
],
|
|
1488
|
+
"superclass": {
|
|
1489
|
+
"name": "LitElement",
|
|
1490
|
+
"package": "lit"
|
|
1420
1491
|
},
|
|
1421
|
-
"
|
|
1492
|
+
"localization": [],
|
|
1493
|
+
"status": "new",
|
|
1494
|
+
"category": "structure",
|
|
1495
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
1496
|
+
"examples": [],
|
|
1497
|
+
"dependencies": [],
|
|
1498
|
+
"tagName": "nord-button-group",
|
|
1499
|
+
"customElement": true
|
|
1422
1500
|
}
|
|
1423
1501
|
],
|
|
1424
1502
|
"exports": [
|
|
@@ -1426,205 +1504,159 @@
|
|
|
1426
1504
|
"kind": "js",
|
|
1427
1505
|
"name": "default",
|
|
1428
1506
|
"declaration": {
|
|
1429
|
-
"name": "
|
|
1430
|
-
"module": "src/
|
|
1507
|
+
"name": "ButtonGroup",
|
|
1508
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "custom-element-definition",
|
|
1513
|
+
"name": "nord-button-group",
|
|
1514
|
+
"declaration": {
|
|
1515
|
+
"name": "ButtonGroup",
|
|
1516
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
1431
1517
|
}
|
|
1432
1518
|
}
|
|
1433
1519
|
]
|
|
1434
1520
|
},
|
|
1435
1521
|
{
|
|
1436
1522
|
"kind": "javascript-module",
|
|
1437
|
-
"path": "src/
|
|
1523
|
+
"path": "src/calendar/Calendar.ts",
|
|
1438
1524
|
"declarations": [
|
|
1439
1525
|
{
|
|
1440
1526
|
"kind": "class",
|
|
1441
|
-
"description": "
|
|
1442
|
-
"name": "
|
|
1527
|
+
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
1528
|
+
"name": "Calendar",
|
|
1443
1529
|
"cssProperties": [
|
|
1444
1530
|
{
|
|
1445
|
-
"description": "Controls
|
|
1446
|
-
"name": "--n-
|
|
1447
|
-
"default": "var(--n-border-radius
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
"description": "Controls the spacing between items within the button, using our [spacing tokens](/tokens/#space).",
|
|
1451
|
-
"name": "--n-button-gap",
|
|
1452
|
-
"default": "var(--n-space-s)"
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"description": "Controls the overlayed gradient background on the button.",
|
|
1456
|
-
"name": "--n-button-gradient",
|
|
1457
|
-
"default": "linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.013) 100%))"
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
"description": "Controls the background color of the button, using our [color tokens](/tokens/#color).",
|
|
1461
|
-
"name": "--n-button-background-color",
|
|
1462
|
-
"default": "var(--n-color-button)"
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
"description": "Controls the border color of the button, using our [color tokens](/tokens/#color).",
|
|
1466
|
-
"name": "--n-button-border-color",
|
|
1467
|
-
"default": "var(--n-color-border-strong)"
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"description": "Controls the text alignment for the text in the button.",
|
|
1471
|
-
"name": "--n-button-text-align",
|
|
1472
|
-
"default": "center"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
"description": "Controls the surrounding shadow, using our [box shadow tokens](/tokens/#box-shadow).",
|
|
1476
|
-
"name": "--n-button-box-shadow",
|
|
1477
|
-
"default": "var(--n-box-shadow)"
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
"description": "Controls the color of the text within the button, using our [color tokens](/tokens/#color).",
|
|
1481
|
-
"name": "--n-button-color",
|
|
1482
|
-
"default": "var(--n-color-text)"
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"description": "Controls the inline, or left and right, padding of the button.",
|
|
1486
|
-
"name": "--n-button-padding-inline",
|
|
1487
|
-
"default": "calc(var(--n-space-m) / 1.2)"
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"description": "Controls the size of the text within the button, using our [font tokens](/tokens/#font).",
|
|
1491
|
-
"name": "--n-button-font-size",
|
|
1492
|
-
"default": "var(--n-font-size-m)"
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
"description": "Controls the weight of the text within the button, using our [font tokens](/tokens/#font).",
|
|
1496
|
-
"name": "--n-button-font-weight",
|
|
1497
|
-
"default": "var(--n-font-weight)"
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"description": "Controls the minimum block size, or height, of the button using our [spacing tokens](/tokens/#space).",
|
|
1501
|
-
"name": "--n-button-min-block-size",
|
|
1502
|
-
"default": "var(--n-space-xl)"
|
|
1531
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1532
|
+
"name": "--n-calendar-border-radius",
|
|
1533
|
+
"default": "var(--n-border-radius)"
|
|
1503
1534
|
},
|
|
1504
1535
|
{
|
|
1505
|
-
"description": "Controls the
|
|
1506
|
-
"name": "--n-
|
|
1507
|
-
"default": "var(--n-
|
|
1536
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1537
|
+
"name": "--n-calendar-box-shadow",
|
|
1538
|
+
"default": "var(--n-box-shadow-popout)"
|
|
1508
1539
|
}
|
|
1509
1540
|
],
|
|
1510
|
-
"
|
|
1541
|
+
"members": [
|
|
1511
1542
|
{
|
|
1512
|
-
"
|
|
1513
|
-
"name": ""
|
|
1543
|
+
"kind": "field",
|
|
1544
|
+
"name": "monthSelectNode",
|
|
1545
|
+
"type": {
|
|
1546
|
+
"text": "HTMLElement"
|
|
1547
|
+
},
|
|
1548
|
+
"privacy": "private"
|
|
1514
1549
|
},
|
|
1515
1550
|
{
|
|
1516
|
-
"
|
|
1517
|
-
"name": "
|
|
1551
|
+
"kind": "field",
|
|
1552
|
+
"name": "focusedDayNode",
|
|
1553
|
+
"type": {
|
|
1554
|
+
"text": "HTMLButtonElement"
|
|
1555
|
+
},
|
|
1556
|
+
"privacy": "private"
|
|
1518
1557
|
},
|
|
1519
1558
|
{
|
|
1520
|
-
"
|
|
1521
|
-
"name": "
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1559
|
+
"kind": "field",
|
|
1560
|
+
"name": "direction",
|
|
1561
|
+
"privacy": "private",
|
|
1562
|
+
"default": "new DirectionController(this)"
|
|
1563
|
+
},
|
|
1525
1564
|
{
|
|
1526
1565
|
"kind": "field",
|
|
1527
|
-
"name": "
|
|
1566
|
+
"name": "swipe",
|
|
1528
1567
|
"privacy": "private",
|
|
1529
|
-
"default": "new
|
|
1568
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
1530
1569
|
},
|
|
1531
1570
|
{
|
|
1532
1571
|
"kind": "field",
|
|
1533
|
-
"name": "
|
|
1572
|
+
"name": "shortcuts",
|
|
1534
1573
|
"privacy": "private"
|
|
1535
1574
|
},
|
|
1536
1575
|
{
|
|
1537
1576
|
"kind": "field",
|
|
1538
|
-
"name": "
|
|
1577
|
+
"name": "localize",
|
|
1539
1578
|
"privacy": "private",
|
|
1540
|
-
"default": "new
|
|
1579
|
+
"default": "new LocalizeController<\"nord-calendar\">(this, {\n onLangChange: () => this.handleLangChange(),\n })"
|
|
1541
1580
|
},
|
|
1542
1581
|
{
|
|
1543
1582
|
"kind": "field",
|
|
1544
|
-
"name": "
|
|
1583
|
+
"name": "dateFormatShort",
|
|
1584
|
+
"type": {
|
|
1585
|
+
"text": "Intl.DateTimeFormat"
|
|
1586
|
+
},
|
|
1545
1587
|
"privacy": "private",
|
|
1546
|
-
"
|
|
1588
|
+
"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"
|
|
1547
1589
|
},
|
|
1548
1590
|
{
|
|
1549
1591
|
"kind": "field",
|
|
1550
|
-
"name": "
|
|
1592
|
+
"name": "monthNames",
|
|
1551
1593
|
"type": {
|
|
1552
|
-
"text": "
|
|
1594
|
+
"text": "string[]"
|
|
1553
1595
|
},
|
|
1554
|
-
"
|
|
1555
|
-
"description": "The style variant of the button.",
|
|
1556
|
-
"attribute": "variant",
|
|
1557
|
-
"reflects": true
|
|
1596
|
+
"privacy": "private"
|
|
1558
1597
|
},
|
|
1559
1598
|
{
|
|
1560
1599
|
"kind": "field",
|
|
1561
|
-
"name": "
|
|
1600
|
+
"name": "monthNamesShort",
|
|
1562
1601
|
"type": {
|
|
1563
|
-
"text": "
|
|
1602
|
+
"text": "string[]"
|
|
1564
1603
|
},
|
|
1565
|
-
"
|
|
1566
|
-
"description": "The type of the button.",
|
|
1567
|
-
"attribute": "type",
|
|
1568
|
-
"reflects": true
|
|
1604
|
+
"privacy": "private"
|
|
1569
1605
|
},
|
|
1570
1606
|
{
|
|
1571
1607
|
"kind": "field",
|
|
1572
|
-
"name": "
|
|
1608
|
+
"name": "dayNames",
|
|
1573
1609
|
"type": {
|
|
1574
|
-
"text": "
|
|
1610
|
+
"text": "string[]"
|
|
1575
1611
|
},
|
|
1576
|
-
"
|
|
1577
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1578
|
-
"attribute": "size",
|
|
1579
|
-
"reflects": true
|
|
1612
|
+
"privacy": "private"
|
|
1580
1613
|
},
|
|
1581
1614
|
{
|
|
1582
1615
|
"kind": "field",
|
|
1583
|
-
"name": "
|
|
1616
|
+
"name": "dayNamesShort",
|
|
1584
1617
|
"type": {
|
|
1585
|
-
"text": "
|
|
1618
|
+
"text": "string[]"
|
|
1586
1619
|
},
|
|
1587
|
-
"privacy": "private"
|
|
1588
|
-
"attribute": "aria-expanded"
|
|
1620
|
+
"privacy": "private"
|
|
1589
1621
|
},
|
|
1590
1622
|
{
|
|
1591
1623
|
"kind": "field",
|
|
1592
|
-
"name": "
|
|
1624
|
+
"name": "value",
|
|
1593
1625
|
"type": {
|
|
1594
|
-
"text": "
|
|
1626
|
+
"text": "string"
|
|
1595
1627
|
},
|
|
1596
|
-
"
|
|
1597
|
-
"
|
|
1628
|
+
"default": "\"\"",
|
|
1629
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1630
|
+
"attribute": "value"
|
|
1598
1631
|
},
|
|
1599
1632
|
{
|
|
1600
1633
|
"kind": "field",
|
|
1601
|
-
"name": "
|
|
1634
|
+
"name": "firstDayOfWeek",
|
|
1602
1635
|
"type": {
|
|
1603
|
-
"text": "
|
|
1636
|
+
"text": "DaysOfWeek"
|
|
1604
1637
|
},
|
|
1605
|
-
"description": "
|
|
1606
|
-
"attribute": "
|
|
1607
|
-
"reflects": true
|
|
1638
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1639
|
+
"attribute": "firstDayOfWeek"
|
|
1608
1640
|
},
|
|
1609
1641
|
{
|
|
1610
1642
|
"kind": "field",
|
|
1611
|
-
"name": "
|
|
1643
|
+
"name": "min",
|
|
1612
1644
|
"type": {
|
|
1613
|
-
"text": "
|
|
1645
|
+
"text": "string"
|
|
1614
1646
|
},
|
|
1615
|
-
"default": "
|
|
1616
|
-
"description": "
|
|
1617
|
-
"attribute": "
|
|
1647
|
+
"default": "\"\"",
|
|
1648
|
+
"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.",
|
|
1649
|
+
"attribute": "min"
|
|
1618
1650
|
},
|
|
1619
1651
|
{
|
|
1620
1652
|
"kind": "field",
|
|
1621
|
-
"name": "
|
|
1653
|
+
"name": "max",
|
|
1622
1654
|
"type": {
|
|
1623
|
-
"text": "
|
|
1655
|
+
"text": "string"
|
|
1624
1656
|
},
|
|
1625
|
-
"default": "\"
|
|
1626
|
-
"description": "
|
|
1627
|
-
"attribute": "
|
|
1657
|
+
"default": "\"\"",
|
|
1658
|
+
"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.",
|
|
1659
|
+
"attribute": "max"
|
|
1628
1660
|
},
|
|
1629
1661
|
{
|
|
1630
1662
|
"kind": "field",
|
|
@@ -1633,357 +1665,450 @@
|
|
|
1633
1665
|
"text": "boolean"
|
|
1634
1666
|
},
|
|
1635
1667
|
"default": "false",
|
|
1636
|
-
"description": "Controls whether the
|
|
1668
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1637
1669
|
"attribute": "expand",
|
|
1638
1670
|
"reflects": true
|
|
1639
1671
|
},
|
|
1640
1672
|
{
|
|
1641
1673
|
"kind": "field",
|
|
1642
|
-
"name": "
|
|
1674
|
+
"name": "isDateDisabled",
|
|
1675
|
+
"type": {
|
|
1676
|
+
"text": "DatePredicate"
|
|
1677
|
+
},
|
|
1678
|
+
"default": "isDateDisabled",
|
|
1679
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"kind": "field",
|
|
1683
|
+
"name": "isDateHighlighted",
|
|
1684
|
+
"type": {
|
|
1685
|
+
"text": "(date: Date) => string | boolean"
|
|
1686
|
+
},
|
|
1687
|
+
"default": "isDateHighlighted",
|
|
1688
|
+
"description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"kind": "field",
|
|
1692
|
+
"name": "activeFocus",
|
|
1643
1693
|
"type": {
|
|
1644
1694
|
"text": "boolean"
|
|
1645
1695
|
},
|
|
1646
|
-
"
|
|
1647
|
-
"
|
|
1648
|
-
|
|
1649
|
-
|
|
1696
|
+
"privacy": "private",
|
|
1697
|
+
"default": "false"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "field",
|
|
1701
|
+
"name": "focusedDay",
|
|
1702
|
+
"privacy": "private",
|
|
1703
|
+
"default": "new Date()"
|
|
1650
1704
|
},
|
|
1651
1705
|
{
|
|
1652
1706
|
"kind": "method",
|
|
1653
|
-
"name": "
|
|
1707
|
+
"name": "focus",
|
|
1708
|
+
"parameters": [
|
|
1709
|
+
{
|
|
1710
|
+
"name": "options",
|
|
1711
|
+
"optional": true,
|
|
1712
|
+
"type": {
|
|
1713
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1714
|
+
},
|
|
1715
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1716
|
+
}
|
|
1717
|
+
],
|
|
1718
|
+
"description": "Programmatically move focus to the calendar."
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"kind": "method",
|
|
1722
|
+
"name": "handleValueChange",
|
|
1723
|
+
"privacy": "protected"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "method",
|
|
1727
|
+
"name": "handleFocusedDayChange",
|
|
1728
|
+
"privacy": "protected"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"kind": "method",
|
|
1732
|
+
"name": "handleLangChange",
|
|
1733
|
+
"privacy": "private"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"kind": "field",
|
|
1737
|
+
"name": "handleDaySelect",
|
|
1738
|
+
"privacy": "private"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"kind": "method",
|
|
1742
|
+
"name": "addDays",
|
|
1654
1743
|
"privacy": "private",
|
|
1655
1744
|
"parameters": [
|
|
1656
1745
|
{
|
|
1657
|
-
"name": "
|
|
1746
|
+
"name": "days",
|
|
1658
1747
|
"type": {
|
|
1659
|
-
"text": "
|
|
1748
|
+
"text": "number"
|
|
1660
1749
|
}
|
|
1661
1750
|
}
|
|
1662
|
-
]
|
|
1663
|
-
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
1751
|
+
]
|
|
1664
1752
|
},
|
|
1665
1753
|
{
|
|
1666
1754
|
"kind": "method",
|
|
1667
|
-
"name": "
|
|
1755
|
+
"name": "addMonths",
|
|
1668
1756
|
"privacy": "private",
|
|
1669
1757
|
"parameters": [
|
|
1670
1758
|
{
|
|
1671
|
-
"name": "
|
|
1759
|
+
"name": "months",
|
|
1672
1760
|
"type": {
|
|
1673
|
-
"text": "
|
|
1761
|
+
"text": "number"
|
|
1674
1762
|
}
|
|
1675
1763
|
}
|
|
1676
1764
|
]
|
|
1677
1765
|
},
|
|
1678
1766
|
{
|
|
1679
1767
|
"kind": "method",
|
|
1680
|
-
"name": "
|
|
1768
|
+
"name": "addYears",
|
|
1769
|
+
"privacy": "private",
|
|
1770
|
+
"parameters": [
|
|
1771
|
+
{
|
|
1772
|
+
"name": "years",
|
|
1773
|
+
"type": {
|
|
1774
|
+
"text": "number"
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
]
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"kind": "method",
|
|
1781
|
+
"name": "startOfWeek",
|
|
1681
1782
|
"privacy": "private"
|
|
1682
1783
|
},
|
|
1683
1784
|
{
|
|
1684
|
-
"kind": "
|
|
1685
|
-
"name": "
|
|
1785
|
+
"kind": "method",
|
|
1786
|
+
"name": "endOfWeek",
|
|
1686
1787
|
"privacy": "private"
|
|
1687
1788
|
},
|
|
1688
1789
|
{
|
|
1689
1790
|
"kind": "method",
|
|
1690
|
-
"name": "
|
|
1791
|
+
"name": "setMonth",
|
|
1691
1792
|
"privacy": "private",
|
|
1692
1793
|
"parameters": [
|
|
1693
1794
|
{
|
|
1694
|
-
"name": "
|
|
1795
|
+
"name": "month",
|
|
1695
1796
|
"type": {
|
|
1696
|
-
"text": "
|
|
1797
|
+
"text": "number"
|
|
1697
1798
|
}
|
|
1698
1799
|
}
|
|
1699
1800
|
]
|
|
1700
1801
|
},
|
|
1701
1802
|
{
|
|
1702
1803
|
"kind": "method",
|
|
1703
|
-
"name": "
|
|
1804
|
+
"name": "setYear",
|
|
1704
1805
|
"privacy": "private",
|
|
1705
1806
|
"parameters": [
|
|
1706
1807
|
{
|
|
1707
|
-
"name": "
|
|
1808
|
+
"name": "year",
|
|
1708
1809
|
"type": {
|
|
1709
|
-
"text": "
|
|
1810
|
+
"text": "number"
|
|
1710
1811
|
}
|
|
1711
1812
|
}
|
|
1712
|
-
]
|
|
1713
|
-
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"kind": "method",
|
|
1817
|
+
"name": "setFocusedDay",
|
|
1818
|
+
"privacy": "private",
|
|
1819
|
+
"parameters": [
|
|
1820
|
+
{
|
|
1821
|
+
"name": "day",
|
|
1822
|
+
"type": {
|
|
1823
|
+
"text": "Date"
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
]
|
|
1714
1827
|
},
|
|
1715
1828
|
{
|
|
1716
1829
|
"kind": "field",
|
|
1717
|
-
"name": "
|
|
1718
|
-
"
|
|
1719
|
-
"text": "boolean"
|
|
1720
|
-
},
|
|
1721
|
-
"default": "false",
|
|
1722
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1723
|
-
"attribute": "disabled",
|
|
1724
|
-
"reflects": true,
|
|
1725
|
-
"inheritedFrom": {
|
|
1726
|
-
"name": "InputMixin",
|
|
1727
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1728
|
-
}
|
|
1830
|
+
"name": "handleMonthSelect",
|
|
1831
|
+
"privacy": "private"
|
|
1729
1832
|
},
|
|
1730
1833
|
{
|
|
1731
1834
|
"kind": "field",
|
|
1732
|
-
"name": "
|
|
1835
|
+
"name": "handleYearSelect",
|
|
1836
|
+
"privacy": "private"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"kind": "field",
|
|
1840
|
+
"name": "handleNextMonthClick",
|
|
1841
|
+
"privacy": "private"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"kind": "field",
|
|
1845
|
+
"name": "handlePreviousMonthClick",
|
|
1846
|
+
"privacy": "private"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"kind": "field",
|
|
1850
|
+
"name": "enableActiveFocus",
|
|
1851
|
+
"privacy": "private"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"kind": "field",
|
|
1855
|
+
"name": "disableActiveFocus",
|
|
1856
|
+
"privacy": "private"
|
|
1857
|
+
}
|
|
1858
|
+
],
|
|
1859
|
+
"events": [
|
|
1860
|
+
{
|
|
1861
|
+
"name": "nord-focus-date",
|
|
1733
1862
|
"type": {
|
|
1734
|
-
"text": "
|
|
1863
|
+
"text": "DateSelectEvent"
|
|
1735
1864
|
},
|
|
1736
|
-
"description": "
|
|
1737
|
-
"attribute": "name",
|
|
1738
|
-
"inheritedFrom": {
|
|
1739
|
-
"name": "InputMixin",
|
|
1740
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1741
|
-
}
|
|
1865
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
1742
1866
|
},
|
|
1743
1867
|
{
|
|
1744
|
-
"
|
|
1868
|
+
"type": {
|
|
1869
|
+
"text": "DateSelectEvent"
|
|
1870
|
+
},
|
|
1871
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
1872
|
+
"name": "change"
|
|
1873
|
+
}
|
|
1874
|
+
],
|
|
1875
|
+
"attributes": [
|
|
1876
|
+
{
|
|
1745
1877
|
"name": "value",
|
|
1746
1878
|
"type": {
|
|
1747
1879
|
"text": "string"
|
|
1748
1880
|
},
|
|
1749
1881
|
"default": "\"\"",
|
|
1750
|
-
"description": "The
|
|
1751
|
-
"
|
|
1752
|
-
"inheritedFrom": {
|
|
1753
|
-
"name": "InputMixin",
|
|
1754
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1755
|
-
}
|
|
1882
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1883
|
+
"fieldName": "value"
|
|
1756
1884
|
},
|
|
1757
1885
|
{
|
|
1758
|
-
"
|
|
1759
|
-
"name": "formAncestor",
|
|
1886
|
+
"name": "firstDayOfWeek",
|
|
1760
1887
|
"type": {
|
|
1761
|
-
"text": "
|
|
1888
|
+
"text": "DaysOfWeek"
|
|
1762
1889
|
},
|
|
1763
|
-
"
|
|
1764
|
-
"
|
|
1765
|
-
"inheritedFrom": {
|
|
1766
|
-
"name": "InputMixin",
|
|
1767
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1768
|
-
}
|
|
1890
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1891
|
+
"fieldName": "firstDayOfWeek"
|
|
1769
1892
|
},
|
|
1770
1893
|
{
|
|
1771
|
-
"
|
|
1772
|
-
"name": "_formId",
|
|
1894
|
+
"name": "min",
|
|
1773
1895
|
"type": {
|
|
1774
|
-
"text": "string
|
|
1896
|
+
"text": "string"
|
|
1775
1897
|
},
|
|
1776
|
-
"
|
|
1777
|
-
"
|
|
1778
|
-
|
|
1779
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1780
|
-
}
|
|
1898
|
+
"default": "\"\"",
|
|
1899
|
+
"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.",
|
|
1900
|
+
"fieldName": "min"
|
|
1781
1901
|
},
|
|
1782
1902
|
{
|
|
1783
|
-
"
|
|
1784
|
-
"name": "form",
|
|
1903
|
+
"name": "max",
|
|
1785
1904
|
"type": {
|
|
1786
|
-
"text": "
|
|
1905
|
+
"text": "string"
|
|
1787
1906
|
},
|
|
1788
|
-
"
|
|
1789
|
-
"
|
|
1790
|
-
"
|
|
1791
|
-
"name": "InputMixin",
|
|
1792
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1793
|
-
}
|
|
1794
|
-
},
|
|
1795
|
-
{
|
|
1796
|
-
"kind": "field",
|
|
1797
|
-
"name": "focusableRef",
|
|
1798
|
-
"privacy": "protected",
|
|
1799
|
-
"inheritedFrom": {
|
|
1800
|
-
"name": "FocusableMixin",
|
|
1801
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1802
|
-
}
|
|
1803
|
-
},
|
|
1804
|
-
{
|
|
1805
|
-
"kind": "method",
|
|
1806
|
-
"name": "focus",
|
|
1807
|
-
"parameters": [
|
|
1808
|
-
{
|
|
1809
|
-
"name": "options",
|
|
1810
|
-
"optional": true,
|
|
1811
|
-
"type": {
|
|
1812
|
-
"text": "FocusOptions"
|
|
1813
|
-
},
|
|
1814
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1815
|
-
}
|
|
1816
|
-
],
|
|
1817
|
-
"description": "Programmatically move focus to the component.",
|
|
1818
|
-
"inheritedFrom": {
|
|
1819
|
-
"name": "FocusableMixin",
|
|
1820
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1821
|
-
}
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
"kind": "method",
|
|
1825
|
-
"name": "blur",
|
|
1826
|
-
"description": "Programmatically remove focus from the component.",
|
|
1827
|
-
"inheritedFrom": {
|
|
1828
|
-
"name": "FocusableMixin",
|
|
1829
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1830
|
-
}
|
|
1907
|
+
"default": "\"\"",
|
|
1908
|
+
"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.",
|
|
1909
|
+
"fieldName": "max"
|
|
1831
1910
|
},
|
|
1832
1911
|
{
|
|
1833
|
-
"
|
|
1834
|
-
"
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1912
|
+
"name": "expand",
|
|
1913
|
+
"type": {
|
|
1914
|
+
"text": "boolean"
|
|
1915
|
+
},
|
|
1916
|
+
"default": "false",
|
|
1917
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1918
|
+
"fieldName": "expand"
|
|
1840
1919
|
}
|
|
1841
1920
|
],
|
|
1842
|
-
"
|
|
1921
|
+
"superclass": {
|
|
1922
|
+
"name": "LitElement",
|
|
1923
|
+
"package": "lit"
|
|
1924
|
+
},
|
|
1925
|
+
"localization": [
|
|
1843
1926
|
{
|
|
1844
|
-
"name": "
|
|
1845
|
-
"
|
|
1846
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1847
|
-
},
|
|
1848
|
-
"default": "\"default\"",
|
|
1849
|
-
"description": "The style variant of the button.",
|
|
1850
|
-
"fieldName": "variant"
|
|
1927
|
+
"name": "prevMonthLabel",
|
|
1928
|
+
"description": "Accessible label for the previous month button."
|
|
1851
1929
|
},
|
|
1852
1930
|
{
|
|
1853
|
-
"name": "
|
|
1854
|
-
"
|
|
1855
|
-
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1856
|
-
},
|
|
1857
|
-
"default": "\"submit\"",
|
|
1858
|
-
"description": "The type of the button.",
|
|
1859
|
-
"fieldName": "type"
|
|
1931
|
+
"name": "nextMonthLabel",
|
|
1932
|
+
"description": "Accessible label for the next month button."
|
|
1860
1933
|
},
|
|
1861
1934
|
{
|
|
1862
|
-
"name": "
|
|
1863
|
-
"
|
|
1864
|
-
"text": "\"s\" | \"m\" | \"l\""
|
|
1865
|
-
},
|
|
1866
|
-
"default": "\"m\"",
|
|
1867
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1868
|
-
"fieldName": "size"
|
|
1935
|
+
"name": "monthSelectLabel",
|
|
1936
|
+
"description": "Accessible label for the month select."
|
|
1869
1937
|
},
|
|
1870
1938
|
{
|
|
1871
|
-
"name": "
|
|
1872
|
-
"
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1939
|
+
"name": "yearSelectLabel",
|
|
1940
|
+
"description": "Accessible label for the year select."
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
"status": "ready",
|
|
1944
|
+
"category": "list",
|
|
1945
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n",
|
|
1946
|
+
"examples": [],
|
|
1947
|
+
"dependencies": [
|
|
1948
|
+
"button",
|
|
1949
|
+
"visually-hidden",
|
|
1950
|
+
"icon"
|
|
1951
|
+
],
|
|
1952
|
+
"tagName": "nord-calendar",
|
|
1953
|
+
"customElement": true
|
|
1954
|
+
}
|
|
1955
|
+
],
|
|
1956
|
+
"exports": [
|
|
1957
|
+
{
|
|
1958
|
+
"kind": "js",
|
|
1959
|
+
"name": "default",
|
|
1960
|
+
"declaration": {
|
|
1961
|
+
"name": "Calendar",
|
|
1962
|
+
"module": "src/calendar/Calendar.ts"
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"kind": "custom-element-definition",
|
|
1967
|
+
"name": "nord-calendar",
|
|
1968
|
+
"declaration": {
|
|
1969
|
+
"name": "Calendar",
|
|
1970
|
+
"module": "src/calendar/Calendar.ts"
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
]
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"kind": "javascript-module",
|
|
1977
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1978
|
+
"declarations": [
|
|
1979
|
+
{
|
|
1980
|
+
"kind": "class",
|
|
1981
|
+
"description": "",
|
|
1982
|
+
"name": "DateSelectEvent",
|
|
1983
|
+
"superclass": {
|
|
1984
|
+
"name": "NordEvent",
|
|
1985
|
+
"module": "/src/common/events.js"
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
],
|
|
1989
|
+
"exports": [
|
|
1990
|
+
{
|
|
1991
|
+
"kind": "js",
|
|
1992
|
+
"name": "DateSelectEvent",
|
|
1993
|
+
"declaration": {
|
|
1994
|
+
"name": "DateSelectEvent",
|
|
1995
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"kind": "javascript-module",
|
|
2002
|
+
"path": "src/calendar/localization.ts",
|
|
2003
|
+
"declarations": [
|
|
2004
|
+
{
|
|
2005
|
+
"kind": "variable",
|
|
2006
|
+
"name": "calendarLocalization",
|
|
2007
|
+
"type": {
|
|
2008
|
+
"text": "object"
|
|
2009
|
+
},
|
|
2010
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
2011
|
+
}
|
|
2012
|
+
],
|
|
2013
|
+
"exports": [
|
|
2014
|
+
{
|
|
2015
|
+
"kind": "js",
|
|
2016
|
+
"name": "default",
|
|
2017
|
+
"declaration": {
|
|
2018
|
+
"name": "calendarLocalization",
|
|
2019
|
+
"module": "src/calendar/localization.ts"
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"kind": "javascript-module",
|
|
2026
|
+
"path": "src/card/Card.ts",
|
|
2027
|
+
"declarations": [
|
|
2028
|
+
{
|
|
2029
|
+
"kind": "class",
|
|
2030
|
+
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2031
|
+
"name": "Card",
|
|
2032
|
+
"cssProperties": [
|
|
1877
2033
|
{
|
|
1878
|
-
"
|
|
1879
|
-
"
|
|
1880
|
-
|
|
1881
|
-
},
|
|
1882
|
-
"fieldName": "accessibleHasPopup"
|
|
2034
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2035
|
+
"name": "--n-card-border-radius",
|
|
2036
|
+
"default": "var(--n-border-radius)"
|
|
1883
2037
|
},
|
|
1884
2038
|
{
|
|
1885
|
-
"
|
|
1886
|
-
"
|
|
1887
|
-
|
|
1888
|
-
},
|
|
1889
|
-
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1890
|
-
"fieldName": "href"
|
|
2039
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2040
|
+
"name": "--n-card-box-shadow",
|
|
2041
|
+
"default": "var(--n-box-shadow-popout)"
|
|
1891
2042
|
},
|
|
1892
2043
|
{
|
|
1893
|
-
"
|
|
1894
|
-
"
|
|
1895
|
-
|
|
1896
|
-
},
|
|
1897
|
-
"default": "false",
|
|
1898
|
-
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1899
|
-
"fieldName": "download"
|
|
2044
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2045
|
+
"name": "--n-card-padding",
|
|
2046
|
+
"default": "var(--n-space-m)"
|
|
1900
2047
|
},
|
|
1901
2048
|
{
|
|
1902
|
-
"
|
|
1903
|
-
"
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
"fieldName": "target"
|
|
1909
|
-
},
|
|
2049
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2050
|
+
"name": "--n-card-slot-padding",
|
|
2051
|
+
"default": "var(--n-space-m)"
|
|
2052
|
+
}
|
|
2053
|
+
],
|
|
2054
|
+
"slots": [
|
|
1910
2055
|
{
|
|
1911
|
-
"
|
|
1912
|
-
"
|
|
1913
|
-
"text": "boolean"
|
|
1914
|
-
},
|
|
1915
|
-
"default": "false",
|
|
1916
|
-
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1917
|
-
"fieldName": "expand"
|
|
2056
|
+
"description": "The card content.",
|
|
2057
|
+
"name": ""
|
|
1918
2058
|
},
|
|
1919
2059
|
{
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
1922
|
-
"text": "boolean"
|
|
1923
|
-
},
|
|
1924
|
-
"default": "false",
|
|
1925
|
-
"description": "Controls whether the button is in loading state. Please note that the spinner\nis hidden from assistive technologies, so you need to make sure to announce\nthe loading state to e.g. screen reader users. We also recommend disabling\nall user interactions on the button itself while in loading state.",
|
|
1926
|
-
"fieldName": "loading"
|
|
2060
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2061
|
+
"name": "header"
|
|
1927
2062
|
},
|
|
1928
2063
|
{
|
|
1929
|
-
"
|
|
1930
|
-
"
|
|
1931
|
-
"text": "boolean"
|
|
1932
|
-
},
|
|
1933
|
-
"default": "false",
|
|
1934
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1935
|
-
"fieldName": "disabled",
|
|
1936
|
-
"inheritedFrom": {
|
|
1937
|
-
"name": "InputMixin",
|
|
1938
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1939
|
-
}
|
|
2064
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2065
|
+
"name": "header-end"
|
|
1940
2066
|
},
|
|
1941
2067
|
{
|
|
1942
|
-
"
|
|
1943
|
-
"
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
"fieldName": "name",
|
|
1948
|
-
"inheritedFrom": {
|
|
1949
|
-
"name": "InputMixin",
|
|
1950
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1951
|
-
}
|
|
1952
|
-
},
|
|
2068
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2069
|
+
"name": "footer"
|
|
2070
|
+
}
|
|
2071
|
+
],
|
|
2072
|
+
"members": [
|
|
1953
2073
|
{
|
|
1954
|
-
"
|
|
1955
|
-
"
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
"default": "\"\"",
|
|
1959
|
-
"description": "The value of the form component.",
|
|
1960
|
-
"fieldName": "value",
|
|
1961
|
-
"inheritedFrom": {
|
|
1962
|
-
"name": "InputMixin",
|
|
1963
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1964
|
-
}
|
|
2074
|
+
"kind": "field",
|
|
2075
|
+
"name": "headerSlot",
|
|
2076
|
+
"privacy": "private",
|
|
2077
|
+
"default": "new SlotController(this, \"header\")"
|
|
1965
2078
|
},
|
|
1966
2079
|
{
|
|
1967
|
-
"
|
|
2080
|
+
"kind": "field",
|
|
2081
|
+
"name": "headerEndSlot",
|
|
2082
|
+
"privacy": "private",
|
|
2083
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"kind": "field",
|
|
2087
|
+
"name": "footerSlot",
|
|
2088
|
+
"privacy": "private",
|
|
2089
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"kind": "field",
|
|
2093
|
+
"name": "padding",
|
|
1968
2094
|
"type": {
|
|
1969
|
-
"text": "
|
|
2095
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1970
2096
|
},
|
|
1971
|
-
"
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
1974
|
-
|
|
1975
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1976
|
-
}
|
|
2097
|
+
"default": "\"m\"",
|
|
2098
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2099
|
+
"attribute": "padding",
|
|
2100
|
+
"reflects": true
|
|
1977
2101
|
}
|
|
1978
2102
|
],
|
|
1979
|
-
"
|
|
1980
|
-
{
|
|
1981
|
-
"name": "InputMixin",
|
|
1982
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1983
|
-
},
|
|
2103
|
+
"attributes": [
|
|
1984
2104
|
{
|
|
1985
|
-
"name": "
|
|
1986
|
-
"
|
|
2105
|
+
"name": "padding",
|
|
2106
|
+
"type": {
|
|
2107
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2108
|
+
},
|
|
2109
|
+
"default": "\"m\"",
|
|
2110
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2111
|
+
"fieldName": "padding"
|
|
1987
2112
|
}
|
|
1988
2113
|
],
|
|
1989
2114
|
"superclass": {
|
|
@@ -1992,13 +2117,11 @@
|
|
|
1992
2117
|
},
|
|
1993
2118
|
"localization": [],
|
|
1994
2119
|
"status": "ready",
|
|
1995
|
-
"category": "
|
|
1996
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n-
|
|
2120
|
+
"category": "structure",
|
|
2121
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
1997
2122
|
"examples": [],
|
|
1998
|
-
"dependencies": [
|
|
1999
|
-
|
|
2000
|
-
],
|
|
2001
|
-
"tagName": "nord-button",
|
|
2123
|
+
"dependencies": [],
|
|
2124
|
+
"tagName": "nord-card",
|
|
2002
2125
|
"customElement": true
|
|
2003
2126
|
}
|
|
2004
2127
|
],
|
|
@@ -2007,16 +2130,16 @@
|
|
|
2007
2130
|
"kind": "js",
|
|
2008
2131
|
"name": "default",
|
|
2009
2132
|
"declaration": {
|
|
2010
|
-
"name": "
|
|
2011
|
-
"module": "src/
|
|
2133
|
+
"name": "Card",
|
|
2134
|
+
"module": "src/card/Card.ts"
|
|
2012
2135
|
}
|
|
2013
2136
|
},
|
|
2014
2137
|
{
|
|
2015
2138
|
"kind": "custom-element-definition",
|
|
2016
|
-
"name": "nord-
|
|
2139
|
+
"name": "nord-card",
|
|
2017
2140
|
"declaration": {
|
|
2018
|
-
"name": "
|
|
2019
|
-
"module": "src/
|
|
2141
|
+
"name": "Card",
|
|
2142
|
+
"module": "src/card/Card.ts"
|
|
2020
2143
|
}
|
|
2021
2144
|
}
|
|
2022
2145
|
]
|
|
@@ -2742,129 +2865,6 @@
|
|
|
2742
2865
|
}
|
|
2743
2866
|
]
|
|
2744
2867
|
},
|
|
2745
|
-
{
|
|
2746
|
-
"kind": "javascript-module",
|
|
2747
|
-
"path": "src/card/Card.ts",
|
|
2748
|
-
"declarations": [
|
|
2749
|
-
{
|
|
2750
|
-
"kind": "class",
|
|
2751
|
-
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2752
|
-
"name": "Card",
|
|
2753
|
-
"cssProperties": [
|
|
2754
|
-
{
|
|
2755
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2756
|
-
"name": "--n-card-border-radius",
|
|
2757
|
-
"default": "var(--n-border-radius)"
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2761
|
-
"name": "--n-card-box-shadow",
|
|
2762
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2763
|
-
},
|
|
2764
|
-
{
|
|
2765
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2766
|
-
"name": "--n-card-padding",
|
|
2767
|
-
"default": "var(--n-space-m)"
|
|
2768
|
-
},
|
|
2769
|
-
{
|
|
2770
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2771
|
-
"name": "--n-card-slot-padding",
|
|
2772
|
-
"default": "var(--n-space-m)"
|
|
2773
|
-
}
|
|
2774
|
-
],
|
|
2775
|
-
"slots": [
|
|
2776
|
-
{
|
|
2777
|
-
"description": "The card content.",
|
|
2778
|
-
"name": ""
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2782
|
-
"name": "header"
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2786
|
-
"name": "header-end"
|
|
2787
|
-
},
|
|
2788
|
-
{
|
|
2789
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2790
|
-
"name": "footer"
|
|
2791
|
-
}
|
|
2792
|
-
],
|
|
2793
|
-
"members": [
|
|
2794
|
-
{
|
|
2795
|
-
"kind": "field",
|
|
2796
|
-
"name": "headerSlot",
|
|
2797
|
-
"privacy": "private",
|
|
2798
|
-
"default": "new SlotController(this, \"header\")"
|
|
2799
|
-
},
|
|
2800
|
-
{
|
|
2801
|
-
"kind": "field",
|
|
2802
|
-
"name": "headerEndSlot",
|
|
2803
|
-
"privacy": "private",
|
|
2804
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2805
|
-
},
|
|
2806
|
-
{
|
|
2807
|
-
"kind": "field",
|
|
2808
|
-
"name": "footerSlot",
|
|
2809
|
-
"privacy": "private",
|
|
2810
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
"kind": "field",
|
|
2814
|
-
"name": "padding",
|
|
2815
|
-
"type": {
|
|
2816
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2817
|
-
},
|
|
2818
|
-
"default": "\"m\"",
|
|
2819
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2820
|
-
"attribute": "padding",
|
|
2821
|
-
"reflects": true
|
|
2822
|
-
}
|
|
2823
|
-
],
|
|
2824
|
-
"attributes": [
|
|
2825
|
-
{
|
|
2826
|
-
"name": "padding",
|
|
2827
|
-
"type": {
|
|
2828
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2829
|
-
},
|
|
2830
|
-
"default": "\"m\"",
|
|
2831
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2832
|
-
"fieldName": "padding"
|
|
2833
|
-
}
|
|
2834
|
-
],
|
|
2835
|
-
"superclass": {
|
|
2836
|
-
"name": "LitElement",
|
|
2837
|
-
"package": "lit"
|
|
2838
|
-
},
|
|
2839
|
-
"localization": [],
|
|
2840
|
-
"status": "ready",
|
|
2841
|
-
"category": "structure",
|
|
2842
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2843
|
-
"examples": [],
|
|
2844
|
-
"dependencies": [],
|
|
2845
|
-
"tagName": "nord-card",
|
|
2846
|
-
"customElement": true
|
|
2847
|
-
}
|
|
2848
|
-
],
|
|
2849
|
-
"exports": [
|
|
2850
|
-
{
|
|
2851
|
-
"kind": "js",
|
|
2852
|
-
"name": "default",
|
|
2853
|
-
"declaration": {
|
|
2854
|
-
"name": "Card",
|
|
2855
|
-
"module": "src/card/Card.ts"
|
|
2856
|
-
}
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
"kind": "custom-element-definition",
|
|
2860
|
-
"name": "nord-card",
|
|
2861
|
-
"declaration": {
|
|
2862
|
-
"name": "Card",
|
|
2863
|
-
"module": "src/card/Card.ts"
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
]
|
|
2867
|
-
},
|
|
2868
2868
|
{
|
|
2869
2869
|
"kind": "javascript-module",
|
|
2870
2870
|
"path": "src/command-menu/CommandMenu.ts",
|
|
@@ -6316,84 +6316,16 @@
|
|
|
6316
6316
|
"kind": "js",
|
|
6317
6317
|
"name": "default",
|
|
6318
6318
|
"declaration": {
|
|
6319
|
-
"name": "Dropdown",
|
|
6320
|
-
"module": "src/dropdown/Dropdown.ts"
|
|
6321
|
-
}
|
|
6322
|
-
},
|
|
6323
|
-
{
|
|
6324
|
-
"kind": "custom-element-definition",
|
|
6325
|
-
"name": "nord-dropdown",
|
|
6326
|
-
"declaration": {
|
|
6327
|
-
"name": "Dropdown",
|
|
6328
|
-
"module": "src/dropdown/Dropdown.ts"
|
|
6329
|
-
}
|
|
6330
|
-
}
|
|
6331
|
-
]
|
|
6332
|
-
},
|
|
6333
|
-
{
|
|
6334
|
-
"kind": "javascript-module",
|
|
6335
|
-
"path": "src/dropdown-group/DropdownGroup.ts",
|
|
6336
|
-
"declarations": [
|
|
6337
|
-
{
|
|
6338
|
-
"kind": "class",
|
|
6339
|
-
"description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
|
|
6340
|
-
"name": "DropdownGroup",
|
|
6341
|
-
"slots": [
|
|
6342
|
-
{
|
|
6343
|
-
"description": "The dropdown group content.",
|
|
6344
|
-
"name": ""
|
|
6345
|
-
}
|
|
6346
|
-
],
|
|
6347
|
-
"members": [
|
|
6348
|
-
{
|
|
6349
|
-
"kind": "field",
|
|
6350
|
-
"name": "heading",
|
|
6351
|
-
"type": {
|
|
6352
|
-
"text": "string | undefined"
|
|
6353
|
-
},
|
|
6354
|
-
"description": "Heading and accessible label for the dropdown group.",
|
|
6355
|
-
"attribute": "heading"
|
|
6356
|
-
}
|
|
6357
|
-
],
|
|
6358
|
-
"attributes": [
|
|
6359
|
-
{
|
|
6360
|
-
"name": "heading",
|
|
6361
|
-
"type": {
|
|
6362
|
-
"text": "string | undefined"
|
|
6363
|
-
},
|
|
6364
|
-
"description": "Heading and accessible label for the dropdown group.",
|
|
6365
|
-
"fieldName": "heading"
|
|
6366
|
-
}
|
|
6367
|
-
],
|
|
6368
|
-
"superclass": {
|
|
6369
|
-
"name": "LitElement",
|
|
6370
|
-
"package": "lit"
|
|
6371
|
-
},
|
|
6372
|
-
"localization": [],
|
|
6373
|
-
"status": "ready",
|
|
6374
|
-
"category": "action",
|
|
6375
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
|
|
6376
|
-
"examples": [],
|
|
6377
|
-
"dependencies": [],
|
|
6378
|
-
"tagName": "nord-dropdown-group",
|
|
6379
|
-
"customElement": true
|
|
6380
|
-
}
|
|
6381
|
-
],
|
|
6382
|
-
"exports": [
|
|
6383
|
-
{
|
|
6384
|
-
"kind": "js",
|
|
6385
|
-
"name": "default",
|
|
6386
|
-
"declaration": {
|
|
6387
|
-
"name": "DropdownGroup",
|
|
6388
|
-
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6319
|
+
"name": "Dropdown",
|
|
6320
|
+
"module": "src/dropdown/Dropdown.ts"
|
|
6389
6321
|
}
|
|
6390
6322
|
},
|
|
6391
6323
|
{
|
|
6392
6324
|
"kind": "custom-element-definition",
|
|
6393
|
-
"name": "nord-dropdown
|
|
6325
|
+
"name": "nord-dropdown",
|
|
6394
6326
|
"declaration": {
|
|
6395
|
-
"name": "
|
|
6396
|
-
"module": "src/dropdown
|
|
6327
|
+
"name": "Dropdown",
|
|
6328
|
+
"module": "src/dropdown/Dropdown.ts"
|
|
6397
6329
|
}
|
|
6398
6330
|
}
|
|
6399
6331
|
]
|
|
@@ -6546,6 +6478,74 @@
|
|
|
6546
6478
|
}
|
|
6547
6479
|
]
|
|
6548
6480
|
},
|
|
6481
|
+
{
|
|
6482
|
+
"kind": "javascript-module",
|
|
6483
|
+
"path": "src/dropdown-group/DropdownGroup.ts",
|
|
6484
|
+
"declarations": [
|
|
6485
|
+
{
|
|
6486
|
+
"kind": "class",
|
|
6487
|
+
"description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
|
|
6488
|
+
"name": "DropdownGroup",
|
|
6489
|
+
"slots": [
|
|
6490
|
+
{
|
|
6491
|
+
"description": "The dropdown group content.",
|
|
6492
|
+
"name": ""
|
|
6493
|
+
}
|
|
6494
|
+
],
|
|
6495
|
+
"members": [
|
|
6496
|
+
{
|
|
6497
|
+
"kind": "field",
|
|
6498
|
+
"name": "heading",
|
|
6499
|
+
"type": {
|
|
6500
|
+
"text": "string | undefined"
|
|
6501
|
+
},
|
|
6502
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6503
|
+
"attribute": "heading"
|
|
6504
|
+
}
|
|
6505
|
+
],
|
|
6506
|
+
"attributes": [
|
|
6507
|
+
{
|
|
6508
|
+
"name": "heading",
|
|
6509
|
+
"type": {
|
|
6510
|
+
"text": "string | undefined"
|
|
6511
|
+
},
|
|
6512
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6513
|
+
"fieldName": "heading"
|
|
6514
|
+
}
|
|
6515
|
+
],
|
|
6516
|
+
"superclass": {
|
|
6517
|
+
"name": "LitElement",
|
|
6518
|
+
"package": "lit"
|
|
6519
|
+
},
|
|
6520
|
+
"localization": [],
|
|
6521
|
+
"status": "ready",
|
|
6522
|
+
"category": "action",
|
|
6523
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
|
|
6524
|
+
"examples": [],
|
|
6525
|
+
"dependencies": [],
|
|
6526
|
+
"tagName": "nord-dropdown-group",
|
|
6527
|
+
"customElement": true
|
|
6528
|
+
}
|
|
6529
|
+
],
|
|
6530
|
+
"exports": [
|
|
6531
|
+
{
|
|
6532
|
+
"kind": "js",
|
|
6533
|
+
"name": "default",
|
|
6534
|
+
"declaration": {
|
|
6535
|
+
"name": "DropdownGroup",
|
|
6536
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6537
|
+
}
|
|
6538
|
+
},
|
|
6539
|
+
{
|
|
6540
|
+
"kind": "custom-element-definition",
|
|
6541
|
+
"name": "nord-dropdown-group",
|
|
6542
|
+
"declaration": {
|
|
6543
|
+
"name": "DropdownGroup",
|
|
6544
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
]
|
|
6548
|
+
},
|
|
6549
6549
|
{
|
|
6550
6550
|
"kind": "javascript-module",
|
|
6551
6551
|
"path": "src/empty-state/EmptyState.ts",
|
|
@@ -8493,7 +8493,188 @@
|
|
|
8493
8493
|
"icon",
|
|
8494
8494
|
"nav-toggle"
|
|
8495
8495
|
],
|
|
8496
|
-
"tagName": "nord-layout",
|
|
8496
|
+
"tagName": "nord-layout",
|
|
8497
|
+
"customElement": true
|
|
8498
|
+
}
|
|
8499
|
+
],
|
|
8500
|
+
"exports": [
|
|
8501
|
+
{
|
|
8502
|
+
"kind": "js",
|
|
8503
|
+
"name": "default",
|
|
8504
|
+
"declaration": {
|
|
8505
|
+
"name": "Layout",
|
|
8506
|
+
"module": "src/layout/Layout.ts"
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
"kind": "custom-element-definition",
|
|
8511
|
+
"name": "nord-layout",
|
|
8512
|
+
"declaration": {
|
|
8513
|
+
"name": "Layout",
|
|
8514
|
+
"module": "src/layout/Layout.ts"
|
|
8515
|
+
}
|
|
8516
|
+
}
|
|
8517
|
+
]
|
|
8518
|
+
},
|
|
8519
|
+
{
|
|
8520
|
+
"kind": "javascript-module",
|
|
8521
|
+
"path": "src/message/Message.ts",
|
|
8522
|
+
"declarations": [
|
|
8523
|
+
{
|
|
8524
|
+
"kind": "class",
|
|
8525
|
+
"description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
|
|
8526
|
+
"name": "Message",
|
|
8527
|
+
"cssProperties": [
|
|
8528
|
+
{
|
|
8529
|
+
"description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
|
|
8530
|
+
"name": "--n-message-border-color",
|
|
8531
|
+
"default": "var(--n-color-border)"
|
|
8532
|
+
}
|
|
8533
|
+
],
|
|
8534
|
+
"slots": [
|
|
8535
|
+
{
|
|
8536
|
+
"description": "The message content.",
|
|
8537
|
+
"name": ""
|
|
8538
|
+
},
|
|
8539
|
+
{
|
|
8540
|
+
"description": "Used to place content after the message. Typically used for a timestamp.",
|
|
8541
|
+
"name": "footer"
|
|
8542
|
+
}
|
|
8543
|
+
],
|
|
8544
|
+
"members": [
|
|
8545
|
+
{
|
|
8546
|
+
"kind": "field",
|
|
8547
|
+
"name": "localize",
|
|
8548
|
+
"privacy": "private",
|
|
8549
|
+
"default": "new LocalizeController<\"nord-message\">(this)"
|
|
8550
|
+
},
|
|
8551
|
+
{
|
|
8552
|
+
"kind": "field",
|
|
8553
|
+
"name": "href",
|
|
8554
|
+
"type": {
|
|
8555
|
+
"text": "string | undefined"
|
|
8556
|
+
},
|
|
8557
|
+
"description": "The url the message should link to.",
|
|
8558
|
+
"attribute": "href",
|
|
8559
|
+
"reflects": true
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"kind": "field",
|
|
8563
|
+
"name": "highlight",
|
|
8564
|
+
"type": {
|
|
8565
|
+
"text": "boolean | undefined"
|
|
8566
|
+
},
|
|
8567
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8568
|
+
"attribute": "highlight",
|
|
8569
|
+
"reflects": true
|
|
8570
|
+
},
|
|
8571
|
+
{
|
|
8572
|
+
"kind": "field",
|
|
8573
|
+
"name": "unread",
|
|
8574
|
+
"type": {
|
|
8575
|
+
"text": "boolean | undefined"
|
|
8576
|
+
},
|
|
8577
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
8578
|
+
"attribute": "unread",
|
|
8579
|
+
"reflects": true
|
|
8580
|
+
},
|
|
8581
|
+
{
|
|
8582
|
+
"kind": "field",
|
|
8583
|
+
"name": "focusableRef",
|
|
8584
|
+
"privacy": "protected",
|
|
8585
|
+
"inheritedFrom": {
|
|
8586
|
+
"name": "FocusableMixin",
|
|
8587
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "method",
|
|
8592
|
+
"name": "focus",
|
|
8593
|
+
"parameters": [
|
|
8594
|
+
{
|
|
8595
|
+
"name": "options",
|
|
8596
|
+
"optional": true,
|
|
8597
|
+
"type": {
|
|
8598
|
+
"text": "FocusOptions"
|
|
8599
|
+
},
|
|
8600
|
+
"description": "An object which controls aspects of the focusing process."
|
|
8601
|
+
}
|
|
8602
|
+
],
|
|
8603
|
+
"description": "Programmatically move focus to the component.",
|
|
8604
|
+
"inheritedFrom": {
|
|
8605
|
+
"name": "FocusableMixin",
|
|
8606
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
{
|
|
8610
|
+
"kind": "method",
|
|
8611
|
+
"name": "blur",
|
|
8612
|
+
"description": "Programmatically remove focus from the component.",
|
|
8613
|
+
"inheritedFrom": {
|
|
8614
|
+
"name": "FocusableMixin",
|
|
8615
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8616
|
+
}
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
"kind": "method",
|
|
8620
|
+
"name": "click",
|
|
8621
|
+
"description": "Programmatically simulates a click on the component.",
|
|
8622
|
+
"inheritedFrom": {
|
|
8623
|
+
"name": "FocusableMixin",
|
|
8624
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
],
|
|
8628
|
+
"attributes": [
|
|
8629
|
+
{
|
|
8630
|
+
"name": "href",
|
|
8631
|
+
"type": {
|
|
8632
|
+
"text": "string | undefined"
|
|
8633
|
+
},
|
|
8634
|
+
"description": "The url the message should link to.",
|
|
8635
|
+
"fieldName": "href"
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
"name": "highlight",
|
|
8639
|
+
"type": {
|
|
8640
|
+
"text": "boolean | undefined"
|
|
8641
|
+
},
|
|
8642
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8643
|
+
"fieldName": "highlight"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"name": "unread",
|
|
8647
|
+
"type": {
|
|
8648
|
+
"text": "boolean | undefined"
|
|
8649
|
+
},
|
|
8650
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
8651
|
+
"fieldName": "unread"
|
|
8652
|
+
}
|
|
8653
|
+
],
|
|
8654
|
+
"mixins": [
|
|
8655
|
+
{
|
|
8656
|
+
"name": "FocusableMixin",
|
|
8657
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8658
|
+
}
|
|
8659
|
+
],
|
|
8660
|
+
"superclass": {
|
|
8661
|
+
"name": "LitElement",
|
|
8662
|
+
"package": "lit"
|
|
8663
|
+
},
|
|
8664
|
+
"localization": [
|
|
8665
|
+
{
|
|
8666
|
+
"name": "unreadLabel",
|
|
8667
|
+
"description": "Label for the unread messages."
|
|
8668
|
+
}
|
|
8669
|
+
],
|
|
8670
|
+
"status": "draft",
|
|
8671
|
+
"category": "action",
|
|
8672
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
|
|
8673
|
+
"examples": [],
|
|
8674
|
+
"dependencies": [
|
|
8675
|
+
"dropdown-item"
|
|
8676
|
+
],
|
|
8677
|
+
"tagName": "nord-message",
|
|
8497
8678
|
"customElement": true
|
|
8498
8679
|
}
|
|
8499
8680
|
],
|
|
@@ -8502,16 +8683,40 @@
|
|
|
8502
8683
|
"kind": "js",
|
|
8503
8684
|
"name": "default",
|
|
8504
8685
|
"declaration": {
|
|
8505
|
-
"name": "
|
|
8506
|
-
"module": "src/
|
|
8686
|
+
"name": "Message",
|
|
8687
|
+
"module": "src/message/Message.ts"
|
|
8507
8688
|
}
|
|
8508
8689
|
},
|
|
8509
8690
|
{
|
|
8510
8691
|
"kind": "custom-element-definition",
|
|
8511
|
-
"name": "nord-
|
|
8692
|
+
"name": "nord-message",
|
|
8512
8693
|
"declaration": {
|
|
8513
|
-
"name": "
|
|
8514
|
-
"module": "src/
|
|
8694
|
+
"name": "Message",
|
|
8695
|
+
"module": "src/message/Message.ts"
|
|
8696
|
+
}
|
|
8697
|
+
}
|
|
8698
|
+
]
|
|
8699
|
+
},
|
|
8700
|
+
{
|
|
8701
|
+
"kind": "javascript-module",
|
|
8702
|
+
"path": "src/message/localization.ts",
|
|
8703
|
+
"declarations": [
|
|
8704
|
+
{
|
|
8705
|
+
"kind": "variable",
|
|
8706
|
+
"name": "localization",
|
|
8707
|
+
"type": {
|
|
8708
|
+
"text": "object"
|
|
8709
|
+
},
|
|
8710
|
+
"default": "{\n unreadLabel: \"Unread\",\n}"
|
|
8711
|
+
}
|
|
8712
|
+
],
|
|
8713
|
+
"exports": [
|
|
8714
|
+
{
|
|
8715
|
+
"kind": "js",
|
|
8716
|
+
"name": "default",
|
|
8717
|
+
"declaration": {
|
|
8718
|
+
"name": "localization",
|
|
8719
|
+
"module": "src/message/localization.ts"
|
|
8515
8720
|
}
|
|
8516
8721
|
}
|
|
8517
8722
|
]
|
|
@@ -8701,277 +8906,72 @@
|
|
|
8701
8906
|
"type": {
|
|
8702
8907
|
"text": "string"
|
|
8703
8908
|
},
|
|
8704
|
-
"description": "the lang code e.g. \"en\" or \"en-GB\""
|
|
8705
|
-
}
|
|
8706
|
-
],
|
|
8707
|
-
"description": "Check whether there is a translation registered for the given lang"
|
|
8708
|
-
},
|
|
8709
|
-
{
|
|
8710
|
-
"kind": "function",
|
|
8711
|
-
"name": "resolveTranslation",
|
|
8712
|
-
"parameters": [
|
|
8713
|
-
{
|
|
8714
|
-
"name": "langCode",
|
|
8715
|
-
"type": {
|
|
8716
|
-
"text": "string"
|
|
8717
|
-
}
|
|
8718
|
-
}
|
|
8719
|
-
],
|
|
8720
|
-
"description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
|
|
8721
|
-
}
|
|
8722
|
-
],
|
|
8723
|
-
"exports": [
|
|
8724
|
-
{
|
|
8725
|
-
"kind": "js",
|
|
8726
|
-
"name": "clearTranslations",
|
|
8727
|
-
"declaration": {
|
|
8728
|
-
"name": "clearTranslations",
|
|
8729
|
-
"module": "src/localization/translation.ts"
|
|
8730
|
-
}
|
|
8731
|
-
},
|
|
8732
|
-
{
|
|
8733
|
-
"kind": "js",
|
|
8734
|
-
"name": "registerTranslation",
|
|
8735
|
-
"declaration": {
|
|
8736
|
-
"name": "registerTranslation",
|
|
8737
|
-
"module": "src/localization/translation.ts"
|
|
8738
|
-
}
|
|
8739
|
-
},
|
|
8740
|
-
{
|
|
8741
|
-
"kind": "js",
|
|
8742
|
-
"name": "subscribe",
|
|
8743
|
-
"declaration": {
|
|
8744
|
-
"name": "subscribe",
|
|
8745
|
-
"module": "src/localization/translation.ts"
|
|
8746
|
-
}
|
|
8747
|
-
},
|
|
8748
|
-
{
|
|
8749
|
-
"kind": "js",
|
|
8750
|
-
"name": "isTranslationRegistered",
|
|
8751
|
-
"declaration": {
|
|
8752
|
-
"name": "isTranslationRegistered",
|
|
8753
|
-
"module": "src/localization/translation.ts"
|
|
8754
|
-
}
|
|
8755
|
-
},
|
|
8756
|
-
{
|
|
8757
|
-
"kind": "js",
|
|
8758
|
-
"name": "resolveTranslation",
|
|
8759
|
-
"declaration": {
|
|
8760
|
-
"name": "resolveTranslation",
|
|
8761
|
-
"module": "src/localization/translation.ts"
|
|
8762
|
-
}
|
|
8763
|
-
},
|
|
8764
|
-
{
|
|
8765
|
-
"kind": "js",
|
|
8766
|
-
"name": "fallback",
|
|
8767
|
-
"declaration": {
|
|
8768
|
-
"name": "en",
|
|
8769
|
-
"module": "src/localization/translation.ts"
|
|
8770
|
-
}
|
|
8771
|
-
}
|
|
8772
|
-
]
|
|
8773
|
-
},
|
|
8774
|
-
{
|
|
8775
|
-
"kind": "javascript-module",
|
|
8776
|
-
"path": "src/message/Message.ts",
|
|
8777
|
-
"declarations": [
|
|
8778
|
-
{
|
|
8779
|
-
"kind": "class",
|
|
8780
|
-
"description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
|
|
8781
|
-
"name": "Message",
|
|
8782
|
-
"cssProperties": [
|
|
8783
|
-
{
|
|
8784
|
-
"description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
|
|
8785
|
-
"name": "--n-message-border-color",
|
|
8786
|
-
"default": "var(--n-color-border)"
|
|
8787
|
-
}
|
|
8788
|
-
],
|
|
8789
|
-
"slots": [
|
|
8790
|
-
{
|
|
8791
|
-
"description": "The message content.",
|
|
8792
|
-
"name": ""
|
|
8793
|
-
},
|
|
8794
|
-
{
|
|
8795
|
-
"description": "Used to place content after the message. Typically used for a timestamp.",
|
|
8796
|
-
"name": "footer"
|
|
8797
|
-
}
|
|
8798
|
-
],
|
|
8799
|
-
"members": [
|
|
8800
|
-
{
|
|
8801
|
-
"kind": "field",
|
|
8802
|
-
"name": "localize",
|
|
8803
|
-
"privacy": "private",
|
|
8804
|
-
"default": "new LocalizeController<\"nord-message\">(this)"
|
|
8805
|
-
},
|
|
8806
|
-
{
|
|
8807
|
-
"kind": "field",
|
|
8808
|
-
"name": "href",
|
|
8809
|
-
"type": {
|
|
8810
|
-
"text": "string | undefined"
|
|
8811
|
-
},
|
|
8812
|
-
"description": "The url the message should link to.",
|
|
8813
|
-
"attribute": "href",
|
|
8814
|
-
"reflects": true
|
|
8815
|
-
},
|
|
8816
|
-
{
|
|
8817
|
-
"kind": "field",
|
|
8818
|
-
"name": "highlight",
|
|
8819
|
-
"type": {
|
|
8820
|
-
"text": "boolean | undefined"
|
|
8821
|
-
},
|
|
8822
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8823
|
-
"attribute": "highlight",
|
|
8824
|
-
"reflects": true
|
|
8825
|
-
},
|
|
8826
|
-
{
|
|
8827
|
-
"kind": "field",
|
|
8828
|
-
"name": "unread",
|
|
8829
|
-
"type": {
|
|
8830
|
-
"text": "boolean | undefined"
|
|
8831
|
-
},
|
|
8832
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
8833
|
-
"attribute": "unread",
|
|
8834
|
-
"reflects": true
|
|
8835
|
-
},
|
|
8836
|
-
{
|
|
8837
|
-
"kind": "field",
|
|
8838
|
-
"name": "focusableRef",
|
|
8839
|
-
"privacy": "protected",
|
|
8840
|
-
"inheritedFrom": {
|
|
8841
|
-
"name": "FocusableMixin",
|
|
8842
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8843
|
-
}
|
|
8844
|
-
},
|
|
8845
|
-
{
|
|
8846
|
-
"kind": "method",
|
|
8847
|
-
"name": "focus",
|
|
8848
|
-
"parameters": [
|
|
8849
|
-
{
|
|
8850
|
-
"name": "options",
|
|
8851
|
-
"optional": true,
|
|
8852
|
-
"type": {
|
|
8853
|
-
"text": "FocusOptions"
|
|
8854
|
-
},
|
|
8855
|
-
"description": "An object which controls aspects of the focusing process."
|
|
8856
|
-
}
|
|
8857
|
-
],
|
|
8858
|
-
"description": "Programmatically move focus to the component.",
|
|
8859
|
-
"inheritedFrom": {
|
|
8860
|
-
"name": "FocusableMixin",
|
|
8861
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8862
|
-
}
|
|
8863
|
-
},
|
|
8864
|
-
{
|
|
8865
|
-
"kind": "method",
|
|
8866
|
-
"name": "blur",
|
|
8867
|
-
"description": "Programmatically remove focus from the component.",
|
|
8868
|
-
"inheritedFrom": {
|
|
8869
|
-
"name": "FocusableMixin",
|
|
8870
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8871
|
-
}
|
|
8872
|
-
},
|
|
8873
|
-
{
|
|
8874
|
-
"kind": "method",
|
|
8875
|
-
"name": "click",
|
|
8876
|
-
"description": "Programmatically simulates a click on the component.",
|
|
8877
|
-
"inheritedFrom": {
|
|
8878
|
-
"name": "FocusableMixin",
|
|
8879
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8880
|
-
}
|
|
8881
|
-
}
|
|
8882
|
-
],
|
|
8883
|
-
"attributes": [
|
|
8884
|
-
{
|
|
8885
|
-
"name": "href",
|
|
8886
|
-
"type": {
|
|
8887
|
-
"text": "string | undefined"
|
|
8888
|
-
},
|
|
8889
|
-
"description": "The url the message should link to.",
|
|
8890
|
-
"fieldName": "href"
|
|
8891
|
-
},
|
|
8892
|
-
{
|
|
8893
|
-
"name": "highlight",
|
|
8894
|
-
"type": {
|
|
8895
|
-
"text": "boolean | undefined"
|
|
8896
|
-
},
|
|
8897
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8898
|
-
"fieldName": "highlight"
|
|
8899
|
-
},
|
|
8900
|
-
{
|
|
8901
|
-
"name": "unread",
|
|
8902
|
-
"type": {
|
|
8903
|
-
"text": "boolean | undefined"
|
|
8904
|
-
},
|
|
8905
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
8906
|
-
"fieldName": "unread"
|
|
8907
|
-
}
|
|
8908
|
-
],
|
|
8909
|
-
"mixins": [
|
|
8910
|
-
{
|
|
8911
|
-
"name": "FocusableMixin",
|
|
8912
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8913
|
-
}
|
|
8914
|
-
],
|
|
8915
|
-
"superclass": {
|
|
8916
|
-
"name": "LitElement",
|
|
8917
|
-
"package": "lit"
|
|
8918
|
-
},
|
|
8919
|
-
"localization": [
|
|
8920
|
-
{
|
|
8921
|
-
"name": "unreadLabel",
|
|
8922
|
-
"description": "Label for the unread messages."
|
|
8909
|
+
"description": "the lang code e.g. \"en\" or \"en-GB\""
|
|
8923
8910
|
}
|
|
8924
8911
|
],
|
|
8925
|
-
"
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
"
|
|
8929
|
-
"
|
|
8930
|
-
|
|
8912
|
+
"description": "Check whether there is a translation registered for the given lang"
|
|
8913
|
+
},
|
|
8914
|
+
{
|
|
8915
|
+
"kind": "function",
|
|
8916
|
+
"name": "resolveTranslation",
|
|
8917
|
+
"parameters": [
|
|
8918
|
+
{
|
|
8919
|
+
"name": "langCode",
|
|
8920
|
+
"type": {
|
|
8921
|
+
"text": "string"
|
|
8922
|
+
}
|
|
8923
|
+
}
|
|
8931
8924
|
],
|
|
8932
|
-
"
|
|
8933
|
-
"customElement": true
|
|
8925
|
+
"description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
|
|
8934
8926
|
}
|
|
8935
8927
|
],
|
|
8936
8928
|
"exports": [
|
|
8937
8929
|
{
|
|
8938
8930
|
"kind": "js",
|
|
8939
|
-
"name": "
|
|
8931
|
+
"name": "clearTranslations",
|
|
8940
8932
|
"declaration": {
|
|
8941
|
-
"name": "
|
|
8942
|
-
"module": "src/
|
|
8933
|
+
"name": "clearTranslations",
|
|
8934
|
+
"module": "src/localization/translation.ts"
|
|
8943
8935
|
}
|
|
8944
8936
|
},
|
|
8945
8937
|
{
|
|
8946
|
-
"kind": "
|
|
8947
|
-
"name": "
|
|
8938
|
+
"kind": "js",
|
|
8939
|
+
"name": "registerTranslation",
|
|
8948
8940
|
"declaration": {
|
|
8949
|
-
"name": "
|
|
8950
|
-
"module": "src/
|
|
8941
|
+
"name": "registerTranslation",
|
|
8942
|
+
"module": "src/localization/translation.ts"
|
|
8951
8943
|
}
|
|
8952
|
-
}
|
|
8953
|
-
]
|
|
8954
|
-
},
|
|
8955
|
-
{
|
|
8956
|
-
"kind": "javascript-module",
|
|
8957
|
-
"path": "src/message/localization.ts",
|
|
8958
|
-
"declarations": [
|
|
8944
|
+
},
|
|
8959
8945
|
{
|
|
8960
|
-
"kind": "
|
|
8961
|
-
"name": "
|
|
8962
|
-
"
|
|
8963
|
-
"
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
}
|
|
8967
|
-
],
|
|
8968
|
-
"exports": [
|
|
8946
|
+
"kind": "js",
|
|
8947
|
+
"name": "subscribe",
|
|
8948
|
+
"declaration": {
|
|
8949
|
+
"name": "subscribe",
|
|
8950
|
+
"module": "src/localization/translation.ts"
|
|
8951
|
+
}
|
|
8952
|
+
},
|
|
8969
8953
|
{
|
|
8970
8954
|
"kind": "js",
|
|
8971
|
-
"name": "
|
|
8955
|
+
"name": "isTranslationRegistered",
|
|
8972
8956
|
"declaration": {
|
|
8973
|
-
"name": "
|
|
8974
|
-
"module": "src/
|
|
8957
|
+
"name": "isTranslationRegistered",
|
|
8958
|
+
"module": "src/localization/translation.ts"
|
|
8959
|
+
}
|
|
8960
|
+
},
|
|
8961
|
+
{
|
|
8962
|
+
"kind": "js",
|
|
8963
|
+
"name": "resolveTranslation",
|
|
8964
|
+
"declaration": {
|
|
8965
|
+
"name": "resolveTranslation",
|
|
8966
|
+
"module": "src/localization/translation.ts"
|
|
8967
|
+
}
|
|
8968
|
+
},
|
|
8969
|
+
{
|
|
8970
|
+
"kind": "js",
|
|
8971
|
+
"name": "fallback",
|
|
8972
|
+
"declaration": {
|
|
8973
|
+
"name": "en",
|
|
8974
|
+
"module": "src/localization/translation.ts"
|
|
8975
8975
|
}
|
|
8976
8976
|
}
|
|
8977
8977
|
]
|
|
@@ -10149,21 +10149,193 @@
|
|
|
10149
10149
|
"kind": "field",
|
|
10150
10150
|
"name": "_warningLogged",
|
|
10151
10151
|
"type": {
|
|
10152
|
-
"text": "boolean"
|
|
10152
|
+
"text": "boolean"
|
|
10153
|
+
},
|
|
10154
|
+
"privacy": "private",
|
|
10155
|
+
"static": true,
|
|
10156
|
+
"default": "false",
|
|
10157
|
+
"inheritedFrom": {
|
|
10158
|
+
"name": "DraftComponentMixin",
|
|
10159
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10160
|
+
}
|
|
10161
|
+
}
|
|
10162
|
+
],
|
|
10163
|
+
"mixins": [
|
|
10164
|
+
{
|
|
10165
|
+
"name": "DraftComponentMixin",
|
|
10166
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10167
|
+
}
|
|
10168
|
+
],
|
|
10169
|
+
"superclass": {
|
|
10170
|
+
"name": "LitElement",
|
|
10171
|
+
"package": "lit"
|
|
10172
|
+
},
|
|
10173
|
+
"localization": [],
|
|
10174
|
+
"status": "draft",
|
|
10175
|
+
"category": "feedback",
|
|
10176
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
10177
|
+
"examples": [],
|
|
10178
|
+
"dependencies": [],
|
|
10179
|
+
"tagName": "nord-notification-group",
|
|
10180
|
+
"customElement": true
|
|
10181
|
+
}
|
|
10182
|
+
],
|
|
10183
|
+
"exports": [
|
|
10184
|
+
{
|
|
10185
|
+
"kind": "js",
|
|
10186
|
+
"name": "default",
|
|
10187
|
+
"declaration": {
|
|
10188
|
+
"name": "NotificationGroup",
|
|
10189
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10190
|
+
}
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"kind": "custom-element-definition",
|
|
10194
|
+
"name": "nord-notification-group",
|
|
10195
|
+
"declaration": {
|
|
10196
|
+
"name": "NotificationGroup",
|
|
10197
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10198
|
+
}
|
|
10199
|
+
}
|
|
10200
|
+
]
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"kind": "javascript-module",
|
|
10204
|
+
"path": "src/progress-bar/ProgressBar.ts",
|
|
10205
|
+
"declarations": [
|
|
10206
|
+
{
|
|
10207
|
+
"kind": "class",
|
|
10208
|
+
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
10209
|
+
"name": "ProgressBar",
|
|
10210
|
+
"cssProperties": [
|
|
10211
|
+
{
|
|
10212
|
+
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
10213
|
+
"name": "--n-progress-size",
|
|
10214
|
+
"default": "var(--n-space-s)"
|
|
10215
|
+
},
|
|
10216
|
+
{
|
|
10217
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
10218
|
+
"name": "--n-progress-border-radius",
|
|
10219
|
+
"default": "var(--n-border-radius-s)"
|
|
10220
|
+
},
|
|
10221
|
+
{
|
|
10222
|
+
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
10223
|
+
"name": "--n-progress-color",
|
|
10224
|
+
"default": "var(--n-color-accent)"
|
|
10225
|
+
}
|
|
10226
|
+
],
|
|
10227
|
+
"members": [
|
|
10228
|
+
{
|
|
10229
|
+
"kind": "field",
|
|
10230
|
+
"name": "value",
|
|
10231
|
+
"type": {
|
|
10232
|
+
"text": "number | undefined"
|
|
10233
|
+
},
|
|
10234
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10235
|
+
"attribute": "value",
|
|
10236
|
+
"reflects": true
|
|
10237
|
+
},
|
|
10238
|
+
{
|
|
10239
|
+
"kind": "field",
|
|
10240
|
+
"name": "max",
|
|
10241
|
+
"type": {
|
|
10242
|
+
"text": "number"
|
|
10243
|
+
},
|
|
10244
|
+
"default": "100",
|
|
10245
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10246
|
+
"attribute": "max",
|
|
10247
|
+
"reflects": true
|
|
10248
|
+
},
|
|
10249
|
+
{
|
|
10250
|
+
"kind": "field",
|
|
10251
|
+
"name": "label",
|
|
10252
|
+
"type": {
|
|
10253
|
+
"text": "string"
|
|
10254
|
+
},
|
|
10255
|
+
"default": "\"Current progress\"",
|
|
10256
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10257
|
+
"attribute": "label",
|
|
10258
|
+
"reflects": true
|
|
10259
|
+
},
|
|
10260
|
+
{
|
|
10261
|
+
"kind": "field",
|
|
10262
|
+
"name": "focusableRef",
|
|
10263
|
+
"privacy": "protected",
|
|
10264
|
+
"inheritedFrom": {
|
|
10265
|
+
"name": "FocusableMixin",
|
|
10266
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10267
|
+
}
|
|
10268
|
+
},
|
|
10269
|
+
{
|
|
10270
|
+
"kind": "method",
|
|
10271
|
+
"name": "focus",
|
|
10272
|
+
"parameters": [
|
|
10273
|
+
{
|
|
10274
|
+
"name": "options",
|
|
10275
|
+
"optional": true,
|
|
10276
|
+
"type": {
|
|
10277
|
+
"text": "FocusOptions"
|
|
10278
|
+
},
|
|
10279
|
+
"description": "An object which controls aspects of the focusing process."
|
|
10280
|
+
}
|
|
10281
|
+
],
|
|
10282
|
+
"description": "Programmatically move focus to the component.",
|
|
10283
|
+
"inheritedFrom": {
|
|
10284
|
+
"name": "FocusableMixin",
|
|
10285
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10288
|
+
{
|
|
10289
|
+
"kind": "method",
|
|
10290
|
+
"name": "blur",
|
|
10291
|
+
"description": "Programmatically remove focus from the component.",
|
|
10292
|
+
"inheritedFrom": {
|
|
10293
|
+
"name": "FocusableMixin",
|
|
10294
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10295
|
+
}
|
|
10296
|
+
},
|
|
10297
|
+
{
|
|
10298
|
+
"kind": "method",
|
|
10299
|
+
"name": "click",
|
|
10300
|
+
"description": "Programmatically simulates a click on the component.",
|
|
10301
|
+
"inheritedFrom": {
|
|
10302
|
+
"name": "FocusableMixin",
|
|
10303
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10304
|
+
}
|
|
10305
|
+
}
|
|
10306
|
+
],
|
|
10307
|
+
"attributes": [
|
|
10308
|
+
{
|
|
10309
|
+
"name": "value",
|
|
10310
|
+
"type": {
|
|
10311
|
+
"text": "number | undefined"
|
|
10312
|
+
},
|
|
10313
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10314
|
+
"fieldName": "value"
|
|
10315
|
+
},
|
|
10316
|
+
{
|
|
10317
|
+
"name": "max",
|
|
10318
|
+
"type": {
|
|
10319
|
+
"text": "number"
|
|
10320
|
+
},
|
|
10321
|
+
"default": "100",
|
|
10322
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10323
|
+
"fieldName": "max"
|
|
10324
|
+
},
|
|
10325
|
+
{
|
|
10326
|
+
"name": "label",
|
|
10327
|
+
"type": {
|
|
10328
|
+
"text": "string"
|
|
10153
10329
|
},
|
|
10154
|
-
"
|
|
10155
|
-
"
|
|
10156
|
-
"
|
|
10157
|
-
"inheritedFrom": {
|
|
10158
|
-
"name": "DraftComponentMixin",
|
|
10159
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10160
|
-
}
|
|
10330
|
+
"default": "\"Current progress\"",
|
|
10331
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10332
|
+
"fieldName": "label"
|
|
10161
10333
|
}
|
|
10162
10334
|
],
|
|
10163
10335
|
"mixins": [
|
|
10164
10336
|
{
|
|
10165
|
-
"name": "
|
|
10166
|
-
"module": "/src/common/mixins/
|
|
10337
|
+
"name": "FocusableMixin",
|
|
10338
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
10167
10339
|
}
|
|
10168
10340
|
],
|
|
10169
10341
|
"superclass": {
|
|
@@ -10171,12 +10343,12 @@
|
|
|
10171
10343
|
"package": "lit"
|
|
10172
10344
|
},
|
|
10173
10345
|
"localization": [],
|
|
10174
|
-
"status": "
|
|
10346
|
+
"status": "ready",
|
|
10175
10347
|
"category": "feedback",
|
|
10176
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
10348
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
10177
10349
|
"examples": [],
|
|
10178
10350
|
"dependencies": [],
|
|
10179
|
-
"tagName": "nord-
|
|
10351
|
+
"tagName": "nord-progress-bar",
|
|
10180
10352
|
"customElement": true
|
|
10181
10353
|
}
|
|
10182
10354
|
],
|
|
@@ -10185,16 +10357,16 @@
|
|
|
10185
10357
|
"kind": "js",
|
|
10186
10358
|
"name": "default",
|
|
10187
10359
|
"declaration": {
|
|
10188
|
-
"name": "
|
|
10189
|
-
"module": "src/
|
|
10360
|
+
"name": "ProgressBar",
|
|
10361
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10190
10362
|
}
|
|
10191
10363
|
},
|
|
10192
10364
|
{
|
|
10193
10365
|
"kind": "custom-element-definition",
|
|
10194
|
-
"name": "nord-
|
|
10366
|
+
"name": "nord-progress-bar",
|
|
10195
10367
|
"declaration": {
|
|
10196
|
-
"name": "
|
|
10197
|
-
"module": "src/
|
|
10368
|
+
"name": "ProgressBar",
|
|
10369
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10198
10370
|
}
|
|
10199
10371
|
}
|
|
10200
10372
|
]
|
|
@@ -10377,308 +10549,136 @@
|
|
|
10377
10549
|
"name": "getAnchor",
|
|
10378
10550
|
"privacy": "private"
|
|
10379
10551
|
},
|
|
10380
|
-
{
|
|
10381
|
-
"kind": "field",
|
|
10382
|
-
"name": "handleMediaQueryChange",
|
|
10383
|
-
"privacy": "private",
|
|
10384
|
-
"description": "Update the smallViewport flag to switch between \"sheet\" and \"floating\".\nautoUpdate is needed when a viewport gets larger and the popout is open."
|
|
10385
|
-
},
|
|
10386
|
-
{
|
|
10387
|
-
"kind": "field",
|
|
10388
|
-
"name": "open",
|
|
10389
|
-
"type": {
|
|
10390
|
-
"text": "boolean"
|
|
10391
|
-
},
|
|
10392
|
-
"default": "false",
|
|
10393
|
-
"description": "Controls whether the component is open or not.",
|
|
10394
|
-
"attribute": "open",
|
|
10395
|
-
"reflects": true,
|
|
10396
|
-
"inheritedFrom": {
|
|
10397
|
-
"name": "FloatingMixin",
|
|
10398
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10399
|
-
}
|
|
10400
|
-
},
|
|
10401
|
-
{
|
|
10402
|
-
"kind": "field",
|
|
10403
|
-
"name": "align",
|
|
10404
|
-
"type": {
|
|
10405
|
-
"text": "\"start\" | \"end\""
|
|
10406
|
-
},
|
|
10407
|
-
"default": "\"start\"",
|
|
10408
|
-
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
10409
|
-
"attribute": "align",
|
|
10410
|
-
"reflects": true,
|
|
10411
|
-
"inheritedFrom": {
|
|
10412
|
-
"name": "FloatingMixin",
|
|
10413
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10414
|
-
}
|
|
10415
|
-
},
|
|
10416
|
-
{
|
|
10417
|
-
"kind": "field",
|
|
10418
|
-
"name": "position",
|
|
10419
|
-
"type": {
|
|
10420
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10421
|
-
},
|
|
10422
|
-
"default": "\"block-end\"",
|
|
10423
|
-
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
|
|
10424
|
-
"attribute": "position",
|
|
10425
|
-
"reflects": true,
|
|
10426
|
-
"inheritedFrom": {
|
|
10427
|
-
"name": "FloatingMixin",
|
|
10428
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10429
|
-
}
|
|
10430
|
-
}
|
|
10431
|
-
],
|
|
10432
|
-
"events": [
|
|
10433
|
-
{
|
|
10434
|
-
"name": "open",
|
|
10435
|
-
"type": {
|
|
10436
|
-
"text": "NordEvent"
|
|
10437
|
-
},
|
|
10438
|
-
"description": "Dispatched when the popout is opened."
|
|
10439
|
-
},
|
|
10440
|
-
{
|
|
10441
|
-
"name": "close",
|
|
10442
|
-
"type": {
|
|
10443
|
-
"text": "NordEvent"
|
|
10444
|
-
},
|
|
10445
|
-
"description": "Dispatched when the popout is closed."
|
|
10446
|
-
}
|
|
10447
|
-
],
|
|
10448
|
-
"attributes": [
|
|
10449
|
-
{
|
|
10450
|
-
"name": "id",
|
|
10451
|
-
"type": {
|
|
10452
|
-
"text": "string"
|
|
10453
|
-
},
|
|
10454
|
-
"default": "\"\"",
|
|
10455
|
-
"description": "The id for the active element to reference via aria-controls.",
|
|
10456
|
-
"fieldName": "id"
|
|
10457
|
-
},
|
|
10458
|
-
{
|
|
10459
|
-
"name": "anchor",
|
|
10460
|
-
"type": {
|
|
10461
|
-
"text": "string | undefined"
|
|
10462
|
-
},
|
|
10463
|
-
"description": "Set an optional anchor element to align against, replacing the triggering element.",
|
|
10464
|
-
"fieldName": "anchor"
|
|
10465
|
-
},
|
|
10466
|
-
{
|
|
10467
|
-
"name": "open",
|
|
10468
|
-
"type": {
|
|
10469
|
-
"text": "boolean"
|
|
10470
|
-
},
|
|
10471
|
-
"default": "false",
|
|
10472
|
-
"description": "Controls whether the component is open or not.",
|
|
10473
|
-
"fieldName": "open",
|
|
10474
|
-
"inheritedFrom": {
|
|
10475
|
-
"name": "FloatingMixin",
|
|
10476
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10477
|
-
}
|
|
10478
|
-
},
|
|
10479
|
-
{
|
|
10480
|
-
"name": "align",
|
|
10481
|
-
"type": {
|
|
10482
|
-
"text": "\"start\" | \"end\""
|
|
10483
|
-
},
|
|
10484
|
-
"default": "\"start\"",
|
|
10485
|
-
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
10486
|
-
"fieldName": "align",
|
|
10487
|
-
"inheritedFrom": {
|
|
10488
|
-
"name": "FloatingMixin",
|
|
10489
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10490
|
-
}
|
|
10491
|
-
},
|
|
10492
|
-
{
|
|
10493
|
-
"name": "position",
|
|
10494
|
-
"type": {
|
|
10495
|
-
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10496
|
-
},
|
|
10497
|
-
"default": "\"block-end\"",
|
|
10498
|
-
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
|
|
10499
|
-
"fieldName": "position",
|
|
10500
|
-
"inheritedFrom": {
|
|
10501
|
-
"name": "FloatingMixin",
|
|
10502
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10503
|
-
}
|
|
10504
|
-
}
|
|
10505
|
-
],
|
|
10506
|
-
"mixins": [
|
|
10507
|
-
{
|
|
10508
|
-
"name": "FloatingMixin",
|
|
10509
|
-
"module": "/src/common/mixins/FloatingComponentMixin.js"
|
|
10510
|
-
}
|
|
10511
|
-
],
|
|
10512
|
-
"superclass": {
|
|
10513
|
-
"name": "LitElement",
|
|
10514
|
-
"package": "lit"
|
|
10515
|
-
},
|
|
10516
|
-
"localization": [],
|
|
10517
|
-
"status": "ready",
|
|
10518
|
-
"category": "overlay",
|
|
10519
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nPopout actions should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in popout actions, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending popout actions in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for popout actions:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\n---\n\n## Additional considerations\n\n- The popout component is a containing component, only providing a way to reveal and hide controls by using a single button.\n",
|
|
10520
|
-
"examples": [],
|
|
10521
|
-
"dependencies": [],
|
|
10522
|
-
"tagName": "nord-popout",
|
|
10523
|
-
"customElement": true
|
|
10524
|
-
}
|
|
10525
|
-
],
|
|
10526
|
-
"exports": [
|
|
10527
|
-
{
|
|
10528
|
-
"kind": "js",
|
|
10529
|
-
"name": "default",
|
|
10530
|
-
"declaration": {
|
|
10531
|
-
"name": "Popout",
|
|
10532
|
-
"module": "src/popout/Popout.ts"
|
|
10533
|
-
}
|
|
10534
|
-
},
|
|
10535
|
-
{
|
|
10536
|
-
"kind": "custom-element-definition",
|
|
10537
|
-
"name": "nord-popout",
|
|
10538
|
-
"declaration": {
|
|
10539
|
-
"name": "Popout",
|
|
10540
|
-
"module": "src/popout/Popout.ts"
|
|
10541
|
-
}
|
|
10542
|
-
}
|
|
10543
|
-
]
|
|
10544
|
-
},
|
|
10545
|
-
{
|
|
10546
|
-
"kind": "javascript-module",
|
|
10547
|
-
"path": "src/progress-bar/ProgressBar.ts",
|
|
10548
|
-
"declarations": [
|
|
10549
|
-
{
|
|
10550
|
-
"kind": "class",
|
|
10551
|
-
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
10552
|
-
"name": "ProgressBar",
|
|
10553
|
-
"cssProperties": [
|
|
10554
|
-
{
|
|
10555
|
-
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
10556
|
-
"name": "--n-progress-size",
|
|
10557
|
-
"default": "var(--n-space-s)"
|
|
10558
|
-
},
|
|
10559
|
-
{
|
|
10560
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
10561
|
-
"name": "--n-progress-border-radius",
|
|
10562
|
-
"default": "var(--n-border-radius-s)"
|
|
10563
|
-
},
|
|
10564
|
-
{
|
|
10565
|
-
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
10566
|
-
"name": "--n-progress-color",
|
|
10567
|
-
"default": "var(--n-color-accent)"
|
|
10568
|
-
}
|
|
10569
|
-
],
|
|
10570
|
-
"members": [
|
|
10571
|
-
{
|
|
10572
|
-
"kind": "field",
|
|
10573
|
-
"name": "value",
|
|
10574
|
-
"type": {
|
|
10575
|
-
"text": "number | undefined"
|
|
10576
|
-
},
|
|
10577
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10578
|
-
"attribute": "value",
|
|
10579
|
-
"reflects": true
|
|
10580
|
-
},
|
|
10581
|
-
{
|
|
10582
|
-
"kind": "field",
|
|
10583
|
-
"name": "max",
|
|
10584
|
-
"type": {
|
|
10585
|
-
"text": "number"
|
|
10586
|
-
},
|
|
10587
|
-
"default": "100",
|
|
10588
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10589
|
-
"attribute": "max",
|
|
10590
|
-
"reflects": true
|
|
10591
|
-
},
|
|
10592
|
-
{
|
|
10593
|
-
"kind": "field",
|
|
10594
|
-
"name": "label",
|
|
10595
|
-
"type": {
|
|
10596
|
-
"text": "string"
|
|
10597
|
-
},
|
|
10598
|
-
"default": "\"Current progress\"",
|
|
10599
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10600
|
-
"attribute": "label",
|
|
10601
|
-
"reflects": true
|
|
10552
|
+
{
|
|
10553
|
+
"kind": "field",
|
|
10554
|
+
"name": "handleMediaQueryChange",
|
|
10555
|
+
"privacy": "private",
|
|
10556
|
+
"description": "Update the smallViewport flag to switch between \"sheet\" and \"floating\".\nautoUpdate is needed when a viewport gets larger and the popout is open."
|
|
10602
10557
|
},
|
|
10603
10558
|
{
|
|
10604
10559
|
"kind": "field",
|
|
10605
|
-
"name": "
|
|
10606
|
-
"
|
|
10560
|
+
"name": "open",
|
|
10561
|
+
"type": {
|
|
10562
|
+
"text": "boolean"
|
|
10563
|
+
},
|
|
10564
|
+
"default": "false",
|
|
10565
|
+
"description": "Controls whether the component is open or not.",
|
|
10566
|
+
"attribute": "open",
|
|
10567
|
+
"reflects": true,
|
|
10607
10568
|
"inheritedFrom": {
|
|
10608
|
-
"name": "
|
|
10609
|
-
"module": "src/common/mixins/
|
|
10569
|
+
"name": "FloatingMixin",
|
|
10570
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10610
10571
|
}
|
|
10611
10572
|
},
|
|
10612
10573
|
{
|
|
10613
|
-
"kind": "
|
|
10614
|
-
"name": "
|
|
10615
|
-
"
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
"description": "An object which controls aspects of the focusing process."
|
|
10623
|
-
}
|
|
10624
|
-
],
|
|
10625
|
-
"description": "Programmatically move focus to the component.",
|
|
10574
|
+
"kind": "field",
|
|
10575
|
+
"name": "align",
|
|
10576
|
+
"type": {
|
|
10577
|
+
"text": "\"start\" | \"end\""
|
|
10578
|
+
},
|
|
10579
|
+
"default": "\"start\"",
|
|
10580
|
+
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
10581
|
+
"attribute": "align",
|
|
10582
|
+
"reflects": true,
|
|
10626
10583
|
"inheritedFrom": {
|
|
10627
|
-
"name": "
|
|
10628
|
-
"module": "src/common/mixins/
|
|
10584
|
+
"name": "FloatingMixin",
|
|
10585
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10629
10586
|
}
|
|
10630
10587
|
},
|
|
10631
10588
|
{
|
|
10632
|
-
"kind": "
|
|
10633
|
-
"name": "
|
|
10634
|
-
"
|
|
10589
|
+
"kind": "field",
|
|
10590
|
+
"name": "position",
|
|
10591
|
+
"type": {
|
|
10592
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10593
|
+
},
|
|
10594
|
+
"default": "\"block-end\"",
|
|
10595
|
+
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
|
|
10596
|
+
"attribute": "position",
|
|
10597
|
+
"reflects": true,
|
|
10635
10598
|
"inheritedFrom": {
|
|
10636
|
-
"name": "
|
|
10637
|
-
"module": "src/common/mixins/
|
|
10599
|
+
"name": "FloatingMixin",
|
|
10600
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10638
10601
|
}
|
|
10602
|
+
}
|
|
10603
|
+
],
|
|
10604
|
+
"events": [
|
|
10605
|
+
{
|
|
10606
|
+
"name": "open",
|
|
10607
|
+
"type": {
|
|
10608
|
+
"text": "NordEvent"
|
|
10609
|
+
},
|
|
10610
|
+
"description": "Dispatched when the popout is opened."
|
|
10639
10611
|
},
|
|
10640
10612
|
{
|
|
10641
|
-
"
|
|
10642
|
-
"
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10647
|
-
}
|
|
10613
|
+
"name": "close",
|
|
10614
|
+
"type": {
|
|
10615
|
+
"text": "NordEvent"
|
|
10616
|
+
},
|
|
10617
|
+
"description": "Dispatched when the popout is closed."
|
|
10648
10618
|
}
|
|
10649
10619
|
],
|
|
10650
10620
|
"attributes": [
|
|
10651
10621
|
{
|
|
10652
|
-
"name": "
|
|
10622
|
+
"name": "id",
|
|
10653
10623
|
"type": {
|
|
10654
|
-
"text": "
|
|
10624
|
+
"text": "string"
|
|
10655
10625
|
},
|
|
10656
|
-
"
|
|
10657
|
-
"
|
|
10626
|
+
"default": "\"\"",
|
|
10627
|
+
"description": "The id for the active element to reference via aria-controls.",
|
|
10628
|
+
"fieldName": "id"
|
|
10658
10629
|
},
|
|
10659
10630
|
{
|
|
10660
|
-
"name": "
|
|
10631
|
+
"name": "anchor",
|
|
10661
10632
|
"type": {
|
|
10662
|
-
"text": "
|
|
10633
|
+
"text": "string | undefined"
|
|
10663
10634
|
},
|
|
10664
|
-
"
|
|
10665
|
-
"
|
|
10666
|
-
"fieldName": "max"
|
|
10635
|
+
"description": "Set an optional anchor element to align against, replacing the triggering element.",
|
|
10636
|
+
"fieldName": "anchor"
|
|
10667
10637
|
},
|
|
10668
10638
|
{
|
|
10669
|
-
"name": "
|
|
10639
|
+
"name": "open",
|
|
10670
10640
|
"type": {
|
|
10671
|
-
"text": "
|
|
10641
|
+
"text": "boolean"
|
|
10672
10642
|
},
|
|
10673
|
-
"default": "
|
|
10674
|
-
"description": "
|
|
10675
|
-
"fieldName": "
|
|
10643
|
+
"default": "false",
|
|
10644
|
+
"description": "Controls whether the component is open or not.",
|
|
10645
|
+
"fieldName": "open",
|
|
10646
|
+
"inheritedFrom": {
|
|
10647
|
+
"name": "FloatingMixin",
|
|
10648
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10649
|
+
}
|
|
10650
|
+
},
|
|
10651
|
+
{
|
|
10652
|
+
"name": "align",
|
|
10653
|
+
"type": {
|
|
10654
|
+
"text": "\"start\" | \"end\""
|
|
10655
|
+
},
|
|
10656
|
+
"default": "\"start\"",
|
|
10657
|
+
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
10658
|
+
"fieldName": "align",
|
|
10659
|
+
"inheritedFrom": {
|
|
10660
|
+
"name": "FloatingMixin",
|
|
10661
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10662
|
+
}
|
|
10663
|
+
},
|
|
10664
|
+
{
|
|
10665
|
+
"name": "position",
|
|
10666
|
+
"type": {
|
|
10667
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\""
|
|
10668
|
+
},
|
|
10669
|
+
"default": "\"block-end\"",
|
|
10670
|
+
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.",
|
|
10671
|
+
"fieldName": "position",
|
|
10672
|
+
"inheritedFrom": {
|
|
10673
|
+
"name": "FloatingMixin",
|
|
10674
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
10675
|
+
}
|
|
10676
10676
|
}
|
|
10677
10677
|
],
|
|
10678
10678
|
"mixins": [
|
|
10679
10679
|
{
|
|
10680
|
-
"name": "
|
|
10681
|
-
"module": "/src/common/mixins/
|
|
10680
|
+
"name": "FloatingMixin",
|
|
10681
|
+
"module": "/src/common/mixins/FloatingComponentMixin.js"
|
|
10682
10682
|
}
|
|
10683
10683
|
],
|
|
10684
10684
|
"superclass": {
|
|
@@ -10687,11 +10687,11 @@
|
|
|
10687
10687
|
},
|
|
10688
10688
|
"localization": [],
|
|
10689
10689
|
"status": "ready",
|
|
10690
|
-
"category": "
|
|
10691
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to
|
|
10690
|
+
"category": "overlay",
|
|
10691
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always position popout next to the button or other interface element that toggles it.\n- Use a popout to contain controls or information that doesn’t need to be shown immediately.\n- Use a popout to contain items that will most likely not fit into the current view.\n- Use a clearly labelled button to reveal the popout.\n- Use the appropriate `aria-haspopup` and `role` attributes for both the toggle button and containing items. Please refer to the [MDN documentation on both role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#values) and [child role values](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup#associated_roles).\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide information inside a popout that is imperative to using the current view.\n- Don’t obscure other controls that are important with the popout.\n- Don’t allow the popout to be obscured by other controls or the outer bounds of the current view.\n</div>\n\n---\n\n## Content guidelines\n\nIf a popout contains actions, they should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nPopout actions should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in popout actions, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending popout actions in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for popout actions:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\n---\n\n## Additional considerations\n\n- The popout component is a containing component, only providing a way to reveal and hide controls by using a single button.\n",
|
|
10692
10692
|
"examples": [],
|
|
10693
10693
|
"dependencies": [],
|
|
10694
|
-
"tagName": "nord-
|
|
10694
|
+
"tagName": "nord-popout",
|
|
10695
10695
|
"customElement": true
|
|
10696
10696
|
}
|
|
10697
10697
|
],
|
|
@@ -10700,16 +10700,16 @@
|
|
|
10700
10700
|
"kind": "js",
|
|
10701
10701
|
"name": "default",
|
|
10702
10702
|
"declaration": {
|
|
10703
|
-
"name": "
|
|
10704
|
-
"module": "src/
|
|
10703
|
+
"name": "Popout",
|
|
10704
|
+
"module": "src/popout/Popout.ts"
|
|
10705
10705
|
}
|
|
10706
10706
|
},
|
|
10707
10707
|
{
|
|
10708
10708
|
"kind": "custom-element-definition",
|
|
10709
|
-
"name": "nord-
|
|
10709
|
+
"name": "nord-popout",
|
|
10710
10710
|
"declaration": {
|
|
10711
|
-
"name": "
|
|
10712
|
-
"module": "src/
|
|
10711
|
+
"name": "Popout",
|
|
10712
|
+
"module": "src/popout/Popout.ts"
|
|
10713
10713
|
}
|
|
10714
10714
|
}
|
|
10715
10715
|
]
|
|
@@ -13637,6 +13637,54 @@
|
|
|
13637
13637
|
}
|
|
13638
13638
|
]
|
|
13639
13639
|
},
|
|
13640
|
+
{
|
|
13641
|
+
"kind": "javascript-module",
|
|
13642
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
13643
|
+
"declarations": [
|
|
13644
|
+
{
|
|
13645
|
+
"kind": "class",
|
|
13646
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13647
|
+
"name": "TabPanel",
|
|
13648
|
+
"slots": [
|
|
13649
|
+
{
|
|
13650
|
+
"description": "The tab panel content.",
|
|
13651
|
+
"name": ""
|
|
13652
|
+
}
|
|
13653
|
+
],
|
|
13654
|
+
"members": [],
|
|
13655
|
+
"superclass": {
|
|
13656
|
+
"name": "LitElement",
|
|
13657
|
+
"package": "lit"
|
|
13658
|
+
},
|
|
13659
|
+
"localization": [],
|
|
13660
|
+
"status": "ready",
|
|
13661
|
+
"category": "navigation",
|
|
13662
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13663
|
+
"examples": [],
|
|
13664
|
+
"dependencies": [],
|
|
13665
|
+
"tagName": "nord-tab-panel",
|
|
13666
|
+
"customElement": true
|
|
13667
|
+
}
|
|
13668
|
+
],
|
|
13669
|
+
"exports": [
|
|
13670
|
+
{
|
|
13671
|
+
"kind": "js",
|
|
13672
|
+
"name": "default",
|
|
13673
|
+
"declaration": {
|
|
13674
|
+
"name": "TabPanel",
|
|
13675
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13676
|
+
}
|
|
13677
|
+
},
|
|
13678
|
+
{
|
|
13679
|
+
"kind": "custom-element-definition",
|
|
13680
|
+
"name": "nord-tab-panel",
|
|
13681
|
+
"declaration": {
|
|
13682
|
+
"name": "TabPanel",
|
|
13683
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13684
|
+
}
|
|
13685
|
+
}
|
|
13686
|
+
]
|
|
13687
|
+
},
|
|
13640
13688
|
{
|
|
13641
13689
|
"kind": "javascript-module",
|
|
13642
13690
|
"path": "src/tab-group/TabGroup.ts",
|
|
@@ -13883,54 +13931,6 @@
|
|
|
13883
13931
|
}
|
|
13884
13932
|
]
|
|
13885
13933
|
},
|
|
13886
|
-
{
|
|
13887
|
-
"kind": "javascript-module",
|
|
13888
|
-
"path": "src/tab-panel/TabPanel.ts",
|
|
13889
|
-
"declarations": [
|
|
13890
|
-
{
|
|
13891
|
-
"kind": "class",
|
|
13892
|
-
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13893
|
-
"name": "TabPanel",
|
|
13894
|
-
"slots": [
|
|
13895
|
-
{
|
|
13896
|
-
"description": "The tab panel content.",
|
|
13897
|
-
"name": ""
|
|
13898
|
-
}
|
|
13899
|
-
],
|
|
13900
|
-
"members": [],
|
|
13901
|
-
"superclass": {
|
|
13902
|
-
"name": "LitElement",
|
|
13903
|
-
"package": "lit"
|
|
13904
|
-
},
|
|
13905
|
-
"localization": [],
|
|
13906
|
-
"status": "ready",
|
|
13907
|
-
"category": "navigation",
|
|
13908
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13909
|
-
"examples": [],
|
|
13910
|
-
"dependencies": [],
|
|
13911
|
-
"tagName": "nord-tab-panel",
|
|
13912
|
-
"customElement": true
|
|
13913
|
-
}
|
|
13914
|
-
],
|
|
13915
|
-
"exports": [
|
|
13916
|
-
{
|
|
13917
|
-
"kind": "js",
|
|
13918
|
-
"name": "default",
|
|
13919
|
-
"declaration": {
|
|
13920
|
-
"name": "TabPanel",
|
|
13921
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13922
|
-
}
|
|
13923
|
-
},
|
|
13924
|
-
{
|
|
13925
|
-
"kind": "custom-element-definition",
|
|
13926
|
-
"name": "nord-tab-panel",
|
|
13927
|
-
"declaration": {
|
|
13928
|
-
"name": "TabPanel",
|
|
13929
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13930
|
-
}
|
|
13931
|
-
}
|
|
13932
|
-
]
|
|
13933
|
-
},
|
|
13934
13934
|
{
|
|
13935
13935
|
"kind": "javascript-module",
|
|
13936
13936
|
"path": "src/table/Table.ts",
|