@konnectio/core 4.0.56-rc4 → 4.0.56-rc6

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 (115) hide show
  1. package/dist/{ActionField-UFZMmHDy.js → ActionField-YyW_C34E.js} +27 -28
  2. package/dist/ActionField-YyW_C34E.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-lYcDX41T.js +239 -0
  4. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  5. package/dist/{CheckoutWindow-2RMgPiGi.js → CheckoutWindow-T7-vrZyG.js} +46 -47
  6. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  7. package/dist/{Container-XBRB0sOV.js → Container-w7O0He-s.js} +6 -7
  8. package/dist/Container-w7O0He-s.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js → DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js} +5 -6
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  11. package/dist/{Field-uK3Wuuv6.js → Field-fWwF40rD.js} +12 -13
  12. package/dist/Field-fWwF40rD.js.br +0 -0
  13. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +30461 -0
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  15. package/dist/{ThankYou-nz4vPX4O.js → ThankYou-pUA2X7-4.js} +569 -569
  16. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  17. package/dist/_-TlutFgf7.js +19 -0
  18. package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
  19. package/dist/availability.js +96 -98
  20. package/dist/availability.js.br +0 -0
  21. package/dist/components/Alert.vue.d.ts +4 -4
  22. package/dist/components/Clickable.vue.d.ts +5 -5
  23. package/dist/components/Container.vue.d.ts +4 -4
  24. package/dist/components/ErrorMessage.vue.d.ts +3 -3
  25. package/dist/components/Gallery.vue.d.ts +4 -4
  26. package/dist/components/GoogleNotice.vue.d.ts +1 -1
  27. package/dist/components/Icon.vue.d.ts +4 -4
  28. package/dist/components/Loading.vue.d.ts +4 -4
  29. package/dist/components/Spinner.vue.d.ts +1 -1
  30. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +4 -4
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +4 -4
  32. package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -4
  33. package/dist/components/forms/MultiStepForm.vue.d.ts +5 -5
  34. package/dist/components/forms/ReservationForm.vue.d.ts +4 -4
  35. package/dist/components/forms/_.vue.d.ts +5 -5
  36. package/dist/components/inputs/Checkbox.vue.d.ts +6 -6
  37. package/dist/components/inputs/CheckboxField.vue.d.ts +5 -5
  38. package/dist/components/inputs/DateField.vue.d.ts +5 -5
  39. package/dist/components/inputs/InputField.vue.d.ts +4 -4
  40. package/dist/components/inputs/MediaSelector.vue.d.ts +5 -5
  41. package/dist/components/inputs/NumberField.vue.d.ts +5 -5
  42. package/dist/components/inputs/SelectField.vue.d.ts +5 -5
  43. package/dist/components/inputs/TextField.vue.d.ts +6 -6
  44. package/dist/components/inputs/TimeField.vue.d.ts +4 -4
  45. package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -5
  46. package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -5
  47. package/dist/components/inputs/grouped/NameField.vue.d.ts +6 -6
  48. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +6 -6
  49. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +5 -5
  50. package/dist/components/listings/Base.vue.d.ts +4 -4
  51. package/dist/components/listings/Event.vue.d.ts +4 -4
  52. package/dist/components/listings/Hotel.vue.d.ts +3 -3
  53. package/dist/components/listings/Template.vue.d.ts +3 -3
  54. package/dist/components/side-panels/Base.vue.d.ts +5 -5
  55. package/dist/components/side-panels/ListingInfo.vue.d.ts +3 -3
  56. package/dist/components/side-panels/Template.vue.d.ts +3 -3
  57. package/dist/components/side-panels/TermsOfService.vue.d.ts +3 -3
  58. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +4 -4
  59. package/dist/components/skeletons/Field.vue.d.ts +4 -4
  60. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -1
  61. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  62. package/dist/components/skeletons/Listing.vue.d.ts +1 -1
  63. package/dist/components/skeletons/Sidebar.vue.d.ts +1 -1
  64. package/dist/components/skeletons/_.vue.d.ts +4 -4
  65. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
  66. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  67. package/dist/components/views/ThankYou.vue.d.ts +4 -4
  68. package/dist/entries/availability.d.ts +5 -5
  69. package/dist/entries/event.d.ts +1 -1
  70. package/dist/entries/gift-card-validation.d.ts +5 -5
  71. package/dist/entries/gift-card.d.ts +5 -5
  72. package/dist/entries/hotel.d.ts +5 -5
  73. package/dist/{event--wgsUkQp.js → event-mDcuoL9g.js} +53 -54
  74. package/dist/event-mDcuoL9g.js.br +0 -0
  75. package/dist/event.js +212 -213
  76. package/dist/event.js.br +0 -0
  77. package/dist/gift-card-validation.js +65 -54
  78. package/dist/gift-card-validation.js.br +0 -0
  79. package/dist/gift-card.js +286 -276
  80. package/dist/gift-card.js.br +0 -0
  81. package/dist/hotel.js +1332 -1314
  82. package/dist/hotel.js.br +0 -0
  83. package/dist/layouts/Availability.vue.d.ts +4 -4
  84. package/dist/layouts/Event.vue.d.ts +4 -4
  85. package/dist/layouts/GiftCard.vue.d.ts +4 -4
  86. package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
  87. package/dist/layouts/Hotel.vue.d.ts +4 -4
  88. package/dist/layouts/_.vue.d.ts +4 -4
  89. package/dist/polyfill.js +2 -2
  90. package/dist/polyfill.js.br +0 -0
  91. package/dist/store/alert.d.ts +15 -15
  92. package/dist/store/applyGiftCard.d.ts +18 -18
  93. package/dist/store/availability.d.ts +12 -12
  94. package/dist/store/event.d.ts +141 -141
  95. package/dist/store/giftCard.d.ts +51 -51
  96. package/dist/store/payment.d.ts +39 -39
  97. package/dist/store/recaptcha.d.ts +3 -3
  98. package/dist/store/tracking.d.ts +6 -6
  99. package/dist/store/utilities.d.ts +129 -129
  100. package/dist/style.css +1 -1
  101. package/dist/style.css.br +0 -0
  102. package/package.json +4 -3
  103. package/dist/ActionField-UFZMmHDy.js.br +0 -0
  104. package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
  105. package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
  106. package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
  107. package/dist/Container-XBRB0sOV.js.br +0 -0
  108. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
  109. package/dist/Field-uK3Wuuv6.js.br +0 -0
  110. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js +0 -21472
  111. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
  112. package/dist/ThankYou-nz4vPX4O.js.br +0 -0
  113. package/dist/_-oPH7HiaC.js +0 -20
  114. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  115. package/dist/event--wgsUkQp.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-rc4",
