@nordhealth/components 1.0.0-beta.5 → 1.0.0-beta.6
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 +920 -920
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/bundle.js +10 -10
- package/lib/bundle.js.map +1 -1
- package/lib/src/layout/Layout.d.ts +1 -2
- package/package.json +6 -6
package/custom-elements.json
CHANGED
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
],
|
|
394
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n"
|
|
394
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
"kind": "javascript-module",
|
|
@@ -800,566 +800,611 @@
|
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
"kind": "javascript-module",
|
|
803
|
-
"path": "src/
|
|
803
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
804
804
|
"declarations": [
|
|
805
805
|
{
|
|
806
806
|
"kind": "class",
|
|
807
|
-
"description": "
|
|
808
|
-
"name": "
|
|
807
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
808
|
+
"name": "Checkbox",
|
|
809
809
|
"slots": [
|
|
810
810
|
{
|
|
811
|
-
"description": "
|
|
812
|
-
"name": ""
|
|
811
|
+
"description": "Use when a label requires more than plain text.",
|
|
812
|
+
"name": "label"
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
"description": "Optional slot that holds
|
|
816
|
-
"name": "
|
|
815
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
816
|
+
"name": "hint"
|
|
817
817
|
},
|
|
818
818
|
{
|
|
819
|
-
"description": "Optional slot that holds
|
|
820
|
-
"name": "
|
|
819
|
+
"description": "Optional slot that holds error text for the input.",
|
|
820
|
+
"name": "error"
|
|
821
821
|
}
|
|
822
822
|
],
|
|
823
823
|
"members": [
|
|
824
824
|
{
|
|
825
825
|
"kind": "field",
|
|
826
|
-
"name": "
|
|
827
|
-
"privacy": "
|
|
828
|
-
"
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
"name": "footerSlot",
|
|
833
|
-
"privacy": "private",
|
|
834
|
-
"default": "new SlotController(this, \"footer\")"
|
|
826
|
+
"name": "formValue",
|
|
827
|
+
"privacy": "protected",
|
|
828
|
+
"inheritedFrom": {
|
|
829
|
+
"name": "FormAssociatedMixin",
|
|
830
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
831
|
+
}
|
|
835
832
|
},
|
|
836
833
|
{
|
|
837
834
|
"kind": "field",
|
|
838
|
-
"name": "
|
|
835
|
+
"name": "checked",
|
|
839
836
|
"type": {
|
|
840
|
-
"text": "
|
|
837
|
+
"text": "boolean"
|
|
841
838
|
},
|
|
842
|
-
"default": "
|
|
843
|
-
"description": "Controls the
|
|
844
|
-
"attribute": "
|
|
845
|
-
"reflects": true
|
|
839
|
+
"default": "false",
|
|
840
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
841
|
+
"attribute": "checked"
|
|
846
842
|
},
|
|
847
843
|
{
|
|
848
|
-
"kind": "
|
|
849
|
-
"name": "
|
|
850
|
-
"
|
|
851
|
-
|
|
844
|
+
"kind": "method",
|
|
845
|
+
"name": "handleChange",
|
|
846
|
+
"privacy": "protected",
|
|
847
|
+
"return": {
|
|
848
|
+
"type": {
|
|
849
|
+
"text": "void"
|
|
850
|
+
}
|
|
852
851
|
},
|
|
853
|
-
"
|
|
854
|
-
|
|
855
|
-
|
|
852
|
+
"parameters": [
|
|
853
|
+
{
|
|
854
|
+
"name": "e",
|
|
855
|
+
"type": {
|
|
856
|
+
"text": "Event"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
],
|
|
856
860
|
"inheritedFrom": {
|
|
857
|
-
"name": "
|
|
858
|
-
"module": "src/common/mixins/
|
|
861
|
+
"name": "FormAssociatedMixin",
|
|
862
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
859
863
|
}
|
|
860
|
-
}
|
|
861
|
-
],
|
|
862
|
-
"attributes": [
|
|
863
|
-
{
|
|
864
|
-
"name": "padding",
|
|
865
|
-
"type": {
|
|
866
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
867
|
-
},
|
|
868
|
-
"default": "\"m\"",
|
|
869
|
-
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
870
|
-
"fieldName": "padding"
|
|
871
|
-
}
|
|
872
|
-
],
|
|
873
|
-
"mixins": [
|
|
874
|
-
{
|
|
875
|
-
"name": "DraftComponentMixin",
|
|
876
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
877
|
-
}
|
|
878
|
-
],
|
|
879
|
-
"superclass": {
|
|
880
|
-
"name": "LitElement",
|
|
881
|
-
"package": "lit"
|
|
882
|
-
},
|
|
883
|
-
"status": "draft",
|
|
884
|
-
"category": "structure",
|
|
885
|
-
"tagName": "nord-card",
|
|
886
|
-
"customElement": true
|
|
887
|
-
}
|
|
888
|
-
],
|
|
889
|
-
"exports": [
|
|
890
|
-
{
|
|
891
|
-
"kind": "js",
|
|
892
|
-
"name": "default",
|
|
893
|
-
"declaration": {
|
|
894
|
-
"name": "Card",
|
|
895
|
-
"module": "src/card/Card.ts"
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
"kind": "custom-element-definition",
|
|
900
|
-
"name": "nord-card",
|
|
901
|
-
"declaration": {
|
|
902
|
-
"name": "Card",
|
|
903
|
-
"module": "src/card/Card.ts"
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
],
|
|
907
|
-
"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\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\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"
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"kind": "javascript-module",
|
|
911
|
-
"path": "src/calendar/Calendar.ts",
|
|
912
|
-
"declarations": [
|
|
913
|
-
{
|
|
914
|
-
"kind": "class",
|
|
915
|
-
"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.",
|
|
916
|
-
"name": "Calendar",
|
|
917
|
-
"members": [
|
|
918
|
-
{
|
|
919
|
-
"kind": "field",
|
|
920
|
-
"name": "dialogLabelId",
|
|
921
|
-
"type": {
|
|
922
|
-
"text": "string"
|
|
923
|
-
},
|
|
924
|
-
"privacy": "private",
|
|
925
|
-
"default": "\"dialog-header\""
|
|
926
864
|
},
|
|
927
865
|
{
|
|
928
866
|
"kind": "field",
|
|
929
|
-
"name": "
|
|
930
|
-
"
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
867
|
+
"name": "labelSlot",
|
|
868
|
+
"privacy": "protected",
|
|
869
|
+
"default": "new SlotController(this, \"label\")",
|
|
870
|
+
"inheritedFrom": {
|
|
871
|
+
"name": "FormAssociatedMixin",
|
|
872
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
873
|
+
}
|
|
934
874
|
},
|
|
935
875
|
{
|
|
936
876
|
"kind": "field",
|
|
937
|
-
"name": "
|
|
938
|
-
"
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
877
|
+
"name": "errorSlot",
|
|
878
|
+
"privacy": "protected",
|
|
879
|
+
"default": "new SlotController(this, \"error\")",
|
|
880
|
+
"inheritedFrom": {
|
|
881
|
+
"name": "FormAssociatedMixin",
|
|
882
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
883
|
+
}
|
|
942
884
|
},
|
|
943
885
|
{
|
|
944
886
|
"kind": "field",
|
|
945
|
-
"name": "
|
|
946
|
-
"privacy": "
|
|
947
|
-
"default": "new
|
|
887
|
+
"name": "hintSlot",
|
|
888
|
+
"privacy": "protected",
|
|
889
|
+
"default": "new SlotController(this, \"hint\")",
|
|
890
|
+
"inheritedFrom": {
|
|
891
|
+
"name": "FormAssociatedMixin",
|
|
892
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
893
|
+
}
|
|
948
894
|
},
|
|
949
895
|
{
|
|
950
896
|
"kind": "field",
|
|
951
|
-
"name": "
|
|
952
|
-
"privacy": "
|
|
953
|
-
"default": "new
|
|
897
|
+
"name": "formData",
|
|
898
|
+
"privacy": "protected",
|
|
899
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
900
|
+
"inheritedFrom": {
|
|
901
|
+
"name": "FormAssociatedMixin",
|
|
902
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
903
|
+
}
|
|
954
904
|
},
|
|
955
905
|
{
|
|
956
906
|
"kind": "field",
|
|
957
|
-
"name": "
|
|
958
|
-
"
|
|
907
|
+
"name": "inputId",
|
|
908
|
+
"type": {
|
|
909
|
+
"text": "string"
|
|
910
|
+
},
|
|
911
|
+
"privacy": "protected",
|
|
912
|
+
"default": "\"input\"",
|
|
913
|
+
"inheritedFrom": {
|
|
914
|
+
"name": "FormAssociatedMixin",
|
|
915
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
916
|
+
}
|
|
959
917
|
},
|
|
960
918
|
{
|
|
961
919
|
"kind": "field",
|
|
962
|
-
"name": "
|
|
920
|
+
"name": "errorId",
|
|
963
921
|
"type": {
|
|
964
|
-
"text": "
|
|
922
|
+
"text": "string"
|
|
965
923
|
},
|
|
966
|
-
"privacy": "
|
|
967
|
-
"
|
|
924
|
+
"privacy": "protected",
|
|
925
|
+
"default": "\"error\"",
|
|
926
|
+
"inheritedFrom": {
|
|
927
|
+
"name": "FormAssociatedMixin",
|
|
928
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
929
|
+
}
|
|
968
930
|
},
|
|
969
931
|
{
|
|
970
932
|
"kind": "field",
|
|
971
|
-
"name": "
|
|
933
|
+
"name": "hintId",
|
|
972
934
|
"type": {
|
|
973
|
-
"text": "
|
|
935
|
+
"text": "string"
|
|
974
936
|
},
|
|
975
|
-
"
|
|
937
|
+
"privacy": "protected",
|
|
938
|
+
"default": "\"hint\"",
|
|
939
|
+
"inheritedFrom": {
|
|
940
|
+
"name": "FormAssociatedMixin",
|
|
941
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
942
|
+
}
|
|
976
943
|
},
|
|
977
944
|
{
|
|
978
945
|
"kind": "field",
|
|
979
|
-
"name": "
|
|
946
|
+
"name": "label",
|
|
980
947
|
"type": {
|
|
981
948
|
"text": "string"
|
|
982
949
|
},
|
|
983
950
|
"default": "\"\"",
|
|
984
|
-
"description": "
|
|
985
|
-
"attribute": "
|
|
951
|
+
"description": "Label for the input.",
|
|
952
|
+
"attribute": "label",
|
|
953
|
+
"inheritedFrom": {
|
|
954
|
+
"name": "FormAssociatedMixin",
|
|
955
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
956
|
+
}
|
|
986
957
|
},
|
|
987
958
|
{
|
|
988
959
|
"kind": "field",
|
|
989
|
-
"name": "
|
|
960
|
+
"name": "hint",
|
|
990
961
|
"type": {
|
|
991
|
-
"text": "
|
|
962
|
+
"text": "string | undefined"
|
|
992
963
|
},
|
|
993
|
-
"description": "
|
|
994
|
-
"attribute": "
|
|
964
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
965
|
+
"attribute": "hint",
|
|
966
|
+
"inheritedFrom": {
|
|
967
|
+
"name": "FormAssociatedMixin",
|
|
968
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
969
|
+
}
|
|
995
970
|
},
|
|
996
971
|
{
|
|
997
972
|
"kind": "field",
|
|
998
|
-
"name": "
|
|
973
|
+
"name": "hideLabel",
|
|
999
974
|
"type": {
|
|
1000
|
-
"text": "
|
|
975
|
+
"text": "boolean"
|
|
1001
976
|
},
|
|
1002
|
-
"default": "
|
|
1003
|
-
"description": "
|
|
1004
|
-
"attribute": "
|
|
977
|
+
"default": "false",
|
|
978
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
979
|
+
"attribute": "hide-label",
|
|
980
|
+
"inheritedFrom": {
|
|
981
|
+
"name": "FormAssociatedMixin",
|
|
982
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
983
|
+
}
|
|
1005
984
|
},
|
|
1006
985
|
{
|
|
1007
986
|
"kind": "field",
|
|
1008
|
-
"name": "
|
|
987
|
+
"name": "placeholder",
|
|
1009
988
|
"type": {
|
|
1010
|
-
"text": "string"
|
|
989
|
+
"text": "string | undefined"
|
|
1011
990
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
991
|
+
"description": "Placeholder text to display within the input.",
|
|
992
|
+
"attribute": "placeholder",
|
|
993
|
+
"inheritedFrom": {
|
|
994
|
+
"name": "FormAssociatedMixin",
|
|
995
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
996
|
+
}
|
|
1015
997
|
},
|
|
1016
998
|
{
|
|
1017
999
|
"kind": "field",
|
|
1018
|
-
"name": "
|
|
1000
|
+
"name": "error",
|
|
1019
1001
|
"type": {
|
|
1020
|
-
"text": "
|
|
1002
|
+
"text": "string | undefined"
|
|
1021
1003
|
},
|
|
1022
|
-
"
|
|
1023
|
-
"
|
|
1004
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1005
|
+
"attribute": "error",
|
|
1006
|
+
"inheritedFrom": {
|
|
1007
|
+
"name": "FormAssociatedMixin",
|
|
1008
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1009
|
+
}
|
|
1024
1010
|
},
|
|
1025
1011
|
{
|
|
1026
1012
|
"kind": "field",
|
|
1027
|
-
"name": "
|
|
1013
|
+
"name": "required",
|
|
1028
1014
|
"type": {
|
|
1029
1015
|
"text": "boolean"
|
|
1030
1016
|
},
|
|
1031
|
-
"
|
|
1032
|
-
"
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
"default": "new Date()"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"kind": "method",
|
|
1042
|
-
"name": "focus",
|
|
1043
|
-
"parameters": [
|
|
1044
|
-
{
|
|
1045
|
-
"name": "options",
|
|
1046
|
-
"optional": true,
|
|
1047
|
-
"type": {
|
|
1048
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
]
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"kind": "method",
|
|
1055
|
-
"name": "createDateFormatter",
|
|
1056
|
-
"privacy": "private"
|
|
1017
|
+
"default": "false",
|
|
1018
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1019
|
+
"attribute": "required",
|
|
1020
|
+
"inheritedFrom": {
|
|
1021
|
+
"name": "FormAssociatedMixin",
|
|
1022
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1023
|
+
}
|
|
1057
1024
|
},
|
|
1058
1025
|
{
|
|
1059
1026
|
"kind": "field",
|
|
1060
|
-
"name": "
|
|
1061
|
-
"
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
]
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "method",
|
|
1078
|
-
"name": "addMonths",
|
|
1079
|
-
"privacy": "private",
|
|
1080
|
-
"parameters": [
|
|
1081
|
-
{
|
|
1082
|
-
"name": "months",
|
|
1083
|
-
"type": {
|
|
1084
|
-
"text": "number"
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
]
|
|
1027
|
+
"name": "expand",
|
|
1028
|
+
"type": {
|
|
1029
|
+
"text": "boolean"
|
|
1030
|
+
},
|
|
1031
|
+
"default": "false",
|
|
1032
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1033
|
+
"attribute": "expand",
|
|
1034
|
+
"reflects": true,
|
|
1035
|
+
"inheritedFrom": {
|
|
1036
|
+
"name": "FormAssociatedMixin",
|
|
1037
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1038
|
+
}
|
|
1088
1039
|
},
|
|
1089
1040
|
{
|
|
1090
1041
|
"kind": "method",
|
|
1091
|
-
"name": "
|
|
1092
|
-
"privacy": "
|
|
1042
|
+
"name": "handleInput",
|
|
1043
|
+
"privacy": "protected",
|
|
1093
1044
|
"parameters": [
|
|
1094
1045
|
{
|
|
1095
|
-
"name": "
|
|
1046
|
+
"name": "e",
|
|
1096
1047
|
"type": {
|
|
1097
|
-
"text": "
|
|
1048
|
+
"text": "Event"
|
|
1098
1049
|
}
|
|
1099
1050
|
}
|
|
1100
|
-
]
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
"privacy": "private"
|
|
1051
|
+
],
|
|
1052
|
+
"inheritedFrom": {
|
|
1053
|
+
"name": "FormAssociatedMixin",
|
|
1054
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1055
|
+
}
|
|
1106
1056
|
},
|
|
1107
1057
|
{
|
|
1108
1058
|
"kind": "method",
|
|
1109
|
-
"name": "
|
|
1110
|
-
"privacy": "
|
|
1059
|
+
"name": "renderLabel",
|
|
1060
|
+
"privacy": "protected",
|
|
1061
|
+
"inheritedFrom": {
|
|
1062
|
+
"name": "FormAssociatedMixin",
|
|
1063
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1064
|
+
}
|
|
1111
1065
|
},
|
|
1112
1066
|
{
|
|
1113
1067
|
"kind": "method",
|
|
1114
|
-
"name": "
|
|
1115
|
-
"privacy": "
|
|
1116
|
-
"
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
"text": "number"
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
]
|
|
1068
|
+
"name": "renderError",
|
|
1069
|
+
"privacy": "protected",
|
|
1070
|
+
"inheritedFrom": {
|
|
1071
|
+
"name": "FormAssociatedMixin",
|
|
1072
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1073
|
+
}
|
|
1124
1074
|
},
|
|
1125
1075
|
{
|
|
1126
1076
|
"kind": "method",
|
|
1127
|
-
"name": "
|
|
1128
|
-
"privacy": "
|
|
1129
|
-
"
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
"text": "number"
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
]
|
|
1077
|
+
"name": "getDescribedBy",
|
|
1078
|
+
"privacy": "protected",
|
|
1079
|
+
"inheritedFrom": {
|
|
1080
|
+
"name": "FormAssociatedMixin",
|
|
1081
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1082
|
+
}
|
|
1137
1083
|
},
|
|
1138
1084
|
{
|
|
1139
1085
|
"kind": "method",
|
|
1140
|
-
"name": "
|
|
1141
|
-
"privacy": "
|
|
1142
|
-
"
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
"text": "Date"
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
]
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
"kind": "field",
|
|
1153
|
-
"name": "handleMonthSelect",
|
|
1154
|
-
"privacy": "private"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"kind": "field",
|
|
1158
|
-
"name": "handleYearSelect",
|
|
1159
|
-
"privacy": "private"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
"kind": "field",
|
|
1163
|
-
"name": "handleNextMonthClick",
|
|
1164
|
-
"privacy": "private"
|
|
1165
|
-
},
|
|
1166
|
-
{
|
|
1167
|
-
"kind": "field",
|
|
1168
|
-
"name": "handlePreviousMonthClick",
|
|
1169
|
-
"privacy": "private"
|
|
1086
|
+
"name": "getInvalid",
|
|
1087
|
+
"privacy": "protected",
|
|
1088
|
+
"inheritedFrom": {
|
|
1089
|
+
"name": "FormAssociatedMixin",
|
|
1090
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1091
|
+
}
|
|
1170
1092
|
},
|
|
1171
1093
|
{
|
|
1172
1094
|
"kind": "field",
|
|
1173
|
-
"name": "
|
|
1174
|
-
"privacy": "
|
|
1095
|
+
"name": "hasHint",
|
|
1096
|
+
"privacy": "protected",
|
|
1097
|
+
"inheritedFrom": {
|
|
1098
|
+
"name": "FormAssociatedMixin",
|
|
1099
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1100
|
+
}
|
|
1175
1101
|
},
|
|
1176
1102
|
{
|
|
1177
1103
|
"kind": "field",
|
|
1178
|
-
"name": "
|
|
1179
|
-
"privacy": "
|
|
1104
|
+
"name": "hasError",
|
|
1105
|
+
"privacy": "protected",
|
|
1106
|
+
"inheritedFrom": {
|
|
1107
|
+
"name": "FormAssociatedMixin",
|
|
1108
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1109
|
+
}
|
|
1180
1110
|
},
|
|
1181
1111
|
{
|
|
1182
1112
|
"kind": "field",
|
|
1183
|
-
"name": "
|
|
1113
|
+
"name": "disabled",
|
|
1184
1114
|
"type": {
|
|
1185
1115
|
"text": "boolean"
|
|
1186
1116
|
},
|
|
1187
|
-
"privacy": "private",
|
|
1188
|
-
"static": true,
|
|
1189
1117
|
"default": "false",
|
|
1118
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1119
|
+
"attribute": "disabled",
|
|
1120
|
+
"reflects": true,
|
|
1190
1121
|
"inheritedFrom": {
|
|
1191
|
-
"name": "
|
|
1192
|
-
"module": "src/common/mixins/
|
|
1122
|
+
"name": "InputMixin",
|
|
1123
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1193
1124
|
}
|
|
1194
|
-
}
|
|
1195
|
-
],
|
|
1196
|
-
"attributes": [
|
|
1197
|
-
{
|
|
1198
|
-
"name": "value",
|
|
1199
|
-
"type": {
|
|
1200
|
-
"text": "string"
|
|
1201
|
-
},
|
|
1202
|
-
"default": "\"\"",
|
|
1203
|
-
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1204
|
-
"fieldName": "value"
|
|
1205
1125
|
},
|
|
1206
1126
|
{
|
|
1207
|
-
"
|
|
1127
|
+
"kind": "field",
|
|
1128
|
+
"name": "name",
|
|
1208
1129
|
"type": {
|
|
1209
|
-
"text": "
|
|
1130
|
+
"text": "string | undefined"
|
|
1210
1131
|
},
|
|
1211
|
-
"description": "
|
|
1212
|
-
"
|
|
1132
|
+
"description": "The name of the form component.",
|
|
1133
|
+
"attribute": "name",
|
|
1134
|
+
"inheritedFrom": {
|
|
1135
|
+
"name": "InputMixin",
|
|
1136
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1137
|
+
}
|
|
1213
1138
|
},
|
|
1214
1139
|
{
|
|
1215
|
-
"
|
|
1140
|
+
"kind": "field",
|
|
1141
|
+
"name": "value",
|
|
1216
1142
|
"type": {
|
|
1217
1143
|
"text": "string"
|
|
1218
1144
|
},
|
|
1219
1145
|
"default": "\"\"",
|
|
1220
|
-
"description": "
|
|
1221
|
-
"
|
|
1146
|
+
"description": "The value of the form component.",
|
|
1147
|
+
"attribute": "value",
|
|
1148
|
+
"inheritedFrom": {
|
|
1149
|
+
"name": "InputMixin",
|
|
1150
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1151
|
+
}
|
|
1222
1152
|
},
|
|
1223
1153
|
{
|
|
1224
|
-
"
|
|
1225
|
-
"
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
"
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
"mixins": [
|
|
1154
|
+
"kind": "field",
|
|
1155
|
+
"name": "form",
|
|
1156
|
+
"privacy": "protected",
|
|
1157
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
1158
|
+
"inheritedFrom": {
|
|
1159
|
+
"name": "InputMixin",
|
|
1160
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1234
1163
|
{
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1164
|
+
"kind": "field",
|
|
1165
|
+
"name": "focusableRef",
|
|
1166
|
+
"privacy": "protected",
|
|
1167
|
+
"inheritedFrom": {
|
|
1168
|
+
"name": "FocusableMixin",
|
|
1169
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "method",
|
|
1174
|
+
"name": "focus",
|
|
1175
|
+
"parameters": [
|
|
1176
|
+
{
|
|
1177
|
+
"name": "options",
|
|
1178
|
+
"optional": true,
|
|
1179
|
+
"type": {
|
|
1180
|
+
"text": "FocusOptions"
|
|
1181
|
+
},
|
|
1182
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"description": "Programmatically move focus to the component.",
|
|
1186
|
+
"inheritedFrom": {
|
|
1187
|
+
"name": "FocusableMixin",
|
|
1188
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"kind": "method",
|
|
1193
|
+
"name": "blur",
|
|
1194
|
+
"description": "Programmatically remove focus from the component.",
|
|
1195
|
+
"inheritedFrom": {
|
|
1196
|
+
"name": "FocusableMixin",
|
|
1197
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"kind": "method",
|
|
1202
|
+
"name": "click",
|
|
1203
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1204
|
+
"inheritedFrom": {
|
|
1205
|
+
"name": "FocusableMixin",
|
|
1206
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"kind": "field",
|
|
1211
|
+
"name": "_warningLogged",
|
|
1212
|
+
"type": {
|
|
1213
|
+
"text": "boolean"
|
|
1214
|
+
},
|
|
1215
|
+
"privacy": "private",
|
|
1216
|
+
"static": true,
|
|
1217
|
+
"default": "false",
|
|
1218
|
+
"inheritedFrom": {
|
|
1219
|
+
"name": "DraftComponentMixin",
|
|
1220
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1221
|
+
}
|
|
1237
1222
|
}
|
|
1238
1223
|
],
|
|
1239
|
-
"
|
|
1240
|
-
"name": "LitElement",
|
|
1241
|
-
"package": "lit"
|
|
1242
|
-
},
|
|
1243
|
-
"status": "draft",
|
|
1244
|
-
"category": "list",
|
|
1245
|
-
"tagName": "nord-calendar",
|
|
1246
|
-
"customElement": true
|
|
1247
|
-
}
|
|
1248
|
-
],
|
|
1249
|
-
"exports": [
|
|
1250
|
-
{
|
|
1251
|
-
"kind": "js",
|
|
1252
|
-
"name": "default",
|
|
1253
|
-
"declaration": {
|
|
1254
|
-
"name": "Calendar",
|
|
1255
|
-
"module": "src/calendar/Calendar.ts"
|
|
1256
|
-
}
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"kind": "custom-element-definition",
|
|
1260
|
-
"name": "nord-calendar",
|
|
1261
|
-
"declaration": {
|
|
1262
|
-
"name": "Calendar",
|
|
1263
|
-
"module": "src/calendar/Calendar.ts"
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
],
|
|
1267
|
-
"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"
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
"kind": "javascript-module",
|
|
1271
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
1272
|
-
"declarations": [
|
|
1273
|
-
{
|
|
1274
|
-
"kind": "class",
|
|
1275
|
-
"description": "",
|
|
1276
|
-
"name": "DateSelectEvent",
|
|
1277
|
-
"members": [
|
|
1224
|
+
"attributes": [
|
|
1278
1225
|
{
|
|
1279
|
-
"
|
|
1280
|
-
"
|
|
1226
|
+
"name": "checked",
|
|
1227
|
+
"type": {
|
|
1228
|
+
"text": "boolean"
|
|
1229
|
+
},
|
|
1230
|
+
"default": "false",
|
|
1231
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1232
|
+
"fieldName": "checked"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "label",
|
|
1281
1236
|
"type": {
|
|
1282
1237
|
"text": "string"
|
|
1283
1238
|
},
|
|
1284
|
-
"
|
|
1285
|
-
"
|
|
1239
|
+
"default": "\"\"",
|
|
1240
|
+
"description": "Label for the input.",
|
|
1241
|
+
"fieldName": "label",
|
|
1242
|
+
"inheritedFrom": {
|
|
1243
|
+
"name": "FormAssociatedMixin",
|
|
1244
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1245
|
+
}
|
|
1286
1246
|
},
|
|
1287
1247
|
{
|
|
1288
|
-
"
|
|
1289
|
-
"name": "date",
|
|
1248
|
+
"name": "hint",
|
|
1290
1249
|
"type": {
|
|
1291
|
-
"text": "
|
|
1250
|
+
"text": "string | undefined"
|
|
1292
1251
|
},
|
|
1293
|
-
"
|
|
1252
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1253
|
+
"fieldName": "hint",
|
|
1254
|
+
"inheritedFrom": {
|
|
1255
|
+
"name": "FormAssociatedMixin",
|
|
1256
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "hide-label",
|
|
1261
|
+
"type": {
|
|
1262
|
+
"text": "boolean"
|
|
1263
|
+
},
|
|
1264
|
+
"default": "false",
|
|
1265
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1266
|
+
"fieldName": "hideLabel",
|
|
1267
|
+
"inheritedFrom": {
|
|
1268
|
+
"name": "FormAssociatedMixin",
|
|
1269
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "placeholder",
|
|
1274
|
+
"type": {
|
|
1275
|
+
"text": "string | undefined"
|
|
1276
|
+
},
|
|
1277
|
+
"description": "Placeholder text to display within the input.",
|
|
1278
|
+
"fieldName": "placeholder",
|
|
1279
|
+
"inheritedFrom": {
|
|
1280
|
+
"name": "FormAssociatedMixin",
|
|
1281
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"name": "error",
|
|
1286
|
+
"type": {
|
|
1287
|
+
"text": "string | undefined"
|
|
1288
|
+
},
|
|
1289
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1290
|
+
"fieldName": "error",
|
|
1291
|
+
"inheritedFrom": {
|
|
1292
|
+
"name": "FormAssociatedMixin",
|
|
1293
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "required",
|
|
1298
|
+
"type": {
|
|
1299
|
+
"text": "boolean"
|
|
1300
|
+
},
|
|
1301
|
+
"default": "false",
|
|
1302
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1303
|
+
"fieldName": "required",
|
|
1304
|
+
"inheritedFrom": {
|
|
1305
|
+
"name": "FormAssociatedMixin",
|
|
1306
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "expand",
|
|
1311
|
+
"type": {
|
|
1312
|
+
"text": "boolean"
|
|
1313
|
+
},
|
|
1314
|
+
"default": "false",
|
|
1315
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1316
|
+
"fieldName": "expand",
|
|
1317
|
+
"inheritedFrom": {
|
|
1318
|
+
"name": "FormAssociatedMixin",
|
|
1319
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
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
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
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
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
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
|
+
}
|
|
1294
1359
|
}
|
|
1295
1360
|
],
|
|
1296
|
-
"
|
|
1297
|
-
"name": "NordEvent",
|
|
1298
|
-
"module": "/src/common/events.js"
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
],
|
|
1302
|
-
"exports": [
|
|
1303
|
-
{
|
|
1304
|
-
"kind": "js",
|
|
1305
|
-
"name": "DateSelectEvent",
|
|
1306
|
-
"declaration": {
|
|
1307
|
-
"name": "DateSelectEvent",
|
|
1308
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
],
|
|
1312
|
-
"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"
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
"kind": "javascript-module",
|
|
1316
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
1317
|
-
"declarations": [
|
|
1318
|
-
{
|
|
1319
|
-
"kind": "variable",
|
|
1320
|
-
"name": "localization",
|
|
1321
|
-
"type": {
|
|
1322
|
-
"text": "CalendarLocalizedText"
|
|
1323
|
-
},
|
|
1324
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
1325
|
-
}
|
|
1326
|
-
],
|
|
1327
|
-
"exports": [
|
|
1328
|
-
{
|
|
1329
|
-
"kind": "js",
|
|
1330
|
-
"name": "default",
|
|
1331
|
-
"declaration": {
|
|
1332
|
-
"name": "localization",
|
|
1333
|
-
"module": "src/calendar/calendar-localization.ts"
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
],
|
|
1337
|
-
"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"
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
"kind": "javascript-module",
|
|
1341
|
-
"path": "src/calendar/month-view.ts",
|
|
1342
|
-
"declarations": [
|
|
1343
|
-
{
|
|
1344
|
-
"kind": "function",
|
|
1345
|
-
"name": "dayView",
|
|
1346
|
-
"parameters": [
|
|
1361
|
+
"mixins": [
|
|
1347
1362
|
{
|
|
1348
|
-
"name": "
|
|
1363
|
+
"name": "FormAssociatedMixin",
|
|
1364
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"name": "InputMixin",
|
|
1368
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "FocusableMixin",
|
|
1372
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "DraftComponentMixin",
|
|
1376
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1379
|
+
"superclass": {
|
|
1380
|
+
"name": "LitElement",
|
|
1381
|
+
"package": "lit"
|
|
1382
|
+
},
|
|
1383
|
+
"status": "draft",
|
|
1384
|
+
"category": "form",
|
|
1385
|
+
"tagName": "nord-checkbox",
|
|
1386
|
+
"customElement": true,
|
|
1387
|
+
"events": [
|
|
1388
|
+
{
|
|
1389
|
+
"name": "input",
|
|
1349
1390
|
"type": {
|
|
1350
|
-
"text": "
|
|
1391
|
+
"text": "NordEvent"
|
|
1392
|
+
},
|
|
1393
|
+
"description": "Fired as the user types into the input.",
|
|
1394
|
+
"inheritedFrom": {
|
|
1395
|
+
"name": "FormAssociatedMixin",
|
|
1396
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1351
1397
|
}
|
|
1352
|
-
}
|
|
1353
|
-
]
|
|
1354
|
-
},
|
|
1355
|
-
{
|
|
1356
|
-
"kind": "function",
|
|
1357
|
-
"name": "monthView",
|
|
1358
|
-
"parameters": [
|
|
1398
|
+
},
|
|
1359
1399
|
{
|
|
1360
|
-
"name": "
|
|
1400
|
+
"name": "change",
|
|
1361
1401
|
"type": {
|
|
1362
|
-
"text": "
|
|
1402
|
+
"text": "NordEvent"
|
|
1403
|
+
},
|
|
1404
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
1405
|
+
"inheritedFrom": {
|
|
1406
|
+
"name": "FormAssociatedMixin",
|
|
1407
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1363
1408
|
}
|
|
1364
1409
|
}
|
|
1365
1410
|
]
|
|
@@ -1368,430 +1413,294 @@
|
|
|
1368
1413
|
"exports": [
|
|
1369
1414
|
{
|
|
1370
1415
|
"kind": "js",
|
|
1371
|
-
"name": "
|
|
1416
|
+
"name": "default",
|
|
1372
1417
|
"declaration": {
|
|
1373
|
-
"name": "
|
|
1374
|
-
"module": "src/
|
|
1418
|
+
"name": "Checkbox",
|
|
1419
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1375
1420
|
}
|
|
1376
1421
|
},
|
|
1377
1422
|
{
|
|
1378
|
-
"kind": "
|
|
1379
|
-
"name": "
|
|
1423
|
+
"kind": "custom-element-definition",
|
|
1424
|
+
"name": "nord-checkbox",
|
|
1380
1425
|
"declaration": {
|
|
1381
|
-
"name": "
|
|
1382
|
-
"module": "src/
|
|
1426
|
+
"name": "Checkbox",
|
|
1427
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1383
1428
|
}
|
|
1384
1429
|
}
|
|
1385
1430
|
],
|
|
1386
|
-
"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
|
|
1431
|
+
"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 for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox 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\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n"
|
|
1387
1432
|
},
|
|
1388
1433
|
{
|
|
1389
1434
|
"kind": "javascript-module",
|
|
1390
|
-
"path": "src/
|
|
1435
|
+
"path": "src/calendar/Calendar.ts",
|
|
1391
1436
|
"declarations": [
|
|
1392
1437
|
{
|
|
1393
1438
|
"kind": "class",
|
|
1394
|
-
"description": "
|
|
1395
|
-
"name": "
|
|
1396
|
-
"slots": [
|
|
1397
|
-
{
|
|
1398
|
-
"description": "Use when a label requires more than plain text.",
|
|
1399
|
-
"name": "label"
|
|
1400
|
-
},
|
|
1401
|
-
{
|
|
1402
|
-
"description": "Optional slot that holds hint text for the input.",
|
|
1403
|
-
"name": "hint"
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
"description": "Optional slot that holds error text for the input.",
|
|
1407
|
-
"name": "error"
|
|
1408
|
-
}
|
|
1409
|
-
],
|
|
1439
|
+
"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.",
|
|
1440
|
+
"name": "Calendar",
|
|
1410
1441
|
"members": [
|
|
1411
1442
|
{
|
|
1412
1443
|
"kind": "field",
|
|
1413
|
-
"name": "
|
|
1414
|
-
"privacy": "protected",
|
|
1415
|
-
"inheritedFrom": {
|
|
1416
|
-
"name": "FormAssociatedMixin",
|
|
1417
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1418
|
-
}
|
|
1419
|
-
},
|
|
1420
|
-
{
|
|
1421
|
-
"kind": "field",
|
|
1422
|
-
"name": "checked",
|
|
1444
|
+
"name": "dialogLabelId",
|
|
1423
1445
|
"type": {
|
|
1424
|
-
"text": "
|
|
1425
|
-
},
|
|
1426
|
-
"default": "false",
|
|
1427
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
1428
|
-
"attribute": "checked"
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
"kind": "method",
|
|
1432
|
-
"name": "handleChange",
|
|
1433
|
-
"privacy": "protected",
|
|
1434
|
-
"return": {
|
|
1435
|
-
"type": {
|
|
1436
|
-
"text": "void"
|
|
1437
|
-
}
|
|
1446
|
+
"text": "string"
|
|
1438
1447
|
},
|
|
1439
|
-
"
|
|
1440
|
-
|
|
1441
|
-
"name": "e",
|
|
1442
|
-
"type": {
|
|
1443
|
-
"text": "Event"
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
],
|
|
1447
|
-
"inheritedFrom": {
|
|
1448
|
-
"name": "FormAssociatedMixin",
|
|
1449
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1450
|
-
}
|
|
1448
|
+
"privacy": "private",
|
|
1449
|
+
"default": "\"dialog-header\""
|
|
1451
1450
|
},
|
|
1452
1451
|
{
|
|
1453
1452
|
"kind": "field",
|
|
1454
|
-
"name": "
|
|
1455
|
-
"
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1460
|
-
}
|
|
1453
|
+
"name": "monthSelectNode",
|
|
1454
|
+
"type": {
|
|
1455
|
+
"text": "HTMLElement"
|
|
1456
|
+
},
|
|
1457
|
+
"privacy": "private"
|
|
1461
1458
|
},
|
|
1462
1459
|
{
|
|
1463
1460
|
"kind": "field",
|
|
1464
|
-
"name": "
|
|
1465
|
-
"
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1470
|
-
}
|
|
1461
|
+
"name": "focusedDayNode",
|
|
1462
|
+
"type": {
|
|
1463
|
+
"text": "HTMLButtonElement"
|
|
1464
|
+
},
|
|
1465
|
+
"privacy": "private"
|
|
1471
1466
|
},
|
|
1472
1467
|
{
|
|
1473
1468
|
"kind": "field",
|
|
1474
|
-
"name": "
|
|
1475
|
-
"privacy": "
|
|
1476
|
-
"default": "new
|
|
1477
|
-
"inheritedFrom": {
|
|
1478
|
-
"name": "FormAssociatedMixin",
|
|
1479
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1480
|
-
}
|
|
1469
|
+
"name": "direction",
|
|
1470
|
+
"privacy": "private",
|
|
1471
|
+
"default": "new DirectionController(this)"
|
|
1481
1472
|
},
|
|
1482
1473
|
{
|
|
1483
1474
|
"kind": "field",
|
|
1484
|
-
"name": "
|
|
1485
|
-
"privacy": "
|
|
1486
|
-
"default": "new
|
|
1487
|
-
"inheritedFrom": {
|
|
1488
|
-
"name": "FormAssociatedMixin",
|
|
1489
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1490
|
-
}
|
|
1475
|
+
"name": "swipe",
|
|
1476
|
+
"privacy": "private",
|
|
1477
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
1491
1478
|
},
|
|
1492
1479
|
{
|
|
1493
1480
|
"kind": "field",
|
|
1494
|
-
"name": "
|
|
1495
|
-
"
|
|
1496
|
-
"text": "string"
|
|
1497
|
-
},
|
|
1498
|
-
"privacy": "protected",
|
|
1499
|
-
"default": "\"input\"",
|
|
1500
|
-
"inheritedFrom": {
|
|
1501
|
-
"name": "FormAssociatedMixin",
|
|
1502
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1503
|
-
}
|
|
1481
|
+
"name": "shortcuts",
|
|
1482
|
+
"privacy": "private"
|
|
1504
1483
|
},
|
|
1505
1484
|
{
|
|
1506
1485
|
"kind": "field",
|
|
1507
|
-
"name": "
|
|
1486
|
+
"name": "dateFormatShort",
|
|
1508
1487
|
"type": {
|
|
1509
|
-
"text": "
|
|
1488
|
+
"text": "Intl.DateTimeFormat"
|
|
1510
1489
|
},
|
|
1511
|
-
"privacy": "
|
|
1512
|
-
"
|
|
1513
|
-
"inheritedFrom": {
|
|
1514
|
-
"name": "FormAssociatedMixin",
|
|
1515
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1516
|
-
}
|
|
1490
|
+
"privacy": "private",
|
|
1491
|
+
"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"
|
|
1517
1492
|
},
|
|
1518
1493
|
{
|
|
1519
1494
|
"kind": "field",
|
|
1520
|
-
"name": "
|
|
1495
|
+
"name": "localization",
|
|
1521
1496
|
"type": {
|
|
1522
|
-
"text": "
|
|
1497
|
+
"text": "CalendarLocalizedText"
|
|
1523
1498
|
},
|
|
1524
|
-
"
|
|
1525
|
-
"default": "\"hint\"",
|
|
1526
|
-
"inheritedFrom": {
|
|
1527
|
-
"name": "FormAssociatedMixin",
|
|
1528
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1529
|
-
}
|
|
1499
|
+
"default": "localization"
|
|
1530
1500
|
},
|
|
1531
1501
|
{
|
|
1532
1502
|
"kind": "field",
|
|
1533
|
-
"name": "
|
|
1503
|
+
"name": "value",
|
|
1534
1504
|
"type": {
|
|
1535
1505
|
"text": "string"
|
|
1536
1506
|
},
|
|
1537
1507
|
"default": "\"\"",
|
|
1538
|
-
"description": "
|
|
1539
|
-
"attribute": "
|
|
1540
|
-
"inheritedFrom": {
|
|
1541
|
-
"name": "FormAssociatedMixin",
|
|
1542
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
"kind": "field",
|
|
1547
|
-
"name": "hint",
|
|
1548
|
-
"type": {
|
|
1549
|
-
"text": "string | undefined"
|
|
1550
|
-
},
|
|
1551
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1552
|
-
"attribute": "hint",
|
|
1553
|
-
"inheritedFrom": {
|
|
1554
|
-
"name": "FormAssociatedMixin",
|
|
1555
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1556
|
-
}
|
|
1508
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1509
|
+
"attribute": "value"
|
|
1557
1510
|
},
|
|
1558
1511
|
{
|
|
1559
1512
|
"kind": "field",
|
|
1560
|
-
"name": "
|
|
1513
|
+
"name": "firstDayOfWeek",
|
|
1561
1514
|
"type": {
|
|
1562
|
-
"text": "
|
|
1515
|
+
"text": "DaysOfWeek"
|
|
1563
1516
|
},
|
|
1564
|
-
"
|
|
1565
|
-
"
|
|
1566
|
-
"attribute": "hide-label",
|
|
1567
|
-
"inheritedFrom": {
|
|
1568
|
-
"name": "FormAssociatedMixin",
|
|
1569
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1570
|
-
}
|
|
1517
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1518
|
+
"attribute": "firstDayOfWeek"
|
|
1571
1519
|
},
|
|
1572
1520
|
{
|
|
1573
1521
|
"kind": "field",
|
|
1574
|
-
"name": "
|
|
1522
|
+
"name": "min",
|
|
1575
1523
|
"type": {
|
|
1576
|
-
"text": "string
|
|
1524
|
+
"text": "string"
|
|
1577
1525
|
},
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1581
|
-
"name": "FormAssociatedMixin",
|
|
1582
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1583
|
-
}
|
|
1526
|
+
"default": "\"\"",
|
|
1527
|
+
"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.",
|
|
1528
|
+
"attribute": "min"
|
|
1584
1529
|
},
|
|
1585
1530
|
{
|
|
1586
1531
|
"kind": "field",
|
|
1587
|
-
"name": "
|
|
1532
|
+
"name": "max",
|
|
1588
1533
|
"type": {
|
|
1589
|
-
"text": "string
|
|
1534
|
+
"text": "string"
|
|
1590
1535
|
},
|
|
1591
|
-
"
|
|
1592
|
-
"
|
|
1593
|
-
"
|
|
1594
|
-
"name": "FormAssociatedMixin",
|
|
1595
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1596
|
-
}
|
|
1536
|
+
"default": "\"\"",
|
|
1537
|
+
"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.",
|
|
1538
|
+
"attribute": "max"
|
|
1597
1539
|
},
|
|
1598
1540
|
{
|
|
1599
1541
|
"kind": "field",
|
|
1600
|
-
"name": "
|
|
1542
|
+
"name": "isDateDisabled",
|
|
1601
1543
|
"type": {
|
|
1602
|
-
"text": "
|
|
1544
|
+
"text": "DateDisabledPredicate"
|
|
1603
1545
|
},
|
|
1604
|
-
"default": "
|
|
1605
|
-
"description": "
|
|
1606
|
-
"attribute": "required",
|
|
1607
|
-
"inheritedFrom": {
|
|
1608
|
-
"name": "FormAssociatedMixin",
|
|
1609
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1610
|
-
}
|
|
1546
|
+
"default": "isDateDisabled",
|
|
1547
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1611
1548
|
},
|
|
1612
1549
|
{
|
|
1613
1550
|
"kind": "field",
|
|
1614
|
-
"name": "
|
|
1551
|
+
"name": "activeFocus",
|
|
1615
1552
|
"type": {
|
|
1616
1553
|
"text": "boolean"
|
|
1617
1554
|
},
|
|
1618
|
-
"
|
|
1619
|
-
"
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
"
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1555
|
+
"privacy": "private",
|
|
1556
|
+
"default": "false"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"kind": "field",
|
|
1560
|
+
"name": "focusedDay",
|
|
1561
|
+
"privacy": "private",
|
|
1562
|
+
"default": "new Date()"
|
|
1626
1563
|
},
|
|
1627
1564
|
{
|
|
1628
1565
|
"kind": "method",
|
|
1629
|
-
"name": "
|
|
1630
|
-
"privacy": "protected",
|
|
1566
|
+
"name": "focus",
|
|
1631
1567
|
"parameters": [
|
|
1632
1568
|
{
|
|
1633
|
-
"name": "
|
|
1569
|
+
"name": "options",
|
|
1570
|
+
"optional": true,
|
|
1634
1571
|
"type": {
|
|
1635
|
-
"text": "
|
|
1572
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1636
1573
|
}
|
|
1637
1574
|
}
|
|
1638
|
-
]
|
|
1639
|
-
"inheritedFrom": {
|
|
1640
|
-
"name": "FormAssociatedMixin",
|
|
1641
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1642
|
-
}
|
|
1575
|
+
]
|
|
1643
1576
|
},
|
|
1644
1577
|
{
|
|
1645
1578
|
"kind": "method",
|
|
1646
|
-
"name": "
|
|
1647
|
-
"privacy": "
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1579
|
+
"name": "createDateFormatter",
|
|
1580
|
+
"privacy": "private"
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"kind": "field",
|
|
1584
|
+
"name": "handleDaySelect",
|
|
1585
|
+
"privacy": "private"
|
|
1652
1586
|
},
|
|
1653
1587
|
{
|
|
1654
1588
|
"kind": "method",
|
|
1655
|
-
"name": "
|
|
1656
|
-
"privacy": "
|
|
1657
|
-
"
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1589
|
+
"name": "addDays",
|
|
1590
|
+
"privacy": "private",
|
|
1591
|
+
"parameters": [
|
|
1592
|
+
{
|
|
1593
|
+
"name": "days",
|
|
1594
|
+
"type": {
|
|
1595
|
+
"text": "number"
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
]
|
|
1661
1599
|
},
|
|
1662
1600
|
{
|
|
1663
1601
|
"kind": "method",
|
|
1664
|
-
"name": "
|
|
1665
|
-
"privacy": "
|
|
1666
|
-
"
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1602
|
+
"name": "addMonths",
|
|
1603
|
+
"privacy": "private",
|
|
1604
|
+
"parameters": [
|
|
1605
|
+
{
|
|
1606
|
+
"name": "months",
|
|
1607
|
+
"type": {
|
|
1608
|
+
"text": "number"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
]
|
|
1670
1612
|
},
|
|
1671
1613
|
{
|
|
1672
1614
|
"kind": "method",
|
|
1673
|
-
"name": "
|
|
1674
|
-
"privacy": "
|
|
1675
|
-
"
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1615
|
+
"name": "addYears",
|
|
1616
|
+
"privacy": "private",
|
|
1617
|
+
"parameters": [
|
|
1618
|
+
{
|
|
1619
|
+
"name": "years",
|
|
1620
|
+
"type": {
|
|
1621
|
+
"text": "number"
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
]
|
|
1679
1625
|
},
|
|
1680
1626
|
{
|
|
1681
|
-
"kind": "
|
|
1682
|
-
"name": "
|
|
1683
|
-
"privacy": "
|
|
1684
|
-
"inheritedFrom": {
|
|
1685
|
-
"name": "FormAssociatedMixin",
|
|
1686
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1687
|
-
}
|
|
1627
|
+
"kind": "method",
|
|
1628
|
+
"name": "startOfWeek",
|
|
1629
|
+
"privacy": "private"
|
|
1688
1630
|
},
|
|
1689
1631
|
{
|
|
1690
|
-
"kind": "
|
|
1691
|
-
"name": "
|
|
1692
|
-
"privacy": "
|
|
1693
|
-
"inheritedFrom": {
|
|
1694
|
-
"name": "FormAssociatedMixin",
|
|
1695
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1696
|
-
}
|
|
1632
|
+
"kind": "method",
|
|
1633
|
+
"name": "endOfWeek",
|
|
1634
|
+
"privacy": "private"
|
|
1697
1635
|
},
|
|
1698
1636
|
{
|
|
1699
|
-
"kind": "
|
|
1700
|
-
"name": "
|
|
1701
|
-
"
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1711
|
-
}
|
|
1637
|
+
"kind": "method",
|
|
1638
|
+
"name": "setMonth",
|
|
1639
|
+
"privacy": "private",
|
|
1640
|
+
"parameters": [
|
|
1641
|
+
{
|
|
1642
|
+
"name": "month",
|
|
1643
|
+
"type": {
|
|
1644
|
+
"text": "number"
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
]
|
|
1712
1648
|
},
|
|
1713
1649
|
{
|
|
1714
|
-
"kind": "
|
|
1715
|
-
"name": "
|
|
1716
|
-
"
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1650
|
+
"kind": "method",
|
|
1651
|
+
"name": "setYear",
|
|
1652
|
+
"privacy": "private",
|
|
1653
|
+
"parameters": [
|
|
1654
|
+
{
|
|
1655
|
+
"name": "year",
|
|
1656
|
+
"type": {
|
|
1657
|
+
"text": "number"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"kind": "method",
|
|
1664
|
+
"name": "setFocusedDay",
|
|
1665
|
+
"privacy": "private",
|
|
1666
|
+
"parameters": [
|
|
1667
|
+
{
|
|
1668
|
+
"name": "day",
|
|
1669
|
+
"type": {
|
|
1670
|
+
"text": "Date"
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1725
1674
|
},
|
|
1726
1675
|
{
|
|
1727
1676
|
"kind": "field",
|
|
1728
|
-
"name": "
|
|
1729
|
-
"
|
|
1730
|
-
"text": "string"
|
|
1731
|
-
},
|
|
1732
|
-
"default": "\"\"",
|
|
1733
|
-
"description": "The value of the form component.",
|
|
1734
|
-
"attribute": "value",
|
|
1735
|
-
"inheritedFrom": {
|
|
1736
|
-
"name": "InputMixin",
|
|
1737
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1738
|
-
}
|
|
1677
|
+
"name": "handleMonthSelect",
|
|
1678
|
+
"privacy": "private"
|
|
1739
1679
|
},
|
|
1740
1680
|
{
|
|
1741
1681
|
"kind": "field",
|
|
1742
|
-
"name": "
|
|
1743
|
-
"privacy": "
|
|
1744
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
1745
|
-
"inheritedFrom": {
|
|
1746
|
-
"name": "InputMixin",
|
|
1747
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1748
|
-
}
|
|
1682
|
+
"name": "handleYearSelect",
|
|
1683
|
+
"privacy": "private"
|
|
1749
1684
|
},
|
|
1750
1685
|
{
|
|
1751
1686
|
"kind": "field",
|
|
1752
|
-
"name": "
|
|
1753
|
-
"privacy": "
|
|
1754
|
-
"inheritedFrom": {
|
|
1755
|
-
"name": "FocusableMixin",
|
|
1756
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1757
|
-
}
|
|
1687
|
+
"name": "handleNextMonthClick",
|
|
1688
|
+
"privacy": "private"
|
|
1758
1689
|
},
|
|
1759
1690
|
{
|
|
1760
|
-
"kind": "
|
|
1761
|
-
"name": "
|
|
1762
|
-
"
|
|
1763
|
-
{
|
|
1764
|
-
"name": "options",
|
|
1765
|
-
"optional": true,
|
|
1766
|
-
"type": {
|
|
1767
|
-
"text": "FocusOptions"
|
|
1768
|
-
},
|
|
1769
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1770
|
-
}
|
|
1771
|
-
],
|
|
1772
|
-
"description": "Programmatically move focus to the component.",
|
|
1773
|
-
"inheritedFrom": {
|
|
1774
|
-
"name": "FocusableMixin",
|
|
1775
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1776
|
-
}
|
|
1691
|
+
"kind": "field",
|
|
1692
|
+
"name": "handlePreviousMonthClick",
|
|
1693
|
+
"privacy": "private"
|
|
1777
1694
|
},
|
|
1778
1695
|
{
|
|
1779
|
-
"kind": "
|
|
1780
|
-
"name": "
|
|
1781
|
-
"
|
|
1782
|
-
"inheritedFrom": {
|
|
1783
|
-
"name": "FocusableMixin",
|
|
1784
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1785
|
-
}
|
|
1696
|
+
"kind": "field",
|
|
1697
|
+
"name": "enableActiveFocus",
|
|
1698
|
+
"privacy": "private"
|
|
1786
1699
|
},
|
|
1787
1700
|
{
|
|
1788
|
-
"kind": "
|
|
1789
|
-
"name": "
|
|
1790
|
-
"
|
|
1791
|
-
"inheritedFrom": {
|
|
1792
|
-
"name": "FocusableMixin",
|
|
1793
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1794
|
-
}
|
|
1701
|
+
"kind": "field",
|
|
1702
|
+
"name": "disableActiveFocus",
|
|
1703
|
+
"privacy": "private"
|
|
1795
1704
|
},
|
|
1796
1705
|
{
|
|
1797
1706
|
"kind": "field",
|
|
@@ -1810,154 +1719,269 @@
|
|
|
1810
1719
|
],
|
|
1811
1720
|
"attributes": [
|
|
1812
1721
|
{
|
|
1813
|
-
"name": "
|
|
1722
|
+
"name": "value",
|
|
1814
1723
|
"type": {
|
|
1815
|
-
"text": "
|
|
1724
|
+
"text": "string"
|
|
1816
1725
|
},
|
|
1817
|
-
"default": "
|
|
1818
|
-
"description": "
|
|
1819
|
-
"fieldName": "
|
|
1726
|
+
"default": "\"\"",
|
|
1727
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1728
|
+
"fieldName": "value"
|
|
1820
1729
|
},
|
|
1821
1730
|
{
|
|
1822
|
-
"name": "
|
|
1731
|
+
"name": "firstDayOfWeek",
|
|
1823
1732
|
"type": {
|
|
1824
|
-
"text": "
|
|
1733
|
+
"text": "DaysOfWeek"
|
|
1825
1734
|
},
|
|
1826
|
-
"
|
|
1827
|
-
"
|
|
1828
|
-
"fieldName": "label",
|
|
1829
|
-
"inheritedFrom": {
|
|
1830
|
-
"name": "FormAssociatedMixin",
|
|
1831
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1832
|
-
}
|
|
1735
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1736
|
+
"fieldName": "firstDayOfWeek"
|
|
1833
1737
|
},
|
|
1834
1738
|
{
|
|
1835
|
-
"name": "
|
|
1739
|
+
"name": "min",
|
|
1836
1740
|
"type": {
|
|
1837
|
-
"text": "string
|
|
1741
|
+
"text": "string"
|
|
1838
1742
|
},
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
1841
|
-
"
|
|
1842
|
-
"name": "FormAssociatedMixin",
|
|
1843
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1844
|
-
}
|
|
1743
|
+
"default": "\"\"",
|
|
1744
|
+
"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.",
|
|
1745
|
+
"fieldName": "min"
|
|
1845
1746
|
},
|
|
1846
1747
|
{
|
|
1847
|
-
"name": "
|
|
1748
|
+
"name": "max",
|
|
1848
1749
|
"type": {
|
|
1849
|
-
"text": "
|
|
1750
|
+
"text": "string"
|
|
1850
1751
|
},
|
|
1851
|
-
"default": "
|
|
1852
|
-
"description": "
|
|
1853
|
-
"fieldName": "
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
}
|
|
1858
|
-
},
|
|
1752
|
+
"default": "\"\"",
|
|
1753
|
+
"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.",
|
|
1754
|
+
"fieldName": "max"
|
|
1755
|
+
}
|
|
1756
|
+
],
|
|
1757
|
+
"mixins": [
|
|
1859
1758
|
{
|
|
1860
|
-
"name": "
|
|
1759
|
+
"name": "DraftComponentMixin",
|
|
1760
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
"superclass": {
|
|
1764
|
+
"name": "LitElement",
|
|
1765
|
+
"package": "lit"
|
|
1766
|
+
},
|
|
1767
|
+
"status": "draft",
|
|
1768
|
+
"category": "list",
|
|
1769
|
+
"tagName": "nord-calendar",
|
|
1770
|
+
"customElement": true
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1773
|
+
"exports": [
|
|
1774
|
+
{
|
|
1775
|
+
"kind": "js",
|
|
1776
|
+
"name": "default",
|
|
1777
|
+
"declaration": {
|
|
1778
|
+
"name": "Calendar",
|
|
1779
|
+
"module": "src/calendar/Calendar.ts"
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"kind": "custom-element-definition",
|
|
1784
|
+
"name": "nord-calendar",
|
|
1785
|
+
"declaration": {
|
|
1786
|
+
"name": "Calendar",
|
|
1787
|
+
"module": "src/calendar/Calendar.ts"
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
],
|
|
1791
|
+
"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"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"kind": "javascript-module",
|
|
1795
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1796
|
+
"declarations": [
|
|
1797
|
+
{
|
|
1798
|
+
"kind": "class",
|
|
1799
|
+
"description": "",
|
|
1800
|
+
"name": "DateSelectEvent",
|
|
1801
|
+
"members": [
|
|
1802
|
+
{
|
|
1803
|
+
"kind": "field",
|
|
1804
|
+
"name": "eventName",
|
|
1861
1805
|
"type": {
|
|
1862
|
-
"text": "string
|
|
1806
|
+
"text": "string"
|
|
1863
1807
|
},
|
|
1864
|
-
"
|
|
1865
|
-
"
|
|
1866
|
-
"inheritedFrom": {
|
|
1867
|
-
"name": "FormAssociatedMixin",
|
|
1868
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1869
|
-
}
|
|
1808
|
+
"static": true,
|
|
1809
|
+
"default": "\"nord-select\""
|
|
1870
1810
|
},
|
|
1871
1811
|
{
|
|
1872
|
-
"
|
|
1812
|
+
"kind": "field",
|
|
1813
|
+
"name": "date",
|
|
1873
1814
|
"type": {
|
|
1874
|
-
"text": "
|
|
1815
|
+
"text": "Date"
|
|
1875
1816
|
},
|
|
1876
|
-
"
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1817
|
+
"default": "date"
|
|
1818
|
+
}
|
|
1819
|
+
],
|
|
1820
|
+
"superclass": {
|
|
1821
|
+
"name": "NordEvent",
|
|
1822
|
+
"module": "/src/common/events.js"
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
"exports": [
|
|
1827
|
+
{
|
|
1828
|
+
"kind": "js",
|
|
1829
|
+
"name": "DateSelectEvent",
|
|
1830
|
+
"declaration": {
|
|
1831
|
+
"name": "DateSelectEvent",
|
|
1832
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
],
|
|
1836
|
+
"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"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"kind": "javascript-module",
|
|
1840
|
+
"path": "src/calendar/calendar-localization.ts",
|
|
1841
|
+
"declarations": [
|
|
1842
|
+
{
|
|
1843
|
+
"kind": "variable",
|
|
1844
|
+
"name": "localization",
|
|
1845
|
+
"type": {
|
|
1846
|
+
"text": "CalendarLocalizedText"
|
|
1847
|
+
},
|
|
1848
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
1849
|
+
}
|
|
1850
|
+
],
|
|
1851
|
+
"exports": [
|
|
1852
|
+
{
|
|
1853
|
+
"kind": "js",
|
|
1854
|
+
"name": "default",
|
|
1855
|
+
"declaration": {
|
|
1856
|
+
"name": "localization",
|
|
1857
|
+
"module": "src/calendar/calendar-localization.ts"
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
],
|
|
1861
|
+
"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"
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"kind": "javascript-module",
|
|
1865
|
+
"path": "src/calendar/month-view.ts",
|
|
1866
|
+
"declarations": [
|
|
1867
|
+
{
|
|
1868
|
+
"kind": "function",
|
|
1869
|
+
"name": "dayView",
|
|
1870
|
+
"parameters": [
|
|
1871
|
+
{
|
|
1872
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1873
|
+
"type": {
|
|
1874
|
+
"text": "DatePickerDayProps"
|
|
1881
1875
|
}
|
|
1882
|
-
}
|
|
1876
|
+
}
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"kind": "function",
|
|
1881
|
+
"name": "monthView",
|
|
1882
|
+
"parameters": [
|
|
1883
1883
|
{
|
|
1884
|
-
"name": "
|
|
1884
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1885
1885
|
"type": {
|
|
1886
|
-
"text": "
|
|
1887
|
-
},
|
|
1888
|
-
"default": "false",
|
|
1889
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1890
|
-
"fieldName": "required",
|
|
1891
|
-
"inheritedFrom": {
|
|
1892
|
-
"name": "FormAssociatedMixin",
|
|
1893
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1886
|
+
"text": "MonthViewArgs"
|
|
1894
1887
|
}
|
|
1888
|
+
}
|
|
1889
|
+
]
|
|
1890
|
+
}
|
|
1891
|
+
],
|
|
1892
|
+
"exports": [
|
|
1893
|
+
{
|
|
1894
|
+
"kind": "js",
|
|
1895
|
+
"name": "dayView",
|
|
1896
|
+
"declaration": {
|
|
1897
|
+
"name": "dayView",
|
|
1898
|
+
"module": "src/calendar/month-view.ts"
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"kind": "js",
|
|
1903
|
+
"name": "monthView",
|
|
1904
|
+
"declaration": {
|
|
1905
|
+
"name": "monthView",
|
|
1906
|
+
"module": "src/calendar/month-view.ts"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"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"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"kind": "javascript-module",
|
|
1914
|
+
"path": "src/card/Card.ts",
|
|
1915
|
+
"declarations": [
|
|
1916
|
+
{
|
|
1917
|
+
"kind": "class",
|
|
1918
|
+
"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.",
|
|
1919
|
+
"name": "Card",
|
|
1920
|
+
"slots": [
|
|
1921
|
+
{
|
|
1922
|
+
"description": "The card content.",
|
|
1923
|
+
"name": ""
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"description": "Optional slot that holds a header for the card.",
|
|
1927
|
+
"name": "header"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
1931
|
+
"name": "footer"
|
|
1932
|
+
}
|
|
1933
|
+
],
|
|
1934
|
+
"members": [
|
|
1935
|
+
{
|
|
1936
|
+
"kind": "field",
|
|
1937
|
+
"name": "headerSlot",
|
|
1938
|
+
"privacy": "private",
|
|
1939
|
+
"default": "new SlotController(this, \"header\")"
|
|
1895
1940
|
},
|
|
1896
1941
|
{
|
|
1897
|
-
"
|
|
1898
|
-
"
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
"default": "false",
|
|
1902
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1903
|
-
"fieldName": "expand",
|
|
1904
|
-
"inheritedFrom": {
|
|
1905
|
-
"name": "FormAssociatedMixin",
|
|
1906
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1907
|
-
}
|
|
1942
|
+
"kind": "field",
|
|
1943
|
+
"name": "footerSlot",
|
|
1944
|
+
"privacy": "private",
|
|
1945
|
+
"default": "new SlotController(this, \"footer\")"
|
|
1908
1946
|
},
|
|
1909
1947
|
{
|
|
1910
|
-
"
|
|
1948
|
+
"kind": "field",
|
|
1949
|
+
"name": "padding",
|
|
1911
1950
|
"type": {
|
|
1912
|
-
"text": "
|
|
1951
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1913
1952
|
},
|
|
1914
|
-
"default": "
|
|
1915
|
-
"description": "
|
|
1916
|
-
"
|
|
1917
|
-
"
|
|
1918
|
-
"name": "InputMixin",
|
|
1919
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1920
|
-
}
|
|
1953
|
+
"default": "\"m\"",
|
|
1954
|
+
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1955
|
+
"attribute": "padding",
|
|
1956
|
+
"reflects": true
|
|
1921
1957
|
},
|
|
1922
1958
|
{
|
|
1923
|
-
"
|
|
1959
|
+
"kind": "field",
|
|
1960
|
+
"name": "_warningLogged",
|
|
1924
1961
|
"type": {
|
|
1925
|
-
"text": "
|
|
1962
|
+
"text": "boolean"
|
|
1926
1963
|
},
|
|
1927
|
-
"
|
|
1928
|
-
"
|
|
1964
|
+
"privacy": "private",
|
|
1965
|
+
"static": true,
|
|
1966
|
+
"default": "false",
|
|
1929
1967
|
"inheritedFrom": {
|
|
1930
|
-
"name": "
|
|
1931
|
-
"module": "src/common/mixins/
|
|
1968
|
+
"name": "DraftComponentMixin",
|
|
1969
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1932
1970
|
}
|
|
1933
|
-
}
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
"attributes": [
|
|
1934
1974
|
{
|
|
1935
|
-
"name": "
|
|
1975
|
+
"name": "padding",
|
|
1936
1976
|
"type": {
|
|
1937
|
-
"text": "
|
|
1977
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1938
1978
|
},
|
|
1939
|
-
"default": "\"\"",
|
|
1940
|
-
"description": "
|
|
1941
|
-
"fieldName": "
|
|
1942
|
-
"inheritedFrom": {
|
|
1943
|
-
"name": "InputMixin",
|
|
1944
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1945
|
-
}
|
|
1979
|
+
"default": "\"m\"",
|
|
1980
|
+
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1981
|
+
"fieldName": "padding"
|
|
1946
1982
|
}
|
|
1947
1983
|
],
|
|
1948
1984
|
"mixins": [
|
|
1949
|
-
{
|
|
1950
|
-
"name": "FormAssociatedMixin",
|
|
1951
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
1952
|
-
},
|
|
1953
|
-
{
|
|
1954
|
-
"name": "InputMixin",
|
|
1955
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"name": "FocusableMixin",
|
|
1959
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1960
|
-
},
|
|
1961
1985
|
{
|
|
1962
1986
|
"name": "DraftComponentMixin",
|
|
1963
1987
|
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
@@ -1968,33 +1992,9 @@
|
|
|
1968
1992
|
"package": "lit"
|
|
1969
1993
|
},
|
|
1970
1994
|
"status": "draft",
|
|
1971
|
-
"category": "
|
|
1972
|
-
"tagName": "nord-
|
|
1973
|
-
"customElement": true
|
|
1974
|
-
"events": [
|
|
1975
|
-
{
|
|
1976
|
-
"name": "input",
|
|
1977
|
-
"type": {
|
|
1978
|
-
"text": "NordEvent"
|
|
1979
|
-
},
|
|
1980
|
-
"description": "Fired as the user types into the input.",
|
|
1981
|
-
"inheritedFrom": {
|
|
1982
|
-
"name": "FormAssociatedMixin",
|
|
1983
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1984
|
-
}
|
|
1985
|
-
},
|
|
1986
|
-
{
|
|
1987
|
-
"name": "change",
|
|
1988
|
-
"type": {
|
|
1989
|
-
"text": "NordEvent"
|
|
1990
|
-
},
|
|
1991
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
1992
|
-
"inheritedFrom": {
|
|
1993
|
-
"name": "FormAssociatedMixin",
|
|
1994
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
]
|
|
1995
|
+
"category": "structure",
|
|
1996
|
+
"tagName": "nord-card",
|
|
1997
|
+
"customElement": true
|
|
1998
1998
|
}
|
|
1999
1999
|
],
|
|
2000
2000
|
"exports": [
|
|
@@ -2002,20 +2002,20 @@
|
|
|
2002
2002
|
"kind": "js",
|
|
2003
2003
|
"name": "default",
|
|
2004
2004
|
"declaration": {
|
|
2005
|
-
"name": "
|
|
2006
|
-
"module": "src/
|
|
2005
|
+
"name": "Card",
|
|
2006
|
+
"module": "src/card/Card.ts"
|
|
2007
2007
|
}
|
|
2008
2008
|
},
|
|
2009
2009
|
{
|
|
2010
2010
|
"kind": "custom-element-definition",
|
|
2011
|
-
"name": "nord-
|
|
2011
|
+
"name": "nord-card",
|
|
2012
2012
|
"declaration": {
|
|
2013
|
-
"name": "
|
|
2014
|
-
"module": "src/
|
|
2013
|
+
"name": "Card",
|
|
2014
|
+
"module": "src/card/Card.ts"
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
],
|
|
2018
|
-
"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
|
|
2018
|
+
"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\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\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"
|
|
2019
2019
|
},
|
|
2020
2020
|
{
|
|
2021
2021
|
"kind": "javascript-module",
|
|
@@ -4454,6 +4454,72 @@
|
|
|
4454
4454
|
],
|
|
4455
4455
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use to choose a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nDate picker is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Choose date button\n\n- `Space, Enter`: Opens the date picker dialog and moves focus to the first select menu in the dialog.\n\n### Date picker dialog\n\n- `Esc`: Closes the date picker dialog and moves focus back to the “choose date” button.\n- `Tab`: Moves focus to the next element in the dialog. Please note since the calendar uses `role=\"grid\"`, only one button in the calendar grid is in the tab sequence. Additionally, if focus is on the last focusable element, focus is next moved back to the first focusable element inside the date picker dialog.\n- `Shift + Tab`: Same as above, but in reverse order.\n\n### Date picker dialog: Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Date picker dialog: Date grid\n\n- `Space, Enter`: Selects a date, closes the dialog, and moves focus back to the “Choose Date” button. Additionally updates the value of the date picker input with the selected date, and adds selected date to “Choose Date” button label.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n\n#### Date picker dialog: Close button\n\n- `Space, Enter`: Closes the dialog, moves focus to “choose date” button, but does not update the date in input.\n"
|
|
4456
4456
|
},
|
|
4457
|
+
{
|
|
4458
|
+
"kind": "javascript-module",
|
|
4459
|
+
"path": "src/empty-state/EmptyState.ts",
|
|
4460
|
+
"declarations": [
|
|
4461
|
+
{
|
|
4462
|
+
"kind": "class",
|
|
4463
|
+
"description": "Empty state can be used when there is no data to display to\ndescribe what the user can do next. Empty state provides\nexplanation and guidance to help user progress.",
|
|
4464
|
+
"name": "EmptyState",
|
|
4465
|
+
"slots": [
|
|
4466
|
+
{
|
|
4467
|
+
"description": "default slot",
|
|
4468
|
+
"name": ""
|
|
4469
|
+
}
|
|
4470
|
+
],
|
|
4471
|
+
"members": [
|
|
4472
|
+
{
|
|
4473
|
+
"kind": "field",
|
|
4474
|
+
"name": "_warningLogged",
|
|
4475
|
+
"type": {
|
|
4476
|
+
"text": "boolean"
|
|
4477
|
+
},
|
|
4478
|
+
"privacy": "private",
|
|
4479
|
+
"static": true,
|
|
4480
|
+
"default": "false",
|
|
4481
|
+
"inheritedFrom": {
|
|
4482
|
+
"name": "DraftComponentMixin",
|
|
4483
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4486
|
+
],
|
|
4487
|
+
"mixins": [
|
|
4488
|
+
{
|
|
4489
|
+
"name": "DraftComponentMixin",
|
|
4490
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4491
|
+
}
|
|
4492
|
+
],
|
|
4493
|
+
"superclass": {
|
|
4494
|
+
"name": "LitElement",
|
|
4495
|
+
"package": "lit"
|
|
4496
|
+
},
|
|
4497
|
+
"status": "draft",
|
|
4498
|
+
"category": "feedback",
|
|
4499
|
+
"tagName": "nord-empty-state",
|
|
4500
|
+
"customElement": true
|
|
4501
|
+
}
|
|
4502
|
+
],
|
|
4503
|
+
"exports": [
|
|
4504
|
+
{
|
|
4505
|
+
"kind": "js",
|
|
4506
|
+
"name": "default",
|
|
4507
|
+
"declaration": {
|
|
4508
|
+
"name": "EmptyState",
|
|
4509
|
+
"module": "src/empty-state/EmptyState.ts"
|
|
4510
|
+
}
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"kind": "custom-element-definition",
|
|
4514
|
+
"name": "nord-empty-state",
|
|
4515
|
+
"declaration": {
|
|
4516
|
+
"name": "EmptyState",
|
|
4517
|
+
"module": "src/empty-state/EmptyState.ts"
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
],
|
|
4521
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when another component or part of UI has no items or data to show.\n- Help users by clearly explaining the benefit and utility of a product or feature.\n- Be encouraging and never make users feel unsuccessful or guilty.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic banner to highlight specific content.\n\n</div>\n\n---\n\n## Content guidelines\n\nEmpty state headings should state to the user what’s wrong or why there’s no content:\n\n<div class=\"n-usage n-usage-do\">No results found</div>\n<div class=\"n-usage n-usage-dont\">Error</div>\n\nWhen writing empty state headings, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">You don’t have access to this content</div>\n<div class=\"n-usage n-usage-dont\">You Don’t Have Access To This Content</div>\n\nDescriptions in empty states should add useful and relevant additional information:\n\n<div class=\"n-usage n-usage-do\">We were unable to connect to the service. Click Retry to try again or View log to learn what happened.</div>\n<div class=\"n-usage n-usage-dont\">No connection.</div>\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Clear filters</div>\n<div class=\"n-usage n-usage-dont\">Clear</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">View log</div>\n<div class=\"n-usage n-usage-dont\">View Log</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Request access</div>\n<div class=\"n-usage n-usage-dont\">Request an access</div>\n"
|
|
4522
|
+
},
|
|
4457
4523
|
{
|
|
4458
4524
|
"kind": "javascript-module",
|
|
4459
4525
|
"path": "src/fieldset/Fieldset.ts",
|
|
@@ -4605,72 +4671,6 @@
|
|
|
4605
4671
|
],
|
|
4606
4672
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the fieldset component when you need to create a relationship between multiple form inputs.\n- It is especially important to use with a group of radio components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use with a checkbox component when there is **only one** checkbox. For example, when accepting terms and conditions.\n\n</div>\n\n-------\n\n## Content guidelines\n\nFieldset label should be clear, accurate and predictable. It should help the user to understand how the items in the fieldset are grouped together, or what kind of choice the user is making:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Choose</div>\n\nWhen writing fieldset labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick A Color</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick a color.</div>\n\nDo not use colons in fieldset label:\n\n<div class=\"n-usage n-usage-do\">Payment details</div>\n<div class=\"n-usage n-usage-dont\">Payment details:</div>\n\n-------\n\n## Additional considerations\n\n- A label (which becomes to `<legend>` inside the fieldset) is always required.\n- Hint text can be used to offer further information or explanation for an option.\n"
|
|
4607
4673
|
},
|
|
4608
|
-
{
|
|
4609
|
-
"kind": "javascript-module",
|
|
4610
|
-
"path": "src/empty-state/EmptyState.ts",
|
|
4611
|
-
"declarations": [
|
|
4612
|
-
{
|
|
4613
|
-
"kind": "class",
|
|
4614
|
-
"description": "Empty state can be used when there is no data to display to\ndescribe what the user can do next. Empty state provides\nexplanation and guidance to help user progress.",
|
|
4615
|
-
"name": "EmptyState",
|
|
4616
|
-
"slots": [
|
|
4617
|
-
{
|
|
4618
|
-
"description": "default slot",
|
|
4619
|
-
"name": ""
|
|
4620
|
-
}
|
|
4621
|
-
],
|
|
4622
|
-
"members": [
|
|
4623
|
-
{
|
|
4624
|
-
"kind": "field",
|
|
4625
|
-
"name": "_warningLogged",
|
|
4626
|
-
"type": {
|
|
4627
|
-
"text": "boolean"
|
|
4628
|
-
},
|
|
4629
|
-
"privacy": "private",
|
|
4630
|
-
"static": true,
|
|
4631
|
-
"default": "false",
|
|
4632
|
-
"inheritedFrom": {
|
|
4633
|
-
"name": "DraftComponentMixin",
|
|
4634
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4635
|
-
}
|
|
4636
|
-
}
|
|
4637
|
-
],
|
|
4638
|
-
"mixins": [
|
|
4639
|
-
{
|
|
4640
|
-
"name": "DraftComponentMixin",
|
|
4641
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4642
|
-
}
|
|
4643
|
-
],
|
|
4644
|
-
"superclass": {
|
|
4645
|
-
"name": "LitElement",
|
|
4646
|
-
"package": "lit"
|
|
4647
|
-
},
|
|
4648
|
-
"status": "draft",
|
|
4649
|
-
"category": "feedback",
|
|
4650
|
-
"tagName": "nord-empty-state",
|
|
4651
|
-
"customElement": true
|
|
4652
|
-
}
|
|
4653
|
-
],
|
|
4654
|
-
"exports": [
|
|
4655
|
-
{
|
|
4656
|
-
"kind": "js",
|
|
4657
|
-
"name": "default",
|
|
4658
|
-
"declaration": {
|
|
4659
|
-
"name": "EmptyState",
|
|
4660
|
-
"module": "src/empty-state/EmptyState.ts"
|
|
4661
|
-
}
|
|
4662
|
-
},
|
|
4663
|
-
{
|
|
4664
|
-
"kind": "custom-element-definition",
|
|
4665
|
-
"name": "nord-empty-state",
|
|
4666
|
-
"declaration": {
|
|
4667
|
-
"name": "EmptyState",
|
|
4668
|
-
"module": "src/empty-state/EmptyState.ts"
|
|
4669
|
-
}
|
|
4670
|
-
}
|
|
4671
|
-
],
|
|
4672
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when another component or part of UI has no items or data to show.\n- Help users by clearly explaining the benefit and utility of a product or feature.\n- Be encouraging and never make users feel unsuccessful or guilty.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic banner to highlight specific content.\n\n</div>\n\n---\n\n## Content guidelines\n\nEmpty state headings should state to the user what’s wrong or why there’s no content:\n\n<div class=\"n-usage n-usage-do\">No results found</div>\n<div class=\"n-usage n-usage-dont\">Error</div>\n\nWhen writing empty state headings, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">You don’t have access to this content</div>\n<div class=\"n-usage n-usage-dont\">You Don’t Have Access To This Content</div>\n\nDescriptions in empty states should add useful and relevant additional information:\n\n<div class=\"n-usage n-usage-do\">We were unable to connect to the service. Click Retry to try again or View log to learn what happened.</div>\n<div class=\"n-usage n-usage-dont\">No connection.</div>\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Clear filters</div>\n<div class=\"n-usage n-usage-dont\">Clear</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">View log</div>\n<div class=\"n-usage n-usage-dont\">View Log</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Request access</div>\n<div class=\"n-usage n-usage-dont\">Request an access</div>\n"
|
|
4673
|
-
},
|
|
4674
4674
|
{
|
|
4675
4675
|
"kind": "javascript-module",
|
|
4676
4676
|
"path": "src/header/Header.ts",
|
|
@@ -5650,7 +5650,7 @@
|
|
|
5650
5650
|
"declarations": [
|
|
5651
5651
|
{
|
|
5652
5652
|
"kind": "class",
|
|
5653
|
-
"description": "Layout component is used to create the main layout of an app. Layout\ncurrently comes with one main
|
|
5653
|
+
"description": "Layout component is used to create the main layout of an app. Layout\ncurrently comes with one main configuration: two-column.",
|
|
5654
5654
|
"name": "Layout",
|
|
5655
5655
|
"slots": [
|
|
5656
5656
|
{
|