@quidgest/ui 0.29.0 → 0.30.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 +59 -0
- package/README.md +2 -20
- package/dist/json/api.json +1059 -803
- package/dist/ui.css +77 -29
- package/dist/ui.esm.js +1093 -994
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +75 -24
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
- package/esm/components/QAccordion/index.d.ts +3 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +8 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +1 -1
- package/esm/components/QAlert/index.d.ts +3 -3
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
- package/esm/components/QBadgeIndicator/types.d.ts +13 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +54 -48
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -32
- package/esm/components/QCard/types.d.ts +9 -0
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts +1 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +84 -80
- package/esm/components/QCarousel/index.d.ts +6 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -1
- package/esm/components/QCarousel/types.d.ts +9 -1
- package/esm/components/QCarousel/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +9 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
- package/esm/components/QColorPicker/index.d.ts +3 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +7 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +7 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +258 -235
- package/esm/components/QCombobox/constants.d.ts +1 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +1 -0
- package/esm/components/QCombobox/index.d.ts +11 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
- package/esm/components/QDateTimePicker/index.d.ts +90 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +2 -0
- package/esm/components/QDialog/types.d.ts +3 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
- package/esm/components/QDropdownMenu/ids.d.ts +8 -0
- package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/ids.js +6 -0
- package/esm/components/QDropdownMenu/index.d.ts +9 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +2 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +68 -61
- package/esm/components/QField/ids.d.ts +15 -0
- package/esm/components/QField/ids.d.ts.map +1 -0
- package/esm/components/QField/ids.js +10 -0
- package/esm/components/QField/index.d.ts +2 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
- package/esm/components/QFileUpload/constants.d.ts +2 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +3 -1
- package/esm/components/QFileUpload/index.d.ts +182 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +1 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
- package/esm/components/QInputGroup/index.d.ts +3 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +21 -19
- package/esm/components/QLabel/ids.d.ts +9 -0
- package/esm/components/QLabel/ids.d.ts.map +1 -0
- package/esm/components/QLabel/ids.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
- package/esm/components/QList/QList.d.ts +3 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -117
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -50
- package/esm/components/QList/context.d.ts +8 -0
- package/esm/components/QList/context.d.ts.map +1 -0
- package/esm/components/QList/context.js +4 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +38 -19
- package/esm/components/QMeter/index.d.ts +2 -10
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts +9 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +94 -73
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +162 -132
- package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
- package/esm/components/QPasswordField/index.d.ts +2 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +4 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
- package/esm/components/QPhoneField/constants.d.ts +2 -1
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +1 -1
- package/esm/components/QPhoneField/index.d.ts +26 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +5 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QProgress/QProgress.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +3 -2
- package/esm/components/QSection/types.d.ts +3 -4
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +6 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +405 -355
- package/esm/components/QSelect/constants.d.ts +2 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +3 -1
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
- package/esm/components/QSidebar/index.d.ts +3 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +20 -1
- 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 +16 -15
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QSteps.d.ts +3 -2
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +171 -152
- package/esm/components/QSteps/QStepsNav.d.ts +7 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/esm/components/QSteps/QStepsNav.vue.js +29 -15
- package/esm/components/QSteps/constants.d.ts +4 -2
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +12 -2
- package/esm/components/QSwitch/index.d.ts +4 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +8 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +1 -0
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +6 -2
- package/esm/components/QTextField/QTextField.d.ts +4 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +5 -3
- package/esm/components/QTextField/index.d.ts +2 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +1 -0
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +89 -85
- 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 +8 -0
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +19 -11
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/utils/focus.d.ts +10 -0
- package/esm/utils/focus.d.ts.map +1 -1
- package/esm/utils/focus.js +5 -2
- package/esm/utils/loader.d.ts +19 -0
- package/esm/utils/loader.d.ts.map +1 -0
- package/esm/utils/loader.js +6 -0
- package/package.json +24 -23
- package/dist/ui.js +0 -1846
- package/dist/ui.min.js +0 -1846
|
@@ -3,39 +3,37 @@ import { QIcon as t } from "../QIcon/index.js";
|
|
|
3
3
|
import { QButton as n } from "../QButton/index.js";
|
|
4
4
|
import { DEFAULT_ICONS as r, DEFAULT_TEXTS as i } from "./constants.js";
|
|
5
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,
|
|
6
|
+
import { Fragment as o, computed as s, createBlock as ee, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, nextTick as te, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, toRef as E, unref as D, useModel as ne, watch as O, withCtx as k, withModifiers as re } from "vue";
|
|
7
7
|
//#region src/components/QCarousel/QCarousel.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var ie = ["id"], ae = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "q-carousel__skeleton"
|
|
11
|
-
},
|
|
11
|
+
}, oe = { class: "q-carousel__skeleton-caption" }, se = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-carousel__skeleton-controls"
|
|
14
|
-
},
|
|
14
|
+
}, ce = ["onClick"], le = ["src", "alt"], ue = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "q-carousel__empty-container"
|
|
17
|
-
},
|
|
17
|
+
}, de = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "q-carousel__caption-global"
|
|
20
|
-
},
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "q-carousel__title"
|
|
23
|
-
}, ce = {
|
|
20
|
+
}, fe = {
|
|
24
21
|
key: 1,
|
|
25
22
|
class: "q-carousel__subtitle"
|
|
26
|
-
},
|
|
23
|
+
}, A = {
|
|
27
24
|
key: 3,
|
|
28
25
|
class: "q-carousel__indicators"
|
|
29
|
-
},
|
|
26
|
+
}, j = [
|
|
30
27
|
"aria-label",
|
|
31
28
|
"aria-current",
|
|
32
29
|
"onClick"
|
|
33
|
-
],
|
|
30
|
+
], M = { class: "q-sr-only" }, N = { class: "q-sr-only" }, P = /*@__PURE__*/ p({
|
|
34
31
|
__name: "QCarousel",
|
|
35
|
-
props: /*@__PURE__*/
|
|
32
|
+
props: /*@__PURE__*/ m({
|
|
36
33
|
id: {},
|
|
37
34
|
class: {},
|
|
38
35
|
slides: { default: () => [] },
|
|
36
|
+
headingLevel: { default: 2 },
|
|
39
37
|
showIndicators: { type: Boolean },
|
|
40
38
|
showControls: { type: Boolean },
|
|
41
39
|
autoCycleInterval: { default: 5e3 },
|
|
@@ -54,68 +52,68 @@ var j = ["id"], ee = {
|
|
|
54
52
|
currentSlide: { default: 0 },
|
|
55
53
|
currentSlideModifiers: {}
|
|
56
54
|
}),
|
|
57
|
-
emits: /*@__PURE__*/
|
|
55
|
+
emits: /*@__PURE__*/ m([
|
|
58
56
|
"slide:before-change",
|
|
59
57
|
"slide:after-change",
|
|
60
58
|
"slide:click"
|
|
61
59
|
], ["update:currentSlide"]),
|
|
62
60
|
setup(r, { emit: i }) {
|
|
63
|
-
let
|
|
61
|
+
let p = r, m = i, P = s(() => p.headingLevel >= 1 && p.headingLevel <= 6 ? `h${p.headingLevel}` : "div"), F = ne(r, "currentSlide"), I = e(E(p, "id")), L = x(R());
|
|
64
62
|
function R() {
|
|
65
63
|
return Math.max(F.value, 0);
|
|
66
64
|
}
|
|
67
|
-
let z = !1, B = !1, V = 0, H = 0, U = x(0), W = x(0), G, K,
|
|
65
|
+
let z = !1, B = !1, V = 0, H = 0, U = x(0), W = x(0), G, K, pe = s(() => ({
|
|
68
66
|
transform: `translateX(-${L.value * 100}%)`,
|
|
69
|
-
transition: z ? `transform ${
|
|
70
|
-
})),
|
|
71
|
-
"--q-carousel-progress-duration": `${
|
|
67
|
+
transition: z ? `transform ${p.animationDuration}ms cubic-bezier(0.4, 0, 0.2, 1)` : "none"
|
|
68
|
+
})), me = s(() => ({
|
|
69
|
+
"--q-carousel-progress-duration": `${p.autoCycleInterval}ms`,
|
|
72
70
|
"--q-carousel-progress-width": `${U.value}%`
|
|
73
71
|
}));
|
|
74
72
|
function q(e) {
|
|
75
|
-
if (e < 0 || e >=
|
|
76
|
-
let t = L.value, n =
|
|
77
|
-
|
|
78
|
-
z = !1,
|
|
79
|
-
},
|
|
80
|
-
|
|
73
|
+
if (e < 0 || e >= p.slides.length || e === L.value || z) return;
|
|
74
|
+
let t = L.value, n = p.slides[t], r = p.slides[e];
|
|
75
|
+
m("slide:before-change", r.id, n?.id), L.value = e, F.value = e, p.animationDuration > 0 ? (z = !0, setTimeout(() => {
|
|
76
|
+
z = !1, m("slide:after-change", r.id, n?.id);
|
|
77
|
+
}, p.animationDuration)) : te(() => {
|
|
78
|
+
m("slide:after-change", r.id, n?.id);
|
|
81
79
|
});
|
|
82
80
|
}
|
|
83
81
|
function J() {
|
|
84
82
|
let e = L.value + 1;
|
|
85
|
-
e >=
|
|
83
|
+
e >= p.slides.length ? p.wrap && q(0) : q(e);
|
|
86
84
|
}
|
|
87
85
|
function Y() {
|
|
88
86
|
let e = L.value - 1;
|
|
89
|
-
e < 0 ?
|
|
87
|
+
e < 0 ? p.wrap && q(p.slides.length - 1) : q(e);
|
|
90
88
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
89
|
+
function he(e) {
|
|
90
|
+
m("slide:click", p.slides[e].id);
|
|
93
91
|
}
|
|
94
|
-
function
|
|
92
|
+
function ge(e) {
|
|
95
93
|
let t = {};
|
|
96
94
|
return e?.colorPlaceholder && (t["background-color"] = e.colorPlaceholder), t;
|
|
97
95
|
}
|
|
98
|
-
function
|
|
96
|
+
function _e() {
|
|
99
97
|
K = window.setInterval(() => {
|
|
100
|
-
U.value = (Date.now() - W.value) /
|
|
98
|
+
U.value = (Date.now() - W.value) / p.autoCycleInterval * 100, U.value >= 100 && (window.clearInterval(K), K = void 0);
|
|
101
99
|
}, 50);
|
|
102
100
|
}
|
|
103
101
|
function X() {
|
|
104
|
-
!
|
|
102
|
+
!p.autoCycleInterval || p.slides.length <= 1 || (Z(), p.ride === "carousel" && !B && (W.value = Date.now(), _e(), G = window.setTimeout(J, p.autoCycleInterval)));
|
|
105
103
|
}
|
|
106
104
|
function Z() {
|
|
107
105
|
G && window.clearTimeout(G), K && window.clearInterval(K), G = void 0, K = void 0, W.value = 0, U.value = 0;
|
|
108
106
|
}
|
|
109
|
-
function
|
|
107
|
+
function ve() {
|
|
110
108
|
Z(), X();
|
|
111
109
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
110
|
+
function ye() {
|
|
111
|
+
p.autoCyclePause === "hover" && (B = !0, Z());
|
|
114
112
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
113
|
+
function be() {
|
|
114
|
+
p.autoCyclePause === "hover" && (B = !1, X());
|
|
117
115
|
}
|
|
118
|
-
function
|
|
116
|
+
function xe(e) {
|
|
119
117
|
if (!z) switch (e.key) {
|
|
120
118
|
case "ArrowLeft":
|
|
121
119
|
e.preventDefault(), Y();
|
|
@@ -127,70 +125,70 @@ var j = ["id"], ee = {
|
|
|
127
125
|
e.preventDefault(), q(0);
|
|
128
126
|
break;
|
|
129
127
|
case "End":
|
|
130
|
-
e.preventDefault(), q(
|
|
128
|
+
e.preventDefault(), q(p.slides.length - 1);
|
|
131
129
|
break;
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
|
-
function
|
|
132
|
+
function Q(e) {
|
|
135
133
|
V = H = e.touches[0].clientX, Z();
|
|
136
134
|
}
|
|
137
|
-
function
|
|
135
|
+
function Se(e) {
|
|
138
136
|
H = e.touches[0].clientX;
|
|
139
137
|
}
|
|
140
|
-
function
|
|
138
|
+
function Ce() {
|
|
141
139
|
let e = V - H;
|
|
142
|
-
Math.abs(e) >
|
|
140
|
+
Math.abs(e) > p.swipeThreshold && (e > 0 ? J() : Y()), X();
|
|
143
141
|
}
|
|
144
142
|
function $(e, t) {
|
|
145
143
|
return e.replace("{0}", `${t + 1}`);
|
|
146
144
|
}
|
|
147
|
-
function
|
|
148
|
-
return $(
|
|
145
|
+
function we(e) {
|
|
146
|
+
return $(p.texts.goToSlide, e);
|
|
149
147
|
}
|
|
150
|
-
function
|
|
148
|
+
function Te(e) {
|
|
151
149
|
if (e.length === 0) {
|
|
152
150
|
L.value = 0, F.value = 0, Z();
|
|
153
151
|
return;
|
|
154
152
|
}
|
|
155
153
|
L.value >= e.length && q(0);
|
|
156
154
|
}
|
|
157
|
-
return O(() =>
|
|
155
|
+
return O(() => p.slides, Te, {
|
|
158
156
|
immediate: !0,
|
|
159
157
|
deep: !0
|
|
160
|
-
}), O(L,
|
|
158
|
+
}), O(L, ve), O(F, (e) => {
|
|
161
159
|
e !== L.value && q(e);
|
|
162
160
|
}), v(X), y(Z), (e, i) => (b(), l("div", {
|
|
163
|
-
id:
|
|
164
|
-
class: g(["q-carousel",
|
|
161
|
+
id: D(I),
|
|
162
|
+
class: g(["q-carousel", p.class]),
|
|
165
163
|
tabindex: "0",
|
|
166
|
-
onMouseenter:
|
|
167
|
-
onMouseleave:
|
|
168
|
-
onKeydown:
|
|
169
|
-
}, [c(" Skeleton Loader "), r.loading ? (b(), l("div",
|
|
164
|
+
onMouseenter: ye,
|
|
165
|
+
onMouseleave: be,
|
|
166
|
+
onKeydown: xe
|
|
167
|
+
}, [c(" Skeleton Loader "), r.loading ? (b(), l("div", ae, [
|
|
170
168
|
c(" Image placeholder "),
|
|
171
|
-
|
|
169
|
+
f(D(a), {
|
|
172
170
|
width: "100%",
|
|
173
171
|
height: "100%"
|
|
174
172
|
}),
|
|
175
173
|
c(" Overlay skeletons for text/captions "),
|
|
176
|
-
u("div",
|
|
174
|
+
u("div", oe, [f(D(a), {
|
|
177
175
|
type: "text",
|
|
178
176
|
width: "40%",
|
|
179
177
|
height: "24px",
|
|
180
178
|
class: "q-carousel__skeleton-title"
|
|
181
|
-
}),
|
|
179
|
+
}), f(D(a), {
|
|
182
180
|
type: "text",
|
|
183
181
|
width: "60%",
|
|
184
182
|
height: "16px",
|
|
185
183
|
class: "q-carousel__skeleton-subtitle"
|
|
186
184
|
})]),
|
|
187
185
|
c(" Controls "),
|
|
188
|
-
|
|
186
|
+
p.showControls ? (b(), l("div", se, [f(D(a), {
|
|
189
187
|
type: "icon",
|
|
190
188
|
width: "40px",
|
|
191
189
|
height: "40px",
|
|
192
190
|
class: "q-carousel__skeleton-control"
|
|
193
|
-
}),
|
|
191
|
+
}), f(D(a), {
|
|
194
192
|
type: "icon",
|
|
195
193
|
width: "40px",
|
|
196
194
|
height: "40px",
|
|
@@ -199,58 +197,64 @@ var j = ["id"], ee = {
|
|
|
199
197
|
])) : (b(), l(o, { key: 1 }, [
|
|
200
198
|
r.slides?.length ? (b(), l(o, { key: 0 }, [c(" Carousel Content "), u("div", {
|
|
201
199
|
class: "q-carousel__track",
|
|
202
|
-
style: _(
|
|
203
|
-
onTouchstart:
|
|
204
|
-
onTouchmove:
|
|
205
|
-
onTouchend:
|
|
206
|
-
}, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("div", {
|
|
200
|
+
style: _(pe.value),
|
|
201
|
+
onTouchstart: Q,
|
|
202
|
+
onTouchmove: Se,
|
|
203
|
+
onTouchend: Ce
|
|
204
|
+
}, [c(" eslint-disable-next-line vuejs-accessibility/click-events-have-key-events -- The WCAG plan fixes this in fix(QCarousel)!: slide keyboard and root role "), (b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("div", {
|
|
207
205
|
key: e.id,
|
|
208
206
|
class: g(["q-carousel__slide", { "q-carousel__slide--active": t === L.value }]),
|
|
209
|
-
style: _(
|
|
210
|
-
onClick:
|
|
207
|
+
style: _(ge(e)),
|
|
208
|
+
onClick: re(() => he(t), ["stop", "prevent"])
|
|
211
209
|
}, [e.image ? (b(), l("img", {
|
|
212
210
|
key: 0,
|
|
213
211
|
src: e.image,
|
|
214
|
-
alt: e.title || $(
|
|
212
|
+
alt: e.title || $(p.texts.slide, t),
|
|
215
213
|
class: "q-carousel__image",
|
|
216
214
|
decoding: "async",
|
|
217
215
|
loading: "lazy"
|
|
218
|
-
}, null, 8,
|
|
216
|
+
}, null, 8, le)) : c("v-if", !0)], 14, ce))), 128))], 36)], 64)) : (b(), l("div", ue, [C(e.$slots, "empty")])),
|
|
219
217
|
c(" Captions (centered, above indicators) "),
|
|
220
|
-
r.slides[L.value] ? (b(), l("div",
|
|
218
|
+
r.slides[L.value] ? (b(), l("div", de, [r.slides[L.value]?.title ? (b(), ee(w(P.value), {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: "q-carousel__title"
|
|
221
|
+
}, {
|
|
222
|
+
default: k(() => [d(T(r.slides[L.value].title), 1)]),
|
|
223
|
+
_: 1
|
|
224
|
+
})) : c("v-if", !0), r.slides[L.value]?.subtitle ? (b(), l("p", fe, T(r.slides[L.value].subtitle), 1)) : c("v-if", !0)])) : c("v-if", !0),
|
|
221
225
|
c(" Indicators "),
|
|
222
|
-
r.showIndicators && r.slides.length > 1 ? (b(), l("ol",
|
|
226
|
+
r.showIndicators && r.slides.length > 1 ? (b(), l("ol", A, [(b(!0), l(o, null, S(r.slides, (e, t) => (b(), l("li", {
|
|
223
227
|
key: e.id,
|
|
224
228
|
class: g(["q-carousel__indicator", { "q-carousel__indicator--active": t === L.value }]),
|
|
225
|
-
style: _(t === L.value ?
|
|
229
|
+
style: _(t === L.value ? me.value : {})
|
|
226
230
|
}, [u("button", {
|
|
227
231
|
type: "button",
|
|
228
232
|
class: "q-carousel__indicator-button",
|
|
229
233
|
"data-testid": "carousel-indicator",
|
|
230
|
-
"aria-label":
|
|
234
|
+
"aria-label": we(t),
|
|
231
235
|
"aria-current": t === L.value || void 0,
|
|
232
236
|
onClick: () => q(t)
|
|
233
|
-
}, null, 8,
|
|
237
|
+
}, null, 8, j)], 6))), 128))])) : c("v-if", !0),
|
|
234
238
|
c(" Controls "),
|
|
235
|
-
r.showControls && r.slides.length > 1 ? (b(), l(o, { key: 4 }, [
|
|
239
|
+
r.showControls && r.slides.length > 1 ? (b(), l(o, { key: 4 }, [f(D(n), {
|
|
236
240
|
class: "q-carousel__control q-carousel__control--prev",
|
|
237
241
|
"data-testid": "carousel-prev",
|
|
238
242
|
"aria-label": r.texts.back,
|
|
239
243
|
onClick: Y
|
|
240
244
|
}, {
|
|
241
|
-
default: k(() => [
|
|
245
|
+
default: k(() => [f(D(t), h({ class: "q-carousel__control-icon q-carousel__control-icon--prev" }, p.icons.back), null, 16), u("span", M, T(r.texts.back), 1)]),
|
|
242
246
|
_: 1
|
|
243
|
-
}, 8, ["aria-label"]),
|
|
247
|
+
}, 8, ["aria-label"]), f(D(n), {
|
|
244
248
|
class: "q-carousel__control q-carousel__control--next",
|
|
245
249
|
"data-testid": "carousel-next",
|
|
246
250
|
"aria-label": r.texts.forward,
|
|
247
251
|
onClick: J
|
|
248
252
|
}, {
|
|
249
|
-
default: k(() => [
|
|
253
|
+
default: k(() => [f(D(t), h({ class: "q-carousel__control-icon q-carousel__control-icon--next" }, p.icons.forward), null, 16), u("span", N, T(r.texts.forward), 1)]),
|
|
250
254
|
_: 1
|
|
251
255
|
}, 8, ["aria-label"])], 64)) : c("v-if", !0)
|
|
252
|
-
], 64))], 42,
|
|
256
|
+
], 64))], 42, ie));
|
|
253
257
|
}
|
|
254
258
|
});
|
|
255
259
|
//#endregion
|
|
256
|
-
export {
|
|
260
|
+
export { P as default };
|
|
@@ -3,6 +3,7 @@ declare const QCarousel: {
|
|
|
3
3
|
currentSlide?: number;
|
|
4
4
|
} & import('../..').QBaseComponentProps & {
|
|
5
5
|
slides?: import('./types').QCarouselSlide[];
|
|
6
|
+
headingLevel?: number;
|
|
6
7
|
showIndicators?: boolean;
|
|
7
8
|
showControls?: boolean;
|
|
8
9
|
autoCycleInterval?: number;
|
|
@@ -26,6 +27,7 @@ declare const QCarousel: {
|
|
|
26
27
|
"update:currentSlide": (value: number) => any;
|
|
27
28
|
}, import('vue').PublicProps, {
|
|
28
29
|
wrap: boolean;
|
|
30
|
+
headingLevel: number;
|
|
29
31
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
30
32
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
31
33
|
slides: import('./types').QCarouselSlide[];
|
|
@@ -45,6 +47,7 @@ declare const QCarousel: {
|
|
|
45
47
|
currentSlide?: number;
|
|
46
48
|
} & import('../..').QBaseComponentProps & {
|
|
47
49
|
slides?: import('./types').QCarouselSlide[];
|
|
50
|
+
headingLevel?: number;
|
|
48
51
|
showIndicators?: boolean;
|
|
49
52
|
showControls?: boolean;
|
|
50
53
|
autoCycleInterval?: number;
|
|
@@ -63,6 +66,7 @@ declare const QCarousel: {
|
|
|
63
66
|
"onUpdate:currentSlide"?: ((value: number) => any) | undefined;
|
|
64
67
|
}>, {}, {}, {}, {}, {
|
|
65
68
|
wrap: boolean;
|
|
69
|
+
headingLevel: number;
|
|
66
70
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
67
71
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
68
72
|
slides: import('./types').QCarouselSlide[];
|
|
@@ -79,6 +83,7 @@ declare const QCarousel: {
|
|
|
79
83
|
currentSlide?: number;
|
|
80
84
|
} & import('../..').QBaseComponentProps & {
|
|
81
85
|
slides?: import('./types').QCarouselSlide[];
|
|
86
|
+
headingLevel?: number;
|
|
82
87
|
showIndicators?: boolean;
|
|
83
88
|
showControls?: boolean;
|
|
84
89
|
autoCycleInterval?: number;
|
|
@@ -102,6 +107,7 @@ declare const QCarousel: {
|
|
|
102
107
|
"update:currentSlide": (value: number) => any;
|
|
103
108
|
}, string, {
|
|
104
109
|
wrap: boolean;
|
|
110
|
+
headingLevel: number;
|
|
105
111
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
106
112
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
107
113
|
slides: import('./types').QCarouselSlide[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA;AAGpB,cAAc,SAAS,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QBaseComponentProps } from '
|
|
1
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
2
2
|
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a single slide in the carousel.
|
|
@@ -25,6 +25,14 @@ export type QCarouselProps = QBaseComponentProps & {
|
|
|
25
25
|
* @category Content
|
|
26
26
|
*/
|
|
27
27
|
slides?: QCarouselSlide[];
|
|
28
|
+
/**
|
|
29
|
+
* The heading level of the slide titles, so screen reader users can find the carousel by the
|
|
30
|
+
* title of the slide it shows. Choose the level that fits the page's heading outline. A value
|
|
31
|
+
* outside 1–6 renders the titles in a plain `div`. Defaults to 2.
|
|
32
|
+
*
|
|
33
|
+
* @category Content
|
|
34
|
+
*/
|
|
35
|
+
headingLevel?: number;
|
|
28
36
|
/**
|
|
29
37
|
* Whether to show slide indicators (dots) below the carousel.
|
|
30
38
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAA;IAEV,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IAEb,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAA;IAEzB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAElC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;IAE3B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC5B;;;;;;OAMG;IACH,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAA;IAEtD;;;;;OAKG;IACH,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAA;IAErD;;;;OAIG;IACH,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;CAC3B,CAAA"}
|
|
@@ -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":"AA0EA;AA0LC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAMvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAwFnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA0IT,OAAO,IAA6B;;iCAdb,GAAG;gCACJ,GAAG;wBACV,GAAG;;;;;;EAiB/B;AAuBD,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"}
|
|
@@ -16,6 +16,8 @@ var E = [
|
|
|
16
16
|
"id",
|
|
17
17
|
"aria-checked",
|
|
18
18
|
"aria-required",
|
|
19
|
+
"aria-readonly",
|
|
20
|
+
"aria-invalid",
|
|
19
21
|
"disabled",
|
|
20
22
|
"readonly",
|
|
21
23
|
"aria-describedby",
|
|
@@ -38,6 +40,7 @@ var E = [
|
|
|
38
40
|
size: {},
|
|
39
41
|
disabled: { type: Boolean },
|
|
40
42
|
readonly: { type: Boolean },
|
|
43
|
+
invalid: { type: Boolean },
|
|
41
44
|
indeterminate: { type: Boolean },
|
|
42
45
|
hasFocusOutline: {
|
|
43
46
|
type: Boolean,
|
|
@@ -56,6 +59,7 @@ var E = [
|
|
|
56
59
|
{
|
|
57
60
|
"q-checkbox--readonly": d.readonly,
|
|
58
61
|
"q-checkbox--disabled": d.disabled,
|
|
62
|
+
"q-checkbox--invalid": d.invalid,
|
|
59
63
|
"q-checkbox--checked": f.value,
|
|
60
64
|
"q-checkbox--indeterminate": d.indeterminate,
|
|
61
65
|
"q-checkbox--focus-style": d.hasFocusOutline,
|
|
@@ -86,6 +90,7 @@ var E = [
|
|
|
86
90
|
readonly: d.readonly,
|
|
87
91
|
disabled: d.disabled,
|
|
88
92
|
required: d.required,
|
|
93
|
+
invalid: d.invalid,
|
|
89
94
|
help: d.help,
|
|
90
95
|
"help-display": d.helpDisplay,
|
|
91
96
|
icons: d.icons,
|
|
@@ -93,7 +98,7 @@ var E = [
|
|
|
93
98
|
}, u({
|
|
94
99
|
"label.prepend": C(() => [_(e.$slots, "label.prepend")]),
|
|
95
100
|
"label.append": C(() => [_(e.$slots, "label.append")]),
|
|
96
|
-
control: C(({ describedBy: a }) => [l("div", {
|
|
101
|
+
control: C(({ describedBy: a, invalid: o }) => [c(" eslint-disable-next-line vuejs-accessibility/click-events-have-key-events, vuejs-accessibility/no-static-element-interactions -- The checkbox button inside takes the keyboard; this click is for the drawn box "), l("div", {
|
|
97
102
|
class: m(I.value),
|
|
98
103
|
style: h(R.value),
|
|
99
104
|
onClick: T(z, ["prevent"]),
|
|
@@ -121,6 +126,8 @@ var E = [
|
|
|
121
126
|
"data-testid": "checkbox-button",
|
|
122
127
|
"aria-checked": d.indeterminate ? "mixed" : f.value,
|
|
123
128
|
"aria-required": d.required || void 0,
|
|
129
|
+
"aria-readonly": d.readonly || void 0,
|
|
130
|
+
"aria-invalid": o || void 0,
|
|
124
131
|
disabled: d.disabled,
|
|
125
132
|
readonly: d.readonly
|
|
126
133
|
}, e.$attrs, {
|
|
@@ -143,6 +150,7 @@ var E = [
|
|
|
143
150
|
"readonly",
|
|
144
151
|
"disabled",
|
|
145
152
|
"required",
|
|
153
|
+
"invalid",
|
|
146
154
|
"help",
|
|
147
155
|
"help-display",
|
|
148
156
|
"icons",
|
|
@@ -7,6 +7,7 @@ declare const QCheckbox: {
|
|
|
7
7
|
size?: import('../..').QComponentSize;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readonly?: boolean;
|
|
10
|
+
invalid?: boolean;
|
|
10
11
|
indeterminate?: boolean;
|
|
11
12
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
12
13
|
hasFocusOutline?: boolean;
|
|
@@ -51,6 +52,7 @@ declare const QCheckbox: {
|
|
|
51
52
|
size?: import('../..').QComponentSize;
|
|
52
53
|
disabled?: boolean;
|
|
53
54
|
readonly?: boolean;
|
|
55
|
+
invalid?: boolean;
|
|
54
56
|
indeterminate?: boolean;
|
|
55
57
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
56
58
|
hasFocusOutline?: boolean;
|
|
@@ -88,6 +90,7 @@ declare const QCheckbox: {
|
|
|
88
90
|
size?: import('../..').QComponentSize;
|
|
89
91
|
disabled?: boolean;
|
|
90
92
|
readonly?: boolean;
|
|
93
|
+
invalid?: boolean;
|
|
91
94
|
indeterminate?: boolean;
|
|
92
95
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
93
96
|
hasFocusOutline?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA;AAGpB,cAAc,SAAS,CAAA"}
|
|
@@ -38,6 +38,14 @@ export type QCheckboxProps = Omit<QLabelProps, 'labelPosition'> & QFieldHelpProp
|
|
|
38
38
|
* @category State
|
|
39
39
|
*/
|
|
40
40
|
readonly?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If true, the checkbox is invalid: the box takes a danger border, and assistive
|
|
43
|
+
* technology reads it as invalid. Say why in `help`, which describes the checkbox,
|
|
44
|
+
* since the border alone shows it only in color.
|
|
45
|
+
*
|
|
46
|
+
* @category State
|
|
47
|
+
*/
|
|
48
|
+
invalid?: boolean;
|
|
41
49
|
/**
|
|
42
50
|
* If set to true, the checkbox appears in an indeterminate state.
|
|
43
51
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,GAC9D,eAAe,GAAG;IACjB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAA;IAEzC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,GAC9D,eAAe,GAAG;IACjB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAA;IAEzC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAA;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA"}
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
+
headingLevel: number;
|
|
26
27
|
icons: typeof DEFAULT_ICONS;
|
|
27
28
|
texts: typeof DEFAULT_TEXTS;
|
|
28
29
|
width: import('./types').QCollapsibleWidth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AA4EA;AAkKC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAK1C,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyEtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiKT,OAAO,IAA6B;;sBAfvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAehC;AAsBD,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"}
|