@quidgest/ui 0.20.1 → 0.21.1
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/CHANGELOG.md +28 -0
- package/README.md +10 -0
- package/dist/json/api.json +219 -3
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +239 -248
- package/dist/ui.esm.js +1306 -1139
- package/dist/ui.js +788 -621
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +788 -621
- package/dist/ui.scss +291 -34
- package/esm/components/QAccordion/QAccordionItem.vue.js +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +20 -24
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +32 -29
- package/esm/components/QCheckbox/QCheckbox.vue.js +1 -1
- package/esm/components/QDialog/QDialog.d.ts +4 -2
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -74
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +21 -12
- package/esm/components/QDialog/index.d.ts +72 -3
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +10 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +9 -8
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +3 -3
- package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
- package/esm/components/QGauge/QGauge.vue.js +1 -1
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +5 -2
- package/esm/components/QList/QListItemGroup.vue.js +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -56
- package/esm/components/QObfuscation/index.d.ts +6 -6
- package/esm/components/QObfuscation/types.d.ts +1 -1
- package/esm/components/QObfuscation/types.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +43 -0
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -0
- package/esm/components/QOverflow/QOverflow.vue.js +281 -0
- package/esm/components/QOverflow/QOverflow2.vue.js +5 -0
- package/esm/components/QOverflow/constants.d.ts +30 -0
- package/esm/components/QOverflow/constants.d.ts.map +1 -0
- package/esm/components/QOverflow/constants.js +12 -0
- package/esm/components/QOverflow/index.d.ts +58 -0
- package/esm/components/QOverflow/index.d.ts.map +1 -0
- package/esm/components/QOverflow/index.js +6 -0
- package/esm/components/QOverflow/types.d.ts +119 -0
- package/esm/components/QOverflow/types.d.ts.map +1 -0
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +2 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +19 -10
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +51 -49
- package/esm/components/QSidebar/context.d.ts +7 -0
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +52 -50
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +37 -12
- package/esm/components/QTabs/context.d.ts +7 -0
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +1 -1
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +1 -1
- package/esm/components/QToast/QToast.d.ts +4 -2
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +80 -67
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +21 -16
- package/esm/components/QToast/index.d.ts +39 -3
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +6 -2
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +58 -56
- package/esm/composables/index.d.ts +2 -2
- package/esm/composables/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.d.ts +46 -17
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +57 -29
- package/esm/composables/useColor/types.d.ts +4 -1
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/composables/useDialog/_internal.d.ts +2 -0
- package/esm/composables/useDialog/_internal.d.ts.map +1 -0
- package/esm/composables/useDialog/_internal.js +65 -0
- package/esm/composables/useDialog/index.d.ts +11 -3
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +38 -22
- package/esm/composables/useDialog/types.d.ts +25 -11
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDismissibleLayerStack/index.d.ts +17 -2
- package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
- package/esm/composables/useDismissibleLayerStack/index.js +28 -11
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +12 -1
- package/esm/composables/useId/index.d.ts +18 -0
- package/esm/composables/useId/index.d.ts.map +1 -0
- package/esm/composables/useId/index.js +10 -0
- package/esm/composables/useToast/_internal.d.ts +2 -0
- package/esm/composables/useToast/_internal.d.ts.map +1 -0
- package/esm/composables/useToast/_internal.js +142 -0
- package/esm/composables/useToast/index.d.ts +8 -25
- package/esm/composables/useToast/index.d.ts.map +1 -1
- package/esm/composables/useToast/index.js +29 -26
- package/esm/composables/useToast/types.d.ts +31 -17
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.d.ts.map +1 -1
- package/esm/framework.js +16 -12
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +39 -39
- package/esm/utils/color/contrast.d.ts +11 -4
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +16 -3
- package/esm/utils/color/index.d.ts +1 -0
- package/esm/utils/color/index.d.ts.map +1 -1
- package/esm/utils/color/merge.d.ts +9 -0
- package/esm/utils/color/merge.d.ts.map +1 -1
- package/esm/utils/color/merge.js +21 -22
- package/esm/utils/color/parse.d.ts +21 -5
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +88 -20
- package/esm/utils/color/theme-colors.d.ts +35 -0
- package/esm/utils/color/theme-colors.d.ts.map +1 -0
- package/esm/utils/color/theme-colors.js +25 -0
- package/esm/utils/index.js +50 -42
- package/package.json +3 -5
- package/esm/composables/uid.d.ts +0 -9
- package/esm/composables/uid.d.ts.map +0 -1
- package/esm/composables/uid.js +0 -8
- package/esm/composables/useToast/types.js +0 -4
- package/esm/vendors/uuid/dist/native.js +0 -3
- package/esm/vendors/uuid/dist/rng.js +0 -11
- package/esm/vendors/uuid/dist/stringify.js +0 -8
- package/esm/vendors/uuid/dist/v4.js +0 -20
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_ICONS } from './constants';
|
|
2
2
|
import { DialogButton, QDialogProps } from '.';
|
|
3
|
+
type __VLS_Props = QDialogProps & {};
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
5
|
attrs: Partial<{}>;
|
|
5
6
|
slots: {
|
|
@@ -15,10 +16,10 @@ declare function __VLS_template(): {
|
|
|
15
16
|
rootEl: any;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
20
|
"update:modelValue": (val: boolean) => any;
|
|
20
21
|
action: (val: string) => any;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
23
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
23
24
|
onAction?: ((val: string) => any) | undefined;
|
|
24
25
|
}>, {
|
|
@@ -31,6 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<QDialogProps, {}, {
|
|
|
31
32
|
backdropBlur: boolean;
|
|
32
33
|
attach: string;
|
|
33
34
|
focusWrap: boolean;
|
|
35
|
+
entryKey: string;
|
|
34
36
|
buttons: DialogButton[];
|
|
35
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAwGA;
|
|
1
|
+
{"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAwGA;AAmNC,OAAO,EAAiC,aAAa,EAAE,MAAM,aAAa,CAAA;AAa1E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKnD,KAAK,WAAW,GAAG,YAAY,GAAG,EAG/B,CAAC;AAiGL,iBAAS,cAAc;WAgQT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;iCACJ,GAAG;sBACd,GAAG;6BACI,GAAG;+BACD,GAAG;iCACD,GAAG;;;;EAexC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;cA/XN,MAAM;;6EAwYnB,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,32 +1,34 @@
|
|
|
1
1
|
import { QButton as e } from "../QButton/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
|
+
import { QTextField as r } from "../QTextField/index.js";
|
|
5
|
+
import { QOverlay as i } from "../QOverlay/index.js";
|
|
6
|
+
import { DEFAULT_BUTTONS as a, DEFAULT_ICON as o, DEFAULT_ICONS as s } from "./constants.js";
|
|
7
|
+
import { DialogSymbol as c } from "../../composables/useDialog/_internal.js";
|
|
8
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, inject as y, mergeProps as b, normalizeClass as x, normalizeProps as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRef as O, unref as k, watch as A, withCtx as j } from "vue";
|
|
7
9
|
//#region src/components/QDialog/QDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
10
|
+
var M = {
|
|
9
11
|
key: 0,
|
|
10
12
|
class: "q-dialog__header"
|
|
11
|
-
},
|
|
13
|
+
}, N = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "q-dialog__header-title"
|
|
14
|
-
},
|
|
16
|
+
}, P = {
|
|
15
17
|
key: 1,
|
|
16
18
|
class: "q-dialog__body"
|
|
17
|
-
},
|
|
19
|
+
}, F = {
|
|
18
20
|
key: 0,
|
|
19
21
|
class: "q-dialog__body-icon"
|
|
20
|
-
},
|
|
22
|
+
}, I = { class: "q-dialog__body-text" }, L = ["innerHTML"], R = { key: 1 }, z = {
|
|
21
23
|
key: 0,
|
|
22
24
|
class: "q-dialog__input"
|
|
23
|
-
},
|
|
25
|
+
}, B = {
|
|
24
26
|
key: 2,
|
|
25
27
|
class: "q-dialog__footer"
|
|
26
|
-
},
|
|
28
|
+
}, V = {
|
|
27
29
|
key: 0,
|
|
28
30
|
class: "q-dialog__footer-buttons"
|
|
29
|
-
},
|
|
31
|
+
}, H = /*@__PURE__*/ _({
|
|
30
32
|
__name: "QDialog",
|
|
31
33
|
props: {
|
|
32
34
|
id: {},
|
|
@@ -34,8 +36,8 @@ var D = {
|
|
|
34
36
|
modelValue: { type: Boolean },
|
|
35
37
|
title: {},
|
|
36
38
|
text: {},
|
|
37
|
-
icon: { default: () =>
|
|
38
|
-
buttons: { default: () =>
|
|
39
|
+
icon: { default: () => o },
|
|
40
|
+
buttons: { default: () => a },
|
|
39
41
|
backdropBlur: {
|
|
40
42
|
type: Boolean,
|
|
41
43
|
default: !0
|
|
@@ -64,96 +66,104 @@ var D = {
|
|
|
64
66
|
default: !0
|
|
65
67
|
},
|
|
66
68
|
input: {},
|
|
67
|
-
icons: { default: () =>
|
|
69
|
+
icons: { default: () => s },
|
|
70
|
+
entryKey: { default: void 0 }
|
|
68
71
|
},
|
|
69
72
|
emits: ["update:modelValue", "action"],
|
|
70
|
-
setup(
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
setup(a, { emit: o }) {
|
|
74
|
+
let s = a, _ = o, H = n(O(s, "id"));
|
|
75
|
+
if (s.entryKey) {
|
|
76
|
+
let e = y(c, null);
|
|
77
|
+
e?.registerDialogEntry(s.entryKey, H.value), A(H, (t, n) => {
|
|
78
|
+
t === n || !s.entryKey || e?.updateDialogEntryId(s.entryKey, t);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
let U = w(""), W = w(""), G = u(() => ["q-dialog", s.class]), K = u(() => `q-overlay--${s.size}`);
|
|
82
|
+
function q() {
|
|
83
|
+
X(!0);
|
|
74
84
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
85
|
+
function J() {
|
|
86
|
+
X(!1);
|
|
77
87
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
if (
|
|
81
|
-
e.action?.(
|
|
88
|
+
function Y(e) {
|
|
89
|
+
if (_("action", e.id), e.action) {
|
|
90
|
+
if (s.input?.validator && (W.value = s.input.validator(k(U)), k(W))) return;
|
|
91
|
+
e.action?.(k(U));
|
|
82
92
|
}
|
|
83
|
-
|
|
93
|
+
J();
|
|
84
94
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
95
|
+
function X(e) {
|
|
96
|
+
_("update:modelValue", e);
|
|
87
97
|
}
|
|
88
|
-
return (
|
|
89
|
-
id:
|
|
90
|
-
"model-value":
|
|
98
|
+
return (n, a) => (C(), d(k(i), {
|
|
99
|
+
id: k(H),
|
|
100
|
+
"model-value": s.modelValue,
|
|
91
101
|
"backdrop-class": "q-dialog__underlay",
|
|
92
102
|
"scroll-lock": "",
|
|
93
103
|
persistent: "",
|
|
94
|
-
inline:
|
|
95
|
-
attach:
|
|
96
|
-
"backdrop-blur":
|
|
97
|
-
"center-vertically":
|
|
98
|
-
"focus-wrap":
|
|
99
|
-
"initial-focus":
|
|
100
|
-
"focus-within-on-activate":
|
|
101
|
-
"closing-focus":
|
|
102
|
-
"return-focus-on-deactivate":
|
|
103
|
-
class:
|
|
104
|
-
onEnter:
|
|
105
|
-
"onUpdate:modelValue":
|
|
104
|
+
inline: s.inline,
|
|
105
|
+
attach: s.attach,
|
|
106
|
+
"backdrop-blur": s.backdropBlur,
|
|
107
|
+
"center-vertically": s.centerVertically,
|
|
108
|
+
"focus-wrap": s.focusWrap,
|
|
109
|
+
"initial-focus": s.initialFocus,
|
|
110
|
+
"focus-within-on-activate": s.focusWithinOnActivate,
|
|
111
|
+
"closing-focus": s.closingFocus,
|
|
112
|
+
"return-focus-on-deactivate": s.returnFocusOnDeactivate,
|
|
113
|
+
class: x(K.value),
|
|
114
|
+
onEnter: q,
|
|
115
|
+
"onUpdate:modelValue": X
|
|
106
116
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
])])) :
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
default: j(() => [m("div", { class: x(G.value) }, [
|
|
118
|
+
s.title || n.$slots.header || n.$slots["header.prepend"] || n.$slots["header.append"] ? (C(), p("div", M, [E(n.$slots, "header", {}, () => [
|
|
119
|
+
E(n.$slots, "header.prepend"),
|
|
120
|
+
s.title ? (C(), p("span", N, D(s.title), 1)) : f("v-if", !0),
|
|
121
|
+
E(n.$slots, "header.append")
|
|
122
|
+
])])) : f("v-if", !0),
|
|
123
|
+
s.icon || s.text || n.$slots.body ? (C(), p("div", P, [E(n.$slots, "body", {}, () => [
|
|
124
|
+
E(n.$slots, "body.icon", {}, () => [s.icon ? (C(), p("span", F, [g(k(t), S(v(s.icon)), null, 16)])) : f("v-if", !0)]),
|
|
125
|
+
m("div", I, [s.html ? (C(), p("div", {
|
|
116
126
|
key: 0,
|
|
117
|
-
innerHTML:
|
|
118
|
-
}, null, 8,
|
|
119
|
-
|
|
120
|
-
modelValue:
|
|
121
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
122
|
-
invalid: !!
|
|
123
|
-
placeholder:
|
|
127
|
+
innerHTML: s.text
|
|
128
|
+
}, null, 8, L)) : (C(), p("div", R, D(s.text), 1))]),
|
|
129
|
+
s.input ? (C(), p("div", z, [g(k(r), {
|
|
130
|
+
modelValue: U.value,
|
|
131
|
+
"onUpdate:modelValue": a[0] ||= (e) => U.value = e,
|
|
132
|
+
invalid: !!W.value,
|
|
133
|
+
placeholder: s.input?.placeholder,
|
|
124
134
|
size: "block"
|
|
125
135
|
}, {
|
|
126
|
-
extras:
|
|
136
|
+
extras: j(() => [W.value ? (C(), d(k(t), {
|
|
127
137
|
key: 0,
|
|
128
138
|
icon: "exclamation-sign"
|
|
129
|
-
})) :
|
|
139
|
+
})) : f("v-if", !0), h(" " + D(W.value), 1)]),
|
|
130
140
|
_: 1
|
|
131
141
|
}, 8, [
|
|
132
142
|
"modelValue",
|
|
133
143
|
"invalid",
|
|
134
144
|
"placeholder"
|
|
135
|
-
])])) :
|
|
136
|
-
|
|
137
|
-
])])) :
|
|
138
|
-
|
|
145
|
+
])])) : f("v-if", !0),
|
|
146
|
+
E(n.$slots, "body.append")
|
|
147
|
+
])])) : f("v-if", !0),
|
|
148
|
+
s.buttons || n.$slots["footer.append"] ? (C(), p("div", B, [s.buttons ? (C(), p("span", V, [(C(!0), p(l, null, T(s.buttons, (n) => (C(), d(k(e), b({ ref_for: !0 }, n.props, {
|
|
139
149
|
key: n.id,
|
|
140
|
-
onClick: () =>
|
|
150
|
+
onClick: () => Y(n)
|
|
141
151
|
}), {
|
|
142
|
-
default:
|
|
152
|
+
default: j(() => [n.icon ? (C(), d(k(t), b({
|
|
143
153
|
key: 0,
|
|
144
154
|
ref_for: !0
|
|
145
|
-
}, n.icon), null, 16)) :
|
|
155
|
+
}, n.icon), null, 16)) : f("v-if", !0)]),
|
|
146
156
|
_: 2
|
|
147
|
-
}, 1040, ["onClick"]))), 128))])) :
|
|
148
|
-
|
|
157
|
+
}, 1040, ["onClick"]))), 128))])) : f("v-if", !0), E(n.$slots, "footer.append")])) : f("v-if", !0),
|
|
158
|
+
s.dismissible ? (C(), d(k(e), {
|
|
149
159
|
key: 3,
|
|
150
160
|
class: "q-dialog__close",
|
|
151
161
|
variant: "text",
|
|
152
|
-
onClick:
|
|
162
|
+
onClick: J
|
|
153
163
|
}, {
|
|
154
|
-
default:
|
|
164
|
+
default: j(() => [g(k(t), S(v(s.icons.close)), null, 16)]),
|
|
155
165
|
_: 1
|
|
156
|
-
})) :
|
|
166
|
+
})) : f("v-if", !0)
|
|
157
167
|
], 2)]),
|
|
158
168
|
_: 3
|
|
159
169
|
}, 8, [
|
|
@@ -173,4 +183,4 @@ var D = {
|
|
|
173
183
|
}
|
|
174
184
|
});
|
|
175
185
|
//#endregion
|
|
176
|
-
export {
|
|
186
|
+
export { H as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AAWA;AA4EC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAA;;;;;;AAmH9C,wBAOG"}
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { QDialog as
|
|
3
|
-
import { Fragment as
|
|
1
|
+
import { injectDialogInstance as e, removeDialogEntry as t } from "../../composables/useDialog/_internal.js";
|
|
2
|
+
import { QDialog as n } from "./index.js";
|
|
3
|
+
import { Fragment as r, createBlock as i, createElementBlock as a, defineComponent as o, mergeProps as s, onUnmounted as c, openBlock as l, renderList as u, unref as d } from "vue";
|
|
4
4
|
//#region src/components/QDialog/QDialogProvider.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var f = /*@__PURE__*/ o({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QDialogProvider",
|
|
8
8
|
props: { inline: { type: Boolean } },
|
|
9
9
|
emits: ["leave"],
|
|
10
|
-
setup(
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
setup(o, { emit: f }) {
|
|
11
|
+
let p = o, m = f, h = e(), { dialogs: g } = h;
|
|
12
|
+
h.registerProvider(), c(() => h.unregisterProvider());
|
|
13
|
+
function _(e) {
|
|
14
|
+
let n = g.value.findIndex((t) => t.id === e);
|
|
15
|
+
n !== -1 && (t(h, n), m("leave", e));
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
function v(e, t) {
|
|
18
|
+
t || !e.id || _(e.id);
|
|
19
|
+
}
|
|
20
|
+
return (e, t) => (l(!0), a(r, null, u(d(g), (e) => (l(), i(d(n), s({
|
|
21
|
+
key: e.entryKey,
|
|
22
|
+
"entry-key": e.entryKey
|
|
23
|
+
}, { ref_for: !0 }, e.props, {
|
|
24
|
+
inline: p.inline,
|
|
17
25
|
onAction: e.handlers?.onAction,
|
|
18
|
-
"onUpdate:modelValue": (t) =>
|
|
26
|
+
"onUpdate:modelValue": (t) => v(e, t)
|
|
19
27
|
}), null, 16, [
|
|
28
|
+
"entry-key",
|
|
20
29
|
"inline",
|
|
21
30
|
"onAction",
|
|
22
31
|
"onUpdate:modelValue"
|
|
@@ -24,4 +33,4 @@ var u = /*@__PURE__*/ a({
|
|
|
24
33
|
}
|
|
25
34
|
});
|
|
26
35
|
//#endregion
|
|
27
|
-
export {
|
|
36
|
+
export { f as default };
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
declare const QDialog: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../types/component').QBaseComponentProps & {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: import('..').Icon;
|
|
7
|
+
buttons?: import('./types').DialogButton[];
|
|
8
|
+
backdropBlur?: boolean;
|
|
9
|
+
size?: import('./types').QDialogSize;
|
|
10
|
+
centerVertically?: boolean;
|
|
11
|
+
attach?: string;
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
focusWrap?: boolean;
|
|
14
|
+
initialFocus?: HTMLElement | string | null;
|
|
15
|
+
focusWithinOnActivate?: boolean;
|
|
16
|
+
closingFocus?: HTMLElement | string;
|
|
17
|
+
returnFocusOnDeactivate?: boolean;
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
html?: boolean;
|
|
20
|
+
input?: import('./types').QDialogInputOption;
|
|
21
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
22
|
+
} & {
|
|
23
|
+
entryKey?: string;
|
|
24
|
+
}> & Readonly<{
|
|
3
25
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
4
26
|
onAction?: ((val: string) => any) | undefined;
|
|
5
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -15,6 +37,7 @@ declare const QDialog: {
|
|
|
15
37
|
backdropBlur: boolean;
|
|
16
38
|
attach: string;
|
|
17
39
|
focusWrap: boolean;
|
|
40
|
+
entryKey: string;
|
|
18
41
|
buttons: import('./types').DialogButton[];
|
|
19
42
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
20
43
|
P: {};
|
|
@@ -23,7 +46,29 @@ declare const QDialog: {
|
|
|
23
46
|
C: {};
|
|
24
47
|
M: {};
|
|
25
48
|
Defaults: {};
|
|
26
|
-
}, Readonly<import('
|
|
49
|
+
}, Readonly<import('../../types/component').QBaseComponentProps & {
|
|
50
|
+
modelValue?: boolean;
|
|
51
|
+
title?: string;
|
|
52
|
+
text?: string;
|
|
53
|
+
icon?: import('..').Icon;
|
|
54
|
+
buttons?: import('./types').DialogButton[];
|
|
55
|
+
backdropBlur?: boolean;
|
|
56
|
+
size?: import('./types').QDialogSize;
|
|
57
|
+
centerVertically?: boolean;
|
|
58
|
+
attach?: string;
|
|
59
|
+
inline?: boolean;
|
|
60
|
+
focusWrap?: boolean;
|
|
61
|
+
initialFocus?: HTMLElement | string | null;
|
|
62
|
+
focusWithinOnActivate?: boolean;
|
|
63
|
+
closingFocus?: HTMLElement | string;
|
|
64
|
+
returnFocusOnDeactivate?: boolean;
|
|
65
|
+
dismissible?: boolean;
|
|
66
|
+
html?: boolean;
|
|
67
|
+
input?: import('./types').QDialogInputOption;
|
|
68
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
69
|
+
} & {
|
|
70
|
+
entryKey?: string;
|
|
71
|
+
}> & Readonly<{
|
|
27
72
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
28
73
|
onAction?: ((val: string) => any) | undefined;
|
|
29
74
|
}>, {}, {}, {}, {}, {
|
|
@@ -36,12 +81,35 @@ declare const QDialog: {
|
|
|
36
81
|
backdropBlur: boolean;
|
|
37
82
|
attach: string;
|
|
38
83
|
focusWrap: boolean;
|
|
84
|
+
entryKey: string;
|
|
39
85
|
buttons: import('./types').DialogButton[];
|
|
40
86
|
}>;
|
|
41
87
|
__isFragment?: never;
|
|
42
88
|
__isTeleport?: never;
|
|
43
89
|
__isSuspense?: never;
|
|
44
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
90
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../types/component').QBaseComponentProps & {
|
|
91
|
+
modelValue?: boolean;
|
|
92
|
+
title?: string;
|
|
93
|
+
text?: string;
|
|
94
|
+
icon?: import('..').Icon;
|
|
95
|
+
buttons?: import('./types').DialogButton[];
|
|
96
|
+
backdropBlur?: boolean;
|
|
97
|
+
size?: import('./types').QDialogSize;
|
|
98
|
+
centerVertically?: boolean;
|
|
99
|
+
attach?: string;
|
|
100
|
+
inline?: boolean;
|
|
101
|
+
focusWrap?: boolean;
|
|
102
|
+
initialFocus?: HTMLElement | string | null;
|
|
103
|
+
focusWithinOnActivate?: boolean;
|
|
104
|
+
closingFocus?: HTMLElement | string;
|
|
105
|
+
returnFocusOnDeactivate?: boolean;
|
|
106
|
+
dismissible?: boolean;
|
|
107
|
+
html?: boolean;
|
|
108
|
+
input?: import('./types').QDialogInputOption;
|
|
109
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
110
|
+
} & {
|
|
111
|
+
entryKey?: string;
|
|
112
|
+
}> & Readonly<{
|
|
45
113
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
46
114
|
onAction?: ((val: string) => any) | undefined;
|
|
47
115
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -57,6 +125,7 @@ declare const QDialog: {
|
|
|
57
125
|
backdropBlur: boolean;
|
|
58
126
|
attach: string;
|
|
59
127
|
focusWrap: boolean;
|
|
128
|
+
entryKey: string;
|
|
60
129
|
buttons: import('./types').DialogButton[];
|
|
61
130
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
62
131
|
$slots: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe;;;;kFAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,cAAc,SAAS,CAAA"}
|
|
@@ -178,6 +178,13 @@ export type QDialogInputOption = {
|
|
|
178
178
|
*/
|
|
179
179
|
validator?: (value: string) => string | undefined;
|
|
180
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
* Hosts programmatic dialogs created with `useDialog`.
|
|
183
|
+
*
|
|
184
|
+
* Mount exactly one `QDialogProvider` per app (typically in the root layout).
|
|
185
|
+
* The dialog store is app-scoped via `createFramework`; mounting a second
|
|
186
|
+
* provider for the same app throws.
|
|
187
|
+
*/
|
|
181
188
|
export type QDialogProviderProps = {
|
|
182
189
|
/**
|
|
183
190
|
* Whether to inline the dialogs.
|
|
@@ -188,13 +195,15 @@ export type QDialogProviderProps = {
|
|
|
188
195
|
};
|
|
189
196
|
export type QDialogHandlers = {
|
|
190
197
|
/**
|
|
191
|
-
* Handler for
|
|
198
|
+
* Handler for the enter lifecycle.
|
|
199
|
+
* Runs when the dialog component registers its id during setup (not when `addDialog` is called).
|
|
192
200
|
*
|
|
193
201
|
* @category Behavior
|
|
194
202
|
*/
|
|
195
203
|
onEnter?: () => void;
|
|
196
204
|
/**
|
|
197
205
|
* Handler for 'leave' event.
|
|
206
|
+
* Runs when the dialog is removed after it has entered (a public id exists).
|
|
198
207
|
*
|
|
199
208
|
* @category Behavior
|
|
200
209
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO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;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAA;IAEnC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CACjD,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IAE9B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AAuKC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAuJpE,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,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"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { useDismissibleLayerStackItem as t } from "../../composables/useDismissibleLayerStack/index.js";
|
|
3
|
+
import { createElementBlock as n, defineComponent as r, onMounted as i, onUnmounted as a, openBlock as o, renderSlot as s, useTemplateRef as c } from "vue";
|
|
3
4
|
//#region src/components/QDismissibleLayer/QDismissibleLayer.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var l = { ref: "layer" }, u = /*@__PURE__*/
|
|
5
|
+
var l = { ref: "layer" }, u = /*@__PURE__*/ r({
|
|
5
6
|
__name: "QDismissibleLayer",
|
|
6
7
|
emits: [
|
|
7
8
|
"escape-key-down",
|
|
@@ -10,8 +11,8 @@ var l = { ref: "layer" }, u = /*@__PURE__*/ n({
|
|
|
10
11
|
"interact-outside",
|
|
11
12
|
"dismiss"
|
|
12
13
|
],
|
|
13
|
-
setup(
|
|
14
|
-
let d = u, f = c("layer"), p = e(
|
|
14
|
+
setup(r, { emit: u }) {
|
|
15
|
+
let d = u, f = c("layer"), p = t(e()), m = [];
|
|
15
16
|
function h(e) {
|
|
16
17
|
e.key === "Escape" && p?.isTop() && (d("escape-key-down", e), e.defaultPrevented || d("dismiss", e));
|
|
17
18
|
}
|
|
@@ -49,15 +50,15 @@ var l = { ref: "layer" }, u = /*@__PURE__*/ n({
|
|
|
49
50
|
});
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
return
|
|
53
|
+
return i(() => {
|
|
53
54
|
p?.register(), document.addEventListener("keydown", h), m.push(() => {
|
|
54
55
|
document.removeEventListener("keydown", h);
|
|
55
56
|
}), document.addEventListener("focusin", g), m.push(() => {
|
|
56
57
|
document.removeEventListener("focusin", g);
|
|
57
58
|
}), v();
|
|
58
|
-
}),
|
|
59
|
+
}), a(() => {
|
|
59
60
|
p?.unregister(), m.forEach((e) => e()), m = [];
|
|
60
|
-
}), (e,
|
|
61
|
+
}), (e, t) => (o(), n("div", l, [s(e.$slots, "default")], 512));
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;
|
|
1
|
+
{"version":3,"file":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;AAoEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AA+CvC,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,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"}
|
|
@@ -20,14 +20,14 @@ var p = ["id"], m = { class: "q-divider__label" }, h = /*@__PURE__*/ o({
|
|
|
20
20
|
"q-divider--labeled": g.value
|
|
21
21
|
},
|
|
22
22
|
h.class
|
|
23
|
-
]), {
|
|
23
|
+
]), { style: v } = e(d(h, "color")), y = n(() => {
|
|
24
24
|
let e = {};
|
|
25
|
-
return h.thickness >= 0 && h.thickness !== 1 && (e["--q-divider-thickness"] = `${h.thickness}px`), h.color !== "neutral" && (e["--q-divider-color"] = v.value
|
|
25
|
+
return h.thickness >= 0 && h.thickness !== 1 && (e["--q-divider-thickness"] = `${h.thickness}px`), h.color !== "neutral" && v.value?.mainColor && (e["--q-divider-color"] = v.value.mainColor), e;
|
|
26
26
|
});
|
|
27
27
|
return (e, n) => (l(), i("div", {
|
|
28
28
|
id: h.id,
|
|
29
29
|
class: s(_.value),
|
|
30
|
-
style: c(
|
|
30
|
+
style: c(y.value),
|
|
31
31
|
role: "separator"
|
|
32
32
|
}, [g.value ? (l(), i(t, { key: 0 }, [
|
|
33
33
|
n[0] ||= a("div", { class: "q-divider__line" }, null, -1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QButton as e } from "../QButton/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import { useId as n } from "../../composables/
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
4
|
import { QField as r } from "../QField/index.js";
|
|
5
5
|
import { DEFAULT_ICONS as i, DEFAULT_TEXTS as a } from "./constants.js";
|
|
6
6
|
import { useDropZone as o } from "../../composables/useDropZone/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTheme as e } from "../../composables/theme.js";
|
|
2
2
|
import { resolveColor as t } from "../../composables/useColor/index.js";
|
|
3
|
-
import { useId as n } from "../../composables/
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
4
|
import { DEFAULT_TEXTS as r } from "./constants.js";
|
|
5
5
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, mergeModels as d, normalizeClass as f, normalizeStyle as ee, openBlock as p, renderList as m, renderSlot as te, toDisplayString as h, toRef as g, unref as _, useModel as ne } from "vue";
|
|
6
6
|
//#region src/components/QGauge/QGauge.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA0DA;AAuIC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAgEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6HT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;uFASnB,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,6 +1,6 @@
|
|
|
1
1
|
import { useGroupItem as e } from "../../composables/useGroup/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import { useId as n } from "../../composables/
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
4
|
import { QCheckbox as r } from "../QCheckbox/index.js";
|
|
5
5
|
import { DEFAULT_ICONS as i } from "./constants.js";
|
|
6
6
|
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useModel as x, watch as S, withModifiers as C } from "vue";
|
|
@@ -68,7 +68,10 @@ var w = [
|
|
|
68
68
|
p.selectable ? (_(), s("div", {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: h(["q-list-item__check-container", { "q-list-item__check-container--top": p.description }])
|
|
71
|
-
}, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, {
|
|
71
|
+
}, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, {
|
|
72
|
+
class: "q-list-item__check",
|
|
73
|
+
"aria-hidden": "true"
|
|
74
|
+
}), null, 16)) : p.checkboxless ? o("v-if", !0) : (_(), a(b(r), {
|
|
72
75
|
key: 1,
|
|
73
76
|
disabled: p.disabled,
|
|
74
77
|
"model-value": k.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useId as e } from "../../composables/
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { createCommentVNode as t, createElementBlock as n, defineComponent as r, openBlock as i, renderSlot as a, toDisplayString as o, unref as s } from "vue";
|
|
3
3
|
//#region src/components/QList/QListItemGroup.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var c = ["data-key", "aria-labelledby"], l = ["id"], u = /*@__PURE__*/ r({
|
|
@@ -59,7 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
59
59
|
mask: import('./types').QObfuscationMask;
|
|
60
60
|
loading: boolean;
|
|
61
61
|
icons: typeof DEFAULT_ICONS;
|
|
62
|
-
texts:
|
|
62
|
+
texts: typeof DEFAULT_TEXTS;
|
|
63
63
|
labelPosition: import('..').QLabelPosition;
|
|
64
64
|
revealable: boolean;
|
|
65
65
|
bulletCount: number;
|