@quidgest/ui 0.15.3 → 0.15.4
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/manifest/components.json +2 -0
- package/dist/ui.css +1 -1
- package/dist/ui.esm.js +6782 -5929
- package/dist/ui.js +33 -26
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1112 -967
- package/dist/ui.scss +2 -2
- package/esm/components/QCombobox/QCombobox.d.ts +2 -6
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/index.d.ts +1 -3
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +2 -2
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +51 -50
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +35 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +50 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +4 -0
- package/esm/components/QDismissibleLayer/index.d.ts +53 -0
- package/esm/components/QDismissibleLayer/index.d.ts.map +1 -0
- package/esm/components/QDismissibleLayer/index.js +6 -0
- package/esm/components/QDismissibleLayer/types.d.ts +25 -0
- package/esm/components/QDismissibleLayer/types.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +0 -4
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +10 -15
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +10 -15
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +72 -117
- package/esm/components/QDropdownMenu/index.d.ts +0 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QFocusTrap/QFocusTrap.d.ts +28 -0
- package/esm/components/QFocusTrap/QFocusTrap.d.ts.map +1 -0
- package/esm/components/QFocusTrap/QFocusTrap.vue.js +32 -0
- package/esm/components/QFocusTrap/QFocusTrap.vue2.js +4 -0
- package/esm/components/QFocusTrap/index.d.ts +38 -0
- package/esm/components/QFocusTrap/index.d.ts.map +1 -0
- package/esm/components/QFocusTrap/index.js +6 -0
- package/esm/components/QFocusTrap/types.d.ts +6 -0
- package/esm/components/QFocusTrap/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +0 -9
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +97 -82
- package/esm/components/QList/index.d.ts +0 -3
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +2 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +197 -148
- package/esm/components/QOverlay/index.d.ts +4 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +6 -1
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +6 -5
- package/esm/components/QSelect/QSelect.d.ts +2 -6
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +106 -125
- package/esm/components/QSelect/index.d.ts +1 -3
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +69 -65
- package/esm/index.d.ts +2 -0
- package/esm/utils/merge.d.ts.map +1 -1
- package/esm/utils/merge.js +12 -16
- package/esm/vendors/@vueuse/core/index.js +173 -67
- package/esm/vendors/@vueuse/integrations/useFocusTrap/component.js +24 -0
- package/esm/vendors/@vueuse/shared/index.js +36 -15
- package/esm/vendors/focus-trap/dist/focus-trap.esm.js +473 -0
- package/esm/vendors/tabbable/dist/index.esm.js +202 -0
- package/package.json +3 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
3
|
-
import { QButton as
|
|
4
|
-
import { QField as
|
|
5
|
-
import { QIcon as
|
|
6
|
-
import { QList as
|
|
7
|
-
import { QOverlay as
|
|
8
|
-
import { QSpinnerLoader as
|
|
9
|
-
import { QChevron as
|
|
10
|
-
import { QClearButton as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as P, mergeModels as D, useModel as H, ref as y, computed as b, watch as X, nextTick as j, createElementBlock as f, openBlock as t, Fragment as N, createVNode as k, unref as n, mergeProps as z, withModifiers as A, createSlots as G, withCtx as i, toDisplayString as F, createCommentVNode as g, createTextVNode as J, renderSlot as d, createBlock as h, normalizeProps as W, createElementVNode as Y } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as Z, DEFAULT_ICONS as ee } from "./types.js";
|
|
3
|
+
import { QButton as le } from "../QButton/index.js";
|
|
4
|
+
import { QField as oe } from "../QField/index.js";
|
|
5
|
+
import { QIcon as ae } from "../QIcon/index.js";
|
|
6
|
+
import { QList as te } from "../QList/index.js";
|
|
7
|
+
import { QOverlay as ne } from "../QOverlay/index.js";
|
|
8
|
+
import { QSpinnerLoader as ie } from "../QSpinnerLoader/index.js";
|
|
9
|
+
import { QChevron as se } from "../__internal__/QChevron/index.js";
|
|
10
|
+
import { QClearButton as re } from "../__internal__/QClearButton/index.js";
|
|
11
|
+
const de = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-select__value"
|
|
14
|
-
},
|
|
14
|
+
}, ue = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "q-select__placeholder"
|
|
17
|
-
},
|
|
17
|
+
}, ce = ["data-key"], fe = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "q-select__loader"
|
|
20
|
-
},
|
|
20
|
+
}, Ve = /* @__PURE__ */ P({
|
|
21
21
|
inheritAttrs: !1,
|
|
22
22
|
__name: "QSelect",
|
|
23
|
-
props: /* @__PURE__ */
|
|
23
|
+
props: /* @__PURE__ */ D({
|
|
24
24
|
id: {},
|
|
25
25
|
class: {},
|
|
26
26
|
label: {},
|
|
@@ -37,95 +37,76 @@ const fe = {
|
|
|
37
37
|
clearable: { type: Boolean },
|
|
38
38
|
loading: { type: Boolean },
|
|
39
39
|
emptyValue: { type: [String, Number, Boolean, Symbol] },
|
|
40
|
-
icons: { default: () =>
|
|
41
|
-
texts: { default: () =>
|
|
40
|
+
icons: { default: () => ee },
|
|
41
|
+
texts: { default: () => Z }
|
|
42
42
|
}, {
|
|
43
43
|
modelValue: { type: [String, Number, Boolean, Symbol] },
|
|
44
44
|
modelModifiers: {}
|
|
45
45
|
}),
|
|
46
|
-
emits: /* @__PURE__ */
|
|
47
|
-
setup(
|
|
48
|
-
const e =
|
|
46
|
+
emits: /* @__PURE__ */ D(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
47
|
+
setup(x, { emit: O }) {
|
|
48
|
+
const e = x, m = O, p = H(x, "modelValue"), o = y(!1), v = y(null), q = y(null), _ = y(null), R = b(() => s.value === void 0), s = b(
|
|
49
49
|
() => {
|
|
50
50
|
var l;
|
|
51
|
-
return (l = e.items) == null ? void 0 : l.find((
|
|
51
|
+
return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === p.value);
|
|
52
52
|
}
|
|
53
|
-
),
|
|
54
|
-
() =>
|
|
55
|
-
),
|
|
53
|
+
), M = b(
|
|
54
|
+
() => s.value ? s.value[e.itemLabel] : ""
|
|
55
|
+
), w = b(
|
|
56
56
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
57
57
|
);
|
|
58
58
|
function B(l) {
|
|
59
|
-
|
|
59
|
+
p.value = l, E();
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function V() {
|
|
62
|
+
w.value && (B(e.emptyValue), C());
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
!((
|
|
64
|
+
function U(l) {
|
|
65
|
+
var a, u, c;
|
|
66
|
+
!((a = _.value) != null && a.contains(l.relatedTarget)) && !((c = (u = v.value) == null ? void 0 : u.fieldRef) != null && c.contains(l.relatedTarget)) && E();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function S() {
|
|
69
|
+
o.value || (m("before-show"), o.value = !0);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function E() {
|
|
72
|
+
o.value && (m("before-hide"), o.value = !1);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
e.readonly || e.disabled || (
|
|
74
|
+
function L() {
|
|
75
|
+
e.readonly || e.disabled || (o.value ? E() : S());
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
var o;
|
|
80
|
-
if (!(!l.key || e.readonly || e.disabled)) {
|
|
81
|
-
if (window.clearTimeout($), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && C(), ["Escape", "Tab"].includes(l.key) && (t.value ? t.value = !1 : E.value && l.key === "Escape" && x()), l.key === "Delete" && e.clearable && x(), /^[a-z]$/i.test(l.key)) {
|
|
82
|
-
w.value += l.key.toLowerCase();
|
|
83
|
-
const s = ((o = e.items) == null ? void 0 : o.length) || 0;
|
|
84
|
-
for (let a = 0; a < s; a++)
|
|
85
|
-
if (e.items[a][e.itemLabel].toLowerCase().startsWith(w.value)) {
|
|
86
|
-
W(a);
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
$ = window.setTimeout(function() {
|
|
91
|
-
w.value = "";
|
|
92
|
-
}, 500);
|
|
93
|
-
}
|
|
77
|
+
function $(l) {
|
|
78
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && S(), ["Escape", "Tab"].includes(l.key) && (o.value ? o.value = !1 : w.value && l.key === "Escape" && V()), l.key === "Delete" && e.clearable && V());
|
|
94
79
|
}
|
|
95
|
-
function
|
|
80
|
+
function I() {
|
|
96
81
|
var l;
|
|
97
|
-
e.loading ? (l =
|
|
82
|
+
e.loading ? (l = _.value) == null || l.focus() : Q(), m("show");
|
|
98
83
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
84
|
+
function K() {
|
|
85
|
+
C(), m("hide");
|
|
101
86
|
}
|
|
102
|
-
function
|
|
103
|
-
var l,
|
|
104
|
-
(
|
|
87
|
+
function C() {
|
|
88
|
+
var l, a;
|
|
89
|
+
(a = (l = v.value) == null ? void 0 : l.fieldRef) == null || a.focus();
|
|
105
90
|
}
|
|
106
|
-
function
|
|
91
|
+
function Q() {
|
|
107
92
|
var l;
|
|
108
|
-
(l =
|
|
109
|
-
}
|
|
110
|
-
function W(l) {
|
|
111
|
-
var o;
|
|
112
|
-
(o = _.value) == null || o.focusItem(l);
|
|
93
|
+
(l = q.value) == null || l.$el.focus();
|
|
113
94
|
}
|
|
114
|
-
return
|
|
95
|
+
return X(
|
|
115
96
|
() => e.loading,
|
|
116
97
|
(l) => {
|
|
117
|
-
!l &&
|
|
98
|
+
!l && o.value && j(Q);
|
|
118
99
|
}
|
|
119
|
-
), (l,
|
|
120
|
-
var
|
|
121
|
-
return
|
|
100
|
+
), (l, a) => {
|
|
101
|
+
var u, c;
|
|
102
|
+
return t(), f(
|
|
122
103
|
N,
|
|
123
104
|
null,
|
|
124
105
|
[
|
|
125
|
-
k(
|
|
106
|
+
k(n(oe), z({
|
|
126
107
|
id: e.id,
|
|
127
108
|
ref_key: "triggerEl",
|
|
128
|
-
ref:
|
|
109
|
+
ref: v,
|
|
129
110
|
label: e.label,
|
|
130
111
|
required: e.required,
|
|
131
112
|
role: "combobox",
|
|
@@ -141,23 +122,23 @@ const fe = {
|
|
|
141
122
|
readonly: e.readonly,
|
|
142
123
|
disabled: e.disabled,
|
|
143
124
|
"data-loading": e.loading,
|
|
144
|
-
"aria-expanded":
|
|
125
|
+
"aria-expanded": o.value,
|
|
145
126
|
"aria-haspopup": "listbox",
|
|
146
127
|
size: e.size,
|
|
147
128
|
invalid: e.invalid
|
|
148
129
|
}, l.$attrs, {
|
|
149
|
-
onClick:
|
|
150
|
-
onKeydown:
|
|
151
|
-
}),
|
|
152
|
-
append:
|
|
153
|
-
|
|
154
|
-
|
|
130
|
+
onClick: L,
|
|
131
|
+
onKeydown: A($, ["stop"])
|
|
132
|
+
}), G({
|
|
133
|
+
append: i(() => [
|
|
134
|
+
d(l.$slots, "append"),
|
|
135
|
+
w.value && p.value ? (t(), h(n(re), {
|
|
155
136
|
key: 0,
|
|
156
137
|
icons: e.icons,
|
|
157
138
|
texts: e.texts,
|
|
158
|
-
onClick:
|
|
139
|
+
onClick: V
|
|
159
140
|
}, null, 8, ["icons", "texts"])) : g("v-if", !0),
|
|
160
|
-
e.readonly ? g("v-if", !0) : (
|
|
141
|
+
e.readonly ? g("v-if", !0) : (t(), h(n(le), {
|
|
161
142
|
key: 1,
|
|
162
143
|
class: "q-select__chevron",
|
|
163
144
|
"aria-label": e.texts.showOptions,
|
|
@@ -166,11 +147,11 @@ const fe = {
|
|
|
166
147
|
borderless: "",
|
|
167
148
|
tabindex: "-1",
|
|
168
149
|
disabled: e.disabled,
|
|
169
|
-
onClick:
|
|
150
|
+
onClick: L
|
|
170
151
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
k(
|
|
173
|
-
"model-value":
|
|
152
|
+
default: i(() => [
|
|
153
|
+
k(n(se), {
|
|
154
|
+
"model-value": o.value,
|
|
174
155
|
icons: e.icons
|
|
175
156
|
}, null, 8, ["model-value", "icons"])
|
|
176
157
|
]),
|
|
@@ -178,14 +159,14 @@ const fe = {
|
|
|
178
159
|
/* STABLE */
|
|
179
160
|
}, 8, ["aria-label", "disabled"]))
|
|
180
161
|
]),
|
|
181
|
-
default:
|
|
182
|
-
|
|
183
|
-
!e.readonly && !e.disabled ? (
|
|
162
|
+
default: i(() => [
|
|
163
|
+
R.value ? (t(), f("span", ue, [
|
|
164
|
+
!e.readonly && !e.disabled ? (t(), f(
|
|
184
165
|
N,
|
|
185
166
|
{ key: 0 },
|
|
186
167
|
[
|
|
187
|
-
|
|
188
|
-
|
|
168
|
+
J(
|
|
169
|
+
F(e.texts.placeholder),
|
|
189
170
|
1
|
|
190
171
|
/* TEXT */
|
|
191
172
|
)
|
|
@@ -193,10 +174,10 @@ const fe = {
|
|
|
193
174
|
64
|
|
194
175
|
/* STABLE_FRAGMENT */
|
|
195
176
|
)) : g("v-if", !0)
|
|
196
|
-
])) : (
|
|
177
|
+
])) : (t(), f(
|
|
197
178
|
"span",
|
|
198
|
-
|
|
199
|
-
|
|
179
|
+
de,
|
|
180
|
+
F(M.value),
|
|
200
181
|
1
|
|
201
182
|
/* TEXT */
|
|
202
183
|
))
|
|
@@ -204,15 +185,15 @@ const fe = {
|
|
|
204
185
|
_: 2
|
|
205
186
|
/* DYNAMIC */
|
|
206
187
|
}, [
|
|
207
|
-
(
|
|
188
|
+
(u = s.value) != null && u.icon || l.$slots.prepend ? {
|
|
208
189
|
name: "prepend",
|
|
209
|
-
fn:
|
|
210
|
-
var r,
|
|
190
|
+
fn: i(() => {
|
|
191
|
+
var r, T;
|
|
211
192
|
return [
|
|
212
|
-
|
|
213
|
-
(r =
|
|
214
|
-
|
|
215
|
-
|
|
193
|
+
d(l.$slots, "prepend"),
|
|
194
|
+
(r = s.value) != null && r.icon ? (t(), h(
|
|
195
|
+
n(ae),
|
|
196
|
+
W(z({ key: 0 }, (T = s.value) == null ? void 0 : T.icon)),
|
|
216
197
|
null,
|
|
217
198
|
16
|
|
218
199
|
/* FULL_PROPS */
|
|
@@ -223,60 +204,60 @@ const fe = {
|
|
|
223
204
|
} : void 0,
|
|
224
205
|
l.$slots.extras ? {
|
|
225
206
|
name: "extras",
|
|
226
|
-
fn:
|
|
227
|
-
|
|
207
|
+
fn: i(() => [
|
|
208
|
+
d(l.$slots, "extras")
|
|
228
209
|
]),
|
|
229
210
|
key: "1"
|
|
230
211
|
} : void 0
|
|
231
212
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
232
|
-
k(
|
|
233
|
-
modelValue:
|
|
234
|
-
"onUpdate:modelValue":
|
|
213
|
+
k(n(ne), {
|
|
214
|
+
modelValue: o.value,
|
|
215
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
|
|
235
216
|
spy: "",
|
|
236
217
|
trigger: "manual",
|
|
237
218
|
placement: "bottom-start",
|
|
238
219
|
width: "anchor",
|
|
239
220
|
"scroll-lock": "",
|
|
240
|
-
anchor: (
|
|
221
|
+
anchor: (c = v.value) == null ? void 0 : c.$el,
|
|
241
222
|
offset: 2,
|
|
242
|
-
onEnter:
|
|
243
|
-
onLeave:
|
|
223
|
+
onEnter: I,
|
|
224
|
+
onLeave: K
|
|
244
225
|
}, {
|
|
245
|
-
default:
|
|
246
|
-
|
|
226
|
+
default: i(() => [
|
|
227
|
+
Y("div", {
|
|
247
228
|
ref_key: "contentRef",
|
|
248
|
-
ref:
|
|
229
|
+
ref: _,
|
|
249
230
|
"data-testid": "combobox-dropdown",
|
|
250
231
|
"data-key": e.id,
|
|
251
232
|
class: "q-select__body",
|
|
252
233
|
tabindex: "-1",
|
|
253
|
-
onFocusout:
|
|
254
|
-
onKeydown:
|
|
234
|
+
onFocusout: U,
|
|
235
|
+
onKeydown: A($, ["stop"])
|
|
255
236
|
}, [
|
|
256
|
-
|
|
257
|
-
e.loading ? (
|
|
258
|
-
k(
|
|
259
|
-
])) : (
|
|
237
|
+
d(l.$slots, "body.prepend"),
|
|
238
|
+
e.loading ? (t(), f("div", fe, [
|
|
239
|
+
k(n(ie), { size: 24 })
|
|
240
|
+
])) : (t(), h(n(te), {
|
|
260
241
|
key: 1,
|
|
261
242
|
ref_key: "listRef",
|
|
262
|
-
ref:
|
|
243
|
+
ref: q,
|
|
263
244
|
class: "q-select__items",
|
|
264
245
|
selectable: "",
|
|
265
|
-
"model-value":
|
|
246
|
+
"model-value": p.value,
|
|
266
247
|
items: e.items,
|
|
267
248
|
groups: l.groups,
|
|
268
249
|
"item-label": e.itemLabel,
|
|
269
250
|
"item-value": e.itemValue,
|
|
270
251
|
"onUpdate:modelValue": B
|
|
271
252
|
}, {
|
|
272
|
-
item:
|
|
273
|
-
|
|
253
|
+
item: i(({ item: r }) => [
|
|
254
|
+
d(l.$slots, "item", { item: r })
|
|
274
255
|
]),
|
|
275
256
|
_: 3
|
|
276
257
|
/* FORWARDED */
|
|
277
258
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
278
|
-
|
|
279
|
-
], 40,
|
|
259
|
+
d(l.$slots, "body.append")
|
|
260
|
+
], 40, ce)
|
|
280
261
|
]),
|
|
281
262
|
_: 3
|
|
282
263
|
/* FORWARDED */
|
|
@@ -289,5 +270,5 @@ const fe = {
|
|
|
289
270
|
}
|
|
290
271
|
});
|
|
291
272
|
export {
|
|
292
|
-
|
|
273
|
+
Ve as default
|
|
293
274
|
};
|
|
@@ -228,7 +228,6 @@ declare const QSelect: {
|
|
|
228
228
|
}> & Readonly<{
|
|
229
229
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
230
230
|
}>, {
|
|
231
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
232
231
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
233
232
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
234
233
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -275,8 +274,7 @@ declare const QSelect: {
|
|
|
275
274
|
selectable?: boolean;
|
|
276
275
|
}> & Readonly<{
|
|
277
276
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
278
|
-
}>, "
|
|
279
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
277
|
+
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
280
278
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
281
279
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
282
280
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAI2wzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAI2wzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJr2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -11,9 +11,11 @@ export * from './QColorPicker';
|
|
|
11
11
|
export * from './QCombobox';
|
|
12
12
|
export * from './QDateTimePicker';
|
|
13
13
|
export * from './QDialog';
|
|
14
|
+
export * from './QDismissibleLayer';
|
|
14
15
|
export * from './QDropdownMenu';
|
|
15
16
|
export * from './QField';
|
|
16
17
|
export * from './QFileUpload';
|
|
18
|
+
export * from './QFocusTrap';
|
|
17
19
|
export * from './QIcon';
|
|
18
20
|
export * from './QInputGroup';
|
|
19
21
|
export * from './QLabel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -2,78 +2,82 @@ import { QAccordion as e } from "./QAccordion/index.js";
|
|
|
2
2
|
import { QBadge as p } from "./QBadge/index.js";
|
|
3
3
|
import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
|
|
4
4
|
import { QButton as f } from "./QButton/index.js";
|
|
5
|
-
import { QButtonGroup as
|
|
6
|
-
import { QButtonToggle as
|
|
7
|
-
import { QCard as
|
|
8
|
-
import { QCheckbox as
|
|
5
|
+
import { QButtonGroup as a } from "./QButtonGroup/index.js";
|
|
6
|
+
import { QButtonToggle as l } from "./QButtonToggle/index.js";
|
|
7
|
+
import { QCard as s } from "./QCard/index.js";
|
|
8
|
+
import { QCheckbox as c } from "./QCheckbox/index.js";
|
|
9
9
|
import { QCollapsible as P } from "./QCollapsible/index.js";
|
|
10
10
|
import { QColorPicker as g } from "./QColorPicker/index.js";
|
|
11
|
-
import { QCombobox as
|
|
12
|
-
import { QDateTimePicker as
|
|
13
|
-
import { QDialog as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
11
|
+
import { QCombobox as b } from "./QCombobox/index.js";
|
|
12
|
+
import { QDateTimePicker as B } from "./QDateTimePicker/index.js";
|
|
13
|
+
import { QDialog as C } from "./QDialog/index.js";
|
|
14
|
+
import { QDismissibleLayer as k } from "./QDismissibleLayer/index.js";
|
|
15
|
+
import { QDropdownMenu as D } from "./QDropdownMenu/index.js";
|
|
16
|
+
import { QField as w } from "./QField/index.js";
|
|
17
|
+
import { QFileUpload as h } from "./QFileUpload/index.js";
|
|
18
|
+
import { QFocusTrap as M } from "./QFocusTrap/index.js";
|
|
19
|
+
import { QIcon as U, QIconFont as j, QIconImg as q, QIconSvg as z } from "./QIcon/index.js";
|
|
20
|
+
import { QInputGroup as H } from "./QInputGroup/index.js";
|
|
21
|
+
import { QLabel as K } from "./QLabel/index.js";
|
|
22
|
+
import { QLineLoader as V } from "./QLineLoader/index.js";
|
|
23
|
+
import { QList as X, QListItem as Y, QListItemGroup as Z } from "./QList/index.js";
|
|
24
|
+
import { QMeter as $ } from "./QMeter/index.js";
|
|
25
|
+
import { QOverlay as ro } from "./QOverlay/index.js";
|
|
26
|
+
import { QPasswordField as to } from "./QPasswordField/index.js";
|
|
27
|
+
import { QPopover as Qo } from "./QPopover/index.js";
|
|
28
|
+
import { QPropertyList as xo, QPropertyListGroup as fo, QPropertyListPanel as io, QPropertyListRow as ao } from "./QPropertyList/index.js";
|
|
29
|
+
import { QRadioButton as lo, QRadioGroup as so } from "./QRadioGroup/index.js";
|
|
30
|
+
import { QSelect as co } from "./QSelect/index.js";
|
|
31
|
+
import { QSkeletonLoader as Po } from "./QSkeletonLoader/index.js";
|
|
32
|
+
import { QSpinnerLoader as go } from "./QSpinnerLoader/index.js";
|
|
33
|
+
import { QTextArea as bo } from "./QTextArea/index.js";
|
|
34
|
+
import { QTextField as Bo } from "./QTextField/index.js";
|
|
35
|
+
import { QThemeProvider as Co } from "./QThemeProvider/index.js";
|
|
36
|
+
import { QTooltip as ko } from "./QTooltip/index.js";
|
|
35
37
|
export {
|
|
36
38
|
e as QAccordion,
|
|
37
39
|
p as QBadge,
|
|
38
40
|
m as QBadgeIndicator,
|
|
39
41
|
f as QButton,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
a as QButtonGroup,
|
|
43
|
+
l as QButtonToggle,
|
|
44
|
+
s as QCard,
|
|
45
|
+
c as QCheckbox,
|
|
44
46
|
P as QCollapsible,
|
|
45
47
|
g as QColorPicker,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
k as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
h as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
z as
|
|
58
|
-
H as
|
|
59
|
-
K as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Z as
|
|
64
|
-
$ as
|
|
65
|
-
ro as
|
|
66
|
-
to as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Po as
|
|
76
|
-
go as
|
|
77
|
-
|
|
78
|
-
|
|
48
|
+
b as QCombobox,
|
|
49
|
+
B as QDateTimePicker,
|
|
50
|
+
C as QDialog,
|
|
51
|
+
k as QDismissibleLayer,
|
|
52
|
+
D as QDropdownMenu,
|
|
53
|
+
w as QField,
|
|
54
|
+
h as QFileUpload,
|
|
55
|
+
M as QFocusTrap,
|
|
56
|
+
U as QIcon,
|
|
57
|
+
j as QIconFont,
|
|
58
|
+
q as QIconImg,
|
|
59
|
+
z as QIconSvg,
|
|
60
|
+
H as QInputGroup,
|
|
61
|
+
K as QLabel,
|
|
62
|
+
V as QLineLoader,
|
|
63
|
+
X as QList,
|
|
64
|
+
Y as QListItem,
|
|
65
|
+
Z as QListItemGroup,
|
|
66
|
+
$ as QMeter,
|
|
67
|
+
ro as QOverlay,
|
|
68
|
+
to as QPasswordField,
|
|
69
|
+
Qo as QPopover,
|
|
70
|
+
xo as QPropertyList,
|
|
71
|
+
fo as QPropertyListGroup,
|
|
72
|
+
io as QPropertyListPanel,
|
|
73
|
+
ao as QPropertyListRow,
|
|
74
|
+
lo as QRadioButton,
|
|
75
|
+
so as QRadioGroup,
|
|
76
|
+
co as QSelect,
|
|
77
|
+
Po as QSkeletonLoader,
|
|
78
|
+
go as QSpinnerLoader,
|
|
79
|
+
bo as QTextArea,
|
|
80
|
+
Bo as QTextField,
|
|
81
|
+
Co as QThemeProvider,
|
|
82
|
+
ko as QTooltip
|
|
79
83
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -20,9 +20,11 @@ declare module '@vue/runtime-core' {
|
|
|
20
20
|
QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
|
|
21
21
|
QDateTimePicker: typeof import('@quidgest/ui/components')['QDateTimePicker']
|
|
22
22
|
QDialog: typeof import('@quidgest/ui/components')['QDialog']
|
|
23
|
+
QDismissibleLayer: typeof import('@quidgest/ui/components')['QDismissibleLayer']
|
|
23
24
|
QDropdownMenu: typeof import('@quidgest/ui/components')['QDropdownMenu']
|
|
24
25
|
QField: typeof import('@quidgest/ui/components')['QField']
|
|
25
26
|
QFileUpload: typeof import('@quidgest/ui/components')['QFileUpload']
|
|
27
|
+
QFocusTrap: typeof import('@quidgest/ui/components')['QFocusTrap']
|
|
26
28
|
QIcon: typeof import('@quidgest/ui/components')['QIcon']
|
|
27
29
|
QIconFont: typeof import('@quidgest/ui/components')['QIconFont']
|
|
28
30
|
QIconImg: typeof import('@quidgest/ui/components')['QIconImg']
|
package/esm/utils/merge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CACpB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACpC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2BzB"}
|
package/esm/utils/merge.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
for (const
|
|
5
|
-
t
|
|
6
|
-
for (const o in e) {
|
|
7
|
-
const c = n[o], r = e[o];
|
|
8
|
-
if (i(c) && i(r)) {
|
|
9
|
-
t[o] = f(
|
|
10
|
-
c,
|
|
11
|
-
r
|
|
12
|
-
);
|
|
1
|
+
import { isObject as s } from "./isObject.js";
|
|
2
|
+
function i(n = {}, c = {}) {
|
|
3
|
+
const o = {}, f = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(c)]);
|
|
4
|
+
for (const t of f) {
|
|
5
|
+
if (t === "__proto__" || t === "constructor" || t === "prototype")
|
|
13
6
|
continue;
|
|
14
|
-
|
|
15
|
-
t
|
|
7
|
+
const r = n[t], e = c[t];
|
|
8
|
+
s(r) && s(e) ? o[t] = i(
|
|
9
|
+
r,
|
|
10
|
+
e
|
|
11
|
+
) : o[t] = e !== void 0 ? e : r;
|
|
16
12
|
}
|
|
17
|
-
return
|
|
13
|
+
return o;
|
|
18
14
|
}
|
|
19
15
|
export {
|
|
20
|
-
|
|
16
|
+
i as merge
|
|
21
17
|
};
|