@quidgest/ui 0.28.0 → 0.29.0
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 +51 -8
- package/README.md +19 -0
- package/dist/json/api.json +1517 -86
- package/dist/manifest/components.json +0 -1
- package/dist/ui.css +59 -68
- package/dist/ui.esm.js +1031 -1043
- package/dist/ui.js +1000 -1013
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1000 -1013
- package/dist/ui.scss +83 -27
- package/esm/components/QAccordion/QAccordion.d.ts +3 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +33 -30
- package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +37 -6
- package/esm/components/QAccordion/index.d.ts +20 -11
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.vue.js +19 -12
- package/esm/components/QAvatar/types.d.ts +2 -1
- package/esm/components/QAvatar/types.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +36 -37
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
- package/esm/components/QCarousel/QCarousel.d.ts +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +99 -95
- package/esm/components/QCarousel/constants.d.ts +1 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -1
- package/esm/components/QCarousel/constants.js +2 -1
- package/esm/components/QCarousel/index.d.ts +3 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +33 -36
- package/esm/components/QCheckbox/index.d.ts +0 -1
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -2
- package/esm/components/QCombobox/QCombobox.d.ts +9 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +142 -134
- package/esm/components/QCombobox/index.d.ts +10 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +8 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +199 -219
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +4 -4
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/index.d.ts +6 -6
- package/esm/components/QDialog/types.d.ts +3 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +136 -124
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +82 -79
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +67 -41
- package/esm/components/QInputGroup/types.d.ts +15 -1
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +6 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +4 -1
- package/esm/components/QList/QListItem.d.ts +6 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -41
- package/esm/components/QList/index.d.ts +6 -1
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +16 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +6 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +90 -95
- package/esm/components/QOverflow/index.d.ts +3 -3
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +125 -117
- package/esm/components/QOverlay/types.d.ts +9 -2
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +1 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +5 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -0
- package/esm/components/QPasswordField/index.d.ts +6 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +10 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +184 -18
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +92 -9
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +62 -60
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +46 -46
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
- package/esm/components/QSelect/QSelect.d.ts +157 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +240 -212
- package/esm/components/QSelect/index.d.ts +84 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +8 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +1 -2
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +5 -5
- package/esm/components/QSidebar/context.d.ts +3 -3
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.d.ts +4 -4
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +9 -15
- package/esm/components/QSteps/index.d.ts +2 -2
- package/esm/components/QSteps/types.d.ts +2 -1
- package/esm/components/QSteps/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +2 -2
- package/esm/components/QTabs/QTabs.d.ts +4 -4
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +86 -85
- package/esm/components/QTabs/context.d.ts +3 -3
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +2 -2
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +25 -24
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +7 -4
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
- package/esm/components/QToggleGroup/index.d.ts +8 -8
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/composables/defaults.d.ts +10 -0
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +8 -5
- package/esm/composables/useDialog/_internal.js +8 -11
- package/esm/composables/useDialog/index.js +1 -2
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.d.ts +1 -11
- package/esm/composables/useDropZone/index.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.js +23 -26
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +15 -15
- package/esm/composables/useOverlayScope/index.d.ts +29 -0
- package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
- package/esm/composables/useOverlayScope/index.js +23 -0
- package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
- package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
- package/esm/composables/useTextareaAutosize/index.js +6 -6
- package/esm/composables/useToast/_internal.js +10 -15
- package/esm/composables/useToast/index.js +1 -2
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.js +14 -12
- package/esm/index.d.ts +1 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/symbols/overlayScope.d.ts +4 -0
- package/esm/symbols/overlayScope.d.ts.map +1 -0
- package/esm/symbols/overlayScope.js +4 -0
- package/esm/types/component.d.ts +8 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +3 -10
- package/esm/utils/date.d.ts +35 -13
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +313 -253
- package/esm/utils/mask.d.ts +1 -0
- package/esm/utils/mask.d.ts.map +1 -1
- package/esm/utils/mask.js +42 -100
- package/esm/utils/overlay.d.ts +13 -1
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/overlay.js +55 -41
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/esm/utils/safeTriangle.js +2 -2
- package/esm/utils/setupPropsProxy.d.ts +3 -1
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +2 -2
- package/package.json +9 -6
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { useColor as t } from "../../composables/useColor/index.js";
|
|
3
3
|
import { QIcon as n } from "../QIcon/index.js";
|
|
4
|
-
import { mergeDescribedBy as
|
|
5
|
-
import { QButton as
|
|
6
|
-
import { QField as
|
|
7
|
-
import { DEFAULT_ICONS as
|
|
8
|
-
import { useDropZone as
|
|
9
|
-
import { downloadFile as
|
|
10
|
-
import { computed as
|
|
4
|
+
import { mergeDescribedBy as r } from "../__internal__/QHelpPopover/resolveHelp.js";
|
|
5
|
+
import { QButton as i } from "../QButton/index.js";
|
|
6
|
+
import { QField as a } from "../QField/index.js";
|
|
7
|
+
import { DEFAULT_ICONS as o, DEFAULT_TEXTS as s } from "./constants.js";
|
|
8
|
+
import { useDropZone as c } from "../../composables/useDropZone/index.js";
|
|
9
|
+
import { downloadFile as ee } from "../../utils/download.js";
|
|
10
|
+
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeModels as y, mergeProps as b, normalizeClass as te, normalizeProps as x, normalizeStyle as S, openBlock as C, ref as w, renderSlot as ne, toDisplayString as T, toRef as re, unref as E, useAttrs as D, useModel as O, watch as k, withCtx as A } from "vue";
|
|
11
11
|
//#region src/components/QFileUpload/QFileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var j = [
|
|
13
13
|
"id",
|
|
14
14
|
"accept",
|
|
15
15
|
"required",
|
|
16
16
|
"readonly",
|
|
17
17
|
"disabled",
|
|
18
18
|
"aria-describedby"
|
|
19
|
-
],
|
|
19
|
+
], M = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "q-file-input__drop-area"
|
|
22
|
-
},
|
|
22
|
+
}, N = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "q-file-input__file-details"
|
|
25
|
-
},
|
|
25
|
+
}, P = { class: "q-file-input__attached-file" }, F = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "q-file-input__preview q-file-input__image-preview"
|
|
28
|
-
},
|
|
28
|
+
}, I = ["src", "alt"], L = { class: "q-file-input__file-meta" }, R = { class: "q-file-input__file-name" }, z = { class: "q-file-input__file-type" }, B = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "q-file-input__action-buttons"
|
|
31
|
-
},
|
|
31
|
+
}, V = {
|
|
32
32
|
key: 2,
|
|
33
33
|
class: "q-file-input__empty-container"
|
|
34
|
-
}, H = /*@__PURE__*/
|
|
34
|
+
}, H = /*@__PURE__*/ _({
|
|
35
35
|
inheritAttrs: !1,
|
|
36
36
|
__name: "QFileUpload",
|
|
37
|
-
props: /*@__PURE__*/
|
|
37
|
+
props: /*@__PURE__*/ y({
|
|
38
38
|
id: {},
|
|
39
39
|
class: {},
|
|
40
40
|
label: {},
|
|
@@ -43,8 +43,8 @@ var M = [
|
|
|
43
43
|
labelPosition: {},
|
|
44
44
|
help: {},
|
|
45
45
|
helpDisplay: {},
|
|
46
|
-
icons: { default: () =>
|
|
47
|
-
texts: { default: () =>
|
|
46
|
+
icons: { default: () => o },
|
|
47
|
+
texts: { default: () => s },
|
|
48
48
|
size: { default: "large" },
|
|
49
49
|
readonly: { type: Boolean },
|
|
50
50
|
disabled: { type: Boolean },
|
|
@@ -55,9 +55,9 @@ var M = [
|
|
|
55
55
|
modelModifiers: {}
|
|
56
56
|
}),
|
|
57
57
|
emits: ["update:modelValue"],
|
|
58
|
-
setup(
|
|
59
|
-
let
|
|
60
|
-
|
|
58
|
+
setup(o) {
|
|
59
|
+
let s = o, _ = O(o, "modelValue"), y = e(re(s, "id")), { style: H } = t("primary"), U = l(() => ({ "--q-file-input-tint-color": H.value?.tintColor })), W = D(), G = l(() => `${y.value}_field`), K = l(() => typeof W["aria-describedby"] == "string" ? W["aria-describedby"] : void 0), q = l(() => !s.readonly && !s.disabled), J = w(null);
|
|
60
|
+
k(_, (e) => {
|
|
61
61
|
J.value && URL.revokeObjectURL(J.value), J.value = e && e.type.startsWith("image/") ? URL.createObjectURL(e) : null;
|
|
62
62
|
});
|
|
63
63
|
let Y = w(null);
|
|
@@ -66,94 +66,97 @@ var M = [
|
|
|
66
66
|
}
|
|
67
67
|
function ie(e) {
|
|
68
68
|
let t = e.target;
|
|
69
|
-
t?.files?.[0] && (
|
|
69
|
+
t?.files?.[0] && (_.value = t.files[0]);
|
|
70
70
|
}
|
|
71
71
|
function ae() {
|
|
72
|
-
|
|
72
|
+
_.value && ee(_.value);
|
|
73
73
|
}
|
|
74
74
|
function oe() {
|
|
75
|
-
|
|
75
|
+
_.value = void 0, Y.value && (Y.value.value = "");
|
|
76
76
|
}
|
|
77
77
|
function se(e) {
|
|
78
|
-
|
|
79
|
-
let t = e?.[0];
|
|
80
|
-
t && (g.value = t);
|
|
78
|
+
_.value = e[0];
|
|
81
79
|
}
|
|
82
|
-
let Z = w(null), Q =
|
|
80
|
+
let Z = w(null), Q = l(() => Array.isArray(s.accept) ? s.accept : s.accept ? s.accept.split(",").map((e) => e.trim()) : []), ce = l(() => Q.value?.join(",")), { isOverDropZone: le, isValid: $ } = c(Z, {
|
|
83
81
|
onDrop: se,
|
|
84
82
|
accept: Q,
|
|
85
|
-
enabled:
|
|
86
|
-
}), ue =
|
|
83
|
+
enabled: l(() => q.value && !_.value)
|
|
84
|
+
}), ue = l(() => [
|
|
87
85
|
"q-field__control",
|
|
88
86
|
"q-file-input",
|
|
89
87
|
{ "q-file-input--highlighted": le.value && $.value },
|
|
90
|
-
|
|
88
|
+
s.class
|
|
91
89
|
]);
|
|
92
|
-
return (e, t) => (C(),
|
|
90
|
+
return (e, t) => (C(), u(E(a), {
|
|
93
91
|
id: G.value,
|
|
94
|
-
for:
|
|
95
|
-
label:
|
|
96
|
-
"label-position":
|
|
97
|
-
size:
|
|
98
|
-
readonly:
|
|
99
|
-
disabled:
|
|
100
|
-
required:
|
|
101
|
-
invalid:
|
|
102
|
-
help:
|
|
103
|
-
"help-display":
|
|
104
|
-
icons:
|
|
105
|
-
texts:
|
|
106
|
-
},
|
|
107
|
-
control:
|
|
92
|
+
for: E(y),
|
|
93
|
+
label: s.label,
|
|
94
|
+
"label-position": s.labelPosition,
|
|
95
|
+
size: s.size,
|
|
96
|
+
readonly: s.readonly,
|
|
97
|
+
disabled: s.disabled,
|
|
98
|
+
required: s.required,
|
|
99
|
+
invalid: s.invalid,
|
|
100
|
+
help: s.help,
|
|
101
|
+
"help-display": s.helpDisplay,
|
|
102
|
+
icons: s.icons,
|
|
103
|
+
texts: s.texts
|
|
104
|
+
}, m({
|
|
105
|
+
control: A(({ describedBy: t }) => [p("div", {
|
|
108
106
|
ref_key: "dropZoneRef",
|
|
109
107
|
ref: Z,
|
|
110
|
-
class:
|
|
108
|
+
class: te(ue.value),
|
|
111
109
|
style: S(U.value)
|
|
112
|
-
}, [
|
|
113
|
-
id:
|
|
110
|
+
}, [p("input", b({
|
|
111
|
+
id: E(y),
|
|
114
112
|
ref_key: "fileInput",
|
|
115
113
|
ref: Y,
|
|
116
114
|
type: "file",
|
|
117
115
|
class: "q-file-input__file-input",
|
|
118
116
|
accept: ce.value,
|
|
119
|
-
required:
|
|
120
|
-
readonly:
|
|
121
|
-
disabled:
|
|
117
|
+
required: s.required,
|
|
118
|
+
readonly: s.readonly,
|
|
119
|
+
disabled: s.disabled
|
|
122
120
|
}, e.$attrs, {
|
|
123
|
-
"aria-describedby":
|
|
121
|
+
"aria-describedby": E(r)(t, K.value),
|
|
124
122
|
onChange: ie
|
|
125
|
-
}), null, 16,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
label:
|
|
123
|
+
}), null, 16, j), !_.value && q.value ? (C(), f("div", M, [
|
|
124
|
+
g(E(n), x(v(s.icons.upload)), null, 16),
|
|
125
|
+
p("span", null, T(s.texts.dropHereOr), 1),
|
|
126
|
+
g(E(i), {
|
|
127
|
+
label: s.texts.chooseFile,
|
|
130
128
|
onClick: X
|
|
131
129
|
}, null, 8, ["label"])
|
|
132
|
-
])) :
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
130
|
+
])) : _.value ? (C(), f("div", N, [
|
|
131
|
+
p("div", P, [J.value ? (C(), f("div", F, [p("img", {
|
|
132
|
+
src: J.value,
|
|
133
|
+
alt: s.texts.preview
|
|
134
|
+
}, null, 8, I)])) : (C(), u(E(n), b({
|
|
135
|
+
key: 1,
|
|
136
|
+
class: "q-file-input__preview"
|
|
137
|
+
}, s.icons.file), null, 16)), p("div", L, [p("span", R, T(_.value.name), 1), p("span", z, T(_.value.type), 1)])]),
|
|
138
|
+
d(" Read-only still lets the user download the file, only not remove it "),
|
|
139
|
+
s.disabled ? d("v-if", !0) : (C(), f("div", B, [g(E(i), {
|
|
140
|
+
title: s.texts.download,
|
|
141
|
+
borderless: "",
|
|
142
|
+
onClick: ae
|
|
143
|
+
}, {
|
|
144
|
+
default: A(() => [g(E(n), x(v(s.icons.download)), null, 16)]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["title"]), q.value ? (C(), u(E(i), {
|
|
147
|
+
key: 0,
|
|
148
|
+
title: s.texts.remove,
|
|
149
|
+
borderless: "",
|
|
150
|
+
onClick: oe
|
|
151
|
+
}, {
|
|
152
|
+
default: A(() => [g(E(n), x(v(s.icons.remove)), null, 16)]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["title"])) : d("v-if", !0)]))
|
|
155
|
+
])) : (C(), f("div", V, [g(E(n), x(v(s.icons.empty)), null, 16), h(" " + T(s.texts.empty), 1)]))], 6)]),
|
|
153
156
|
_: 2
|
|
154
157
|
}, [e.$slots.extras ? {
|
|
155
158
|
name: "extras",
|
|
156
|
-
fn:
|
|
159
|
+
fn: A(() => [ne(e.$slots, "extras")]),
|
|
157
160
|
key: "0"
|
|
158
161
|
} : void 0]), 1032, [
|
|
159
162
|
"id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QFocusWrap.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFocusWrap/QFocusWrap.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QFocusWrap.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFocusWrap/QFocusWrap.vue"],"names":[],"mappings":"AAiBA;AAuIC,OAAO,KAAK,EAAE,eAAe,EAA8B,MAAM,GAAG,CAAA;AAuHrE,iBAAS,cAAc;WA2CT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;OAQnB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAKA;AAoCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;;AA6DxC,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSvgSymbol.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QSvgSymbol.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSvgSymbol.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QSvgSymbol.vue"],"names":[],"mappings":"AAcA;AA0PC;;;GAGG;AACH,KAAK,eAAe,GAAG;IACtB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,CAAA;IAEjD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;;;;;;;;;;YAxBS,MAAM;WAOP,MAAM;SAdR,MAAM;qBAsBM,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU;uBAQ7B,OAAO;;AAyP7B,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadSvg as e } from "./utils/svgSource.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, getCurrentInstance as o, mergeProps as s, nextTick as c, normalizeProps as l, onMounted as u, openBlock as d, ref as f, unref as p, useAttrs as m, watch as h } from "vue";
|
|
3
3
|
//#region src/components/QIcon/QSvgSymbol.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var g = ["innerHTML"], _ = /*@__PURE__*/ a({
|
|
5
5
|
name: "QSvgSymbol",
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QSvgSymbol",
|
|
@@ -23,54 +23,54 @@ var h = ["innerHTML"], g = /*@__PURE__*/ i({
|
|
|
23
23
|
"unloaded",
|
|
24
24
|
"error"
|
|
25
25
|
],
|
|
26
|
-
setup(
|
|
27
|
-
let
|
|
28
|
-
function
|
|
26
|
+
setup(a, { emit: _ }) {
|
|
27
|
+
let v = a, y = _, b = m(), x = o(), S = f(null);
|
|
28
|
+
function C(e) {
|
|
29
29
|
let t = e;
|
|
30
|
-
if (
|
|
31
|
-
let n = e.getElementById(
|
|
30
|
+
if (v.symbol) {
|
|
31
|
+
let n = e.getElementById(v.symbol);
|
|
32
32
|
if (!n) return null;
|
|
33
33
|
t = n;
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return v.transformSource && (t = v.transformSource(t.cloneNode(!0))), v.title && (v.transformSource || (t = t.cloneNode(!0)), j(t, v.title)), t;
|
|
36
36
|
}
|
|
37
|
-
let
|
|
38
|
-
if (!
|
|
37
|
+
let w = n(() => S.value ? C(S.value) : null), T = n(() => S.value !== null && w.value === null), E = n(() => {
|
|
38
|
+
if (!S.value || !w.value) return {};
|
|
39
39
|
let e = {};
|
|
40
|
-
return
|
|
41
|
-
}),
|
|
42
|
-
async function
|
|
43
|
-
let n = ++
|
|
40
|
+
return k(e, S.value), k(e, w.value), A(e, b), b.id || delete e.id, e;
|
|
41
|
+
}), D = 0;
|
|
42
|
+
async function O(t) {
|
|
43
|
+
let n = ++D;
|
|
44
44
|
if (!t) {
|
|
45
|
-
|
|
45
|
+
S.value && (S.value = null, y("unloaded"));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
try {
|
|
49
49
|
let r = e(t);
|
|
50
|
-
|
|
50
|
+
S.value && r.getIsPending() && !v.keepDuringLoading && (S.value = null, y("unloaded"));
|
|
51
51
|
let i = await r;
|
|
52
|
-
if (n !==
|
|
53
|
-
|
|
54
|
-
let a =
|
|
55
|
-
a instanceof Element &&
|
|
52
|
+
if (n !== D) return;
|
|
53
|
+
S.value = i, await c();
|
|
54
|
+
let a = x?.proxy?.$el;
|
|
55
|
+
a instanceof Element && y("loaded", a);
|
|
56
56
|
} catch (e) {
|
|
57
|
-
if (n !==
|
|
58
|
-
|
|
57
|
+
if (n !== D) return;
|
|
58
|
+
S.value && (S.value = null, y("unloaded")), y("error", e);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
|
|
61
|
+
u(() => {
|
|
62
|
+
O(v.src);
|
|
63
|
+
}), h(() => v.src, (e) => {
|
|
64
|
+
O(e);
|
|
65
65
|
});
|
|
66
|
-
function
|
|
66
|
+
function k(e, t) {
|
|
67
67
|
let n = t.attributes;
|
|
68
68
|
if (n) for (let t of n) e[t.name] = t.value;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function A(e, t) {
|
|
71
71
|
for (let [n, r] of Object.entries(t)) r !== !1 && r != null && (e[n] = r);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function j(e, t) {
|
|
74
74
|
let n = e.getElementsByTagName("title");
|
|
75
75
|
if (n.length) n[0].textContent = t;
|
|
76
76
|
else {
|
|
@@ -78,8 +78,8 @@ var h = ["innerHTML"], g = /*@__PURE__*/ i({
|
|
|
78
78
|
n.textContent = t, e.insertBefore(n, e.firstChild);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
return (e,
|
|
81
|
+
return (e, n) => T.value ? (d(), i("div", l(s({ key: 0 }, p(b))), null, 16)) : w.value ? (d(), i("svg", s({ key: 1 }, E.value, { innerHTML: w.value.innerHTML }), null, 16, g)) : (d(), i(t, { key: 2 }, [r(" Until the bundle loads, an empty icon keeps its box, so the layout does not shift "), (d(), i("svg", s(p(b), { "aria-hidden": "true" }), null, 16))], 2112));
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
//#endregion
|
|
85
|
-
export {
|
|
85
|
+
export { _ as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AAiDA;
|
|
1
|
+
{"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AAiDA;AA0HC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AA+D1C,iBAAS,cAAc;WA0IT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACT,GAAG;;;YACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA4Du7e,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;EA5C5kf;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA+Bk8e,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;OArB3kf,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,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useId as
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import { QField as
|
|
5
|
-
import { computed as
|
|
1
|
+
import { booleanDefault as e, provideDefaults as t } from "../../composables/defaults.js";
|
|
2
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
3
|
+
import { QIcon as r } from "../QIcon/index.js";
|
|
4
|
+
import { QField as i } from "../QField/index.js";
|
|
5
|
+
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createSlots as l, createVNode as u, defineComponent as d, guardReactiveProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, toRef as _, unref as v, useTemplateRef as y, withCtx as b } from "vue";
|
|
6
6
|
//#region src/components/QInputGroup/QInputGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var x = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "q-input-group__prepend"
|
|
10
|
-
},
|
|
10
|
+
}, S = { key: 0 }, C = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "q-input-group__append"
|
|
13
|
-
},
|
|
13
|
+
}, w = { key: 0 }, T = /*@__PURE__*/ d({
|
|
14
14
|
__name: "QInputGroup",
|
|
15
15
|
props: {
|
|
16
16
|
id: {},
|
|
@@ -24,47 +24,73 @@ var b = {
|
|
|
24
24
|
icons: {},
|
|
25
25
|
texts: {},
|
|
26
26
|
size: { default: "large" },
|
|
27
|
-
readonly: { type: Boolean },
|
|
28
|
-
disabled: { type: Boolean },
|
|
29
27
|
invalid: { type: Boolean },
|
|
28
|
+
disabled: { type: Boolean },
|
|
29
|
+
readonly: { type: Boolean },
|
|
30
30
|
prependIcon: {},
|
|
31
31
|
appendIcon: {}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
setup(d, { expose: T }) {
|
|
34
|
+
let E = d, D = n(_(E, "id")), O = [
|
|
35
|
+
"QCheckbox",
|
|
36
|
+
"QColorPicker",
|
|
37
|
+
"QCombobox",
|
|
38
|
+
"QDateTimePicker",
|
|
39
|
+
"QFileUpload",
|
|
40
|
+
"QObfuscation",
|
|
41
|
+
"QPasswordField",
|
|
42
|
+
"QPhoneField",
|
|
43
|
+
"QRadioGroup",
|
|
44
|
+
"QSelect",
|
|
45
|
+
"QSwitch",
|
|
46
|
+
"QTextArea",
|
|
47
|
+
"QTextField"
|
|
48
|
+
], k = [
|
|
49
|
+
"QButton",
|
|
50
|
+
"QButtonGroup",
|
|
51
|
+
"QToggle",
|
|
52
|
+
"QToggleGroup"
|
|
53
|
+
], A = e(() => E.disabled), j = e(() => E.readonly);
|
|
54
|
+
t({
|
|
55
|
+
QField: { size: "block" },
|
|
56
|
+
...Object.fromEntries(O.map((e) => [e, {
|
|
57
|
+
disabled: A,
|
|
58
|
+
readonly: j
|
|
59
|
+
}])),
|
|
60
|
+
...Object.fromEntries(k.map((e) => [e, { disabled: A }]))
|
|
61
|
+
});
|
|
62
|
+
let M = y("field");
|
|
63
|
+
return T({
|
|
64
|
+
fieldRef: a(() => M.value?.fieldRef),
|
|
65
|
+
helpDescribedBy: a(() => M.value?.helpDescribedBy)
|
|
66
|
+
}), (e, t) => (h(), o(v(i), {
|
|
67
|
+
id: v(D),
|
|
42
68
|
ref: "field",
|
|
43
|
-
class:
|
|
44
|
-
for:
|
|
45
|
-
label:
|
|
46
|
-
"label-position":
|
|
47
|
-
required:
|
|
48
|
-
size:
|
|
49
|
-
readonly:
|
|
50
|
-
disabled:
|
|
51
|
-
invalid:
|
|
52
|
-
help:
|
|
53
|
-
"help-display":
|
|
54
|
-
icons:
|
|
55
|
-
texts:
|
|
56
|
-
},
|
|
57
|
-
"label.prepend":
|
|
58
|
-
"label.append":
|
|
59
|
-
default:
|
|
60
|
-
e.$slots.prepend ||
|
|
61
|
-
|
|
62
|
-
e.$slots.append ||
|
|
69
|
+
class: p(["q-input-group", E.class]),
|
|
70
|
+
for: E.for,
|
|
71
|
+
label: E.label,
|
|
72
|
+
"label-position": E.labelPosition,
|
|
73
|
+
required: E.required,
|
|
74
|
+
size: E.size,
|
|
75
|
+
readonly: E.readonly,
|
|
76
|
+
disabled: E.disabled,
|
|
77
|
+
invalid: E.invalid,
|
|
78
|
+
help: E.help,
|
|
79
|
+
"help-display": E.helpDisplay,
|
|
80
|
+
icons: E.icons,
|
|
81
|
+
texts: E.texts
|
|
82
|
+
}, l({
|
|
83
|
+
"label.prepend": b(() => [g(e.$slots, "label.prepend")]),
|
|
84
|
+
"label.append": b(() => [g(e.$slots, "label.append")]),
|
|
85
|
+
default: b(({ describedBy: t }) => [
|
|
86
|
+
e.$slots.prepend || E.prependIcon ? (h(), c("div", x, [E.prependIcon ? (h(), c("span", S, [u(v(r), m(f(E.prependIcon)), null, 16)])) : s("v-if", !0), g(e.$slots, "prepend")])) : s("v-if", !0),
|
|
87
|
+
g(e.$slots, "default", { describedBy: t }),
|
|
88
|
+
e.$slots.append || E.appendIcon ? (h(), c("div", C, [E.appendIcon ? (h(), c("span", w, [u(v(r), m(f(E.appendIcon)), null, 16)])) : s("v-if", !0), g(e.$slots, "append")])) : s("v-if", !0)
|
|
63
89
|
]),
|
|
64
90
|
_: 2
|
|
65
91
|
}, [e.$slots.extras ? {
|
|
66
92
|
name: "extras",
|
|
67
|
-
fn:
|
|
93
|
+
fn: b(() => [g(e.$slots, "extras")]),
|
|
68
94
|
key: "0"
|
|
69
95
|
} : void 0]), 1032, [
|
|
70
96
|
"id",
|
|
@@ -85,4 +111,4 @@ var b = {
|
|
|
85
111
|
}
|
|
86
112
|
});
|
|
87
113
|
//#endregion
|
|
88
|
-
export {
|
|
114
|
+
export { T as default };
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { QFieldProps } from '../QField';
|
|
2
2
|
import { QIconProps } from '../QIcon';
|
|
3
|
-
export type QInputGroupProps = QFieldProps & {
|
|
3
|
+
export type QInputGroupProps = Omit<QFieldProps, 'disabled' | 'readonly'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Disables the group and every Quidgest UI control in it, buttons included. A control that
|
|
6
|
+
* sets its own `disabled` keeps it.
|
|
7
|
+
*
|
|
8
|
+
* @category State
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Makes every Quidgest UI field in the group read-only. Buttons stay enabled. A field that
|
|
13
|
+
* sets its own `readonly` keeps it.
|
|
14
|
+
*
|
|
15
|
+
* @category State
|
|
16
|
+
*/
|
|
17
|
+
readonly?: boolean;
|
|
4
18
|
/**
|
|
5
19
|
* An icon to add at the start of the field group.
|
|
6
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IAC3E;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,UAAU,CAAA;IAExB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;CACvB,CAAA"}
|
|
@@ -55,6 +55,7 @@ declare function __VLS_template(): {
|
|
|
55
55
|
readonly modelValue?: boolean | undefined;
|
|
56
56
|
readonly value: any;
|
|
57
57
|
readonly label: string;
|
|
58
|
+
readonly overflowTitle?: boolean | undefined;
|
|
58
59
|
readonly icon?: import('..').QIconProps | undefined;
|
|
59
60
|
readonly description?: string | undefined;
|
|
60
61
|
readonly selectable?: boolean | undefined;
|
|
@@ -69,6 +70,8 @@ declare function __VLS_template(): {
|
|
|
69
70
|
$attrs: import('vue').Attrs;
|
|
70
71
|
$refs: {
|
|
71
72
|
[x: string]: unknown;
|
|
73
|
+
} & {
|
|
74
|
+
label: HTMLSpanElement;
|
|
72
75
|
};
|
|
73
76
|
$slots: Readonly<{
|
|
74
77
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -158,6 +161,7 @@ declare const __VLS_component: import('vue').DefineComponent<QListProps, {
|
|
|
158
161
|
readonly modelValue?: boolean | undefined;
|
|
159
162
|
readonly value: any;
|
|
160
163
|
readonly label: string;
|
|
164
|
+
readonly overflowTitle?: boolean | undefined;
|
|
161
165
|
readonly icon?: import('..').QIconProps | undefined;
|
|
162
166
|
readonly description?: string | undefined;
|
|
163
167
|
readonly selectable?: boolean | undefined;
|
|
@@ -172,6 +176,8 @@ declare const __VLS_component: import('vue').DefineComponent<QListProps, {
|
|
|
172
176
|
$attrs: import('vue').Attrs;
|
|
173
177
|
$refs: {
|
|
174
178
|
[x: string]: unknown;
|
|
179
|
+
} & {
|
|
180
|
+
label: HTMLSpanElement;
|
|
175
181
|
};
|
|
176
182
|
$slots: Readonly<{
|
|
177
183
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAoDA;AA+dC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA4QnC,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;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;AA6CF,iBAAS,cAAc;WAyHT,OAAO,IAA6B;;yBAdrB,GAAG;;;;YACL,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA7GrC,GAAG,8CACmB,GAAE,yBAAyB,GAAG,6DACtD,GAAG;;;;;;;;;;;;;;;;;;EA4HF;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAvJnB,GAAG,8CACmB,GAAE,yBAAyB,GAAG,6DACtD,GAAG;;;;;;;;;;;;;;;;kBAgKD,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"}
|
|
@@ -32,6 +32,7 @@ var ee = [
|
|
|
32
32
|
required: { type: Boolean },
|
|
33
33
|
itemValue: { default: "key" },
|
|
34
34
|
itemLabel: { default: "label" },
|
|
35
|
+
itemTitle: { type: Boolean },
|
|
35
36
|
icons: { default: () => i }
|
|
36
37
|
},
|
|
37
38
|
emits: [
|
|
@@ -156,7 +157,7 @@ var ee = [
|
|
|
156
157
|
return e.getAttribute("tabindex") === "-1";
|
|
157
158
|
}
|
|
158
159
|
return x(M, (e) => {
|
|
159
|
-
T("update:modelValue", e);
|
|
160
|
+
e !== w.modelValue && T("update:modelValue", e);
|
|
160
161
|
}), f({
|
|
161
162
|
getItem: q,
|
|
162
163
|
getActiveItemIndex: J,
|
|
@@ -193,6 +194,7 @@ var ee = [
|
|
|
193
194
|
ref: P,
|
|
194
195
|
value: n[w.itemValue],
|
|
195
196
|
label: n[w.itemLabel],
|
|
197
|
+
"overflow-title": w.itemTitle,
|
|
196
198
|
description: n.description,
|
|
197
199
|
icon: n.icon,
|
|
198
200
|
disabled: w.disabled || t.disabled || n.disabled,
|
|
@@ -216,6 +218,7 @@ var ee = [
|
|
|
216
218
|
}, 1032, [
|
|
217
219
|
"value",
|
|
218
220
|
"label",
|
|
221
|
+
"overflow-title",
|
|
219
222
|
"description",
|
|
220
223
|
"icon",
|
|
221
224
|
"disabled",
|
|
@@ -11,7 +11,9 @@ declare function __VLS_template(): {
|
|
|
11
11
|
default?(_: {}): any;
|
|
12
12
|
append?(_: {}): any;
|
|
13
13
|
};
|
|
14
|
-
refs: {
|
|
14
|
+
refs: {
|
|
15
|
+
label: HTMLSpanElement;
|
|
16
|
+
};
|
|
15
17
|
rootEl: HTMLLIElement;
|
|
16
18
|
};
|
|
17
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -25,7 +27,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
25
27
|
}>, {
|
|
26
28
|
icons: typeof DEFAULT_ICONS;
|
|
27
29
|
selectOnTab: boolean;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
|
+
label: HTMLSpanElement;
|
|
32
|
+
}, HTMLLIElement>;
|
|
29
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
34
|
export default _default;
|
|
31
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|