@timum/booking 1.3.12 → 1.4.0
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 +9 -2
- package/build/booking.js +1 -1
- package/build/booking.umd.cjs +108 -96
- package/build/{index-e3010080.js → index-102dacd3.js} +1 -1
- package/build/{index-6bfd2d1b.js → index-36f5a4c6.js} +1 -1
- package/build/{index-ed421ca0.js → index-3e8836da.js} +1 -1
- package/build/{index-ccb95f10.js → index-4524339a.js} +1 -1
- package/build/{index-140dbd60.js → index-6ac1022a.js} +1 -1
- package/build/{index-9cbfe738.js → index-82e49dea.js} +1 -1
- package/build/{index-531a9ea3.js → index-a563a1d0.js} +1 -1
- package/build/{index-48b9ca26.js → index-b0211da4.js} +48430 -47790
- package/build/{index-e56a2c9b.js → index-bd8df7f3.js} +1 -1
- package/build/{index-48cf3fbc.js → index-c9f80a70.js} +1 -1
- package/build/{index-338ca6e5.js → index-dfa0e60f.js} +1 -1
- package/package.json +4 -3
- package/vite.config.js +5 -1
package/README.md
CHANGED
|
@@ -259,7 +259,8 @@ This object's options directly affect timum's behaviour or allow you to react to
|
|
|
259
259
|
</tr>
|
|
260
260
|
<tr>
|
|
261
261
|
<td>ref</td>
|
|
262
|
-
<td>string, Reference of the resource to show the appointments of. <br><em> This is the only prop that is mandatory.</em><br> Everything else is optional. <br>Can also be a url parameter
|
|
262
|
+
<td>string/array, Reference of the resource to show the appointments of. <br><em> This is the only prop that is mandatory.</em><br> Everything else is optional. <br>Can also be a url parameter.
|
|
263
|
+
<br>You can also provide a list of string references. Booking.js will then allow your customer to choose for which resource appointments should be displayed.</td>
|
|
263
264
|
</tr>
|
|
264
265
|
<tr>
|
|
265
266
|
<td>platform</td>
|
|
@@ -496,6 +497,7 @@ The code snippet provided shows the complete localization object and the standar
|
|
|
496
497
|
```javascript
|
|
497
498
|
localization: {
|
|
498
499
|
de: {
|
|
500
|
+
resource_selection_headline: 'Resource wählen',
|
|
499
501
|
product_selection_headline: 'Terminart wählen',
|
|
500
502
|
booked_successfully_header: 'Termin gebucht',
|
|
501
503
|
booked_successfully_message:
|
|
@@ -508,7 +510,7 @@ localization: {
|
|
|
508
510
|
|
|
509
511
|
noEventsMessage:
|
|
510
512
|
'Zur Zeit sind leider keine buchbaren Termine verfügbar.',
|
|
511
|
-
appoinment_at_capacity: '
|
|
513
|
+
appoinment_at_capacity: 'belegt',
|
|
512
514
|
add_to_calendar_btn: 'Zu Kalender hinzufügen',
|
|
513
515
|
until_reservation_expiration:
|
|
514
516
|
'{{expiration}} bis zum Ablauf der Reservierung',
|
|
@@ -549,6 +551,7 @@ localization: {
|
|
|
549
551
|
},
|
|
550
552
|
// the same for english.
|
|
551
553
|
en: {
|
|
554
|
+
resource_selection_headline: 'Choose Resource',
|
|
552
555
|
product_selection_headline: 'Choose Product',
|
|
553
556
|
booked_successfully_header: 'Appoinment Booked',
|
|
554
557
|
booked_successfully_message:
|
|
@@ -641,6 +644,8 @@ The standard configuration can be overridden except for the aforementioned field
|
|
|
641
644
|
title: 'fields.mobile',
|
|
642
645
|
type: 'phoneNumber',
|
|
643
646
|
isRequired: false,
|
|
647
|
+
defaultCountry: 'DE',
|
|
648
|
+
preferredCountries: ['DE', 'CH', 'AT'],
|
|
644
649
|
// validation: is in built and ignored
|
|
645
650
|
},
|
|
646
651
|
message: {
|
|
@@ -705,6 +710,8 @@ Depending on the type there are additional properties you can/must specify:
|
|
|
705
710
|
This does mean that field validation localisation is currently not supported for fields of this type.
|
|
706
711
|
This will be fixed in a future update.
|
|
707
712
|
- isRequired: boolean; if true, this field must be filled with a valid number
|
|
713
|
+
- defaultCountry: string, denotes the country code which is preselected when first rendering the component. Default is 'DE',
|
|
714
|
+
- preferredCountries: list of strings; denotes which countries are displayed first in the country drop down. Defaults are ['DE', 'CH', 'AT'],
|
|
708
715
|
|
|
709
716
|
- Type `textArea`:
|
|
710
717
|
|
package/build/booking.js
CHANGED