@quoreadmin/ui 1.7.6 → 1.7.8
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/index115.js +24 -18
- package/dist/index140.js +374 -352
- package/dist/index142.js +10 -5
- package/dist/index171.js +14 -14
- package/dist/index172.js +3 -3
- package/dist/index175.js +4 -4
- package/dist/index182.js +10 -10
- package/dist/index184.js +10 -10
- package/dist/index190.js +9 -9
- package/dist/index191.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index193.js +1 -1
- package/dist/index20.js +26 -19
- package/dist/index201.js +4 -4
- package/dist/index202.js +84 -29
- package/dist/index203.js +400 -109
- package/dist/index204.js +22 -36
- package/dist/index205.js +161 -26
- package/dist/index206.js +225 -33
- package/dist/index207.js +37 -9
- package/dist/index208.js +10 -19
- package/dist/index209.js +33 -10
- package/dist/index210.js +116 -10
- package/dist/index211.js +35 -50
- package/dist/index212.js +26 -43
- package/dist/index213.js +35 -3
- package/dist/index214.js +9 -39
- package/dist/index215.js +19 -21
- package/dist/index216.js +10 -88
- package/dist/index217.js +9 -406
- package/dist/index218.js +51 -22
- package/dist/index219.js +39 -157
- package/dist/index220.js +3 -19
- package/dist/index221.js +38 -19
- package/dist/index222.js +21 -22
- package/dist/index223.js +113 -185
- package/dist/index224.js +25 -57
- package/dist/index225.js +77 -31
- package/dist/index226.js +19 -39
- package/dist/index227.js +19 -126
- package/dist/index228.js +16 -34
- package/dist/index229.js +20 -80
- package/dist/index230.js +10 -10
- package/dist/index231.js +160 -19
- package/dist/index232.js +10 -10
- package/dist/index233.js +15 -13
- package/dist/index234.js +194 -156
- package/dist/index235.js +66 -224
- package/dist/index236.js +34 -37
- package/dist/index237.js +39 -9
- package/dist/index241.js +8 -8
- package/dist/index242.js +2 -2
- package/dist/index248.js +2 -2
- package/dist/index249.js +2 -2
- package/dist/index250.js +8 -8
- package/dist/index259.js +6 -6
- package/dist/index260.js +1 -1
- package/dist/index261.js +1 -1
- package/dist/index274.js +2 -2
- package/dist/index279.js +2 -54
- package/dist/index280.js +1 -1
- package/dist/index281.js +3 -26
- package/dist/index282.js +26 -21
- package/dist/index283.js +53 -21
- package/dist/index284.js +26 -16
- package/dist/index285.js +22 -17
- package/dist/index286.js +21 -22
- package/dist/index287.js +16 -2
- package/dist/index288.js +17 -3
- package/dist/index289.js +23 -27
- package/dist/index290.js +1518 -79
- package/dist/index291.js +386 -22
- package/dist/index292.js +2698 -902
- package/dist/index293.js +85 -21
- package/dist/index294.js +3770 -20
- package/dist/index295.js +59 -19
- package/dist/index296.js +15 -69
- package/dist/index297.js +84 -19
- package/dist/index298.js +201 -18
- package/dist/index299.js +246 -22
- package/dist/index300.js +78 -21
- package/dist/index301.js +22 -63
- package/dist/index302.js +909 -1492
- package/dist/index303.js +22 -386
- package/dist/index304.js +20 -2731
- package/dist/index305.js +19 -85
- package/dist/index306.js +58 -3759
- package/dist/index307.js +19 -60
- package/dist/index308.js +19 -15
- package/dist/index309.js +21 -83
- package/dist/index31.js +34 -27
- package/dist/index310.js +22 -202
- package/dist/index311.js +63 -246
- package/dist/index332.js +1 -1
- package/dist/index337.js +1 -1
- package/dist/index342.js +2 -2
- package/dist/index347.js +1 -1
- package/dist/index348.js +2 -2
- package/dist/index355.js +2 -2
- package/dist/index369.js +100 -16
- package/dist/index370.js +90 -100
- package/dist/index371.js +98 -91
- package/dist/index372.js +16 -97
- package/dist/index43.js +535 -501
- package/dist/index44.js +100 -84
- package/dist/index95.js +23 -15
- package/dist/src/components/data-filter/data-filter.d.ts +10 -0
- package/dist/src/components/data-list/data-list.d.ts +10 -0
- package/dist/src/components/date-picker/date-picker.d.ts +10 -0
- package/dist/src/components/date-picker/date-picker.stories.d.ts +20 -0
- package/dist/src/components/form-group/form-group.stories.d.ts +10 -0
- package/dist/src/components/grid/grid.stories.d.ts +28 -0
- package/dist/src/components/input/input.d.ts +10 -0
- package/dist/src/components/input/input.stories.d.ts +40 -0
- package/dist/src/components/list/list.stories.d.ts +9 -0
- package/dist/src/components/modal/modal.stories.d.ts +9 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +24 -7
- package/dist/src/components/select/select.d.ts +9 -0
- package/dist/src/components/select/select.stories.d.ts +27 -0
- package/dist/src/views/lists.vue.d.ts +20 -0
- package/dist/src/views/tables.vue.d.ts +10 -0
- package/package.json +1 -1
package/dist/index44.js
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
import L from "./index142.js";
|
|
2
|
-
import { resolveComponent as b, createElementBlock as
|
|
2
|
+
import { resolveComponent as b, createElementBlock as a, openBlock as s, createVNode as h, normalizeClass as r, createSlots as $, withCtx as d, createElementVNode as t, createBlock as p, createCommentVNode as n, renderSlot as f, normalizeProps as C, mergeProps as v, toDisplayString as o, withModifiers as k, Fragment as T, renderList as q, createTextVNode as g } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import E from "./index62.js";
|
|
5
|
+
const z = ["id"], O = ["onMousedown"], R = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "searchable-placeholder"
|
|
8
|
-
},
|
|
8
|
+
}, A = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "required-indicator"
|
|
11
|
+
}, j = { class: "flex gap-2 px-4 py-3" }, D = { class: "required-indicator" }, P = {
|
|
9
12
|
key: 0,
|
|
10
13
|
class: "tag-container"
|
|
11
|
-
},
|
|
14
|
+
}, B = { key: 0 }, H = {
|
|
12
15
|
class: /* @__PURE__ */ r([
|
|
13
16
|
"tag-name text-sm leading-normal pr-2 capitalize"
|
|
14
17
|
])
|
|
15
|
-
},
|
|
18
|
+
}, I = { key: 1 }, M = ["onClick"], N = {
|
|
16
19
|
key: 0,
|
|
17
20
|
class: "text-blue-20 text-xs count"
|
|
18
|
-
},
|
|
21
|
+
}, U = {
|
|
19
22
|
key: 0,
|
|
20
23
|
class: "text-inkwell-10 text-right truncate font-normal"
|
|
21
|
-
},
|
|
24
|
+
}, F = {
|
|
22
25
|
key: 1,
|
|
23
26
|
class: "text-blue-20 text-xs ml-2"
|
|
24
|
-
},
|
|
27
|
+
}, Q = { class: "text-inkwell-40" }, G = { class: "text-inkwell-10 text-right truncate" }, K = {
|
|
25
28
|
key: 1,
|
|
26
29
|
class: "option-selected text-gray-40 truncate"
|
|
27
|
-
},
|
|
30
|
+
}, J = {
|
|
28
31
|
key: 3,
|
|
29
32
|
class: "flex w-full justify-between"
|
|
30
|
-
},
|
|
33
|
+
}, W = { class: "text-inkwell-40 pl-1 text-base font-medium" }, X = ["title"], Y = {
|
|
31
34
|
key: 2,
|
|
32
35
|
class: "option-description text-xs pt-0.5 truncate"
|
|
33
36
|
};
|
|
34
|
-
function
|
|
35
|
-
const c = b("q-icon"),
|
|
36
|
-
return s(),
|
|
37
|
+
function Z(e, u, _, x, ee, le) {
|
|
38
|
+
const c = b("q-icon"), y = b("q-button"), S = b("q-badge"), V = b("vue-multiselect");
|
|
39
|
+
return s(), a("div", {
|
|
37
40
|
id: e.id + "-containers",
|
|
38
41
|
class: "control custom-select",
|
|
39
42
|
ref: "currentContainer"
|
|
40
43
|
}, [
|
|
41
|
-
|
|
44
|
+
h(V, {
|
|
42
45
|
id: e.id,
|
|
43
46
|
ref: "currentSelect",
|
|
44
47
|
modelValue: e.selected,
|
|
45
48
|
"onUpdate:modelValue": [
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
u[1] || (u[1] = (l) => e.selected = l),
|
|
50
|
+
u[4] || (u[4] = (l) => e.onUpdateValue(l))
|
|
48
51
|
],
|
|
49
52
|
"filtering-sort-func": e.filterSortFunction,
|
|
50
53
|
options: e.internalOptions,
|
|
@@ -89,12 +92,12 @@ function X(e, d, Y, Z, _, x) {
|
|
|
89
92
|
"select-group-label": "",
|
|
90
93
|
"deselect-group-label": "",
|
|
91
94
|
onOpen: e.onOpen,
|
|
92
|
-
onRemove:
|
|
95
|
+
onRemove: u[2] || (u[2] = (l) => e.onRemove(l)),
|
|
93
96
|
onTag: e.addTag,
|
|
94
|
-
onSearchChange:
|
|
97
|
+
onSearchChange: u[3] || (u[3] = (l) => e.searchChange(l))
|
|
95
98
|
}, $({
|
|
96
|
-
caret:
|
|
97
|
-
|
|
99
|
+
caret: d(({ toggle: l }) => [
|
|
100
|
+
t("div", {
|
|
98
101
|
class: r([
|
|
99
102
|
"h-full w-full",
|
|
100
103
|
"absolute left-0 top-0",
|
|
@@ -103,37 +106,40 @@ function X(e, d, Y, Z, _, x) {
|
|
|
103
106
|
]),
|
|
104
107
|
onMousedown: k(l, ["prevent"])
|
|
105
108
|
}, [
|
|
106
|
-
e.loading ? n("", !0) : (s(),
|
|
109
|
+
e.loading ? n("", !0) : (s(), p(c, {
|
|
107
110
|
key: 0,
|
|
108
111
|
icon: "chevron-down",
|
|
109
112
|
type: "line"
|
|
110
113
|
}))
|
|
111
|
-
], 40,
|
|
112
|
-
e.searchable ? (s(),
|
|
114
|
+
], 40, O),
|
|
115
|
+
e.searchable ? (s(), p(c, {
|
|
113
116
|
key: 0,
|
|
114
117
|
class: "search-icon",
|
|
115
118
|
color: e.selectionControl ? "inkwell-0" : "gray-40",
|
|
116
119
|
icon: "search",
|
|
117
120
|
type: ""
|
|
118
121
|
}, null, 8, ["color"])) : n("", !0),
|
|
119
|
-
e.searchable && (e.multiple && !e.selected.length || !e.multiple && !e.selected) && !e.selectionControl ? (s(),
|
|
122
|
+
e.searchable && (e.multiple && !e.selected.length || !e.multiple && !e.selected) && !e.selectionControl ? (s(), a("div", R, [
|
|
123
|
+
g(o(e.placeholder), 1),
|
|
124
|
+
e.required ? (s(), a("span", A, " *" + o(e.$t("HC_REQUIRED")), 1)) : n("", !0)
|
|
125
|
+
])) : n("", !0)
|
|
120
126
|
]),
|
|
121
|
-
noResult:
|
|
122
|
-
|
|
127
|
+
noResult: d(() => [
|
|
128
|
+
g(o(e.noResultsText), 1)
|
|
123
129
|
]),
|
|
124
|
-
noOptions:
|
|
125
|
-
|
|
130
|
+
noOptions: d(() => [
|
|
131
|
+
g(o(e.noOptionsText), 1)
|
|
126
132
|
]),
|
|
127
|
-
singleLabel:
|
|
128
|
-
l.icon ? (s(),
|
|
133
|
+
singleLabel: d(({ option: l }) => [
|
|
134
|
+
l.icon ? (s(), p(c, {
|
|
129
135
|
key: 0,
|
|
130
136
|
icon: l.icon
|
|
131
137
|
}, null, 8, ["icon"])) : n("", !0),
|
|
132
138
|
l && e.showPlaceholderImage ? f(e.$slots, "optionPrefix", C(v({ key: 1 }, l)), void 0, !0) : n("", !0),
|
|
133
139
|
e.selectionControl ? f(e.$slots, "controlPlaceholder", { key: 2 }, () => [
|
|
134
|
-
|
|
140
|
+
g(o(e.placeholder), 1)
|
|
135
141
|
], !0) : n("", !0),
|
|
136
|
-
|
|
142
|
+
t("span", {
|
|
137
143
|
class: r([
|
|
138
144
|
"option-name",
|
|
139
145
|
{
|
|
@@ -142,22 +148,22 @@ function X(e, d, Y, Z, _, x) {
|
|
|
142
148
|
])
|
|
143
149
|
}, o(l.label || l.name || l), 3)
|
|
144
150
|
]),
|
|
145
|
-
selection:
|
|
146
|
-
e.useTags ? (s(),
|
|
147
|
-
e.groupValues && e.options[0][e.groupValues].length === l.length ? (s(),
|
|
148
|
-
|
|
151
|
+
selection: d(({ values: l, isOpen: m }) => [
|
|
152
|
+
e.useTags ? (s(), a("div", P, [
|
|
153
|
+
e.groupValues && e.options[0][e.groupValues].length === l.length ? (s(), a("div", B, [
|
|
154
|
+
t("div", {
|
|
149
155
|
class: r([
|
|
150
156
|
"multiselect__tag inline-flex items-center justify-center rounded me-2 z-[1]",
|
|
151
157
|
{ "tag-gray": !!e.showTags }
|
|
152
158
|
])
|
|
153
159
|
}, [
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
t("span", H, o(e.groupLabel), 1),
|
|
161
|
+
t("span", {
|
|
156
162
|
class: "tag-remove cursor-pointer shrink",
|
|
157
163
|
tabindex: "1",
|
|
158
|
-
onMousedown:
|
|
164
|
+
onMousedown: u[0] || (u[0] = k((i) => e.removeElement(e.options[0][e.groupValues]), ["prevent", "stop"]))
|
|
159
165
|
}, [
|
|
160
|
-
|
|
166
|
+
h(c, {
|
|
161
167
|
icon: "close",
|
|
162
168
|
color: "white",
|
|
163
169
|
class: r([
|
|
@@ -168,9 +174,9 @@ function X(e, d, Y, Z, _, x) {
|
|
|
168
174
|
}, null, 8, ["class"])
|
|
169
175
|
], 32)
|
|
170
176
|
], 2)
|
|
171
|
-
])) : (s(),
|
|
172
|
-
(s(!0),
|
|
173
|
-
key:
|
|
177
|
+
])) : (s(), a("div", I, [
|
|
178
|
+
(s(!0), a(T, null, q(!e.expand && e.limitShown ? l.slice(0, e.limitShown) : l, (i, w) => (s(), a("div", {
|
|
179
|
+
key: w,
|
|
174
180
|
class: r([
|
|
175
181
|
"multiselect__tag !inline-flex items-center justify-center rounded mr-2 z-[1]",
|
|
176
182
|
{ "tag-added": i.added },
|
|
@@ -178,23 +184,23 @@ function X(e, d, Y, Z, _, x) {
|
|
|
178
184
|
i.tagClass ? i.tagClass : ""
|
|
179
185
|
])
|
|
180
186
|
}, [
|
|
181
|
-
i.icon ? (s(),
|
|
187
|
+
i.icon ? (s(), p(c, {
|
|
182
188
|
key: 0,
|
|
183
189
|
icon: i.icon,
|
|
184
190
|
class: "tag-icon"
|
|
185
191
|
}, null, 8, ["icon"])) : n("", !0),
|
|
186
|
-
|
|
192
|
+
t("span", {
|
|
187
193
|
class: r([
|
|
188
194
|
"tag-name text-sm leading-normal pr-2",
|
|
189
195
|
{ "tag-truncate": e.truncateTag }
|
|
190
196
|
])
|
|
191
197
|
}, o(i.label || i.name), 3),
|
|
192
|
-
|
|
198
|
+
t("span", {
|
|
193
199
|
class: "tag-remove cursor-pointer shrink",
|
|
194
200
|
tabindex: "1",
|
|
195
|
-
onClick: (
|
|
201
|
+
onClick: (se) => e.removeElement(w)
|
|
196
202
|
}, [
|
|
197
|
-
|
|
203
|
+
h(c, {
|
|
198
204
|
icon: "close-thick",
|
|
199
205
|
color: "white",
|
|
200
206
|
size: "sm",
|
|
@@ -206,43 +212,43 @@ function X(e, d, Y, Z, _, x) {
|
|
|
206
212
|
}, null, 8, ["class"])
|
|
207
213
|
], 8, M)
|
|
208
214
|
], 2))), 128)),
|
|
209
|
-
!e.expand && e.showSelectedCount && e.multiple && l.length > e.limitShown ? (s(),
|
|
215
|
+
!e.expand && e.showSelectedCount && e.multiple && l.length > e.limitShown ? (s(), a("span", N, " + " + o(l.length - e.limitShown) + " more... ", 1)) : n("", !0)
|
|
210
216
|
]))
|
|
211
217
|
])) : n("", !0),
|
|
212
|
-
!e.showTags && !e.taggable && e.multiple && l.length ? (s(),
|
|
218
|
+
!e.showTags && !e.taggable && e.multiple && l.length ? (s(), a("div", {
|
|
213
219
|
key: 1,
|
|
214
220
|
class: r([
|
|
215
221
|
"multiselect__single flex w-full",
|
|
216
222
|
e.selectionControl ? "whitespace-nowrap justify-between" : "items-center"
|
|
217
223
|
])
|
|
218
224
|
}, [
|
|
219
|
-
|
|
225
|
+
t("span", {
|
|
220
226
|
class: r([
|
|
221
227
|
"option-selected",
|
|
222
228
|
{
|
|
223
229
|
capitalize: e.groupValues && e.options[0][e.groupValues].length === l.length
|
|
224
230
|
}
|
|
225
231
|
])
|
|
226
|
-
}, o(e.selectionControl ? e.placeholder : e.groupValues && e.options[0][e.groupValues].length === l.length ? e.groupLabel : l[0].label), 3),
|
|
227
|
-
e.selectionControl ? (s(),
|
|
228
|
-
e.limitShown && e.limitShown < l.length && (!e.groupValues && l.length !== e.limitShown || e.groupValues && e.options[0][e.groupValues].length !== l.length) ? (s(),
|
|
229
|
-
], 2)) : m && !e.useTags && !e.multiple ? (s(),
|
|
232
|
+
}, o(e.selectionControl ? e.placeholder : e.groupValues && e.options[0][e.groupValues].length === l.length ? e.options[0][e.groupLabel] || e.groupLabel : l[0].label), 3),
|
|
233
|
+
e.selectionControl ? (s(), a("span", U, o(e.selectedText), 1)) : n("", !0),
|
|
234
|
+
e.limitShown && e.limitShown < l.length && (!e.groupValues && l.length !== e.limitShown || e.groupValues && e.options[0][e.groupValues].length !== l.length) ? (s(), a("span", F, " + " + o(l.length - e.limitShown) + " more... ", 1)) : n("", !0)
|
|
235
|
+
], 2)) : m && !e.useTags && !e.multiple ? (s(), a("div", {
|
|
230
236
|
key: 2,
|
|
231
237
|
class: r([
|
|
232
238
|
"multiselect__single flex w-full",
|
|
233
239
|
e.selectionControl ? "justify-between" : "items-center"
|
|
234
240
|
])
|
|
235
241
|
}, [
|
|
236
|
-
e.selectionControl ? (s(),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
], 64)) : (s(),
|
|
240
|
-
], 2)) : m && !e.useTags && e.multiple && e.selectionControl ? (s(),
|
|
241
|
-
|
|
242
|
+
e.selectionControl ? (s(), a(T, { key: 0 }, [
|
|
243
|
+
t("span", Q, o(e.placeholder || ""), 1),
|
|
244
|
+
t("span", G, o(e.selected?.label || e.selected?.name || ""), 1)
|
|
245
|
+
], 64)) : (s(), a("span", K, o(e.selected?.label || e.selected?.name || e.placeholder || ""), 1))
|
|
246
|
+
], 2)) : m && !e.useTags && e.multiple && e.selectionControl ? (s(), a("div", J, [
|
|
247
|
+
t("span", W, o(e.placeholder || ""), 1)
|
|
242
248
|
])) : n("", !0)
|
|
243
249
|
]),
|
|
244
|
-
option:
|
|
245
|
-
|
|
250
|
+
option: d(({ option: l, search: m }) => [
|
|
251
|
+
t("div", {
|
|
246
252
|
class: r([
|
|
247
253
|
"flex items-center w-full",
|
|
248
254
|
{ "option-search": l.label === m },
|
|
@@ -250,14 +256,14 @@ function X(e, d, Y, Z, _, x) {
|
|
|
250
256
|
]),
|
|
251
257
|
title: l.label ? l.label : ""
|
|
252
258
|
}, [
|
|
253
|
-
e.multiple && e.hasCheckboxes ? (s(),
|
|
259
|
+
e.multiple && e.hasCheckboxes ? (s(), p(S, {
|
|
254
260
|
key: 0,
|
|
255
261
|
"has-icon": !0,
|
|
256
262
|
class: "selected-checkbox mr-2",
|
|
257
263
|
shape: "square"
|
|
258
264
|
}, {
|
|
259
|
-
icon:
|
|
260
|
-
|
|
265
|
+
icon: d(() => [
|
|
266
|
+
h(c, {
|
|
261
267
|
icon: "check",
|
|
262
268
|
color: "white",
|
|
263
269
|
type: "line"
|
|
@@ -265,25 +271,25 @@ function X(e, d, Y, Z, _, x) {
|
|
|
265
271
|
]),
|
|
266
272
|
_: 1
|
|
267
273
|
})) : n("", !0),
|
|
268
|
-
|
|
274
|
+
t("div", {
|
|
269
275
|
class: r([
|
|
270
276
|
"option-icon-name flex items-center",
|
|
271
277
|
!l.$groupLabel && e.groupLabel ? "pl-0" : ""
|
|
272
278
|
])
|
|
273
279
|
}, [
|
|
274
|
-
l.icon ? (s(),
|
|
280
|
+
l.icon ? (s(), p(c, {
|
|
275
281
|
key: 0,
|
|
276
282
|
icon: l.icon,
|
|
277
283
|
class: "mr-1"
|
|
278
284
|
}, null, 8, ["icon"])) : n("", !0),
|
|
279
285
|
l ? f(e.$slots, "optionPrefix", C(v({ key: 1 }, l)), void 0, !0) : n("", !0),
|
|
280
|
-
|
|
286
|
+
t("div", {
|
|
281
287
|
class: r(["option-name", [
|
|
282
288
|
l.optionClass ? l.optionClass : ""
|
|
283
289
|
]])
|
|
284
290
|
}, o(l.$groupLabel || l.label || l.name || l), 3),
|
|
285
|
-
l.description && e.showOptionDescription ? (s(),
|
|
286
|
-
e.multiple && e.hasCheckboxes ? n("", !0) : (s(),
|
|
291
|
+
l.description && e.showOptionDescription ? (s(), a("div", Y, o(l.description), 1)) : n("", !0),
|
|
292
|
+
e.multiple && e.hasCheckboxes ? n("", !0) : (s(), p(c, {
|
|
287
293
|
key: 3,
|
|
288
294
|
icon: "check",
|
|
289
295
|
size: "sm",
|
|
@@ -292,15 +298,15 @@ function X(e, d, Y, Z, _, x) {
|
|
|
292
298
|
class: "selected-icon"
|
|
293
299
|
}))
|
|
294
300
|
], 2)
|
|
295
|
-
], 10,
|
|
301
|
+
], 10, X)
|
|
296
302
|
]),
|
|
297
303
|
_: 2
|
|
298
304
|
}, [
|
|
299
305
|
e.showSelectAll ? {
|
|
300
306
|
name: "beforeList",
|
|
301
|
-
fn:
|
|
302
|
-
|
|
303
|
-
|
|
307
|
+
fn: d(() => [
|
|
308
|
+
t("div", j, [
|
|
309
|
+
h(y, {
|
|
304
310
|
type: "button",
|
|
305
311
|
disabled: e.selectedCount === e.selected.length,
|
|
306
312
|
"no-min-width": !0,
|
|
@@ -308,12 +314,12 @@ function X(e, d, Y, Z, _, x) {
|
|
|
308
314
|
status: "link",
|
|
309
315
|
onClick: k(e.selectAll, ["prevent"])
|
|
310
316
|
}, {
|
|
311
|
-
default:
|
|
312
|
-
|
|
317
|
+
default: d(() => [
|
|
318
|
+
g(o(e.$t("HC_SELECT_ALL")), 1)
|
|
313
319
|
]),
|
|
314
320
|
_: 1
|
|
315
321
|
}, 8, ["disabled", "onClick"]),
|
|
316
|
-
|
|
322
|
+
h(y, {
|
|
317
323
|
type: "button",
|
|
318
324
|
disabled: !e.selected.length,
|
|
319
325
|
"no-min-width": !0,
|
|
@@ -321,19 +327,29 @@ function X(e, d, Y, Z, _, x) {
|
|
|
321
327
|
status: "link",
|
|
322
328
|
onClick: k(e.clearAll, ["prevent"])
|
|
323
329
|
}, {
|
|
324
|
-
default:
|
|
325
|
-
|
|
330
|
+
default: d(() => [
|
|
331
|
+
g(o(e.$t("HC_CLEAR_ALL")), 1)
|
|
326
332
|
]),
|
|
327
333
|
_: 1
|
|
328
334
|
}, 8, ["disabled", "onClick"])
|
|
329
335
|
])
|
|
330
336
|
]),
|
|
331
337
|
key: "0"
|
|
338
|
+
} : void 0,
|
|
339
|
+
e.required ? {
|
|
340
|
+
name: "placeholder",
|
|
341
|
+
fn: d(() => [
|
|
342
|
+
t("span", null, [
|
|
343
|
+
g(o(e.placeholder), 1),
|
|
344
|
+
t("span", D, " *" + o(e.$t("HC_REQUIRED")), 1)
|
|
345
|
+
])
|
|
346
|
+
]),
|
|
347
|
+
key: "1"
|
|
332
348
|
} : void 0
|
|
333
349
|
]), 1032, ["id", "modelValue", "filtering-sort-func", "options", "searchable", "multiple", "taggable", "label", "track-by", "group-values", "group-label", "group-select", "block-keys", "class", "disabled", "loading", "allow-empty", "clear-on-select", "close-on-select", "show-tags", "tag-placeholder", "placeholder", "open-direction", "onOpen", "onTag"])
|
|
334
|
-
], 8,
|
|
350
|
+
], 8, z);
|
|
335
351
|
}
|
|
336
|
-
const
|
|
352
|
+
const re = /* @__PURE__ */ E(L, [["render", Z], ["__scopeId", "data-v-22fcb9e8"]]);
|
|
337
353
|
export {
|
|
338
|
-
|
|
354
|
+
re as default
|
|
339
355
|
};
|
package/dist/index95.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as o, computed as u, watch as f, nextTick as b, onUnmounted as w } from "vue";
|
|
2
2
|
import D from "./index175.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import "./index177.js";
|
|
@@ -6,7 +6,7 @@ import "./index178.js";
|
|
|
6
6
|
import "./index179.js";
|
|
7
7
|
import "./index180.js";
|
|
8
8
|
import "./index181.js";
|
|
9
|
-
const x =
|
|
9
|
+
const x = p({
|
|
10
10
|
name: "QDatePicker",
|
|
11
11
|
components: {
|
|
12
12
|
DatePicker: D
|
|
@@ -82,33 +82,41 @@ const x = c({
|
|
|
82
82
|
type: {
|
|
83
83
|
type: String,
|
|
84
84
|
default: "date"
|
|
85
|
+
},
|
|
86
|
+
// Shows "*Required" indicator next to placeholder with different styling
|
|
87
|
+
required: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
85
90
|
}
|
|
86
91
|
},
|
|
87
92
|
emits: ["update:modelValue"],
|
|
88
|
-
setup(
|
|
89
|
-
const d = o("bottom"),
|
|
93
|
+
setup(t) {
|
|
94
|
+
const d = o("bottom"), c = o(), r = o(!1), l = o(t.modelValue || ""), m = u(() => t.disabledAfterToday ? i : t.disabledBeforeToday ? s : t.disabledDate), y = u(() => t.required && !l.value), i = (e) => e > /* @__PURE__ */ new Date(), s = (e) => {
|
|
90
95
|
const n = /* @__PURE__ */ new Date();
|
|
91
96
|
return n.setHours(0, 0, 0, 0), e < n;
|
|
92
|
-
},
|
|
97
|
+
}, a = () => {
|
|
93
98
|
const e = document.querySelector(".mx-datepicker-main");
|
|
94
99
|
e && (d.value = parseInt(e.style.top) < 0 ? "top" : "bottom");
|
|
95
100
|
};
|
|
96
|
-
return
|
|
97
|
-
|
|
98
|
-
}),
|
|
99
|
-
window.removeEventListener("scroll",
|
|
101
|
+
return f(() => t.modelValue, (e) => {
|
|
102
|
+
l.value = e || "";
|
|
103
|
+
}), f(r, async (e) => {
|
|
104
|
+
e ? window.addEventListener("scroll", a) : window.removeEventListener("scroll", a), await b(), a();
|
|
105
|
+
}), w(() => {
|
|
106
|
+
window.removeEventListener("scroll", a);
|
|
100
107
|
}), {
|
|
101
108
|
// Refs
|
|
102
109
|
calendarPosition: d,
|
|
103
|
-
datePicker:
|
|
110
|
+
datePicker: c,
|
|
104
111
|
isOpen: r,
|
|
105
|
-
value:
|
|
112
|
+
value: l,
|
|
106
113
|
// Computed
|
|
107
|
-
disabledDates:
|
|
114
|
+
disabledDates: m,
|
|
115
|
+
showCustomPlaceholder: y,
|
|
108
116
|
// Methods
|
|
109
|
-
disableDatesAfterToday:
|
|
110
|
-
disableDatesBeforeToday:
|
|
111
|
-
getCalendarPosition:
|
|
117
|
+
disableDatesAfterToday: i,
|
|
118
|
+
disableDatesBeforeToday: s,
|
|
119
|
+
getCalendarPosition: a
|
|
112
120
|
};
|
|
113
121
|
}
|
|
114
122
|
});
|
|
@@ -451,6 +451,10 @@ declare const QDataFilter: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
451
451
|
type: StringConstructor;
|
|
452
452
|
default: string;
|
|
453
453
|
};
|
|
454
|
+
required: {
|
|
455
|
+
type: BooleanConstructor;
|
|
456
|
+
default: boolean;
|
|
457
|
+
};
|
|
454
458
|
}>, {
|
|
455
459
|
currentInput: import('vue').Ref<null, null>;
|
|
456
460
|
focused: import('vue').Ref<boolean, boolean>;
|
|
@@ -488,6 +492,7 @@ declare const QDataFilter: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
488
492
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
489
493
|
showClearIcon: import('vue').ComputedRef<boolean>;
|
|
490
494
|
isSlotAvailable: import('vue').ComputedRef<boolean>;
|
|
495
|
+
showCustomPlaceholder: import('vue').ComputedRef<boolean>;
|
|
491
496
|
onClickIcon: () => void;
|
|
492
497
|
onFocusOut: () => void;
|
|
493
498
|
togglePasswordVisibility: () => void;
|
|
@@ -557,6 +562,10 @@ declare const QDataFilter: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
557
562
|
type: StringConstructor;
|
|
558
563
|
default: string;
|
|
559
564
|
};
|
|
565
|
+
required: {
|
|
566
|
+
type: BooleanConstructor;
|
|
567
|
+
default: boolean;
|
|
568
|
+
};
|
|
560
569
|
}>> & Readonly<{
|
|
561
570
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
562
571
|
"onUpdate-type"?: ((...args: any[]) => any) | undefined;
|
|
@@ -567,6 +576,7 @@ declare const QDataFilter: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
567
576
|
placeholder: string;
|
|
568
577
|
disabled: boolean;
|
|
569
578
|
status: string;
|
|
579
|
+
required: boolean;
|
|
570
580
|
expands: boolean;
|
|
571
581
|
maxlength: number;
|
|
572
582
|
controlClass: string;
|
|
@@ -622,6 +622,10 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
622
622
|
type: StringConstructor;
|
|
623
623
|
default: string;
|
|
624
624
|
};
|
|
625
|
+
required: {
|
|
626
|
+
type: BooleanConstructor;
|
|
627
|
+
default: boolean;
|
|
628
|
+
};
|
|
625
629
|
}>, {
|
|
626
630
|
currentInput: import('vue').Ref<null, null>;
|
|
627
631
|
focused: import('vue').Ref<boolean, boolean>;
|
|
@@ -659,6 +663,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
659
663
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
660
664
|
showClearIcon: import('vue').ComputedRef<boolean>;
|
|
661
665
|
isSlotAvailable: import('vue').ComputedRef<boolean>;
|
|
666
|
+
showCustomPlaceholder: import('vue').ComputedRef<boolean>;
|
|
662
667
|
onClickIcon: () => void;
|
|
663
668
|
onFocusOut: () => void;
|
|
664
669
|
togglePasswordVisibility: () => void;
|
|
@@ -728,6 +733,10 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
728
733
|
type: StringConstructor;
|
|
729
734
|
default: string;
|
|
730
735
|
};
|
|
736
|
+
required: {
|
|
737
|
+
type: BooleanConstructor;
|
|
738
|
+
default: boolean;
|
|
739
|
+
};
|
|
731
740
|
}>> & Readonly<{
|
|
732
741
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
733
742
|
"onUpdate-type"?: ((...args: any[]) => any) | undefined;
|
|
@@ -738,6 +747,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
738
747
|
placeholder: string;
|
|
739
748
|
disabled: boolean;
|
|
740
749
|
status: string;
|
|
750
|
+
required: boolean;
|
|
741
751
|
expands: boolean;
|
|
742
752
|
maxlength: number;
|
|
743
753
|
controlClass: string;
|
|
@@ -80,12 +80,17 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
80
80
|
type: StringConstructor;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
|
+
required: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
83
87
|
}>, {
|
|
84
88
|
calendarPosition: import('vue').Ref<string, string>;
|
|
85
89
|
datePicker: import('vue').Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
86
90
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
87
91
|
value: import('vue').Ref<string | Date | (string | Date)[], string | Date | (string | Date)[]>;
|
|
88
92
|
disabledDates: import('vue').ComputedRef<Function | null>;
|
|
93
|
+
showCustomPlaceholder: import('vue').ComputedRef<boolean>;
|
|
89
94
|
disableDatesAfterToday: (date: any) => boolean;
|
|
90
95
|
disableDatesBeforeToday: (date: any) => boolean;
|
|
91
96
|
getCalendarPosition: () => void;
|
|
@@ -171,6 +176,10 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
171
176
|
type: StringConstructor;
|
|
172
177
|
default: string;
|
|
173
178
|
};
|
|
179
|
+
required: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
174
183
|
}>> & Readonly<{
|
|
175
184
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
176
185
|
}>, {
|
|
@@ -182,6 +191,7 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
182
191
|
disabled: boolean;
|
|
183
192
|
disabledDate: Function;
|
|
184
193
|
locale: string;
|
|
194
|
+
required: boolean;
|
|
185
195
|
id: string;
|
|
186
196
|
clearable: boolean;
|
|
187
197
|
disabledBeforeToday: boolean;
|
|
@@ -72,12 +72,17 @@ export declare const DatePicker: {
|
|
|
72
72
|
type: StringConstructor;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
|
+
required: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
75
79
|
}>, {
|
|
76
80
|
calendarPosition: import('vue').Ref<string, string>;
|
|
77
81
|
datePicker: import('vue').Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
78
82
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
79
83
|
value: import('vue').Ref<string | Date | (string | Date)[], string | Date | (string | Date)[]>;
|
|
80
84
|
disabledDates: import('vue').ComputedRef<Function | null>;
|
|
85
|
+
showCustomPlaceholder: import('vue').ComputedRef<boolean>;
|
|
81
86
|
disableDatesAfterToday: (date: any) => boolean;
|
|
82
87
|
disableDatesBeforeToday: (date: any) => boolean;
|
|
83
88
|
getCalendarPosition: () => void;
|
|
@@ -147,6 +152,10 @@ export declare const DatePicker: {
|
|
|
147
152
|
type: StringConstructor;
|
|
148
153
|
default: string;
|
|
149
154
|
};
|
|
155
|
+
required: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
150
159
|
}>> & Readonly<{
|
|
151
160
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
152
161
|
}>, {
|
|
@@ -158,6 +167,7 @@ export declare const DatePicker: {
|
|
|
158
167
|
disabled: boolean;
|
|
159
168
|
disabledDate: Function;
|
|
160
169
|
locale: string;
|
|
170
|
+
required: boolean;
|
|
161
171
|
id: string;
|
|
162
172
|
clearable: boolean;
|
|
163
173
|
disabledBeforeToday: boolean;
|
|
@@ -726,12 +736,17 @@ export declare const RangedDatePicker: {
|
|
|
726
736
|
type: StringConstructor;
|
|
727
737
|
default: string;
|
|
728
738
|
};
|
|
739
|
+
required: {
|
|
740
|
+
type: BooleanConstructor;
|
|
741
|
+
default: boolean;
|
|
742
|
+
};
|
|
729
743
|
}>, {
|
|
730
744
|
calendarPosition: import('vue').Ref<string, string>;
|
|
731
745
|
datePicker: import('vue').Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
732
746
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
733
747
|
value: import('vue').Ref<string | Date | (string | Date)[], string | Date | (string | Date)[]>;
|
|
734
748
|
disabledDates: import('vue').ComputedRef<Function | null>;
|
|
749
|
+
showCustomPlaceholder: import('vue').ComputedRef<boolean>;
|
|
735
750
|
disableDatesAfterToday: (date: any) => boolean;
|
|
736
751
|
disableDatesBeforeToday: (date: any) => boolean;
|
|
737
752
|
getCalendarPosition: () => void;
|
|
@@ -801,6 +816,10 @@ export declare const RangedDatePicker: {
|
|
|
801
816
|
type: StringConstructor;
|
|
802
817
|
default: string;
|
|
803
818
|
};
|
|
819
|
+
required: {
|
|
820
|
+
type: BooleanConstructor;
|
|
821
|
+
default: boolean;
|
|
822
|
+
};
|
|
804
823
|
}>> & Readonly<{
|
|
805
824
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
806
825
|
}>, {
|
|
@@ -812,6 +831,7 @@ export declare const RangedDatePicker: {
|
|
|
812
831
|
disabled: boolean;
|
|
813
832
|
disabledDate: Function;
|
|
814
833
|
locale: string;
|
|
834
|
+
required: boolean;
|
|
815
835
|
id: string;
|
|
816
836
|
clearable: boolean;
|
|
817
837
|
disabledBeforeToday: boolean;
|