@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 +18 -18
- package/build/booking.js +19 -19
- package/build/booking.umd.cjs +2 -2
- package/build/component/booking.js +8470 -8461
- package/build/component/booking.umd.cjs +75 -75
- package/package.json +2 -2
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
|
|
17
|
+
- [Resource Reference with channelKey](#resource-reference-with-channelKey)
|
|
18
18
|
- [Example](#example)
|
|
19
19
|
- [Customer pre-identification](#customer-pre-identification)
|
|
20
|
-
- [Identification via
|
|
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](#
|
|
24
|
-
- [fcConfig](#
|
|
25
|
-
- [appConfig](#
|
|
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](#
|
|
32
|
-
- [Custom Fields](#
|
|
33
|
-
- [Custom Field Example](#
|
|
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="
|
|
160
|
+
<a name="#resource-reference-with-channelKey"></a>
|
|
161
161
|
|
|
162
|
-
#### Resource Reference
|
|
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-
|
|
198
|
+
<a name="identification-via-pdataid"></a>
|
|
199
199
|
|
|
200
|
-
##### Identification via pDataId
|
|
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=”
|
|
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=”
|
|
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=”
|
|
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=”
|
|
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=”
|
|
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=”
|
|
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({
|
|
65900
|
-
const { t:
|
|
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(
|
|
65902
|
+
})} ${Ne.fromISO(e).toLocaleString({
|
|
65903
65903
|
day: "2-digit",
|
|
65904
65904
|
month: "2-digit"
|
|
65905
65905
|
})}
|
|
65906
|
-
`, [
|
|
65907
|
-
return
|
|
65908
|
-
/* @__PURE__ */ $.jsx(he, { item: !0, xs: 12, height: "25px", children: /* @__PURE__ */ $.jsx(De, { sx: { textAlign: "center" }, children:
|
|
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:
|
|
65919
|
-
children:
|
|
65920
|
-
if (
|
|
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: () =>
|
|
65927
|
-
children:
|
|
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
|
|
65933
|
-
if (
|
|
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: () =>
|
|
65940
|
-
children:
|
|
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
|
|
65946
|
-
if (
|
|
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:
|
|
65954
|
+
children: i("appoinment_at_capacity")
|
|
65955
65955
|
}
|
|
65956
|
-
) }, a
|
|
65956
|
+
) }, a);
|
|
65957
65957
|
})
|
|
65958
65958
|
}
|
|
65959
65959
|
)
|