@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/index14.js
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import y from "./index81.js";
|
|
2
|
+
import { resolveComponent as d, createElementBlock as f, openBlock as t, createElementVNode as l, renderSlot as s, createCommentVNode as i, createVNode as a, toDisplayString as u, normalizeProps as m, guardReactiveProps as h, createBlock as c, withCtx as o, createTextVNode as b, normalizeClass as g, Transition as w } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import q from "./index60.js";
|
|
5
|
+
const B = ["id"], F = { class: "search grow" }, V = {
|
|
6
|
+
class: "search-label flex items-center",
|
|
7
|
+
for: "search"
|
|
8
|
+
}, z = { class: "results-count mx-1 shrink-0 text-xs text-gray-40 capitalize" }, P = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "filters shrink-0 h-6"
|
|
11
|
+
}, H = { class: "flex relative" }, E = { class: "!text-blue-20 text-tiny font-bold" }, R = { key: 1 }, A = { class: "flex relative" }, T = { class: "!text-blue-20 text-tiny font-bold" }, U = { class: "flex relative" }, _ = { class: "!text-blue-20 text-tiny font-bold" }, L = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "actions shrink-0 flex items-center h-6"
|
|
14
|
+
};
|
|
15
|
+
function N(e, r, D, I, Q, X) {
|
|
16
|
+
const p = d("q-icon"), k = d("q-input"), C = d("q-badge"), v = d("q-tooltip"), $ = d("q-popover"), S = d("q-bottom-sheet");
|
|
17
|
+
return t(), f("div", {
|
|
18
|
+
id: e.id,
|
|
19
|
+
class: "data-filter flex items-center p-4 bg-white"
|
|
20
|
+
}, [
|
|
21
|
+
l("div", F, [
|
|
22
|
+
e.hasSearch ? s(e.$slots, "search", { key: 0 }, () => [
|
|
23
|
+
l("label", V, [
|
|
24
|
+
a(p, {
|
|
25
|
+
class: "mr-2 shrink-0",
|
|
26
|
+
color: "gray-40",
|
|
27
|
+
icon: "search",
|
|
28
|
+
size: "md",
|
|
29
|
+
type: ""
|
|
30
|
+
}),
|
|
31
|
+
a(k, {
|
|
32
|
+
id: "search",
|
|
33
|
+
"model-value": e.search,
|
|
34
|
+
"hide-clear": e.mq.md,
|
|
35
|
+
placeholder: e.searchPlaceholder || e.$t("HC_SEARCH"),
|
|
36
|
+
class: "text-base grow",
|
|
37
|
+
"control-class": "!border-0 !px-0",
|
|
38
|
+
size: "xxs",
|
|
39
|
+
"onUpdate:modelValue": e.debouncedSearch
|
|
40
|
+
}, null, 8, ["model-value", "hide-clear", "placeholder", "onUpdate:modelValue"])
|
|
41
|
+
])
|
|
42
|
+
], !0) : i("", !0)
|
|
43
|
+
]),
|
|
44
|
+
e.showResultsCount ? s(e.$slots, "resultsCount", { key: 0 }, () => [
|
|
45
|
+
l("div", z, u(e.filteredCount === 1 ? "1 " + e.$t("HC_RESULT") : e.$t("HC_X_RESULTS", { count: e.filteredCount })), 1)
|
|
46
|
+
], !0) : i("", !0),
|
|
47
|
+
s(e.$slots, "beforeFilters", {}, void 0, !0),
|
|
48
|
+
e.filters?.length ? (t(), f("div", P, [
|
|
49
|
+
s(e.$slots, "filters", m(h({ filtersCount: e.filtersCount })), () => [
|
|
50
|
+
e.$slots.filterContent && e.mq.md ? (t(), c($, {
|
|
51
|
+
key: 0,
|
|
52
|
+
modelValue: e.showFilterPopover,
|
|
53
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.showFilterPopover = n),
|
|
54
|
+
reposition: e.repositionPopover,
|
|
55
|
+
position: "bottom",
|
|
56
|
+
align: "right",
|
|
57
|
+
trigger: "click",
|
|
58
|
+
size: "lg"
|
|
59
|
+
}, {
|
|
60
|
+
trigger: o(({ onClick: n }) => [
|
|
61
|
+
a(v, { class: "z-[45] ml-2" }, {
|
|
62
|
+
trigger: o(() => [
|
|
63
|
+
l("div", H, [
|
|
64
|
+
a(p, {
|
|
65
|
+
class: "filters-icon ml-0 cursor-pointer",
|
|
66
|
+
color: e.showFilterPopover ? "blue-20" : "gray-40",
|
|
67
|
+
icon: "filter",
|
|
68
|
+
size: "md",
|
|
69
|
+
onClick: (j) => e.onFilterClick(n)
|
|
70
|
+
}, null, 8, ["color", "onClick"]),
|
|
71
|
+
e.filtersCount ? (t(), c(C, {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: g([
|
|
74
|
+
"filters-count absolute !h-4 !w-4",
|
|
75
|
+
"-top-[0.3125rem] -right-[0.375rem]"
|
|
76
|
+
]),
|
|
77
|
+
color: "white"
|
|
78
|
+
}, {
|
|
79
|
+
text: o(() => [
|
|
80
|
+
l("span", E, u(e.filtersCount), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})) : i("", !0)
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
content: o(() => [
|
|
87
|
+
b(u(e.$t("HC_FILTERS")), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 2
|
|
90
|
+
}, 1024)
|
|
91
|
+
]),
|
|
92
|
+
content: o(() => [
|
|
93
|
+
s(e.$slots, "filterContent", m(h({ closePopover: e.closePopover })), void 0, !0)
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, ["modelValue", "reposition"])) : e.$slots.filterSheetContent && !e.mq.md ? (t(), f("div", R, [
|
|
97
|
+
l("div", A, [
|
|
98
|
+
a(p, {
|
|
99
|
+
class: "filters-icon ml-0 cursor-pointer",
|
|
100
|
+
color: e.showFilterBottomSheet ? "blue-20" : "gray-40",
|
|
101
|
+
icon: "filter",
|
|
102
|
+
size: "md",
|
|
103
|
+
onClick: r[1] || (r[1] = (n) => e.showFilterBottomSheet = !0)
|
|
104
|
+
}, null, 8, ["color"]),
|
|
105
|
+
e.filtersCount ? (t(), c(C, {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: g([
|
|
108
|
+
"filters-count absolute !h-4 !w-4",
|
|
109
|
+
"-top-[0.3125rem] -right-[0.375rem]"
|
|
110
|
+
]),
|
|
111
|
+
color: "white"
|
|
112
|
+
}, {
|
|
113
|
+
text: o(() => [
|
|
114
|
+
l("span", T, u(e.filtersCount), 1)
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})) : i("", !0)
|
|
118
|
+
]),
|
|
119
|
+
a(w, {
|
|
120
|
+
name: "slide-up-fade",
|
|
121
|
+
appear: ""
|
|
122
|
+
}, {
|
|
123
|
+
default: o(() => [
|
|
124
|
+
e.showFilterBottomSheet ? (t(), c(S, {
|
|
125
|
+
key: 0,
|
|
126
|
+
modelValue: e.showFilterBottomSheet,
|
|
127
|
+
"onUpdate:modelValue": r[2] || (r[2] = (n) => e.showFilterBottomSheet = n),
|
|
128
|
+
"background-color": "gray-00"
|
|
129
|
+
}, {
|
|
130
|
+
backAction: o(() => [
|
|
131
|
+
s(e.$slots, "filterSheetBackAction", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
|
|
132
|
+
]),
|
|
133
|
+
header: o(() => [
|
|
134
|
+
s(e.$slots, "filterSheetHeader", {}, void 0, !0)
|
|
135
|
+
]),
|
|
136
|
+
headerAction: o(() => [
|
|
137
|
+
s(e.$slots, "filterSheetHeaderAction", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
|
|
138
|
+
]),
|
|
139
|
+
default: o(() => [
|
|
140
|
+
s(e.$slots, "filterSheetContent", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
|
|
141
|
+
]),
|
|
142
|
+
_: 3
|
|
143
|
+
}, 8, ["modelValue"])) : i("", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
})
|
|
147
|
+
])) : (t(), c(v, {
|
|
148
|
+
key: 2,
|
|
149
|
+
class: "z-[45] ml-2"
|
|
150
|
+
}, {
|
|
151
|
+
trigger: o(() => [
|
|
152
|
+
l("div", U, [
|
|
153
|
+
a(p, {
|
|
154
|
+
class: "filters-icon ml-0 cursor-pointer",
|
|
155
|
+
color: e.filtersActive ? "blue-20" : "gray-40",
|
|
156
|
+
icon: "filter",
|
|
157
|
+
size: "md",
|
|
158
|
+
onClick: r[3] || (r[3] = (n) => e.$emit("click:filters"))
|
|
159
|
+
}, null, 8, ["color"]),
|
|
160
|
+
e.filtersCount ? (t(), c(C, {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: g([
|
|
163
|
+
"filters-count absolute !h-4 !w-4",
|
|
164
|
+
"-top-[0.3125rem] -right-[0.375rem]"
|
|
165
|
+
]),
|
|
166
|
+
color: "white"
|
|
167
|
+
}, {
|
|
168
|
+
text: o(() => [
|
|
169
|
+
l("span", _, u(e.filtersCount), 1)
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : i("", !0)
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
content: o(() => [
|
|
176
|
+
b(u(e.$t("HC_FILTERS")), 1)
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}))
|
|
180
|
+
], !0)
|
|
181
|
+
])) : i("", !0),
|
|
182
|
+
e.$slots.actions ? (t(), f("div", L, [
|
|
183
|
+
s(e.$slots, "actions", {}, void 0, !0)
|
|
184
|
+
])) : i("", !0)
|
|
185
|
+
], 8, B);
|
|
186
|
+
}
|
|
187
|
+
const O = /* @__PURE__ */ q(y, [["render", N], ["__scopeId", "data-v-a0babcc4"]]);
|
|
188
|
+
export {
|
|
189
|
+
O as default
|
|
190
|
+
};
|
package/dist/index141.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as x, ref as r, computed as s, onMounted as y } from "vue";
|
|
2
|
+
const n = "update:model-value", p = x({
|
|
3
|
+
name: "QTextarea",
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [String, Number],
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
// Used for additional classes that might be needed on the control wrapper
|
|
11
|
+
controlClass: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
// Placeholder is persistent and moved to the top of the textfield.
|
|
16
|
+
persistentPlaceholder: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
// Placeholder text
|
|
21
|
+
placeholder: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
/** Number of rows in the textarea default is 2 */
|
|
26
|
+
rows: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 2
|
|
29
|
+
},
|
|
30
|
+
// error or success to change the textarea styles
|
|
31
|
+
status: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
// Used for additional classes that might be needed
|
|
36
|
+
textareaClass: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
isDisabled: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: [n],
|
|
46
|
+
setup(e, { attrs: o, emit: d, slots: i }) {
|
|
47
|
+
const l = r(!1), t = r(), c = s(() => !!i.actions), a = s(() => !!o.disabled || !!e.isDisabled), f = s(() => [
|
|
48
|
+
{
|
|
49
|
+
[`has-${e.status}`]: e.status && !a.value
|
|
50
|
+
},
|
|
51
|
+
{ "is-focused": l.value },
|
|
52
|
+
{ "is-disabled": a.value }
|
|
53
|
+
]), h = s(() => [
|
|
54
|
+
"textarea",
|
|
55
|
+
e.textareaClass,
|
|
56
|
+
{ [e.status]: e.status && !a.value },
|
|
57
|
+
{
|
|
58
|
+
populated: !!e.modelValue && e.persistentPlaceholder
|
|
59
|
+
},
|
|
60
|
+
{ "is-focused": l.value && e.persistentPlaceholder }
|
|
61
|
+
]), u = () => {
|
|
62
|
+
t.value.style.height = "auto", t.value.style.height = t.value.scrollHeight + "px";
|
|
63
|
+
}, m = (v) => {
|
|
64
|
+
d(
|
|
65
|
+
n,
|
|
66
|
+
v.target.value
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
return y(() => {
|
|
70
|
+
u();
|
|
71
|
+
}), {
|
|
72
|
+
// Refs
|
|
73
|
+
focused: l,
|
|
74
|
+
// Computed
|
|
75
|
+
disabled: a,
|
|
76
|
+
rootClasses: f,
|
|
77
|
+
textarea: t,
|
|
78
|
+
textareaClasses: h,
|
|
79
|
+
hasActions: c,
|
|
80
|
+
// Methods
|
|
81
|
+
resizeTextarea: u,
|
|
82
|
+
updateValue: m
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
n as UPDATE_TEXTAREA_EVENT,
|
|
88
|
+
p as default
|
|
89
|
+
};
|
package/dist/index143.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as T, ref as v, computed as a, onBeforeUnmount as y, watchEffect as g } from "vue";
|
|
2
|
+
const u = "update:modelValue", i = "undo-action", s = "timeout-done", E = T({
|
|
3
|
+
name: "QToast",
|
|
4
|
+
props: {
|
|
5
|
+
/** is toast visible */
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1,
|
|
9
|
+
required: !0
|
|
10
|
+
},
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
message: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
duration: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: null,
|
|
26
|
+
required: !1
|
|
27
|
+
},
|
|
28
|
+
position: {
|
|
29
|
+
type: [String, Array],
|
|
30
|
+
default: null,
|
|
31
|
+
required: !1
|
|
32
|
+
},
|
|
33
|
+
withTransition: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
// 'component-slide-right' or 'component-slide-top' for mobile
|
|
38
|
+
transitionClass: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "component-slide-right"
|
|
41
|
+
},
|
|
42
|
+
closeButton: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
undoButton: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: [u, i, s],
|
|
52
|
+
setup(t, { emit: n }) {
|
|
53
|
+
const e = v(null), o = a({
|
|
54
|
+
get: () => t.modelValue,
|
|
55
|
+
set: (m) => {
|
|
56
|
+
n(u, m);
|
|
57
|
+
}
|
|
58
|
+
}), d = a(
|
|
59
|
+
() => t.variant ? "is-" + t.variant : ""
|
|
60
|
+
), r = a(
|
|
61
|
+
() => t.position ? "toast-fixed " + t.position : ""
|
|
62
|
+
), f = a(
|
|
63
|
+
() => t.withTransition && t.transitionClass
|
|
64
|
+
), c = () => {
|
|
65
|
+
n(i);
|
|
66
|
+
}, l = () => {
|
|
67
|
+
e.value = setTimeout(() => {
|
|
68
|
+
o.value = !1, n(s);
|
|
69
|
+
}, t.duration);
|
|
70
|
+
};
|
|
71
|
+
return y(() => {
|
|
72
|
+
e.value && (clearTimeout(e.value), e.value = null);
|
|
73
|
+
}), g(() => {
|
|
74
|
+
o.value && t.duration ? l() : e.value && (clearTimeout(e.value), e.value = null);
|
|
75
|
+
}), {
|
|
76
|
+
// Computed
|
|
77
|
+
show: o,
|
|
78
|
+
// v-model boolean value
|
|
79
|
+
statusClass: d,
|
|
80
|
+
positionClass: r,
|
|
81
|
+
computedTransition: f,
|
|
82
|
+
// Methods
|
|
83
|
+
startTimeout: l,
|
|
84
|
+
undoAction: c
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
s as TIMEOUT_DONE,
|
|
90
|
+
i as UNDO_ACTION_EVENT,
|
|
91
|
+
u as UPDATE_MODEL_VALUE,
|
|
92
|
+
E as default
|
|
93
|
+
};
|
package/dist/index145.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as p, ref as d, computed as v, onMounted as g, onUnmounted as h, watch as y, nextTick as m } from "vue";
|
|
2
|
+
import { useThrottleFn as w } from "./index166.js";
|
|
3
|
+
const T = p({
|
|
4
|
+
name: "QTooltip",
|
|
5
|
+
props: {
|
|
6
|
+
// Pass in an ID unique to the tooltip used for aria-describedby.
|
|
7
|
+
id: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "tooltip"
|
|
10
|
+
},
|
|
11
|
+
/** Set tooltip color - currently only inkwell-30 */
|
|
12
|
+
color: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "inkwell-30"
|
|
15
|
+
},
|
|
16
|
+
/** Controls if the tooltip is in controlled mode */
|
|
17
|
+
controlled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
/** Sets the width of the element as well as the alignment and wrapping of the tooltip text*/
|
|
26
|
+
noWrap: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
/** Ability to customize the tooltip position (top, bottom, left, right) */
|
|
31
|
+
position: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "bottom"
|
|
34
|
+
},
|
|
35
|
+
/** Set if the tooltip is relatively positioned or not */
|
|
36
|
+
relative: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
/** Set if the tooltip is teleported to the the teleportTo element */
|
|
41
|
+
teleport: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !1
|
|
44
|
+
},
|
|
45
|
+
teleportTo: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "body"
|
|
48
|
+
},
|
|
49
|
+
/** Ability to set custom tooltip classes */
|
|
50
|
+
tooltipClasses: {
|
|
51
|
+
type: [String, Array, Object],
|
|
52
|
+
default: ""
|
|
53
|
+
},
|
|
54
|
+
/** Controls visibility in controlled mode */
|
|
55
|
+
visible: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
setup(e) {
|
|
61
|
+
const o = d(!1), l = d({
|
|
62
|
+
top: "0",
|
|
63
|
+
left: "0"
|
|
64
|
+
}), r = d(null), c = v(() => e.controlled ? e.visible : e.teleport ? o.value : !1), u = () => {
|
|
65
|
+
if (!r.value) return;
|
|
66
|
+
const t = r.value.getBoundingClientRect(), a = 12;
|
|
67
|
+
e.position === "top" ? (l.value.top = `${t.top - a}px`, l.value.left = `${t.left + t.width / 2}px`) : e.position === "bottom" ? (l.value.top = `${t.bottom + a}px`, l.value.left = `${t.left + t.width / 2}px`) : e.position === "left" ? (l.value.left = `${t.left - a}px`, l.value.top = `${t.top + t.height / 2}px`) : e.position === "right" && (l.value.left = `${t.right + a}px`, l.value.top = `${t.top + t.height / 2}px`);
|
|
68
|
+
}, f = () => {
|
|
69
|
+
o.value = !0, m(() => {
|
|
70
|
+
u();
|
|
71
|
+
});
|
|
72
|
+
}, i = () => {
|
|
73
|
+
o.value = !1, l.value.top = "0", l.value.left = "0";
|
|
74
|
+
}, n = w(
|
|
75
|
+
() => {
|
|
76
|
+
e.controlled && o.value === !0 && u(), !e.controlled && o.value === !0 && i();
|
|
77
|
+
},
|
|
78
|
+
100,
|
|
79
|
+
!0
|
|
80
|
+
);
|
|
81
|
+
return g(() => {
|
|
82
|
+
e.teleport && e.controlled && (e.visible ? f() : i()), e.teleport && (window.addEventListener(
|
|
83
|
+
"resize",
|
|
84
|
+
n
|
|
85
|
+
), window.addEventListener(
|
|
86
|
+
"scroll",
|
|
87
|
+
n
|
|
88
|
+
));
|
|
89
|
+
}), h(() => {
|
|
90
|
+
e.teleport && (window.removeEventListener(
|
|
91
|
+
"resize",
|
|
92
|
+
n
|
|
93
|
+
), window.removeEventListener(
|
|
94
|
+
"scroll",
|
|
95
|
+
n
|
|
96
|
+
));
|
|
97
|
+
}), y(
|
|
98
|
+
() => e.visible,
|
|
99
|
+
(s) => {
|
|
100
|
+
e.teleport && e.controlled && (s ? f() : i());
|
|
101
|
+
}
|
|
102
|
+
), {
|
|
103
|
+
// Refs
|
|
104
|
+
tooltipStyle: l,
|
|
105
|
+
tooltipTarget: r,
|
|
106
|
+
// Computed
|
|
107
|
+
isVisible: c,
|
|
108
|
+
// Methods
|
|
109
|
+
hideTooltip: i,
|
|
110
|
+
showTooltip: f
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
T as default
|
|
116
|
+
};
|