@timum/booking 1.11.4 → 1.11.6

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
@@ -14,23 +14,23 @@ This documentation guides you through all the customization capabilities.
14
14
  - [Entity Referencing](#entity-referencing)
15
15
  - [Channel Reference](#channel-reference)
16
16
  - [Resource Reference](#resource-reference)
17
- - [Resource Reference + `channelKey`](#channel-reference-channel-key)
17
+ - [Resource Reference with channelKey](#resource-reference-with-channelKey)
18
18
  - [Example](#example)
19
19
  - [Customer pre-identification](#customer-pre-identification)
20
- - [Identification via pData](#identification-via-pdata)
20
+ - [Identification via pDataId](#identification-via-pdataid)
21
21
  - [Identification via logged-in User](#identification-via-logged-in-user)
22
22
  - [Advanced Customisation](#advanced-usage)
23
- - [muiTheme](#mui-theme)
24
- - [fcConfig](#fc-config)
25
- - [appConfig](#app-config)
23
+ - [muiTheme](#muiTheme)
24
+ - [fcConfig](#fcConfig)
25
+ - [appConfig](#appConfig)
26
26
  - [How to use Callbacks](#how-to-use-callbacks)
27
27
  - [Booking Related](#booking-related)
28
28
  - [Cancelation Related](#cancelation-related)
29
29
  - [Data Fetching Related](#data-fetching-related)
30
30
  - [Localisation](#localisation)
31
- - [Booking Form Fields](#bookingFormFields)
32
- - [Custom Fields](#customFields)
33
- - [Custom Field Example](#CustomFieldExample)
31
+ - [Booking Form Fields](#booking-form-fields)
32
+ - [Custom Fields](#custom-fields)
33
+ - [Custom Field Example](#custom-field-example)
34
34
  - [The Scenario](#the-scenario)
35
35
  - [The Implementation](#the-implementation)
36
36
 
@@ -157,9 +157,9 @@ To use these channels in an embed scenario, provide a channel reference in the r
157
157
 
158
158
  A reference that refers to a plain resource, where the channel is unknown. The default channel (and its corresponding configuration) is used instead.
159
159
 
160
- <a name="channel-reference-channel-key"></a>
160
+ <a name="#resource-reference-with-channelKey"></a>
161
161
 
162
- #### Resource Reference + `ChannelKey`
162
+ #### Resource Reference with ChannelKey
163
163
 
164
164
  If you don't have a channel reference but still want to use a different channel than the default one, you can provide a combination of resource reference and `channelKey` to uniquely identify the channel (and resource) to be used.
165
165
 
@@ -195,9 +195,9 @@ The following table gives an overview of the different permutations and how book
195
195
  BookingJs can identify customers automatically if configured correctly.
196
196
  This means they don't need to input their personal data prior to booking.
197
197
 
198
- <a name="identification-via-pdata"></a>
198
+ <a name="identification-via-pdataid"></a>
199
199
 
200
- ##### Identification via pDataId (personId)
200
+ ##### Identification via pDataId
201
201
 
202
202
  Detection method: Is there a valid pDataId paired with a supported pDataPlatform (platform) in parent url matching an entity (contact, customer) in given CRM?
203
203
  <em>
@@ -230,7 +230,7 @@ The following table gives a rough overview over each.
230
230
  | muiTheme | object, mui theme allowing you to change the look and feel of timum. Requires a professional plan. |
231
231
  | fcConfig | object, only used if you use full calendar as a booking frontend (settable in appConfig). |
232
232
 
233
- <a name=”mui-theme”></a>
233
+ <a name=”muiTheme”></a>
234
234
 
235
235
  ### muiTheme
236
236
 
@@ -241,7 +241,7 @@ When you open the file `config.js` in [this](https://stackblitz.com/edit/react-8
241
241
 
242
242
  Needs professional plan.
243
243
 
244
- <a name=”fc-config”></a>
244
+ <a name=”fcConfig”></a>
245
245
 
246
246
  ### fcConfig
247
247
 
@@ -273,7 +273,7 @@ There are also some options specific to bookingjs. In addition to the configurat
273
273
  </tr>
274
274
  </table>
275
275
 
276
- <a name=”app-config”></a>
276
+ <a name=”appConfig”></a>
277
277
 
278
278
  ### appConfig
279
279
 
@@ -695,7 +695,7 @@ localization: {
695
695
  },
696
696
  ```
697
697
 
698
- <a name=”bookingFormFields”></a>
698
+ <a name=”booking-form-fields”></a>
699
699
 
700
700
  #### Booking Form Fields
701
701
 
@@ -778,7 +778,7 @@ fields: {
778
778
  },
779
779
  ```
780
780
 
781
- <a name=”customFields”></a>
781
+ <a name=”custom-fields”></a>
782
782
 
783
783
  ##### Custom Fields
784
784
 
@@ -865,7 +865,7 @@ Type `select`:
865
865
 
866
866
  - options: array of objects with structure { title: string, key: string }. The title is displayed and the key is passed in the data object to callbacks.
867
867
 
868
- <a name=”CustomFieldExample”></a>
868
+ <a name=”custom-field-example”></a>
869
869
 
870
870
  ### Custom Field Example
871
871
 
package/build/booking.js CHANGED
@@ -65896,16 +65896,16 @@ function MKe({
65896
65896
  }
65897
65897
  ) });
65898
65898
  }
65899
- function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65900
- const { t: o } = Dn(), s = R.useMemo(() => `${Ne.fromISO(t).toLocaleString({
65899
+ function IKe({ date: e, timeslots: t, width: n, openBookingPage: r }) {
65900
+ const { t: i } = Dn(), o = R.useMemo(() => `${Ne.fromISO(e).toLocaleString({
65901
65901
  weekday: "short"
65902
- })} ${Ne.fromISO(t).toLocaleString({
65902
+ })} ${Ne.fromISO(e).toLocaleString({
65903
65903
  day: "2-digit",
65904
65904
  month: "2-digit"
65905
65905
  })}
65906
- `, [t]);
65907
- return n ? /* @__PURE__ */ $.jsxs(he, { container: !0, item: !0, xs: "auto", alignContent: "flex-start", children: [
65908
- /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(De, { sx: { textAlign: "center" }, children: s }) }),
65906
+ `, [e]);
65907
+ return t ? /* @__PURE__ */ $.jsxs(he, { container: !0, item: !0, xs: "auto", alignContent: "flex-start", children: [
65908
+ /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(De, { sx: { textAlign: "center" }, children: o }) }),
65909
65909
  /* @__PURE__ */ $.jsx(
65910
65910
  he,
65911
65911
  {
@@ -65915,35 +65915,35 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65915
65915
  direction: "row",
65916
65916
  alignItems: "center",
65917
65917
  rowSpacing: 1,
65918
- sx: { minWidth: r - 8, mt: 1 },
65919
- children: n.map((a) => {
65920
- if (a.renderAsBookable)
65918
+ sx: { minWidth: n - 8, mt: 1 },
65919
+ children: t.map((s, a) => {
65920
+ if (s.renderAsBookable)
65921
65921
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65922
65922
  Mo,
65923
65923
  {
65924
65924
  fullWidth: !0,
65925
65925
  variant: "outlined",
65926
- onClick: () => i(a),
65927
- children: a.start.toLocaleString({
65926
+ onClick: () => r(s),
65927
+ children: s.start.toLocaleString({
65928
65928
  hour: "2-digit",
65929
65929
  minute: "2-digit"
65930
65930
  })
65931
65931
  }
65932
- ) }, a.uuid);
65933
- if (a.renderAsCancelable)
65932
+ ) }, a);
65933
+ if (s.renderAsCancelable)
65934
65934
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65935
65935
  Mo,
65936
65936
  {
65937
65937
  variant: "outlined",
65938
65938
  fullWidth: !0,
65939
- onClick: () => i(a),
65940
- children: a.start.toLocaleString({
65939
+ onClick: () => r(s),
65940
+ children: s.start.toLocaleString({
65941
65941
  hour: "2-digit",
65942
65942
  minute: "2-digit"
65943
65943
  })
65944
65944
  }
65945
- ) }, a.uuid);
65946
- if (a.renderAsBlocker)
65945
+ ) }, a);
65946
+ if (s.renderAsBlocker)
65947
65947
  return /* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, children: /* @__PURE__ */ $.jsx(
65948
65948
  Mo,
65949
65949
  {
@@ -65951,9 +65951,9 @@ function IKe({ key: e, date: t, timeslots: n, width: r, openBookingPage: i }) {
65951
65951
  fullWidth: !0,
65952
65952
  disabled: !0,
65953
65953
  sx: { textTransform: "inherit" },
65954
- children: o("appoinment_at_capacity")
65954
+ children: i("appoinment_at_capacity")
65955
65955
  }
65956
- ) }, a.uuid);
65956
+ ) }, a);
65957
65957
  })
65958
65958
  }
65959
65959
  )