@konnectio/core 4.0.56-rc20 → 4.0.56-rc22

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 (44) hide show
  1. package/dist/{ActionField-8hkjdoF_.js → ActionField-ZJdtBRXa.js} +7 -7
  2. package/dist/ActionField-ZJdtBRXa.js.br +4 -0
  3. package/dist/AvailabilitySkeleton-tfEBupNq.js +234 -0
  4. package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
  5. package/dist/{CheckoutWindow-bgpWiBAd.js → CheckoutWindow-orJD6dJy.js} +28 -28
  6. package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js +7607 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
  9. package/dist/ErrorMessage-mUpn7ZBU.js +36 -0
  10. package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
  11. package/dist/EventAvailabilityForm-cAOEZVnn.js +366 -0
  12. package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
  13. package/dist/{Field-FbUrCgmJ.js → Field-Kwm-GcDa.js} +7 -7
  14. package/dist/Field-Kwm-GcDa.js.br +0 -0
  15. package/dist/{ThankYou-tb7LP48E.js → ThankYou-EiAxaHd8.js} +2712 -2758
  16. package/dist/ThankYou-EiAxaHd8.js.br +0 -0
  17. package/dist/{_-5tXWGiwV.js → _-KavQ60qi.js} +5332 -5360
  18. package/dist/_-KavQ60qi.js.br +0 -0
  19. package/dist/availability.js +69 -157
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +323 -534
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +28 -29
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +203 -199
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +1328 -1248
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +1 -1
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +7 -6
  34. package/dist/ActionField-8hkjdoF_.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-K35mnVjA.js +0 -215
  36. package/dist/AvailabilitySkeleton-K35mnVjA.js.br +0 -0
  37. package/dist/CheckoutWindow-bgpWiBAd.js.br +0 -0
  38. package/dist/DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js +0 -8026
  39. package/dist/DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js.br +0 -0
  40. package/dist/Field-FbUrCgmJ.js.br +0 -0
  41. package/dist/ThankYou-tb7LP48E.js.br +0 -0
  42. package/dist/_-5tXWGiwV.js.br +0 -0
  43. package/dist/event-36Kem6rb.js +0 -328
  44. package/dist/event-36Kem6rb.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.56-rc20",
3
+ "version": "4.0.56-rc22",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -46,7 +46,7 @@
46
46
  "@fortawesome/vue-fontawesome": "3.0.6",
47
47
  "@intlify/unplugin-vue-i18n": "2.0.0",
48
48
  "@unhead/vue": "1.8.10",
49
- "@vuepic/vue-datepicker": "8.0.0",
49
+ "@vuepic/vue-datepicker": "8.1.0",
50
50
  "@vueup/vue-quill": "1.2.0",
51
51
  "@vueuse/core": "10.7.2",
52
52
  "axios": "1.6.7",
@@ -55,8 +55,9 @@
55
55
  "floating-vue": "5.2.2",
56
56
  "linkify-html": "4.1.3",
57
57
  "linkifyjs": "4.1.3",
58
+ "mitt": "3.0.1",
58
59
  "pinia": "2.1.7",
59
- "postcss": "8.4.33",
60
+ "postcss": "8.4.35",
60
61
  "recaptcha-v3": "1.10.0",
61
62
  "regenerator-runtime": "0.14.1",
62
63
  "text-clipper": "2.2.0",
@@ -74,10 +75,10 @@
74
75
  "devDependencies": {
75
76
  "@babel/eslint-parser": "7.23.10",
76
77
  "@originjs/vite-plugin-commonjs": "1.0.3",
77
- "@types/node": "20.11.16",
78
+ "@types/node": "20.11.17",
78
79
  "@typescript-eslint/eslint-plugin": "6.21.0",
79
80
  "@typescript-eslint/parser": "6.21.0",
80
- "@vitejs/plugin-vue": "5.0.3",
81
+ "@vitejs/plugin-vue": "5.0.4",
81
82
  "@vue/eslint-config-typescript": "12.0.0",
82
83
  "@vue/test-utils": "2.4.4",
83
84
  "cross-env": "7.0.3",
@@ -89,7 +90,7 @@
89
90
  "ts-node": "10.9.2",
90
91
  "tslib": "2.6.2",
91
92
  "typescript": "5.3.3",
92
- "vite": "5.0.12",
93
+ "vite": "5.1.1",
93
94
  "vite-plugin-compression": "0.5.1",
94
95
  "vue-tsc": "1.8.27"
95
96
  },
