@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 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.</td>
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: 'vollständig ausgebucht',
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
@@ -1,4 +1,4 @@
1
- import { R as s, H as o, J as t, G as e, I as m } from "./index-48b9ca26.js";
1
+ import { R as s, H as o, J as t, G as e, I as m } from "./index-b0211da4.js";
2
2
  export {
3
3
  s as React,
4
4
  o as TimumBooking,