@quidgest/ui 0.26.0 → 0.27.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 +24 -0
- package/dist/json/api.json +487 -155
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1017 -142
- package/dist/ui.esm.js +988 -939
- package/dist/ui.js +1229 -1183
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1229 -1183
- package/dist/ui.scss +1267 -158
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +19 -18
- package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +58 -55
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
- package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/constants.js +10 -0
- package/esm/components/QBreadcrumbs/context.d.ts +103 -0
- package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/context.js +4 -0
- package/esm/components/QBreadcrumbs/index.d.ts +108 -0
- package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/index.js +7 -0
- package/esm/components/QBreadcrumbs/types.d.ts +100 -0
- package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +55 -52
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +51 -52
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +119 -115
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
- package/esm/components/QCombobox/QCombobox.d.ts +6 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +119 -116
- package/esm/components/QCombobox/index.d.ts +3 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
- package/esm/components/QDateTimePicker/constants.d.ts +5 -0
- package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/constants.js +5 -0
- package/esm/components/QDialog/QDialog.d.ts +2 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -65
- package/esm/components/QDialog/constants.d.ts +6 -1
- package/esm/components/QDialog/constants.d.ts.map +1 -1
- package/esm/components/QDialog/constants.js +6 -2
- package/esm/components/QDialog/index.d.ts +6 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +13 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +22 -21
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +36 -34
- package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
- package/esm/components/QGauge/QGauge.d.ts +1 -1
- package/esm/components/QGauge/QGauge.d.ts.map +1 -1
- package/esm/components/QGauge/QGauge.vue.js +9 -9
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +20 -19
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +13 -12
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +12 -11
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +19 -18
- package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
- package/esm/components/QIcon/QSvgSymbol.vue.js +88 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +20 -19
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
- package/esm/components/QList/QList.d.ts +4 -4
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -135
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +42 -40
- package/esm/components/QList/QListItemGroup.d.ts +1 -1
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +2 -2
- package/esm/components/QList/types.d.ts +6 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +20 -19
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
- package/esm/components/QOverflow/QOverflow.d.ts +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +10 -10
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +139 -138
- package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
- package/esm/components/QPasswordField/constants.d.ts +4 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -1
- package/esm/components/QPasswordField/constants.js +4 -1
- 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 +7 -1
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
- package/esm/components/QPhoneField/index.d.ts +3 -2
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +51 -28
- package/esm/components/QProgress/QProgress.vue.js +3 -3
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
- package/esm/components/QPropertyList/constants.d.ts +2 -0
- package/esm/components/QPropertyList/constants.d.ts.map +1 -1
- package/esm/components/QPropertyList/constants.js +5 -1
- package/esm/components/QPropertyList/index.d.ts +16 -4
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +19 -18
- package/esm/components/QSelect/QSelect.d.ts +6 -4
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +129 -124
- package/esm/components/QSelect/index.d.ts +3 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +68 -67
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
- package/esm/components/QSidebar/context.d.ts +1 -1
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +8 -0
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QStepHeader.d.ts +58 -0
- package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
- package/esm/components/QSteps/QStepHeader.vue.js +49 -0
- package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
- package/esm/components/QSteps/QSteps.d.ts +269 -0
- package/esm/components/QSteps/QSteps.d.ts.map +1 -0
- package/esm/components/QSteps/QSteps.vue.js +260 -0
- package/esm/components/QSteps/QSteps2.vue.js +5 -0
- package/esm/components/QSteps/QStepsNav.d.ts +59 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
- package/esm/components/QSteps/QStepsNav.vue.js +42 -0
- package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
- package/esm/components/QSteps/constants.d.ts +28 -0
- package/esm/components/QSteps/constants.d.ts.map +1 -0
- package/esm/components/QSteps/constants.js +16 -0
- package/esm/components/QSteps/index.d.ts +228 -0
- package/esm/components/QSteps/index.d.ts.map +1 -0
- package/esm/components/QSteps/index.js +6 -0
- package/esm/components/QSteps/types.d.ts +190 -0
- package/esm/components/QSteps/types.d.ts.map +1 -0
- package/esm/components/QSwitch/QSwitch.vue.js +3 -3
- package/esm/components/QTabs/QTab.d.ts +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +10 -12
- package/esm/components/QTabs/QTabs.d.ts +1 -1
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +108 -107
- package/esm/components/QTabs/context.d.ts +1 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
- package/esm/components/QToast/QToast.d.ts +2 -1
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +95 -78
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +20 -19
- package/esm/components/QToast/constants.d.ts +3 -0
- package/esm/components/QToast/constants.d.ts.map +1 -1
- package/esm/components/QToast/constants.js +2 -2
- package/esm/components/QToast/index.d.ts +6 -0
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +7 -1
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +52 -15
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
- package/esm/components/QTooltip/QTooltip.vue.js +5 -5
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +108 -103
- package/esm/composables/useColor/index.d.ts +2 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +49 -39
- package/esm/composables/useColor/types.d.ts +15 -0
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/utils/color/contrast.d.ts +20 -0
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +24 -13
- package/esm/utils/color/merge.js +8 -8
- package/esm/utils/index.js +56 -54
- package/package.json +12 -6
- package/esm/components/QIcon/InlineSvg.d.ts +0 -110
- package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
- package/esm/components/QIcon/InlineSvg.js +0 -95
- package/esm/utils/time.d.ts +0 -36
- package/esm/utils/time.d.ts.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, toDisplayString as u, toRef as d, unref as f } from "vue";
|
|
2
3
|
//#region src/components/QSection/QSection.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
4
|
+
var p = ["id"], m = {
|
|
4
5
|
key: 0,
|
|
5
6
|
class: "q-section__title"
|
|
6
|
-
},
|
|
7
|
+
}, h = { class: "q-section__content" }, g = /*@__PURE__*/ o({
|
|
7
8
|
__name: "QSection",
|
|
8
9
|
props: {
|
|
9
10
|
id: {},
|
|
@@ -13,25 +14,25 @@ var u = ["id"], d = {
|
|
|
13
14
|
variant: { default: "default" },
|
|
14
15
|
block: { type: Boolean }
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
17
|
+
setup(o) {
|
|
18
|
+
let g = o, _ = e(d(g, "id")), v = t(() => [
|
|
18
19
|
"q-section",
|
|
19
|
-
|
|
20
|
+
g.variant === "default" ? void 0 : `q-section--${g.variant}`,
|
|
20
21
|
{
|
|
21
|
-
"q-section--block":
|
|
22
|
-
"q-section--borderless":
|
|
22
|
+
"q-section--block": g.block,
|
|
23
|
+
"q-section--borderless": g.borderless
|
|
23
24
|
},
|
|
24
|
-
|
|
25
|
+
g.class
|
|
25
26
|
]);
|
|
26
|
-
return (e,
|
|
27
|
-
id:
|
|
28
|
-
class:
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
])) :
|
|
27
|
+
return (e, t) => (c(), r("div", {
|
|
28
|
+
id: f(_),
|
|
29
|
+
class: s(v.value)
|
|
30
|
+
}, [g.title ? (c(), r("div", m, [
|
|
31
|
+
l(e.$slots, "title.prepend"),
|
|
32
|
+
a(" " + u(g.title) + " ", 1),
|
|
33
|
+
l(e.$slots, "title.append")
|
|
34
|
+
])) : n("v-if", !0), i("div", h, [l(e.$slots, "default")])], 10, p));
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
+
export { g as default };
|
|
@@ -255,6 +255,7 @@ declare function __VLS_template(): {
|
|
|
255
255
|
$props: {
|
|
256
256
|
readonly id?: string | undefined;
|
|
257
257
|
readonly class?: string | unknown[] | undefined;
|
|
258
|
+
readonly label?: string | undefined;
|
|
258
259
|
readonly modelValue?: any;
|
|
259
260
|
readonly highlighted?: any;
|
|
260
261
|
readonly items?: QListItemData[] | undefined;
|
|
@@ -274,7 +275,7 @@ declare function __VLS_template(): {
|
|
|
274
275
|
$refs: {
|
|
275
276
|
[x: string]: unknown;
|
|
276
277
|
} & {
|
|
277
|
-
listRef:
|
|
278
|
+
listRef: HTMLDivElement;
|
|
278
279
|
listItemsRef: (({
|
|
279
280
|
$: import('vue').ComponentInternalInstance;
|
|
280
281
|
$data: {};
|
|
@@ -360,7 +361,7 @@ declare function __VLS_template(): {
|
|
|
360
361
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
361
362
|
$host: Element | null;
|
|
362
363
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
363
|
-
$el:
|
|
364
|
+
$el: HTMLDivElement;
|
|
364
365
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
|
|
365
366
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
366
367
|
onClick?: ((key: any) => any) | undefined;
|
|
@@ -683,6 +684,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
683
684
|
$props: {
|
|
684
685
|
readonly id?: string | undefined;
|
|
685
686
|
readonly class?: string | unknown[] | undefined;
|
|
687
|
+
readonly label?: string | undefined;
|
|
686
688
|
readonly modelValue?: any;
|
|
687
689
|
readonly highlighted?: any;
|
|
688
690
|
readonly items?: QListItemData[] | undefined;
|
|
@@ -702,7 +704,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
702
704
|
$refs: {
|
|
703
705
|
[x: string]: unknown;
|
|
704
706
|
} & {
|
|
705
|
-
listRef:
|
|
707
|
+
listRef: HTMLDivElement;
|
|
706
708
|
listItemsRef: (({
|
|
707
709
|
$: import('vue').ComponentInternalInstance;
|
|
708
710
|
$data: {};
|
|
@@ -788,7 +790,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
788
790
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
789
791
|
$host: Element | null;
|
|
790
792
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
791
|
-
$el:
|
|
793
|
+
$el: HTMLDivElement;
|
|
792
794
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
|
|
793
795
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
794
796
|
onClick?: ((key: any) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"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"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useGroup as e } from "../../composables/useGroup/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import { QSpinnerLoader as n } from "../QSpinnerLoader/index.js";
|
|
4
|
+
import { QButton as r } from "../QButton/index.js";
|
|
5
|
+
import { QIcon as i } from "../QIcon/index.js";
|
|
6
|
+
import { QChevron as a } from "../__internal__/QChevron/index.js";
|
|
7
7
|
import { QBadge as o } from "../QBadge/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { DEFAULT_ICONS as s, DEFAULT_TEXTS as
|
|
13
|
-
import { QPopover as
|
|
14
|
-
import { Fragment as
|
|
8
|
+
import { QList as ee } from "../QList/index.js";
|
|
9
|
+
import { QOverlay as te } from "../QOverlay/index.js";
|
|
10
|
+
import { QField as ne } from "../QField/index.js";
|
|
11
|
+
import { QClearButton as re } from "../__internal__/QClearButton/index.js";
|
|
12
|
+
import { DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
|
|
13
|
+
import { QPopover as ie } from "../QPopover/index.js";
|
|
14
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as ae, createSlots as oe, createTextVNode as m, createVNode as h, defineComponent as se, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, onBeforeUnmount as ce, onMounted as le, openBlock as x, ref as ue, renderList as de, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useModel as fe, useTemplateRef as E, vModelText as pe, watch as D, withCtx as O, withDirectives as me, withModifiers as he } from "vue";
|
|
15
15
|
//#region src/components/QSelect/QSelect.vue?vue&type=script&setup=true&lang.ts
|
|
16
16
|
var ge = {
|
|
17
17
|
key: 0,
|
|
@@ -35,7 +35,7 @@ var ge = {
|
|
|
35
35
|
], xe = ["data-key"], Se = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "q-select__loader"
|
|
38
|
-
}, k = /*@__PURE__*/
|
|
38
|
+
}, k = /*@__PURE__*/ se({
|
|
39
39
|
inheritAttrs: !1,
|
|
40
40
|
__name: "QSelect",
|
|
41
41
|
props: /*@__PURE__*/ g({
|
|
@@ -65,7 +65,7 @@ var ge = {
|
|
|
65
65
|
itemValue: { default: "key" },
|
|
66
66
|
itemLabel: { default: "label" },
|
|
67
67
|
icons: { default: () => s },
|
|
68
|
-
texts: { default: () =>
|
|
68
|
+
texts: { default: () => c }
|
|
69
69
|
}, {
|
|
70
70
|
modelValue: {},
|
|
71
71
|
modelModifiers: {},
|
|
@@ -81,67 +81,67 @@ var ge = {
|
|
|
81
81
|
"show",
|
|
82
82
|
"hide"
|
|
83
83
|
], ["update:modelValue", "update:open"]),
|
|
84
|
-
setup(s, { expose:
|
|
85
|
-
let g = s, k =
|
|
84
|
+
setup(s, { expose: c, emit: se }) {
|
|
85
|
+
let g = s, k = se, A = fe(s, "modelValue"), j = t(w(g, "id")), M = u(() => `${j.value}_input`), N = u(() => `${j.value}_listbox`), { active: P } = e({
|
|
86
86
|
active: A,
|
|
87
87
|
required: w(g, "required"),
|
|
88
88
|
multiple: w(g, "multiple")
|
|
89
|
-
}),
|
|
90
|
-
function
|
|
91
|
-
|
|
89
|
+
}), F = fe(s, "open"), I = ue(0), L = !0, R = E("trigger"), Ce = E("input"), we = E("list"), Te = E("content"), Ee = E("valueContainer"), De = E("allBadges"), Oe = E("allPlainTexts"), ke = E("hiddenItemsCountBadge"), z = null, B = null;
|
|
90
|
+
function Ae() {
|
|
91
|
+
B && clearTimeout(B), B = setTimeout(() => {
|
|
92
92
|
$();
|
|
93
93
|
}, 120);
|
|
94
94
|
}
|
|
95
95
|
le(() => {
|
|
96
96
|
$();
|
|
97
|
-
let e =
|
|
98
|
-
e && (
|
|
99
|
-
|
|
100
|
-
}),
|
|
97
|
+
let e = R.value?.fieldRef;
|
|
98
|
+
e && (z = new ResizeObserver(() => {
|
|
99
|
+
Ae();
|
|
100
|
+
}), z.observe(e));
|
|
101
101
|
}), ce(() => {
|
|
102
|
-
|
|
102
|
+
z?.disconnect(), B && clearTimeout(B);
|
|
103
103
|
});
|
|
104
|
-
let
|
|
105
|
-
if (g.multiple) return (A.value ?? []).map((e) =>
|
|
106
|
-
let e = A.value === void 0 ? void 0 :
|
|
104
|
+
let V = u(() => H.value.length === 0), H = u(() => {
|
|
105
|
+
if (g.multiple) return (A.value ?? []).map((e) => Me(e)).filter((e) => !!e);
|
|
106
|
+
let e = A.value === void 0 ? void 0 : Me(A.value);
|
|
107
107
|
return e ? [e] : [];
|
|
108
|
-
}),
|
|
108
|
+
}), je = u(() => {
|
|
109
109
|
let e = /* @__PURE__ */ new Map();
|
|
110
110
|
return g.items?.forEach((t, n) => {
|
|
111
111
|
e.set(t.key, n);
|
|
112
112
|
}), e;
|
|
113
|
-
}),
|
|
114
|
-
function
|
|
113
|
+
}), U = u(() => H.value?.map(G).filter(Boolean).join(", ")), W = u(() => g.clearable && !g.readonly && !g.disabled && !g.loading && !V.value);
|
|
114
|
+
function Me(e) {
|
|
115
115
|
return g.items?.find((t) => t[g.itemValue] === e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
g.multiple && e < A.value.length && (!g.required || A.value.length > 1) ?
|
|
117
|
+
function Ne(e) {
|
|
118
|
+
g.multiple && e < A.value.length && (!g.required || A.value.length > 1) ? P.value = A.value.toSpliced(e, 1) : q();
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function G(e) {
|
|
121
121
|
return e?.[g.itemLabel] ?? "";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return e + 1 <
|
|
123
|
+
function Pe(e) {
|
|
124
|
+
return e + 1 < H.value.length - I.value ? ", " : "";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
Array.isArray(e) ? A.value = e.sort((e, t) =>
|
|
126
|
+
function K(e) {
|
|
127
|
+
Array.isArray(e) ? A.value = e.sort((e, t) => je.value.get(e) - je.value.get(t)) : (A.value = e, Y());
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function q() {
|
|
130
|
+
K(g.emptyValue), Z();
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
!
|
|
132
|
+
function Fe(e) {
|
|
133
|
+
!Te.value?.contains(e.relatedTarget) && !R.value?.fieldRef?.contains(e.relatedTarget) && Y(!1);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
135
|
+
function J() {
|
|
136
|
+
F.value || g.readonly || g.disabled || (L = !0, k("before-show"), F.value = !0);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function Y(e = !0) {
|
|
139
|
+
F.value &&= (L = e, k("before-hide"), !1);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
g.readonly || g.disabled || (
|
|
141
|
+
function Ie() {
|
|
142
|
+
g.readonly || g.disabled || (F.value ? Y() : J());
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function X(e) {
|
|
145
145
|
!e.key || g.readonly || g.disabled || ([
|
|
146
146
|
"Enter",
|
|
147
147
|
" ",
|
|
@@ -154,56 +154,57 @@ var ge = {
|
|
|
154
154
|
"Enter",
|
|
155
155
|
" ",
|
|
156
156
|
"ArrowDown"
|
|
157
|
-
].includes(e.key) &&
|
|
157
|
+
].includes(e.key) && J(), ["Escape", "Tab"].includes(e.key) && (F.value ? Y(e.key !== "Tab") : W.value && e.key === "Escape" && q()), W.value && e.key === "Delete" && q());
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
e.key.length === 1 && e.preventDefault(),
|
|
159
|
+
function Le(e) {
|
|
160
|
+
e.key.length === 1 && e.preventDefault(), X(e);
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
163
|
-
await v(), g.loading ?
|
|
162
|
+
async function Re() {
|
|
163
|
+
await v(), g.loading ? Te.value?.focus() : Q(), k("show");
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
165
|
+
function ze() {
|
|
166
|
+
L && Z(), L = !0, k("hide");
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Z() {
|
|
169
169
|
Ce.value?.focus();
|
|
170
170
|
}
|
|
171
171
|
function Q() {
|
|
172
172
|
we.value?.$el.focus();
|
|
173
173
|
}
|
|
174
174
|
async function $() {
|
|
175
|
-
if (await v(), await v(), !g.multiple || !
|
|
176
|
-
|
|
175
|
+
if (await v(), await v(), !g.multiple || !Ee.value || V.value) {
|
|
176
|
+
I.value = 0;
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
let e =
|
|
180
|
-
if (g.badges) for (let i of
|
|
179
|
+
let e = Ee.value.offsetWidth, t = ke.value?.$el.scrollWidth ?? 30, n = t, r = 0;
|
|
180
|
+
if (g.badges) for (let i of De.value ?? []) {
|
|
181
181
|
let a = i.$el.scrollWidth + 4;
|
|
182
182
|
if (n + t + a <= e) n += a, r++;
|
|
183
183
|
else break;
|
|
184
184
|
}
|
|
185
|
-
else for (let i of
|
|
185
|
+
else for (let i of Oe.value ?? []) {
|
|
186
186
|
let a = i.scrollWidth + 4;
|
|
187
187
|
if (n + t + a <= e) n += a, r++;
|
|
188
188
|
else break;
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
I.value = (g.badges ? De.value?.length ?? 0 : Oe.value?.length ?? 0) - r;
|
|
191
191
|
}
|
|
192
192
|
return D(() => g.loading, (e) => {
|
|
193
|
-
!e &&
|
|
194
|
-
}), D(() => g.badges, $), D(
|
|
195
|
-
|
|
193
|
+
!e && F.value && v(Q);
|
|
194
|
+
}), D(() => g.badges, $), D(H, $, { deep: !0 }), D(() => g.clearable, $), D([
|
|
195
|
+
F,
|
|
196
196
|
() => g.readonly,
|
|
197
197
|
() => g.disabled
|
|
198
198
|
], ([e, t, n]) => {
|
|
199
|
-
e && (t || n) &&
|
|
199
|
+
e && (t || n) && Y(!1);
|
|
200
200
|
}, {
|
|
201
201
|
flush: "sync",
|
|
202
202
|
immediate: !0
|
|
203
|
-
}), D(
|
|
203
|
+
}), D(P, K), c({ focusList: Q }), (e, t) => (x(), p(l, null, [h(T(ne), {
|
|
204
204
|
id: T(j),
|
|
205
205
|
ref: "trigger",
|
|
206
206
|
label: g.label,
|
|
207
|
+
for: M.value,
|
|
207
208
|
"label-position": g.labelPosition,
|
|
208
209
|
required: g.required,
|
|
209
210
|
class: y([
|
|
@@ -219,18 +220,18 @@ var ge = {
|
|
|
219
220
|
"data-loading": g.loading,
|
|
220
221
|
size: g.size,
|
|
221
222
|
invalid: g.invalid,
|
|
222
|
-
onClick:
|
|
223
|
-
onKeydown:
|
|
224
|
-
},
|
|
223
|
+
onClick: Ie,
|
|
224
|
+
onKeydown: X
|
|
225
|
+
}, oe({
|
|
225
226
|
append: O(() => [
|
|
226
227
|
S(e.$slots, "append"),
|
|
227
|
-
|
|
228
|
+
W.value ? (x(), d(T(re), {
|
|
228
229
|
key: 0,
|
|
229
230
|
icons: g.icons,
|
|
230
231
|
texts: g.texts,
|
|
231
|
-
onClick:
|
|
232
|
-
}, null, 8, ["icons", "texts"])) :
|
|
233
|
-
g.readonly ?
|
|
232
|
+
onClick: q
|
|
233
|
+
}, null, 8, ["icons", "texts"])) : f("v-if", !0),
|
|
234
|
+
g.readonly ? f("v-if", !0) : (x(), d(T(r), {
|
|
234
235
|
key: 1,
|
|
235
236
|
class: "q-select__chevron",
|
|
236
237
|
"aria-label": g.texts.showOptions,
|
|
@@ -239,35 +240,35 @@ var ge = {
|
|
|
239
240
|
borderless: "",
|
|
240
241
|
tabindex: -1,
|
|
241
242
|
disabled: g.disabled,
|
|
242
|
-
onClick:
|
|
243
|
+
onClick: Ie
|
|
243
244
|
}, {
|
|
244
|
-
default: O(() => [
|
|
245
|
-
"model-value":
|
|
245
|
+
default: O(() => [h(T(a), {
|
|
246
|
+
"model-value": F.value,
|
|
246
247
|
icons: g.icons
|
|
247
248
|
}, null, 8, ["model-value", "icons"])]),
|
|
248
249
|
_: 1
|
|
249
250
|
}, 8, ["aria-label", "disabled"]))
|
|
250
251
|
]),
|
|
251
252
|
default: O(() => [S(e.$slots, "value", {
|
|
252
|
-
empty:
|
|
253
|
-
items:
|
|
253
|
+
empty: V.value,
|
|
254
|
+
items: H.value,
|
|
254
255
|
value: A.value
|
|
255
|
-
}, () => [
|
|
256
|
-
(x(!0),
|
|
256
|
+
}, () => [V.value ? (x(), p("span", ye, [!g.readonly && !g.disabled ? (x(), p(l, { key: 0 }, [m(C(g.texts.placeholder), 1)], 64)) : f("v-if", !0)])) : (x(), p(l, { key: 0 }, [g.badges || g.multiple ? (x(), p("span", ge, [g.multiple ? (x(), p(l, { key: 0 }, [
|
|
257
|
+
(x(!0), p(l, null, de(H.value, (e, t) => (x(), p(l, { key: `visible-${t}` }, [t < H.value.length - I.value ? (x(), p(l, { key: 0 }, [g.badges ? (x(), d(T(o), {
|
|
257
258
|
key: 0,
|
|
258
259
|
pill: "",
|
|
259
260
|
size: "small",
|
|
260
261
|
focusable: !1,
|
|
261
262
|
color: g.readonly || g.disabled ? "neutral" : void 0,
|
|
262
263
|
disabled: g.readonly || g.disabled,
|
|
263
|
-
removable: !g.readonly && !g.disabled && (!g.required ||
|
|
264
|
+
removable: !g.readonly && !g.disabled && (!g.required || H.value.length > 1),
|
|
264
265
|
texts: g.texts,
|
|
265
|
-
"onClick:remove": () =>
|
|
266
|
+
"onClick:remove": () => Ne(t)
|
|
266
267
|
}, {
|
|
267
|
-
default: O(() => [e?.icon ? (x(),
|
|
268
|
+
default: O(() => [e?.icon ? (x(), d(T(i), _({
|
|
268
269
|
key: 0,
|
|
269
270
|
ref_for: !0
|
|
270
|
-
}, e.icon), null, 16)) :
|
|
271
|
+
}, e.icon), null, 16)) : f("v-if", !0), m(" " + C(G(e)), 1)]),
|
|
271
272
|
_: 2
|
|
272
273
|
}, 1032, [
|
|
273
274
|
"color",
|
|
@@ -275,26 +276,26 @@ var ge = {
|
|
|
275
276
|
"removable",
|
|
276
277
|
"texts",
|
|
277
278
|
"onClick:remove"
|
|
278
|
-
])) : g.multiple ? (x(),
|
|
279
|
-
|
|
279
|
+
])) : g.multiple ? (x(), p("span", _e, C(G(e) + Pe(t)), 1)) : f("v-if", !0)], 64)) : f("v-if", !0)], 64))), 128)),
|
|
280
|
+
I.value > 0 ? (x(), p(l, { key: 0 }, [h(T(o), {
|
|
280
281
|
ref: "hiddenItemsCountBadge",
|
|
281
282
|
pill: "",
|
|
282
283
|
size: "small",
|
|
283
284
|
focusable: !1,
|
|
284
285
|
class: y(["q-select__badge-count", { "q-select__badge-count--clickable": g.readonly || g.disabled }])
|
|
285
286
|
}, {
|
|
286
|
-
default: O(() => [
|
|
287
|
+
default: O(() => [m(" +" + C(I.value), 1)]),
|
|
287
288
|
_: 1
|
|
288
|
-
}, 8, ["class"]), g.readonly || g.disabled ? (x(),
|
|
289
|
+
}, 8, ["class"]), g.readonly || g.disabled ? (x(), d(T(ie), {
|
|
289
290
|
key: 0,
|
|
290
|
-
anchor:
|
|
291
|
-
text:
|
|
291
|
+
anchor: ke.value?.$el,
|
|
292
|
+
text: U.value,
|
|
292
293
|
placement: "bottom-start"
|
|
293
294
|
}, {
|
|
294
|
-
default: O(() => [
|
|
295
|
+
default: O(() => [m(C(U.value), 1)]),
|
|
295
296
|
_: 1
|
|
296
|
-
}, 8, ["anchor", "text"])) :
|
|
297
|
-
(x(!0),
|
|
297
|
+
}, 8, ["anchor", "text"])) : f("v-if", !0)], 64)) : f("v-if", !0),
|
|
298
|
+
(x(!0), p(l, null, de(H.value, (e, t) => (x(), p(l, { key: `measure-${t}` }, [g.badges ? (x(), d(T(o), {
|
|
298
299
|
key: 0,
|
|
299
300
|
ref_for: !0,
|
|
300
301
|
ref: "allBadges",
|
|
@@ -304,20 +305,20 @@ var ge = {
|
|
|
304
305
|
color: g.readonly || g.disabled ? "neutral" : void 0,
|
|
305
306
|
disabled: "",
|
|
306
307
|
class: "q-select__badge-hidden",
|
|
307
|
-
removable: !g.readonly && !g.disabled && (!g.required ||
|
|
308
|
+
removable: !g.readonly && !g.disabled && (!g.required || H.value.length > 1)
|
|
308
309
|
}, {
|
|
309
|
-
default: O(() => [e?.icon ? (x(),
|
|
310
|
+
default: O(() => [e?.icon ? (x(), d(T(i), _({
|
|
310
311
|
key: 0,
|
|
311
312
|
ref_for: !0
|
|
312
|
-
}, e.icon), null, 16)) :
|
|
313
|
+
}, e.icon), null, 16)) : f("v-if", !0), m(" " + C(G(e)), 1)]),
|
|
313
314
|
_: 2
|
|
314
|
-
}, 1032, ["color", "removable"])) : g.multiple ? (x(),
|
|
315
|
+
}, 1032, ["color", "removable"])) : g.multiple ? (x(), p("span", {
|
|
315
316
|
key: 1,
|
|
316
317
|
ref_for: !0,
|
|
317
318
|
ref: "allPlainTexts",
|
|
318
319
|
class: "q-select__multi-value--hidden"
|
|
319
|
-
}, C(
|
|
320
|
-
], 64)) : (x(),
|
|
320
|
+
}, C(G(e) + Pe(t)), 513)) : f("v-if", !0)], 64))), 128))
|
|
321
|
+
], 64)) : (x(), d(T(o), {
|
|
321
322
|
key: 1,
|
|
322
323
|
pill: "",
|
|
323
324
|
size: "small",
|
|
@@ -325,35 +326,35 @@ var ge = {
|
|
|
325
326
|
disabled: g.readonly || g.disabled,
|
|
326
327
|
removable: !g.readonly && !g.disabled && !g.required,
|
|
327
328
|
texts: g.texts,
|
|
328
|
-
"onClick:remove":
|
|
329
|
+
"onClick:remove": q
|
|
329
330
|
}, {
|
|
330
|
-
default: O(() => [
|
|
331
|
+
default: O(() => [H.value[0]?.icon ? (x(), d(T(i), b(_({ key: 0 }, H.value[0].icon)), null, 16)) : f("v-if", !0), m(" " + C(G(H.value[0])), 1)]),
|
|
331
332
|
_: 1
|
|
332
333
|
}, 8, [
|
|
333
334
|
"disabled",
|
|
334
335
|
"removable",
|
|
335
336
|
"texts"
|
|
336
|
-
]))], 512)) : (x(),
|
|
337
|
-
id:
|
|
337
|
+
]))], 512)) : (x(), p("span", ve, C(U.value), 1))], 64))]), me(ae("input", _({
|
|
338
|
+
id: M.value,
|
|
338
339
|
ref: "input"
|
|
339
340
|
}, e.$attrs, {
|
|
340
|
-
"onUpdate:modelValue":
|
|
341
|
+
"onUpdate:modelValue": t[0] ||= (e) => U.value = e,
|
|
341
342
|
class: "q-select__input",
|
|
342
343
|
inputmode: "none",
|
|
343
344
|
type: "text",
|
|
344
345
|
autocomplete: "off",
|
|
345
346
|
tabindex: g.disabled ? -1 : 0,
|
|
346
347
|
role: "combobox",
|
|
347
|
-
"aria-expanded":
|
|
348
|
-
"aria-controls":
|
|
348
|
+
"aria-expanded": F.value,
|
|
349
|
+
"aria-controls": F.value ? N.value : void 0,
|
|
349
350
|
"aria-haspopup": "listbox",
|
|
350
|
-
"aria-keyshortcuts":
|
|
351
|
-
onKeydown:
|
|
352
|
-
}), null, 16, be), [[pe,
|
|
351
|
+
"aria-keyshortcuts": W.value ? "Delete" : void 0,
|
|
352
|
+
onKeydown: Le
|
|
353
|
+
}), null, 16, be), [[pe, U.value]])]),
|
|
353
354
|
_: 2
|
|
354
|
-
}, [
|
|
355
|
+
}, [H.value.length === 1 && H.value[0].icon && !g.badges || e.$slots.prepend ? {
|
|
355
356
|
name: "prepend",
|
|
356
|
-
fn: O(() => [S(e.$slots, "prepend"),
|
|
357
|
+
fn: O(() => [S(e.$slots, "prepend"), H.value.length === 1 && H.value[0].icon && !g.badges ? (x(), d(T(i), b(_({ key: 0 }, H.value[0].icon)), null, 16)) : f("v-if", !0)]),
|
|
357
358
|
key: "0"
|
|
358
359
|
} : void 0, e.$slots.extras ? {
|
|
359
360
|
name: "extras",
|
|
@@ -362,6 +363,7 @@ var ge = {
|
|
|
362
363
|
} : void 0]), 1032, [
|
|
363
364
|
"id",
|
|
364
365
|
"label",
|
|
366
|
+
"for",
|
|
365
367
|
"label-position",
|
|
366
368
|
"required",
|
|
367
369
|
"class",
|
|
@@ -370,35 +372,37 @@ var ge = {
|
|
|
370
372
|
"data-loading",
|
|
371
373
|
"size",
|
|
372
374
|
"invalid"
|
|
373
|
-
]),
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue":
|
|
375
|
+
]), h(T(te), {
|
|
376
|
+
modelValue: F.value,
|
|
377
|
+
"onUpdate:modelValue": t[1] ||= (e) => F.value = e,
|
|
376
378
|
spy: "",
|
|
379
|
+
"non-modal": "",
|
|
377
380
|
trigger: "manual",
|
|
378
381
|
placement: "bottom-start",
|
|
379
382
|
width: "anchor",
|
|
380
383
|
"scroll-lock": "",
|
|
381
384
|
inline: g.inline,
|
|
382
|
-
anchor: g.overlayAnchor ??
|
|
385
|
+
anchor: g.overlayAnchor ?? R.value?.fieldRef,
|
|
383
386
|
offset: 2,
|
|
384
|
-
onEnter:
|
|
385
|
-
onLeave:
|
|
387
|
+
onEnter: Re,
|
|
388
|
+
onLeave: ze
|
|
386
389
|
}, {
|
|
387
|
-
default: O(() => [
|
|
390
|
+
default: O(() => [ae("div", {
|
|
388
391
|
ref: "content",
|
|
389
392
|
"data-testid": "combobox-dropdown",
|
|
390
393
|
"data-key": T(j),
|
|
391
394
|
class: "q-select__body",
|
|
392
395
|
tabindex: "-1",
|
|
393
|
-
onFocusout:
|
|
394
|
-
onKeydown: he(
|
|
396
|
+
onFocusout: Fe,
|
|
397
|
+
onKeydown: he(X, ["stop"])
|
|
395
398
|
}, [
|
|
396
399
|
S(e.$slots, "body.prepend"),
|
|
397
|
-
g.loading ? (x(),
|
|
400
|
+
g.loading ? (x(), p("div", Se, [h(T(n), { size: 24 })])) : (x(), d(T(ee), {
|
|
398
401
|
key: 1,
|
|
399
|
-
id:
|
|
402
|
+
id: N.value,
|
|
400
403
|
ref: "list",
|
|
401
404
|
class: "q-select__items",
|
|
405
|
+
label: g.label,
|
|
402
406
|
selectable: "",
|
|
403
407
|
required: g.required,
|
|
404
408
|
multiple: g.multiple,
|
|
@@ -408,12 +412,13 @@ var ge = {
|
|
|
408
412
|
"item-label": g.itemLabel,
|
|
409
413
|
"item-value": g.itemValue,
|
|
410
414
|
"select-on-tab": g.selectOnTab,
|
|
411
|
-
"onUpdate:modelValue":
|
|
415
|
+
"onUpdate:modelValue": K
|
|
412
416
|
}, {
|
|
413
417
|
item: O(({ item: t }) => [S(e.$slots, "item", { item: t })]),
|
|
414
418
|
_: 3
|
|
415
419
|
}, 8, [
|
|
416
420
|
"id",
|
|
421
|
+
"label",
|
|
417
422
|
"required",
|
|
418
423
|
"multiple",
|
|
419
424
|
"model-value",
|
|
@@ -279,6 +279,7 @@ declare const QSelect: {
|
|
|
279
279
|
$props: {
|
|
280
280
|
readonly id?: string | undefined;
|
|
281
281
|
readonly class?: string | unknown[] | undefined;
|
|
282
|
+
readonly label?: string | undefined;
|
|
282
283
|
readonly modelValue?: any;
|
|
283
284
|
readonly highlighted?: any;
|
|
284
285
|
readonly items?: import('..').QListItemData[] | undefined;
|
|
@@ -298,7 +299,7 @@ declare const QSelect: {
|
|
|
298
299
|
$refs: {
|
|
299
300
|
[x: string]: unknown;
|
|
300
301
|
} & {
|
|
301
|
-
listRef:
|
|
302
|
+
listRef: HTMLDivElement;
|
|
302
303
|
listItemsRef: (({
|
|
303
304
|
$: import('vue').ComponentInternalInstance;
|
|
304
305
|
$data: {};
|
|
@@ -384,7 +385,7 @@ declare const QSelect: {
|
|
|
384
385
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
385
386
|
$host: Element | null;
|
|
386
387
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
387
|
-
$el:
|
|
388
|
+
$el: HTMLDivElement;
|
|
388
389
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QListProps> & Readonly<{
|
|
389
390
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
390
391
|
onClick?: ((key: any) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOq70B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOq70B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAP/g1B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,cAAc,SAAS,CAAA"}
|