3
+ "version": "4.0.56-rc6",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -53,7 +53,7 @@
53
53
  "recaptcha-v3": "1.10.0",
54
54
  "regenerator-runtime": "0.14.1",
55
55
  "text-clipper": "2.2.0",
56
- "vue": "3.3.10",
56
+ "vue": "^3.3.10",
57
57
  "vue-gtag": "2.0.1",
58
58
  "vue-i18n": "9.9.0",
59
59
  "vue-inner-image-zoom": "2.0.0",
@@ -62,7 +62,8 @@
62
62
  "vue-select": "4.0.0-beta.6",
63
63
  "vue3-side-panel": "1.3.0",
64
64
  "vue3-sticky-sidebar": "2.0.0",
65
- "vue3-text-clamp": "0.1.2"
65
+ "vue3-text-clamp": "0.1.2",
66
+ "vue3-webcomponent-wrapper": "^0.2.0"
66
67
  },
67
68
  "devDependencies": {
68
69
  "@babel/eslint-parser": "7.23.3",
Binary file
@@ -1,242 +0,0 @@
1
- import { defineComponent as $, ref as j, openBlock as t, createElementBlock as u, withModifiers as Y, renderSlot as Z, computed as v, watch as E, onMounted as ee, createBlock as k, normalizeClass as L, withCtx as ae, createElementVNode as S, unref as e, createVNode as n, isRef as h, createCommentVNode as y, Fragment as H } from "vue";
2
- import { c as q, l as le, s as x, F as I, G as N, j as te, T as O, k as T, C as z, f as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js";
3
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js";
4
- import { E as M } from "./_-oPH7HiaC.js";
5
- import { F as f } from "./Field-uK3Wuuv6.js";
6
- const oe = /* @__PURE__ */ $({
7
- __name: "_",
8
- props: {
9
- type: { default: "submit" }
10
- },
11
- emits: ["submit"],
12
- setup(w, { emit: a }) {
13
- const i = j(!1), c = a, d = w, { verifyRecaptcha: r } = q();
14
- function b() {
15
- i.value = !0, r({
16
- callback: g,
17
- type: d.type
18
- }).then(() => i.value = !1);
19
- }
20
- function g() {
21
- c("submit");
22
- }
23
- return (V, C) => (t(), u("form", {
24
- onSubmit: Y(b, ["prevent"])
25
- }, [
26
- Z(V.$slots, "default", { isLoading: i.value })
27
- ], 32));
28
- }
29
- }), se = {
30
- key: 0,
31
- class: "konnectio-availability-location"
32
- }, ce = { id: "fresh-booking-availability-date-selection" }, ue = {
33
- key: 1,
34
- id: "fresh-booking-availability-guest-selection"
35
- }, de = { id: "fresh-booking-availability-confirmation" }, re = /* @__PURE__ */ $({
36
- __name: "HotelAvailabilityForm",
37
- props: {
38
- booking: { type: Boolean, default: !1 },
39
- link: {}
40
- },
41
- setup(w) {
42
- const { t: a } = le(), i = w, {
43
- adults: c,
44
- children: d,
45
- arrivalDate: r,
46
- departureDate: b,
47
- location: g,
48
- isExpired: V
49
- } = x(I()), { reset: C } = I(), { fetchAvailabilityData: J } = N(), { areListingsLoading: R, hotelList: K, hasHotelList: D } = x(N()), {
50
- firstSelectableDateOffset: U,
51
- lastSelectableDateOffset: F,
52
- disableChildSelection: p,
53
- disableAdultSelection: m
54
- } = x(q()), _ = j([]), P = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
55
- v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + F.value))), v(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + U.value)));
56
- const Q = v(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (F.value + 1)))), A = v(() => !(!m && c.value === 0)), W = v(() => typeof i.link != "string");
57
- function X() {
58
- if (i.booking === !1)
59
- if (W.value) {
60
- const o = ie();
61
- i.link[o] ? window.location.replace(i.link[o]) : i.link.en ? window.location.replace(i.link.en) : console.log("Sprog understøttes ikke");
62
- } else
63
- window.location.replace(i.link);
64
- else
65
- A.value && J();
66
- }
67
- return E(r, (o) => {
68
- const l = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
69
- new Date(b.value) < l && (b.value = l);
70
- }), E(_, (o) => {
71
- r.value = o[0], b.value = o[1];
72
- }), ee(() => {
73
- V.value && C(), _.value = [r.value, b.value];
74
- }), (o, l) => (t(), k(oe, {
75
- id: "konnectio-availability-form",
76
- class: L({ reservation: o.booking }),
77
- type: "availability",
78
- onSubmit: X
79
- }, {
80
- default: ae(({ isLoading: B }) => [
81
- S("ul", {
82
- id: "konnectio-availability-form-content",
83
- class: L([
84
- { "is-booking-page": o.booking },
85
- { "only-adult-guests": !e(m) && e(p) },
86
- { "only-child-guests": !e(p) && e(m) },
87
- { "no-guests": e(m) && e(p) },
88
- { "all-guests": !e(m) && !e(p) },
89
- { "has-location": e(D) }
90
- ])
91
- }, [
92
- e(D) ? (t(), u("li", se, [
93
- n(te, {
94
- modelValue: e(g),
95
- "onUpdate:modelValue": l[0] || (l[0] = (s) => h(g) ? g.value = s : null),
96
- label: e(a)("general.location"),
97
- icon: "location-dot",
98
- "icon-type": "fas",
99
- "icon-placement": "label",
100
- options: e(K),
101
- searchable: !1
102
- }, null, 8, ["modelValue", "label", "options"])
103
- ])) : y("", !0),
104
- S("li", ce, [
105
- n(ne, {
106
- modelValue: _.value,
107
- "onUpdate:modelValue": l[1] || (l[1] = (s) => _.value = s),
108
- label: e(a)("availability.checkInOut"),
109
- "icon-type": "fas",
110
- "icon-placement": "label",
111
- "min-range": 1,
112
- "min-date": P.value,
113
- "max-date": Q.value,
114
- range: ""
115
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
116
- y("", !0)
117
- ]),
118
- !e(m) || !e(p) ? (t(), u("li", ue, [
119
- e(m) ? y("", !0) : (t(), u(H, { key: 0 }, [
120
- e(D) ? (t(), k(O, {
121
- key: 0,
122
- modelValue: e(c),
123
- "onUpdate:modelValue": l[4] || (l[4] = (s) => h(c) ? c.value = s : null),
124
- label: e(a)("availability.adults"),
125
- description: e(a)("general.adultAgeRange"),
126
- "icon-type": "fas",
127
- "icon-placement": "label",
128
- name: "adults",
129
- icon: "male"
130
- }, null, 8, ["modelValue", "label", "description"])) : (t(), k(T, {
131
- key: 1,
132
- modelValue: e(c),
133
- "onUpdate:modelValue": l[5] || (l[5] = (s) => h(c) ? c.value = s : null),
134
- label: e(a)("availability.adults"),
135
- description: e(a)("general.adultAgeRange"),
136
- "icon-type": "fas",
137
- "icon-placement": "label",
138
- name: "adults",
139
- icon: "male"
140
- }, null, 8, ["modelValue", "label", "description"]))
141
- ], 64)),
142
- e(p) ? y("", !0) : (t(), u(H, { key: 1 }, [
143
- e(D) ? (t(), k(O, {
144
- key: 0,
145
- modelValue: e(d),
146
- "onUpdate:modelValue": l[6] || (l[6] = (s) => h(d) ? d.value = s : null),
147
- label: e(a)("availability.children"),
148
- description: e(a)("general.childAgeRange"),
149
- "icon-type": "fas",
150
- "icon-placement": "label",
151
- name: "children",
152
- icon: "child"
153
- }, null, 8, ["modelValue", "label", "description"])) : (t(), k(T, {
154
- key: 1,
155
- modelValue: e(d),
156
- "onUpdate:modelValue": l[7] || (l[7] = (s) => h(d) ? d.value = s : null),
157
- label: e(a)("availability.children"),
158
- description: e(a)("general.childAgeRange"),
159
- "icon-type": "fas",
160
- "icon-placement": "label",
161
- name: "children",
162
- icon: "child"
163
- }, null, 8, ["modelValue", "label", "description"]))
164
- ], 64))
165
- ])) : y("", !0),
166
- S("li", de, [
167
- n(z, {
168
- class: "konnectio-availability-submit-small",
169
- type: "submit",
170
- icon: "search",
171
- "icon-type": "fas",
172
- disabled: !A.value,
173
- "is-loading": e(R) || B
174
- }, null, 8, ["disabled", "is-loading"]),
175
- n(z, {
176
- class: "konnectio-availability-submit-large",
177
- type: "submit",
178
- label: e(a)("availability.buttonLabel"),
179
- disabled: !A.value,
180
- "is-loading": e(R) || B
181
- }, null, 8, ["label", "disabled", "is-loading"])
182
- ])
183
- ], 2)
184
- ]),
185
- _: 1
186
- }, 8, ["class"]));
187
- }
188
- }), we = /* @__PURE__ */ G(re, [["__scopeId", "data-v-9ec1beba"]]), me = { class: "availability-skeleton" }, be = {
189
- key: 0,
190
- class: "availability-skeleton-navigation"
191
- }, pe = {
192
- key: 2,
193
- class: "availability-skeleton-event"
194
- }, ve = /* @__PURE__ */ $({
195
- __name: "AvailabilitySkeleton",
196
- props: {
197
- view: { default: "hotel" },
198
- hotel: { type: Boolean, default: !1 }
199
- },
200
- setup(w) {
201
- return (a, i) => (t(), u("div", me, [
202
- a.view === "both" ? (t(), u("div", be, [
203
- n(M, {
204
- height: "28px",
205
- width: "60px",
206
- "border-radius": "20px"
207
- }),
208
- n(M, {
209
- height: "28px",
210
- width: "60px",
211
- "border-radius": "20px"
212
- })
213
- ])) : y("", !0),
214
- a.view !== "event" ? (t(), u("div", {
215
- key: 1,
216
- class: L([
217
- "availability-skeleton-hotel",
218
- { "within-hotel": a.hotel }
219
- ])
220
- }, [
221
- n(f, { "with-icon": "" }),
222
- n(f, { "with-icon": "" }),
223
- n(f, { "with-icon": "" }),
224
- n(f, {
225
- "with-icon": "",
226
- "no-label": ""
227
- })
228
- ], 2)) : (t(), u("div", pe, [
229
- n(f, { "with-icon": "" }),
230
- n(f, {
231
- "with-icon": "",
232
- "no-label": ""
233
- })
234
- ]))
235
- ]));
236
- }
237
- }), De = /* @__PURE__ */ G(ve, [["__scopeId", "data-v-be195a3f"]]);
238
- export {
239
- De as A,
240
- we as H,
241
- oe as _
242
- };
Binary file
Binary file
Binary file