@aurodesignsystem-dev/auro-formkit 0.0.0-pr1448.1 → 0.0.0-pr1448.3
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/components/checkbox/demo/getting-started.md +5 -6
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/getting-started.md +76 -27
- package/components/combobox/demo/index.min.js +15 -1
- package/components/combobox/demo/registered.min.js +5 -3
- package/components/combobox/dist/index.js +5 -3
- package/components/combobox/dist/registered.js +5 -3
- package/components/counter/demo/getting-started.md +4 -3
- package/components/counter/demo/index.min.js +8392 -1
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/getting-started.md +25 -2
- package/components/datepicker/demo/index.min.js +24612 -1
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/getting-started.md +34 -2
- package/components/dropdown/demo/index.min.js +5097 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/getting-started.md +5 -6
- package/components/form/demo/index.min.js +716 -2
- package/components/form/demo/registerDemoDeps.min.js +5 -5
- package/components/input/demo/auro-input.min.js +1 -1
- package/components/input/demo/customize.min.js +48 -1
- package/components/input/demo/getting-started.md +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/getting-started.md +1 -1
- package/components/menu/demo/index.min.js +2288 -1
- package/components/radio/demo/getting-started.md +27 -2
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/getting-started.md +39 -5
- package/components/select/demo/getting-started.min.js +31 -1
- package/components/select/demo/registered.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +244 -244
- package/package.json +1 -1
- package/components/checkbox/demo/api.js +0 -17
- package/components/checkbox/demo/api.min.js +0 -26
- package/components/combobox/demo/api.js +0 -39
- package/components/combobox/demo/api.min.js +0 -106
- package/components/combobox/demo/swap-value.min.js +0 -16
- package/components/counter/demo/api.js +0 -24
- package/components/counter/demo/api.min.js +0 -52
- package/components/counter/demo/auro-counter-group.min.js +0 -8394
- package/components/datepicker/demo/api.js +0 -37
- package/components/datepicker/demo/api.min.js +0 -300
- package/components/datepicker/demo/auro-datepicker.min.js +0 -24614
- package/components/dropdown/demo/api.js +0 -26
- package/components/dropdown/demo/api.min.js +0 -109
- package/components/dropdown/demo/auro-dropdown.min.js +0 -5099
- package/components/form/demo/api.js +0 -5
- package/components/form/demo/api.min.js +0 -8
- package/components/form/demo/auro-form.min.js +0 -718
- package/components/input/demo/api.js +0 -27
- package/components/input/demo/api.min.js +0 -52
- package/components/input/demo/swap-value.min.js +0 -49
- package/components/menu/demo/api.js +0 -29
- package/components/menu/demo/api.min.js +0 -121
- package/components/menu/demo/auro-menuoption.min.js +0 -2290
- package/components/radio/demo/api.js +0 -19
- package/components/radio/demo/api.min.js +0 -44
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/api.min.js +0 -83
- package/components/select/demo/update-active-option.min.js +0 -32
package/custom-elements.json
CHANGED
|
@@ -2,250 +2,6 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "components/bibtemplate/src/auro-bibtemplate.js",
|
|
8
|
-
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "class",
|
|
11
|
-
"description": "The `auro-bibtemplate` element provides users a template for creating modal dialog elements.",
|
|
12
|
-
"name": "AuroBibtemplate",
|
|
13
|
-
"slots": [
|
|
14
|
-
{
|
|
15
|
-
"description": "The default slot for the main content.",
|
|
16
|
-
"name": "default"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"description": "Slot for the header content.",
|
|
20
|
-
"name": "header"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"description": "Slot for the subheader content.",
|
|
24
|
-
"name": "subheader"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"description": "Slot for the footer content.",
|
|
28
|
-
"name": "footer"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"description": "Slot for the close button aria-label.",
|
|
32
|
-
"name": "ariaLabel.close"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"members": [
|
|
36
|
-
{
|
|
37
|
-
"kind": "method",
|
|
38
|
-
"name": "register",
|
|
39
|
-
"static": true,
|
|
40
|
-
"parameters": [
|
|
41
|
-
{
|
|
42
|
-
"name": "name",
|
|
43
|
-
"default": "\"auro-bibtemplate\"",
|
|
44
|
-
"description": "The name of element that you want to register to.",
|
|
45
|
-
"optional": true,
|
|
46
|
-
"type": {
|
|
47
|
-
"text": "string"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"description": "This will register this element with the browser."
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"kind": "method",
|
|
55
|
-
"name": "preventBodyScroll",
|
|
56
|
-
"parameters": [
|
|
57
|
-
{
|
|
58
|
-
"name": "event",
|
|
59
|
-
"description": "The touchmove event.",
|
|
60
|
-
"type": {
|
|
61
|
-
"text": "Event"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"description": "Prevents scrolling of the body when touching empty areas of the component.",
|
|
66
|
-
"return": {
|
|
67
|
-
"type": {
|
|
68
|
-
"text": "void"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"kind": "method",
|
|
74
|
-
"name": "focusCloseButton",
|
|
75
|
-
"description": "Focuses the close button inside the bibtemplate's shadow DOM.\nUsed by parent components to set initial focus when the fullscreen dialog opens.",
|
|
76
|
-
"return": {
|
|
77
|
-
"type": {
|
|
78
|
-
"text": "void"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"kind": "method",
|
|
84
|
-
"name": "onCloseButtonClick"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"kind": "method",
|
|
88
|
-
"name": "exposeCssParts",
|
|
89
|
-
"description": "Exposes CSS parts for styling from parent components.",
|
|
90
|
-
"return": {
|
|
91
|
-
"type": {
|
|
92
|
-
"text": "void"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"kind": "field",
|
|
98
|
-
"name": "large",
|
|
99
|
-
"privacy": "public",
|
|
100
|
-
"type": {
|
|
101
|
-
"text": "boolean"
|
|
102
|
-
},
|
|
103
|
-
"default": "false",
|
|
104
|
-
"attribute": "large",
|
|
105
|
-
"reflects": true
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"kind": "field",
|
|
109
|
-
"name": "iconTag",
|
|
110
|
-
"privacy": "private"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"kind": "field",
|
|
114
|
-
"name": "headerTag",
|
|
115
|
-
"privacy": "private"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"kind": "field",
|
|
119
|
-
"name": "buttonTag",
|
|
120
|
-
"privacy": "private"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"kind": "field",
|
|
124
|
-
"name": "isFullscreen",
|
|
125
|
-
"privacy": "public",
|
|
126
|
-
"type": {
|
|
127
|
-
"text": "boolean"
|
|
128
|
-
},
|
|
129
|
-
"attribute": "isFullscreen",
|
|
130
|
-
"reflects": true
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"events": [
|
|
134
|
-
{
|
|
135
|
-
"name": "close-click",
|
|
136
|
-
"type": {
|
|
137
|
-
"text": "Event"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "auro-bibtemplate-connected",
|
|
142
|
-
"type": {
|
|
143
|
-
"text": "CustomEvent"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"attributes": [
|
|
148
|
-
{
|
|
149
|
-
"name": "isFullscreen",
|
|
150
|
-
"type": {
|
|
151
|
-
"text": "boolean"
|
|
152
|
-
},
|
|
153
|
-
"fieldName": "isFullscreen"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"name": "large",
|
|
157
|
-
"type": {
|
|
158
|
-
"text": "boolean"
|
|
159
|
-
},
|
|
160
|
-
"default": "false",
|
|
161
|
-
"fieldName": "large"
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"superclass": {
|
|
165
|
-
"name": "LitElement",
|
|
166
|
-
"package": "lit"
|
|
167
|
-
},
|
|
168
|
-
"tagName": "auro-bibtemplate",
|
|
169
|
-
"customElement": true
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"exports": [
|
|
173
|
-
{
|
|
174
|
-
"kind": "js",
|
|
175
|
-
"name": "AuroBibtemplate",
|
|
176
|
-
"declaration": {
|
|
177
|
-
"name": "AuroBibtemplate",
|
|
178
|
-
"module": "components/bibtemplate/src/auro-bibtemplate.js"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"kind": "javascript-module",
|
|
185
|
-
"path": "components/bibtemplate/src/buttonVersion.js",
|
|
186
|
-
"declarations": [],
|
|
187
|
-
"exports": [
|
|
188
|
-
{
|
|
189
|
-
"kind": "js",
|
|
190
|
-
"name": "default",
|
|
191
|
-
"declaration": {
|
|
192
|
-
"name": "12.3.2",
|
|
193
|
-
"module": "components/bibtemplate/src/buttonVersion.js"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"kind": "javascript-module",
|
|
200
|
-
"path": "components/bibtemplate/src/headerVersion.js",
|
|
201
|
-
"declarations": [],
|
|
202
|
-
"exports": [
|
|
203
|
-
{
|
|
204
|
-
"kind": "js",
|
|
205
|
-
"name": "default",
|
|
206
|
-
"declaration": {
|
|
207
|
-
"name": "5.0.1",
|
|
208
|
-
"module": "components/bibtemplate/src/headerVersion.js"
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"kind": "javascript-module",
|
|
215
|
-
"path": "components/bibtemplate/src/iconVersion.js",
|
|
216
|
-
"declarations": [],
|
|
217
|
-
"exports": [
|
|
218
|
-
{
|
|
219
|
-
"kind": "js",
|
|
220
|
-
"name": "default",
|
|
221
|
-
"declaration": {
|
|
222
|
-
"name": "9.2.0",
|
|
223
|
-
"module": "components/bibtemplate/src/iconVersion.js"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
]
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"kind": "javascript-module",
|
|
230
|
-
"path": "components/bibtemplate/src/index.js",
|
|
231
|
-
"declarations": [],
|
|
232
|
-
"exports": [
|
|
233
|
-
{
|
|
234
|
-
"kind": "js",
|
|
235
|
-
"name": "AuroBibtemplate",
|
|
236
|
-
"declaration": {
|
|
237
|
-
"name": "AuroBibtemplate",
|
|
238
|
-
"module": "components/bibtemplate/src/index.js"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"kind": "javascript-module",
|
|
245
|
-
"path": "components/bibtemplate/src/registered.js",
|
|
246
|
-
"declarations": [],
|
|
247
|
-
"exports": []
|
|
248
|
-
},
|
|
249
5
|
{
|
|
250
6
|
"kind": "javascript-module",
|
|
251
7
|
"path": "components/checkbox/src/auro-checkbox-group.js",
|
|
@@ -1089,6 +845,250 @@
|
|
|
1089
845
|
"declarations": [],
|
|
1090
846
|
"exports": []
|
|
1091
847
|
},
|
|
848
|
+
{
|
|
849
|
+
"kind": "javascript-module",
|
|
850
|
+
"path": "components/bibtemplate/src/auro-bibtemplate.js",
|
|
851
|
+
"declarations": [
|
|
852
|
+
{
|
|
853
|
+
"kind": "class",
|
|
854
|
+
"description": "The `auro-bibtemplate` element provides users a template for creating modal dialog elements.",
|
|
855
|
+
"name": "AuroBibtemplate",
|
|
856
|
+
"slots": [
|
|
857
|
+
{
|
|
858
|
+
"description": "The default slot for the main content.",
|
|
859
|
+
"name": "default"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"description": "Slot for the header content.",
|
|
863
|
+
"name": "header"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"description": "Slot for the subheader content.",
|
|
867
|
+
"name": "subheader"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"description": "Slot for the footer content.",
|
|
871
|
+
"name": "footer"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"description": "Slot for the close button aria-label.",
|
|
875
|
+
"name": "ariaLabel.close"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"members": [
|
|
879
|
+
{
|
|
880
|
+
"kind": "method",
|
|
881
|
+
"name": "register",
|
|
882
|
+
"static": true,
|
|
883
|
+
"parameters": [
|
|
884
|
+
{
|
|
885
|
+
"name": "name",
|
|
886
|
+
"default": "\"auro-bibtemplate\"",
|
|
887
|
+
"description": "The name of element that you want to register to.",
|
|
888
|
+
"optional": true,
|
|
889
|
+
"type": {
|
|
890
|
+
"text": "string"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
"description": "This will register this element with the browser."
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"kind": "method",
|
|
898
|
+
"name": "preventBodyScroll",
|
|
899
|
+
"parameters": [
|
|
900
|
+
{
|
|
901
|
+
"name": "event",
|
|
902
|
+
"description": "The touchmove event.",
|
|
903
|
+
"type": {
|
|
904
|
+
"text": "Event"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"description": "Prevents scrolling of the body when touching empty areas of the component.",
|
|
909
|
+
"return": {
|
|
910
|
+
"type": {
|
|
911
|
+
"text": "void"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"kind": "method",
|
|
917
|
+
"name": "focusCloseButton",
|
|
918
|
+
"description": "Focuses the close button inside the bibtemplate's shadow DOM.\nUsed by parent components to set initial focus when the fullscreen dialog opens.",
|
|
919
|
+
"return": {
|
|
920
|
+
"type": {
|
|
921
|
+
"text": "void"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"kind": "method",
|
|
927
|
+
"name": "onCloseButtonClick"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"kind": "method",
|
|
931
|
+
"name": "exposeCssParts",
|
|
932
|
+
"description": "Exposes CSS parts for styling from parent components.",
|
|
933
|
+
"return": {
|
|
934
|
+
"type": {
|
|
935
|
+
"text": "void"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"kind": "field",
|
|
941
|
+
"name": "large",
|
|
942
|
+
"privacy": "public",
|
|
943
|
+
"type": {
|
|
944
|
+
"text": "boolean"
|
|
945
|
+
},
|
|
946
|
+
"default": "false",
|
|
947
|
+
"attribute": "large",
|
|
948
|
+
"reflects": true
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"kind": "field",
|
|
952
|
+
"name": "iconTag",
|
|
953
|
+
"privacy": "private"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"kind": "field",
|
|
957
|
+
"name": "headerTag",
|
|
958
|
+
"privacy": "private"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"kind": "field",
|
|
962
|
+
"name": "buttonTag",
|
|
963
|
+
"privacy": "private"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"kind": "field",
|
|
967
|
+
"name": "isFullscreen",
|
|
968
|
+
"privacy": "public",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "boolean"
|
|
971
|
+
},
|
|
972
|
+
"attribute": "isFullscreen",
|
|
973
|
+
"reflects": true
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"events": [
|
|
977
|
+
{
|
|
978
|
+
"name": "close-click",
|
|
979
|
+
"type": {
|
|
980
|
+
"text": "Event"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "auro-bibtemplate-connected",
|
|
985
|
+
"type": {
|
|
986
|
+
"text": "CustomEvent"
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"attributes": [
|
|
991
|
+
{
|
|
992
|
+
"name": "isFullscreen",
|
|
993
|
+
"type": {
|
|
994
|
+
"text": "boolean"
|
|
995
|
+
},
|
|
996
|
+
"fieldName": "isFullscreen"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "large",
|
|
1000
|
+
"type": {
|
|
1001
|
+
"text": "boolean"
|
|
1002
|
+
},
|
|
1003
|
+
"default": "false",
|
|
1004
|
+
"fieldName": "large"
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"superclass": {
|
|
1008
|
+
"name": "LitElement",
|
|
1009
|
+
"package": "lit"
|
|
1010
|
+
},
|
|
1011
|
+
"tagName": "auro-bibtemplate",
|
|
1012
|
+
"customElement": true
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
"exports": [
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "js",
|
|
1018
|
+
"name": "AuroBibtemplate",
|
|
1019
|
+
"declaration": {
|
|
1020
|
+
"name": "AuroBibtemplate",
|
|
1021
|
+
"module": "components/bibtemplate/src/auro-bibtemplate.js"
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
]
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"kind": "javascript-module",
|
|
1028
|
+
"path": "components/bibtemplate/src/buttonVersion.js",
|
|
1029
|
+
"declarations": [],
|
|
1030
|
+
"exports": [
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "js",
|
|
1033
|
+
"name": "default",
|
|
1034
|
+
"declaration": {
|
|
1035
|
+
"name": "12.3.2",
|
|
1036
|
+
"module": "components/bibtemplate/src/buttonVersion.js"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"kind": "javascript-module",
|
|
1043
|
+
"path": "components/bibtemplate/src/headerVersion.js",
|
|
1044
|
+
"declarations": [],
|
|
1045
|
+
"exports": [
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "js",
|
|
1048
|
+
"name": "default",
|
|
1049
|
+
"declaration": {
|
|
1050
|
+
"name": "5.0.1",
|
|
1051
|
+
"module": "components/bibtemplate/src/headerVersion.js"
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
]
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"kind": "javascript-module",
|
|
1058
|
+
"path": "components/bibtemplate/src/iconVersion.js",
|
|
1059
|
+
"declarations": [],
|
|
1060
|
+
"exports": [
|
|
1061
|
+
{
|
|
1062
|
+
"kind": "js",
|
|
1063
|
+
"name": "default",
|
|
1064
|
+
"declaration": {
|
|
1065
|
+
"name": "9.2.0",
|
|
1066
|
+
"module": "components/bibtemplate/src/iconVersion.js"
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
]
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"kind": "javascript-module",
|
|
1073
|
+
"path": "components/bibtemplate/src/index.js",
|
|
1074
|
+
"declarations": [],
|
|
1075
|
+
"exports": [
|
|
1076
|
+
{
|
|
1077
|
+
"kind": "js",
|
|
1078
|
+
"name": "AuroBibtemplate",
|
|
1079
|
+
"declaration": {
|
|
1080
|
+
"name": "AuroBibtemplate",
|
|
1081
|
+
"module": "components/bibtemplate/src/index.js"
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
]
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"kind": "javascript-module",
|
|
1088
|
+
"path": "components/bibtemplate/src/registered.js",
|
|
1089
|
+
"declarations": [],
|
|
1090
|
+
"exports": []
|
|
1091
|
+
},
|
|
1092
1092
|
{
|
|
1093
1093
|
"kind": "javascript-module",
|
|
1094
1094
|
"path": "components/combobox/src/auro-combobox.js",
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { resetStateExample } from "../apiExamples/reset-state";
|
|
2
|
-
import './index.js';
|
|
3
|
-
|
|
4
|
-
export function initExamples(initCount) {
|
|
5
|
-
initCount = initCount || 0;
|
|
6
|
-
|
|
7
|
-
try {
|
|
8
|
-
resetStateExample();
|
|
9
|
-
} catch (error) {
|
|
10
|
-
if (initCount <= 20) {
|
|
11
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
12
|
-
setTimeout(() => {
|
|
13
|
-
initExamples(initCount + 1);
|
|
14
|
-
}, 100);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import './index.min.js';
|
|
2
|
-
|
|
3
|
-
function resetStateExample() {
|
|
4
|
-
const elem = document.querySelector('#resetStateExample');
|
|
5
|
-
|
|
6
|
-
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
7
|
-
elem.reset();
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function initExamples(initCount) {
|
|
12
|
-
initCount = initCount || 0;
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
resetStateExample();
|
|
16
|
-
} catch (error) {
|
|
17
|
-
if (initCount <= 20) {
|
|
18
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
19
|
-
setTimeout(() => {
|
|
20
|
-
initExamples(initCount + 1);
|
|
21
|
-
}, 100);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { initExamples };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
3
|
-
import { focusExample } from '../apiExamples/focus';
|
|
4
|
-
import { resetStateExample } from '../apiExamples/reset-state';
|
|
5
|
-
import { setupExternalSelectionExample } from '../apiExamples/external-selection';
|
|
6
|
-
import { valueExample } from '../apiExamples/value';
|
|
7
|
-
import { inDialogExample } from '../apiExamples/in-dialog';
|
|
8
|
-
import { inDrawerExample } from '../apiExamples/in-drawer';
|
|
9
|
-
import { persistentExample } from '../apiExamples/persistent';
|
|
10
|
-
import { swapValueExample } from '../apiExamples/swap-value';
|
|
11
|
-
|
|
12
|
-
import { AuroCombobox } from '../src/auro-combobox.js';
|
|
13
|
-
import '../../menu/src/registered.js';
|
|
14
|
-
|
|
15
|
-
AuroCombobox.register();
|
|
16
|
-
|
|
17
|
-
export function initExamples(initCount) {
|
|
18
|
-
initCount = initCount || 0;
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
22
|
-
focusExample();
|
|
23
|
-
resetStateExample();
|
|
24
|
-
setupExternalSelectionExample();
|
|
25
|
-
valueExample();
|
|
26
|
-
inDialogExample();
|
|
27
|
-
inDrawerExample();
|
|
28
|
-
persistentExample();
|
|
29
|
-
swapValueExample();
|
|
30
|
-
} catch (err) {
|
|
31
|
-
if (initCount <= 20) {
|
|
32
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
33
|
-
setTimeout(() => {
|
|
34
|
-
initExamples(initCount + 1);
|
|
35
|
-
}, 100);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { s as swapValueExample } from './swap-value.min.js';
|
|
2
|
-
import { A as AuroCombobox } from './registered.min.js';
|
|
3
|
-
|
|
4
|
-
function focusExample() {
|
|
5
|
-
const focusExample = document.querySelector('#focusExample');
|
|
6
|
-
const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
|
|
7
|
-
|
|
8
|
-
focusExampleBtnElem.addEventListener('click', () => {
|
|
9
|
-
focusExample.focus();
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function resetStateExample() {
|
|
14
|
-
const elem = document.querySelector('#resetStateExample');
|
|
15
|
-
|
|
16
|
-
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
17
|
-
elem.reset();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function setupExternalSelectionExample() {
|
|
22
|
-
const combobox = document.getElementById('externalSelectionExample');
|
|
23
|
-
const iataCodes = ['sea', 'lax', 'jfk', 'ord', 'sfo'];
|
|
24
|
-
|
|
25
|
-
combobox.addEventListener('input', () => {
|
|
26
|
-
const input = combobox.inputValue?.toLowerCase();
|
|
27
|
-
const matchIndex = iataCodes.indexOf(input);
|
|
28
|
-
|
|
29
|
-
if (matchIndex !== -1) {
|
|
30
|
-
combobox.updateActiveOption(matchIndex);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function valueExample() {
|
|
36
|
-
const valueExample = document.querySelector('#valueExample');
|
|
37
|
-
|
|
38
|
-
document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
|
|
39
|
-
valueExample.value = 'Oranges';
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
|
|
43
|
-
valueExample.value = 'Dragon Fruit';
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
|
|
47
|
-
valueExample.value = undefined;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function inDialogExample() {
|
|
52
|
-
document.querySelector("#combobox-dialog-opener").addEventListener("click", () => {
|
|
53
|
-
const dialog = document.querySelector("#combobox-dialog");
|
|
54
|
-
dialog.open = true;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function inDrawerExample() {
|
|
59
|
-
document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
|
|
60
|
-
const drawer = document.querySelector("#combobox-drawer");
|
|
61
|
-
if (drawer.hasAttribute('open')) {
|
|
62
|
-
drawer.removeAttribute('open');
|
|
63
|
-
} else {
|
|
64
|
-
drawer.setAttribute('open', true);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function persistentExample() {
|
|
70
|
-
const persistentExample = document.querySelector('#persistent');
|
|
71
|
-
|
|
72
|
-
persistentExample.addEventListener('addNewAddress', () => {
|
|
73
|
-
console.warn('addNewAddress event fired');
|
|
74
|
-
alert(`addNewAddress event fired`);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
AuroCombobox.register();
|
|
82
|
-
|
|
83
|
-
function initExamples(initCount) {
|
|
84
|
-
initCount = initCount || 0;
|
|
85
|
-
|
|
86
|
-
try {
|
|
87
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
88
|
-
focusExample();
|
|
89
|
-
resetStateExample();
|
|
90
|
-
setupExternalSelectionExample();
|
|
91
|
-
valueExample();
|
|
92
|
-
inDialogExample();
|
|
93
|
-
inDrawerExample();
|
|
94
|
-
persistentExample();
|
|
95
|
-
swapValueExample();
|
|
96
|
-
} catch (err) {
|
|
97
|
-
if (initCount <= 20) {
|
|
98
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
99
|
-
setTimeout(() => {
|
|
100
|
-
initExamples(initCount + 1);
|
|
101
|
-
}, 100);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export { initExamples };
|