forked from Meteor-Community-Packages/meteor-autoform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamic.js
115 lines (112 loc) · 5.05 KB
/
dynamic.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
let initialized = false
AutoForm.load = async function load () {
if (!initialized) {
await init()
initialized = true
}
return initialized
}
function init () {
return Promise.all([
import('./autoform-helpers.js'),
// form types
import('./formTypes/insert.js'),
import('./formTypes/update.js'),
import('./formTypes/update-pushArray.js'),
import('./formTypes/method.js'),
import('./formTypes/method-update.js'),
import('./formTypes/normal.js'),
import('./formTypes/readonly.js'),
import('./formTypes/disabled.js'),
// input types
import('./inputTypes/value-converters.js'),
import('./inputTypes/boolean-checkbox/boolean-checkbox.html'),
import('./inputTypes/boolean-checkbox/boolean-checkbox.js'),
import('./inputTypes/boolean-radios/boolean-radios.html'),
import('./inputTypes/boolean-radios/boolean-radios.js'),
import('./inputTypes/boolean-select/boolean-select.html'),
import('./inputTypes/boolean-select/boolean-select.js'),
import('./inputTypes/button/button.html'),
import('./inputTypes/button/button.js'),
import('./inputTypes/color/color.html'),
import('./inputTypes/color/color.js'),
import('./inputTypes/contenteditable/contenteditable.html'),
import('./inputTypes/contenteditable/contenteditable.js'),
import('./inputTypes/date/date.html'),
import('./inputTypes/date/date.js'),
import('./inputTypes/datetime/datetime.html'),
import('./inputTypes/datetime/datetime.js'),
import('./inputTypes/datetime-local/datetime-local.html'),
import('./inputTypes/datetime-local/datetime-local.js'),
import('./inputTypes/email/email.html'),
import('./inputTypes/email/email.js'),
import('./inputTypes/file/file.html'),
import('./inputTypes/file/file.js'),
import('./inputTypes/hidden/hidden.html'),
import('./inputTypes/hidden/hidden.js'),
import('./inputTypes/image/image.html'),
import('./inputTypes/image/image.js'),
import('./inputTypes/month/month.html'),
import('./inputTypes/month/month.js'),
import('./inputTypes/number/number.html'),
import('./inputTypes/number/number.js'),
import('./inputTypes/password/password.html'),
import('./inputTypes/password/password.js'),
import('./inputTypes/radio/radio.html'),
import('./inputTypes/radio/radio.js'),
import('./inputTypes/range/range.html'),
import('./inputTypes/range/range.js'),
import('./inputTypes/reset/reset.html'),
import('./inputTypes/reset/reset.js'),
import('./inputTypes/search/search.html'),
import('./inputTypes/search/search.js'),
import('./inputTypes/select/select.html'),
import('./inputTypes/select/select.js'),
import('./inputTypes/select-checkbox/select-checkbox.html'),
import('./inputTypes/select-checkbox/select-checkbox.js'),
import('./inputTypes/select-checkbox-inline/select-checkbox-inline.html'),
import('./inputTypes/select-checkbox-inline/select-checkbox-inline.js'),
import('./inputTypes/select-multiple/select-multiple.html'),
import('./inputTypes/select-multiple/select-multiple.js'),
import('./inputTypes/select-radio/select-radio.html'),
import('./inputTypes/select-radio/select-radio.js'),
import('./inputTypes/select-radio-inline/select-radio-inline.html'),
import('./inputTypes/select-radio-inline/select-radio-inline.js'),
import('./inputTypes/submit/submit.html'),
import('./inputTypes/submit/submit.js'),
import('./inputTypes/tel/tel.html'),
import('./inputTypes/tel/tel.js'),
import('./inputTypes/text/text.html'),
import('./inputTypes/text/text.js'),
import('./inputTypes/textarea/textarea.html'),
import('./inputTypes/textarea/textarea.js'),
import('./inputTypes/time/time.html'),
import('./inputTypes/time/time.js'),
import('./inputTypes/url/url.html'),
import('./inputTypes/url/url.js'),
import('./inputTypes/week/week.html'),
import('./inputTypes/week/week.js'),
// components that render a form
import('./components/autoForm/autoForm.html'),
import('./components/autoForm/autoForm.js'),
import('./components/quickForm/quickForm.html'),
import('./components/quickForm/quickForm.js'),
// components that render controls within a form
import('./components/afArrayField/afArrayField.html'),
import('./components/afArrayField/afArrayField.js'),
import('./components/afEachArrayItem/afEachArrayItem.html'),
import('./components/afEachArrayItem/afEachArrayItem.js'),
import('./components/afFieldInput/afFieldInput.html'),
import('./components/afFieldInput/afFieldInput.js'),
import('./components/afFormGroup/afFormGroup.html'),
import('./components/afFormGroup/afFormGroup.js'),
import('./components/afObjectField/afObjectField.html'),
import('./components/afObjectField/afObjectField.js'),
import('./components/afQuickField/afQuickField.html'),
import('./components/afQuickField/afQuickField.js'),
import('./components/afQuickFields/afQuickFields.html'),
import('./components/afQuickFields/afQuickFields.js'),
// event handling
import('./autoform-events.js')
])
}