@timum/booking 1.3.8 → 1.3.9
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 +2 -2
- package/build/booking.js +1 -1
- package/build/booking.umd.cjs +11 -2
- package/build/{index-8abff60c.js → index-249cc842.js} +1 -1
- package/build/{index-3670f773.js → index-29f62622.js} +1 -1
- package/build/{index-5115a693.js → index-34a34127.js} +1 -1
- package/build/{index-a58982a8.js → index-9359193c.js} +1 -1
- package/build/{index-e761f9f5.js → index-a2a61e0d.js} +1 -1
- package/build/{index-c1d5f66a.js → index-acf0708a.js} +1 -1
- package/build/{index-08980e1b.js → index-b003abf0.js} +1 -1
- package/build/{index-785f7ef1.js → index-b2aea804.js} +1 -1
- package/build/{index-4a032f6f.js → index-bbec6028.js} +33 -17
- package/build/{index-7d1a5fe6.js → index-bd668c9b.js} +1 -1
- package/build/{index-30efaf6c.js → index-ed275a4e.js} +1 -1
- package/examples/usingFullCalendar.htm +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Add the following code to your webpage:
|
|
|
67
67
|
```html
|
|
68
68
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
69
69
|
<script type="module">
|
|
70
|
-
import * as timum from 'https://cdn.timum.de/bookingjs/booking.js';
|
|
70
|
+
import * as timum from 'https://cdn.timum.de/bookingjs/1/booking.js';
|
|
71
71
|
|
|
72
72
|
timum.init({ ref: 'booking-widget-demo-resource@timum' });
|
|
73
73
|
</script>
|
|
@@ -82,7 +82,7 @@ Alternatively, you can add `ref` to your url as a parameter. This allows you to
|
|
|
82
82
|
```html
|
|
83
83
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
84
84
|
<script type="module">
|
|
85
|
-
import * as timum from 'https://cdn.timum.de/bookingjs/booking.js';
|
|
85
|
+
import * as timum from 'https://cdn.timum.de/bookingjs/1/booking.js';
|
|
86
86
|
|
|
87
87
|
timum.init(); //<- no need for the reference here
|
|
88
88
|
</script>
|
package/build/booking.js
CHANGED
package/build/booking.umd.cjs
CHANGED
|
@@ -1238,7 +1238,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
|
|
|
1238
1238
|
--fc-border-color: #efefef;
|
|
1239
1239
|
--fc-button-text-color: #2c2f34;
|
|
1240
1240
|
--fc-button-bg-color: transparent;
|
|
1241
|
-
--fc-button-border-color: #
|
|
1241
|
+
--fc-button-border-color: #d0d0d0;
|
|
1242
1242
|
--fc-button-hover-bg-color: #e2f0fc;
|
|
1243
1243
|
--fc-button-active-bg-color: #94adc3;
|
|
1244
1244
|
--fc-event-bg-color: #fff;
|
|
@@ -1300,5 +1300,14 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
|
|
|
1300
1300
|
.fc .fc-v-event .fc-event-time {
|
|
1301
1301
|
font-size: 1em;
|
|
1302
1302
|
text-align: center;
|
|
1303
|
+
width: 100%;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.fc .fc-v-event .fc-event-time:after {
|
|
1307
|
+
display: none;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.fc .fc-v-event .fc-event-title {
|
|
1311
|
+
display: none;
|
|
1303
1312
|
}
|
|
1304
|
-
`;function i9e(){const e=Ge(t=>wZ(t,"useCustomTimumCss"));return be(ol,{children:[e&&_(Z2,{styles:r9e}),_(Z2,{styles:n9e})]})}const o9e=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},a9e=window.location.search,Vo=new URLSearchParams(a9e),hL=Vo.get("pData")??Vo.get("pdata"),S$=Vo.get("pDataPlatform")?{platform:Vo.get("pDataPlatform"),id:Vo.get("pDataId"),idPropName:Vo.get("pDataIdPropName")}:void 0,gL=o9e("PLAY_SESSION"),mL=Vo.get("channelKey")??Vo.get("channelkey"),vL=Vo.get("X-SIGNED-APP-CUSTOMER"),yL=Vo.get("ref"),$$=window.location.href.split("#")[1],[,,s9e]=($$==null?void 0:$$.split("/"))??[];function bL({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var a;if((hL||S$)&&(e.pData=hL??S$),mL&&(e.channelKey=mL),yL&&(e.ref=yL),(a=e==null?void 0:e.ref)!=null&&a.includes("@")||(e.platform?e.ref=`${e.ref}${e.prvUuid?"@"+e.prvUuid:""}@${e.platform}`:console.warn("Your ref parameter isn't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.")),gL&&(e.cookie=gL),vL&&(e.cancelableAppointment={authToken:vL,appointmentUuid:s9e,customerUuid:S$.id}),e.host&&Iq(e.host),!e.ref){console.log("timum hides itself. No reference in either url or options detected.");return}const r=({bookables:s,product:l,openProductPage:c,openBookingPage:d,height:h})=>{const{t:g}=xr(),p=Ge(b=>bZ(b)),m=le.useRef(null),[v,{width:x}]=im(),w=function(b){if(!b)return[];const S=[];for(const[,$]of Object.entries(s))for(const E of $)
|
|
1313
|
+
`;function i9e(){const e=Ge(t=>wZ(t,"useCustomTimumCss"));return be(ol,{children:[e&&_(Z2,{styles:r9e}),_(Z2,{styles:n9e})]})}const o9e=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},a9e=window.location.search,Vo=new URLSearchParams(a9e),hL=Vo.get("pData")??Vo.get("pdata"),S$=Vo.get("pDataPlatform")?{platform:Vo.get("pDataPlatform"),id:Vo.get("pDataId"),idPropName:Vo.get("pDataIdPropName")}:void 0,gL=o9e("PLAY_SESSION"),mL=Vo.get("channelKey")??Vo.get("channelkey"),vL=Vo.get("X-SIGNED-APP-CUSTOMER"),yL=Vo.get("ref"),$$=window.location.href.split("#")[1],[,,s9e]=($$==null?void 0:$$.split("/"))??[];function bL({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var a;if((hL||S$)&&(e.pData=hL??S$),mL&&(e.channelKey=mL),yL&&(e.ref=yL),(a=e==null?void 0:e.ref)!=null&&a.includes("@")||(e.platform?e.ref=`${e.ref}${e.prvUuid?"@"+e.prvUuid:""}@${e.platform}`:console.warn("Your ref parameter isn't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.")),gL&&(e.cookie=gL),vL&&(e.cancelableAppointment={authToken:vL,appointmentUuid:s9e,customerUuid:S$.id}),e.host&&Iq(e.host),!e.ref){console.log("timum hides itself. No reference in either url or options detected.");return}const r=({bookables:s,product:l,openProductPage:c,openBookingPage:d,height:h})=>{const{t:g}=xr(),p=Ge(b=>bZ(b)),m=le.useRef(null),[v,{width:x}]=im(),w=function(b){if(!b)return[];const S=[];for(const[,$]of Object.entries(s))for(const E of $){const T={start:E.start.toISO({suppressMilliseconds:!0}),end:E.end.toISO({suppressMilliseconds:!0}),title:"",extendedProps:E};S.push(T)}return S};return _(WW,{ref:v,children:_(dv,{ref:m,locales:t9e,locale:Bn.resolvedLanguage,height:h,timeZone:"utc",plugins:[GCe,J8e,tEe,_Ee],customButtons:{productSelection:{text:(l==null?void 0:l.name)??"Produkt wählen",click:()=>{c()}}},headerToolbar:{left:"productSelection",center:"",right:"today prev,next"},noEventsText:g("noEventsMessage"),events:w(s),eventClick:b=>{const S={...b.event.extendedProps};S.start=Fe.fromISO(b.event.startStr),S.end=Fe.fromISO(b.event.endStr),d(S)},windowResize:()=>{var b,S,$,E;p.smallView&&p.largeView&&(x<601?(S=(b=m==null?void 0:m.current)==null?void 0:b.getApi())==null||S.changeView(p.smallView):(E=($=m==null?void 0:m.current)==null?void 0:$.getApi())==null||E.changeView(p.largeView))},...p})})},i=s=>_(Lwe,{...s}),o=s=>_(k1,{...s});return _(ol,{children:_(Bj,{injectFirst:!0,children:_(cwe,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:_(hq,{store:nSe,children:be(eSe,{muiTheme:t,fcConfig:n,appConfig:e,children:[_(gde,{}),_(i9e,{}),_(mwe,{children:s=>{const l=Ge(c=>et(c,"calendarFrontend"));return l==="fullCalendar"?_(a5,{calendarComponent:r,...s}):l==="detailsListView"?_(a5,{calendarComponent:i,...s}):l==="pureListView"?_(a5,{calendarComponent:o,...s}):be(ol,{children:["You must set calendarFrontend either to"," ",_("code",{children:"fullCalendar"})," or to ",_("code",{children:"listView"})," in your config."]})}})]})})})})})}function l9e(e,t,n){eT(document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")).render(_(le.StrictMode,{children:_(bL,{appConfig:e,muiTheme:t,fcConfig:n})}))}mo.React=le,mo.TimumBooking=bL,mo.i18next=zxe,mo.init=l9e,mo.yup=Fue,Object.defineProperty(mo,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as b, s as f, u as m, v as F, w as d, _ as C, x as l, y as n, z as T, A as v, C as x } from "./index-
|
|
1
|
+
import { r as b, s as f, u as m, v as F, w as d, _ as C, x as l, y as n, z as T, A as v, C as x } from "./index-bbec6028.js";
|
|
2
2
|
function y(o) {
|
|
3
3
|
return b("MuiTableFooter", o);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as p, s as b, u as m, v as H, w as C, _ as T, x as r, y as n, z as f, A as h, C as v } from "./index-
|
|
1
|
+
import { r as p, s as b, u as m, v as H, w as C, _ as T, x as r, y as n, z as f, A as h, C as v } from "./index-bbec6028.js";
|
|
2
2
|
function x(e) {
|
|
3
3
|
return p("MuiTableHead", e);
|
|
4
4
|
}
|
|
@@ -43668,27 +43668,27 @@ function yL(e, t) {
|
|
|
43668
43668
|
return n;
|
|
43669
43669
|
}
|
|
43670
43670
|
var X7 = ce.lazy(function() {
|
|
43671
|
-
return import("./index-
|
|
43671
|
+
return import("./index-34a34127.js");
|
|
43672
43672
|
}), J7 = ce.lazy(function() {
|
|
43673
|
-
return import("./index-
|
|
43673
|
+
return import("./index-b003abf0.js");
|
|
43674
43674
|
});
|
|
43675
43675
|
ce.lazy(function() {
|
|
43676
|
-
return import("./index-
|
|
43676
|
+
return import("./index-ed275a4e.js");
|
|
43677
43677
|
});
|
|
43678
43678
|
var wl = ce.lazy(function() {
|
|
43679
|
-
return import("./index-
|
|
43679
|
+
return import("./index-b2aea804.js");
|
|
43680
43680
|
}), LCe = ce.lazy(function() {
|
|
43681
|
-
return import("./index-
|
|
43681
|
+
return import("./index-29f62622.js");
|
|
43682
43682
|
}), FCe = ce.lazy(function() {
|
|
43683
|
-
return import("./index-
|
|
43683
|
+
return import("./index-249cc842.js");
|
|
43684
43684
|
}), eA = ce.lazy(function() {
|
|
43685
|
-
return import("./index-
|
|
43685
|
+
return import("./index-9359193c.js");
|
|
43686
43686
|
}), zCe = ce.lazy(function() {
|
|
43687
|
-
return import("./index-
|
|
43687
|
+
return import("./index-a2a61e0d.js");
|
|
43688
43688
|
}), BCe = ce.lazy(function() {
|
|
43689
|
-
return import("./index-
|
|
43689
|
+
return import("./index-acf0708a.js");
|
|
43690
43690
|
}), HCe = ce.lazy(function() {
|
|
43691
|
-
return import("./index-
|
|
43691
|
+
return import("./index-bd668c9b.js");
|
|
43692
43692
|
}), UCe = ce.lazy(function() {
|
|
43693
43693
|
return Promise.resolve().then(function() {
|
|
43694
43694
|
return VCe;
|
|
@@ -62383,7 +62383,7 @@ const aIe = eu`
|
|
|
62383
62383
|
--fc-border-color: #efefef;
|
|
62384
62384
|
--fc-button-text-color: #2c2f34;
|
|
62385
62385
|
--fc-button-bg-color: transparent;
|
|
62386
|
-
--fc-button-border-color: #
|
|
62386
|
+
--fc-button-border-color: #d0d0d0;
|
|
62387
62387
|
--fc-button-hover-bg-color: #e2f0fc;
|
|
62388
62388
|
--fc-button-active-bg-color: #94adc3;
|
|
62389
62389
|
--fc-event-bg-color: #fff;
|
|
@@ -62445,6 +62445,15 @@ const aIe = eu`
|
|
|
62445
62445
|
.fc .fc-v-event .fc-event-time {
|
|
62446
62446
|
font-size: 1em;
|
|
62447
62447
|
text-align: center;
|
|
62448
|
+
width: 100%;
|
|
62449
|
+
}
|
|
62450
|
+
|
|
62451
|
+
.fc .fc-v-event .fc-event-time:after {
|
|
62452
|
+
display: none;
|
|
62453
|
+
}
|
|
62454
|
+
|
|
62455
|
+
.fc .fc-v-event .fc-event-title {
|
|
62456
|
+
display: none;
|
|
62448
62457
|
}
|
|
62449
62458
|
`;
|
|
62450
62459
|
function lIe() {
|
|
@@ -62490,12 +62499,19 @@ function hIe({ appConfig: e = {}, muiTheme: t = {}, fcConfig: n = {} }) {
|
|
|
62490
62499
|
return [];
|
|
62491
62500
|
const S = [];
|
|
62492
62501
|
for (const [, $] of Object.entries(s))
|
|
62493
|
-
for (const E of $)
|
|
62494
|
-
|
|
62495
|
-
|
|
62496
|
-
|
|
62497
|
-
|
|
62498
|
-
|
|
62502
|
+
for (const E of $) {
|
|
62503
|
+
const T = {
|
|
62504
|
+
start: E.start.toISO({
|
|
62505
|
+
suppressMilliseconds: !0
|
|
62506
|
+
}),
|
|
62507
|
+
end: E.end.toISO({
|
|
62508
|
+
suppressMilliseconds: !0
|
|
62509
|
+
}),
|
|
62510
|
+
title: "",
|
|
62511
|
+
extendedProps: E
|
|
62512
|
+
};
|
|
62513
|
+
S.push(T);
|
|
62514
|
+
}
|
|
62499
62515
|
return S;
|
|
62500
62516
|
};
|
|
62501
62517
|
return /* @__PURE__ */ _(YQ, { ref: v, children: /* @__PURE__ */ _(
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
<body>
|
|
11
11
|
<div id="bookingjs" style="margin: 15px"></div>
|
|
12
|
-
<script type="text/javascript" src="../build/booking.umd.
|
|
12
|
+
<script type="text/javascript" src="../build/booking.umd.cjs"></script>
|
|
13
13
|
<script
|
|
14
|
-
type="text/javascript">timum.init({ ref: "
|
|
14
|
+
type="text/javascript">timum.init({ ref: "39@b51c8a60-c607-11ec-9249-0239547cf090@onofficeEstate", calendarFrontend: "fullCalendar", height: 1000 }); </script>
|
|
15
15
|
</body>
|
|
16
16
|
|
|
17
17
|
</html>
|