@timum/booking 1.3.3 → 1.3.5
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/build/booking.js +1 -1
- package/build/booking.umd.cjs +76 -78
- package/build/{index-1da71c1e.js → index-0b756429.js} +1 -1
- package/build/{index-8428bcb4.js → index-203b46a2.js} +1 -1
- package/build/{index-25997521.js → index-35901b04.js} +1 -1
- package/build/{index-bf98fdfb.js → index-5ab0c9b6.js} +1 -1
- package/build/{index-55733a63.js → index-6543cea4.js} +1 -1
- package/build/{index-cc65004c.js → index-69c8cc74.js} +1 -1
- package/build/{index-121e850f.js → index-ce944bc9.js} +1 -1
- package/build/{index-b3e26fa8.js → index-d3200eff.js} +1 -1
- package/build/{index-cbcb0d60.js → index-da2215a0.js} +1 -1
- package/build/{index-97c5e513.js → index-daee40a7.js} +9235 -9173
- package/build/{index-b9348629.js → index-f3f7b5fc.js} +1 -1
- package/examples/multiple.htm +161 -14
- package/package.json +2 -2
package/examples/multiple.htm
CHANGED
|
@@ -1,16 +1,163 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6" />
|
|
7
|
+
<title>timum single instance example</title>
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<div id="timumdiv" class="flex-container" style="display:flex; min-height: 500px; flex-flow: row wrap;">
|
|
12
|
+
<div style="flex-direction:column; display:flex; flex: 1; min-width: 300px; min-height: 500px;">
|
|
13
|
+
<h2 style="text-align: center">Frau Bauer</h2>
|
|
14
|
+
<iframe width="100%" style="border-width: 0" height="100%" srcdoc="
|
|
15
|
+
<div id='booking1js' style='margin: 0px 16px 0px 8px'></div>
|
|
16
|
+
<script type='text/javascript' src='../build/booking.umd.cjs'></script>
|
|
17
|
+
<script type='text/javascript'>
|
|
18
|
+
const selectedItemValue = '';
|
|
19
|
+
const calendarUI = 'fullCalendar'; //'pureListView';
|
|
20
|
+
const formFields = {
|
|
21
|
+
// For the feature 'custom fields', you need either an accounting plan 'professional' or 'managed calendar'
|
|
22
|
+
// set default fields to 'undefined' explicitly in order to remove them, e.g. mobile: undefined,
|
|
23
|
+
selectedItem: {
|
|
24
|
+
index: 3,
|
|
25
|
+
title: 'Bitte die Wohnungsnummer aus dem Angebot angeben',
|
|
26
|
+
type: 'text',
|
|
27
|
+
prefilled: ' ',
|
|
28
|
+
preventRendering: false,
|
|
29
|
+
},
|
|
30
|
+
selectedItem2: {
|
|
31
|
+
index: 4,
|
|
32
|
+
title: 'Wohnungsnummer des Angebots',
|
|
33
|
+
type: 'text',
|
|
34
|
+
prefilled: selectedItemValue,
|
|
35
|
+
preventRendering: false,
|
|
36
|
+
},
|
|
37
|
+
message: {
|
|
38
|
+
index: 6,
|
|
39
|
+
title: 'Ihre Nachricht (optional)',
|
|
40
|
+
},
|
|
41
|
+
agbs: {
|
|
42
|
+
index: 7,
|
|
43
|
+
title: '<a href=\'https://info.timum.de/datenschutz/\' target=\'_blanc\'>Datenschutzbestimmungen</a> gelesen und akzeptiert.',
|
|
44
|
+
type: 'checkbox',
|
|
45
|
+
validation: timum.yup
|
|
46
|
+
.boolean()
|
|
47
|
+
.required('validation.field_required')
|
|
48
|
+
.test(
|
|
49
|
+
'privacyAccepted',
|
|
50
|
+
'validation.privacy_field_required',
|
|
51
|
+
(value) => value === true
|
|
52
|
+
),
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
timum.init(
|
|
58
|
+
{
|
|
59
|
+
rootElId: 'booking1js',
|
|
60
|
+
ref: 'anna.bauer@e20c1fb0-f480-11ed-9731-0224b786672a@timum',
|
|
61
|
+
calendarFrontend: calendarUI,
|
|
62
|
+
fields: formFields,
|
|
63
|
+
sendCustomValuesInMessage: true, // necessary to transmit custom field values as part of the customer message
|
|
64
|
+
|
|
65
|
+
// the following callback consumes the customers input,
|
|
66
|
+
// allowing you to act on the entered gender value.
|
|
67
|
+
callback: {
|
|
68
|
+
createBookingStarted: ({ data }) => {
|
|
69
|
+
console.log(data.selectedItem);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{},
|
|
74
|
+
{
|
|
75
|
+
smallView: 'timeGridWeek',
|
|
76
|
+
largeView: 'timeGridWeek',
|
|
77
|
+
headerToolbar: {
|
|
78
|
+
start: '',
|
|
79
|
+
center: 'title',
|
|
80
|
+
end: 'prev,next'
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
</script>">
|
|
84
|
+
</iframe>
|
|
85
|
+
</div>
|
|
86
|
+
<div style="flex-direction:column; display: flex; flex: 1; min-width: 300px; min-height: 500px;">
|
|
87
|
+
<h2 style="text-align: center">Frau Huber</h2>
|
|
88
|
+
<iframe width="100%" style="border-width: 0" height="100%" srcdoc="
|
|
89
|
+
<div id='bookingTwojs' style='margin: 0px 8px 0px 16px'></div>
|
|
90
|
+
<script type='text/javascript' src='../build/booking.umd.cjs'></script>
|
|
91
|
+
<script type='text/javascript'>
|
|
92
|
+
const selectedItemValue = '';
|
|
93
|
+
const calendarUI = 'fullCalendar'; //'pureListView';
|
|
94
|
+
const formFields = {
|
|
95
|
+
// For the feature 'custom fields', you need either an accounting plan 'professional' or 'managed calendar'
|
|
96
|
+
// set default fields to 'undefined' explicitly in order to remove them, e.g. mobile: undefined,
|
|
97
|
+
selectedItem: {
|
|
98
|
+
index: 3,
|
|
99
|
+
title: 'Bitte die Wohnungsnummer aus dem Angebot angeben',
|
|
100
|
+
type: 'text',
|
|
101
|
+
prefilled: ' ',
|
|
102
|
+
preventRendering: false,
|
|
103
|
+
},
|
|
104
|
+
selectedItem2: {
|
|
105
|
+
index: 4,
|
|
106
|
+
title: 'Wohnungsnummer des Angebots',
|
|
107
|
+
type: 'text',
|
|
108
|
+
prefilled: selectedItemValue,
|
|
109
|
+
preventRendering: false,
|
|
110
|
+
},
|
|
111
|
+
message: {
|
|
112
|
+
index: 6,
|
|
113
|
+
title: 'Ihre Nachricht (optional)',
|
|
114
|
+
},
|
|
115
|
+
agbs: {
|
|
116
|
+
index: 7,
|
|
117
|
+
title: '<a href=\'https://info.timum.de/datenschutz/\' target=\'_blanc\'>Datenschutzbestimmungen</a> gelesen und akzeptiert.',
|
|
118
|
+
type: 'checkbox',
|
|
119
|
+
validation: timum.yup
|
|
120
|
+
.boolean()
|
|
121
|
+
.required('validation.field_required')
|
|
122
|
+
.test(
|
|
123
|
+
'privacyAccepted',
|
|
124
|
+
'validation.privacy_field_required',
|
|
125
|
+
(value) => value === true
|
|
126
|
+
),
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
timum.init(
|
|
132
|
+
{
|
|
133
|
+
rootElId: 'bookingTwojs',
|
|
134
|
+
ref: 'sabine.huber@e20c1fb0-f480-11ed-9731-0224b786672a@timum',
|
|
135
|
+
calendarFrontend: calendarUI,
|
|
136
|
+
fields: formFields,
|
|
137
|
+
sendCustomValuesInMessage: true, // necessary to transmit custom field values as part of the customer message
|
|
138
|
+
|
|
139
|
+
// the following callback consumes the customers input,
|
|
140
|
+
// allowing you to act on the entered gender value.
|
|
141
|
+
callback: {
|
|
142
|
+
createBookingStarted: ({ data }) => {
|
|
143
|
+
console.log(data.selectedItem);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{},
|
|
148
|
+
{
|
|
149
|
+
smallView: 'timeGridWeek',
|
|
150
|
+
largeView: 'timeGridWeek',
|
|
151
|
+
headerToolbar: {
|
|
152
|
+
start: '',
|
|
153
|
+
center: 'title',
|
|
154
|
+
end: 'prev,next'
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
</script>">
|
|
158
|
+
</iframe>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</body>
|
|
162
|
+
|
|
163
|
+
</html>
|