@quoreadmin/ui 1.4.2 → 1.4.3
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.js +110 -85433
- package/dist/index10.js +55 -0
- package/dist/index101.js +213 -0
- package/dist/index103.js +78 -0
- package/dist/index105.js +136 -0
- package/dist/index107.js +216 -0
- package/dist/index109.js +134 -0
- package/dist/index11.js +183 -0
- package/dist/index111.js +154 -0
- package/dist/index113.js +44 -0
- package/dist/index115.js +78 -0
- package/dist/index117.js +25 -0
- package/dist/index119.js +84 -0
- package/dist/index12.js +74 -0
- package/dist/index121.js +16 -0
- package/dist/index123.js +82 -0
- package/dist/index125.js +134 -0
- package/dist/index127.js +56 -0
- package/dist/index129.js +37 -0
- package/dist/index13.js +32 -0
- package/dist/index131.js +65 -0
- package/dist/index133.js +815 -0
- package/dist/index135.js +277 -0
- package/dist/index137.js +350 -0
- package/dist/index139.js +31 -0
- package/dist/index14.js +190 -0
- package/dist/index141.js +89 -0
- package/dist/index143.js +93 -0
- package/dist/index145.js +116 -0
- package/dist/index147.js +389 -0
- package/dist/index149.js +44 -0
- package/dist/index15.js +138 -0
- package/dist/index151.js +210 -0
- package/dist/index154.js +115 -0
- package/dist/index155.js +497 -0
- package/dist/index156.js +5524 -0
- package/dist/index157.js +93 -0
- package/dist/index158.js +863 -0
- package/dist/index159.js +40 -0
- package/dist/index16.js +318 -0
- package/dist/index160.js +282 -0
- package/dist/index161.js +152 -0
- package/dist/index162.js +1201 -0
- package/dist/index163.js +774 -0
- package/dist/index164.js +1310 -0
- package/dist/index165.js +278 -0
- package/dist/index166.js +108 -0
- package/dist/index167.js +4 -0
- package/dist/index168.js +1378 -0
- package/dist/index17.js +25 -0
- package/dist/index170.js +20 -0
- package/dist/index171.js +20 -0
- package/dist/index172.js +20 -0
- package/dist/index173.js +20 -0
- package/dist/index174.js +27 -0
- package/dist/index175.js +761 -0
- package/dist/index176.js +831 -0
- package/dist/index177.js +1236 -0
- package/dist/index178.js +11279 -0
- package/dist/index179.js +38 -0
- package/dist/index18.js +48 -0
- package/dist/index180.js +117 -0
- package/dist/index181.js +46 -0
- package/dist/index182.js +1192 -0
- package/dist/index184.js +5940 -0
- package/dist/index185.js +209 -0
- package/dist/index186.js +37 -0
- package/dist/index187.js +20 -0
- package/dist/index188.js +80 -0
- package/dist/index189.js +255 -0
- package/dist/index19.js +53 -0
- package/dist/index190.js +13686 -0
- package/dist/index191.js +29 -0
- package/dist/index192.js +65 -0
- package/dist/index193.js +240 -0
- package/dist/index194.js +310 -0
- package/dist/index195.js +290 -0
- package/dist/index196.js +35 -0
- package/dist/index197.js +118 -0
- package/dist/index198.js +38 -0
- package/dist/index199.js +28 -0
- package/dist/index2.js +86 -0
- package/dist/index20.js +35 -0
- package/dist/index200.js +38 -0
- package/dist/index201.js +11 -0
- package/dist/index202.js +21 -0
- package/dist/index203.js +12 -0
- package/dist/index204.js +12 -0
- package/dist/index205.js +53 -0
- package/dist/index206.js +45 -0
- package/dist/index207.js +6 -0
- package/dist/index208.js +41 -0
- package/dist/index209.js +23 -0
- package/dist/index21.js +68 -0
- package/dist/index210.js +90 -0
- package/dist/index211.js +409 -0
- package/dist/index212.js +24 -0
- package/dist/index213.js +163 -0
- package/dist/index214.js +22 -0
- package/dist/index215.js +22 -0
- package/dist/index216.js +24 -0
- package/dist/index217.js +201 -0
- package/dist/index218.js +72 -0
- package/dist/index219.js +36 -0
- package/dist/index22.js +176 -0
- package/dist/index220.js +42 -0
- package/dist/index221.js +129 -0
- package/dist/index222.js +40 -0
- package/dist/index223.js +82 -0
- package/dist/index224.js +22 -0
- package/dist/index225.js +22 -0
- package/dist/index226.js +22 -0
- package/dist/index227.js +22 -0
- package/dist/index228.js +163 -0
- package/dist/index229.js +230 -0
- package/dist/index23.js +14 -0
- package/dist/index230.js +39 -0
- package/dist/index231.js +12 -0
- package/dist/index232.js +24 -0
- package/dist/index233.js +24 -0
- package/dist/index234.js +22 -0
- package/dist/index235.js +838 -0
- package/dist/index236.js +704 -0
- package/dist/index237.js +178 -0
- package/dist/index238.js +24 -0
- package/dist/index239.js +22 -0
- package/dist/index24.js +43 -0
- package/dist/index240.js +22 -0
- package/dist/index241.js +5 -0
- package/dist/index242.js +189 -0
- package/dist/index243.js +135 -0
- package/dist/index244.js +1225 -0
- package/dist/index245.js +22 -0
- package/dist/index246.js +24 -0
- package/dist/index247.js +24 -0
- package/dist/index248.js +31 -0
- package/dist/index249.js +22 -0
- package/dist/index25.js +123 -0
- package/dist/index250.js +22 -0
- package/dist/index251.js +4 -0
- package/dist/index252.js +4 -0
- package/dist/index253.js +3634 -0
- package/dist/index254.js +57 -0
- package/dist/index255.js +79 -0
- package/dist/index256.js +54 -0
- package/dist/index257.js +217 -0
- package/dist/index258.js +12 -0
- package/dist/index259.js +59 -0
- package/dist/index26.js +29 -0
- package/dist/index260.js +63 -0
- package/dist/index261.js +56 -0
- package/dist/index262.js +77 -0
- package/dist/index263.js +725 -0
- package/dist/index264.js +41 -0
- package/dist/index265.js +66 -0
- package/dist/index266.js +13 -0
- package/dist/index267.js +707 -0
- package/dist/index268.js +822 -0
- package/dist/index269.js +255 -0
- package/dist/index27.js +163 -0
- package/dist/index270.js +10 -0
- package/dist/index271.js +140 -0
- package/dist/index272.js +85 -0
- package/dist/index273.js +5 -0
- package/dist/index274.js +29 -0
- package/dist/index275.js +56 -0
- package/dist/index276.js +81 -0
- package/dist/index277.js +28 -0
- package/dist/index278.js +24 -0
- package/dist/index279.js +24 -0
- package/dist/index28.js +286 -0
- package/dist/index280.js +18 -0
- package/dist/index281.js +19 -0
- package/dist/index282.js +25 -0
- package/dist/index283.js +4 -0
- package/dist/index284.js +237 -0
- package/dist/index285.js +8 -0
- package/dist/index286.js +136 -0
- package/dist/index287.js +70 -0
- package/dist/index288.js +89 -0
- package/dist/index289.js +31 -0
- package/dist/index29.js +69 -0
- package/dist/index290.js +11 -0
- package/dist/index291.js +77 -0
- package/dist/index292.js +6 -0
- package/dist/index293.js +4 -0
- package/dist/index294.js +85 -0
- package/dist/index295.js +56 -0
- package/dist/index296.js +8 -0
- package/dist/index297.js +7 -0
- package/dist/index298.js +181 -0
- package/dist/index299.js +65 -0
- package/dist/index3.js +69 -0
- package/dist/index30.js +183 -0
- package/dist/index300.js +77 -0
- package/dist/index301.js +81 -0
- package/dist/index302.js +24 -0
- package/dist/index303.js +937 -0
- package/dist/index304.js +24 -0
- package/dist/index305.js +22 -0
- package/dist/index306.js +22 -0
- package/dist/index307.js +71 -0
- package/dist/index308.js +21 -0
- package/dist/index309.js +21 -0
- package/dist/index31.js +44 -0
- package/dist/index310.js +24 -0
- package/dist/index311.js +24 -0
- package/dist/index312.js +65 -0
- package/dist/index313.js +1520 -0
- package/dist/index314.js +388 -0
- package/dist/index315.js +2733 -0
- package/dist/index316.js +88 -0
- package/dist/index317.js +3772 -0
- package/dist/index318.js +62 -0
- package/dist/index319.js +17 -0
- package/dist/index32.js +55 -0
- package/dist/index320.js +86 -0
- package/dist/index321.js +204 -0
- package/dist/index322.js +248 -0
- package/dist/index323.js +11 -0
- package/dist/index324.js +15 -0
- package/dist/index325.js +57 -0
- package/dist/index326.js +14 -0
- package/dist/index327.js +16 -0
- package/dist/index328.js +60 -0
- package/dist/index329.js +54 -0
- package/dist/index33.js +38 -0
- package/dist/index330.js +33 -0
- package/dist/index331.js +4 -0
- package/dist/index332.js +7 -0
- package/dist/index333.js +4 -0
- package/dist/index334.js +25 -0
- package/dist/index335.js +43 -0
- package/dist/index336.js +4 -0
- package/dist/index337.js +13 -0
- package/dist/index338.js +22 -0
- package/dist/index339.js +19 -0
- package/dist/index34.js +35 -0
- package/dist/index340.js +12 -0
- package/dist/index341.js +12 -0
- package/dist/index342.js +4 -0
- package/dist/index343.js +11 -0
- package/dist/index344.js +12 -0
- package/dist/index345.js +16 -0
- package/dist/index346.js +39 -0
- package/dist/index347.js +23 -0
- package/dist/index348.js +58 -0
- package/dist/index349.js +31 -0
- package/dist/index35.js +19 -0
- package/dist/index350.js +9 -0
- package/dist/index351.js +54 -0
- package/dist/index352.js +8 -0
- package/dist/index353.js +14 -0
- package/dist/index354.js +9 -0
- package/dist/index355.js +30 -0
- package/dist/index356.js +4 -0
- package/dist/index357.js +72 -0
- package/dist/index358.js +169 -0
- package/dist/index359.js +22 -0
- package/dist/index36.js +47 -0
- package/dist/index360.js +22 -0
- package/dist/index361.js +66 -0
- package/dist/index362.js +39 -0
- package/dist/index363.js +33 -0
- package/dist/index364.js +13 -0
- package/dist/index365.js +6 -0
- package/dist/index366.js +6 -0
- package/dist/index367.js +15 -0
- package/dist/index368.js +9 -0
- package/dist/index369.js +14 -0
- package/dist/index37.js +42 -0
- package/dist/index370.js +7 -0
- package/dist/index371.js +35 -0
- package/dist/index372.js +33 -0
- package/dist/index373.js +30 -0
- package/dist/index374.js +63 -0
- package/dist/index375.js +19 -0
- package/dist/index376.js +103 -0
- package/dist/index377.js +93 -0
- package/dist/index378.js +100 -0
- package/dist/index379.js +5 -0
- package/dist/index38.js +32 -0
- package/dist/index380.js +4 -0
- package/dist/index381.js +4 -0
- package/dist/index382.js +19 -0
- package/dist/index383.js +15 -0
- package/dist/index384.js +8 -0
- package/dist/index385.js +34 -0
- package/dist/index39.js +39 -0
- package/dist/index4.js +23 -0
- package/dist/index40.js +44 -0
- package/dist/index41.js +1075 -0
- package/dist/index42.js +339 -0
- package/dist/index43.js +159 -0
- package/dist/index44.js +22 -0
- package/dist/index45.js +42 -0
- package/dist/index46.js +72 -0
- package/dist/index47.js +65 -0
- package/dist/index48.js +184 -0
- package/dist/index49.js +88 -0
- package/dist/index5.js +19 -0
- package/dist/index50.js +209 -0
- package/dist/index51.js +71 -0
- package/dist/index52.js +22 -0
- package/dist/index53.js +13 -0
- package/dist/index54.js +9 -0
- package/dist/index55.js +213 -0
- package/dist/index56.js +15 -0
- package/dist/index57.js +187 -0
- package/dist/index58.js +79 -0
- package/dist/index6.js +21 -0
- package/dist/index60.js +9 -0
- package/dist/index61.js +65 -0
- package/dist/index63.js +44 -0
- package/dist/index65.js +16 -0
- package/dist/index67.js +30 -0
- package/dist/index69.js +141 -0
- package/dist/index7.js +76 -0
- package/dist/index71.js +78 -0
- package/dist/index73.js +62 -0
- package/dist/index74.js +105 -0
- package/dist/index76.js +217 -0
- package/dist/index78.js +108 -0
- package/dist/index8.js +31 -0
- package/dist/index80.js +36 -0
- package/dist/index81.js +140 -0
- package/dist/index83.js +141 -0
- package/dist/index85.js +292 -0
- package/dist/index87.js +29 -0
- package/dist/index89.js +45 -0
- package/dist/index9.js +36 -0
- package/dist/index91.js +117 -0
- package/dist/index93.js +29 -0
- package/dist/index94.js +34 -0
- package/dist/index96.js +138 -0
- package/dist/index97.js +10 -0
- package/dist/index99.js +39 -0
- package/package.json +3 -4
- package/dist/index.umd.cjs +0 -1322
package/dist/index69.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent as L, useSlots as z, ref as a, computed as d, onUnmounted as E, onMounted as H, nextTick as T } from "vue";
|
|
2
|
+
import { useDrag as M } from "./index163.js";
|
|
3
|
+
import { useMotionProperties as N, useMotionTransitions as P } from "./index164.js";
|
|
4
|
+
const Q = L({
|
|
5
|
+
name: "QSheet",
|
|
6
|
+
props: {
|
|
7
|
+
/** is card visible */
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
/** If user clicks outside of the bottom sheet it closes */
|
|
13
|
+
allowOnClickOutside: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
},
|
|
17
|
+
allowDrag: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
/** Background of the sheet */
|
|
22
|
+
backgroundColor: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "white"
|
|
25
|
+
},
|
|
26
|
+
setNoScroll: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
showCloseButton: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
topPosition: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "top-6"
|
|
37
|
+
},
|
|
38
|
+
headerClass: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
titleClass: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "text-center text-base font-semibold leading-normal"
|
|
45
|
+
},
|
|
46
|
+
contentClass: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "p-4"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:model-value"],
|
|
52
|
+
setup(t, { emit: p }) {
|
|
53
|
+
const h = z(), f = a(), m = a(), n = a(window.innerHeight), s = a(!1), r = a(0), { motionProperties: C } = N(f), { push: b } = P(), k = {
|
|
54
|
+
type: "keyframe",
|
|
55
|
+
ease: "linear",
|
|
56
|
+
duration: 0,
|
|
57
|
+
delay: 0
|
|
58
|
+
}, S = d(function() {
|
|
59
|
+
return t.backgroundColor ? `bg-${t.backgroundColor}` : "";
|
|
60
|
+
}), i = d({
|
|
61
|
+
get: () => t.modelValue,
|
|
62
|
+
set: (e) => p("update:model-value", e)
|
|
63
|
+
}), O = d(() => t.modelValue ? "z-[201]" : "-z-40"), B = d(() => !!h?.headerAction), g = () => {
|
|
64
|
+
n.value = window.innerHeight;
|
|
65
|
+
}, D = () => {
|
|
66
|
+
t.allowOnClickOutside && l({ clickOutside: !0 });
|
|
67
|
+
}, u = () => {
|
|
68
|
+
i.value = !0;
|
|
69
|
+
}, l = async (e = { clickOutside: !1 }) => {
|
|
70
|
+
if (i.value = !1, await T(), e.clickOutside) {
|
|
71
|
+
i.value = !1;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
}, v = (e) => {
|
|
75
|
+
if (!t.allowDrag) return;
|
|
76
|
+
s.value = !1;
|
|
77
|
+
const { dragging: o } = e;
|
|
78
|
+
o ? y(e) : w(e);
|
|
79
|
+
}, y = (e) => {
|
|
80
|
+
if (e.tap) return;
|
|
81
|
+
s.value = !0;
|
|
82
|
+
const {
|
|
83
|
+
movement: [, o]
|
|
84
|
+
} = e, c = r.value + o;
|
|
85
|
+
o < -Math.abs(n.value) + n.value / 3 || b("y", c, C, k);
|
|
86
|
+
}, w = (e) => {
|
|
87
|
+
if (e.tap || e.direction[0] === 1 || e.direction[0] === -1) return;
|
|
88
|
+
s.value = !1;
|
|
89
|
+
const {
|
|
90
|
+
swipe: [, o],
|
|
91
|
+
movement: [, c]
|
|
92
|
+
} = e;
|
|
93
|
+
if (o > 0) {
|
|
94
|
+
l();
|
|
95
|
+
return;
|
|
96
|
+
} else if (o < 0) {
|
|
97
|
+
u();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (r.value = r.value + c, n.value - r.value > n.value / 3 && e.direction[1] < 0) {
|
|
101
|
+
u();
|
|
102
|
+
return;
|
|
103
|
+
} else if (e.direction[1] > 0) {
|
|
104
|
+
l();
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return E(() => {
|
|
109
|
+
t.setNoScroll && (document.body.classList.remove("scroll-disabled"), document.documentElement.classList.remove("overscroll-none")), l(), window.removeEventListener("resize", g);
|
|
110
|
+
}), H(() => {
|
|
111
|
+
u(), t.setNoScroll && (document.body.classList.add("scroll-disabled"), document.documentElement.classList.add("overscroll-none")), window.addEventListener("resize", g);
|
|
112
|
+
}), M(v, {
|
|
113
|
+
// domTarget: sheetRef,
|
|
114
|
+
domTarget: m,
|
|
115
|
+
// top portion should be the only part that is draggable
|
|
116
|
+
filterTaps: !0,
|
|
117
|
+
useTouch: !0,
|
|
118
|
+
delay: 100
|
|
119
|
+
}), {
|
|
120
|
+
sheetRef: f,
|
|
121
|
+
headerRef: m,
|
|
122
|
+
windowHeight: n,
|
|
123
|
+
isDragging: s,
|
|
124
|
+
// computed
|
|
125
|
+
bgColor: S,
|
|
126
|
+
containerClasses: O,
|
|
127
|
+
show: i,
|
|
128
|
+
hasHeaderAction: B,
|
|
129
|
+
// methods
|
|
130
|
+
onClickOutside: D,
|
|
131
|
+
onClose: l,
|
|
132
|
+
onOpen: u,
|
|
133
|
+
dragHandler: v,
|
|
134
|
+
handleDrag: y,
|
|
135
|
+
handleDragEnd: w
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
Q as default
|
|
141
|
+
};
|
package/dist/index7.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import u from "./index69.js";
|
|
2
|
+
import { resolveComponent as c, createElementBlock as t, openBlock as n, createElementVNode as o, normalizeClass as s, createCommentVNode as i, renderSlot as r, normalizeProps as p, guardReactiveProps as h, createVNode as f } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import m from "./index60.js";
|
|
5
|
+
const v = ["value"], C = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "cursor-pointer pb-3"
|
|
8
|
+
}, g = { class: "flex items-center h-6" }, k = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "w-auto"
|
|
11
|
+
}, w = { class: "w-10 text-right" };
|
|
12
|
+
function y(e, l, $, b, z, B) {
|
|
13
|
+
const a = c("q-icon");
|
|
14
|
+
return n(), t("div", {
|
|
15
|
+
class: "sheet-container",
|
|
16
|
+
value: e.modelValue
|
|
17
|
+
}, [
|
|
18
|
+
o("div", {
|
|
19
|
+
class: s([
|
|
20
|
+
"sheet-overlay",
|
|
21
|
+
{ "cursor-pointer": e.allowOnClickOutside }
|
|
22
|
+
]),
|
|
23
|
+
onClick: l[0] || (l[0] = (...d) => e.onClickOutside && e.onClickOutside(...d))
|
|
24
|
+
}, null, 2),
|
|
25
|
+
o("div", {
|
|
26
|
+
ref: "sheetRef",
|
|
27
|
+
class: s(["sheet flex flex-col", [
|
|
28
|
+
{ "card-draggable": e.allowDrag },
|
|
29
|
+
e.bgColor,
|
|
30
|
+
e.topPosition
|
|
31
|
+
]])
|
|
32
|
+
}, [
|
|
33
|
+
o("div", {
|
|
34
|
+
class: s(["sheet-header", e.headerClass]),
|
|
35
|
+
ref: "headerRef"
|
|
36
|
+
}, [
|
|
37
|
+
e.allowDrag ? (n(), t("div", C, [...l[1] || (l[1] = [
|
|
38
|
+
o("div", { class: "bg-gray-20 h-1 w-11 rounded cursor-pointer mx-auto z-[201]" }, null, -1)
|
|
39
|
+
])])) : i("", !0),
|
|
40
|
+
o("div", g, [
|
|
41
|
+
e.showCloseButton ? (n(), t("div", k, [
|
|
42
|
+
r(e.$slots, "backAction", p(h({ onClose: e.onClose })), () => [
|
|
43
|
+
f(a, {
|
|
44
|
+
icon: "close",
|
|
45
|
+
type: "line",
|
|
46
|
+
size: "md",
|
|
47
|
+
class: "cursor-pointer shrink",
|
|
48
|
+
onClick: e.onClose
|
|
49
|
+
}, null, 8, ["onClick"])
|
|
50
|
+
], !0)
|
|
51
|
+
])) : i("", !0),
|
|
52
|
+
o("h5", {
|
|
53
|
+
class: s(["grow text-inkwell-40", e.titleClass])
|
|
54
|
+
}, [
|
|
55
|
+
r(e.$slots, "header", {}, void 0, !0)
|
|
56
|
+
], 2),
|
|
57
|
+
o("div", w, [
|
|
58
|
+
r(e.$slots, "headerAction", {}, void 0, !0)
|
|
59
|
+
])
|
|
60
|
+
])
|
|
61
|
+
], 2),
|
|
62
|
+
o("div", {
|
|
63
|
+
class: s(["sheet-body grow", [
|
|
64
|
+
e.isDragging ? "overflow-y-hidden" : "overflow-y-auto",
|
|
65
|
+
e.contentClass
|
|
66
|
+
]])
|
|
67
|
+
}, [
|
|
68
|
+
r(e.$slots, "default", {}, void 0, !0)
|
|
69
|
+
], 2)
|
|
70
|
+
], 2)
|
|
71
|
+
], 8, v);
|
|
72
|
+
}
|
|
73
|
+
const P = /* @__PURE__ */ m(u, [["render", y], ["__scopeId", "data-v-91ada41d"]]);
|
|
74
|
+
export {
|
|
75
|
+
P as default
|
|
76
|
+
};
|
package/dist/index71.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as l, computed as a } from "vue";
|
|
2
|
+
const t = "button-", s = l({
|
|
3
|
+
name: "QButton",
|
|
4
|
+
props: {
|
|
5
|
+
/** Determines the size (height) of the button */
|
|
6
|
+
size: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "md"
|
|
9
|
+
},
|
|
10
|
+
/** Determines is the button will be a wide button */
|
|
11
|
+
isWide: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
/** Determines the variant of the button */
|
|
16
|
+
status: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "primary"
|
|
19
|
+
},
|
|
20
|
+
hasOutline: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
/** Determines if the user can take action or not */
|
|
25
|
+
disabled: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
/** if loading spinner should be visible */
|
|
30
|
+
loading: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
useLoadingSpinner: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
isFab: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
/** Should this be rounded or pill shape */
|
|
43
|
+
shape: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
noMinWidth: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup(e) {
|
|
53
|
+
const n = a(() => [
|
|
54
|
+
t + e.size,
|
|
55
|
+
{
|
|
56
|
+
[t + e.status]: e.status
|
|
57
|
+
},
|
|
58
|
+
{ "min-w-min": !!e.noMinWidth },
|
|
59
|
+
{ [t + "wide"]: !!e.isWide },
|
|
60
|
+
{ [t + e.shape]: !!e.shape },
|
|
61
|
+
{ [t + "fab"]: !!e.isFab },
|
|
62
|
+
{
|
|
63
|
+
[t + "outline"]: !!e.hasOutline || e.status === "secondary"
|
|
64
|
+
}
|
|
65
|
+
]), i = a(() => ({
|
|
66
|
+
disabled: !!e.disabled,
|
|
67
|
+
"aria-disabled": !!e.disabled
|
|
68
|
+
}));
|
|
69
|
+
return {
|
|
70
|
+
propsClasses: n,
|
|
71
|
+
disabledAttributes: i
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
t as BTN_CLASS_PREFIX,
|
|
77
|
+
s as default
|
|
78
|
+
};
|
package/dist/index73.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as a, computed as n } from "vue";
|
|
2
|
+
import d from "./index165.js";
|
|
3
|
+
const s = a({
|
|
4
|
+
name: "ButtonGroup",
|
|
5
|
+
components: {
|
|
6
|
+
SelectButton: d
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
// Pass in a value for the v-model
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: [String, Object, Array],
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
options: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
/** Needed when options are array of objects. optionLabel is what is visible to the user */
|
|
19
|
+
optionLabel: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
/** Pass which option is disabled */
|
|
24
|
+
optionDisabled: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
labelBy: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
/** Allow user to select multiple options */
|
|
33
|
+
allowMultiple: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
/** Disable the button group */
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
label: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "label"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:modelValue"],
|
|
48
|
+
setup(t, { emit: l }) {
|
|
49
|
+
return {
|
|
50
|
+
selected: n({
|
|
51
|
+
get: () => t.modelValue,
|
|
52
|
+
set: (e) => {
|
|
53
|
+
const o = !e || Array.isArray(e) && e.length === 0 ? t.modelValue : e;
|
|
54
|
+
l("update:modelValue", o);
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
s as default
|
|
62
|
+
};
|
package/dist/index74.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as f, ref as i, watch as o } from "vue";
|
|
2
|
+
import m from "./index26.js";
|
|
3
|
+
const y = f({
|
|
4
|
+
name: "QCheckbox",
|
|
5
|
+
components: {
|
|
6
|
+
QIcon: m
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
// Id applied to the checkbox input.
|
|
10
|
+
id: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
// Label shown for the checkbox.
|
|
15
|
+
// i.e. 'Accept terms and conditions.'
|
|
16
|
+
label: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
// Name field for form submission, if necessary.
|
|
21
|
+
name: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
// Contains the v-model sent through from the parent component.
|
|
26
|
+
// If an array, value would need to be part of modelValue to be checked.
|
|
27
|
+
// If anything else, value would need to match modelValue to be checked.
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: [String, Number, Boolean, Object, Array],
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
// Value of checkbox to send in form submission when checked.
|
|
33
|
+
// i.e. 'Yes'
|
|
34
|
+
value: {
|
|
35
|
+
type: [Boolean, String, Number, Object],
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
// Value of checkbox to send in form submission when NOT checked.
|
|
39
|
+
// i.e. 'No'
|
|
40
|
+
uncheckedValue: {
|
|
41
|
+
type: [Boolean, String, Number],
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
// Disables the checkbox.
|
|
45
|
+
disabled: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
// Specifies the icon to show in the checkbox when checked.
|
|
50
|
+
// Default is a checkmark.
|
|
51
|
+
icon: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "check"
|
|
54
|
+
},
|
|
55
|
+
// Specifies the background color of the checked checkbox.
|
|
56
|
+
color: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "blue-20"
|
|
59
|
+
},
|
|
60
|
+
// Converts the normal checkbox into a sliding toggle button.
|
|
61
|
+
toggle: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
// Allows for different sizes of checkboxes or toggles.
|
|
66
|
+
// We haven't necessarily set up size styling in the scss file
|
|
67
|
+
// but this gives us flexibility that we have for inputs and selects.
|
|
68
|
+
size: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "md"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
emits: ["change", "update:modelValue", "update:checked"],
|
|
74
|
+
setup(e, n) {
|
|
75
|
+
let t = !1;
|
|
76
|
+
e.modelValue instanceof Array ? t = !!e.modelValue.find((l) => e.value === l) : e.value && (t = e.modelValue === e.value);
|
|
77
|
+
const u = i(), a = i(t);
|
|
78
|
+
o(() => e.modelValue, () => {
|
|
79
|
+
let l = !1;
|
|
80
|
+
e.modelValue instanceof Array ? l = !!e.modelValue.find((d) => e.value === d) : e.value && (l = e.modelValue === e.value), a.value !== l && (u.value.checked = l, c());
|
|
81
|
+
});
|
|
82
|
+
const c = () => {
|
|
83
|
+
a.value = u.value.checked;
|
|
84
|
+
let l = a.value ? e.value : e.uncheckedValue;
|
|
85
|
+
if (e.modelValue instanceof Array)
|
|
86
|
+
if (l = [...e.modelValue], a.value)
|
|
87
|
+
l.push(e.value);
|
|
88
|
+
else {
|
|
89
|
+
const d = l.indexOf(e.value);
|
|
90
|
+
l.splice(d, 1);
|
|
91
|
+
}
|
|
92
|
+
n.emit("update:modelValue", l), n.emit("update:checked", a.value);
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
// Refs
|
|
96
|
+
checkboxElement: u,
|
|
97
|
+
isChecked: a,
|
|
98
|
+
// Methods
|
|
99
|
+
handleChange: c
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
y as default
|
|
105
|
+
};
|
package/dist/index76.js
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { defineComponent as B, ref as a, computed as f, nextTick as L, watch as Q } from "vue";
|
|
2
|
+
import { DateTime as p } from "./index156.js";
|
|
3
|
+
import h from "./index52.js";
|
|
4
|
+
import { useI18n as P } from "vue-i18n";
|
|
5
|
+
import S from "./index4.js";
|
|
6
|
+
import H from "./index28.js";
|
|
7
|
+
import j from "./index49.js";
|
|
8
|
+
import R from "./index31.js";
|
|
9
|
+
import F from "./index37.js";
|
|
10
|
+
import $ from "./index50.js";
|
|
11
|
+
const W = {
|
|
12
|
+
/** ID of the comment - maybe this will be in the data. We will need this for taking action on a comment */
|
|
13
|
+
id: {
|
|
14
|
+
type: [Number, String],
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
attachments: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: []
|
|
20
|
+
},
|
|
21
|
+
attachmentClickEvent: {
|
|
22
|
+
type: Function,
|
|
23
|
+
default: () => {
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
attachmentRemoveEvent: {
|
|
27
|
+
type: Function,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
/** Copy link option */
|
|
32
|
+
canCopyLink: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
/** Delete option */
|
|
37
|
+
canDelete: {
|
|
38
|
+
type: [Boolean, Number],
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
41
|
+
/** Edit option */
|
|
42
|
+
canEdit: {
|
|
43
|
+
type: [Boolean, Number],
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
/** Pin option */
|
|
47
|
+
canPin: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
/** User object to populate user related information */
|
|
52
|
+
user: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
56
|
+
comment: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
/** Comment timestamp OLD: timestamp */
|
|
61
|
+
dateUtc: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: null
|
|
64
|
+
},
|
|
65
|
+
dateLocal: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
created: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default: null
|
|
72
|
+
},
|
|
73
|
+
edited: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: null
|
|
76
|
+
},
|
|
77
|
+
onUpdateComment: {
|
|
78
|
+
type: Function,
|
|
79
|
+
default: () => {
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
pinned: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
85
|
+
},
|
|
86
|
+
processing: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
showAvatar: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !0
|
|
93
|
+
},
|
|
94
|
+
showRemoveButton: {
|
|
95
|
+
type: Object,
|
|
96
|
+
default: () => {
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, ne = B({
|
|
100
|
+
name: "QComment",
|
|
101
|
+
components: {
|
|
102
|
+
QAvatar: S,
|
|
103
|
+
QImageGallery: H,
|
|
104
|
+
QMenu: R,
|
|
105
|
+
QPopover: F,
|
|
106
|
+
QWarningModal: j,
|
|
107
|
+
QWysiwyg: $
|
|
108
|
+
},
|
|
109
|
+
props: W,
|
|
110
|
+
emits: ["update:model-value"],
|
|
111
|
+
setup(e) {
|
|
112
|
+
const { t: c } = P(), w = [{ text: c("HC_CANCEL") }], u = a(null), m = a(!1), i = a(""), n = a(!1), k = a(!1), l = a(!1), s = a(""), o = a(), E = f(() => {
|
|
113
|
+
const t = [];
|
|
114
|
+
return e.canCopyLink && t.push({
|
|
115
|
+
text: c("HC_COPY_LINK"),
|
|
116
|
+
classes: "!text-blue-20 md:!text-inkwell-0",
|
|
117
|
+
event: d
|
|
118
|
+
}), e.canPin && t.push({
|
|
119
|
+
text: c(
|
|
120
|
+
e.pinned ? "HC_UNPIN_COMMENT" : "HC_PIN_COMMENT"
|
|
121
|
+
),
|
|
122
|
+
classes: "!text-blue-20 md:!text-inkwell-0",
|
|
123
|
+
event: _
|
|
124
|
+
}), e.canEdit && t.push({
|
|
125
|
+
text: c("HC_EDIT_COMMENT"),
|
|
126
|
+
classes: "!text-blue-20 md:!text-inkwell-0",
|
|
127
|
+
event: y
|
|
128
|
+
}), e.canDelete && t.push({
|
|
129
|
+
text: c("HC_DELETE_COMMENT"),
|
|
130
|
+
classes: "!text-red-20",
|
|
131
|
+
event: v
|
|
132
|
+
}), t;
|
|
133
|
+
}), g = f(() => e.user.firstName + " " + e.user.lastName.substring(0, 1)), M = f(() => p.fromISO(e.dateUtc).toLocaleString(
|
|
134
|
+
p.DATETIME_MED
|
|
135
|
+
)), x = f(() => {
|
|
136
|
+
const t = e.user.name.split(" "), U = t[0]?.charAt(0) || "", O = t[1]?.charAt(0) || "";
|
|
137
|
+
return (U + O).toUpperCase();
|
|
138
|
+
}), N = () => {
|
|
139
|
+
m.value = !1, i.value = "";
|
|
140
|
+
}, d = () => {
|
|
141
|
+
navigator.clipboard.writeText(
|
|
142
|
+
`${window.location.href}#comment-${e.id}`
|
|
143
|
+
), n.value = !1;
|
|
144
|
+
}, b = (t) => {
|
|
145
|
+
u.value = t, s.value = "attachment", l.value = !0, n.value = !1;
|
|
146
|
+
}, r = async () => {
|
|
147
|
+
u.value && await e.onUpdateComment({
|
|
148
|
+
event: "delete-attachment",
|
|
149
|
+
value: u.value.id
|
|
150
|
+
}), l.value = !1;
|
|
151
|
+
}, v = () => {
|
|
152
|
+
s.value = "comment", l.value = !0, n.value = !1;
|
|
153
|
+
}, C = async () => {
|
|
154
|
+
await e.onUpdateComment({
|
|
155
|
+
event: "delete-comment",
|
|
156
|
+
value: e.id
|
|
157
|
+
}), l.value = !1;
|
|
158
|
+
}, A = () => {
|
|
159
|
+
s.value === "comment" ? C() : r();
|
|
160
|
+
}, y = async () => {
|
|
161
|
+
m.value = !0, i.value = e.comment, await L(), o.value?.editor?.chain().focus("end").run(), n.value = !1;
|
|
162
|
+
const t = document.getElementById(`comment-${e.id}`);
|
|
163
|
+
t && !h.md && t.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
164
|
+
}, D = () => {
|
|
165
|
+
n.value = !n.value;
|
|
166
|
+
}, T = (t) => {
|
|
167
|
+
t.event();
|
|
168
|
+
}, _ = async () => {
|
|
169
|
+
n.value = !1, await e.onUpdateComment({
|
|
170
|
+
event: "update-pin",
|
|
171
|
+
value: !e.pinned
|
|
172
|
+
});
|
|
173
|
+
}, I = async () => {
|
|
174
|
+
await e.onUpdateComment({
|
|
175
|
+
event: "update-comment",
|
|
176
|
+
value: i.value
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
return Q(() => e.processing, (t) => {
|
|
180
|
+
t || (m.value = !1, i.value = "", l.value = !1, o.value && o.value.allowAttachments && (o.value?.fileUploadRef?.fileUpload?.clear(), o.value.uploadedfiles = []));
|
|
181
|
+
}), {
|
|
182
|
+
// static
|
|
183
|
+
menuActions: w,
|
|
184
|
+
// refs
|
|
185
|
+
activeAttachment: u,
|
|
186
|
+
editMode: m,
|
|
187
|
+
editText: i,
|
|
188
|
+
showControls: n,
|
|
189
|
+
warningAction: k,
|
|
190
|
+
warningModal: l,
|
|
191
|
+
warningType: s,
|
|
192
|
+
wysiwygRef: o,
|
|
193
|
+
// computed
|
|
194
|
+
allowedActions: E,
|
|
195
|
+
displayName: g,
|
|
196
|
+
formatDate: M,
|
|
197
|
+
userInitials: x,
|
|
198
|
+
// methods
|
|
199
|
+
onClickCancel: N,
|
|
200
|
+
onClickCopyLink: d,
|
|
201
|
+
onClickDeleteAttachment: b,
|
|
202
|
+
onClickDeleteAttachmentConfirm: r,
|
|
203
|
+
onClickDeleteComment: v,
|
|
204
|
+
onClickDeleteCommentConfirm: C,
|
|
205
|
+
onClickDeleteConfirm: A,
|
|
206
|
+
onClickEditComment: y,
|
|
207
|
+
onClickMenu: D,
|
|
208
|
+
onClickMobileMenuLink: T,
|
|
209
|
+
onClickSave: I,
|
|
210
|
+
// composables
|
|
211
|
+
mq: h
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
export {
|
|
216
|
+
ne as default
|
|
217
|
+
};
|