@quidgest/ui 0.15.2 → 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 +4 -0
- package/dist/ui.css +111 -6
- package/dist/ui.esm.js +6988 -5987
- package/dist/ui.js +33 -26
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1141 -990
- package/dist/ui.scss +119 -9
- package/esm/components/QCombobox/QCombobox.d.ts +18 -14
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -1
- package/esm/components/QCombobox/index.d.ts +29 -17
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1 -1
- package/esm/components/QDateTimePicker/index.d.ts +3 -0
- package/esm/components/QDateTimePicker/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/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +11 -10
- package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
- package/esm/components/QFileUpload/index.d.ts +3 -0
- package/esm/components/QFileUpload/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/QInputGroup/QInputGroup.vue.js +1 -1
- package/esm/components/QLabel/QLabel.d.ts +1 -0
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +28 -13
- package/esm/components/QLabel/index.d.ts +1 -0
- package/esm/components/QLabel/index.d.ts.map +1 -1
- package/esm/components/QLabel/types.d.ts +5 -0
- package/esm/components/QLabel/types.d.ts.map +1 -1
- 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/QMeter/QMeter.vue.js +14 -13
- package/esm/components/QMeter/index.d.ts +2 -0
- package/esm/components/QMeter/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/QPasswordField.d.ts +8 -4
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +6 -5
- package/esm/components/QPasswordField/index.d.ts +4 -2
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +23 -23
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +6 -2
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +20 -20
- package/esm/components/QPropertyList/index.d.ts +9 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts +24 -0
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioButton.vue.js +78 -0
- package/esm/components/QRadioGroup/QRadioButton.vue2.js +4 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +32 -0
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -0
- package/esm/components/QRadioGroup/QRadioGroup.vue2.js +4 -0
- package/esm/components/QRadioGroup/index.d.ts +108 -0
- package/esm/components/QRadioGroup/index.d.ts.map +1 -0
- package/esm/components/QRadioGroup/index.js +8 -0
- package/esm/components/QRadioGroup/types.d.ts +65 -0
- package/esm/components/QRadioGroup/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +4 -8
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +107 -126
- package/esm/components/QSelect/index.d.ts +5 -4
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -2
- package/esm/components/QTextField/QTextField.vue.js +1 -1
- package/esm/components/QTextField/index.d.ts +4 -1
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +67 -60
- package/esm/composables/group.d.ts.map +1 -1
- package/esm/composables/group.js +1 -1
- package/esm/index.d.ts +4 -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { Group, QListProps } from './types';
|
|
2
2
|
import { Primitive } from '../../types/primitive';
|
|
3
3
|
type __VLS_Props = QListProps;
|
|
4
|
-
/**
|
|
5
|
-
* Focuses on the HTML element at the specified index among the child elements.
|
|
6
|
-
*
|
|
7
|
-
* If the index is out of bounds or the element is inaccessible, no action is taken.
|
|
8
|
-
*
|
|
9
|
-
* @param itemIdx - The index of the HTML element to focus on.
|
|
10
|
-
*/
|
|
11
|
-
declare function focusItem(itemIdx: number, preventScroll?: boolean): void;
|
|
12
4
|
declare function getItem(idx: number): HTMLElement | undefined;
|
|
13
5
|
/**
|
|
14
6
|
* Retrieves the index of the first focusable item among the child elements.
|
|
@@ -124,7 +116,6 @@ declare function __VLS_template(): {
|
|
|
124
116
|
};
|
|
125
117
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
126
118
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
127
|
-
focusItem: typeof focusItem;
|
|
128
119
|
getItem: typeof getItem;
|
|
129
120
|
getAdjacentItemIndex: typeof getAdjacentItemIndex;
|
|
130
121
|
getFirstFocusableItemIndex: typeof getFirstFocusableItemIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA4CA;
|
|
1
|
+
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA4CA;AA4ZC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAKlD,KAAK,WAAW,GAAG,UAAU,CAAC;AAuM9B,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAaD;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AAoDF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoIT,OAAO,IAA6B;;;;;YAbvB,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAhDE,GAAG,8CAChB,GAAG,yBACT,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EA+D9D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAzFoB,GAAG,8CAChB,GAAG,yBACT,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAkG7D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QListItemGroup as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as K, mergeModels as N, useModel as P, ref as b, computed as _, createBlock as w, openBlock as d, resolveDynamicComponent as W, normalizeClass as J, withCtx as p, createElementBlock as B, Fragment as D, renderList as M, unref as C, renderSlot as T } from "vue";
|
|
2
|
+
import { QListItemGroup as X, QListItem as Y } from "./index.js";
|
|
3
|
+
const te = /* @__PURE__ */ K({
|
|
4
4
|
__name: "QList",
|
|
5
|
-
props: /* @__PURE__ */
|
|
5
|
+
props: /* @__PURE__ */ N({
|
|
6
6
|
id: {},
|
|
7
7
|
class: {},
|
|
8
8
|
highlighted: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -17,33 +17,36 @@ const Z = /* @__PURE__ */ H({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
20
|
+
setup(x, { expose: E }) {
|
|
21
|
+
const n = x, f = P(x, "modelValue"), g = b(!1), $ = _(() => a.value.length > 1 ? "div" : "ul"), a = _(() => n.groups.length ? n.groups.filter(
|
|
22
22
|
(e) => {
|
|
23
23
|
var t;
|
|
24
|
-
return (t =
|
|
24
|
+
return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
|
|
25
25
|
}
|
|
26
|
-
) : [{ id: "", title: "" }]),
|
|
26
|
+
) : [{ id: "", title: "" }]), v = b(null), h = b(null);
|
|
27
27
|
function R(e) {
|
|
28
28
|
f.value = e;
|
|
29
29
|
}
|
|
30
|
-
function $() {
|
|
31
|
-
p.value = !0;
|
|
32
|
-
}
|
|
33
30
|
function q() {
|
|
34
|
-
|
|
31
|
+
g.value = !0;
|
|
32
|
+
}
|
|
33
|
+
function O() {
|
|
34
|
+
g.value = !1;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Q(e) {
|
|
37
37
|
var s;
|
|
38
|
-
if (!
|
|
38
|
+
if (!n.items || (s = v.value) != null && s.contains(e.relatedTarget))
|
|
39
39
|
return;
|
|
40
40
|
let t;
|
|
41
|
-
f.value ? t =
|
|
42
|
-
const
|
|
43
|
-
r(t,
|
|
41
|
+
f.value ? t = n.items.findIndex((o) => o[n.itemValue] === f.value) : t = y();
|
|
42
|
+
const l = g.value;
|
|
43
|
+
r(t, l);
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
const I = b("");
|
|
46
|
+
let A;
|
|
47
|
+
function U(e) {
|
|
48
|
+
var t;
|
|
49
|
+
switch (window.clearTimeout(A), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
|
|
47
50
|
case "ArrowDown":
|
|
48
51
|
m("next");
|
|
49
52
|
break;
|
|
@@ -57,18 +60,31 @@ const Z = /* @__PURE__ */ H({
|
|
|
57
60
|
m("last");
|
|
58
61
|
break;
|
|
59
62
|
}
|
|
63
|
+
if (/^[a-z]$/i.test(e.key)) {
|
|
64
|
+
I.value += e.key.toLowerCase();
|
|
65
|
+
const l = ((t = n.items) == null ? void 0 : t.length) || 0;
|
|
66
|
+
for (let s = 0; s < l; s++)
|
|
67
|
+
if (n.items[s][n.itemLabel].toLowerCase().startsWith(I.value)) {
|
|
68
|
+
r(s);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
e.preventDefault(), e.stopPropagation();
|
|
72
|
+
}
|
|
73
|
+
A = window.setTimeout(function() {
|
|
74
|
+
I.value = "";
|
|
75
|
+
}, 500);
|
|
60
76
|
}
|
|
61
77
|
function m(e) {
|
|
62
78
|
switch (e) {
|
|
63
79
|
case "next":
|
|
64
80
|
case "prev":
|
|
65
|
-
r(
|
|
81
|
+
r(G(e));
|
|
66
82
|
break;
|
|
67
83
|
case "first":
|
|
68
|
-
r(
|
|
84
|
+
r(y());
|
|
69
85
|
break;
|
|
70
86
|
case "last":
|
|
71
|
-
r(
|
|
87
|
+
r(L());
|
|
72
88
|
break;
|
|
73
89
|
}
|
|
74
90
|
}
|
|
@@ -78,110 +94,109 @@ const Z = /* @__PURE__ */ H({
|
|
|
78
94
|
}
|
|
79
95
|
function i() {
|
|
80
96
|
var t;
|
|
81
|
-
const e = (t =
|
|
97
|
+
const e = (t = v.value) == null ? void 0 : t.querySelectorAll("li");
|
|
82
98
|
return e ? Array.from(e) : [];
|
|
83
99
|
}
|
|
84
|
-
function
|
|
100
|
+
function j(e) {
|
|
85
101
|
return i()[e];
|
|
86
102
|
}
|
|
87
|
-
function
|
|
103
|
+
function z() {
|
|
88
104
|
return i().indexOf(document.activeElement);
|
|
89
105
|
}
|
|
90
|
-
function
|
|
91
|
-
const e = i(), t = e.find((
|
|
106
|
+
function y() {
|
|
107
|
+
const e = i(), t = e.find((l) => k(l));
|
|
92
108
|
return t ? e.indexOf(t) : -1;
|
|
93
109
|
}
|
|
94
|
-
function
|
|
95
|
-
const e = i(), t = [...e].reverse().find((
|
|
110
|
+
function L() {
|
|
111
|
+
const e = i(), t = [...e].reverse().find((l) => k(l));
|
|
96
112
|
return t ? e.indexOf(t) : -1;
|
|
97
113
|
}
|
|
98
|
-
function
|
|
99
|
-
return t === "prev" && e <= 0 || t === "next" && e ===
|
|
114
|
+
function S(e, t, l) {
|
|
115
|
+
return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
|
|
100
116
|
}
|
|
101
|
-
function
|
|
102
|
-
const t =
|
|
103
|
-
return
|
|
117
|
+
function G(e) {
|
|
118
|
+
const t = z();
|
|
119
|
+
return V(t, e);
|
|
104
120
|
}
|
|
105
|
-
function
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
121
|
+
function V(e, t) {
|
|
122
|
+
const l = i();
|
|
123
|
+
if (S(e, t, l))
|
|
108
124
|
return e;
|
|
109
125
|
let s = e + (t === "next" ? 1 : -1);
|
|
110
|
-
for (; !
|
|
111
|
-
if (
|
|
126
|
+
for (; !k(l[s]); ) {
|
|
127
|
+
if (S(s, t, l))
|
|
112
128
|
return e;
|
|
113
129
|
s += t === "next" ? 1 : -1;
|
|
114
130
|
}
|
|
115
131
|
return s;
|
|
116
132
|
}
|
|
117
|
-
function
|
|
133
|
+
function k(e) {
|
|
118
134
|
return e.tabIndex === -2;
|
|
119
135
|
}
|
|
120
|
-
function
|
|
136
|
+
function H(e) {
|
|
121
137
|
var t;
|
|
122
|
-
return e ? (t =
|
|
138
|
+
return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
|
|
123
139
|
}
|
|
124
140
|
return E({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
id: l.id,
|
|
141
|
+
getItem: j,
|
|
142
|
+
getAdjacentItemIndex: V,
|
|
143
|
+
getFirstFocusableItemIndex: y,
|
|
144
|
+
getLastFocusableItemIndex: L
|
|
145
|
+
}), (e, t) => (d(), w(W($.value), {
|
|
146
|
+
id: n.id,
|
|
132
147
|
ref_key: "listRef",
|
|
133
|
-
ref:
|
|
134
|
-
class: J(["q-list", { "q-list--disabled":
|
|
148
|
+
ref: v,
|
|
149
|
+
class: J(["q-list", { "q-list--disabled": n.disabled }, n.class]),
|
|
135
150
|
role: "listbox",
|
|
136
|
-
tabindex:
|
|
137
|
-
onFocus:
|
|
138
|
-
onMousedown:
|
|
139
|
-
onMouseup:
|
|
140
|
-
onKeydown:
|
|
151
|
+
tabindex: n.disabled ? -1 : 0,
|
|
152
|
+
onFocus: Q,
|
|
153
|
+
onMousedown: q,
|
|
154
|
+
onMouseup: O,
|
|
155
|
+
onKeydown: U
|
|
141
156
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
(d(!0),
|
|
144
|
-
|
|
157
|
+
default: p(() => [
|
|
158
|
+
(d(!0), B(
|
|
159
|
+
D,
|
|
145
160
|
null,
|
|
146
|
-
|
|
147
|
-
id:
|
|
148
|
-
key:
|
|
149
|
-
title: a.value.length === 1 ? void 0 :
|
|
161
|
+
M(a.value, (l, s) => (d(), w(C(X), {
|
|
162
|
+
id: l.id,
|
|
163
|
+
key: l.id,
|
|
164
|
+
title: a.value.length === 1 ? void 0 : l.title
|
|
150
165
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
(d(!0),
|
|
153
|
-
|
|
166
|
+
default: p(() => [
|
|
167
|
+
(d(!0), B(
|
|
168
|
+
D,
|
|
154
169
|
null,
|
|
155
|
-
|
|
156
|
-
key: o[
|
|
170
|
+
M(H(l.id), (o, F) => (d(), w(C(Y), {
|
|
171
|
+
key: o[n.itemValue],
|
|
157
172
|
ref_for: !0,
|
|
158
173
|
ref_key: "listItemsRef",
|
|
159
|
-
ref:
|
|
160
|
-
value: o[
|
|
161
|
-
label: o[
|
|
174
|
+
ref: h,
|
|
175
|
+
value: o[n.itemValue],
|
|
176
|
+
label: o[n.itemLabel],
|
|
162
177
|
description: o.description,
|
|
163
178
|
icon: o.icon,
|
|
164
|
-
disabled:
|
|
165
|
-
highlighted:
|
|
166
|
-
selectable:
|
|
167
|
-
selected:
|
|
179
|
+
disabled: n.disabled || l.disabled || o.disabled,
|
|
180
|
+
highlighted: n.highlighted === o[n.itemValue],
|
|
181
|
+
selectable: n.selectable,
|
|
182
|
+
selected: n.selectable && f.value === o[n.itemValue],
|
|
168
183
|
onSelect: R
|
|
169
184
|
}, {
|
|
170
|
-
append:
|
|
185
|
+
append: p(() => {
|
|
171
186
|
var u, c;
|
|
172
187
|
return [
|
|
173
|
-
|
|
188
|
+
T(e.$slots, "item.append", {
|
|
174
189
|
item: o,
|
|
175
|
-
element: (c = (u =
|
|
190
|
+
element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
|
|
176
191
|
})
|
|
177
192
|
];
|
|
178
193
|
}),
|
|
179
|
-
default:
|
|
194
|
+
default: p(() => {
|
|
180
195
|
var u, c;
|
|
181
196
|
return [
|
|
182
|
-
|
|
197
|
+
T(e.$slots, "item", {
|
|
183
198
|
item: o,
|
|
184
|
-
element: (c = (u =
|
|
199
|
+
element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
|
|
185
200
|
})
|
|
186
201
|
];
|
|
187
202
|
}),
|
|
@@ -205,5 +220,5 @@ const Z = /* @__PURE__ */ H({
|
|
|
205
220
|
}
|
|
206
221
|
});
|
|
207
222
|
export {
|
|
208
|
-
|
|
223
|
+
te as default
|
|
209
224
|
};
|
|
@@ -13,7 +13,6 @@ declare const QList: {
|
|
|
13
13
|
}> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
17
16
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
18
17
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
19
18
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -112,7 +111,6 @@ declare const QList: {
|
|
|
112
111
|
}> & Readonly<{
|
|
113
112
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
114
113
|
}>, {
|
|
115
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
116
114
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
117
115
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
118
116
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -138,7 +136,6 @@ declare const QList: {
|
|
|
138
136
|
}> & Readonly<{
|
|
139
137
|
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
140
138
|
}>, {
|
|
141
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
142
139
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
143
140
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
144
141
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCASo1yB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EATh7yB,CAAA;AACrC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAC7C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;EAAmC,CAAA;AAGvD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAG3C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as v, mergeModels as b, useModel as f, computed as t, toRef as
|
|
2
|
-
import { QLabel as
|
|
3
|
-
import { useColor as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, mergeModels as b, useModel as f, computed as t, toRef as p, createElementBlock as h, openBlock as q, normalizeClass as x, createElementVNode as o, createVNode as n, unref as u, normalizeStyle as y } from "vue";
|
|
2
|
+
import { QLabel as c } from "../QLabel/index.js";
|
|
3
|
+
import { useColor as L } from "../../composables/useColor/index.js";
|
|
4
|
+
const M = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track" }, B = /* @__PURE__ */ v({
|
|
5
5
|
__name: "QMeter",
|
|
6
6
|
props: /* @__PURE__ */ b({
|
|
7
7
|
id: {},
|
|
8
8
|
class: {},
|
|
9
9
|
label: {},
|
|
10
10
|
for: {},
|
|
11
|
+
required: { type: Boolean },
|
|
11
12
|
max: { default: 100 },
|
|
12
13
|
valueLabel: {},
|
|
13
14
|
color: {}
|
|
@@ -17,25 +18,25 @@ const y = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
|
|
|
17
18
|
}),
|
|
18
19
|
emits: ["update:modelValue"],
|
|
19
20
|
setup(r) {
|
|
20
|
-
const e = r, s = f(r, "modelValue"),
|
|
21
|
+
const e = r, s = f(r, "modelValue"), m = t(() => s.value / e.max * 100), { style: d } = L(p(e, "color")), i = t(() => {
|
|
21
22
|
var a;
|
|
22
23
|
return {
|
|
23
|
-
width: `${Math.max(0, Math.min(
|
|
24
|
+
width: `${Math.max(0, Math.min(m.value, 100))}%`,
|
|
24
25
|
backgroundColor: (a = d.value) == null ? void 0 : a.mainColor
|
|
25
26
|
};
|
|
26
27
|
}), _ = t(() => {
|
|
27
28
|
var l;
|
|
28
29
|
return typeof e.valueLabel == "string" ? e.valueLabel : (l = e.valueLabel) == null ? void 0 : l.call(e, s.value, e.max);
|
|
29
30
|
});
|
|
30
|
-
return (l, a) => (
|
|
31
|
+
return (l, a) => (q(), h("div", {
|
|
31
32
|
id: e.id,
|
|
32
|
-
class:
|
|
33
|
+
class: x(["q-meter", e.class])
|
|
33
34
|
}, [
|
|
34
35
|
o("div", C, [
|
|
35
|
-
n(c
|
|
36
|
+
n(u(c), {
|
|
36
37
|
label: e.label
|
|
37
38
|
}, null, 8, ["label"]),
|
|
38
|
-
n(c
|
|
39
|
+
n(u(c), {
|
|
39
40
|
label: _.value,
|
|
40
41
|
class: "q-meter__value-label"
|
|
41
42
|
}, null, 8, ["label"])
|
|
@@ -45,16 +46,16 @@ const y = ["id"], C = { class: "q-meter__labels" }, V = { class: "q-meter__track
|
|
|
45
46
|
"div",
|
|
46
47
|
{
|
|
47
48
|
class: "q-meter__fill",
|
|
48
|
-
style:
|
|
49
|
+
style: y(i.value)
|
|
49
50
|
},
|
|
50
51
|
null,
|
|
51
52
|
4
|
|
52
53
|
/* STYLE */
|
|
53
54
|
)
|
|
54
55
|
])
|
|
55
|
-
], 10,
|
|
56
|
+
], 10, M));
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
B as default
|
|
60
61
|
};
|
|
@@ -4,6 +4,7 @@ declare const QMeter: import('vue').DefineComponent<{
|
|
|
4
4
|
} & import('../../types/component').QBaseComponentProps & {
|
|
5
5
|
label?: string;
|
|
6
6
|
for?: string;
|
|
7
|
+
required?: boolean;
|
|
7
8
|
} & {
|
|
8
9
|
max?: number;
|
|
9
10
|
valueLabel?: string | ((value: number, max: number) => string);
|
|
@@ -15,6 +16,7 @@ declare const QMeter: import('vue').DefineComponent<{
|
|
|
15
16
|
} & import('../../types/component').QBaseComponentProps & {
|
|
16
17
|
label?: string;
|
|
17
18
|
for?: string;
|
|
19
|
+
required?: boolean;
|
|
18
20
|
} & {
|
|
19
21
|
max?: number;
|
|
20
22
|
valueLabel?: string | ((value: number, max: number) => string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -9,6 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {
|
|
12
|
+
overlayContainerRef: HTMLDivElement;
|
|
12
13
|
overlayRef: HTMLDivElement;
|
|
13
14
|
arrowRef: HTMLDivElement;
|
|
14
15
|
};
|
|
@@ -35,6 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
35
36
|
crossOffset: number;
|
|
36
37
|
trigger: import('../../composables/overlay').Trigger;
|
|
37
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
overlayContainerRef: HTMLDivElement;
|
|
38
40
|
overlayRef: HTMLDivElement;
|
|
39
41
|
arrowRef: HTMLDivElement;
|
|
40
42
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA4DA;AA+gBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAmclC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|