@konnectio/core 4.0.93 → 4.0.94

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.
Files changed (53) hide show
  1. package/dist/{ActionField-C7lWLc8e.js → ActionField-pZOFNMkw.js} +2 -2
  2. package/dist/ActionField-pZOFNMkw.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-DJyT38F9.js +319 -0
  4. package/dist/AvailabilitySkeleton-DJyT38F9.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DZXYQAtV.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CuRWF7vG.js} +253 -245
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CuRWF7vG.js.br +0 -0
  7. package/dist/{CheckoutWindow-CGSJxkWB.js → CheckoutWindow-5ngdoK38.js} +2 -2
  8. package/dist/CheckoutWindow-5ngdoK38.js.br +0 -0
  9. package/dist/{ErrorMessage-HrnuoiPk.js → ErrorMessage-BVaWW4Hz.js} +2 -2
  10. package/dist/ErrorMessage-BVaWW4Hz.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CoCMi3LO.js → EventAvailabilityForm-Du4kySZ-.js} +3 -3
  12. package/dist/EventAvailabilityForm-Du4kySZ-.js.br +0 -0
  13. package/dist/{Field-EJv450KD.js → Field-MzDRmdmU.js} +3 -3
  14. package/dist/Field-MzDRmdmU.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7rweWQ6.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CH1o9S9a.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-D08m3ZbO.js → SelectField.vue_vue_type_style_index_0_lang-BeprYLM8.js} +301 -302
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-BeprYLM8.js.br +0 -0
  18. package/dist/{TermsOfService-C3ep4du7.js → TermsOfService-9iLxpj-0.js} +3 -3
  19. package/dist/_-DXSHtzqt.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CKnvU28k.js → _.vue_vue_type_style_index_0_lang-mNFTf-c3.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +7 -7
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-CpohNznT.js → giftCard-CmhfXMZj.js} +2 -2
  32. package/dist/giftCard-CmhfXMZj.js.br +0 -0
  33. package/dist/hotel.js +7 -7
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DbzRiqiK.js → masonry.plugin-Bz6kKi0V.js} +6 -6
  36. package/dist/masonry.plugin-Bz6kKi0V.js.br +0 -0
  37. package/dist/polyfill.js +1 -1
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +8 -8
  42. package/dist/ActionField-C7lWLc8e.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-dwmEvgDZ.js +0 -321
  44. package/dist/AvailabilitySkeleton-dwmEvgDZ.js.br +0 -0
  45. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DZXYQAtV.js.br +0 -0
  46. package/dist/CheckoutWindow-CGSJxkWB.js.br +0 -0
  47. package/dist/ErrorMessage-HrnuoiPk.js.br +0 -0
  48. package/dist/EventAvailabilityForm-CoCMi3LO.js.br +0 -0
  49. package/dist/Field-EJv450KD.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-D08m3ZbO.js.br +0 -0
  51. package/dist/_-kDfMKlCV.js +0 -5
  52. package/dist/giftCard-CpohNznT.js.br +0 -0
  53. package/dist/masonry.plugin-DbzRiqiK.js.br +0 -0
package/dist/style.css.br CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.93",
3
+ "version": "4.0.94",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -44,7 +44,7 @@
44
44
  "@fortawesome/pro-light-svg-icons": "6.6.0",
45
45
  "@fortawesome/pro-solid-svg-icons": "6.6.0",
46
46
  "@fortawesome/vue-fontawesome": "3.0.8",
47
- "@intlify/unplugin-vue-i18n": "4.0.0",
47
+ "@intlify/unplugin-vue-i18n": "5.2.0",
48
48
  "@unhead/vue": "1.11.7",
49
49
  "@vuepic/vue-datepicker": "9.0.3",
50
50
  "@vueup/vue-quill": "1.2.0",
