@timum/booking 1.15.2 → 1.15.4
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/README.md +11 -12
- package/build/booking.js +8542 -8542
- package/build/booking.umd.cjs +92 -92
- package/build/component/booking.js +8291 -8291
- package/build/component/booking.umd.cjs +79 -79
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -357,7 +357,11 @@ This object's options directly affect timum's behaviour or allow you to react to
|
|
|
357
357
|
</tr>
|
|
358
358
|
<tr>
|
|
359
359
|
<td>height</td>
|
|
360
|
-
<td>
|
|
360
|
+
<td>string, Height of timum on your page. `500px` is standard.</td>
|
|
361
|
+
</tr>
|
|
362
|
+
<tr>
|
|
363
|
+
<td>host</td>
|
|
364
|
+
<td>string, to which server requests are send. Possible values are <code>https://www.timum.de</code> (production server) or <code>https://staging.timum.de (test server)</code></td>
|
|
361
365
|
</tr>
|
|
362
366
|
<tr>
|
|
363
367
|
<td>allowCloseOnBooking</td>
|
|
@@ -769,14 +773,8 @@ fields: {
|
|
|
769
773
|
type: 'textarea',
|
|
770
774
|
validation: yup
|
|
771
775
|
.string()
|
|
772
|
-
.max(1024)
|
|
773
|
-
.test(
|
|
774
|
-
'no-emojis',
|
|
775
|
-
'validation.no_emojis',
|
|
776
|
-
(value) => !RE_EMOJI.test(value), // import with 'import { RE_EMOJI } from @timum/booking'
|
|
777
|
-
),
|
|
776
|
+
.max(1024),
|
|
778
777
|
limit: 1024,
|
|
779
|
-
onChange: (value) => value.replace(RE_EMOJI, ''),
|
|
780
778
|
},
|
|
781
779
|
agbs: {
|
|
782
780
|
index: 8,
|
|
@@ -861,22 +859,23 @@ Depending on the type there are additional properties you can/must specify:
|
|
|
861
859
|
|
|
862
860
|
- Type `text`:
|
|
863
861
|
|
|
864
|
-
|
|
862
|
+
- `format`: string; the native input field's 'type' (e.g. 'email', 'number', etc.).
|
|
865
863
|
|
|
866
864
|
- Type `phoneNumber`:
|
|
867
865
|
|
|
868
866
|
- does NOT support `validation`. Phone number validation is complex, so timum handles it for you.
|
|
869
|
-
|
|
870
|
-
|
|
867
|
+
This does mean that field validation localisation is currently not supported for fields of this type.
|
|
868
|
+
This will be fixed in a future update.
|
|
871
869
|
- <code>isRequired</code>: boolean; if true, this field must be filled with a valid number
|
|
872
870
|
- <code>defaultCountry</code>: string, denotes the country code which is preselected when first rendering the component. Default is 'DE',
|
|
873
871
|
- <code>preferredCountries</code>: list of strings; denotes which countries are displayed first in the country drop down. Defaults are ['DE', 'CH', 'AT'],
|
|
874
872
|
|
|
875
873
|
- Type `textArea`:
|
|
876
874
|
|
|
877
|
-
- <code>limit</code>: number; sets the maximum number of characters customers can enter. Standard is 1024 characters. Setting this to a higher number leads to error.
|
|
875
|
+
- <code>limit</code>: number; sets the maximum number of characters customers can enter. Standard is 1024 characters. Setting this to a higher number leads to error.
|
|
878
876
|
|
|
879
877
|
- Type `checkbox`:
|
|
878
|
+
|
|
880
879
|
- no special properties.
|
|
881
880
|
|
|
882
881
|
- Type `select`:
|