@nordhealth/components 1.0.0-beta.3 → 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 +925 -925
- 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/Icon.js +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/empty-state/EmptyState.d.ts +2 -2
- 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,275 +800,411 @@
|
|
|
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
|
+
"slots": [
|
|
810
|
+
{
|
|
811
|
+
"description": "Use when a label requires more than plain text.",
|
|
812
|
+
"name": "label"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
816
|
+
"name": "hint"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"description": "Optional slot that holds error text for the input.",
|
|
820
|
+
"name": "error"
|
|
821
|
+
}
|
|
822
|
+
],
|
|
809
823
|
"members": [
|
|
810
824
|
{
|
|
811
825
|
"kind": "field",
|
|
812
|
-
"name": "
|
|
813
|
-
"
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
826
|
+
"name": "formValue",
|
|
827
|
+
"privacy": "protected",
|
|
828
|
+
"inheritedFrom": {
|
|
829
|
+
"name": "FormAssociatedMixin",
|
|
830
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
831
|
+
}
|
|
818
832
|
},
|
|
819
833
|
{
|
|
820
834
|
"kind": "field",
|
|
821
|
-
"name": "
|
|
835
|
+
"name": "checked",
|
|
822
836
|
"type": {
|
|
823
|
-
"text": "
|
|
837
|
+
"text": "boolean"
|
|
824
838
|
},
|
|
825
|
-
"
|
|
839
|
+
"default": "false",
|
|
840
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
841
|
+
"attribute": "checked"
|
|
826
842
|
},
|
|
827
843
|
{
|
|
828
|
-
"kind": "
|
|
829
|
-
"name": "
|
|
830
|
-
"
|
|
831
|
-
|
|
844
|
+
"kind": "method",
|
|
845
|
+
"name": "handleChange",
|
|
846
|
+
"privacy": "protected",
|
|
847
|
+
"return": {
|
|
848
|
+
"type": {
|
|
849
|
+
"text": "void"
|
|
850
|
+
}
|
|
832
851
|
},
|
|
833
|
-
"
|
|
852
|
+
"parameters": [
|
|
853
|
+
{
|
|
854
|
+
"name": "e",
|
|
855
|
+
"type": {
|
|
856
|
+
"text": "Event"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
"inheritedFrom": {
|
|
861
|
+
"name": "FormAssociatedMixin",
|
|
862
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
863
|
+
}
|
|
834
864
|
},
|
|
835
865
|
{
|
|
836
866
|
"kind": "field",
|
|
837
|
-
"name": "
|
|
838
|
-
"privacy": "
|
|
839
|
-
"default": "new
|
|
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
|
+
}
|
|
840
874
|
},
|
|
841
875
|
{
|
|
842
876
|
"kind": "field",
|
|
843
|
-
"name": "
|
|
844
|
-
"privacy": "
|
|
845
|
-
"default": "new
|
|
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
|
+
}
|
|
846
884
|
},
|
|
847
885
|
{
|
|
848
886
|
"kind": "field",
|
|
849
|
-
"name": "
|
|
850
|
-
"privacy": "
|
|
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
|
+
}
|
|
851
894
|
},
|
|
852
895
|
{
|
|
853
896
|
"kind": "field",
|
|
854
|
-
"name": "
|
|
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
|
+
}
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "field",
|
|
907
|
+
"name": "inputId",
|
|
855
908
|
"type": {
|
|
856
|
-
"text": "
|
|
909
|
+
"text": "string"
|
|
857
910
|
},
|
|
858
|
-
"privacy": "
|
|
859
|
-
"
|
|
911
|
+
"privacy": "protected",
|
|
912
|
+
"default": "\"input\"",
|
|
913
|
+
"inheritedFrom": {
|
|
914
|
+
"name": "FormAssociatedMixin",
|
|
915
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
916
|
+
}
|
|
860
917
|
},
|
|
861
918
|
{
|
|
862
919
|
"kind": "field",
|
|
863
|
-
"name": "
|
|
920
|
+
"name": "errorId",
|
|
864
921
|
"type": {
|
|
865
|
-
"text": "
|
|
922
|
+
"text": "string"
|
|
866
923
|
},
|
|
867
|
-
"
|
|
924
|
+
"privacy": "protected",
|
|
925
|
+
"default": "\"error\"",
|
|
926
|
+
"inheritedFrom": {
|
|
927
|
+
"name": "FormAssociatedMixin",
|
|
928
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
929
|
+
}
|
|
868
930
|
},
|
|
869
931
|
{
|
|
870
932
|
"kind": "field",
|
|
871
|
-
"name": "
|
|
933
|
+
"name": "hintId",
|
|
934
|
+
"type": {
|
|
935
|
+
"text": "string"
|
|
936
|
+
},
|
|
937
|
+
"privacy": "protected",
|
|
938
|
+
"default": "\"hint\"",
|
|
939
|
+
"inheritedFrom": {
|
|
940
|
+
"name": "FormAssociatedMixin",
|
|
941
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"kind": "field",
|
|
946
|
+
"name": "label",
|
|
872
947
|
"type": {
|
|
873
948
|
"text": "string"
|
|
874
949
|
},
|
|
875
950
|
"default": "\"\"",
|
|
876
|
-
"description": "
|
|
877
|
-
"attribute": "
|
|
951
|
+
"description": "Label for the input.",
|
|
952
|
+
"attribute": "label",
|
|
953
|
+
"inheritedFrom": {
|
|
954
|
+
"name": "FormAssociatedMixin",
|
|
955
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
956
|
+
}
|
|
878
957
|
},
|
|
879
958
|
{
|
|
880
959
|
"kind": "field",
|
|
881
|
-
"name": "
|
|
960
|
+
"name": "hint",
|
|
882
961
|
"type": {
|
|
883
|
-
"text": "
|
|
962
|
+
"text": "string | undefined"
|
|
884
963
|
},
|
|
885
|
-
"description": "
|
|
886
|
-
"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
|
+
}
|
|
887
970
|
},
|
|
888
971
|
{
|
|
889
972
|
"kind": "field",
|
|
890
|
-
"name": "
|
|
973
|
+
"name": "hideLabel",
|
|
891
974
|
"type": {
|
|
892
|
-
"text": "
|
|
975
|
+
"text": "boolean"
|
|
893
976
|
},
|
|
894
|
-
"default": "
|
|
895
|
-
"description": "
|
|
896
|
-
"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
|
+
}
|
|
897
984
|
},
|
|
898
985
|
{
|
|
899
986
|
"kind": "field",
|
|
900
|
-
"name": "
|
|
987
|
+
"name": "placeholder",
|
|
901
988
|
"type": {
|
|
902
|
-
"text": "string"
|
|
989
|
+
"text": "string | undefined"
|
|
903
990
|
},
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
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
|
+
}
|
|
907
997
|
},
|
|
908
998
|
{
|
|
909
999
|
"kind": "field",
|
|
910
|
-
"name": "
|
|
1000
|
+
"name": "error",
|
|
911
1001
|
"type": {
|
|
912
|
-
"text": "
|
|
1002
|
+
"text": "string | undefined"
|
|
913
1003
|
},
|
|
914
|
-
"
|
|
915
|
-
"
|
|
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
|
+
}
|
|
916
1010
|
},
|
|
917
1011
|
{
|
|
918
1012
|
"kind": "field",
|
|
919
|
-
"name": "
|
|
1013
|
+
"name": "required",
|
|
920
1014
|
"type": {
|
|
921
1015
|
"text": "boolean"
|
|
922
1016
|
},
|
|
923
|
-
"
|
|
924
|
-
"
|
|
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
|
+
}
|
|
925
1024
|
},
|
|
926
1025
|
{
|
|
927
1026
|
"kind": "field",
|
|
928
|
-
"name": "
|
|
929
|
-
"
|
|
930
|
-
|
|
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
|
+
}
|
|
931
1039
|
},
|
|
932
1040
|
{
|
|
933
1041
|
"kind": "method",
|
|
934
|
-
"name": "
|
|
1042
|
+
"name": "handleInput",
|
|
1043
|
+
"privacy": "protected",
|
|
935
1044
|
"parameters": [
|
|
936
1045
|
{
|
|
937
|
-
"name": "
|
|
938
|
-
"optional": true,
|
|
1046
|
+
"name": "e",
|
|
939
1047
|
"type": {
|
|
940
|
-
"text": "
|
|
1048
|
+
"text": "Event"
|
|
941
1049
|
}
|
|
942
1050
|
}
|
|
943
|
-
]
|
|
1051
|
+
],
|
|
1052
|
+
"inheritedFrom": {
|
|
1053
|
+
"name": "FormAssociatedMixin",
|
|
1054
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1055
|
+
}
|
|
944
1056
|
},
|
|
945
1057
|
{
|
|
946
1058
|
"kind": "method",
|
|
947
|
-
"name": "
|
|
948
|
-
"privacy": "
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
"privacy": "private"
|
|
1059
|
+
"name": "renderLabel",
|
|
1060
|
+
"privacy": "protected",
|
|
1061
|
+
"inheritedFrom": {
|
|
1062
|
+
"name": "FormAssociatedMixin",
|
|
1063
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1064
|
+
}
|
|
954
1065
|
},
|
|
955
1066
|
{
|
|
956
1067
|
"kind": "method",
|
|
957
|
-
"name": "
|
|
958
|
-
"privacy": "
|
|
959
|
-
"
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
"text": "number"
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
]
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
"kind": "method",
|
|
970
|
-
"name": "addMonths",
|
|
971
|
-
"privacy": "private",
|
|
972
|
-
"parameters": [
|
|
973
|
-
{
|
|
974
|
-
"name": "months",
|
|
975
|
-
"type": {
|
|
976
|
-
"text": "number"
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
]
|
|
1068
|
+
"name": "renderError",
|
|
1069
|
+
"privacy": "protected",
|
|
1070
|
+
"inheritedFrom": {
|
|
1071
|
+
"name": "FormAssociatedMixin",
|
|
1072
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1073
|
+
}
|
|
980
1074
|
},
|
|
981
1075
|
{
|
|
982
1076
|
"kind": "method",
|
|
983
|
-
"name": "
|
|
984
|
-
"privacy": "
|
|
985
|
-
"
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
"text": "number"
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
]
|
|
1077
|
+
"name": "getDescribedBy",
|
|
1078
|
+
"privacy": "protected",
|
|
1079
|
+
"inheritedFrom": {
|
|
1080
|
+
"name": "FormAssociatedMixin",
|
|
1081
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1082
|
+
}
|
|
993
1083
|
},
|
|
994
1084
|
{
|
|
995
1085
|
"kind": "method",
|
|
996
|
-
"name": "
|
|
997
|
-
"privacy": "
|
|
1086
|
+
"name": "getInvalid",
|
|
1087
|
+
"privacy": "protected",
|
|
1088
|
+
"inheritedFrom": {
|
|
1089
|
+
"name": "FormAssociatedMixin",
|
|
1090
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1091
|
+
}
|
|
998
1092
|
},
|
|
999
1093
|
{
|
|
1000
|
-
"kind": "
|
|
1001
|
-
"name": "
|
|
1002
|
-
"privacy": "
|
|
1094
|
+
"kind": "field",
|
|
1095
|
+
"name": "hasHint",
|
|
1096
|
+
"privacy": "protected",
|
|
1097
|
+
"inheritedFrom": {
|
|
1098
|
+
"name": "FormAssociatedMixin",
|
|
1099
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1100
|
+
}
|
|
1003
1101
|
},
|
|
1004
1102
|
{
|
|
1005
|
-
"kind": "
|
|
1006
|
-
"name": "
|
|
1007
|
-
"privacy": "
|
|
1008
|
-
"
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
"text": "number"
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
]
|
|
1103
|
+
"kind": "field",
|
|
1104
|
+
"name": "hasError",
|
|
1105
|
+
"privacy": "protected",
|
|
1106
|
+
"inheritedFrom": {
|
|
1107
|
+
"name": "FormAssociatedMixin",
|
|
1108
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1109
|
+
}
|
|
1016
1110
|
},
|
|
1017
1111
|
{
|
|
1018
|
-
"kind": "
|
|
1019
|
-
"name": "
|
|
1020
|
-
"
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1112
|
+
"kind": "field",
|
|
1113
|
+
"name": "disabled",
|
|
1114
|
+
"type": {
|
|
1115
|
+
"text": "boolean"
|
|
1116
|
+
},
|
|
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,
|
|
1121
|
+
"inheritedFrom": {
|
|
1122
|
+
"name": "InputMixin",
|
|
1123
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1124
|
+
}
|
|
1029
1125
|
},
|
|
1030
1126
|
{
|
|
1031
|
-
"kind": "
|
|
1032
|
-
"name": "
|
|
1033
|
-
"
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1127
|
+
"kind": "field",
|
|
1128
|
+
"name": "name",
|
|
1129
|
+
"type": {
|
|
1130
|
+
"text": "string | undefined"
|
|
1131
|
+
},
|
|
1132
|
+
"description": "The name of the form component.",
|
|
1133
|
+
"attribute": "name",
|
|
1134
|
+
"inheritedFrom": {
|
|
1135
|
+
"name": "InputMixin",
|
|
1136
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1137
|
+
}
|
|
1042
1138
|
},
|
|
1043
1139
|
{
|
|
1044
1140
|
"kind": "field",
|
|
1045
|
-
"name": "
|
|
1046
|
-
"
|
|
1141
|
+
"name": "value",
|
|
1142
|
+
"type": {
|
|
1143
|
+
"text": "string"
|
|
1144
|
+
},
|
|
1145
|
+
"default": "\"\"",
|
|
1146
|
+
"description": "The value of the form component.",
|
|
1147
|
+
"attribute": "value",
|
|
1148
|
+
"inheritedFrom": {
|
|
1149
|
+
"name": "InputMixin",
|
|
1150
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1151
|
+
}
|
|
1047
1152
|
},
|
|
1048
1153
|
{
|
|
1049
1154
|
"kind": "field",
|
|
1050
|
-
"name": "
|
|
1051
|
-
"privacy": "
|
|
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
|
+
}
|
|
1052
1162
|
},
|
|
1053
1163
|
{
|
|
1054
1164
|
"kind": "field",
|
|
1055
|
-
"name": "
|
|
1056
|
-
"privacy": "
|
|
1165
|
+
"name": "focusableRef",
|
|
1166
|
+
"privacy": "protected",
|
|
1167
|
+
"inheritedFrom": {
|
|
1168
|
+
"name": "FocusableMixin",
|
|
1169
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1170
|
+
}
|
|
1057
1171
|
},
|
|
1058
1172
|
{
|
|
1059
|
-
"kind": "
|
|
1060
|
-
"name": "
|
|
1061
|
-
"
|
|
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
|
+
}
|
|
1062
1190
|
},
|
|
1063
1191
|
{
|
|
1064
|
-
"kind": "
|
|
1065
|
-
"name": "
|
|
1066
|
-
"
|
|
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
|
+
}
|
|
1067
1199
|
},
|
|
1068
1200
|
{
|
|
1069
|
-
"kind": "
|
|
1070
|
-
"name": "
|
|
1071
|
-
"
|
|
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
|
+
}
|
|
1072
1208
|
},
|
|
1073
1209
|
{
|
|
1074
1210
|
"kind": "field",
|
|
@@ -1087,42 +1223,154 @@
|
|
|
1087
1223
|
],
|
|
1088
1224
|
"attributes": [
|
|
1089
1225
|
{
|
|
1090
|
-
"name": "
|
|
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",
|
|
1091
1236
|
"type": {
|
|
1092
1237
|
"text": "string"
|
|
1093
1238
|
},
|
|
1094
1239
|
"default": "\"\"",
|
|
1095
|
-
"description": "
|
|
1096
|
-
"fieldName": "
|
|
1240
|
+
"description": "Label for the input.",
|
|
1241
|
+
"fieldName": "label",
|
|
1242
|
+
"inheritedFrom": {
|
|
1243
|
+
"name": "FormAssociatedMixin",
|
|
1244
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1245
|
+
}
|
|
1097
1246
|
},
|
|
1098
1247
|
{
|
|
1099
|
-
"name": "
|
|
1248
|
+
"name": "hint",
|
|
1100
1249
|
"type": {
|
|
1101
|
-
"text": "
|
|
1250
|
+
"text": "string | undefined"
|
|
1102
1251
|
},
|
|
1103
|
-
"description": "
|
|
1104
|
-
"fieldName": "
|
|
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
|
+
}
|
|
1105
1258
|
},
|
|
1106
1259
|
{
|
|
1107
|
-
"name": "
|
|
1260
|
+
"name": "hide-label",
|
|
1108
1261
|
"type": {
|
|
1109
|
-
"text": "
|
|
1262
|
+
"text": "boolean"
|
|
1110
1263
|
},
|
|
1111
|
-
"default": "
|
|
1112
|
-
"description": "
|
|
1113
|
-
"fieldName": "
|
|
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
|
+
}
|
|
1114
1271
|
},
|
|
1115
1272
|
{
|
|
1116
|
-
"name": "
|
|
1273
|
+
"name": "placeholder",
|
|
1117
1274
|
"type": {
|
|
1118
|
-
"text": "string"
|
|
1275
|
+
"text": "string | undefined"
|
|
1119
1276
|
},
|
|
1120
|
-
"
|
|
1121
|
-
"
|
|
1122
|
-
"
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
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
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"mixins": [
|
|
1362
|
+
{
|
|
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
|
+
},
|
|
1126
1374
|
{
|
|
1127
1375
|
"name": "DraftComponentMixin",
|
|
1128
1376
|
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
@@ -1133,9 +1381,33 @@
|
|
|
1133
1381
|
"package": "lit"
|
|
1134
1382
|
},
|
|
1135
1383
|
"status": "draft",
|
|
1136
|
-
"category": "
|
|
1137
|
-
"tagName": "nord-
|
|
1138
|
-
"customElement": true
|
|
1384
|
+
"category": "form",
|
|
1385
|
+
"tagName": "nord-checkbox",
|
|
1386
|
+
"customElement": true,
|
|
1387
|
+
"events": [
|
|
1388
|
+
{
|
|
1389
|
+
"name": "input",
|
|
1390
|
+
"type": {
|
|
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"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "change",
|
|
1401
|
+
"type": {
|
|
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"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
]
|
|
1139
1411
|
}
|
|
1140
1412
|
],
|
|
1141
1413
|
"exports": [
|
|
@@ -1143,655 +1415,292 @@
|
|
|
1143
1415
|
"kind": "js",
|
|
1144
1416
|
"name": "default",
|
|
1145
1417
|
"declaration": {
|
|
1146
|
-
"name": "
|
|
1147
|
-
"module": "src/
|
|
1418
|
+
"name": "Checkbox",
|
|
1419
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1148
1420
|
}
|
|
1149
1421
|
},
|
|
1150
1422
|
{
|
|
1151
1423
|
"kind": "custom-element-definition",
|
|
1152
|
-
"name": "nord-
|
|
1424
|
+
"name": "nord-checkbox",
|
|
1153
1425
|
"declaration": {
|
|
1154
|
-
"name": "
|
|
1155
|
-
"module": "src/
|
|
1426
|
+
"name": "Checkbox",
|
|
1427
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1156
1428
|
}
|
|
1157
1429
|
}
|
|
1158
1430
|
],
|
|
1159
|
-
"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"
|
|
1160
1432
|
},
|
|
1161
1433
|
{
|
|
1162
1434
|
"kind": "javascript-module",
|
|
1163
|
-
"path": "src/calendar/
|
|
1435
|
+
"path": "src/calendar/Calendar.ts",
|
|
1164
1436
|
"declarations": [
|
|
1165
1437
|
{
|
|
1166
1438
|
"kind": "class",
|
|
1167
|
-
"description": "",
|
|
1168
|
-
"name": "
|
|
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",
|
|
1169
1441
|
"members": [
|
|
1170
1442
|
{
|
|
1171
1443
|
"kind": "field",
|
|
1172
|
-
"name": "
|
|
1444
|
+
"name": "dialogLabelId",
|
|
1173
1445
|
"type": {
|
|
1174
1446
|
"text": "string"
|
|
1175
1447
|
},
|
|
1176
|
-
"
|
|
1177
|
-
"default": "\"
|
|
1448
|
+
"privacy": "private",
|
|
1449
|
+
"default": "\"dialog-header\""
|
|
1178
1450
|
},
|
|
1179
1451
|
{
|
|
1180
1452
|
"kind": "field",
|
|
1181
|
-
"name": "
|
|
1453
|
+
"name": "monthSelectNode",
|
|
1182
1454
|
"type": {
|
|
1183
|
-
"text": "
|
|
1455
|
+
"text": "HTMLElement"
|
|
1184
1456
|
},
|
|
1185
|
-
"
|
|
1186
|
-
}
|
|
1187
|
-
],
|
|
1188
|
-
"superclass": {
|
|
1189
|
-
"name": "NordEvent",
|
|
1190
|
-
"module": "/src/common/events.js"
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
],
|
|
1194
|
-
"exports": [
|
|
1195
|
-
{
|
|
1196
|
-
"kind": "js",
|
|
1197
|
-
"name": "DateSelectEvent",
|
|
1198
|
-
"declaration": {
|
|
1199
|
-
"name": "DateSelectEvent",
|
|
1200
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
"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"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"kind": "javascript-module",
|
|
1208
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
1209
|
-
"declarations": [
|
|
1210
|
-
{
|
|
1211
|
-
"kind": "variable",
|
|
1212
|
-
"name": "localization",
|
|
1213
|
-
"type": {
|
|
1214
|
-
"text": "CalendarLocalizedText"
|
|
1215
|
-
},
|
|
1216
|
-
"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}"
|
|
1217
|
-
}
|
|
1218
|
-
],
|
|
1219
|
-
"exports": [
|
|
1220
|
-
{
|
|
1221
|
-
"kind": "js",
|
|
1222
|
-
"name": "default",
|
|
1223
|
-
"declaration": {
|
|
1224
|
-
"name": "localization",
|
|
1225
|
-
"module": "src/calendar/calendar-localization.ts"
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
],
|
|
1229
|
-
"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"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"kind": "javascript-module",
|
|
1233
|
-
"path": "src/calendar/month-view.ts",
|
|
1234
|
-
"declarations": [
|
|
1235
|
-
{
|
|
1236
|
-
"kind": "function",
|
|
1237
|
-
"name": "dayView",
|
|
1238
|
-
"parameters": [
|
|
1457
|
+
"privacy": "private"
|
|
1458
|
+
},
|
|
1239
1459
|
{
|
|
1240
|
-
"
|
|
1460
|
+
"kind": "field",
|
|
1461
|
+
"name": "focusedDayNode",
|
|
1241
1462
|
"type": {
|
|
1242
|
-
"text": "
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
"kind": "function",
|
|
1249
|
-
"name": "monthView",
|
|
1250
|
-
"parameters": [
|
|
1463
|
+
"text": "HTMLButtonElement"
|
|
1464
|
+
},
|
|
1465
|
+
"privacy": "private"
|
|
1466
|
+
},
|
|
1251
1467
|
{
|
|
1252
|
-
"
|
|
1468
|
+
"kind": "field",
|
|
1469
|
+
"name": "direction",
|
|
1470
|
+
"privacy": "private",
|
|
1471
|
+
"default": "new DirectionController(this)"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"kind": "field",
|
|
1475
|
+
"name": "swipe",
|
|
1476
|
+
"privacy": "private",
|
|
1477
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"kind": "field",
|
|
1481
|
+
"name": "shortcuts",
|
|
1482
|
+
"privacy": "private"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"kind": "field",
|
|
1486
|
+
"name": "dateFormatShort",
|
|
1253
1487
|
"type": {
|
|
1254
|
-
"text": "
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
]
|
|
1258
|
-
}
|
|
1259
|
-
],
|
|
1260
|
-
"exports": [
|
|
1261
|
-
{
|
|
1262
|
-
"kind": "js",
|
|
1263
|
-
"name": "dayView",
|
|
1264
|
-
"declaration": {
|
|
1265
|
-
"name": "dayView",
|
|
1266
|
-
"module": "src/calendar/month-view.ts"
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
"kind": "js",
|
|
1271
|
-
"name": "monthView",
|
|
1272
|
-
"declaration": {
|
|
1273
|
-
"name": "monthView",
|
|
1274
|
-
"module": "src/calendar/month-view.ts"
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
],
|
|
1278
|
-
"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"
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
"kind": "javascript-module",
|
|
1282
|
-
"path": "src/card/Card.ts",
|
|
1283
|
-
"declarations": [
|
|
1284
|
-
{
|
|
1285
|
-
"kind": "class",
|
|
1286
|
-
"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.",
|
|
1287
|
-
"name": "Card",
|
|
1288
|
-
"slots": [
|
|
1289
|
-
{
|
|
1290
|
-
"description": "The card content.",
|
|
1291
|
-
"name": ""
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
"description": "Optional slot that holds a header for the card.",
|
|
1295
|
-
"name": "header"
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
1299
|
-
"name": "footer"
|
|
1300
|
-
}
|
|
1301
|
-
],
|
|
1302
|
-
"members": [
|
|
1303
|
-
{
|
|
1304
|
-
"kind": "field",
|
|
1305
|
-
"name": "headerSlot",
|
|
1488
|
+
"text": "Intl.DateTimeFormat"
|
|
1489
|
+
},
|
|
1306
1490
|
"privacy": "private",
|
|
1307
|
-
"
|
|
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"
|
|
1308
1492
|
},
|
|
1309
1493
|
{
|
|
1310
1494
|
"kind": "field",
|
|
1311
|
-
"name": "
|
|
1312
|
-
"
|
|
1313
|
-
|
|
1495
|
+
"name": "localization",
|
|
1496
|
+
"type": {
|
|
1497
|
+
"text": "CalendarLocalizedText"
|
|
1498
|
+
},
|
|
1499
|
+
"default": "localization"
|
|
1314
1500
|
},
|
|
1315
1501
|
{
|
|
1316
1502
|
"kind": "field",
|
|
1317
|
-
"name": "
|
|
1503
|
+
"name": "value",
|
|
1318
1504
|
"type": {
|
|
1319
|
-
"text": "
|
|
1505
|
+
"text": "string"
|
|
1320
1506
|
},
|
|
1321
|
-
"default": "\"
|
|
1322
|
-
"description": "
|
|
1323
|
-
"attribute": "
|
|
1324
|
-
"reflects": true
|
|
1507
|
+
"default": "\"\"",
|
|
1508
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1509
|
+
"attribute": "value"
|
|
1325
1510
|
},
|
|
1326
1511
|
{
|
|
1327
1512
|
"kind": "field",
|
|
1328
|
-
"name": "
|
|
1513
|
+
"name": "firstDayOfWeek",
|
|
1329
1514
|
"type": {
|
|
1330
|
-
"text": "
|
|
1515
|
+
"text": "DaysOfWeek"
|
|
1331
1516
|
},
|
|
1332
|
-
"
|
|
1333
|
-
"
|
|
1334
|
-
|
|
1335
|
-
"inheritedFrom": {
|
|
1336
|
-
"name": "DraftComponentMixin",
|
|
1337
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
],
|
|
1341
|
-
"attributes": [
|
|
1517
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1518
|
+
"attribute": "firstDayOfWeek"
|
|
1519
|
+
},
|
|
1342
1520
|
{
|
|
1343
|
-
"
|
|
1521
|
+
"kind": "field",
|
|
1522
|
+
"name": "min",
|
|
1344
1523
|
"type": {
|
|
1345
|
-
"text": "
|
|
1524
|
+
"text": "string"
|
|
1346
1525
|
},
|
|
1347
|
-
"default": "\"
|
|
1348
|
-
"description": "
|
|
1349
|
-
"
|
|
1350
|
-
}
|
|
1351
|
-
],
|
|
1352
|
-
"mixins": [
|
|
1353
|
-
{
|
|
1354
|
-
"name": "DraftComponentMixin",
|
|
1355
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1356
|
-
}
|
|
1357
|
-
],
|
|
1358
|
-
"superclass": {
|
|
1359
|
-
"name": "LitElement",
|
|
1360
|
-
"package": "lit"
|
|
1361
|
-
},
|
|
1362
|
-
"status": "draft",
|
|
1363
|
-
"category": "structure",
|
|
1364
|
-
"tagName": "nord-card",
|
|
1365
|
-
"customElement": true
|
|
1366
|
-
}
|
|
1367
|
-
],
|
|
1368
|
-
"exports": [
|
|
1369
|
-
{
|
|
1370
|
-
"kind": "js",
|
|
1371
|
-
"name": "default",
|
|
1372
|
-
"declaration": {
|
|
1373
|
-
"name": "Card",
|
|
1374
|
-
"module": "src/card/Card.ts"
|
|
1375
|
-
}
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
"kind": "custom-element-definition",
|
|
1379
|
-
"name": "nord-card",
|
|
1380
|
-
"declaration": {
|
|
1381
|
-
"name": "Card",
|
|
1382
|
-
"module": "src/card/Card.ts"
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
],
|
|
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 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"
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
"kind": "javascript-module",
|
|
1390
|
-
"path": "src/checkbox/Checkbox.ts",
|
|
1391
|
-
"declarations": [
|
|
1392
|
-
{
|
|
1393
|
-
"kind": "class",
|
|
1394
|
-
"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.",
|
|
1395
|
-
"name": "Checkbox",
|
|
1396
|
-
"slots": [
|
|
1397
|
-
{
|
|
1398
|
-
"description": "Use when a label requires more than plain text.",
|
|
1399
|
-
"name": "label"
|
|
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"
|
|
1400
1529
|
},
|
|
1401
1530
|
{
|
|
1402
|
-
"
|
|
1403
|
-
"name": "
|
|
1531
|
+
"kind": "field",
|
|
1532
|
+
"name": "max",
|
|
1533
|
+
"type": {
|
|
1534
|
+
"text": "string"
|
|
1535
|
+
},
|
|
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"
|
|
1404
1539
|
},
|
|
1405
|
-
{
|
|
1406
|
-
"description": "Optional slot that holds error text for the input.",
|
|
1407
|
-
"name": "error"
|
|
1408
|
-
}
|
|
1409
|
-
],
|
|
1410
|
-
"members": [
|
|
1411
1540
|
{
|
|
1412
1541
|
"kind": "field",
|
|
1413
|
-
"name": "
|
|
1414
|
-
"
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1542
|
+
"name": "isDateDisabled",
|
|
1543
|
+
"type": {
|
|
1544
|
+
"text": "DateDisabledPredicate"
|
|
1545
|
+
},
|
|
1546
|
+
"default": "isDateDisabled",
|
|
1547
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1419
1548
|
},
|
|
1420
1549
|
{
|
|
1421
1550
|
"kind": "field",
|
|
1422
|
-
"name": "
|
|
1551
|
+
"name": "activeFocus",
|
|
1423
1552
|
"type": {
|
|
1424
1553
|
"text": "boolean"
|
|
1425
1554
|
},
|
|
1426
|
-
"
|
|
1427
|
-
"
|
|
1428
|
-
|
|
1555
|
+
"privacy": "private",
|
|
1556
|
+
"default": "false"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"kind": "field",
|
|
1560
|
+
"name": "focusedDay",
|
|
1561
|
+
"privacy": "private",
|
|
1562
|
+
"default": "new Date()"
|
|
1429
1563
|
},
|
|
1430
1564
|
{
|
|
1431
1565
|
"kind": "method",
|
|
1432
|
-
"name": "
|
|
1433
|
-
"privacy": "protected",
|
|
1434
|
-
"return": {
|
|
1435
|
-
"type": {
|
|
1436
|
-
"text": "void"
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1566
|
+
"name": "focus",
|
|
1439
1567
|
"parameters": [
|
|
1440
1568
|
{
|
|
1441
|
-
"name": "
|
|
1569
|
+
"name": "options",
|
|
1570
|
+
"optional": true,
|
|
1442
1571
|
"type": {
|
|
1443
|
-
"text": "
|
|
1572
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1444
1573
|
}
|
|
1445
1574
|
}
|
|
1446
|
-
]
|
|
1447
|
-
"inheritedFrom": {
|
|
1448
|
-
"name": "FormAssociatedMixin",
|
|
1449
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1450
|
-
}
|
|
1575
|
+
]
|
|
1451
1576
|
},
|
|
1452
1577
|
{
|
|
1453
|
-
"kind": "
|
|
1454
|
-
"name": "
|
|
1455
|
-
"privacy": "
|
|
1456
|
-
"default": "new SlotController(this, \"label\")",
|
|
1457
|
-
"inheritedFrom": {
|
|
1458
|
-
"name": "FormAssociatedMixin",
|
|
1459
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1460
|
-
}
|
|
1578
|
+
"kind": "method",
|
|
1579
|
+
"name": "createDateFormatter",
|
|
1580
|
+
"privacy": "private"
|
|
1461
1581
|
},
|
|
1462
1582
|
{
|
|
1463
1583
|
"kind": "field",
|
|
1464
|
-
"name": "
|
|
1465
|
-
"privacy": "
|
|
1466
|
-
"default": "new SlotController(this, \"error\")",
|
|
1467
|
-
"inheritedFrom": {
|
|
1468
|
-
"name": "FormAssociatedMixin",
|
|
1469
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1470
|
-
}
|
|
1584
|
+
"name": "handleDaySelect",
|
|
1585
|
+
"privacy": "private"
|
|
1471
1586
|
},
|
|
1472
1587
|
{
|
|
1473
|
-
"kind": "
|
|
1474
|
-
"name": "
|
|
1475
|
-
"privacy": "
|
|
1476
|
-
"
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1588
|
+
"kind": "method",
|
|
1589
|
+
"name": "addDays",
|
|
1590
|
+
"privacy": "private",
|
|
1591
|
+
"parameters": [
|
|
1592
|
+
{
|
|
1593
|
+
"name": "days",
|
|
1594
|
+
"type": {
|
|
1595
|
+
"text": "number"
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
]
|
|
1481
1599
|
},
|
|
1482
1600
|
{
|
|
1483
|
-
"kind": "
|
|
1484
|
-
"name": "
|
|
1485
|
-
"privacy": "
|
|
1486
|
-
"
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
"name": "inputId",
|
|
1495
|
-
"type": {
|
|
1496
|
-
"text": "string"
|
|
1497
|
-
},
|
|
1498
|
-
"privacy": "protected",
|
|
1499
|
-
"default": "\"input\"",
|
|
1500
|
-
"inheritedFrom": {
|
|
1501
|
-
"name": "FormAssociatedMixin",
|
|
1502
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"kind": "field",
|
|
1507
|
-
"name": "errorId",
|
|
1508
|
-
"type": {
|
|
1509
|
-
"text": "string"
|
|
1510
|
-
},
|
|
1511
|
-
"privacy": "protected",
|
|
1512
|
-
"default": "\"error\"",
|
|
1513
|
-
"inheritedFrom": {
|
|
1514
|
-
"name": "FormAssociatedMixin",
|
|
1515
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1516
|
-
}
|
|
1517
|
-
},
|
|
1518
|
-
{
|
|
1519
|
-
"kind": "field",
|
|
1520
|
-
"name": "hintId",
|
|
1521
|
-
"type": {
|
|
1522
|
-
"text": "string"
|
|
1523
|
-
},
|
|
1524
|
-
"privacy": "protected",
|
|
1525
|
-
"default": "\"hint\"",
|
|
1526
|
-
"inheritedFrom": {
|
|
1527
|
-
"name": "FormAssociatedMixin",
|
|
1528
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1529
|
-
}
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
"kind": "field",
|
|
1533
|
-
"name": "label",
|
|
1534
|
-
"type": {
|
|
1535
|
-
"text": "string"
|
|
1536
|
-
},
|
|
1537
|
-
"default": "\"\"",
|
|
1538
|
-
"description": "Label for the input.",
|
|
1539
|
-
"attribute": "label",
|
|
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
|
-
}
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
"kind": "field",
|
|
1560
|
-
"name": "hideLabel",
|
|
1561
|
-
"type": {
|
|
1562
|
-
"text": "boolean"
|
|
1563
|
-
},
|
|
1564
|
-
"default": "false",
|
|
1565
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1566
|
-
"attribute": "hide-label",
|
|
1567
|
-
"inheritedFrom": {
|
|
1568
|
-
"name": "FormAssociatedMixin",
|
|
1569
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1570
|
-
}
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
"kind": "field",
|
|
1574
|
-
"name": "placeholder",
|
|
1575
|
-
"type": {
|
|
1576
|
-
"text": "string | undefined"
|
|
1577
|
-
},
|
|
1578
|
-
"description": "Placeholder text to display within the input.",
|
|
1579
|
-
"attribute": "placeholder",
|
|
1580
|
-
"inheritedFrom": {
|
|
1581
|
-
"name": "FormAssociatedMixin",
|
|
1582
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
{
|
|
1586
|
-
"kind": "field",
|
|
1587
|
-
"name": "error",
|
|
1588
|
-
"type": {
|
|
1589
|
-
"text": "string | undefined"
|
|
1590
|
-
},
|
|
1591
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1592
|
-
"attribute": "error",
|
|
1593
|
-
"inheritedFrom": {
|
|
1594
|
-
"name": "FormAssociatedMixin",
|
|
1595
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1596
|
-
}
|
|
1597
|
-
},
|
|
1598
|
-
{
|
|
1599
|
-
"kind": "field",
|
|
1600
|
-
"name": "required",
|
|
1601
|
-
"type": {
|
|
1602
|
-
"text": "boolean"
|
|
1603
|
-
},
|
|
1604
|
-
"default": "false",
|
|
1605
|
-
"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.",
|
|
1606
|
-
"attribute": "required",
|
|
1607
|
-
"inheritedFrom": {
|
|
1608
|
-
"name": "FormAssociatedMixin",
|
|
1609
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1610
|
-
}
|
|
1611
|
-
},
|
|
1612
|
-
{
|
|
1613
|
-
"kind": "field",
|
|
1614
|
-
"name": "expand",
|
|
1615
|
-
"type": {
|
|
1616
|
-
"text": "boolean"
|
|
1617
|
-
},
|
|
1618
|
-
"default": "false",
|
|
1619
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1620
|
-
"attribute": "expand",
|
|
1621
|
-
"reflects": true,
|
|
1622
|
-
"inheritedFrom": {
|
|
1623
|
-
"name": "FormAssociatedMixin",
|
|
1624
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1625
|
-
}
|
|
1601
|
+
"kind": "method",
|
|
1602
|
+
"name": "addMonths",
|
|
1603
|
+
"privacy": "private",
|
|
1604
|
+
"parameters": [
|
|
1605
|
+
{
|
|
1606
|
+
"name": "months",
|
|
1607
|
+
"type": {
|
|
1608
|
+
"text": "number"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
]
|
|
1626
1612
|
},
|
|
1627
1613
|
{
|
|
1628
1614
|
"kind": "method",
|
|
1629
|
-
"name": "
|
|
1630
|
-
"privacy": "
|
|
1615
|
+
"name": "addYears",
|
|
1616
|
+
"privacy": "private",
|
|
1631
1617
|
"parameters": [
|
|
1632
1618
|
{
|
|
1633
|
-
"name": "
|
|
1619
|
+
"name": "years",
|
|
1634
1620
|
"type": {
|
|
1635
|
-
"text": "
|
|
1621
|
+
"text": "number"
|
|
1636
1622
|
}
|
|
1637
1623
|
}
|
|
1638
|
-
]
|
|
1639
|
-
"inheritedFrom": {
|
|
1640
|
-
"name": "FormAssociatedMixin",
|
|
1641
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1642
|
-
}
|
|
1624
|
+
]
|
|
1643
1625
|
},
|
|
1644
1626
|
{
|
|
1645
1627
|
"kind": "method",
|
|
1646
|
-
"name": "
|
|
1647
|
-
"privacy": "
|
|
1648
|
-
"inheritedFrom": {
|
|
1649
|
-
"name": "FormAssociatedMixin",
|
|
1650
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1651
|
-
}
|
|
1628
|
+
"name": "startOfWeek",
|
|
1629
|
+
"privacy": "private"
|
|
1652
1630
|
},
|
|
1653
1631
|
{
|
|
1654
1632
|
"kind": "method",
|
|
1655
|
-
"name": "
|
|
1656
|
-
"privacy": "
|
|
1657
|
-
"inheritedFrom": {
|
|
1658
|
-
"name": "FormAssociatedMixin",
|
|
1659
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1660
|
-
}
|
|
1633
|
+
"name": "endOfWeek",
|
|
1634
|
+
"privacy": "private"
|
|
1661
1635
|
},
|
|
1662
1636
|
{
|
|
1663
1637
|
"kind": "method",
|
|
1664
|
-
"name": "
|
|
1665
|
-
"privacy": "
|
|
1666
|
-
"
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1638
|
+
"name": "setMonth",
|
|
1639
|
+
"privacy": "private",
|
|
1640
|
+
"parameters": [
|
|
1641
|
+
{
|
|
1642
|
+
"name": "month",
|
|
1643
|
+
"type": {
|
|
1644
|
+
"text": "number"
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
]
|
|
1670
1648
|
},
|
|
1671
1649
|
{
|
|
1672
1650
|
"kind": "method",
|
|
1673
|
-
"name": "
|
|
1674
|
-
"privacy": "
|
|
1675
|
-
"
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
"privacy": "protected",
|
|
1684
|
-
"inheritedFrom": {
|
|
1685
|
-
"name": "FormAssociatedMixin",
|
|
1686
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1687
|
-
}
|
|
1688
|
-
},
|
|
1689
|
-
{
|
|
1690
|
-
"kind": "field",
|
|
1691
|
-
"name": "hasError",
|
|
1692
|
-
"privacy": "protected",
|
|
1693
|
-
"inheritedFrom": {
|
|
1694
|
-
"name": "FormAssociatedMixin",
|
|
1695
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1696
|
-
}
|
|
1651
|
+
"name": "setYear",
|
|
1652
|
+
"privacy": "private",
|
|
1653
|
+
"parameters": [
|
|
1654
|
+
{
|
|
1655
|
+
"name": "year",
|
|
1656
|
+
"type": {
|
|
1657
|
+
"text": "number"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
]
|
|
1697
1661
|
},
|
|
1698
1662
|
{
|
|
1699
|
-
"kind": "
|
|
1700
|
-
"name": "
|
|
1701
|
-
"
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1711
|
-
}
|
|
1663
|
+
"kind": "method",
|
|
1664
|
+
"name": "setFocusedDay",
|
|
1665
|
+
"privacy": "private",
|
|
1666
|
+
"parameters": [
|
|
1667
|
+
{
|
|
1668
|
+
"name": "day",
|
|
1669
|
+
"type": {
|
|
1670
|
+
"text": "Date"
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1712
1674
|
},
|
|
1713
1675
|
{
|
|
1714
1676
|
"kind": "field",
|
|
1715
|
-
"name": "
|
|
1716
|
-
"
|
|
1717
|
-
"text": "string | undefined"
|
|
1718
|
-
},
|
|
1719
|
-
"description": "The name of the form component.",
|
|
1720
|
-
"attribute": "name",
|
|
1721
|
-
"inheritedFrom": {
|
|
1722
|
-
"name": "InputMixin",
|
|
1723
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1724
|
-
}
|
|
1677
|
+
"name": "handleMonthSelect",
|
|
1678
|
+
"privacy": "private"
|
|
1725
1679
|
},
|
|
1726
1680
|
{
|
|
1727
1681
|
"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
|
-
}
|
|
1682
|
+
"name": "handleYearSelect",
|
|
1683
|
+
"privacy": "private"
|
|
1739
1684
|
},
|
|
1740
1685
|
{
|
|
1741
1686
|
"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
|
-
}
|
|
1687
|
+
"name": "handleNextMonthClick",
|
|
1688
|
+
"privacy": "private"
|
|
1749
1689
|
},
|
|
1750
1690
|
{
|
|
1751
1691
|
"kind": "field",
|
|
1752
|
-
"name": "
|
|
1753
|
-
"privacy": "
|
|
1754
|
-
"inheritedFrom": {
|
|
1755
|
-
"name": "FocusableMixin",
|
|
1756
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1757
|
-
}
|
|
1758
|
-
},
|
|
1759
|
-
{
|
|
1760
|
-
"kind": "method",
|
|
1761
|
-
"name": "focus",
|
|
1762
|
-
"parameters": [
|
|
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
|
-
}
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
"kind": "method",
|
|
1780
|
-
"name": "blur",
|
|
1781
|
-
"description": "Programmatically remove focus from the component.",
|
|
1782
|
-
"inheritedFrom": {
|
|
1783
|
-
"name": "FocusableMixin",
|
|
1784
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1785
|
-
}
|
|
1692
|
+
"name": "handlePreviousMonthClick",
|
|
1693
|
+
"privacy": "private"
|
|
1786
1694
|
},
|
|
1787
1695
|
{
|
|
1788
|
-
"kind": "
|
|
1789
|
-
"name": "
|
|
1790
|
-
"
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1696
|
+
"kind": "field",
|
|
1697
|
+
"name": "enableActiveFocus",
|
|
1698
|
+
"privacy": "private"
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
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",
|
|
1732
|
+
"type": {
|
|
1733
|
+
"text": "DaysOfWeek"
|
|
1734
|
+
},
|
|
1735
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1736
|
+
"fieldName": "firstDayOfWeek"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "min",
|
|
1823
1740
|
"type": {
|
|
1824
1741
|
"text": "string"
|
|
1825
1742
|
},
|
|
1826
1743
|
"default": "\"\"",
|
|
1827
|
-
"description": "
|
|
1828
|
-
"fieldName": "
|
|
1829
|
-
"inheritedFrom": {
|
|
1830
|
-
"name": "FormAssociatedMixin",
|
|
1831
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1832
|
-
}
|
|
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"
|
|
1833
1746
|
},
|
|
1834
1747
|
{
|
|
1835
|
-
"name": "
|
|
1748
|
+
"name": "max",
|
|
1836
1749
|
"type": {
|
|
1837
|
-
"text": "string
|
|
1750
|
+
"text": "string"
|
|
1838
1751
|
},
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
1841
|
-
"
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
},
|
|
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": [
|
|
1846
1758
|
{
|
|
1847
|
-
"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",
|
|
1848
1805
|
"type": {
|
|
1849
|
-
"text": "
|
|
1806
|
+
"text": "string"
|
|
1850
1807
|
},
|
|
1851
|
-
"
|
|
1852
|
-
"
|
|
1853
|
-
"fieldName": "hideLabel",
|
|
1854
|
-
"inheritedFrom": {
|
|
1855
|
-
"name": "FormAssociatedMixin",
|
|
1856
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1857
|
-
}
|
|
1808
|
+
"static": true,
|
|
1809
|
+
"default": "\"nord-select\""
|
|
1858
1810
|
},
|
|
1859
1811
|
{
|
|
1860
|
-
"
|
|
1812
|
+
"kind": "field",
|
|
1813
|
+
"name": "date",
|
|
1861
1814
|
"type": {
|
|
1862
|
-
"text": "
|
|
1815
|
+
"text": "Date"
|
|
1863
1816
|
},
|
|
1864
|
-
"
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
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"
|
|
1869
1875
|
}
|
|
1870
|
-
}
|
|
1876
|
+
}
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"kind": "function",
|
|
1881
|
+
"name": "monthView",
|
|
1882
|
+
"parameters": [
|
|
1871
1883
|
{
|
|
1872
|
-
"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}",
|
|
1873
1885
|
"type": {
|
|
1874
|
-
"text": "
|
|
1875
|
-
},
|
|
1876
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1877
|
-
"fieldName": "error",
|
|
1878
|
-
"inheritedFrom": {
|
|
1879
|
-
"name": "FormAssociatedMixin",
|
|
1880
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1886
|
+
"text": "MonthViewArgs"
|
|
1881
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\")"
|
|
1882
1940
|
},
|
|
1883
1941
|
{
|
|
1884
|
-
"
|
|
1885
|
-
"
|
|
1886
|
-
|
|
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"
|
|
1894
|
-
}
|
|
1942
|
+
"kind": "field",
|
|
1943
|
+
"name": "footerSlot",
|
|
1944
|
+
"privacy": "private",
|
|
1945
|
+
"default": "new SlotController(this, \"footer\")"
|
|
1895
1946
|
},
|
|
1896
1947
|
{
|
|
1897
|
-
"
|
|
1948
|
+
"kind": "field",
|
|
1949
|
+
"name": "padding",
|
|
1898
1950
|
"type": {
|
|
1899
|
-
"text": "
|
|
1951
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1900
1952
|
},
|
|
1901
|
-
"default": "
|
|
1902
|
-
"description": "Controls
|
|
1903
|
-
"
|
|
1904
|
-
"
|
|
1905
|
-
"name": "FormAssociatedMixin",
|
|
1906
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1907
|
-
}
|
|
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
|
|
1908
1957
|
},
|
|
1909
1958
|
{
|
|
1910
|
-
"
|
|
1959
|
+
"kind": "field",
|
|
1960
|
+
"name": "_warningLogged",
|
|
1911
1961
|
"type": {
|
|
1912
1962
|
"text": "boolean"
|
|
1913
1963
|
},
|
|
1964
|
+
"privacy": "private",
|
|
1965
|
+
"static": true,
|
|
1914
1966
|
"default": "false",
|
|
1915
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1916
|
-
"fieldName": "disabled",
|
|
1917
|
-
"inheritedFrom": {
|
|
1918
|
-
"name": "InputMixin",
|
|
1919
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1920
|
-
}
|
|
1921
|
-
},
|
|
1922
|
-
{
|
|
1923
|
-
"name": "name",
|
|
1924
|
-
"type": {
|
|
1925
|
-
"text": "string | undefined"
|
|
1926
|
-
},
|
|
1927
|
-
"description": "The name of the form component.",
|
|
1928
|
-
"fieldName": "name",
|
|
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 should provide\nexplanation or 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
|
{
|