Binary file
@@ -1,215 +0,0 @@
1
- import { k as N, B as Q, s as A, D as B, F, c as W, r as X, f as m, G as R, H as Y, o as t, x as s, n as D, p as e, t as i, J as y, _ as Z, y as v, K as C, m as w, T as H, q as I, C as z, A as x, L as ee, h as ae, v as O, z as E } from "./_-5tXWGiwV.js";
2
- import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js";
3
- import { F as p } from "./Field-FbUrCgmJ.js";
4
- const te = {
5
- key: 0,
6
- class: "konnectio-availability-location"
7
- }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
8
- key: 1,
9
- id: "fresh-booking-availability-guest-selection"
10
- }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ N({
11
- __name: "HotelAvailabilityForm",
12
- props: {
13
- booking: { type: Boolean, default: !1 },
14
- link: {}
15
- },
16
- setup(S) {
17
- const { t: a } = Q(), d = S, {
18
- adults: c,
19
- children: r,
20
- arrivalDate: f,
21
- departureDate: g,
22
- location: _,
23
- isExpired: T
24
- } = A(B()), { reset: q } = B(), { fetchAvailabilityData: M } = F(), { areListingsLoading: L, hotelList: G, hasHotelList: k } = A(F()), {
25
- firstSelectableDateOffset: U,
26
- lastSelectableDateOffset: $,
27
- disableChildSelection: b,
28
- disableAdultSelection: u
29
- } = A(W()), h = X([]), J = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
30
- m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
31
- const K = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), V = m(() => !(!u && c.value === 0)), j = m(() => typeof d.link != "string");
32
- function P() {
33
- if (d.booking === !1)
34
- if (j.value) {
35
- const n = ae();
36
- d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
37
- } else
38
- window.location.replace(d.link);
39
- else
40
- V.value && M();
41
- }
42
- return R(f, (n) => {
43
- const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
44
- new Date(g.value) < l && (g.value = l);
45
- }), R(h, (n) => {
46
- f.value = n[0], g.value = n[1];
47
- }), Y(() => {
48
- T.value && q(), h.value = [f.value, g.value];
49
- }), (n, l) => (t(), s("form", {
50
- id: "konnectio-availability-form",
51
- class: x({ reservation: n.booking }),
52
- type: "availability",
53
- onSubmit: ee(P, ["prevent"])
54
- }, [
55
- D("ul", {
56
- id: "konnectio-availability-form-content",
57
- class: x([
58
- { "is-booking-page": n.booking },
59
- { "only-adult-guests": !e(u) && e(b) },
60
- { "only-child-guests": !e(b) && e(u) },
61
- { "no-guests": e(u) && e(b) },
62
- { "all-guests": !e(u) && !e(b) },
63
- { "has-location": e(k) }
64
- ])
65
- }, [
66
- e(k) ? (t(), s("li", te, [
67
- i(Z, {
68
- modelValue: e(_),
69
- "onUpdate:modelValue": l[0] || (l[0] = (o) => y(_) ? _.value = o : null),
70
- label: e(a)("general.location"),
71
- icon: "location-dot",
72
- "icon-type": "fas",
73
- "icon-placement": "label",
74
- options: e(G),
75
- searchable: !1
76
- }, null, 8, ["modelValue", "label", "options"])
77
- ])) : v("", !0),
78
- D("li", ie, [
79
- i(le, {
80
- modelValue: h.value,
81
- "onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
82
- label: e(a)("availability.checkInOut"),
83
- "icon-type": "fas",
84
- "icon-placement": "label",
85
- "min-range": 1,
86
- "min-date": J.value,
87
- "max-date": K.value,
88
- range: ""
89
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
90
- v("", !0)
91
- ]),
92
- !e(u) || !e(b) ? (t(), s("li", ne, [
93
- e(u) ? v("", !0) : (t(), s(C, { key: 0 }, [
94
- e(k) ? (t(), w(H, {
95
- key: 0,
96
- modelValue: e(c),
97
- "onUpdate:modelValue": l[4] || (l[4] = (o) => y(c) ? c.value = o : null),
98
- label: e(a)("availability.adults"),
99
- description: e(a)("general.adultAgeRange"),
100
- "icon-type": "fas",
101
- "icon-placement": "label",
102
- name: "adults",
103
- icon: "male"
104
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(I, {
105
- key: 1,
106
- modelValue: e(c),
107
- "onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
108
- label: e(a)("availability.adults"),
109
- description: e(a)("general.adultAgeRange"),
110
- "icon-type": "fas",
111
- "icon-placement": "label",
112
- name: "adults",
113
- icon: "male"
114
- }, null, 8, ["modelValue", "label", "description"]))
115
- ], 64)),
116
- e(b) ? v("", !0) : (t(), s(C, { key: 1 }, [
117
- e(k) ? (t(), w(H, {
118
- key: 0,
119
- modelValue: e(r),
120
- "onUpdate:modelValue": l[6] || (l[6] = (o) => y(r) ? r.value = o : null),
121
- label: e(a)("availability.children"),
122
- description: e(a)("general.childAgeRange"),
123
- "icon-type": "fas",
124
- "icon-placement": "label",
125
- name: "children",
126
- icon: "child"
127
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(I, {
128
- key: 1,
129
- modelValue: e(r),
130
- "onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
131
- label: e(a)("availability.children"),
132
- description: e(a)("general.childAgeRange"),
133
- "icon-type": "fas",
134
- "icon-placement": "label",
135
- name: "children",
136
- icon: "child"
137
- }, null, 8, ["modelValue", "label", "description"]))
138
- ], 64))
139
- ])) : v("", !0),
140
- D("li", oe, [
141
- i(z, {
142
- class: "konnectio-availability-submit-small",
143
- type: "submit",
144
- icon: "search",
145
- "icon-type": "fas",
146
- disabled: !V.value,
147
- "is-loading": e(L)
148
- }, null, 8, ["disabled", "is-loading"]),
149
- i(z, {
150
- class: "konnectio-availability-submit-large",
151
- type: "submit",
152
- label: e(a)("availability.buttonLabel"),
153
- disabled: !V.value,
154
- "is-loading": e(L)
155
- }, null, 8, ["label", "disabled", "is-loading"])
156
- ])
157
- ], 2)
158
- ], 34));
159
- }
160
- }), fe = /* @__PURE__ */ O(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
161
- key: 0,
162
- class: "availability-skeleton-navigation"
163
- }, ue = { class: "availability-skeleton-content" }, re = {
164
- key: 1,
165
- class: "availability-skeleton-event"
166
- }, be = /* @__PURE__ */ N({
167
- __name: "AvailabilitySkeleton",
168
- props: {
169
- view: { default: "hotel" },
170
- hotel: { type: Boolean, default: !1 }
171
- },
172
- setup(S) {
173
- return (a, d) => (t(), s("div", de, [
174
- a.view === "both" ? (t(), s("div", ce, [
175
- i(E, {
176
- height: "28px",
177
- width: "60px",
178
- "border-radius": "20px"
179
- }),
180
- i(E, {
181
- height: "28px",
182
- width: "60px",
183
- "border-radius": "20px"
184
- })
185
- ])) : v("", !0),
186
- D("div", ue, [
187
- a.view !== "event" ? (t(), s("div", {
188
- key: 0,
189
- class: x([
190
- "availability-skeleton-hotel",
191
- { "within-hotel": a.hotel }
192
- ])
193
- }, [
194
- i(p, { "with-icon": "" }),
195
- i(p, { "with-icon": "" }),
196
- i(p, { "with-icon": "" }),
197
- i(p, {
198
- "with-icon": "",
199
- "no-label": ""
200
- })
201
- ], 2)) : (t(), s("div", re, [
202
- i(p, { "with-icon": "" }),
203
- i(p, {
204
- "with-icon": "",
205
- "no-label": ""
206
- })
207
- ]))
208
- ])
209
- ]));
210
- }
211
- }), ye = /* @__PURE__ */ O(be, [["__scopeId", "data-v-ad344f0b"]]);
212
- export {
213
- ye as A,
214
- fe as H
215
- };
Binary file