@quoreadmin/ui 1.7.15 → 1.7.17
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/dist/index.css +1 -1
- package/dist/index131.js +151 -90
- package/dist/index140.js +81 -66
- package/dist/index142.js +1 -1
- package/dist/index173.js +3 -3
- package/dist/index176.js +4 -4
- package/dist/index183.js +10 -10
- package/dist/index185.js +10 -10
- package/dist/index187.js +1190 -36
- package/dist/index189.js +36 -1190
- package/dist/{index188.js → index190.js} +17 -17
- package/dist/index191.js +28 -28
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +1 -1
- package/dist/index196.js +2 -2
- package/dist/index198.js +14 -14
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +3 -3
- package/dist/index202.js +6 -6
- package/dist/index206.js +2 -2
- package/dist/index207.js +1 -1
- package/dist/index208.js +1 -1
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +4 -4
- package/dist/index213.js +4 -4
- package/dist/index216.js +1 -1
- package/dist/index217.js +83 -156
- package/dist/index218.js +407 -20
- package/dist/index219.js +22 -20
- package/dist/index220.js +160 -21
- package/dist/index221.js +218 -189
- package/dist/index222.js +36 -69
- package/dist/index223.js +10 -88
- package/dist/index224.js +106 -386
- package/dist/index225.js +36 -32
- package/dist/index226.js +80 -40
- package/dist/index227.js +19 -126
- package/dist/index228.js +16 -34
- package/dist/index229.js +20 -80
- package/dist/index230.js +3 -3
- package/dist/index231.js +11 -11
- package/dist/index232.js +160 -19
- package/dist/index233.js +9 -9
- package/dist/index234.js +22 -22
- package/dist/index235.js +194 -156
- package/dist/index236.js +66 -224
- package/dist/index237.js +34 -37
- package/dist/index238.js +39 -9
- package/dist/index239.js +22 -3632
- package/dist/index240.js +22 -55
- package/dist/index241.js +20 -77
- package/dist/index242.js +823 -39
- package/dist/index243.js +685 -198
- package/dist/index244.js +175 -9
- package/dist/index245.js +22 -57
- package/dist/index246.js +20 -61
- package/dist/index247.js +20 -54
- package/dist/index248.js +3 -75
- package/dist/index249.js +171 -707
- package/dist/index250.js +128 -34
- package/dist/index251.js +1214 -55
- package/dist/index252.js +20 -11
- package/dist/index253.js +22 -705
- package/dist/index254.js +22 -820
- package/dist/index255.js +22 -15
- package/dist/index256.js +13 -15
- package/dist/index257.js +12 -12
- package/dist/index258.js +2 -836
- package/dist/index259.js +2 -702
- package/dist/index260.js +3626 -170
- package/dist/index261.js +55 -22
- package/dist/index262.js +77 -20
- package/dist/index263.js +52 -20
- package/dist/index264.js +215 -3
- package/dist/index265.js +10 -187
- package/dist/index266.js +52 -128
- package/dist/index267.js +52 -1214
- package/dist/index268.js +54 -20
- package/dist/index269.js +75 -22
- package/dist/index27.js +64 -42
- package/dist/index270.js +722 -21
- package/dist/index271.js +39 -29
- package/dist/index272.js +64 -20
- package/dist/index273.js +11 -20
- package/dist/index274.js +705 -2
- package/dist/index275.js +820 -2
- package/dist/index276.js +249 -50
- package/dist/index277.js +8 -79
- package/dist/index278.js +138 -26
- package/dist/index279.js +83 -22
- package/dist/index280.js +3 -22
- package/dist/index281.js +27 -16
- package/dist/index282.js +2 -17
- package/dist/index283.js +58 -232
- package/dist/index284.js +53 -7
- package/dist/index285.js +26 -138
- package/dist/index286.js +22 -83
- package/dist/index287.js +21 -22
- package/dist/index288.js +16 -2
- package/dist/index289.js +17 -1518
- package/dist/index290.js +23 -386
- package/dist/index291.js +221 -2717
- package/dist/index292.js +4 -84
- package/dist/index293.js +129 -3765
- package/dist/index294.js +65 -57
- package/dist/index295.js +86 -14
- package/dist/index296.js +27 -82
- package/dist/index297.js +7 -200
- package/dist/index298.js +66 -237
- package/dist/index299.js +4 -3
- package/dist/index300.js +2 -27
- package/dist/index301.js +78 -74
- package/dist/index302.js +53 -21
- package/dist/index303.js +5 -934
- package/dist/index304.js +4 -21
- package/dist/index305.js +178 -19
- package/dist/index306.js +62 -19
- package/dist/index307.js +74 -68
- package/dist/index308.js +1518 -19
- package/dist/index309.js +386 -19
- package/dist/index310.js +2731 -22
- package/dist/index311.js +85 -21
- package/dist/index312.js +3770 -63
- package/dist/index313.js +52 -227
- package/dist/index314.js +78 -5
- package/dist/index315.js +21 -133
- package/dist/index316.js +929 -62
- package/dist/index317.js +21 -86
- package/dist/index318.js +19 -28
- package/dist/index319.js +18 -7
- package/dist/index320.js +67 -73
- package/dist/index321.js +19 -4
- package/dist/index322.js +19 -2
- package/dist/index323.js +21 -82
- package/dist/index324.js +21 -53
- package/dist/index325.js +63 -6
- package/dist/index326.js +15 -5
- package/dist/index327.js +71 -166
- package/dist/index328.js +196 -57
- package/dist/index329.js +246 -75
- package/dist/index330.js +8 -36
- package/dist/index331.js +12 -8
- package/dist/index332.js +54 -12
- package/dist/index333.js +9 -52
- package/dist/index334.js +13 -11
- package/dist/index335.js +53 -9
- package/dist/index336.js +49 -55
- package/dist/index337.js +28 -49
- package/dist/index338.js +2 -31
- package/dist/index339.js +5 -2
- package/dist/index340.js +2 -5
- package/dist/index341.js +23 -2
- package/dist/index342.js +39 -21
- package/dist/index343.js +2 -41
- package/dist/index344.js +11 -2
- package/dist/index345.js +20 -11
- package/dist/index346.js +15 -18
- package/dist/index347.js +9 -16
- package/dist/index348.js +9 -9
- package/dist/index349.js +2 -10
- package/dist/index350.js +9 -2
- package/dist/index351.js +10 -9
- package/dist/index352.js +14 -10
- package/dist/index353.js +37 -14
- package/dist/index354.js +20 -19
- package/dist/index355.js +55 -19
- package/dist/index356.js +28 -63
- package/dist/index357.js +7 -37
- package/dist/index358.js +49 -18
- package/dist/index359.js +6 -56
- package/dist/index360.js +10 -27
- package/dist/index361.js +7 -7
- package/dist/index362.js +27 -51
- package/dist/index363.js +2 -6
- package/dist/index364.js +69 -11
- package/dist/index365.js +166 -6
- package/dist/index366.js +20 -28
- package/dist/index367.js +20 -2
- package/dist/index368.js +61 -67
- package/dist/index369.js +36 -166
- package/dist/index370.js +28 -98
- package/dist/index371.js +10 -90
- package/dist/index372.js +4 -98
- package/dist/index373.js +4 -17
- package/dist/index374.js +12 -30
- package/dist/index375.js +7 -11
- package/dist/index376.js +11 -3
- package/dist/index377.js +4 -3
- package/dist/index378.js +33 -13
- package/dist/index379.js +31 -7
- package/dist/index380.js +28 -12
- package/dist/index381.js +61 -5
- package/dist/index382.js +17 -33
- package/dist/index383.js +99 -29
- package/dist/index384.js +91 -28
- package/dist/index385.js +96 -59
- package/dist/index386.js +1 -1
- package/dist/index391.js +1 -1
- package/dist/index392.js +2 -2
- package/dist/index43.js +15 -12
- package/dist/src/components/comment/comment.d.ts +27 -0
- package/dist/src/components/comment/comment.stories.d.ts +27 -0
- package/dist/src/components/comment-section/comment-section.d.ts +27 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +27 -0
- package/dist/src/components/data-filter/data-filter.d.ts +27 -0
- package/dist/src/components/data-list/data-list.d.ts +27 -0
- package/dist/src/components/grid/grid.stories.d.ts +54 -0
- package/dist/src/components/popover/popover.d.ts +37 -0
- package/dist/src/components/popover/popover.stories.d.ts +189 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +65 -1
- package/dist/src/views/lists.vue.d.ts +54 -0
- package/dist/src/views/tables.vue.d.ts +27 -0
- package/package.json +1 -1
package/dist/index140.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as mt, ref as i, computed as
|
|
1
|
+
import { defineComponent as mt, ref as i, computed as g, watch as B, onMounted as vt, onUnmounted as pt } from "vue";
|
|
2
2
|
import { useI18n as ft } from "vue-i18n";
|
|
3
3
|
import { DateTime as w } from "./index164.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./index189.js";
|
|
5
5
|
import ht from "./index2.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import yt from "./index3.js";
|
|
7
|
+
import gt from "./index4.js";
|
|
8
8
|
import _t from "./index21.js";
|
|
9
9
|
import wt from "./index28.js";
|
|
10
10
|
import It from "./index39.js";
|
|
@@ -12,13 +12,13 @@ import Dt from "./index20.js";
|
|
|
12
12
|
import Tt from "./index46.js";
|
|
13
13
|
import Ot from "./index47.js";
|
|
14
14
|
import kt from "./index49.js";
|
|
15
|
-
import K from "./
|
|
15
|
+
import K from "./index190.js";
|
|
16
16
|
const Gt = mt({
|
|
17
17
|
name: "QRoomDetailsPopover",
|
|
18
18
|
components: {
|
|
19
19
|
QAccordion: ht,
|
|
20
|
-
QActivityItem:
|
|
21
|
-
QAvatar:
|
|
20
|
+
QActivityItem: yt,
|
|
21
|
+
QAvatar: gt,
|
|
22
22
|
QDatePicker: Dt,
|
|
23
23
|
QDivider: _t,
|
|
24
24
|
QIcon: wt,
|
|
@@ -142,6 +142,21 @@ const Gt = mt({
|
|
|
142
142
|
teleportTo: {
|
|
143
143
|
type: String,
|
|
144
144
|
default: "body"
|
|
145
|
+
},
|
|
146
|
+
/** Whether to close the popover when the trigger scrolls out of its scrollable parent */
|
|
147
|
+
closeOnScrollOutOfView: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: !1
|
|
150
|
+
},
|
|
151
|
+
/** Whether to scroll the page to bring the popover into view when it opens or content changes */
|
|
152
|
+
scrollIntoView: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !1
|
|
155
|
+
},
|
|
156
|
+
/** Padding (in pixels) from viewport edge when scrolling popover into view */
|
|
157
|
+
scrollIntoViewPadding: {
|
|
158
|
+
type: Number,
|
|
159
|
+
default: 20
|
|
145
160
|
}
|
|
146
161
|
},
|
|
147
162
|
emits: ["create:callback", "create:todo", "refresh:pms", "show:toast", "toggle"],
|
|
@@ -175,7 +190,7 @@ const Gt = mt({
|
|
|
175
190
|
info: !0,
|
|
176
191
|
tickets: !0,
|
|
177
192
|
comments: !0
|
|
178
|
-
}), te = i(!0), Ce = i(o.guestDetails), O = i([]),
|
|
193
|
+
}), te = i(!0), Ce = i(o.guestDetails), O = i([]), y = i({
|
|
179
194
|
actionItems: !1,
|
|
180
195
|
conversationToggle: !1,
|
|
181
196
|
messages: !1,
|
|
@@ -233,7 +248,7 @@ const Gt = mt({
|
|
|
233
248
|
notes: "",
|
|
234
249
|
person: null,
|
|
235
250
|
requestedBy: null
|
|
236
|
-
}), pe = i([]), q = i([]), x = i([]), fe =
|
|
251
|
+
}), pe = i([]), q = i([]), x = i([]), fe = g(() => {
|
|
237
252
|
switch (r.value.cleaning?.name || r.value.cleaningStatus) {
|
|
238
253
|
case "CLEAN":
|
|
239
254
|
case "INSPECTED":
|
|
@@ -246,13 +261,13 @@ const Gt = mt({
|
|
|
246
261
|
default:
|
|
247
262
|
return "";
|
|
248
263
|
}
|
|
249
|
-
}), Re =
|
|
264
|
+
}), Re = g(() => fe.value === "CLEAN" ? "blue-10" : fe.value === "DIRTY" ? "red-10" : "gray-30"), He = g(() => {
|
|
250
265
|
const e = r.value.cleaning?.name || r.value.cleaningStatus;
|
|
251
266
|
return e ? u(`HC_${e}`) : "";
|
|
252
|
-
}), Le =
|
|
267
|
+
}), Le = g(() => {
|
|
253
268
|
const e = b.value.toLowerCase();
|
|
254
269
|
return o.quickReplies.filter((t) => t.toLowerCase().match(e));
|
|
255
|
-
}), Pe =
|
|
270
|
+
}), Pe = g(() => {
|
|
256
271
|
if (!C.value.length) return [];
|
|
257
272
|
const e = [];
|
|
258
273
|
let t = null;
|
|
@@ -272,11 +287,11 @@ const Gt = mt({
|
|
|
272
287
|
formattedTime: s.toFormat("h:mma").replace("AM", "am").replace("PM", "pm")
|
|
273
288
|
});
|
|
274
289
|
}), e;
|
|
275
|
-
}), De =
|
|
290
|
+
}), De = g(() => S.value.length ? !!S.value.find(
|
|
276
291
|
(t) => t.type === "complaint"
|
|
277
|
-
) : !1), qe =
|
|
292
|
+
) : !1), qe = g(() => S.value.length ? !!S.value.find(
|
|
278
293
|
(t) => t.type === "callback"
|
|
279
|
-
) : !1), xe =
|
|
294
|
+
) : !1), xe = g(() => {
|
|
280
295
|
let e = [];
|
|
281
296
|
return O.value[0] && O.value[0].options === void 0 ? O.value.forEach((t) => {
|
|
282
297
|
e.push({
|
|
@@ -284,7 +299,7 @@ const Gt = mt({
|
|
|
284
299
|
label: t.display_name
|
|
285
300
|
});
|
|
286
301
|
}) : e = O.value, e;
|
|
287
|
-
}), Te =
|
|
302
|
+
}), Te = g(() => r.value.occupancy?.name === "OCCUPIED" || r.value.occupancyStatus === "OCCUPIED"), Fe = g(() => Te.value && De.value ? "HK_ROOM_STATUS_Occupied_Complaint" : "HK_ROOM_STATUS_Occupied"), Be = g(() => {
|
|
288
303
|
switch (E.value?.id) {
|
|
289
304
|
case "request":
|
|
290
305
|
case "work_order":
|
|
@@ -292,7 +307,7 @@ const Gt = mt({
|
|
|
292
307
|
default:
|
|
293
308
|
return null;
|
|
294
309
|
}
|
|
295
|
-
}), Ge =
|
|
310
|
+
}), Ge = g(() => {
|
|
296
311
|
if (M.value)
|
|
297
312
|
switch (E.value?.id) {
|
|
298
313
|
case "request":
|
|
@@ -303,7 +318,7 @@ const Gt = mt({
|
|
|
303
318
|
return null;
|
|
304
319
|
}
|
|
305
320
|
return null;
|
|
306
|
-
}), Ue =
|
|
321
|
+
}), Ue = g(() => {
|
|
307
322
|
switch (E.value?.id) {
|
|
308
323
|
case "request":
|
|
309
324
|
return Q.value[1];
|
|
@@ -312,7 +327,7 @@ const Gt = mt({
|
|
|
312
327
|
default:
|
|
313
328
|
return null;
|
|
314
329
|
}
|
|
315
|
-
}), We =
|
|
330
|
+
}), We = g(() => {
|
|
316
331
|
let e = "";
|
|
317
332
|
if (r.value && r.value.reservations[0]) {
|
|
318
333
|
const t = w.fromISO(
|
|
@@ -323,10 +338,10 @@ const Gt = mt({
|
|
|
323
338
|
e += a + " " + s, n !== f && (e += ", " + n), a === c ? e += "-" + m : e += " - " + c + " " + m, e += ", " + f;
|
|
324
339
|
}
|
|
325
340
|
return e;
|
|
326
|
-
}), je =
|
|
341
|
+
}), je = g(() => {
|
|
327
342
|
let e = ae.value;
|
|
328
343
|
return e = [...new Set(e)], e;
|
|
329
|
-
}), $e =
|
|
344
|
+
}), $e = g(() => {
|
|
330
345
|
const e = E.value?.id;
|
|
331
346
|
if (!e)
|
|
332
347
|
return !1;
|
|
@@ -400,7 +415,7 @@ const Gt = mt({
|
|
|
400
415
|
});
|
|
401
416
|
}, he = async (e = !1) => {
|
|
402
417
|
if (o.showComments && r.value.tokenId) {
|
|
403
|
-
e || (
|
|
418
|
+
e || (y.value.messages = !0);
|
|
404
419
|
try {
|
|
405
420
|
let t = `/api/client/connect/getMessages.php?tokenId=${r.value.tokenId}`;
|
|
406
421
|
e && k.value !== null && (t += `&lastMsgId=${k.value}`);
|
|
@@ -412,16 +427,16 @@ const Gt = mt({
|
|
|
412
427
|
throw new Error(s.message || "Failed to get messages");
|
|
413
428
|
if (A.value = !s.closed, s.messages && s.messages.length > 0) {
|
|
414
429
|
k.value = s.messages[s.messages.length - 1].id, e ? Je(s.messages) : F(s.messages);
|
|
415
|
-
const n = setTimeout(
|
|
430
|
+
const n = setTimeout(Y, 100);
|
|
416
431
|
L.value.push(n);
|
|
417
432
|
} else e || F(s.messages || []);
|
|
418
433
|
} catch (t) {
|
|
419
434
|
console.error("getChatMessages error:", t);
|
|
420
435
|
} finally {
|
|
421
|
-
e || (
|
|
436
|
+
e || (y.value.messages = !1);
|
|
422
437
|
}
|
|
423
438
|
}
|
|
424
|
-
},
|
|
439
|
+
}, Ve = (e) => {
|
|
425
440
|
const t = w.utc(), a = w.fromFormat(e, "yyyy-MM-dd HH:mm:ss", { zone: "utc" }), s = t.diff(
|
|
426
441
|
a,
|
|
427
442
|
[
|
|
@@ -444,11 +459,11 @@ const Gt = mt({
|
|
|
444
459
|
return f === 1 ? u("HC_ONE_MINUTE_AGO") : u("HC_X_MINUTES_AGO", { minutes: f });
|
|
445
460
|
if (f === 0)
|
|
446
461
|
return u("HC_A_MOMENT_AGO");
|
|
447
|
-
},
|
|
448
|
-
o.showGuestDetails && oe(), ne(),
|
|
462
|
+
}, Ye = async () => {
|
|
463
|
+
o.showGuestDetails && oe(), ne(), V(), h("refresh:pms", r.value);
|
|
449
464
|
}, oe = async () => {
|
|
450
465
|
try {
|
|
451
|
-
|
|
466
|
+
y.value.pms = !0;
|
|
452
467
|
const e = new AbortController(), t = setTimeout(() => e.abort(), 45e3);
|
|
453
468
|
L.value.push(t);
|
|
454
469
|
const a = o.pmsBaseUrl;
|
|
@@ -474,9 +489,9 @@ const Gt = mt({
|
|
|
474
489
|
R.value = m, m.length > 0 ? r.value = {
|
|
475
490
|
...m[0],
|
|
476
491
|
tokenId: m[0].tokenId || o.room.tokenId
|
|
477
|
-
} : r.value = o.room,
|
|
492
|
+
} : r.value = o.room, y.value.pms = !1;
|
|
478
493
|
} catch (e) {
|
|
479
|
-
return
|
|
494
|
+
return y.value.pms = !1, h("show:toast", {
|
|
480
495
|
show: !0,
|
|
481
496
|
message: u("HC_FAILED_TO_LOAD_PMS_DATA"),
|
|
482
497
|
variant: "error",
|
|
@@ -485,7 +500,7 @@ const Gt = mt({
|
|
|
485
500
|
}
|
|
486
501
|
}, ne = async () => {
|
|
487
502
|
try {
|
|
488
|
-
|
|
503
|
+
y.value.roomNotices = !0;
|
|
489
504
|
const e = await fetch(
|
|
490
505
|
"/api/client/common/getRoomNotices.php?propertyId=" + o.propertyId + "&roomIds=[" + o.room.id + "]"
|
|
491
506
|
);
|
|
@@ -501,9 +516,9 @@ const Gt = mt({
|
|
|
501
516
|
icon: "exclamation-circle"
|
|
502
517
|
});
|
|
503
518
|
} finally {
|
|
504
|
-
|
|
519
|
+
y.value.roomNotices = !1;
|
|
505
520
|
}
|
|
506
|
-
},
|
|
521
|
+
}, ye = async () => {
|
|
507
522
|
try {
|
|
508
523
|
const e = new FormData();
|
|
509
524
|
e.append("property_id", o.propertyId), e.append("filter", "tasks_new");
|
|
@@ -586,9 +601,9 @@ const Gt = mt({
|
|
|
586
601
|
case "task":
|
|
587
602
|
return "check";
|
|
588
603
|
}
|
|
589
|
-
},
|
|
604
|
+
}, V = async () => {
|
|
590
605
|
try {
|
|
591
|
-
|
|
606
|
+
y.value.tickets = !0;
|
|
592
607
|
const e = await fetch(
|
|
593
608
|
"/api/client/common/getAllToDos.php?propertyId=" + o.propertyId + "&roomIds=[" + o.room.id + "]"
|
|
594
609
|
);
|
|
@@ -604,7 +619,7 @@ const Gt = mt({
|
|
|
604
619
|
icon: "exclamation-circle"
|
|
605
620
|
});
|
|
606
621
|
} finally {
|
|
607
|
-
|
|
622
|
+
y.value.tickets = !1;
|
|
608
623
|
}
|
|
609
624
|
}, Ee = async (e) => {
|
|
610
625
|
const t = await e.text();
|
|
@@ -697,10 +712,10 @@ const Gt = mt({
|
|
|
697
712
|
Ae(), b.value = e;
|
|
698
713
|
}, ot = async (e) => {
|
|
699
714
|
if (console.log("selected:", e), E.value = e, O.value = [], I.value.issue = null, p.value.problem = null, v.value.item = null, v.value.issue = null, d.value.item = null, !E.value) {
|
|
700
|
-
|
|
715
|
+
y.value.actionItems = !1;
|
|
701
716
|
return;
|
|
702
717
|
}
|
|
703
|
-
|
|
718
|
+
y.value.actionItems = !0;
|
|
704
719
|
const t = r.value?.qv2Rooms?.qRoomId || r.value?.id || o.room?.id, a = new FormData();
|
|
705
720
|
switch (a.append("property_id", o.propertyId), a.append("area_id", t), e.id) {
|
|
706
721
|
case "complaint":
|
|
@@ -725,7 +740,7 @@ const Gt = mt({
|
|
|
725
740
|
icon: "exclamation-circle"
|
|
726
741
|
});
|
|
727
742
|
} finally {
|
|
728
|
-
|
|
743
|
+
y.value.actionItems = !1;
|
|
729
744
|
}
|
|
730
745
|
break;
|
|
731
746
|
case "room_notice":
|
|
@@ -743,7 +758,7 @@ const Gt = mt({
|
|
|
743
758
|
icon: "exclamation-circle"
|
|
744
759
|
});
|
|
745
760
|
} finally {
|
|
746
|
-
|
|
761
|
+
y.value.actionItems = !1;
|
|
747
762
|
}
|
|
748
763
|
break;
|
|
749
764
|
case "request":
|
|
@@ -753,7 +768,7 @@ const Gt = mt({
|
|
|
753
768
|
method: "POST",
|
|
754
769
|
body: a
|
|
755
770
|
})).json();
|
|
756
|
-
if (n.items && (O.value = n.items), await
|
|
771
|
+
if (n.items && (O.value = n.items), await ye(), d.value.department = M.value.find(
|
|
757
772
|
(l) => parseInt(l.id) === 4
|
|
758
773
|
), o.allowWhenWhere)
|
|
759
774
|
try {
|
|
@@ -791,7 +806,7 @@ const Gt = mt({
|
|
|
791
806
|
icon: "exclamation-circle"
|
|
792
807
|
});
|
|
793
808
|
} finally {
|
|
794
|
-
|
|
809
|
+
y.value.actionItems = !1;
|
|
795
810
|
}
|
|
796
811
|
break;
|
|
797
812
|
case "work_order":
|
|
@@ -811,7 +826,7 @@ const Gt = mt({
|
|
|
811
826
|
K.post(
|
|
812
827
|
"/api/client/common/getWorkOrderIssues.php"
|
|
813
828
|
),
|
|
814
|
-
|
|
829
|
+
ye()
|
|
815
830
|
]).then((m) => {
|
|
816
831
|
const f = m[0];
|
|
817
832
|
f.data.issues.forEach((_) => {
|
|
@@ -828,11 +843,11 @@ const Gt = mt({
|
|
|
828
843
|
icon: "exclamation-circle"
|
|
829
844
|
});
|
|
830
845
|
} finally {
|
|
831
|
-
|
|
846
|
+
y.value.actionItems = !1;
|
|
832
847
|
}
|
|
833
848
|
break;
|
|
834
849
|
default:
|
|
835
|
-
|
|
850
|
+
y.value.actionItems = !1;
|
|
836
851
|
return;
|
|
837
852
|
}
|
|
838
853
|
}, nt = () => {
|
|
@@ -840,7 +855,7 @@ const Gt = mt({
|
|
|
840
855
|
}, Se = () => {
|
|
841
856
|
const e = document.getElementById("comment-field"), t = document.getElementById("hidden-text");
|
|
842
857
|
e.style.height = t?.offsetHeight + "px";
|
|
843
|
-
},
|
|
858
|
+
}, Y = () => {
|
|
844
859
|
const e = document.getElementById("comments-container");
|
|
845
860
|
e?.scroll({
|
|
846
861
|
top: e.scrollHeight,
|
|
@@ -848,7 +863,7 @@ const Gt = mt({
|
|
|
848
863
|
});
|
|
849
864
|
}, rt = async (e) => {
|
|
850
865
|
if (e && e.type === "keydown" && e.preventDefault(), r.value.tokenId && b.value && !H.value) {
|
|
851
|
-
|
|
866
|
+
y.value.sendingMessage = !0;
|
|
852
867
|
try {
|
|
853
868
|
const t = new FormData();
|
|
854
869
|
t.append("tokenId", r.value.tokenId), t.append("content", b.value), t.append("senderId", P.value || "");
|
|
@@ -865,7 +880,7 @@ const Gt = mt({
|
|
|
865
880
|
});
|
|
866
881
|
return;
|
|
867
882
|
}
|
|
868
|
-
b.value = "", A.value = !a.data.closed, a.data.messages && (F(a.data.messages), a.data.messages.length > 0 && (k.value = a.data.messages[a.data.messages.length - 1].id)),
|
|
883
|
+
b.value = "", A.value = !a.data.closed, a.data.messages && (F(a.data.messages), a.data.messages.length > 0 && (k.value = a.data.messages[a.data.messages.length - 1].id)), Y();
|
|
869
884
|
} catch (t) {
|
|
870
885
|
console.error("sendChatMessage error:", t), h("show:toast", {
|
|
871
886
|
show: !0,
|
|
@@ -874,12 +889,12 @@ const Gt = mt({
|
|
|
874
889
|
icon: "exclamation-circle"
|
|
875
890
|
});
|
|
876
891
|
} finally {
|
|
877
|
-
|
|
892
|
+
y.value.sendingMessage = !1;
|
|
878
893
|
}
|
|
879
894
|
}
|
|
880
895
|
}, lt = async () => {
|
|
881
896
|
if (!(!r.value.tokenId || !P.value)) {
|
|
882
|
-
|
|
897
|
+
y.value.conversationToggle = !0;
|
|
883
898
|
try {
|
|
884
899
|
const e = A.value ? "/api/client/connect/closeConversation.php" : "/api/client/connect/openConversation.php", t = new FormData();
|
|
885
900
|
t.append("tokenId", r.value.tokenId), t.append("userId", P.value), A.value && k.value !== null && t.append("lastMsgId", k.value.toString());
|
|
@@ -907,7 +922,7 @@ const Gt = mt({
|
|
|
907
922
|
icon: "exclamation-circle"
|
|
908
923
|
});
|
|
909
924
|
} finally {
|
|
910
|
-
|
|
925
|
+
y.value.conversationToggle = !1;
|
|
911
926
|
}
|
|
912
927
|
}
|
|
913
928
|
}, it = async () => {
|
|
@@ -929,7 +944,7 @@ const Gt = mt({
|
|
|
929
944
|
});
|
|
930
945
|
return;
|
|
931
946
|
}
|
|
932
|
-
t.data.messages && (F(t.data.messages), A.value = !t.data.closed, t.data.messages.length > 0 && (k.value = t.data.messages[t.data.messages.length - 1].id)), j.value = "", W.value = !1,
|
|
947
|
+
t.data.messages && (F(t.data.messages), A.value = !t.data.closed, t.data.messages.length > 0 && (k.value = t.data.messages[t.data.messages.length - 1].id)), j.value = "", W.value = !1, Y(), h("show:toast", {
|
|
933
948
|
show: !0,
|
|
934
949
|
message: u("HC_SIMULATED_GUEST_REPLY"),
|
|
935
950
|
variant: "success",
|
|
@@ -952,7 +967,7 @@ const Gt = mt({
|
|
|
952
967
|
$.value || ($.value = setInterval(() => {
|
|
953
968
|
document.visibilityState === "visible" && he(!0);
|
|
954
969
|
}, Me));
|
|
955
|
-
},
|
|
970
|
+
}, ge = () => {
|
|
956
971
|
$.value && (clearInterval($.value), $.value = null);
|
|
957
972
|
}, _e = () => {
|
|
958
973
|
if (o.align === "left" || o.align === "right") {
|
|
@@ -974,7 +989,7 @@ const Gt = mt({
|
|
|
974
989
|
H.value = !H.value, H.value ? (b.value = "", N.value.info = ee.value, N.value.tickets = te.value, N.value.comments = Z.value, ee.value = !1, te.value = !1, document.getElementById("comment-field")?.focus()) : (ee.value = N.value.info, te.value = N.value.tickets, Z.value = N.value.comments);
|
|
975
990
|
}, dt = async (e, t) => {
|
|
976
991
|
const a = r.value?.qv2Rooms?.qRoomId || r.value?.id || o.room?.id, s = new FormData();
|
|
977
|
-
if (s.append("property_id", o.propertyId), s.append("room_ids", JSON.stringify([a])), await
|
|
992
|
+
if (s.append("property_id", o.propertyId), s.append("room_ids", JSON.stringify([a])), await V(), S.value) {
|
|
978
993
|
const n = [];
|
|
979
994
|
S.value.forEach((l) => {
|
|
980
995
|
l.id === e && l.type === t ? n.unshift({
|
|
@@ -989,14 +1004,14 @@ const Gt = mt({
|
|
|
989
1004
|
};
|
|
990
1005
|
B(() => o.open, () => {
|
|
991
1006
|
if (o.open && o.showComments && C.value.length) {
|
|
992
|
-
const e = setTimeout(
|
|
1007
|
+
const e = setTimeout(Y, 500);
|
|
993
1008
|
L.value.push(e);
|
|
994
1009
|
}
|
|
995
|
-
o.open || (Oe(),
|
|
1010
|
+
o.open || (Oe(), ge(), k.value = null, C.value = [], A.value = !1);
|
|
996
1011
|
}), B(
|
|
997
1012
|
() => [o.open, o.showComments, Z.value, r.value?.tokenId],
|
|
998
1013
|
([e, t, a, s]) => {
|
|
999
|
-
e && t && a && s ? ct() :
|
|
1014
|
+
e && t && a && s ? ct() : ge();
|
|
1000
1015
|
}
|
|
1001
1016
|
), B(b, () => {
|
|
1002
1017
|
const e = setTimeout(Se, 100);
|
|
@@ -1006,11 +1021,11 @@ const Gt = mt({
|
|
|
1006
1021
|
});
|
|
1007
1022
|
const be = () => !!(o.room.reservations || o.room.cleaning || o.room.occupancy);
|
|
1008
1023
|
return B(() => o.open, async (e, t) => {
|
|
1009
|
-
e && !t && (be() ? (r.value = o.room, R.value = [o.room]) : o.showGuestDetails && !R.value ? await oe() : r.value || (r.value = o.room),
|
|
1024
|
+
e && !t && (be() ? (r.value = o.room, R.value = [o.room]) : o.showGuestDetails && !R.value ? await oe() : r.value || (r.value = o.room), V(), ne(), o.showComments && he());
|
|
1010
1025
|
}), B(
|
|
1011
1026
|
() => o.room.id,
|
|
1012
1027
|
(e, t) => {
|
|
1013
|
-
e !== t && (r.value = o.room, R.value = null, o.open && (be() ? R.value = [o.room] : o.showGuestDetails && oe(),
|
|
1028
|
+
e !== t && (r.value = o.room, R.value = null, o.open && (be() ? R.value = [o.room] : o.showGuestDetails && oe(), V(), ne()));
|
|
1014
1029
|
}
|
|
1015
1030
|
), vt(async () => {
|
|
1016
1031
|
const e = JSON.parse(
|
|
@@ -1020,7 +1035,7 @@ const Gt = mt({
|
|
|
1020
1035
|
}), pt(() => {
|
|
1021
1036
|
L.value.forEach((e) => {
|
|
1022
1037
|
clearTimeout(e);
|
|
1023
|
-
}),
|
|
1038
|
+
}), ge();
|
|
1024
1039
|
}), {
|
|
1025
1040
|
DateTime: w,
|
|
1026
1041
|
// Refs
|
|
@@ -1039,7 +1054,7 @@ const Gt = mt({
|
|
|
1039
1054
|
expandTickets: te,
|
|
1040
1055
|
guestDetailsData: Ce,
|
|
1041
1056
|
itemOptions: O,
|
|
1042
|
-
loading:
|
|
1057
|
+
loading: y,
|
|
1043
1058
|
messages: C,
|
|
1044
1059
|
moodOptions: ce,
|
|
1045
1060
|
pmsData: R,
|
|
@@ -1090,14 +1105,14 @@ const Gt = mt({
|
|
|
1090
1105
|
createCallback: Qe,
|
|
1091
1106
|
createMessageList: F,
|
|
1092
1107
|
getChatMessages: he,
|
|
1093
|
-
getHowLongAgo:
|
|
1108
|
+
getHowLongAgo: Ve,
|
|
1094
1109
|
getPMSData: oe,
|
|
1095
1110
|
getRoomNotices: ne,
|
|
1096
|
-
getSharedData:
|
|
1111
|
+
getSharedData: ye,
|
|
1097
1112
|
getStayDetails: ke,
|
|
1098
1113
|
getTicketColor: ze,
|
|
1099
1114
|
getTicketIcon: Ke,
|
|
1100
|
-
getTickets:
|
|
1115
|
+
getTickets: V,
|
|
1101
1116
|
handleFailedResponse: Ee,
|
|
1102
1117
|
handlePulse: Xe,
|
|
1103
1118
|
onClickEditConnectGuest: Ze,
|
|
@@ -1107,9 +1122,9 @@ const Gt = mt({
|
|
|
1107
1122
|
onSelectQuickReply: st,
|
|
1108
1123
|
onSelectToDo: ot,
|
|
1109
1124
|
openRequest: nt,
|
|
1110
|
-
refreshPMSData:
|
|
1125
|
+
refreshPMSData: Ye,
|
|
1111
1126
|
resizeTextarea: Se,
|
|
1112
|
-
scrollToConnectBottom:
|
|
1127
|
+
scrollToConnectBottom: Y,
|
|
1113
1128
|
sendChatMessage: rt,
|
|
1114
1129
|
setAlignment: _e,
|
|
1115
1130
|
setPositioning: we,
|
package/dist/index142.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, ref as n, computed as a, watch as g, nextTick as f } from "vue";
|
|
2
|
-
import { Multiselect as I } from "./
|
|
2
|
+
import { Multiselect as I } from "./index187.js";
|
|
3
3
|
import { useI18n as k } from "vue-i18n";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import q from "./index6.js";
|
package/dist/index173.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import g from "./
|
|
1
|
+
import g from "./index217.js";
|
|
2
2
|
import { DomHandler as f, ObjectUtils as d } from "./index170.js";
|
|
3
|
-
import v from "./
|
|
4
|
-
import S from "./
|
|
3
|
+
import v from "./index218.js";
|
|
4
|
+
import S from "./index219.js";
|
|
5
5
|
import { resolveDirective as A, createElementBlock as h, openBlock as p, mergeProps as b, Fragment as E, renderList as O, withDirectives as w, renderSlot as x, normalizeClass as K, createElementVNode as I, toDisplayString as D } from "vue";
|
|
6
6
|
var V = {
|
|
7
7
|
name: "BaseSelectButton",
|
package/dist/index176.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createVNode as s, ref as k, watchEffect as Y, onMounted as me, watch as nt, computed as A, toRef as at, inject as ge, shallowRef as lt, defineComponent as ot, provide as ye, onUnmounted as rt, isVNode as st, Teleport as it, Transition as ut, createElementBlock as be, openBlock as we, createElementVNode as Z, h as Ye } from "vue";
|
|
2
|
-
import { format as Ce } from "./
|
|
3
|
-
import { parse as ct } from "./
|
|
4
|
-
import { getWeek as Ie } from "./
|
|
5
|
-
import dt from "./
|
|
2
|
+
import { format as Ce } from "./index220.js";
|
|
3
|
+
import { parse as ct } from "./index221.js";
|
|
4
|
+
import { getWeek as Ie } from "./index222.js";
|
|
5
|
+
import dt from "./index223.js";
|
|
6
6
|
var ft = Object.defineProperty, pt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertySymbols, Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable, Se = (t, e, n) => e in t ? ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e) => {
|
|
7
7
|
for (var n in e || (e = {}))
|
|
8
8
|
Ue.call(e, n) && Se(t, n, e[n]);
|
package/dist/index183.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import A from "./
|
|
2
|
-
import O from "./
|
|
3
|
-
import V from "./
|
|
4
|
-
import R from "./
|
|
5
|
-
import j from "./
|
|
6
|
-
import K from "./
|
|
7
|
-
import H from "./
|
|
1
|
+
import A from "./index232.js";
|
|
2
|
+
import O from "./index233.js";
|
|
3
|
+
import V from "./index227.js";
|
|
4
|
+
import R from "./index234.js";
|
|
5
|
+
import j from "./index235.js";
|
|
6
|
+
import K from "./index236.js";
|
|
7
|
+
import H from "./index217.js";
|
|
8
8
|
import { DomHandler as w } from "./index170.js";
|
|
9
|
-
import W from "./
|
|
10
|
-
import G from "./
|
|
11
|
-
import Y from "./
|
|
9
|
+
import W from "./index218.js";
|
|
10
|
+
import G from "./index237.js";
|
|
11
|
+
import Y from "./index238.js";
|
|
12
12
|
import { resolveComponent as y, createElementBlock as f, openBlock as o, Fragment as U, renderList as E, mergeProps as r, createElementVNode as h, createVNode as L, toDisplayString as F, normalizeClass as B, withCtx as C, createBlock as m, resolveDynamicComponent as b, resolveDirective as Z, createCommentVNode as v, renderSlot as g, withDirectives as M, withKeys as T, createTextVNode as z } from "vue";
|
|
13
13
|
var q = {
|
|
14
14
|
name: "BaseFileUpload",
|
package/dist/index185.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import q from "./
|
|
2
|
-
import X from "./
|
|
1
|
+
import q from "./index224.js";
|
|
2
|
+
import X from "./index225.js";
|
|
3
3
|
import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index170.js";
|
|
4
|
-
import O from "./
|
|
5
|
-
import Y from "./
|
|
6
|
-
import J from "./
|
|
7
|
-
import L from "./
|
|
8
|
-
import H from "./
|
|
9
|
-
import M from "./
|
|
4
|
+
import O from "./index218.js";
|
|
5
|
+
import Y from "./index226.js";
|
|
6
|
+
import J from "./index227.js";
|
|
7
|
+
import L from "./index217.js";
|
|
8
|
+
import H from "./index228.js";
|
|
9
|
+
import M from "./index229.js";
|
|
10
10
|
import { resolveDirective as C, createElementBlock as d, openBlock as s, mergeProps as l, createElementVNode as b, createCommentVNode as h, withDirectives as y, createBlock as f, resolveDynamicComponent as p, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
|
|
11
|
-
import ee from "./
|
|
12
|
-
import te from "./
|
|
11
|
+
import ee from "./index230.js";
|
|
12
|
+
import te from "./index231.js";
|
|
13
13
|
var ie = {
|
|
14
14
|
name: "BaseGalleria",
|
|
15
15
|
extends: O,
|