@quidgest/ui 0.26.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/json/api.json +487 -155
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1016 -141
- package/dist/ui.esm.js +994 -942
- package/dist/ui.js +1235 -1186
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1235 -1186
- package/dist/ui.scss +1266 -157
- 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 +76 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
- package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
- package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
- package/esm/components/QIcon/utils/svgSource.js +27 -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,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QSpinnerLoader as t } from "../QSpinnerLoader/index.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, toRef as h, unref as g, useAttrs as _, withCtx as v } from "vue";
|
|
3
4
|
//#region src/components/QCard/QCard.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var y = { class: "q-card__header" }, b = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "q-card__header-content"
|
|
7
|
-
},
|
|
8
|
+
}, x = { class: "q-card__header-text" }, S = {
|
|
8
9
|
key: 0,
|
|
9
|
-
class: "q-card__title"
|
|
10
|
-
|
|
11
|
-
}, x = {
|
|
10
|
+
class: "q-card__title"
|
|
11
|
+
}, C = {
|
|
12
12
|
key: 1,
|
|
13
|
-
class: "q-card__subtitle"
|
|
14
|
-
|
|
15
|
-
}, S = { class: "q-card__content" }, C = {
|
|
13
|
+
class: "q-card__subtitle"
|
|
14
|
+
}, w = { class: "q-card__content" }, T = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "q-card__footer"
|
|
18
|
-
},
|
|
17
|
+
}, E = /*@__PURE__*/ l({
|
|
19
18
|
__name: "QCard",
|
|
20
19
|
props: {
|
|
21
20
|
id: {},
|
|
@@ -30,55 +29,55 @@ var _ = { class: "q-card__header" }, v = {
|
|
|
30
29
|
disabled: { type: Boolean },
|
|
31
30
|
loading: { type: Boolean }
|
|
32
31
|
},
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
32
|
+
setup(l) {
|
|
33
|
+
let E = l, D = e(h(E, "id")), O = r(() => [
|
|
35
34
|
"q-card",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
E.width ? `q-card--${E.width}` : void 0,
|
|
36
|
+
E.variant && E.variant !== "default" ? `q-card--${E.variant}` : void 0,
|
|
37
|
+
E.elevation && E.elevation !== "none" ? `q-card--elevation-${E.elevation}` : void 0,
|
|
39
38
|
{
|
|
40
|
-
"q-card--clickable":
|
|
41
|
-
"q-card--loading":
|
|
42
|
-
"q-card--borderless":
|
|
43
|
-
"q-card--disabled":
|
|
39
|
+
"q-card--clickable": A.value,
|
|
40
|
+
"q-card--loading": E.loading,
|
|
41
|
+
"q-card--borderless": E.borderless,
|
|
42
|
+
"q-card--disabled": E.disabled
|
|
44
43
|
},
|
|
45
|
-
|
|
46
|
-
]),
|
|
47
|
-
function
|
|
48
|
-
|
|
44
|
+
E.class
|
|
45
|
+
]), k = _(), A = r(() => !!k.onClick || E.href), j = r(() => E.disabled || E.loading);
|
|
46
|
+
function M(e) {
|
|
47
|
+
j.value && e.stopImmediatePropagation();
|
|
49
48
|
}
|
|
50
|
-
return (
|
|
51
|
-
id:
|
|
52
|
-
class:
|
|
53
|
-
href:
|
|
54
|
-
onClick:
|
|
49
|
+
return (e, r) => (d(), i(p(E.href ? "a" : "div"), {
|
|
50
|
+
id: g(D),
|
|
51
|
+
class: u(O.value),
|
|
52
|
+
href: E.href && !j.value ? E.href : void 0,
|
|
53
|
+
onClick: M
|
|
55
54
|
}, {
|
|
56
|
-
default:
|
|
55
|
+
default: v(() => [E.loading ? (d(), i(g(t), {
|
|
57
56
|
key: 0,
|
|
58
57
|
size: 36
|
|
59
|
-
})) : (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
})) : (d(), o(n, { key: 1 }, [
|
|
59
|
+
a(" HEADER "),
|
|
60
|
+
s("div", y, [f(e.$slots, "header", {}, () => [
|
|
61
|
+
a(" HEADER: PREPEND "),
|
|
62
|
+
f(e.$slots, "header.prepend"),
|
|
63
|
+
a(" HEADER CONTENT "),
|
|
64
|
+
e.$slots.title || E.title || e.$slots.subtitle || E.subtitle ? (d(), o("div", b, [
|
|
65
|
+
f(e.$slots, "header.content.prepend"),
|
|
66
|
+
s("div", x, [
|
|
67
|
+
a(" TITLE "),
|
|
68
|
+
e.$slots.title || E.title ? (d(), o("p", S, [e.$slots.title ? f(e.$slots, "title", { key: 0 }) : (d(), o(n, { key: 1 }, [c(m(e.$props.title), 1)], 64))])) : a("v-if", !0),
|
|
69
|
+
a(" SUBTITLE "),
|
|
70
|
+
e.$slots.subtitle || E.subtitle ? (d(), o("p", C, [e.$slots.subtitle ? f(e.$slots, "subtitle", { key: 0 }) : (d(), o(n, { key: 1 }, [c(m(e.$props.subtitle), 1)], 64))])) : a("v-if", !0)
|
|
72
71
|
]),
|
|
73
|
-
|
|
74
|
-
])) :
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
f(e.$slots, "header.content.append")
|
|
73
|
+
])) : a("v-if", !0),
|
|
74
|
+
a(" HEADER: APPEND "),
|
|
75
|
+
f(e.$slots, "header.append")
|
|
77
76
|
])]),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
a(" CONTENT "),
|
|
78
|
+
s("div", w, [f(e.$slots, "default")]),
|
|
79
|
+
a(" FOOTER "),
|
|
80
|
+
e.$slots.footer ? (d(), o("div", T, [f(e.$slots, "footer")])) : a("v-if", !0)
|
|
82
81
|
], 64))]),
|
|
83
82
|
_: 3
|
|
84
83
|
}, 8, [
|
|
@@ -89,4 +88,4 @@ var _ = { class: "q-card__header" }, v = {
|
|
|
89
88
|
}
|
|
90
89
|
});
|
|
91
90
|
//#endregion
|
|
92
|
-
export {
|
|
91
|
+
export { E as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"AAmJA;AAifC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvE,KAAK,WAAW,GAAG,cAAc,CAAC;AAwVnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyQT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;wFASnB,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,37 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QButton as t } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as n } from "../QIcon/index.js";
|
|
4
|
+
import { DEFAULT_ICONS as r, DEFAULT_TEXTS as i } from "./constants.js";
|
|
5
|
+
import { QSkeletonLoader as a } from "../QSkeletonLoader/index.js";
|
|
6
|
+
import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRef as T, unref as E, useModel as D, watch as O, withCtx as k, withModifiers as A } from "vue";
|
|
6
7
|
//#region src/components/QCarousel/QCarousel.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var j = ["id"], M = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "q-carousel__skeleton"
|
|
10
|
-
},
|
|
11
|
+
}, ee = { class: "q-carousel__skeleton-caption" }, te = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "q-carousel__skeleton-controls"
|
|
13
|
-
},
|
|
14
|
+
}, ne = ["onClick"], re = ["src", "alt"], ie = {
|
|
14
15
|
key: 1,
|
|
15
16
|
class: "q-carousel__empty-container"
|
|
16
|
-
},
|
|
17
|
+
}, ae = {
|
|
17
18
|
key: 2,
|
|
18
19
|
class: "q-carousel__caption-global"
|
|
19
|
-
},
|
|
20
|
+
}, oe = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "q-carousel__title"
|
|
22
|
-
},
|
|
23
|
+
}, se = {
|
|
23
24
|
key: 1,
|
|
24
25
|
class: "q-carousel__subtitle"
|
|
25
|
-
},
|
|
26
|
+
}, N = {
|
|
26
27
|
key: 3,
|
|
27
28
|
class: "q-carousel__indicators"
|
|
28
|
-
},
|
|
29
|
+
}, P = [
|
|
29
30
|
"aria-label",
|
|
30
31
|
"aria-current",
|
|
31
32
|
"onClick"
|
|
32
|
-
],
|
|
33
|
+
], F = { class: "q-sr-only" }, I = { class: "q-sr-only" }, L = /*@__PURE__*/ f({
|
|
33
34
|
__name: "QCarousel",
|
|
34
|
-
props: /*@__PURE__*/
|
|
35
|
+
props: /*@__PURE__*/ p({
|
|
35
36
|
id: {},
|
|
36
37
|
class: {},
|
|
37
38
|
slides: { default: () => [] },
|
|
@@ -47,73 +48,73 @@ var k = ["id"], A = {
|
|
|
47
48
|
},
|
|
48
49
|
animationDuration: { default: 500 },
|
|
49
50
|
loading: { type: Boolean },
|
|
50
|
-
icons: { default: () =>
|
|
51
|
-
texts: { default: () =>
|
|
51
|
+
icons: { default: () => r },
|
|
52
|
+
texts: { default: () => i }
|
|
52
53
|
}, {
|
|
53
54
|
currentSlide: { default: 0 },
|
|
54
55
|
currentSlideModifiers: {}
|
|
55
56
|
}),
|
|
56
|
-
emits: /*@__PURE__*/
|
|
57
|
+
emits: /*@__PURE__*/ p([
|
|
57
58
|
"slide:before-change",
|
|
58
59
|
"slide:after-change",
|
|
59
60
|
"slide:click"
|
|
60
61
|
], ["update:currentSlide"]),
|
|
61
|
-
setup(
|
|
62
|
-
let
|
|
63
|
-
transform: `translateX(-${
|
|
64
|
-
transition:
|
|
65
|
-
})),
|
|
66
|
-
"--q-carousel-progress-duration": `${
|
|
67
|
-
"--q-carousel-progress-width": `${
|
|
62
|
+
setup(r, { emit: i }) {
|
|
63
|
+
let f = r, p = i, L = D(r, "currentSlide"), R = e(T(f, "id")), z = x(0), B = !1, V = !1, H = 0, U = 0, W = x(0), G = x(0), K, q, ce = s(() => ({
|
|
64
|
+
transform: `translateX(-${z.value * 100}%)`,
|
|
65
|
+
transition: B ? `transform ${f.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)` : "none"
|
|
66
|
+
})), le = s(() => ({
|
|
67
|
+
"--q-carousel-progress-duration": `${f.autoCycleInterval}ms`,
|
|
68
|
+
"--q-carousel-progress-width": `${W.value}%`
|
|
68
69
|
}));
|
|
69
70
|
function J(e) {
|
|
70
|
-
if (e < 0 || e >=
|
|
71
|
-
let t =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
|
|
71
|
+
if (e < 0 || e >= f.slides.length || e === z.value || B) return;
|
|
72
|
+
let t = z.value, n = f.slides[t], r = f.slides[e];
|
|
73
|
+
p("slide:before-change", r.id, n?.id), z.value = e, L.value = e, f.animationDuration > 0 ? (B = !0, setTimeout(() => {
|
|
74
|
+
B = !1, p("slide:after-change", r.id, n?.id);
|
|
75
|
+
}, f.animationDuration)) : h(() => {
|
|
76
|
+
p("slide:after-change", r.id, n?.id);
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
79
|
function Y() {
|
|
79
|
-
let e =
|
|
80
|
-
e >=
|
|
80
|
+
let e = z.value + 1;
|
|
81
|
+
e >= f.slides.length ? f.wrap && J(0) : J(e);
|
|
81
82
|
}
|
|
82
83
|
function X() {
|
|
83
|
-
let e =
|
|
84
|
-
e < 0 ?
|
|
84
|
+
let e = z.value - 1;
|
|
85
|
+
e < 0 ? f.wrap && J(f.slides.length - 1) : J(e);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function ue(e) {
|
|
87
88
|
if (window.getSelection()?.toString().length) return;
|
|
88
|
-
let t =
|
|
89
|
-
|
|
89
|
+
let t = f.slides[e];
|
|
90
|
+
p("slide:click", t.id);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function de(e) {
|
|
92
93
|
let t = {};
|
|
93
94
|
return e?.colorPlaceholder && (t["background-color"] = e.colorPlaceholder), t;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
function fe() {
|
|
97
|
+
f.autoCycleInterval && (q = window.setInterval(() => {
|
|
98
|
+
W.value = (Date.now() - G.value) / f.autoCycleInterval * 100;
|
|
98
99
|
}, 50));
|
|
99
100
|
}
|
|
100
101
|
function Z() {
|
|
101
|
-
!
|
|
102
|
+
!f.autoCycleInterval || f.slides.length <= 1 || (Q(), f.ride === "carousel" && !V && (G.value = Date.now(), fe(), K = window.setTimeout(Y, f.autoCycleInterval)));
|
|
102
103
|
}
|
|
103
104
|
function Q() {
|
|
104
|
-
|
|
105
|
+
K && window.clearTimeout(K), q && window.clearInterval(q), K = void 0, q = void 0, G.value = 0, W.value = 0;
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function pe() {
|
|
107
108
|
Q(), Z();
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
110
|
+
function $() {
|
|
111
|
+
f.autoCyclePause === "hover" && (V = !0, Q());
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
113
|
+
function me() {
|
|
114
|
+
f.autoCyclePause === "hover" && (V = !1, Z());
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
if (!
|
|
116
|
+
function he(e) {
|
|
117
|
+
if (!B) switch (e.key) {
|
|
117
118
|
case "ArrowLeft":
|
|
118
119
|
e.preventDefault(), X();
|
|
119
120
|
break;
|
|
@@ -124,125 +125,128 @@ var k = ["id"], A = {
|
|
|
124
125
|
e.preventDefault(), J(0);
|
|
125
126
|
break;
|
|
126
127
|
case "End":
|
|
127
|
-
e.preventDefault(), J(
|
|
128
|
+
e.preventDefault(), J(f.slides.length - 1);
|
|
128
129
|
break;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
132
|
+
function ge(e) {
|
|
133
|
+
B || (H = e.touches[0].clientX, Q());
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
135
|
+
function _e(e) {
|
|
136
|
+
B || (U = e.touches[0].clientX);
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
if (
|
|
139
|
-
let e =
|
|
140
|
-
Math.abs(e) >
|
|
138
|
+
function ve() {
|
|
139
|
+
if (B) return;
|
|
140
|
+
let e = H - U;
|
|
141
|
+
Math.abs(e) > f.swipeThreshold && (e > 0 ? Y() : X()), H = 0, U = 0, Z();
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
143
|
+
function ye(e) {
|
|
144
|
+
return f.texts.goToSlide.replace("{0}", `${e + 1}`);
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function be(e) {
|
|
146
147
|
if (e.length === 0) {
|
|
147
|
-
|
|
148
|
+
z.value = 0, L.value = 0, Q();
|
|
148
149
|
return;
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
+
z.value >= e.length && J(0);
|
|
151
152
|
}
|
|
152
|
-
return
|
|
153
|
+
return O(() => f.slides, be, {
|
|
153
154
|
immediate: !0,
|
|
154
155
|
deep: !0
|
|
155
|
-
}),
|
|
156
|
-
e !==
|
|
157
|
-
}),
|
|
158
|
-
id:
|
|
159
|
-
class:
|
|
156
|
+
}), O(z, pe), O(L, (e) => {
|
|
157
|
+
e !== z.value && J(e);
|
|
158
|
+
}), v(Z), y(Q), (e, i) => (b(), l("div", {
|
|
159
|
+
id: E(R),
|
|
160
|
+
class: g(["q-carousel", f.class]),
|
|
160
161
|
tabindex: "0",
|
|
161
|
-
onMouseenter:
|
|
162
|
-
onMouseleave:
|
|
163
|
-
onKeydown:
|
|
164
|
-
}, [
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
onMouseenter: $,
|
|
163
|
+
onMouseleave: me,
|
|
164
|
+
onKeydown: he
|
|
165
|
+
}, [c(" Skeleton Loader "), r.loading ? (b(), l("div", M, [
|
|
166
|
+
c(" Image placeholder "),
|
|
167
|
+
d(E(a), {
|
|
167
168
|
width: "100%",
|
|
168
169
|
height: "100%"
|
|
169
170
|
}),
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
c(" Overlay skeletons for text/captions "),
|
|
172
|
+
u("div", ee, [d(E(a), {
|
|
172
173
|
type: "text",
|
|
173
174
|
width: "40%",
|
|
174
175
|
height: "24px",
|
|
175
176
|
class: "q-carousel__skeleton-title"
|
|
176
|
-
}),
|
|
177
|
+
}), d(E(a), {
|
|
177
178
|
type: "text",
|
|
178
179
|
width: "60%",
|
|
179
180
|
height: "16px",
|
|
180
181
|
class: "q-carousel__skeleton-subtitle"
|
|
181
182
|
})]),
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
c(" Controls "),
|
|
184
|
+
f.showControls ? (b(), l("div", te, [d(E(a), {
|
|
184
185
|
type: "icon",
|
|
185
186
|
width: "40px",
|
|
186
187
|
height: "40px",
|
|
187
188
|
class: "q-carousel__skeleton-control"
|
|
188
|
-
}),
|
|
189
|
+
}), d(E(a), {
|
|
189
190
|
type: "icon",
|
|
190
191
|
width: "40px",
|
|
191
192
|
height: "40px",
|
|
192
193
|
class: "q-carousel__skeleton-control"
|
|
193
|
-
})])) :
|
|
194
|
-
])) : (
|
|
195
|
-
|
|
194
|
+
})])) : c("v-if", !0)
|
|
195
|
+
])) : (b(), l(o, { key: 1 }, [
|
|
196
|
+
r.slides?.length ? (b(), l(o, { key: 0 }, [c(" Carousel Content "), u("div", {
|
|
196
197
|
class: "q-carousel__track",
|
|
197
|
-
style:
|
|
198
|
-
onTouchstart:
|
|
199
|
-
onTouchmove:
|
|
200
|
-
onTouchend:
|
|
201
|
-
}, [(
|
|
198
|
+
style: _(ce.value),
|
|
199
|
+
onTouchstart: ge,
|
|
200
|
+
onTouchmove: _e,
|
|
201
|
+
onTouchend: ve
|
|
202
|
+
}, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("div", {
|
|
202
203
|
key: e.id,
|
|
203
|
-
class:
|
|
204
|
-
style:
|
|
205
|
-
onClick:
|
|
206
|
-
}, [e.image ? (
|
|
204
|
+
class: g(["q-carousel__slide", { "q-carousel__slide--active": t === z.value }]),
|
|
205
|
+
style: _(de(e)),
|
|
206
|
+
onClick: A(() => ue(t), ["stop", "prevent"])
|
|
207
|
+
}, [e.image ? (b(), l("img", {
|
|
207
208
|
key: 0,
|
|
208
209
|
src: e.image,
|
|
209
210
|
alt: e.title || `Slide ${t + 1}`,
|
|
210
211
|
class: "q-carousel__image",
|
|
211
212
|
decoding: "async",
|
|
212
213
|
loading: "lazy"
|
|
213
|
-
}, null, 8,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
}, null, 8, re)) : c("v-if", !0)], 14, ne))), 128))], 36)], 64)) : (b(), l("div", ie, [C(e.$slots, "empty")])),
|
|
215
|
+
c(" Captions (centered, above indicators) "),
|
|
216
|
+
r.slides[z.value] ? (b(), l("div", ae, [r.slides[z.value]?.title ? (b(), l("h2", oe, w(r.slides[z.value].title), 1)) : c("v-if", !0), r.slides[z.value]?.subtitle ? (b(), l("p", se, w(r.slides[z.value].subtitle), 1)) : c("v-if", !0)])) : c("v-if", !0),
|
|
217
|
+
c(" Indicators "),
|
|
218
|
+
r.showIndicators && r.slides.length > 1 ? (b(), l("ol", N, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("li", {
|
|
218
219
|
key: e.id,
|
|
219
|
-
class:
|
|
220
|
+
class: g(["q-carousel__indicator", { "q-carousel__indicator--active": t === z.value }]),
|
|
221
|
+
style: _(t === z.value ? le.value : {})
|
|
222
|
+
}, [u("button", {
|
|
223
|
+
type: "button",
|
|
224
|
+
class: "q-carousel__indicator-button",
|
|
220
225
|
"data-testid": "carousel-indicator",
|
|
221
|
-
|
|
222
|
-
"aria-
|
|
223
|
-
"aria-current": t === L.value,
|
|
226
|
+
"aria-label": ye(t),
|
|
227
|
+
"aria-current": t === z.value || void 0,
|
|
224
228
|
onClick: () => J(t)
|
|
225
|
-
}, null,
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
}, null, 8, P)], 6))), 128))])) : c("v-if", !0),
|
|
230
|
+
c(" Controls "),
|
|
231
|
+
r.showControls && r.slides.length > 1 ? (b(), l(o, { key: 4 }, [d(E(t), {
|
|
228
232
|
class: "q-carousel__control q-carousel__control--prev",
|
|
229
233
|
"data-testid": "carousel-prev",
|
|
230
|
-
"aria-label":
|
|
234
|
+
"aria-label": r.texts.previousText,
|
|
231
235
|
onClick: X
|
|
232
236
|
}, {
|
|
233
|
-
default:
|
|
237
|
+
default: k(() => [d(E(n), m({ class: "q-carousel__control-icon q-carousel__control-icon--prev" }, f.icons.back), null, 16), u("span", F, w(r.texts.previousText), 1)]),
|
|
234
238
|
_: 1
|
|
235
|
-
}, 8, ["aria-label"]),
|
|
239
|
+
}, 8, ["aria-label"]), d(E(t), {
|
|
236
240
|
class: "q-carousel__control q-carousel__control--next",
|
|
237
241
|
"data-testid": "carousel-next",
|
|
238
|
-
"aria-label":
|
|
242
|
+
"aria-label": r.texts.nextText,
|
|
239
243
|
onClick: Y
|
|
240
244
|
}, {
|
|
241
|
-
default:
|
|
245
|
+
default: k(() => [d(E(n), m({ class: "q-carousel__control-icon q-carousel__control-icon--next" }, f.icons.forward), null, 16), u("span", I, w(r.texts.nextText), 1)]),
|
|
242
246
|
_: 1
|
|
243
|
-
}, 8, ["aria-label"])], 64)) :
|
|
244
|
-
], 64))], 42,
|
|
247
|
+
}, 8, ["aria-label"])], 64)) : c("v-if", !0)
|
|
248
|
+
], 64))], 42, j));
|
|
245
249
|
}
|
|
246
250
|
});
|
|
247
251
|
//#endregion
|
|
248
|
-
export {
|
|
252
|
+
export { L as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAiEA;AAsJC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AA0EnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA0HT,OAAO,IAA6B;;wBAdtB,GAAG;wBACF,GAAG;;;;;;;EAkB/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;OASnB,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,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 { DEFAULT_ICONS as n } from "./constants.js";
|
|
4
4
|
import { QCheckboxLabel as r } from "./index.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, openBlock as m, renderSlot as h, toRef as g, unref as _, useModel as v, useTemplateRef as y, watch as b, withCtx as x, withKeys as S, withModifiers as C } from "vue";
|
|
@@ -9,11 +9,9 @@ var w = [
|
|
|
9
9
|
"disabled",
|
|
10
10
|
"readonly",
|
|
11
11
|
"required",
|
|
12
|
-
"aria-label",
|
|
13
12
|
"aria-readonly"
|
|
14
13
|
], T = [
|
|
15
14
|
"id",
|
|
16
|
-
"aria-label",
|
|
17
15
|
"aria-checked",
|
|
18
16
|
"aria-required",
|
|
19
17
|
"disabled",
|
|
@@ -47,7 +45,7 @@ var w = [
|
|
|
47
45
|
}),
|
|
48
46
|
emits: ["update:modelValue"],
|
|
49
47
|
setup(n) {
|
|
50
|
-
let u = n, d = v(n, "modelValue"), E =
|
|
48
|
+
let u = n, d = v(n, "modelValue"), E = e(g(u, "id")), D = y("inputEl"), O = y("buttonEl"), k = i(() => [
|
|
51
49
|
"q-checkbox",
|
|
52
50
|
u.size === "small" || u.size === "large" ? `q-checkbox--${u.size}` : void 0,
|
|
53
51
|
`q-checkbox--${u.color}`,
|
|
@@ -69,7 +67,7 @@ var w = [
|
|
|
69
67
|
}
|
|
70
68
|
return b(d, (e) => {
|
|
71
69
|
D.value && (D.value.checked = !!e);
|
|
72
|
-
}), (
|
|
70
|
+
}), (e, i) => (m(), s("div", {
|
|
73
71
|
class: p(k.value),
|
|
74
72
|
onClick: C(A, ["prevent"]),
|
|
75
73
|
onMousedown: C(j, ["prevent"])
|
|
@@ -79,9 +77,9 @@ var w = [
|
|
|
79
77
|
for: _(E),
|
|
80
78
|
label: u.label,
|
|
81
79
|
required: u.required
|
|
82
|
-
}, l({ _: 2 }, [
|
|
80
|
+
}, l({ _: 2 }, [e.$slots.extras ? {
|
|
83
81
|
name: "extras",
|
|
84
|
-
fn: x(() => [h(
|
|
82
|
+
fn: x(() => [h(e.$slots, "extras")]),
|
|
85
83
|
key: "0"
|
|
86
84
|
} : void 0]), 1032, [
|
|
87
85
|
"for",
|
|
@@ -97,7 +95,6 @@ var w = [
|
|
|
97
95
|
disabled: u.disabled,
|
|
98
96
|
readonly: u.readonly,
|
|
99
97
|
required: u.required,
|
|
100
|
-
"aria-label": u.label,
|
|
101
98
|
"aria-readonly": u.readonly,
|
|
102
99
|
tabindex: "-1",
|
|
103
100
|
"aria-hidden": "true"
|
|
@@ -110,23 +107,22 @@ var w = [
|
|
|
110
107
|
type: "button",
|
|
111
108
|
class: "q-checkbox__input",
|
|
112
109
|
"data-testid": "checkbox-button",
|
|
113
|
-
"aria-label": u.label,
|
|
114
110
|
"aria-checked": u.indeterminate ? "mixed" : d.value,
|
|
115
111
|
"aria-required": u.required || void 0,
|
|
116
112
|
disabled: u.disabled,
|
|
117
113
|
readonly: u.readonly
|
|
118
|
-
},
|
|
114
|
+
}, e.$attrs, {
|
|
119
115
|
onClick: C(A, ["stop", "prevent"]),
|
|
120
116
|
onKeydown: [S(C(A, ["prevent"]), ["space"]), i[0] ||= S(C(() => {}, ["prevent"]), ["enter"])]
|
|
121
|
-
}), [d.value || n.indeterminate ? (m(), a(_(
|
|
117
|
+
}), [d.value || n.indeterminate ? (m(), a(_(t), f({ key: 0 }, d.value ? u.icons.checked : u.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : o("v-if", !0)], 16, T),
|
|
122
118
|
u.label && u.labelPlacement === "right" ? (m(), a(_(r), {
|
|
123
119
|
key: 1,
|
|
124
120
|
for: _(E),
|
|
125
121
|
label: u.label,
|
|
126
122
|
required: u.required
|
|
127
|
-
}, l({ _: 2 }, [
|
|
123
|
+
}, l({ _: 2 }, [e.$slots.extras ? {
|
|
128
124
|
name: "extras",
|
|
129
|
-
fn: x(() => [h(
|
|
125
|
+
fn: x(() => [h(e.$slots, "extras")]),
|
|
130
126
|
key: "0"
|
|
131
127
|
} : void 0]), 1032, [
|
|
132
128
|
"for",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAwEA;
|
|
1
|
+
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAwEA;AAiJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA2DtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuJT,OAAO,IAA6B;;sBAfvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|