@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":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAI+vzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -17,10 +17,10 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
17
17
|
class: {},
|
|
18
18
|
label: {},
|
|
19
19
|
for: {},
|
|
20
|
+
required: { type: Boolean },
|
|
20
21
|
size: {},
|
|
21
22
|
readonly: { type: Boolean },
|
|
22
23
|
disabled: { type: Boolean },
|
|
23
|
-
required: { type: Boolean },
|
|
24
24
|
invalid: { type: Boolean },
|
|
25
25
|
format: { default: "dd/MM/yyyy HH:mm" },
|
|
26
26
|
minTime: {},
|
|
@@ -5,6 +5,7 @@ declare const QDateTimePicker: {
|
|
|
5
5
|
} & import('../../types/component').QBaseComponentProps & {
|
|
6
6
|
label?: string;
|
|
7
7
|
for?: string;
|
|
8
|
+
required?: boolean;
|
|
8
9
|
} & {
|
|
9
10
|
size?: import('..').QFieldSize;
|
|
10
11
|
readonly?: boolean;
|
|
@@ -43,6 +44,7 @@ declare const QDateTimePicker: {
|
|
|
43
44
|
} & import('../../types/component').QBaseComponentProps & {
|
|
44
45
|
label?: string;
|
|
45
46
|
for?: string;
|
|
47
|
+
required?: boolean;
|
|
46
48
|
} & {
|
|
47
49
|
size?: import('..').QFieldSize;
|
|
48
50
|
readonly?: boolean;
|
|
@@ -74,6 +76,7 @@ declare const QDateTimePicker: {
|
|
|
74
76
|
} & import('../../types/component').QBaseComponentProps & {
|
|
75
77
|
label?: string;
|
|
76
78
|
for?: string;
|
|
79
|
+
required?: boolean;
|
|
77
80
|
} & {
|
|
78
81
|
size?: import('..').QFieldSize;
|
|
79
82
|
readonly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAKnD,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAKnD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAA;AAGzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAG1B,YAAY,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialogButton, QDialogProps
|
|
1
|
+
import { DEFAULT_ICONS, DialogButton, QDialogProps } from './types';
|
|
2
2
|
type __VLS_Props = QDialogProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
20
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
html: boolean;
|
|
23
|
-
icon: import('
|
|
23
|
+
icon: import('..').Icon;
|
|
24
24
|
icons: typeof DEFAULT_ICONS;
|
|
25
25
|
attach: string;
|
|
26
26
|
backdropBlur: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAyDA;
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAyDA;AA6FC,OAAO,EAAiC,aAAa,EAAE,MAAM,SAAS,CAAA;AAQtE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD,KAAK,WAAW,GAAG,YAAY,CAAC;AAgCjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgKT,OAAO,IAA6B;;gCAZb,GAAG;6BACN,GAAG;+BACD,GAAG;;;;EAetC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;6EASnB,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,73 +1,74 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as
|
|
1
|
+
import { defineComponent as C, mergeModels as V, useModel as q, createBlock as n, openBlock as o, unref as a, withCtx as c, createElementVNode as i, normalizeClass as T, renderSlot as u, createCommentVNode as _, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as g, createElementBlock as d, Fragment as D, renderList as L, mergeProps as v } from "vue";
|
|
2
|
+
import { DEFAULT_ICONS as N, DEFAULT_BUTTONS as x, DEFAULT_ICON as E } from "./types.js";
|
|
2
3
|
import { QButton as B } from "../QButton/index.js";
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import { QOverlay as
|
|
5
|
-
|
|
6
|
-
const A = { class: "q-dialog__header" }, F = { class: "q-dialog__header-title" }, O = { class: "q-dialog__body" }, Q = {
|
|
4
|
+
import { QIcon as p } from "../QIcon/index.js";
|
|
5
|
+
import { QOverlay as M } from "../QOverlay/index.js";
|
|
6
|
+
const U = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }, F = { class: "q-dialog__body" }, O = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "q-dialog__body-icon"
|
|
9
|
-
},
|
|
9
|
+
}, Q = { class: "q-dialog__body-text" }, S = ["innerHTML"], I = { key: 1 }, P = { class: "q-dialog__body-actions" }, j = /* @__PURE__ */ C({
|
|
10
10
|
__name: "QDialog",
|
|
11
|
-
props: /* @__PURE__ */
|
|
11
|
+
props: /* @__PURE__ */ V({
|
|
12
12
|
id: {},
|
|
13
13
|
class: {},
|
|
14
14
|
title: {},
|
|
15
15
|
text: {},
|
|
16
|
-
icon: { default: () =>
|
|
17
|
-
buttons: { default: () =>
|
|
16
|
+
icon: { default: () => E },
|
|
17
|
+
buttons: { default: () => x },
|
|
18
18
|
attach: { default: "body" },
|
|
19
19
|
inline: { type: Boolean },
|
|
20
20
|
backdropBlur: { type: Boolean, default: !0 },
|
|
21
21
|
dismissible: { type: Boolean },
|
|
22
22
|
html: { type: Boolean, default: !0 },
|
|
23
|
-
icons: { default: () =>
|
|
23
|
+
icons: { default: () => N }
|
|
24
24
|
}, {
|
|
25
25
|
modelValue: { type: Boolean },
|
|
26
26
|
modelModifiers: {}
|
|
27
27
|
}),
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
const e =
|
|
29
|
+
setup(m) {
|
|
30
|
+
const e = m, r = q(m, "modelValue");
|
|
31
31
|
function f() {
|
|
32
|
-
|
|
32
|
+
r.value = !1;
|
|
33
33
|
}
|
|
34
34
|
function b(l) {
|
|
35
|
-
var
|
|
36
|
-
(
|
|
35
|
+
var s;
|
|
36
|
+
(s = l.action) == null || s.call(l), f();
|
|
37
37
|
}
|
|
38
|
-
return (l,
|
|
38
|
+
return (l, s) => (o(), n(a(M), {
|
|
39
39
|
id: e.id,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
attach: e.attach,
|
|
43
|
-
"backdrop-blur": e.backdropBlur,
|
|
40
|
+
modelValue: r.value,
|
|
41
|
+
"onUpdate:modelValue": s[0] || (s[0] = (t) => r.value = t),
|
|
44
42
|
"backdrop-class": "q-dialog__underlay",
|
|
45
43
|
"scroll-lock": "",
|
|
46
|
-
persistent: ""
|
|
44
|
+
persistent: "",
|
|
45
|
+
inline: e.inline,
|
|
46
|
+
attach: e.attach,
|
|
47
|
+
"backdrop-blur": e.backdropBlur
|
|
47
48
|
}, {
|
|
48
|
-
default:
|
|
49
|
+
default: c(() => [
|
|
49
50
|
i(
|
|
50
51
|
"div",
|
|
51
52
|
{
|
|
52
|
-
class:
|
|
53
|
+
class: T(["q-dialog", e.class])
|
|
53
54
|
},
|
|
54
55
|
[
|
|
55
|
-
i("div",
|
|
56
|
+
i("div", U, [
|
|
56
57
|
i(
|
|
57
58
|
"span",
|
|
58
|
-
|
|
59
|
+
A,
|
|
59
60
|
y(e.title),
|
|
60
61
|
1
|
|
61
62
|
/* TEXT */
|
|
62
63
|
),
|
|
63
|
-
e.dismissible ? (o(),
|
|
64
|
+
e.dismissible ? (o(), n(a(B), {
|
|
64
65
|
key: 0,
|
|
65
66
|
variant: "text",
|
|
66
67
|
onClick: f
|
|
67
68
|
}, {
|
|
68
|
-
default:
|
|
69
|
+
default: c(() => [
|
|
69
70
|
k(
|
|
70
|
-
|
|
71
|
+
a(p),
|
|
71
72
|
h(g(e.icons.close)),
|
|
72
73
|
null,
|
|
73
74
|
16
|
|
@@ -76,26 +77,26 @@ const A = { class: "q-dialog__header" }, F = { class: "q-dialog__header-title" }
|
|
|
76
77
|
]),
|
|
77
78
|
_: 1
|
|
78
79
|
/* STABLE */
|
|
79
|
-
})) :
|
|
80
|
+
})) : _("v-if", !0)
|
|
80
81
|
]),
|
|
81
|
-
|
|
82
|
-
i("div",
|
|
83
|
-
|
|
84
|
-
e.icon ? (o(),
|
|
82
|
+
u(l.$slots, "body.content", {}, () => [
|
|
83
|
+
i("div", F, [
|
|
84
|
+
u(l.$slots, "body.icon", {}, () => [
|
|
85
|
+
e.icon ? (o(), d("span", O, [
|
|
85
86
|
k(
|
|
86
|
-
|
|
87
|
+
a(p),
|
|
87
88
|
h(g(e.icon)),
|
|
88
89
|
null,
|
|
89
90
|
16
|
|
90
91
|
/* FULL_PROPS */
|
|
91
92
|
)
|
|
92
|
-
])) :
|
|
93
|
+
])) : _("v-if", !0)
|
|
93
94
|
]),
|
|
94
|
-
i("div",
|
|
95
|
-
e.html ? (o(),
|
|
95
|
+
i("div", Q, [
|
|
96
|
+
e.html ? (o(), d("span", {
|
|
96
97
|
key: 0,
|
|
97
98
|
innerHTML: e.text
|
|
98
|
-
}, null, 8,
|
|
99
|
+
}, null, 8, S)) : (o(), d(
|
|
99
100
|
"span",
|
|
100
101
|
I,
|
|
101
102
|
y(e.text),
|
|
@@ -103,28 +104,28 @@ const A = { class: "q-dialog__header" }, F = { class: "q-dialog__header-title" }
|
|
|
103
104
|
/* TEXT */
|
|
104
105
|
))
|
|
105
106
|
]),
|
|
106
|
-
|
|
107
|
+
u(l.$slots, "body.append")
|
|
107
108
|
])
|
|
108
109
|
]),
|
|
109
110
|
i("div", P, [
|
|
110
|
-
(o(!0),
|
|
111
|
-
|
|
111
|
+
(o(!0), d(
|
|
112
|
+
D,
|
|
112
113
|
null,
|
|
113
|
-
|
|
114
|
-
key:
|
|
115
|
-
onClick: () => b(
|
|
114
|
+
L(e.buttons, (t) => (o(), n(a(B), v({ ref_for: !0 }, t.props, {
|
|
115
|
+
key: t.id,
|
|
116
|
+
onClick: () => b(t)
|
|
116
117
|
}), {
|
|
117
|
-
default:
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
default: c(() => [
|
|
119
|
+
t.icon ? (o(), n(
|
|
120
|
+
a(p),
|
|
120
121
|
v({
|
|
121
122
|
key: 0,
|
|
122
123
|
ref_for: !0
|
|
123
|
-
},
|
|
124
|
+
}, t.icon),
|
|
124
125
|
null,
|
|
125
126
|
16
|
|
126
127
|
/* FULL_PROPS */
|
|
127
|
-
)) :
|
|
128
|
+
)) : _("v-if", !0)
|
|
128
129
|
]),
|
|
129
130
|
_: 2
|
|
130
131
|
/* DYNAMIC */
|
|
@@ -140,7 +141,7 @@ const A = { class: "q-dialog__header" }, F = { class: "q-dialog__header-title" }
|
|
|
140
141
|
]),
|
|
141
142
|
_: 3
|
|
142
143
|
/* FORWARDED */
|
|
143
|
-
}, 8, ["id", "
|
|
144
|
+
}, 8, ["id", "modelValue", "inline", "attach", "backdrop-blur"]));
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FocusOutsideEvent, PointerDownOutsideEvent } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
layerRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"escape-key-down": (event: KeyboardEvent) => any;
|
|
15
|
+
"pointer-down-outside": (event: PointerDownOutsideEvent) => any;
|
|
16
|
+
"focus-outside": (event: FocusOutsideEvent) => any;
|
|
17
|
+
"interact-outside": (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
18
|
+
dismiss: (event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
20
|
+
"onEscape-key-down"?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
|
+
"onPointer-down-outside"?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
22
|
+
"onFocus-outside"?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
23
|
+
"onInteract-outside"?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
24
|
+
onDismiss?: ((event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
26
|
+
layerRef: HTMLDivElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=QDismissibleLayer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AA8HC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAgH1E,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as r, ref as a, onMounted as c, onUnmounted as l, createElementBlock as f, openBlock as m, renderSlot as p } from "vue";
|
|
2
|
+
import { onClickOutside as v } from "../../vendors/@vueuse/core/index.js";
|
|
3
|
+
const b = /* @__PURE__ */ r({
|
|
4
|
+
__name: "QDismissibleLayer",
|
|
5
|
+
emits: ["escape-key-down", "pointer-down-outside", "focus-outside", "interact-outside", "dismiss"],
|
|
6
|
+
setup(E, { emit: u }) {
|
|
7
|
+
const t = u, o = a(null);
|
|
8
|
+
function i(e) {
|
|
9
|
+
e.key === "Escape" && (t("escape-key-down", e), e.defaultPrevented || t("dismiss", e));
|
|
10
|
+
}
|
|
11
|
+
function d(e) {
|
|
12
|
+
if (!o.value) return;
|
|
13
|
+
const n = e.target;
|
|
14
|
+
if (!o.value.contains(n)) {
|
|
15
|
+
const s = new CustomEvent("focus-outside", {
|
|
16
|
+
bubbles: !1,
|
|
17
|
+
cancelable: !0,
|
|
18
|
+
detail: { originalEvent: e }
|
|
19
|
+
});
|
|
20
|
+
t("focus-outside", s), t("interact-outside", s), s.defaultPrevented || t("dismiss", s);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return c(() => {
|
|
24
|
+
document.addEventListener("keydown", i), document.addEventListener("focusin", d), v(o, (e) => {
|
|
25
|
+
const n = new CustomEvent("pointer-down-outside", {
|
|
26
|
+
bubbles: !1,
|
|
27
|
+
cancelable: !0,
|
|
28
|
+
detail: { originalEvent: e }
|
|
29
|
+
});
|
|
30
|
+
t("pointer-down-outside", n), t("interact-outside", n), n.defaultPrevented || t("dismiss", n);
|
|
31
|
+
});
|
|
32
|
+
}), l(() => {
|
|
33
|
+
document.removeEventListener("keydown", i), document.removeEventListener("focusin", d);
|
|
34
|
+
}), (e, n) => (m(), f(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
ref_key: "layerRef",
|
|
38
|
+
ref: o
|
|
39
|
+
},
|
|
40
|
+
[
|
|
41
|
+
p(e.$slots, "default")
|
|
42
|
+
],
|
|
43
|
+
512
|
|
44
|
+
/* NEED_PATCH */
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
b as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FocusOutsideEvent, PointerDownOutsideEvent } from './types';
|
|
2
|
+
declare const QDismissibleLayer: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
4
|
+
"onEscape-key-down"?: ((event: KeyboardEvent) => any) | undefined;
|
|
5
|
+
"onPointer-down-outside"?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
6
|
+
"onFocus-outside"?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
7
|
+
"onInteract-outside"?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
8
|
+
onDismiss?: ((event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"escape-key-down": (event: KeyboardEvent) => any;
|
|
11
|
+
"pointer-down-outside": (event: PointerDownOutsideEvent) => any;
|
|
12
|
+
"focus-outside": (event: FocusOutsideEvent) => any;
|
|
13
|
+
"interact-outside": (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
14
|
+
dismiss: (event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
15
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
16
|
+
layerRef: HTMLDivElement;
|
|
17
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<{}> & Readonly<{
|
|
25
|
+
"onEscape-key-down"?: ((event: KeyboardEvent) => any) | undefined;
|
|
26
|
+
"onPointer-down-outside"?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
27
|
+
"onFocus-outside"?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
28
|
+
"onInteract-outside"?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
29
|
+
onDismiss?: ((event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, {}>;
|
|
31
|
+
__isFragment?: never;
|
|
32
|
+
__isTeleport?: never;
|
|
33
|
+
__isSuspense?: never;
|
|
34
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
35
|
+
"onEscape-key-down"?: ((event: KeyboardEvent) => any) | undefined;
|
|
36
|
+
"onPointer-down-outside"?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
37
|
+
"onFocus-outside"?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
38
|
+
"onInteract-outside"?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
39
|
+
onDismiss?: ((event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
"escape-key-down": (event: KeyboardEvent) => any;
|
|
42
|
+
"pointer-down-outside": (event: PointerDownOutsideEvent) => any;
|
|
43
|
+
"focus-outside": (event: FocusOutsideEvent) => any;
|
|
44
|
+
"interact-outside": (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
45
|
+
dismiss: (event: KeyboardEvent | PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
46
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
47
|
+
$slots: {
|
|
48
|
+
default?(_: {}): any;
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
export { QDismissibleLayer };
|
|
52
|
+
export type { FocusOutsideEvent, PointerDownOutsideEvent };
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAKzE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAA;AAG7D,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAG5B,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a custom event triggered when a pointer down action occurs outside a specific layer.
|
|
3
|
+
*
|
|
4
|
+
* @extends CustomEvent
|
|
5
|
+
* @property detail - Contains additional information about the event.
|
|
6
|
+
* @property detail.originalEvent - The original `PointerEvent` that triggered this custom event.
|
|
7
|
+
*/
|
|
8
|
+
export interface PointerDownOutsideEvent extends CustomEvent {
|
|
9
|
+
detail: {
|
|
10
|
+
originalEvent: PointerEvent;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents a custom event triggered when focus moves outside a specific layer or component.
|
|
15
|
+
*
|
|
16
|
+
* @extends CustomEvent
|
|
17
|
+
* @property detail - An object containing additional information about the event.
|
|
18
|
+
* @property detail.originalEvent - The original `FocusEvent` that caused this custom event to be dispatched.
|
|
19
|
+
*/
|
|
20
|
+
export interface FocusOutsideEvent extends CustomEvent {
|
|
21
|
+
detail: {
|
|
22
|
+
originalEvent: FocusEvent;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,MAAM,EAAE;QACP,aAAa,EAAE,YAAY,CAAA;KAC3B,CAAA;CACD;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACrD,MAAM,EAAE;QACP,aAAa,EAAE,UAAU,CAAA;KACzB,CAAA;CACD"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { QDropdownMenuProps } from './types';
|
|
2
|
-
import { Primitive } from '../../types/primitive';
|
|
3
2
|
type __VLS_Props = QDropdownMenuProps;
|
|
4
3
|
type __VLS_PublicProps = {
|
|
5
4
|
modelValue?: boolean;
|
|
6
5
|
} & __VLS_Props;
|
|
7
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
7
|
"update:modelValue": (value: boolean) => any;
|
|
9
|
-
} & {
|
|
10
|
-
select: (item: Primitive | undefined) => any;
|
|
11
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
-
onSelect?: ((item: Primitive | undefined) => any) | undefined;
|
|
13
9
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenu.vue"],"names":[],"mappings":"AAKA;AAuBC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAQvC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;AAoDhB,wBAQG"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
inheritAttrs: !1,
|
|
1
|
+
import { defineComponent as n, mergeModels as m, useModel as r, createBlock as s, openBlock as d, mergeProps as i } from "vue";
|
|
2
|
+
import p from "./QDropdownMenuContent.vue.js";
|
|
3
|
+
const V = /* @__PURE__ */ n({
|
|
5
4
|
__name: "QDropdownMenu",
|
|
6
|
-
props: /* @__PURE__ */
|
|
5
|
+
props: /* @__PURE__ */ m({
|
|
7
6
|
id: {},
|
|
8
7
|
class: {},
|
|
9
8
|
activator: {},
|
|
@@ -21,19 +20,15 @@ const _ = /* @__PURE__ */ u({
|
|
|
21
20
|
modelValue: { type: Boolean },
|
|
22
21
|
modelModifiers: {}
|
|
23
22
|
}),
|
|
24
|
-
emits:
|
|
25
|
-
setup(e
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
s("select", t);
|
|
29
|
-
}
|
|
30
|
-
return (t, l) => (p(), d(V, f(m, {
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(e) {
|
|
25
|
+
const a = e, o = r(e, "modelValue");
|
|
26
|
+
return (u, l) => (d(), s(p, i(a, {
|
|
31
27
|
modelValue: o.value,
|
|
32
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
33
|
-
onSelect: i
|
|
28
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => o.value = t)
|
|
34
29
|
}), null, 16, ["modelValue"]));
|
|
35
30
|
}
|
|
36
31
|
});
|
|
37
32
|
export {
|
|
38
|
-
|
|
33
|
+
V as default
|
|
39
34
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { QDropdownMenuContentProps, DEFAULT_ICONS } from './types';
|
|
2
2
|
import { Primitive } from '../../types/primitive';
|
|
3
|
+
import { nextTick } from 'vue';
|
|
3
4
|
type __VLS_Props = QDropdownMenuContentProps;
|
|
4
5
|
type __VLS_PublicProps = {
|
|
5
6
|
modelValue?: boolean;
|
|
7
|
+
'selected'?: Primitive;
|
|
6
8
|
} & __VLS_Props;
|
|
7
9
|
declare function __VLS_template(): {
|
|
8
10
|
attrs: Partial<{}>;
|
|
@@ -15,7 +17,6 @@ declare function __VLS_template(): {
|
|
|
15
17
|
}): any;
|
|
16
18
|
};
|
|
17
19
|
refs: {
|
|
18
|
-
contentRef: HTMLDivElement;
|
|
19
20
|
listRef: ({
|
|
20
21
|
$: import('vue').ComponentInternalInstance;
|
|
21
22
|
$data: {};
|
|
@@ -92,7 +93,7 @@ declare function __VLS_template(): {
|
|
|
92
93
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
93
94
|
};
|
|
94
95
|
$forceUpdate: () => void;
|
|
95
|
-
$nextTick: typeof
|
|
96
|
+
$nextTick: typeof nextTick;
|
|
96
97
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
97
98
|
} & Readonly<{
|
|
98
99
|
icons: typeof import('../QList/types').DEFAULT_ICONS;
|
|
@@ -127,7 +128,6 @@ declare function __VLS_template(): {
|
|
|
127
128
|
}> & Readonly<{
|
|
128
129
|
"onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
|
|
129
130
|
}>, {
|
|
130
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
131
131
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
132
132
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
133
133
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -156,7 +156,7 @@ declare function __VLS_template(): {
|
|
|
156
156
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
157
157
|
};
|
|
158
158
|
$forceUpdate: () => void;
|
|
159
|
-
$nextTick: typeof
|
|
159
|
+
$nextTick: typeof nextTick;
|
|
160
160
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
161
161
|
} & Readonly<{
|
|
162
162
|
groups: import('../QList/types').Group[];
|
|
@@ -174,8 +174,7 @@ declare function __VLS_template(): {
|
|
|
174
174
|
selectable?: boolean;
|
|
175
175
|
}> & Readonly<{
|
|
176
176
|
"onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
|
|
177
|
-
}>, "
|
|
178
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
177
|
+
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
179
178
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
180
179
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
181
180
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -198,11 +197,10 @@ declare function __VLS_template(): {
|
|
|
198
197
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
199
198
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
200
199
|
"update:modelValue": (value: boolean) => any;
|
|
201
|
-
|
|
202
|
-
select: (item: Primitive | undefined) => any;
|
|
200
|
+
"update:selected": (value: Primitive) => any;
|
|
203
201
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
204
|
-
onSelect?: ((item: Primitive | undefined) => any) | undefined;
|
|
205
202
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
203
|
+
"onUpdate:selected"?: ((value: Primitive) => any) | undefined;
|
|
206
204
|
}>, {
|
|
207
205
|
transition: string;
|
|
208
206
|
icons: typeof DEFAULT_ICONS;
|
|
@@ -217,7 +215,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
217
215
|
trigger: import('../../composables/overlay').Trigger;
|
|
218
216
|
depth: number;
|
|
219
217
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
220
|
-
contentRef: HTMLDivElement;
|
|
221
218
|
listRef: ({
|
|
222
219
|
$: import('vue').ComponentInternalInstance;
|
|
223
220
|
$data: {};
|
|
@@ -294,7 +291,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
294
291
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
295
292
|
};
|
|
296
293
|
$forceUpdate: () => void;
|
|
297
|
-
$nextTick: typeof
|
|
294
|
+
$nextTick: typeof nextTick;
|
|
298
295
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
299
296
|
} & Readonly<{
|
|
300
297
|
icons: typeof import('../QList/types').DEFAULT_ICONS;
|
|
@@ -329,7 +326,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
329
326
|
}> & Readonly<{
|
|
330
327
|
"onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
|
|
331
328
|
}>, {
|
|
332
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
333
329
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
334
330
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
335
331
|
getFirstFocusableItemIndex: () => number;
|
|
@@ -358,7 +354,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
358
354
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
359
355
|
};
|
|
360
356
|
$forceUpdate: () => void;
|
|
361
|
-
$nextTick: typeof
|
|
357
|
+
$nextTick: typeof nextTick;
|
|
362
358
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
363
359
|
} & Readonly<{
|
|
364
360
|
groups: import('../QList/types').Group[];
|
|
@@ -376,8 +372,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
376
372
|
selectable?: boolean;
|
|
377
373
|
}> & Readonly<{
|
|
378
374
|
"onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
|
|
379
|
-
}>, "
|
|
380
|
-
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
375
|
+
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
381
376
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
382
377
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
383
378
|
getFirstFocusableItemIndex: () => number;
|