guestbell-forms 3.0.18 → 3.0.19
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/.babelrc.js +1 -1
- package/build/components/base/input/BaseInput.js +8 -96
- package/build/components/base/input/BaseInput.js.map +1 -1
- package/build/components/base/input/index.js +0 -2
- package/build/components/base/input/index.js.map +1 -1
- package/build/components/bookingCalendar/BookingCalendar.js +7 -30
- package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +2 -22
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarControls/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +6 -19
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +2 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js +11 -10
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarItem/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js +0 -10
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarLane/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js +0 -7
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js +0 -2
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +0 -12
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js +0 -2
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +0 -30
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js +0 -7
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.js.map +1 -1
- package/build/components/bookingCalendar/classes.js.map +1 -1
- package/build/components/bookingCalendar/common.js +0 -9
- package/build/components/bookingCalendar/common.js.map +1 -1
- package/build/components/bookingCalendar/index.js +0 -6
- package/build/components/bookingCalendar/index.js.map +1 -1
- package/build/components/bookingCalendar/utils.js +5 -50
- package/build/components/bookingCalendar/utils.js.map +1 -1
- package/build/components/button/Button.js +9 -37
- package/build/components/button/Button.js.map +1 -1
- package/build/components/button/index.js +0 -4
- package/build/components/button/index.js.map +1 -1
- package/build/components/checkbox/Checkbox.js +5 -35
- package/build/components/checkbox/Checkbox.js.map +1 -1
- package/build/components/checkbox/index.js +0 -4
- package/build/components/checkbox/index.js.map +1 -1
- package/build/components/dropdown/Dropdown.js +1 -15
- package/build/components/dropdown/Dropdown.js.map +1 -1
- package/build/components/dropdown/index.js +0 -4
- package/build/components/dropdown/index.js.map +1 -1
- package/build/components/dynamicSubmit/DynamicSubmit.js +7 -39
- package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
- package/build/components/dynamicSubmit/index.js +0 -4
- package/build/components/dynamicSubmit/index.js.map +1 -1
- package/build/components/externalValidationComponent/ExternalValidationComponent.js +6 -17
- package/build/components/externalValidationComponent/ExternalValidationComponent.js.map +1 -1
- package/build/components/externalValidationComponent/index.js +0 -4
- package/build/components/externalValidationComponent/index.js.map +1 -1
- package/build/components/form/Form.js +8 -46
- package/build/components/form/Form.js.map +1 -1
- package/build/components/form/FormContext.js +0 -4
- package/build/components/form/FormContext.js.map +1 -1
- package/build/components/form/FormValidationSummary.js +3 -25
- package/build/components/form/FormValidationSummary.js.map +1 -1
- package/build/components/form/index.js +0 -10
- package/build/components/form/index.js.map +1 -1
- package/build/components/form/withFormContext.js +0 -6
- package/build/components/form/withFormContext.js.map +1 -1
- package/build/components/inputGroup/InputGroup.js +5 -15
- package/build/components/inputGroup/InputGroup.js.map +1 -1
- package/build/components/inputGroup/index.js +0 -4
- package/build/components/inputGroup/index.js.map +1 -1
- package/build/components/inputHeader/InputHeader.js +16 -75
- package/build/components/inputHeader/InputHeader.js.map +1 -1
- package/build/components/inputHeader/InputHeaderContext.js +0 -4
- package/build/components/inputHeader/InputHeaderContext.js.map +1 -1
- package/build/components/inputHeader/index.js +0 -4
- package/build/components/inputHeader/index.js.map +1 -1
- package/build/components/inputHeader/withInputHeaderContext.js +0 -6
- package/build/components/inputHeader/withInputHeaderContext.js.map +1 -1
- package/build/components/money/Money.js +20 -64
- package/build/components/money/Money.js.map +1 -1
- package/build/components/money/index.js +0 -4
- package/build/components/money/index.js.map +1 -1
- package/build/components/numberInput/NumberInput.js +13 -44
- package/build/components/numberInput/NumberInput.js.map +1 -1
- package/build/components/numberInput/index.js +0 -4
- package/build/components/numberInput/index.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +13 -62
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/index.js +0 -4
- package/build/components/openingHours/openingHoursDay/index.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js +18 -49
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/index.js +0 -4
- package/build/components/openingHours/openingHoursSpecial/index.js.map +1 -1
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js +16 -53
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js.map +1 -1
- package/build/components/openingHours/openingHoursWeek/index.js +0 -4
- package/build/components/openingHours/openingHoursWeek/index.js.map +1 -1
- package/build/components/openingHours/utils/OpeningHoursUtil.js +3 -21
- package/build/components/openingHours/utils/OpeningHoursUtil.js.map +1 -1
- package/build/components/radio/Radio.js +4 -19
- package/build/components/radio/Radio.js.map +1 -1
- package/build/components/radio/index.js +0 -4
- package/build/components/radio/index.js.map +1 -1
- package/build/components/radioContainer/RadioContainer.js +2 -13
- package/build/components/radioContainer/RadioContainer.js.map +1 -1
- package/build/components/radioContainer/index.js +0 -4
- package/build/components/radioContainer/index.js.map +1 -1
- package/build/components/select/Select.js +6 -53
- package/build/components/select/Select.js.map +1 -1
- package/build/components/select/index.js +0 -4
- package/build/components/select/index.js.map +1 -1
- package/build/components/submit/Submit.js +5 -28
- package/build/components/submit/Submit.js.map +1 -1
- package/build/components/submit/index.js +0 -4
- package/build/components/submit/index.js.map +1 -1
- package/build/components/submit/subComponents/SubmitValidationSummary.js +0 -9
- package/build/components/submit/subComponents/SubmitValidationSummary.js.map +1 -1
- package/build/components/tags/Tags.js +34 -119
- package/build/components/tags/Tags.js.map +1 -1
- package/build/components/tags/index.js +0 -4
- package/build/components/tags/index.js.map +1 -1
- package/build/components/tags/subComponents/TagsSuggestions.js +0 -14
- package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
- package/build/components/text/Text.js +10 -42
- package/build/components/text/Text.js.map +1 -1
- package/build/components/text/index.js +0 -4
- package/build/components/text/index.js.map +1 -1
- package/build/components/textArea/TextArea.js +8 -31
- package/build/components/textArea/TextArea.js.map +1 -1
- package/build/components/textArea/index.js +0 -4
- package/build/components/textArea/index.js.map +1 -1
- package/build/components/themeProvider/ThemeContext.js +0 -4
- package/build/components/themeProvider/ThemeContext.js.map +1 -1
- package/build/components/themeProvider/ThemeProvider.js +2 -6
- package/build/components/themeProvider/ThemeProvider.js.map +1 -1
- package/build/components/themeProvider/index.js +0 -8
- package/build/components/themeProvider/index.js.map +1 -1
- package/build/components/themeProvider/withThemeContext.js +0 -8
- package/build/components/themeProvider/withThemeContext.js.map +1 -1
- package/build/components/time/Time.js +17 -73
- package/build/components/time/Time.js.map +1 -1
- package/build/components/time/index.js +0 -4
- package/build/components/time/index.js.map +1 -1
- package/build/components/timeSpan/TimeSpan.js +17 -99
- package/build/components/timeSpan/TimeSpan.js.map +1 -1
- package/build/components/timeSpan/index.js +0 -4
- package/build/components/timeSpan/index.js.map +1 -1
- package/build/components/utils/Guid.js +0 -3
- package/build/components/utils/Guid.js.map +1 -1
- package/build/components/utils/ShallowEqual.js +5 -10
- package/build/components/utils/ShallowEqual.js.map +1 -1
- package/build/components/utils/TimeUtil.js +1 -3
- package/build/components/utils/TimeUtil.js.map +1 -1
- package/build/dist/guestbell-forms.css.map +1 -1
- package/build/dist/guestbell-forms.js +21 -84
- package/build/dist/guestbell-forms.js.map +1 -1
- package/build/dist/guestbell-forms.min.js +1 -1
- package/build/dist/guestbell-forms.min.js.map +1 -1
- package/build/dist/report.html +13 -41
- package/build/index.js +0 -48
- package/build/index.js.map +1 -1
- package/build/validators/EmailValidator.js +0 -4
- package/build/validators/EmailValidator.js.map +1 -1
- package/build/validators/LatitudeValidator.js +0 -8
- package/build/validators/LatitudeValidator.js.map +1 -1
- package/build/validators/LongitudeValidator.js +0 -8
- package/build/validators/LongitudeValidator.js.map +1 -1
- package/build/validators/NumberValidator.js +0 -15
- package/build/validators/NumberValidator.js.map +1 -1
- package/build/validators/UrlValidator.js +2 -5
- package/build/validators/UrlValidator.js.map +1 -1
- package/build/validators/index.js +0 -7
- package/build/validators/index.js.map +1 -1
- package/package.json +19 -19
package/build/index.js
CHANGED
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _index = require("./validators/index");
|
8
|
-
|
9
7
|
Object.keys(_index).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _index[key]) return;
|
@@ -16,9 +14,7 @@ Object.keys(_index).forEach(function (key) {
|
|
16
14
|
}
|
17
15
|
});
|
18
16
|
});
|
19
|
-
|
20
17
|
var _button = require("./components/button");
|
21
|
-
|
22
18
|
Object.keys(_button).forEach(function (key) {
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
24
20
|
if (key in exports && exports[key] === _button[key]) return;
|
@@ -29,9 +25,7 @@ Object.keys(_button).forEach(function (key) {
|
|
29
25
|
}
|
30
26
|
});
|
31
27
|
});
|
32
|
-
|
33
28
|
var _checkbox = require("./components/checkbox");
|
34
|
-
|
35
29
|
Object.keys(_checkbox).forEach(function (key) {
|
36
30
|
if (key === "default" || key === "__esModule") return;
|
37
31
|
if (key in exports && exports[key] === _checkbox[key]) return;
|
@@ -42,9 +36,7 @@ Object.keys(_checkbox).forEach(function (key) {
|
|
42
36
|
}
|
43
37
|
});
|
44
38
|
});
|
45
|
-
|
46
39
|
var _dropdown = require("./components/dropdown");
|
47
|
-
|
48
40
|
Object.keys(_dropdown).forEach(function (key) {
|
49
41
|
if (key === "default" || key === "__esModule") return;
|
50
42
|
if (key in exports && exports[key] === _dropdown[key]) return;
|
@@ -55,9 +47,7 @@ Object.keys(_dropdown).forEach(function (key) {
|
|
55
47
|
}
|
56
48
|
});
|
57
49
|
});
|
58
|
-
|
59
50
|
var _dynamicSubmit = require("./components/dynamicSubmit");
|
60
|
-
|
61
51
|
Object.keys(_dynamicSubmit).forEach(function (key) {
|
62
52
|
if (key === "default" || key === "__esModule") return;
|
63
53
|
if (key in exports && exports[key] === _dynamicSubmit[key]) return;
|
@@ -68,9 +58,7 @@ Object.keys(_dynamicSubmit).forEach(function (key) {
|
|
68
58
|
}
|
69
59
|
});
|
70
60
|
});
|
71
|
-
|
72
61
|
var _form = require("./components/form");
|
73
|
-
|
74
62
|
Object.keys(_form).forEach(function (key) {
|
75
63
|
if (key === "default" || key === "__esModule") return;
|
76
64
|
if (key in exports && exports[key] === _form[key]) return;
|
@@ -81,9 +69,7 @@ Object.keys(_form).forEach(function (key) {
|
|
81
69
|
}
|
82
70
|
});
|
83
71
|
});
|
84
|
-
|
85
72
|
var _inputGroup = require("./components/inputGroup");
|
86
|
-
|
87
73
|
Object.keys(_inputGroup).forEach(function (key) {
|
88
74
|
if (key === "default" || key === "__esModule") return;
|
89
75
|
if (key in exports && exports[key] === _inputGroup[key]) return;
|
@@ -94,9 +80,7 @@ Object.keys(_inputGroup).forEach(function (key) {
|
|
94
80
|
}
|
95
81
|
});
|
96
82
|
});
|
97
|
-
|
98
83
|
var _inputHeader = require("./components/inputHeader");
|
99
|
-
|
100
84
|
Object.keys(_inputHeader).forEach(function (key) {
|
101
85
|
if (key === "default" || key === "__esModule") return;
|
102
86
|
if (key in exports && exports[key] === _inputHeader[key]) return;
|
@@ -107,9 +91,7 @@ Object.keys(_inputHeader).forEach(function (key) {
|
|
107
91
|
}
|
108
92
|
});
|
109
93
|
});
|
110
|
-
|
111
94
|
var _Money = require("./components/money/Money");
|
112
|
-
|
113
95
|
Object.keys(_Money).forEach(function (key) {
|
114
96
|
if (key === "default" || key === "__esModule") return;
|
115
97
|
if (key in exports && exports[key] === _Money[key]) return;
|
@@ -120,9 +102,7 @@ Object.keys(_Money).forEach(function (key) {
|
|
120
102
|
}
|
121
103
|
});
|
122
104
|
});
|
123
|
-
|
124
105
|
var _openingHoursDay = require("./components/openingHours/openingHoursDay");
|
125
|
-
|
126
106
|
Object.keys(_openingHoursDay).forEach(function (key) {
|
127
107
|
if (key === "default" || key === "__esModule") return;
|
128
108
|
if (key in exports && exports[key] === _openingHoursDay[key]) return;
|
@@ -133,9 +113,7 @@ Object.keys(_openingHoursDay).forEach(function (key) {
|
|
133
113
|
}
|
134
114
|
});
|
135
115
|
});
|
136
|
-
|
137
116
|
var _openingHoursSpecial = require("./components/openingHours/openingHoursSpecial");
|
138
|
-
|
139
117
|
Object.keys(_openingHoursSpecial).forEach(function (key) {
|
140
118
|
if (key === "default" || key === "__esModule") return;
|
141
119
|
if (key in exports && exports[key] === _openingHoursSpecial[key]) return;
|
@@ -146,9 +124,7 @@ Object.keys(_openingHoursSpecial).forEach(function (key) {
|
|
146
124
|
}
|
147
125
|
});
|
148
126
|
});
|
149
|
-
|
150
127
|
var _openingHoursWeek = require("./components/openingHours/openingHoursWeek");
|
151
|
-
|
152
128
|
Object.keys(_openingHoursWeek).forEach(function (key) {
|
153
129
|
if (key === "default" || key === "__esModule") return;
|
154
130
|
if (key in exports && exports[key] === _openingHoursWeek[key]) return;
|
@@ -159,9 +135,7 @@ Object.keys(_openingHoursWeek).forEach(function (key) {
|
|
159
135
|
}
|
160
136
|
});
|
161
137
|
});
|
162
|
-
|
163
138
|
var _radio = require("./components/radio");
|
164
|
-
|
165
139
|
Object.keys(_radio).forEach(function (key) {
|
166
140
|
if (key === "default" || key === "__esModule") return;
|
167
141
|
if (key in exports && exports[key] === _radio[key]) return;
|
@@ -172,9 +146,7 @@ Object.keys(_radio).forEach(function (key) {
|
|
172
146
|
}
|
173
147
|
});
|
174
148
|
});
|
175
|
-
|
176
149
|
var _radioContainer = require("./components/radioContainer");
|
177
|
-
|
178
150
|
Object.keys(_radioContainer).forEach(function (key) {
|
179
151
|
if (key === "default" || key === "__esModule") return;
|
180
152
|
if (key in exports && exports[key] === _radioContainer[key]) return;
|
@@ -185,9 +157,7 @@ Object.keys(_radioContainer).forEach(function (key) {
|
|
185
157
|
}
|
186
158
|
});
|
187
159
|
});
|
188
|
-
|
189
160
|
var _Select = require("./components/select/Select");
|
190
|
-
|
191
161
|
Object.keys(_Select).forEach(function (key) {
|
192
162
|
if (key === "default" || key === "__esModule") return;
|
193
163
|
if (key in exports && exports[key] === _Select[key]) return;
|
@@ -198,9 +168,7 @@ Object.keys(_Select).forEach(function (key) {
|
|
198
168
|
}
|
199
169
|
});
|
200
170
|
});
|
201
|
-
|
202
171
|
var _submit = require("./components/submit");
|
203
|
-
|
204
172
|
Object.keys(_submit).forEach(function (key) {
|
205
173
|
if (key === "default" || key === "__esModule") return;
|
206
174
|
if (key in exports && exports[key] === _submit[key]) return;
|
@@ -211,9 +179,7 @@ Object.keys(_submit).forEach(function (key) {
|
|
211
179
|
}
|
212
180
|
});
|
213
181
|
});
|
214
|
-
|
215
182
|
var _tags = require("./components/tags");
|
216
|
-
|
217
183
|
Object.keys(_tags).forEach(function (key) {
|
218
184
|
if (key === "default" || key === "__esModule") return;
|
219
185
|
if (key in exports && exports[key] === _tags[key]) return;
|
@@ -224,9 +190,7 @@ Object.keys(_tags).forEach(function (key) {
|
|
224
190
|
}
|
225
191
|
});
|
226
192
|
});
|
227
|
-
|
228
193
|
var _text = require("./components/text");
|
229
|
-
|
230
194
|
Object.keys(_text).forEach(function (key) {
|
231
195
|
if (key === "default" || key === "__esModule") return;
|
232
196
|
if (key in exports && exports[key] === _text[key]) return;
|
@@ -237,9 +201,7 @@ Object.keys(_text).forEach(function (key) {
|
|
237
201
|
}
|
238
202
|
});
|
239
203
|
});
|
240
|
-
|
241
204
|
var _textArea = require("./components/textArea");
|
242
|
-
|
243
205
|
Object.keys(_textArea).forEach(function (key) {
|
244
206
|
if (key === "default" || key === "__esModule") return;
|
245
207
|
if (key in exports && exports[key] === _textArea[key]) return;
|
@@ -250,9 +212,7 @@ Object.keys(_textArea).forEach(function (key) {
|
|
250
212
|
}
|
251
213
|
});
|
252
214
|
});
|
253
|
-
|
254
215
|
var _time = require("./components/time");
|
255
|
-
|
256
216
|
Object.keys(_time).forEach(function (key) {
|
257
217
|
if (key === "default" || key === "__esModule") return;
|
258
218
|
if (key in exports && exports[key] === _time[key]) return;
|
@@ -263,9 +223,7 @@ Object.keys(_time).forEach(function (key) {
|
|
263
223
|
}
|
264
224
|
});
|
265
225
|
});
|
266
|
-
|
267
226
|
var _timeSpan = require("./components/timeSpan");
|
268
|
-
|
269
227
|
Object.keys(_timeSpan).forEach(function (key) {
|
270
228
|
if (key === "default" || key === "__esModule") return;
|
271
229
|
if (key in exports && exports[key] === _timeSpan[key]) return;
|
@@ -276,9 +234,7 @@ Object.keys(_timeSpan).forEach(function (key) {
|
|
276
234
|
}
|
277
235
|
});
|
278
236
|
});
|
279
|
-
|
280
237
|
var _themeProvider = require("./components/themeProvider");
|
281
|
-
|
282
238
|
Object.keys(_themeProvider).forEach(function (key) {
|
283
239
|
if (key === "default" || key === "__esModule") return;
|
284
240
|
if (key in exports && exports[key] === _themeProvider[key]) return;
|
@@ -289,9 +245,7 @@ Object.keys(_themeProvider).forEach(function (key) {
|
|
289
245
|
}
|
290
246
|
});
|
291
247
|
});
|
292
|
-
|
293
248
|
var _bookingCalendar = require("./components/bookingCalendar");
|
294
|
-
|
295
249
|
Object.keys(_bookingCalendar).forEach(function (key) {
|
296
250
|
if (key === "default" || key === "__esModule") return;
|
297
251
|
if (key in exports && exports[key] === _bookingCalendar[key]) return;
|
@@ -302,9 +256,7 @@ Object.keys(_bookingCalendar).forEach(function (key) {
|
|
302
256
|
}
|
303
257
|
});
|
304
258
|
});
|
305
|
-
|
306
259
|
var _externalValidationComponent = require("./components/externalValidationComponent");
|
307
|
-
|
308
260
|
Object.keys(_externalValidationComponent).forEach(function (key) {
|
309
261
|
if (key === "default" || key === "__esModule") return;
|
310
262
|
if (key in exports && exports[key] === _externalValidationComponent[key]) return;
|
package/build/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/lib/index.ts"],"sourcesContent":["export * from './validators/index';\r\nexport * from './components/button';\r\nexport * from './components/checkbox';\r\nexport * from './components/dropdown';\r\nexport * from './components/dynamicSubmit';\r\nexport * from './components/form';\r\nexport * from './components/inputGroup';\r\nexport * from './components/inputHeader';\r\nexport * from './components/money/Money';\r\nexport * from './components/openingHours/openingHoursDay';\r\nexport * from './components/openingHours/openingHoursSpecial';\r\nexport * from './components/openingHours/openingHoursWeek';\r\nexport * from './components/radio';\r\nexport * from './components/radioContainer';\r\nexport * from './components/select/Select';\r\nexport * from './components/submit';\r\nexport * from './components/tags';\r\nexport * from './components/text';\r\nexport * from './components/textArea';\r\nexport * from './components/time';\r\nexport * from './components/timeSpan';\r\nexport * from './components/themeProvider';\r\nexport * from './components/bookingCalendar';\r\nexport * from './components/externalValidationComponent';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_button","_checkbox","_dropdown","_dynamicSubmit","_form","_inputGroup","_inputHeader","_Money","_openingHoursDay","_openingHoursSpecial","_openingHoursWeek","_radio","_radioContainer","_Select","_submit","_tags","_text","_textArea","_time","_timeSpan","_themeProvider","_bookingCalendar","_externalValidationComponent"],"sources":["../src/lib/index.ts"],"sourcesContent":["export * from './validators/index';\r\nexport * from './components/button';\r\nexport * from './components/checkbox';\r\nexport * from './components/dropdown';\r\nexport * from './components/dynamicSubmit';\r\nexport * from './components/form';\r\nexport * from './components/inputGroup';\r\nexport * from './components/inputHeader';\r\nexport * from './components/money/Money';\r\nexport * from './components/openingHours/openingHoursDay';\r\nexport * from './components/openingHours/openingHoursSpecial';\r\nexport * from './components/openingHours/openingHoursWeek';\r\nexport * from './components/radio';\r\nexport * from './components/radioContainer';\r\nexport * from './components/select/Select';\r\nexport * from './components/submit';\r\nexport * from './components/tags';\r\nexport * from './components/text';\r\nexport * from './components/textArea';\r\nexport * from './components/time';\r\nexport * from './components/timeSpan';\r\nexport * from './components/themeProvider';\r\nexport * from './components/bookingCalendar';\r\nexport * from './components/externalValidationComponent';\r\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CA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A,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAyB,cAAA,CAAAzB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAqB,cAAA,CAAAzB,GAAA;IAAA;EAAA;AAAA;AACA,IAAA0B,gBAAA,GAAA9B,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAA4B,gBAAA,EAAA3B,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAA0B,gBAAA,CAAA1B,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAsB,gBAAA,CAAA1B,GAAA;IAAA;EAAA;AAAA;AACA,IAAA2B,4BAAA,GAAA/B,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAA6B,4BAAA,EAAA5B,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAA2B,4BAAA,CAAA3B,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAuB,4BAAA,CAAA3B,GAAA;IAAA;EAAA;AAAA"}
|
@@ -4,18 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.EmailValidator = void 0;
|
7
|
-
|
8
7
|
class EmailValidator {
|
9
8
|
Validate(value, isRequired, addError) {
|
10
9
|
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)) {
|
11
10
|
return true;
|
12
11
|
}
|
13
|
-
|
14
12
|
addError('Invalid email');
|
15
13
|
return false;
|
16
14
|
}
|
17
|
-
|
18
15
|
}
|
19
|
-
|
20
16
|
exports.EmailValidator = EmailValidator;
|
21
17
|
//# sourceMappingURL=EmailValidator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmailValidator.js","names":["EmailValidator","Validate","value","isRequired","addError","test"],"sources":["../../src/lib/validators/EmailValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\n\r\nexport class EmailValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n if (/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/.test(value)) {\r\n return true;\r\n }\r\n addError('Invalid email');\r\n return false;\r\n }\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"EmailValidator.js","names":["EmailValidator","Validate","value","isRequired","addError","test","exports"],"sources":["../../src/lib/validators/EmailValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\n\r\nexport class EmailValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n if (/^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$/.test(value)) {\r\n return true;\r\n }\r\n addError('Invalid email');\r\n return false;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAEO,MAAMA,cAAc,CAA2B;EAC7CC,QAAQA,CACbC,KAAa,EACbC,UAAmB,EACnBC,QAAiC,EACxB;IACT,IAAI,+CAA+C,CAACC,IAAI,CAACH,KAAK,CAAC,EAAE;MAC/D,OAAO,IAAI;IACb;IACAE,QAAQ,CAAC,eAAe,CAAC;IACzB,OAAO,KAAK;EACd;AACF;AAACE,OAAA,CAAAN,cAAA,GAAAA,cAAA"}
|
@@ -4,28 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.LatitudeValidator = void 0;
|
7
|
-
|
8
7
|
var _NumberValidator = require("./NumberValidator");
|
9
|
-
|
10
8
|
class LatitudeValidator {
|
11
9
|
Validate(value, isRequired, addError) {
|
12
10
|
let validNumber = new _NumberValidator.NumberValidator().Validate(value, isRequired, addError);
|
13
|
-
|
14
11
|
if (validNumber) {
|
15
12
|
let num = Number(value);
|
16
|
-
|
17
13
|
if (-90 > num || num > 90) {
|
18
14
|
addError('Invalid latitude');
|
19
15
|
return false;
|
20
16
|
}
|
21
|
-
|
22
17
|
return true;
|
23
18
|
}
|
24
|
-
|
25
19
|
return false;
|
26
20
|
}
|
27
|
-
|
28
21
|
}
|
29
|
-
|
30
22
|
exports.LatitudeValidator = LatitudeValidator;
|
31
23
|
//# sourceMappingURL=LatitudeValidator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LatitudeValidator.js","names":["LatitudeValidator","Validate","value","isRequired","addError","validNumber","NumberValidator","num","Number"],"sources":["../../src/lib/validators/LatitudeValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\nimport { NumberValidator } from './NumberValidator';\r\n\r\nexport class LatitudeValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n let validNumber = new NumberValidator().Validate(\r\n value,\r\n isRequired,\r\n addError\r\n );\r\n if (validNumber) {\r\n let num = Number(value);\r\n if (-90 > num || num > 90) {\r\n addError('Invalid latitude');\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"LatitudeValidator.js","names":["_NumberValidator","require","LatitudeValidator","Validate","value","isRequired","addError","validNumber","NumberValidator","num","Number","exports"],"sources":["../../src/lib/validators/LatitudeValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\nimport { NumberValidator } from './NumberValidator';\r\n\r\nexport class LatitudeValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n let validNumber = new NumberValidator().Validate(\r\n value,\r\n isRequired,\r\n addError\r\n );\r\n if (validNumber) {\r\n let num = Number(value);\r\n if (-90 > num || num > 90) {\r\n addError('Invalid latitude');\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n"],"mappings":";;;;;;AACA,IAAAA,gBAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,CAA2B;EAChDC,QAAQA,CACbC,KAAa,EACbC,UAAmB,EACnBC,QAAiC,EACxB;IACT,IAAIC,WAAW,GAAG,IAAIC,gCAAe,CAAC,CAAC,CAACL,QAAQ,CAC9CC,KAAK,EACLC,UAAU,EACVC,QACF,CAAC;IACD,IAAIC,WAAW,EAAE;MACf,IAAIE,GAAG,GAAGC,MAAM,CAACN,KAAK,CAAC;MACvB,IAAI,CAAC,EAAE,GAAGK,GAAG,IAAIA,GAAG,GAAG,EAAE,EAAE;QACzBH,QAAQ,CAAC,kBAAkB,CAAC;QAC5B,OAAO,KAAK;MACd;MACA,OAAO,IAAI;IACb;IACA,OAAO,KAAK;EACd;AACF;AAACK,OAAA,CAAAT,iBAAA,GAAAA,iBAAA"}
|
@@ -4,28 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.LongitudeValidator = void 0;
|
7
|
-
|
8
7
|
var _NumberValidator = require("./NumberValidator");
|
9
|
-
|
10
8
|
class LongitudeValidator {
|
11
9
|
Validate(value, isRequired, addError) {
|
12
10
|
let validNumber = new _NumberValidator.NumberValidator().Validate(value, isRequired, addError);
|
13
|
-
|
14
11
|
if (validNumber) {
|
15
12
|
let num = Number(value);
|
16
|
-
|
17
13
|
if (-180 > num || num > 180) {
|
18
14
|
addError('Invalid longitude');
|
19
15
|
return false;
|
20
16
|
}
|
21
|
-
|
22
17
|
return true;
|
23
18
|
}
|
24
|
-
|
25
19
|
return false;
|
26
20
|
}
|
27
|
-
|
28
21
|
}
|
29
|
-
|
30
22
|
exports.LongitudeValidator = LongitudeValidator;
|
31
23
|
//# sourceMappingURL=LongitudeValidator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LongitudeValidator.js","names":["LongitudeValidator","Validate","value","isRequired","addError","validNumber","NumberValidator","num","Number"],"sources":["../../src/lib/validators/LongitudeValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\nimport { NumberValidator } from './NumberValidator';\r\n\r\nexport class LongitudeValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n let validNumber = new NumberValidator().Validate(\r\n value,\r\n isRequired,\r\n addError\r\n );\r\n if (validNumber) {\r\n let num = Number(value);\r\n if (-180 > num || num > 180) {\r\n addError('Invalid longitude');\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"LongitudeValidator.js","names":["_NumberValidator","require","LongitudeValidator","Validate","value","isRequired","addError","validNumber","NumberValidator","num","Number","exports"],"sources":["../../src/lib/validators/LongitudeValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\nimport { NumberValidator } from './NumberValidator';\r\n\r\nexport class LongitudeValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n let validNumber = new NumberValidator().Validate(\r\n value,\r\n isRequired,\r\n addError\r\n );\r\n if (validNumber) {\r\n let num = Number(value);\r\n if (-180 > num || num > 180) {\r\n addError('Invalid longitude');\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n"],"mappings":";;;;;;AACA,IAAAA,gBAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,CAA2B;EACjDC,QAAQA,CACbC,KAAa,EACbC,UAAmB,EACnBC,QAAiC,EACxB;IACT,IAAIC,WAAW,GAAG,IAAIC,gCAAe,CAAC,CAAC,CAACL,QAAQ,CAC9CC,KAAK,EACLC,UAAU,EACVC,QACF,CAAC;IACD,IAAIC,WAAW,EAAE;MACf,IAAIE,GAAG,GAAGC,MAAM,CAACN,KAAK,CAAC;MACvB,IAAI,CAAC,GAAG,GAAGK,GAAG,IAAIA,GAAG,GAAG,GAAG,EAAE;QAC3BH,QAAQ,CAAC,mBAAmB,CAAC;QAC7B,OAAO,KAAK;MACd;MACA,OAAO,IAAI;IACb;IACA,OAAO,KAAK;EACd;AACF;AAACK,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
|
@@ -4,53 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.NumberValidator = void 0;
|
7
|
-
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
-
|
10
7
|
class NumberValidator {
|
11
8
|
constructor() {
|
12
9
|
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
13
10
|
min: undefined,
|
14
11
|
max: undefined
|
15
12
|
};
|
16
|
-
|
17
|
-
_defineProperty(this, "config", void 0);
|
18
|
-
|
19
13
|
this.config = config;
|
20
14
|
}
|
21
|
-
|
22
15
|
Validate(value, isRequired, addError) {
|
23
16
|
let num = Number(value);
|
24
|
-
|
25
17
|
if (!isNaN(num)) {
|
26
18
|
if (this.config.min !== undefined && num <= this.config.min) {
|
27
19
|
addError('Min: ' + this.config.min);
|
28
20
|
return false;
|
29
21
|
}
|
30
|
-
|
31
22
|
if (this.config.max !== undefined && num >= this.config.max) {
|
32
23
|
addError('Max: ' + (this.config.max - 1));
|
33
24
|
return false;
|
34
25
|
}
|
35
|
-
|
36
26
|
if (this.config.minInclusive !== undefined && num < this.config.minInclusive) {
|
37
27
|
addError('Min: ' + this.config.minInclusive);
|
38
28
|
return false;
|
39
29
|
}
|
40
|
-
|
41
30
|
if (this.config.maxInclusive !== undefined && num >= this.config.maxInclusive) {
|
42
31
|
addError('Max: ' + (this.config.maxInclusive - 1));
|
43
32
|
return false;
|
44
33
|
}
|
45
|
-
|
46
34
|
return true;
|
47
35
|
}
|
48
|
-
|
49
36
|
addError('Invalid number');
|
50
37
|
return false;
|
51
38
|
}
|
52
|
-
|
53
39
|
}
|
54
|
-
|
55
40
|
exports.NumberValidator = NumberValidator;
|
56
41
|
//# sourceMappingURL=NumberValidator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NumberValidator.js","names":["NumberValidator","constructor","config","
|
1
|
+
{"version":3,"file":"NumberValidator.js","names":["NumberValidator","constructor","config","arguments","length","undefined","min","max","Validate","value","isRequired","addError","num","Number","isNaN","minInclusive","maxInclusive","exports"],"sources":["../../src/lib/validators/NumberValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\nexport interface NumberValidatorConfig {\r\n min?: number;\r\n max?: number;\r\n minInclusive?: number;\r\n maxInclusive?: number;\r\n}\r\n\r\nexport class NumberValidator implements IBaseValidator {\r\n private config: NumberValidatorConfig;\r\n constructor(\r\n config: NumberValidatorConfig = { min: undefined, max: undefined }\r\n ) {\r\n this.config = config;\r\n }\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n let num = Number(value);\r\n if (!isNaN(num)) {\r\n if (this.config.min !== undefined && num <= this.config.min) {\r\n addError('Min: ' + this.config.min);\r\n return false;\r\n }\r\n if (this.config.max !== undefined && num >= this.config.max) {\r\n addError('Max: ' + (this.config.max - 1));\r\n return false;\r\n }\r\n if (\r\n this.config.minInclusive !== undefined &&\r\n num < this.config.minInclusive\r\n ) {\r\n addError('Min: ' + this.config.minInclusive);\r\n return false;\r\n }\r\n if (\r\n this.config.maxInclusive !== undefined &&\r\n num >= this.config.maxInclusive\r\n ) {\r\n addError('Max: ' + (this.config.maxInclusive - 1));\r\n return false;\r\n }\r\n return true;\r\n }\r\n addError('Invalid number');\r\n return false;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAQO,MAAMA,eAAe,CAA2B;EAErDC,WAAWA,CAAA,EAET;IAAA,IADAC,MAA6B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG;MAAEG,GAAG,EAAED,SAAS;MAAEE,GAAG,EAAEF;IAAU,CAAC;IAElE,IAAI,CAACH,MAAM,GAAGA,MAAM;EACtB;EACOM,QAAQA,CACbC,KAAa,EACbC,UAAmB,EACnBC,QAAiC,EACxB;IACT,IAAIC,GAAG,GAAGC,MAAM,CAACJ,KAAK,CAAC;IACvB,IAAI,CAACK,KAAK,CAACF,GAAG,CAAC,EAAE;MACf,IAAI,IAAI,CAACV,MAAM,CAACI,GAAG,KAAKD,SAAS,IAAIO,GAAG,IAAI,IAAI,CAACV,MAAM,CAACI,GAAG,EAAE;QAC3DK,QAAQ,CAAC,OAAO,GAAG,IAAI,CAACT,MAAM,CAACI,GAAG,CAAC;QACnC,OAAO,KAAK;MACd;MACA,IAAI,IAAI,CAACJ,MAAM,CAACK,GAAG,KAAKF,SAAS,IAAIO,GAAG,IAAI,IAAI,CAACV,MAAM,CAACK,GAAG,EAAE;QAC3DI,QAAQ,CAAC,OAAO,IAAI,IAAI,CAACT,MAAM,CAACK,GAAG,GAAG,CAAC,CAAC,CAAC;QACzC,OAAO,KAAK;MACd;MACA,IACE,IAAI,CAACL,MAAM,CAACa,YAAY,KAAKV,SAAS,IACtCO,GAAG,GAAG,IAAI,CAACV,MAAM,CAACa,YAAY,EAC9B;QACAJ,QAAQ,CAAC,OAAO,GAAG,IAAI,CAACT,MAAM,CAACa,YAAY,CAAC;QAC5C,OAAO,KAAK;MACd;MACA,IACE,IAAI,CAACb,MAAM,CAACc,YAAY,KAAKX,SAAS,IACtCO,GAAG,IAAI,IAAI,CAACV,MAAM,CAACc,YAAY,EAC/B;QACAL,QAAQ,CAAC,OAAO,IAAI,IAAI,CAACT,MAAM,CAACc,YAAY,GAAG,CAAC,CAAC,CAAC;QAClD,OAAO,KAAK;MACd;MACA,OAAO,IAAI;IACb;IACAL,QAAQ,CAAC,gBAAgB,CAAC;IAC1B,OAAO,KAAK;EACd;AACF;AAACM,OAAA,CAAAjB,eAAA,GAAAA,eAAA"}
|
@@ -4,19 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.UrlValidator = void 0;
|
7
|
-
|
8
7
|
class UrlValidator {
|
9
8
|
Validate(value, isRequired, addError) {
|
10
|
-
if (
|
9
|
+
if (
|
10
|
+
// tslint:disable-next-line:max-line-length
|
11
11
|
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(value)) {
|
12
12
|
return true;
|
13
13
|
}
|
14
|
-
|
15
14
|
addError('Invalid url');
|
16
15
|
return false;
|
17
16
|
}
|
18
|
-
|
19
17
|
}
|
20
|
-
|
21
18
|
exports.UrlValidator = UrlValidator;
|
22
19
|
//# sourceMappingURL=UrlValidator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UrlValidator.js","names":["UrlValidator","Validate","value","isRequired","addError","test"],"sources":["../../src/lib/validators/UrlValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\n\r\nexport class UrlValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n if (\r\n // tslint:disable-next-line:max-line-length\r\n /((([A-Za-z]{3,9}:(?:\\/\\/)?)(?:[-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\\+\\$,\\w]+@)[A-Za-z0-9.-]+)((?:\\/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)/.test(\r\n value\r\n )\r\n ) {\r\n return true;\r\n }\r\n addError('Invalid url');\r\n return false;\r\n }\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"UrlValidator.js","names":["UrlValidator","Validate","value","isRequired","addError","test","exports"],"sources":["../../src/lib/validators/UrlValidator.ts"],"sourcesContent":["import { IBaseValidator } from './base';\r\n\r\nexport class UrlValidator implements IBaseValidator {\r\n public Validate(\r\n value: string,\r\n isRequired: boolean,\r\n addError: (error: string) => void\r\n ): boolean {\r\n if (\r\n // tslint:disable-next-line:max-line-length\r\n /((([A-Za-z]{3,9}:(?:\\/\\/)?)(?:[-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\\+\\$,\\w]+@)[A-Za-z0-9.-]+)((?:\\/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)/.test(\r\n value\r\n )\r\n ) {\r\n return true;\r\n }\r\n addError('Invalid url');\r\n return false;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAEO,MAAMA,YAAY,CAA2B;EAC3CC,QAAQA,CACbC,KAAa,EACbC,UAAmB,EACnBC,QAAiC,EACxB;IACT;IACE;IACA,yLAAyL,CAACC,IAAI,CAC5LH,KACF,CAAC,EACD;MACA,OAAO,IAAI;IACb;IACAE,QAAQ,CAAC,aAAa,CAAC;IACvB,OAAO,KAAK;EACd;AACF;AAACE,OAAA,CAAAN,YAAA,GAAAA,YAAA"}
|
@@ -40,9 +40,7 @@ Object.defineProperty(exports, "UrlValidator", {
|
|
40
40
|
return _UrlValidator.UrlValidator;
|
41
41
|
}
|
42
42
|
});
|
43
|
-
|
44
43
|
var _base = require("./base");
|
45
|
-
|
46
44
|
Object.keys(_base).forEach(function (key) {
|
47
45
|
if (key === "default" || key === "__esModule") return;
|
48
46
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -54,14 +52,9 @@ Object.keys(_base).forEach(function (key) {
|
|
54
52
|
}
|
55
53
|
});
|
56
54
|
});
|
57
|
-
|
58
55
|
var _EmailValidator = require("./EmailValidator");
|
59
|
-
|
60
56
|
var _LatitudeValidator = require("./LatitudeValidator");
|
61
|
-
|
62
57
|
var _LongitudeValidator = require("./LongitudeValidator");
|
63
|
-
|
64
58
|
var _NumberValidator = require("./NumberValidator");
|
65
|
-
|
66
59
|
var _UrlValidator = require("./UrlValidator");
|
67
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/lib/validators/index.ts"],"sourcesContent":["export * from './base';\r\nexport { EmailValidator } from './EmailValidator';\r\nexport { LatitudeValidator } from './LatitudeValidator';\r\nexport { LongitudeValidator } from './LongitudeValidator';\r\nexport { NumberValidator } from './NumberValidator';\r\nexport { UrlValidator } from './UrlValidator';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_base","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_EmailValidator","_LatitudeValidator","_LongitudeValidator","_NumberValidator","_UrlValidator"],"sources":["../../src/lib/validators/index.ts"],"sourcesContent":["export * from './base';\r\nexport { EmailValidator } from './EmailValidator';\r\nexport { LatitudeValidator } from './LatitudeValidator';\r\nexport { LongitudeValidator } from './LongitudeValidator';\r\nexport { NumberValidator } from './NumberValidator';\r\nexport { UrlValidator } from './UrlValidator';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,eAAA,GAAAb,OAAA;AACA,IAAAc,kBAAA,GAAAd,OAAA;AACA,IAAAe,mBAAA,GAAAf,OAAA;AACA,IAAAgB,gBAAA,GAAAhB,OAAA;AACA,IAAAiB,aAAA,GAAAjB,OAAA"}
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "3.0.
|
2
|
+
"version": "3.0.19",
|
3
3
|
"description": "React forms with validation as used in GuestBell",
|
4
4
|
"keywords": [
|
5
5
|
"react",
|
@@ -16,14 +16,14 @@
|
|
16
16
|
"classnames": "^2.2.6"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
|
-
"@babel/cli": "7.
|
20
|
-
"@babel/core": "7.
|
21
|
-
"@babel/plugin-proposal-class-properties": "7.
|
22
|
-
"@babel/plugin-proposal-class-static-block": "^7.
|
23
|
-
"@babel/plugin-proposal-optional-chaining": "7.
|
24
|
-
"@babel/preset-env": "7.
|
25
|
-
"@babel/preset-react": "7.
|
26
|
-
"@babel/preset-typescript": "7.
|
19
|
+
"@babel/cli": "7.21.5",
|
20
|
+
"@babel/core": "7.21.8",
|
21
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
22
|
+
"@babel/plugin-proposal-class-static-block": "^7.21.0",
|
23
|
+
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
24
|
+
"@babel/preset-env": "7.21.5",
|
25
|
+
"@babel/preset-react": "7.18.6",
|
26
|
+
"@babel/preset-typescript": "7.21.5",
|
27
27
|
"@emotion/react": "^11.10.5",
|
28
28
|
"@emotion/styled": "^11.10.5",
|
29
29
|
"@mui/material": "^5.11.8",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@types/webpack": "4.41.0",
|
39
39
|
"@types/webpack-env": "1.14.1",
|
40
40
|
"autoprefixer": "9.7.3",
|
41
|
-
"babel-loader": "^
|
41
|
+
"babel-loader": "^9.1.2",
|
42
42
|
"babel-plugin-inline-react-svg": "^1.1.0",
|
43
43
|
"babel-polyfill": "^6.26.0",
|
44
44
|
"clean-webpack-plugin": "^3.0.0",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"cssnano": "4.1.10",
|
49
49
|
"dts-bundle": "0.7.3",
|
50
50
|
"file-loader": "5.0.2",
|
51
|
-
"html-webpack-plugin": "^
|
51
|
+
"html-webpack-plugin": "^5.5.1",
|
52
52
|
"lodash": "4.17.15",
|
53
53
|
"material-design-icons": "3.0.1",
|
54
54
|
"mini-css-extract-plugin": "0.8.0",
|
@@ -68,15 +68,15 @@
|
|
68
68
|
"sass-loader": "10.2.0",
|
69
69
|
"style-loader": "1.0.1",
|
70
70
|
"svg-react-loader": "0.4.6",
|
71
|
+
"terser-webpack-plugin": "^5.3.8",
|
71
72
|
"ts-loader": "^6.2.1",
|
72
73
|
"typescript": "4.4.3",
|
73
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
74
74
|
"url-loader": "3.0.0",
|
75
|
-
"webpack": "
|
76
|
-
"webpack-bundle-analyzer": "
|
77
|
-
"webpack-cli": "
|
78
|
-
"webpack-merge": "
|
79
|
-
"webpack-plugin-serve": "
|
75
|
+
"webpack": "5.82.1",
|
76
|
+
"webpack-bundle-analyzer": "4.8.0",
|
77
|
+
"webpack-cli": "5.1.1",
|
78
|
+
"webpack-merge": "5.8.0",
|
79
|
+
"webpack-plugin-serve": "1.6.0",
|
80
80
|
"why-did-you-update": "^1.0.6"
|
81
81
|
},
|
82
82
|
"name": "guestbell-forms",
|
@@ -117,12 +117,12 @@
|
|
117
117
|
"@tippy.js/react": "3.x",
|
118
118
|
"moment": "*",
|
119
119
|
"react": "16.x",
|
120
|
+
"react-cool-dimensions": "*",
|
120
121
|
"react-datepicker": "*",
|
121
122
|
"react-device-detect": "*",
|
122
123
|
"react-dom": "*",
|
123
124
|
"react-ink": "*",
|
124
|
-
"react-onclickoutside": "*"
|
125
|
-
"react-cool-dimensions": "*"
|
125
|
+
"react-onclickoutside": "*"
|
126
126
|
},
|
127
127
|
"browserslist": [
|
128
128
|
"last 1 version",
|