@@ -77,21 +77,21 @@
77
77
  "devDependencies": {
78
78
  "@babel/eslint-parser": "7.25.7",
79
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
80
- "@types/node": "22.7.4",
81
- "@typescript-eslint/eslint-plugin": "8.8.0",
82
- "@typescript-eslint/parser": "8.8.0",
80
+ "@types/node": "22.7.5",
81
+ "@typescript-eslint/eslint-plugin": "8.8.1",
82
+ "@typescript-eslint/parser": "8.8.1",
83
83
  "@vitejs/plugin-vue": "5.1.4",
84
- "@vue/eslint-config-typescript": "13.0.0",
84
+ "@vue/eslint-config-typescript": "14.0.0",
85
85
  "@vue/test-utils": "2.4.6",
86
86
  "cross-env": "7.0.3",
87
87
  "cypress": "13.15.0",
88
- "eslint": "8.57.0",
88
+ "eslint": "9.12.0",
89
89
  "eslint-plugin-vue": "9.28.0",
90
90
  "rollup-plugin-typescript2": "0.36.0",
91
91
  "sass": "1.79.4",
92
92
  "ts-node": "10.9.2",
93
93
  "tslib": "2.7.0",
94
- "typescript": "5.6.2",
94
+ "typescript": "5.6.3",
95
95
  "vite": "5.4.8",
96
96
  "vite-plugin-compression": "0.5.1",
97
97
  "vue-tsc": "2.1.6"
Binary file
@@ -1,321 +0,0 @@
1
- import { d as le, u as ke, s as x, r as b, c as s, C as Q, o as he, a as r, g as m, f as n, w as we, i as a, b as w, j as S, e as V, n as C, D as Ve, h as _e, O as Ae } from "./mitt-BGszhQ2P.js";
2
- import { u as W, b as X, a as Le, g as Z, T as xe, c as Ne, f as ee, d as ae, q as Se, _ as oe } from "./SelectField.vue_vue_type_style_index_0_lang-D08m3ZbO.js";
3
- import { _ as N } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DZXYQAtV.js";
4
- import { E as te } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7rweWQ6.js";
5
- import { F as g } from "./Field-EJv450KD.js";
6
- const Ce = {
7
- class: "konnectio-availability-location",
8
- key: "location"
9
- }, Ue = {
10
- id: "konnectio-availability-date-selection",
11
- key: "multiDate"
12
- }, $e = {
13
- key: 0,
14
- class: "konnectio-availability-date-selection-multi"
15
- }, Be = {
16
- class: "konnectio-availability-guest-selection",
17
- key: "guests"
18
- }, He = {
19
- id: "konnectio-availability-confirmation",
20
- key: "confirm"
21
- }, Re = /* @__PURE__ */ le({
22
- __name: "HotelAvailabilityForm",
23
- props: {
24
- booking: { type: Boolean, default: !1 },
25
- link: {},
26
- selectedLocation: { default: NaN },
27
- disableDefaultLocation: { type: Boolean, default: !1 }
28
- },
29
- setup(U) {
30
- const { t: i } = ke(), $ = Ae("emitter"), l = U, B = W(), {
31
- adults: ie,
32
- children: ne,
33
- arrivalDate: H,
34
- departureDate: R,
35
- location: F,
36
- hasHotelLocations: _,
37
- hotelLocations: I,
38
- controlLocation: se
39
- } = x(W()), { fetchAvailabilityData: ue } = X(), { areListingsLoading: O } = x(X()), { display: y } = Le(), {
40
- firstSelectableDateOffset: T,
41
- lastSelectableDateOffset: M,
42
- disableAdultSelection: D,
43
- defaultAdultAmount: re,
44
- defaultChildAmount: ce,
45
- maxAdultAmount: de,
46
- maxChildAmount: ve,
47
- splitBookingCalendar: me
48
- } = x(Z()), { hasChildSelection: k } = Z(), be = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), ge = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), pe = () => l.disableDefaultLocation ? void 0 : se.value, j = b(re.value), E = b(ce.value), P = b(be()), q = b(ge()), z = b(pe()), p = s({
49
- get: () => l.booking ? B.adults : j.value,
50
- set: (e) => {
51
- l.booking ? ie.value = Number(e) : j.value = Number(e);
52
- }
53
- }), h = s({
54
- get: () => l.booking ? B.children : E.value,
55
- set: (e) => {
56
- l.booking ? ne.value = Number(e) : E.value = Number(e);
57
- }
58
- }), u = s({
59
- get: () => l.booking ? H.value : P.value,
60
- set: (e) => {
61
- l.booking ? H.value = e : P.value = e;
62
- }
63
- }), c = s({
64
- get: () => l.booking ? R.value : q.value,
65
- set: (e) => {
66
- l.booking ? R.value = e : q.value = e;
67
- }
68
- }), d = s({
69
- get: () => isNaN(l.selectedLocation) ? l.booking ? F.value : z.value : l.selectedLocation,
70
- set: (e) => {
71
- l.booking ? F.value = e : z.value = e;
72
- }
73
- }), G = s(() => {
74
- const e = I.value.find(({ id: t }) => t === l.selectedLocation);
75
- return e ? e.name : "";
76
- }), f = b([]), Y = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (T.value - 1)))), fe = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + M.value)));
77
- s(() => new Date((/* @__PURE__ */ new Date()).setDate(u.value.getDate() + T.value)));
78
- const J = s(() => new Date((/* @__PURE__ */ new Date()).setDate(u.value.getDate() + (M.value + 1)))), A = s(() => !(!D && p.value === 0)), ye = s(() => typeof l.link != "string");
79
- function K(e) {
80
- const t = e.getFullYear();
81
- let o = e.getMonth() + 1, v = e.getDate();
82
- return v < 10 && (v = "0" + v), o < 10 && (o = "0" + o), `${t}-${o}-${v}`;
83
- }
84
- function L(e) {
85
- const t = {
86
- a: p.value.toString(),
87
- c: h.value.toString(),
88
- ci: K(u.value),
89
- co: K(c.value),
90
- hid: d.value.toString()
91
- }, o = new URLSearchParams(t), v = new URL(e, window.location.origin);
92
- v.search = o.toString(), window.location.replace(v.toString());
93
- }
94
- function De() {
95
- if (isNaN(d.value) && _.value) {
96
- y({
97
- message: i("alert.error.selectHotelId"),
98
- type: "error"
99
- });
100
- return;
101
- }
102
- if (isNaN(p.value)) {
103
- y({
104
- message: i("alert.error.selectValidAdults"),
105
- type: "error"
106
- });
107
- return;
108
- }
109
- if (isNaN(h.value)) {
110
- y({
111
- message: i("alert.error.selectValidChildren"),
112
- type: "error"
113
- });
114
- return;
115
- }
116
- if (l.booking === !1)
117
- if (ye.value) {
118
- const e = Se();
119
- l.link[e] ? L(l.link[e]) : l.link.en ? L(l.link.en) : y({
120
- message: "Module misconfiguration, contact an admin",
121
- type: "error"
122
- });
123
- } else
124
- L(l.link);
125
- else A.value && ue();
126
- }
127
- return Q(u, (e) => {
128
- const t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
129
- new Date(c.value) < t && (c.value = t);
130
- }), $.on("forcedDateChange", () => {
131
- f.value = [u.value, c.value];
132
- }), Q(f, (e) => {
133
- u.value = e[0], c.value = e[1];
134
- }), he(() => {
135
- f.value = [u.value, c.value];
136
- }), (e, t) => (r(), m("form", {
137
- id: "konnectio-availability-form",
138
- class: C({ reservation: e.booking }),
139
- type: "availability",
140
- onSubmit: _e(De, ["prevent"])
141
- }, [
142
- n(Ve, {
143
- id: "konnectio-availability-form-content",
144
- tag: "ul",
145
- class: C([
146
- { "is-booking-page": e.booking },
147
- { "only-adult-guests": !a(D) && !a(k)(d.value) },
148
- { "only-child-guests": a(k)(d.value) && a(D) },
149
- { "all-guests": !a(D) && a(k)(d.value) },
150
- { "has-location": a(_) }
151
- ])
152
- }, {
153
- default: we(() => [
154
- a(_) ? (r(), m("li", Ce, [
155
- isNaN(e.selectedLocation) ? (r(), w(Ne, {
156
- key: 1,
157
- modelValue: d.value,
158
- "onUpdate:modelValue": t[1] || (t[1] = (o) => d.value = o),
159
- label: a(i)("general.location"),
160
- placeholder: a(i)("general.locationPlaceholder"),
161
- icon: "location-dot",
162
- "icon-type": "fas",
163
- "icon-placement": "label",
164
- "label-key": "name",
165
- "value-key": "id",
166
- options: a(I),
167
- searchable: !1
168
- }, null, 8, ["modelValue", "label", "placeholder", "options"])) : (r(), w(xe, {
169
- key: 0,
170
- modelValue: G.value,
171
- "onUpdate:modelValue": t[0] || (t[0] = (o) => G.value = o),
172
- label: a(i)("general.location"),
173
- icon: "location-dot",
174
- "icon-type": "fas",
175
- "icon-placement": "label",
176
- readonly: ""
177
- }, null, 8, ["modelValue", "label"]))
178
- ])) : S("", !0),
179
- V("li", Ue, [
180
- a(me) ? (r(), m("div", $e, [
181
- n(N, {
182
- modelValue: u.value,
183
- "onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o),
184
- label: a(i)("availability.arrivalDate"),
185
- name: "arrivalDate",
186
- "icon-type": "fas",
187
- "icon-placement": "label",
188
- "start-date": u.value,
189
- "min-date": Y.value,
190
- "max-date": fe.value
191
- }, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
192
- n(N, {
193
- modelValue: c.value,
194
- "onUpdate:modelValue": t[3] || (t[3] = (o) => c.value = o),
195
- label: a(i)("availability.departureDate"),
196
- name: "departureDate",
197
- "icon-type": "fas",
198
- "icon-placement": "label",
199
- "start-date": c.value,
200
- "min-date": u.value,
201
- "max-date": J.value
202
- }, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
203
- ])) : (r(), w(N, {
204
- key: 1,
205
- modelValue: f.value,
206
- "onUpdate:modelValue": t[4] || (t[4] = (o) => f.value = o),
207
- label: a(i)("availability.checkInOut"),
208
- "icon-type": "fas",
209
- "icon-placement": "label",
210
- "min-range": 1,
211
- "min-date": Y.value,
212
- "max-date": J.value,
213
- range: ""
214
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]))
215
- ]),
216
- V("li", Be, [
217
- n(ee, {
218
- modelValue: p.value,
219
- "onUpdate:modelValue": t[5] || (t[5] = (o) => p.value = o),
220
- label: a(i)("availability.adults"),
221
- description: a(i)("general.adultAgeRange"),
222
- "icon-type": "fas",
223
- "icon-placement": "label",
224
- name: "adults",
225
- icon: "male",
226
- "max-value": a(de),
227
- controls: !0
228
- }, null, 8, ["modelValue", "label", "description", "max-value"]),
229
- a(k)(d.value) ? (r(), w(ee, {
230
- key: 0,
231
- modelValue: h.value,
232
- "onUpdate:modelValue": t[6] || (t[6] = (o) => h.value = o),
233
- label: a(i)("availability.children"),
234
- description: a(i)("general.childAgeRange"),
235
- "icon-type": "fas",
236
- "icon-placement": "label",
237
- name: "children",
238
- icon: "child",
239
- "max-value": a(ve),
240
- controls: !0
241
- }, null, 8, ["modelValue", "label", "description", "max-value"])) : S("", !0)
242
- ]),
243
- V("li", He, [
244
- n(ae, {
245
- class: "konnectio-availability-submit-small",
246
- type: "submit",
247
- icon: "search",
248
- "icon-type": "fas",
249
- disabled: !A.value,
250
- "is-loading": a(O)
251
- }, null, 8, ["disabled", "is-loading"]),
252
- n(ae, {
253
- class: "konnectio-availability-submit-large",
254
- type: "submit",
255
- label: a(i)("availability.buttonLabel"),
256
- disabled: !A.value,
257
- "is-loading": a(O)
258
- }, null, 8, ["label", "disabled", "is-loading"])
259
- ])
260
- ]),
261
- _: 1
262
- }, 8, ["class"])
263
- ], 34));
264
- }
265
- }), Ge = /* @__PURE__ */ oe(Re, [["__scopeId", "data-v-eabb07a0"]]), Fe = { class: "availability-skeleton" }, Ie = {
266
- key: 0,
267
- class: "availability-skeleton-navigation"
268
- }, Oe = { class: "availability-skeleton-content" }, Te = {
269
- key: 1,
270
- class: "availability-skeleton-event"
271
- }, Me = /* @__PURE__ */ le({
272
- __name: "AvailabilitySkeleton",
273
- props: {
274
- view: { default: "hotel" },
275
- hotel: { type: Boolean, default: !1 }
276
- },
277
- setup(U) {
278
- return (i, $) => (r(), m("div", Fe, [
279
- i.view === "both" ? (r(), m("div", Ie, [
280
- n(te, {
281
- height: "28px",
282
- width: "60px",
283
- "border-radius": "20px"
284
- }),
285
- n(te, {
286
- height: "28px",
287
- width: "60px",
288
- "border-radius": "20px"
289
- })
290
- ])) : S("", !0),
291
- V("div", Oe, [
292
- i.view !== "event" ? (r(), m("div", {
293
- key: 0,
294
- class: C([
295
- "availability-skeleton-hotel",
296
- { "within-hotel": i.hotel }
297
- ])
298
- }, [
299
- n(g, { "with-icon": "" }),
300
- n(g, { "with-icon": "" }),
301
- n(g, { "with-icon": "" }),
302
- n(g, {
303
- "with-icon": "",
304
- "no-label": ""
305
- })
306
- ], 2)) : (r(), m("div", Te, [
307
- n(g, { "with-icon": "" }),
308
- n(g, {
309
- "with-icon": "",
310
- "no-label": ""
311
- })
312
- ]))
313
- ])
314
- ]));
315
- }
316
- }), Ye = /* @__PURE__ */ oe(Me, [["__scopeId", "data-v-cebeb733"]]);
317
- export {
318
- Ye as A,
319
- Ge as H
320
- };
321
- //# sourceMappingURL=AvailabilitySkeleton-dwmEvgDZ.js.map
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- import { _ as f } from "./_.vue_vue_type_style_index_0_lang-CKnvU28k.js";
2
- export {
3
- f as default
4
- };
5
- //# sourceMappingURL=_-kDfMKlCV.js.map
Binary file
Binary file