@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,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { rgbToHex as t } from "../../utils/color/conversion.js";
|
|
3
3
|
import { lighten as n } from "../../utils/color/manipulate.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import { parseColor as r } from "../../utils/color/parse.js";
|
|
5
|
+
import { ensureContrast as i } from "../../utils/color/contrast.js";
|
|
6
|
+
import { useColor as a } from "../../composables/useColor/index.js";
|
|
7
|
+
import { QButton as o } from "../QButton/index.js";
|
|
8
|
+
import { QCard as s } from "../QCard/index.js";
|
|
9
|
+
import { QIcon as c } from "../QIcon/index.js";
|
|
10
|
+
import { QCol as l, QContainer as u, QRow as d } from "../QGrid/index.js";
|
|
11
|
+
import { ToastSymbol as f } from "../../composables/useToast/_internal.js";
|
|
12
|
+
import { DEFAULT_ICONS as p, DEFAULT_TEXTS as m } from "./constants.js";
|
|
13
|
+
import { computed as h, createBlock as g, createCommentVNode as _, createElementVNode as v, createSlots as y, createVNode as b, defineComponent as x, guardReactiveProps as S, inject as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, renderSlot as A, toDisplayString as j, toRef as M, unref as N, watch as P, withCtx as F } from "vue";
|
|
13
14
|
//#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
15
|
+
var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
|
|
15
16
|
__name: "QToast",
|
|
16
17
|
props: {
|
|
17
18
|
id: {},
|
|
@@ -23,86 +24,97 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
|
|
|
23
24
|
elevation: { default: "medium" },
|
|
24
25
|
variant: { default: "tonal" },
|
|
25
26
|
timeout: { default: 5e3 },
|
|
26
|
-
icons: { default: () =>
|
|
27
|
+
icons: { default: () => p },
|
|
28
|
+
texts: { default: () => m },
|
|
27
29
|
entryKey: { default: void 0 }
|
|
28
30
|
},
|
|
29
31
|
emits: ["dismiss"],
|
|
30
|
-
setup(
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
e === t || !
|
|
32
|
+
setup(p, { emit: m }) {
|
|
33
|
+
let x = p, L = m, R = e(M(x, "id")), z = x.entryKey ? C(f, null) : null;
|
|
34
|
+
x.entryKey && (z?.registerToastEntry(x.entryKey, R.value), P(R, (e, t) => {
|
|
35
|
+
e === t || !x.entryKey || z?.updateToastEntryId(x.entryKey, e);
|
|
34
36
|
}));
|
|
35
|
-
let { style:
|
|
36
|
-
let e =
|
|
37
|
+
let { style: B } = a(M(x, "color")), V = h(() => {
|
|
38
|
+
let e = x.block ? "q-toast--block" : void 0, t = x.title ? "q-toast--vertical" : void 0;
|
|
37
39
|
return [
|
|
38
40
|
"q-toast",
|
|
39
|
-
`q-toast--${
|
|
41
|
+
`q-toast--${x.variant}`,
|
|
40
42
|
e,
|
|
41
43
|
t,
|
|
42
|
-
|
|
44
|
+
x.class
|
|
43
45
|
];
|
|
44
|
-
}),
|
|
45
|
-
let
|
|
46
|
-
if (
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"--q-toast-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
}), H = h(() => {
|
|
47
|
+
let e = B.value?.mainColor;
|
|
48
|
+
if (e) return t(n(r(e), 88));
|
|
49
|
+
}), U = h(() => {
|
|
50
|
+
let e = B.value?.mainColor;
|
|
51
|
+
if (!(!e || !H.value)) return i(e, H.value);
|
|
52
|
+
}), W = h(() => B.value ? {
|
|
53
|
+
"--q-toast-main-color": B.value.mainColor,
|
|
54
|
+
"--q-toast-on-main-color": B.value.onMainColor,
|
|
55
|
+
"--q-toast-hover-color": B.value.hoverColor,
|
|
56
|
+
"--q-toast-text-color": B.value.textColor,
|
|
57
|
+
"--q-toast-tonal-text-color": U.value,
|
|
58
|
+
"--q-toast-tonal-color": H.value
|
|
59
|
+
} : { "--q-toast-tonal-color": H.value }), G = h(() => x.variant === "bold" ? "bold" : "ghost"), K = h(() => x.variant === "tonal" && B.value?.hoverColor ? B.value.hoverColor : x.color), q, J, Y;
|
|
60
|
+
function X() {
|
|
61
|
+
q !== void 0 && (window.clearTimeout(q), q = void 0), J = void 0, Y = void 0, L("dismiss");
|
|
55
62
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
63
|
+
function Z(e) {
|
|
64
|
+
Y = e, J = Date.now(), q = window.setTimeout(X, e);
|
|
58
65
|
}
|
|
59
|
-
return
|
|
60
|
-
if (!
|
|
61
|
-
|
|
66
|
+
return D(() => {
|
|
67
|
+
if (!x.entryKey) {
|
|
68
|
+
x.timeout > 0 && Z(x.timeout);
|
|
62
69
|
return;
|
|
63
70
|
}
|
|
64
|
-
let e =
|
|
71
|
+
let e = z?.consumeRemainingTimeout(x.entryKey);
|
|
65
72
|
if (e !== void 0) {
|
|
66
|
-
e > 0 ?
|
|
73
|
+
e > 0 ? Z(e) : X();
|
|
67
74
|
return;
|
|
68
75
|
}
|
|
69
|
-
|
|
70
|
-
}),
|
|
71
|
-
if (
|
|
72
|
-
let e = Date.now() -
|
|
73
|
-
|
|
76
|
+
x.timeout > 0 && Z(x.timeout);
|
|
77
|
+
}), O(() => {
|
|
78
|
+
if (q !== void 0 && (window.clearTimeout(q), x.entryKey && z && J !== void 0 && Y !== void 0)) {
|
|
79
|
+
let e = Date.now() - J, t = Math.max(0, Y - e);
|
|
80
|
+
z.setRemainingTimeout(x.entryKey, t);
|
|
74
81
|
}
|
|
75
|
-
}), (e, t) => (
|
|
76
|
-
id:
|
|
77
|
-
elevation:
|
|
78
|
-
width:
|
|
79
|
-
class:
|
|
80
|
-
style:
|
|
81
|
-
},
|
|
82
|
-
default:
|
|
82
|
+
}), (e, t) => (k(), g(N(s), {
|
|
83
|
+
id: N(R),
|
|
84
|
+
elevation: x.elevation,
|
|
85
|
+
width: x.block ? "block" : void 0,
|
|
86
|
+
class: w(V.value),
|
|
87
|
+
style: E(W.value)
|
|
88
|
+
}, y({
|
|
89
|
+
default: F(() => [b(N(u), {
|
|
83
90
|
fluid: "",
|
|
84
91
|
class: "q-toast__body"
|
|
85
92
|
}, {
|
|
86
|
-
default:
|
|
93
|
+
default: F(() => [b(N(d), {
|
|
87
94
|
align: "center",
|
|
88
95
|
justify: "between"
|
|
89
96
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
default:
|
|
97
|
+
default: F(() => [b(N(l), null, {
|
|
98
|
+
default: F(() => [A(e.$slots, "default", {}, () => [v("span", null, j(x.text), 1)])]),
|
|
92
99
|
_: 3
|
|
93
|
-
}),
|
|
100
|
+
}), x.title ? _("v-if", !0) : (k(), g(N(l), {
|
|
94
101
|
key: 0,
|
|
95
102
|
cols: "auto"
|
|
96
103
|
}, {
|
|
97
|
-
default:
|
|
104
|
+
default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
|
|
98
105
|
class: "q-toast__dismiss",
|
|
99
|
-
variant:
|
|
100
|
-
color:
|
|
101
|
-
|
|
106
|
+
variant: G.value,
|
|
107
|
+
color: K.value,
|
|
108
|
+
"aria-label": x.texts.dismiss,
|
|
109
|
+
onClick: X
|
|
102
110
|
}, {
|
|
103
|
-
default:
|
|
111
|
+
default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
|
|
104
112
|
_: 1
|
|
105
|
-
}, 8, [
|
|
113
|
+
}, 8, [
|
|
114
|
+
"variant",
|
|
115
|
+
"color",
|
|
116
|
+
"aria-label"
|
|
117
|
+
])])]),
|
|
106
118
|
_: 3
|
|
107
119
|
}))]),
|
|
108
120
|
_: 3
|
|
@@ -110,30 +122,35 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
|
|
|
110
122
|
_: 3
|
|
111
123
|
})]),
|
|
112
124
|
_: 2
|
|
113
|
-
}, [
|
|
125
|
+
}, [x.title ? {
|
|
114
126
|
name: "header",
|
|
115
|
-
fn:
|
|
116
|
-
default:
|
|
127
|
+
fn: F(() => [b(N(u), { fluid: "" }, {
|
|
128
|
+
default: F(() => [b(N(d), {
|
|
117
129
|
align: "center",
|
|
118
130
|
justify: "between"
|
|
119
131
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
default:
|
|
122
|
-
e.$slots["title.prepend"] ?
|
|
123
|
-
|
|
124
|
-
e.$slots["title.append"] ?
|
|
132
|
+
default: F(() => [b(N(l), null, {
|
|
133
|
+
default: F(() => [v("div", I, [
|
|
134
|
+
e.$slots["title.prepend"] ? A(e.$slots, "title.prepend", { key: 0 }) : _("v-if", !0),
|
|
135
|
+
v("h4", null, j(x.title), 1),
|
|
136
|
+
e.$slots["title.append"] ? A(e.$slots, "title.append", { key: 1 }) : _("v-if", !0)
|
|
125
137
|
])]),
|
|
126
138
|
_: 3
|
|
127
|
-
}),
|
|
128
|
-
default:
|
|
139
|
+
}), b(N(l), { cols: "auto" }, {
|
|
140
|
+
default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
|
|
129
141
|
class: "q-toast__dismiss",
|
|
130
|
-
variant:
|
|
131
|
-
color:
|
|
132
|
-
|
|
142
|
+
variant: G.value,
|
|
143
|
+
color: K.value,
|
|
144
|
+
"aria-label": x.texts.dismiss,
|
|
145
|
+
onClick: X
|
|
133
146
|
}, {
|
|
134
|
-
default:
|
|
147
|
+
default: F(() => [b(N(c), T(S(x.icons.close)), null, 16)]),
|
|
135
148
|
_: 1
|
|
136
|
-
}, 8, [
|
|
149
|
+
}, 8, [
|
|
150
|
+
"variant",
|
|
151
|
+
"color",
|
|
152
|
+
"aria-label"
|
|
153
|
+
])])]),
|
|
137
154
|
_: 3
|
|
138
155
|
})]),
|
|
139
156
|
_: 3
|
|
@@ -151,4 +168,4 @@ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
|
|
|
151
168
|
}
|
|
152
169
|
});
|
|
153
170
|
//#endregion
|
|
154
|
-
export {
|
|
171
|
+
export { L as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;
|
|
1
|
+
{"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;AAoFC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AA+HvC,wBAQG"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { injectToastInstance as t, removeToastByEntryKey as n } from "../../composables/useToast/_internal.js";
|
|
3
|
+
import { QToast as r } from "./index.js";
|
|
4
|
+
import { Fragment as i, TransitionGroup as a, computed as o, createBlock as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, onUnmounted as p, openBlock as m, renderList as h, toRef as g, unref as _, watch as v, withCtx as y } from "vue";
|
|
4
5
|
//#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var b = /*@__PURE__*/ u({
|
|
6
7
|
__name: "QToaster",
|
|
7
8
|
props: {
|
|
8
9
|
id: {},
|
|
@@ -11,27 +12,27 @@ var v = /*@__PURE__*/ l({
|
|
|
11
12
|
maxToasts: {},
|
|
12
13
|
reverseOrder: { type: Boolean }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
let e = [...
|
|
19
|
-
return
|
|
15
|
+
setup(u) {
|
|
16
|
+
let b = u, x = e(g(b, "id")), S = t(), { toasts: C } = S;
|
|
17
|
+
S.registerToaster(), p(() => S.unregisterToaster()), v(() => b.maxToasts, (e) => S.setMaxToasts(e), { immediate: !0 });
|
|
18
|
+
let w = o(() => {
|
|
19
|
+
let e = [...C.value];
|
|
20
|
+
return b.reverseOrder ? e.reverse() : e;
|
|
20
21
|
});
|
|
21
|
-
function
|
|
22
|
-
|
|
22
|
+
function T(e) {
|
|
23
|
+
n(S, e.entryKey);
|
|
23
24
|
}
|
|
24
|
-
return (e, t) => (
|
|
25
|
-
id:
|
|
25
|
+
return (e, t) => (m(), s(a, {
|
|
26
|
+
id: _(x),
|
|
26
27
|
name: "q-toast-stack",
|
|
27
28
|
tag: "div",
|
|
28
|
-
class:
|
|
29
|
-
"data-placement":
|
|
29
|
+
class: f(["q-toaster", b.class]),
|
|
30
|
+
"data-placement": b.placement
|
|
30
31
|
}, {
|
|
31
|
-
default:
|
|
32
|
+
default: y(() => [(m(!0), c(i, null, h(w.value, (e) => (m(), c("div", {
|
|
32
33
|
key: e.entryKey,
|
|
33
34
|
class: "q-toast__container"
|
|
34
|
-
}, [
|
|
35
|
+
}, [l(_(r), d({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => T(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
|
|
35
36
|
_: 1
|
|
36
37
|
}, 8, [
|
|
37
38
|
"id",
|
|
@@ -41,4 +42,4 @@ var v = /*@__PURE__*/ l({
|
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
//#endregion
|
|
44
|
-
export {
|
|
45
|
+
export { b as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIY,CAAA"}
|
|
@@ -8,6 +8,7 @@ declare const QToast: {
|
|
|
8
8
|
variant?: import('./types').QToastVariant;
|
|
9
9
|
timeout?: number;
|
|
10
10
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
11
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
11
12
|
} & {
|
|
12
13
|
entryKey?: string;
|
|
13
14
|
}> & Readonly<{
|
|
@@ -19,6 +20,7 @@ declare const QToast: {
|
|
|
19
20
|
color: string;
|
|
20
21
|
elevation: import('..').QCardElevation;
|
|
21
22
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
23
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
22
24
|
entryKey: string;
|
|
23
25
|
timeout: number;
|
|
24
26
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -37,6 +39,7 @@ declare const QToast: {
|
|
|
37
39
|
variant?: import('./types').QToastVariant;
|
|
38
40
|
timeout?: number;
|
|
39
41
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
42
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
40
43
|
} & {
|
|
41
44
|
entryKey?: string;
|
|
42
45
|
}> & Readonly<{
|
|
@@ -46,6 +49,7 @@ declare const QToast: {
|
|
|
46
49
|
color: string;
|
|
47
50
|
elevation: import('..').QCardElevation;
|
|
48
51
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
52
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
49
53
|
entryKey: string;
|
|
50
54
|
timeout: number;
|
|
51
55
|
}>;
|
|
@@ -61,6 +65,7 @@ declare const QToast: {
|
|
|
61
65
|
variant?: import('./types').QToastVariant;
|
|
62
66
|
timeout?: number;
|
|
63
67
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
68
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
64
69
|
} & {
|
|
65
70
|
entryKey?: string;
|
|
66
71
|
}> & Readonly<{
|
|
@@ -72,6 +77,7 @@ declare const QToast: {
|
|
|
72
77
|
color: string;
|
|
73
78
|
elevation: import('..').QCardElevation;
|
|
74
79
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
80
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
75
81
|
entryKey: string;
|
|
76
82
|
timeout: number;
|
|
77
83
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
2
|
import { QCardElevation } from '../QCard/types';
|
|
3
|
-
import { DEFAULT_ICONS } from './constants';
|
|
3
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
4
4
|
export type QToastVariant = 'bold' | 'tonal' | 'outlined';
|
|
5
5
|
/**
|
|
6
6
|
* Hosts programmatic toasts created with `useToast`.
|
|
@@ -87,5 +87,11 @@ export type QToastProps = QBaseComponentProps & {
|
|
|
87
87
|
* @category Configuration
|
|
88
88
|
*/
|
|
89
89
|
icons?: typeof DEFAULT_ICONS;
|
|
90
|
+
/**
|
|
91
|
+
* Custom text configurations.
|
|
92
|
+
*
|
|
93
|
+
* @category Configuration
|
|
94
|
+
*/
|
|
95
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
90
96
|
};
|
|
91
97
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,SAAS,CAAC,EACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,eAAe,CAAA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AAsBA;AA6DC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKrC,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QButton as t } from "../QButton/index.js";
|
|
3
|
+
import { computed as n, createBlock as r, defineComponent as i, mergeModels as a, normalizeClass as o, openBlock as s, renderSlot as c, toRef as l, unref as u, useModel as d, withCtx as f } from "vue";
|
|
3
4
|
//#region src/components/QToggle/QToggle.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var p = /*@__PURE__*/ i({
|
|
5
6
|
__name: "QToggle",
|
|
6
|
-
props: /*@__PURE__*/
|
|
7
|
+
props: /*@__PURE__*/ a({
|
|
7
8
|
id: {},
|
|
8
9
|
class: {},
|
|
9
10
|
label: {},
|
|
@@ -24,19 +25,55 @@ var d = /*@__PURE__*/ r({
|
|
|
24
25
|
modelModifiers: {}
|
|
25
26
|
}),
|
|
26
27
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
setup(i) {
|
|
29
|
+
let a = i, p = d(i, "modelValue"), m = e(l(a, "id")), h = n(() => [
|
|
30
|
+
"q-toggle",
|
|
31
|
+
{ "q-toggle--active": p.value },
|
|
32
|
+
a.class
|
|
33
|
+
]);
|
|
34
|
+
function g() {
|
|
35
|
+
p.value = !p.value;
|
|
31
36
|
}
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
return (e, n) => (s(), r(u(t), {
|
|
38
|
+
id: u(m),
|
|
39
|
+
class: o(h.value),
|
|
40
|
+
label: a.label,
|
|
41
|
+
variant: a.variant,
|
|
42
|
+
color: a.color,
|
|
43
|
+
borderless: a.borderless,
|
|
44
|
+
elevated: a.elevated,
|
|
45
|
+
block: a.block,
|
|
46
|
+
size: a.size,
|
|
47
|
+
"icon-pos": a.iconPos,
|
|
48
|
+
pill: a.pill,
|
|
49
|
+
effect: a.effect,
|
|
50
|
+
disabled: a.disabled,
|
|
51
|
+
loading: a.loading,
|
|
52
|
+
tabindex: a.tabindex,
|
|
53
|
+
"aria-pressed": p.value,
|
|
54
|
+
onClick: g
|
|
55
|
+
}, {
|
|
56
|
+
default: f(() => [c(e.$slots, "default")]),
|
|
37
57
|
_: 3
|
|
38
|
-
},
|
|
58
|
+
}, 8, [
|
|
59
|
+
"id",
|
|
60
|
+
"class",
|
|
61
|
+
"label",
|
|
62
|
+
"variant",
|
|
63
|
+
"color",
|
|
64
|
+
"borderless",
|
|
65
|
+
"elevated",
|
|
66
|
+
"block",
|
|
67
|
+
"size",
|
|
68
|
+
"icon-pos",
|
|
69
|
+
"pill",
|
|
70
|
+
"effect",
|
|
71
|
+
"disabled",
|
|
72
|
+
"loading",
|
|
73
|
+
"tabindex",
|
|
74
|
+
"aria-pressed"
|
|
75
|
+
]));
|
|
39
76
|
}
|
|
40
77
|
});
|
|
41
78
|
//#endregion
|
|
42
|
-
export {
|
|
79
|
+
export { p as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;
|
|
1
|
+
{"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AA4DC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA2BtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
2
|
import { useGroup as t } from "../../composables/useGroup/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
|
+
import { QButtonGroup as r } from "../QButtonGroup/index.js";
|
|
5
|
+
import { createBlock as i, defineComponent as a, mergeModels as o, normalizeClass as s, openBlock as c, renderSlot as l, toRef as u, unref as d, useModel as f, watch as p, withCtx as m } from "vue";
|
|
5
6
|
//#region src/components/QToggleGroup/QToggleGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var h = /*@__PURE__*/ a({
|
|
7
8
|
__name: "QToggleGroup",
|
|
8
|
-
props: /*@__PURE__*/
|
|
9
|
+
props: /*@__PURE__*/ o({
|
|
9
10
|
id: {},
|
|
10
11
|
class: {},
|
|
11
12
|
block: { type: Boolean },
|
|
@@ -26,24 +27,24 @@ var m = /*@__PURE__*/ i({
|
|
|
26
27
|
modelModifiers: {}
|
|
27
28
|
}),
|
|
28
29
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
let
|
|
31
|
-
active:
|
|
32
|
-
required:
|
|
33
|
-
multiple:
|
|
30
|
+
setup(a) {
|
|
31
|
+
let o = a, h = f(a, "modelValue"), g = n(u(o, "id")), { active: _ } = t({
|
|
32
|
+
active: h,
|
|
33
|
+
required: u(o, "required"),
|
|
34
|
+
multiple: u(o, "multiple")
|
|
34
35
|
});
|
|
35
|
-
return
|
|
36
|
-
|
|
36
|
+
return p(_, (e) => {
|
|
37
|
+
h.value = e;
|
|
37
38
|
}), e({ QToggleGroupItem: {
|
|
38
|
-
disabled:
|
|
39
|
-
borderless:
|
|
40
|
-
} }), (e, t) => (
|
|
41
|
-
id:
|
|
42
|
-
class: o
|
|
43
|
-
block:
|
|
44
|
-
elevated:
|
|
39
|
+
disabled: u(o, "disabled"),
|
|
40
|
+
borderless: u(o, "borderless")
|
|
41
|
+
} }), (e, t) => (c(), i(d(r), {
|
|
42
|
+
id: d(g),
|
|
43
|
+
class: s(o.class),
|
|
44
|
+
block: o.block,
|
|
45
|
+
elevated: o.elevated
|
|
45
46
|
}, {
|
|
46
|
-
default:
|
|
47
|
+
default: m(() => [l(e.$slots, "default")]),
|
|
47
48
|
_: 3
|
|
48
49
|
}, 8, [
|
|
49
50
|
"id",
|
|
@@ -54,4 +55,4 @@ var m = /*@__PURE__*/ i({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
//#endregion
|
|
57
|
-
export {
|
|
58
|
+
export { h as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QIcon as t } from "../QIcon/index.js";
|
|
3
3
|
import { getElement as n } from "../../utils/getElement.js";
|
|
4
4
|
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
5
|
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, onUnmounted as g, openBlock as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, useModel as S, watch as C, withCtx as w } from "vue";
|
|
@@ -33,7 +33,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
|
|
|
33
33
|
}),
|
|
34
34
|
emits: ["update:modelValue"],
|
|
35
35
|
setup(d) {
|
|
36
|
-
let f = d, D = S(d, "modelValue"), O =
|
|
36
|
+
let f = d, D = S(d, "modelValue"), O = e(b(f, "id"));
|
|
37
37
|
function k() {
|
|
38
38
|
return f.anchor ? n(f.anchor) : void 0;
|
|
39
39
|
}
|
|
@@ -50,7 +50,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
|
|
|
50
50
|
function N(e, t) {
|
|
51
51
|
t && j(), e && D && A();
|
|
52
52
|
}
|
|
53
|
-
return C(() => f.anchor, N), (
|
|
53
|
+
return C(() => f.anchor, N), (e, n) => (_(), s(i, null, [v(e.$slots, "anchor", { props: { "aria-describedby": x(O) } }), u(x(r), {
|
|
54
54
|
id: x(O),
|
|
55
55
|
modelValue: D.value,
|
|
56
56
|
"onUpdate:modelValue": n[0] ||= (e) => D.value = e,
|
|
@@ -69,7 +69,7 @@ var T = { class: "q-tooltip__content" }, E = ["innerHTML"], D = /*@__PURE__*/ d(
|
|
|
69
69
|
onEnter: A,
|
|
70
70
|
onLeave: j
|
|
71
71
|
}, {
|
|
72
|
-
default: w(() => [c("div", T, [v(
|
|
72
|
+
default: w(() => [c("div", T, [v(e.$slots, "default", {}, () => [f.icon ? (_(), a(x(t), h(p({ key: 0 }, f.icon)), null, 16)) : o("v-if", !0), f.html ? (_(), s("span", {
|
|
73
73
|
key: 1,
|
|
74
74
|
innerHTML: f.text
|
|
75
75
|
}, null, 8, E)) : (_(), s(i, { key: 2 }, [l(y(f.text), 1)], 64))])])]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QChevron.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/QChevron.vue"],"names":[],"mappings":"AAMA;
|
|
1
|
+
{"version":3,"file":"QChevron.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/QChevron.vue"],"names":[],"mappings":"AAMA;AA0CC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAKtC,KAAK,WAAW,GAAG,aAAa,CAAC;AAuBlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;AAwDhB,wBASG"}
|