@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
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { useColor as t } from "../../composables/useColor/index.js";
|
|
3
3
|
import { QIcon as n } from "../QIcon/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { getTabbableElements as ee } from "../../utils/focus.js";
|
|
5
|
+
import { helpElementId as r, resolveHelp as i } from "../__internal__/QHelpPopover/resolveHelp.js";
|
|
6
|
+
import { QOverflow as te } from "../QOverflow/index.js";
|
|
7
|
+
import a from "./QStepHeader2.vue.js";
|
|
8
|
+
import o from "./QStepsNav2.vue.js";
|
|
9
|
+
import { useEnabledSelection as ne } from "../../composables/useEnabledSelection/index.js";
|
|
10
|
+
import { DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
|
|
11
|
+
import { Fragment as l, computed as u, createBlock as re, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as ie, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeModels as _, mergeProps as v, nextTick as ae, normalizeClass as y, normalizeProps as b, normalizeStyle as oe, openBlock as x, renderList as S, renderSlot as C, shallowRef as se, toDisplayString as w, toRef as ce, unref as T, useModel as le, useTemplateRef as ue, watch as E, withCtx as D } from "vue";
|
|
11
12
|
//#region src/components/QSteps/QSteps.vue?vue&type=script&setup=true&lang.ts
|
|
12
13
|
var de = ["id"], fe = { class: "q-steps__list" }, pe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "q-steps__panel"
|
|
15
|
-
}, me = { class: "q-steps__panel-header" }, he = { class: "q-steps__panel-header-icon" }, ge = { class: "q-steps__panel-header-title" }, _e = { class: "q-steps__content" }, ve = ["id"], ye = { class: "q-steps__list" }, be = ["id", "aria-labelledby"], xe = { class: "q-steps__content" }, Se = ["id"],
|
|
16
|
+
}, me = { class: "q-steps__panel-header" }, he = { class: "q-steps__panel-header-icon" }, ge = { class: "q-steps__panel-header-title" }, _e = { class: "q-steps__content" }, ve = ["id"], ye = { class: "q-steps__list" }, be = ["id", "aria-labelledby"], xe = { class: "q-steps__content" }, Se = ["id"], O = /*@__PURE__*/ h({
|
|
16
17
|
__name: "QSteps",
|
|
17
|
-
props: /*@__PURE__*/
|
|
18
|
+
props: /*@__PURE__*/ _({
|
|
18
19
|
id: {},
|
|
19
20
|
class: {},
|
|
20
21
|
steps: {},
|
|
@@ -25,167 +26,181 @@ var de = ["id"], fe = { class: "q-steps__list" }, pe = {
|
|
|
25
26
|
type: Boolean,
|
|
26
27
|
default: !1
|
|
27
28
|
},
|
|
28
|
-
icons: { default: () =>
|
|
29
|
-
texts: { default: () =>
|
|
29
|
+
icons: { default: () => s },
|
|
30
|
+
texts: { default: () => c }
|
|
30
31
|
}, {
|
|
31
32
|
modelValue: {},
|
|
32
33
|
modelModifiers: {}
|
|
33
34
|
}),
|
|
34
|
-
emits: /*@__PURE__*/
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
37
|
-
function
|
|
38
|
-
return `${
|
|
35
|
+
emits: /*@__PURE__*/ _(["finish"], ["update:modelValue"]),
|
|
36
|
+
setup(s, { expose: c, emit: h }) {
|
|
37
|
+
let _ = s, O = h, k = e(ce(_, "id")), A = u(() => `${k.value}-panel`);
|
|
38
|
+
function j(e) {
|
|
39
|
+
return `${k.value}-step-${e}`;
|
|
39
40
|
}
|
|
40
|
-
let
|
|
41
|
+
let M = le(s, "modelValue"), N = se(/* @__PURE__ */ new Set()), P = u(() => _.direction === "horizontal");
|
|
42
|
+
E(M, async () => {
|
|
43
|
+
let e = document.activeElement, t = e?.closest(".q-steps__nav");
|
|
44
|
+
if (!e || !t) return;
|
|
45
|
+
let n = F(t).indexOf(e);
|
|
46
|
+
if (await ae(), e.isConnected) return;
|
|
47
|
+
let r = document.getElementById(k.value)?.querySelector(".q-steps__nav");
|
|
48
|
+
if (!r) return;
|
|
49
|
+
let i = F(r)[n];
|
|
50
|
+
i?.focus(), document.activeElement !== i && ee(r)[0]?.focus();
|
|
51
|
+
});
|
|
52
|
+
function F(e) {
|
|
53
|
+
return Array.from(e.querySelectorAll("button, [href], input, select, textarea, [tabindex]"));
|
|
54
|
+
}
|
|
55
|
+
let Ce = u(() => [
|
|
41
56
|
"q-steps",
|
|
42
|
-
`q-steps--${
|
|
43
|
-
`q-steps--${
|
|
44
|
-
|
|
45
|
-
]), { style:
|
|
46
|
-
"--q-steps-on-neutral-color":
|
|
47
|
-
"--q-steps-on-primary-color":
|
|
48
|
-
"--q-steps-neutral-hover-color":
|
|
49
|
-
"--q-steps-on-neutral-hover-color":
|
|
50
|
-
"--q-steps-primary-hover-color":
|
|
51
|
-
"--q-steps-on-primary-hover-color":
|
|
57
|
+
`q-steps--${_.direction}`,
|
|
58
|
+
`q-steps--${_.variant}`,
|
|
59
|
+
_.class
|
|
60
|
+
]), { style: I } = t("neutral"), { style: L } = t("primary"), { style: we } = t("success"), Te = u(() => ({
|
|
61
|
+
"--q-steps-on-neutral-color": I.value?.onMainColor,
|
|
62
|
+
"--q-steps-on-primary-color": L.value?.onMainColor,
|
|
63
|
+
"--q-steps-neutral-hover-color": I.value?.hoverColor,
|
|
64
|
+
"--q-steps-on-neutral-hover-color": I.value?.onHoverColor,
|
|
65
|
+
"--q-steps-primary-hover-color": L.value?.hoverColor,
|
|
66
|
+
"--q-steps-on-primary-hover-color": L.value?.onHoverColor,
|
|
52
67
|
"--q-steps-success-hover-color": we.value?.hoverColor
|
|
53
|
-
})), { enabledItems:
|
|
54
|
-
help:
|
|
68
|
+
})), { enabledItems: R, ensureSelection: z } = ne(() => _.steps, M), B = u(() => R.value.findIndex((e) => e.value === M.value)), V = u(() => _.steps.findIndex((e) => e.value === M.value)), H = u(() => _.steps[V.value]), U = u(() => r(j(V.value))), W = u(() => i({
|
|
69
|
+
help: H.value.help,
|
|
55
70
|
helpDisplay: "subtext"
|
|
56
|
-
}).inlineText),
|
|
57
|
-
|
|
71
|
+
}).inlineText), G = ue("overflowRef");
|
|
72
|
+
E(() => P.value ? G.value?.contentEl : null, (e) => {
|
|
58
73
|
e?.setAttribute("role", "list");
|
|
59
74
|
}, {
|
|
60
75
|
immediate: !0,
|
|
61
76
|
flush: "post"
|
|
62
|
-
}),
|
|
77
|
+
}), E(() => [V.value, G.value], ([e, t]) => {
|
|
63
78
|
let n = t?.contentEl?.children[e];
|
|
64
79
|
n instanceof HTMLElement && t?.scrollElementIntoView(n);
|
|
65
80
|
}, { flush: "post" });
|
|
66
|
-
let
|
|
67
|
-
function G(e) {
|
|
68
|
-
return e.value === A.value;
|
|
69
|
-
}
|
|
70
|
-
function K(e) {
|
|
71
|
-
return (j.value.has(e.value) || !!e.completed) && !G(e);
|
|
72
|
-
}
|
|
73
|
-
function q(e) {
|
|
74
|
-
return h.disabled || !!e.disabled;
|
|
75
|
-
}
|
|
81
|
+
let K = u(() => R.value.length ? B.value <= 0 : !0), q = u(() => R.value.length ? B.value === R.value.length - 1 : !0);
|
|
76
82
|
function J(e) {
|
|
77
|
-
|
|
78
|
-
return t ? G(t) || K(t) : !1;
|
|
83
|
+
return e.value === M.value;
|
|
79
84
|
}
|
|
80
85
|
function Y(e) {
|
|
81
|
-
return
|
|
86
|
+
return (N.value.has(e.value) || !!e.completed) && !J(e);
|
|
82
87
|
}
|
|
83
88
|
function X(e) {
|
|
84
|
-
return
|
|
89
|
+
return _.disabled || !!e.disabled;
|
|
85
90
|
}
|
|
86
91
|
function Z(e) {
|
|
87
|
-
|
|
92
|
+
let t = _.steps[e + 1];
|
|
93
|
+
return t ? J(t) || Y(t) : !1;
|
|
94
|
+
}
|
|
95
|
+
function Ee(e) {
|
|
96
|
+
return X(e) ? !1 : !_.linear || J(e) ? !0 : N.value.has(e.value) || !!e.completed;
|
|
97
|
+
}
|
|
98
|
+
function De(e) {
|
|
99
|
+
return !Ee(e);
|
|
100
|
+
}
|
|
101
|
+
function Oe(e) {
|
|
102
|
+
if (_.variant !== "dot") {
|
|
88
103
|
if (e.completed) return "completed";
|
|
89
|
-
if (
|
|
104
|
+
if (J(e)) return "active";
|
|
90
105
|
}
|
|
91
106
|
}
|
|
92
107
|
function Q(e) {
|
|
93
108
|
return ["q-step__header", {
|
|
94
|
-
"q-step--active":
|
|
109
|
+
"q-step--active": J(e),
|
|
95
110
|
"q-step--completed": !!e.completed,
|
|
96
|
-
"q-step--disabled":
|
|
97
|
-
"q-step--visited":
|
|
98
|
-
"q-step--selectable":
|
|
111
|
+
"q-step--disabled": X(e),
|
|
112
|
+
"q-step--visited": Y(e),
|
|
113
|
+
"q-step--selectable": Ee(e)
|
|
99
114
|
}];
|
|
100
115
|
}
|
|
101
|
-
function
|
|
116
|
+
function ke(e, t) {
|
|
102
117
|
return ["q-step", {
|
|
103
|
-
"q-step--active":
|
|
104
|
-
"q-step--disabled":
|
|
105
|
-
"q-step--visited":
|
|
106
|
-
"q-step--last": t ===
|
|
107
|
-
"q-step--next-reached":
|
|
118
|
+
"q-step--active": J(e),
|
|
119
|
+
"q-step--disabled": X(e),
|
|
120
|
+
"q-step--visited": Y(e),
|
|
121
|
+
"q-step--last": t === _.steps.length - 1,
|
|
122
|
+
"q-step--next-reached": Z(t)
|
|
108
123
|
}];
|
|
109
124
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
125
|
+
function Ae(e) {
|
|
126
|
+
M.value = e.value;
|
|
112
127
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
115
|
-
let e =
|
|
116
|
-
t <= 0 || (
|
|
128
|
+
function je() {
|
|
129
|
+
if (_.disabled) return;
|
|
130
|
+
let e = R.value, t = e.findIndex((e) => e.value === M.value);
|
|
131
|
+
t <= 0 || (M.value = e[t - 1].value);
|
|
117
132
|
}
|
|
118
|
-
function
|
|
119
|
-
if (
|
|
120
|
-
let e =
|
|
133
|
+
function Me() {
|
|
134
|
+
if (_.disabled) return;
|
|
135
|
+
let e = R.value, t = e.findIndex((e) => e.value === M.value);
|
|
121
136
|
if (t === -1) {
|
|
122
|
-
e.length ||
|
|
137
|
+
e.length || O("finish");
|
|
123
138
|
return;
|
|
124
139
|
}
|
|
125
140
|
if (t >= e.length - 1) {
|
|
126
|
-
|
|
141
|
+
O("finish");
|
|
127
142
|
return;
|
|
128
143
|
}
|
|
129
|
-
|
|
144
|
+
M.value = e[t + 1].value;
|
|
130
145
|
}
|
|
131
|
-
let
|
|
132
|
-
disabled:
|
|
133
|
-
label:
|
|
134
|
-
isFirst:
|
|
135
|
-
isLast:
|
|
136
|
-
onClick:
|
|
137
|
-
})), $ =
|
|
138
|
-
disabled:
|
|
139
|
-
label:
|
|
140
|
-
isFirst:
|
|
141
|
-
isLast:
|
|
142
|
-
onClick:
|
|
146
|
+
let Ne = u(() => ({
|
|
147
|
+
disabled: K.value || !!_.disabled,
|
|
148
|
+
label: _.texts.previous,
|
|
149
|
+
isFirst: K.value,
|
|
150
|
+
isLast: q.value,
|
|
151
|
+
onClick: je
|
|
152
|
+
})), $ = u(() => ({
|
|
153
|
+
disabled: q.value || !!_.disabled,
|
|
154
|
+
label: _.texts.next,
|
|
155
|
+
isFirst: K.value,
|
|
156
|
+
isLast: q.value,
|
|
157
|
+
onClick: Me
|
|
143
158
|
}));
|
|
144
|
-
return
|
|
145
|
-
let e = new Set(
|
|
146
|
-
[...
|
|
147
|
-
}, { immediate: !0 }),
|
|
148
|
-
|
|
149
|
-
let e =
|
|
150
|
-
e !== void 0 && (
|
|
151
|
-
}, { immediate: !0 }),
|
|
152
|
-
previous:
|
|
153
|
-
next:
|
|
154
|
-
isFirst:
|
|
155
|
-
isLast:
|
|
156
|
-
}), (e, t) => (
|
|
157
|
-
id:
|
|
158
|
-
class:
|
|
159
|
+
return E(() => _.steps.map((e) => [e.value, !!e.disabled]), () => {
|
|
160
|
+
let e = new Set(_.steps.map((e) => e.value));
|
|
161
|
+
[...N.value].some((t) => !e.has(t)) && (N.value = new Set([...N.value].filter((t) => e.has(t)))), z();
|
|
162
|
+
}, { immediate: !0 }), E(M, () => {
|
|
163
|
+
z();
|
|
164
|
+
let e = M.value;
|
|
165
|
+
e !== void 0 && (N.value.has(e) || (N.value = /* @__PURE__ */ new Set([...N.value, e])));
|
|
166
|
+
}, { immediate: !0 }), c({
|
|
167
|
+
previous: je,
|
|
168
|
+
next: Me,
|
|
169
|
+
isFirst: K,
|
|
170
|
+
isLast: q
|
|
171
|
+
}), (e, t) => (x(), f("div", {
|
|
172
|
+
id: T(k),
|
|
173
|
+
class: y(Ce.value),
|
|
159
174
|
style: oe(Te.value)
|
|
160
|
-
}, [
|
|
161
|
-
|
|
175
|
+
}, [d(" Horizontal: headers strip, then content, then nav "), P.value ? (x(), f(l, { key: 0 }, [
|
|
176
|
+
p("div", fe, [m(T(te), {
|
|
162
177
|
ref_key: "overflowRef",
|
|
163
|
-
ref:
|
|
178
|
+
ref: G,
|
|
164
179
|
class: "q-steps__overflow",
|
|
165
180
|
"content-class": "q-steps__track",
|
|
166
181
|
direction: "horizontal",
|
|
167
182
|
"scroll-mode": "page",
|
|
168
|
-
icons:
|
|
169
|
-
texts:
|
|
183
|
+
icons: _.icons,
|
|
184
|
+
texts: _.texts
|
|
170
185
|
}, {
|
|
171
|
-
default:
|
|
186
|
+
default: D(() => [(x(!0), f(l, null, S(_.steps, (t, n) => (x(), f("div", {
|
|
172
187
|
key: t.value,
|
|
173
|
-
class:
|
|
188
|
+
class: y(ke(t, n)),
|
|
174
189
|
role: "listitem"
|
|
175
|
-
}, [
|
|
190
|
+
}, [m(a, {
|
|
176
191
|
step: t,
|
|
177
192
|
index: n,
|
|
178
|
-
variant:
|
|
179
|
-
badge:
|
|
180
|
-
texts:
|
|
181
|
-
icons:
|
|
182
|
-
class:
|
|
183
|
-
disabled:
|
|
184
|
-
"aria-current":
|
|
185
|
-
"aria-describedby":
|
|
186
|
-
onClick: (e) =>
|
|
193
|
+
variant: _.variant,
|
|
194
|
+
badge: Oe(t),
|
|
195
|
+
texts: _.texts,
|
|
196
|
+
icons: _.icons,
|
|
197
|
+
class: y(Q(t)),
|
|
198
|
+
disabled: De(t),
|
|
199
|
+
"aria-current": J(t) ? "step" : void 0,
|
|
200
|
+
"aria-describedby": J(t) && W.value ? U.value : void 0,
|
|
201
|
+
onClick: (e) => Ae(t)
|
|
187
202
|
}, {
|
|
188
|
-
icon:
|
|
203
|
+
icon: D((t) => [C(e.$slots, "icon", v({ ref_for: !0 }, t))]),
|
|
189
204
|
_: 3
|
|
190
205
|
}, 8, [
|
|
191
206
|
"step",
|
|
@@ -202,43 +217,45 @@ var de = ["id"], fe = { class: "q-steps__list" }, pe = {
|
|
|
202
217
|
])], 2))), 128))]),
|
|
203
218
|
_: 3
|
|
204
219
|
}, 8, ["icons", "texts"])]),
|
|
205
|
-
|
|
206
|
-
step:
|
|
207
|
-
index:
|
|
208
|
-
}, () => [
|
|
220
|
+
H.value ? (x(), f("div", pe, [p("div", me, [p("span", he, [C(e.$slots, "icon", {
|
|
221
|
+
step: H.value,
|
|
222
|
+
index: V.value
|
|
223
|
+
}, () => [H.value.icon ? (x(), re(T(n), b(v({ key: 0 }, H.value.icon)), null, 16)) : (x(), f(l, { key: 1 }, [ie(w(V.value + 1), 1)], 64))])]), p("span", ge, w(H.value.title), 1)]), p("div", _e, [W.value ? (x(), f("p", {
|
|
209
224
|
key: 0,
|
|
210
|
-
id:
|
|
225
|
+
id: U.value,
|
|
211
226
|
class: "q-steps__help"
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
"prev-slot-props":
|
|
227
|
+
}, w(W.value), 9, ve)) : d("v-if", !0), C(e.$slots, "default")])])) : d("v-if", !0),
|
|
228
|
+
m(o, {
|
|
229
|
+
"prev-slot-props": Ne.value,
|
|
215
230
|
"next-slot-props": $.value,
|
|
216
|
-
|
|
231
|
+
disabled: _.disabled,
|
|
232
|
+
icons: _.icons
|
|
217
233
|
}, {
|
|
218
|
-
prev:
|
|
219
|
-
next:
|
|
234
|
+
prev: D((t) => [C(e.$slots, "prev", b(g(t)))]),
|
|
235
|
+
next: D((t) => [C(e.$slots, "next", b(g(t)))]),
|
|
220
236
|
_: 3
|
|
221
237
|
}, 8, [
|
|
222
238
|
"prev-slot-props",
|
|
223
239
|
"next-slot-props",
|
|
240
|
+
"disabled",
|
|
224
241
|
"icons"
|
|
225
242
|
])
|
|
226
|
-
], 64)) : (
|
|
227
|
-
id:
|
|
243
|
+
], 64)) : (x(), f(l, { key: 1 }, [d("\n Vertical: content + nav as a sibling right after the active header,\n outside the step row so the panel isn't part of the step's accessible content.\n The strip is not a list, because that panel cannot be a listitem.\n "), p("div", ye, [(x(!0), f(l, null, S(_.steps, (t, n) => (x(), f(l, { key: t.value }, [p("div", { class: y(ke(t, n)) }, [m(a, {
|
|
244
|
+
id: j(n),
|
|
228
245
|
step: t,
|
|
229
246
|
index: n,
|
|
230
|
-
variant:
|
|
231
|
-
badge:
|
|
232
|
-
texts:
|
|
233
|
-
icons:
|
|
234
|
-
class:
|
|
235
|
-
disabled:
|
|
236
|
-
"aria-current":
|
|
237
|
-
"aria-controls":
|
|
238
|
-
"aria-describedby":
|
|
239
|
-
onClick: (e) =>
|
|
247
|
+
variant: _.variant,
|
|
248
|
+
badge: Oe(t),
|
|
249
|
+
texts: _.texts,
|
|
250
|
+
icons: _.icons,
|
|
251
|
+
class: y(Q(t)),
|
|
252
|
+
disabled: De(t),
|
|
253
|
+
"aria-current": J(t) ? "step" : void 0,
|
|
254
|
+
"aria-controls": J(t) ? A.value : void 0,
|
|
255
|
+
"aria-describedby": J(t) && W.value ? U.value : void 0,
|
|
256
|
+
onClick: (e) => Ae(t)
|
|
240
257
|
}, {
|
|
241
|
-
icon:
|
|
258
|
+
icon: D((t) => [C(e.$slots, "icon", v({ ref_for: !0 }, t))]),
|
|
242
259
|
_: 3
|
|
243
260
|
}, 8, [
|
|
244
261
|
"id",
|
|
@@ -254,29 +271,31 @@ var de = ["id"], fe = { class: "q-steps__list" }, pe = {
|
|
|
254
271
|
"aria-controls",
|
|
255
272
|
"aria-describedby",
|
|
256
273
|
"onClick"
|
|
257
|
-
])], 2),
|
|
274
|
+
])], 2), J(t) ? (x(), f("div", {
|
|
258
275
|
key: 0,
|
|
259
|
-
id:
|
|
260
|
-
class:
|
|
261
|
-
"aria-labelledby":
|
|
262
|
-
}, [
|
|
276
|
+
id: A.value,
|
|
277
|
+
class: y(["q-steps__body", { "q-step--next-reached": Z(n) }]),
|
|
278
|
+
"aria-labelledby": j(n)
|
|
279
|
+
}, [p("div", xe, [W.value ? (x(), f("p", {
|
|
263
280
|
key: 0,
|
|
264
|
-
id:
|
|
281
|
+
id: U.value,
|
|
265
282
|
class: "q-steps__help"
|
|
266
|
-
},
|
|
267
|
-
"prev-slot-props":
|
|
283
|
+
}, w(W.value), 9, Se)) : d("v-if", !0), C(e.$slots, "default")]), m(o, {
|
|
284
|
+
"prev-slot-props": Ne.value,
|
|
268
285
|
"next-slot-props": $.value,
|
|
269
|
-
|
|
286
|
+
disabled: _.disabled,
|
|
287
|
+
icons: _.icons
|
|
270
288
|
}, {
|
|
271
|
-
prev:
|
|
272
|
-
next:
|
|
289
|
+
prev: D((t) => [C(e.$slots, "prev", v({ ref_for: !0 }, t))]),
|
|
290
|
+
next: D((t) => [C(e.$slots, "next", v({ ref_for: !0 }, t))]),
|
|
273
291
|
_: 3
|
|
274
292
|
}, 8, [
|
|
275
293
|
"prev-slot-props",
|
|
276
294
|
"next-slot-props",
|
|
295
|
+
"disabled",
|
|
277
296
|
"icons"
|
|
278
|
-
])], 10, be)) :
|
|
297
|
+
])], 10, be)) : d("v-if", !0)], 64))), 128))])], 64))], 14, de));
|
|
279
298
|
}
|
|
280
299
|
});
|
|
281
300
|
//#endregion
|
|
282
|
-
export {
|
|
301
|
+
export { O as default };
|
|
@@ -19,6 +19,13 @@ type QStepsNavProps = {
|
|
|
19
19
|
* @category Behavior
|
|
20
20
|
*/
|
|
21
21
|
nextSlotProps: QStepsNavSlotProps;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the whole `QSteps` is disabled. Its buttons are then `disabled` and out of the
|
|
24
|
+
* Tab order.
|
|
25
|
+
*
|
|
26
|
+
* @category State
|
|
27
|
+
*/
|
|
28
|
+
disabled: boolean;
|
|
22
29
|
/**
|
|
23
30
|
* Icons for the default previous/next buttons.
|
|
24
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QStepsNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/QStepsNav.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QStepsNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/QStepsNav.vue"],"names":[],"mappings":"AAkCA;AAyHC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD;;;;;GAKG;AACH,KAAK,cAAc,GAAG;IACrB;;;;OAIG;IACH,aAAa,EAAE,kBAAkB,CAAA;IAEjC;;;;OAIG;IACH,aAAa,EAAE,kBAAkB,CAAA;IAEjC;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;AAmCF,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;;;;;;;YAXxB,GAAG;;;;;;;YACF,GAAG;;;;EAe7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,mTAOnB,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,42 +1,56 @@
|
|
|
1
1
|
import { QIcon as e } from "../QIcon/index.js";
|
|
2
2
|
import { QButton as t } from "../QButton/index.js";
|
|
3
|
-
import { createElementBlock as n, createVNode as r, defineComponent as i, guardReactiveProps as a, normalizeProps as o, openBlock as s,
|
|
3
|
+
import { createElementBlock as n, createVNode as r, defineComponent as i, guardReactiveProps as a, normalizeProps as o, openBlock as s, ref as c, renderSlot as l, unref as u, withCtx as d } from "vue";
|
|
4
4
|
//#region src/components/QSteps/QStepsNav.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var f = { class: "q-steps__nav" }, p = /*@__PURE__*/ i({
|
|
6
6
|
__name: "QStepsNav",
|
|
7
7
|
props: {
|
|
8
8
|
prevSlotProps: {},
|
|
9
9
|
nextSlotProps: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
10
11
|
icons: {}
|
|
11
12
|
},
|
|
12
13
|
setup(i) {
|
|
13
|
-
let
|
|
14
|
-
|
|
14
|
+
let p = i, m = c(null);
|
|
15
|
+
function h(e, t) {
|
|
16
|
+
return p.disabled || t.disabled && m.value !== e;
|
|
17
|
+
}
|
|
18
|
+
function g() {
|
|
19
|
+
p.nextSlotProps.disabled || p.nextSlotProps.onClick();
|
|
20
|
+
}
|
|
21
|
+
return (i, c) => (s(), n("div", f, [l(i.$slots, "prev", o(a(p.prevSlotProps)), () => [r(u(t), {
|
|
15
22
|
"data-testid": "steps-prev",
|
|
16
|
-
label:
|
|
17
|
-
disabled:
|
|
18
|
-
|
|
23
|
+
label: p.prevSlotProps.label,
|
|
24
|
+
disabled: h("previous", p.prevSlotProps),
|
|
25
|
+
"aria-disabled": p.prevSlotProps.disabled || void 0,
|
|
26
|
+
onFocus: c[0] ||= (e) => m.value = "previous",
|
|
27
|
+
onBlur: c[1] ||= (e) => m.value = null,
|
|
28
|
+
onClick: p.prevSlotProps.onClick
|
|
19
29
|
}, {
|
|
20
|
-
default:
|
|
30
|
+
default: d(() => [r(u(e), o(a(p.icons.previous)), null, 16)]),
|
|
21
31
|
_: 1
|
|
22
32
|
}, 8, [
|
|
23
33
|
"label",
|
|
24
34
|
"disabled",
|
|
35
|
+
"aria-disabled",
|
|
25
36
|
"onClick"
|
|
26
|
-
])]),
|
|
37
|
+
])]), l(i.$slots, "next", o(a(p.nextSlotProps)), () => [r(u(t), {
|
|
27
38
|
"data-testid": "steps-next",
|
|
28
|
-
label:
|
|
29
|
-
disabled:
|
|
30
|
-
|
|
39
|
+
label: p.nextSlotProps.label,
|
|
40
|
+
disabled: h("next", p.nextSlotProps),
|
|
41
|
+
"aria-disabled": p.nextSlotProps.disabled || void 0,
|
|
42
|
+
onFocus: c[2] ||= (e) => m.value = "next",
|
|
43
|
+
onBlur: c[3] ||= (e) => m.value = null,
|
|
44
|
+
onClick: g
|
|
31
45
|
}, {
|
|
32
|
-
append:
|
|
46
|
+
append: d(() => [r(u(e), o(a(p.icons.next)), null, 16)]),
|
|
33
47
|
_: 1
|
|
34
48
|
}, 8, [
|
|
35
49
|
"label",
|
|
36
50
|
"disabled",
|
|
37
|
-
"
|
|
51
|
+
"aria-disabled"
|
|
38
52
|
])])]));
|
|
39
53
|
}
|
|
40
54
|
});
|
|
41
55
|
//#endregion
|
|
42
|
-
export {
|
|
56
|
+
export { p as default };
|
|
@@ -30,14 +30,16 @@ export declare const DEFAULT_ICONS: {
|
|
|
30
30
|
/**
|
|
31
31
|
* Default text overrides for {@link QSteps}. The `previous` and `next` keys label the
|
|
32
32
|
* step buttons, while the overflow's `back` and `forward` keys label the strip's scroll arrows.
|
|
33
|
+
* The scroll arrows get names of their own here: with the overflow's "Previous" and "Next", an
|
|
34
|
+
* overflowing strip had two buttons named "Next" that do different things (WCAG 2.4.6).
|
|
33
35
|
*/
|
|
34
36
|
export declare const DEFAULT_TEXTS: {
|
|
37
|
+
back: string;
|
|
38
|
+
forward: string;
|
|
35
39
|
previous: string;
|
|
36
40
|
next: string;
|
|
37
41
|
completed: string;
|
|
38
42
|
current: string;
|
|
39
|
-
back: string;
|
|
40
|
-
forward: string;
|
|
41
43
|
required: string;
|
|
42
44
|
};
|
|
43
45
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/constants.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAcY,CAAA;AAEtC
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/constants.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAcY,CAAA;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;CASQ,CAAA"}
|
|
@@ -197,10 +197,12 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
197
197
|
'label.append'?(_: {}): any;
|
|
198
198
|
control?(_: {
|
|
199
199
|
describedBy: string | undefined;
|
|
200
|
+
invalid: boolean;
|
|
200
201
|
}): any;
|
|
201
202
|
prepend?(_: {}): any;
|
|
202
203
|
default?(_: {
|
|
203
204
|
describedBy: string | undefined;
|
|
205
|
+
invalid: boolean;
|
|
204
206
|
}): any;
|
|
205
207
|
append?(_: {}): any;
|
|
206
208
|
extras?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"AA+DA;AAuMC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAMrC,KAAK,WAAW,GAAG,YAAY,CAAC;AAuHjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAyKq7V,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvB3jW,wBASG"}
|
|
@@ -7,6 +7,9 @@ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s
|
|
|
7
7
|
var k = [
|
|
8
8
|
"id",
|
|
9
9
|
"aria-checked",
|
|
10
|
+
"aria-required",
|
|
11
|
+
"aria-readonly",
|
|
12
|
+
"aria-invalid",
|
|
10
13
|
"disabled",
|
|
11
14
|
"aria-describedby"
|
|
12
15
|
], A = { class: "q-switch__labels" }, j = {
|
|
@@ -35,7 +38,8 @@ var k = [
|
|
|
35
38
|
uncheckedColor: {},
|
|
36
39
|
size: {},
|
|
37
40
|
disabled: { type: Boolean },
|
|
38
|
-
readonly: { type: Boolean }
|
|
41
|
+
readonly: { type: Boolean },
|
|
42
|
+
invalid: { type: Boolean }
|
|
39
43
|
}, {
|
|
40
44
|
modelValue: { type: Boolean },
|
|
41
45
|
modelModifiers: {}
|
|
@@ -62,6 +66,7 @@ var k = [
|
|
|
62
66
|
"q-switch--checked": N.value,
|
|
63
67
|
"q-switch--disabled": f.disabled,
|
|
64
68
|
"q-switch--readonly": f.readonly,
|
|
69
|
+
"q-switch--invalid": f.invalid,
|
|
65
70
|
"q-switch--with-labels": f.showStateLabels && (f.trueLabel || f.falseLabel)
|
|
66
71
|
}
|
|
67
72
|
]), Y = a(() => ({
|
|
@@ -85,12 +90,13 @@ var k = [
|
|
|
85
90
|
readonly: f.readonly,
|
|
86
91
|
disabled: f.disabled,
|
|
87
92
|
required: f.required,
|
|
93
|
+
invalid: f.invalid,
|
|
88
94
|
help: f.help,
|
|
89
95
|
"help-display": f.helpDisplay,
|
|
90
96
|
icons: f.icons,
|
|
91
97
|
texts: f.texts
|
|
92
98
|
}, {
|
|
93
|
-
control: E(({ describedBy: r }) => [l("div", {
|
|
99
|
+
control: E(({ describedBy: r, invalid: a }) => [s(" eslint-disable-next-line vuejs-accessibility/click-events-have-key-events, vuejs-accessibility/no-static-element-interactions -- The native switch inside takes the keyboard; this click is for the drawn track "), l("div", {
|
|
94
100
|
class: "q-switch__container",
|
|
95
101
|
onClick: R
|
|
96
102
|
}, [l("div", {
|
|
@@ -105,6 +111,9 @@ var k = [
|
|
|
105
111
|
type: "checkbox",
|
|
106
112
|
role: "switch",
|
|
107
113
|
"aria-checked": N.value,
|
|
114
|
+
"aria-required": f.required || void 0,
|
|
115
|
+
"aria-readonly": f.readonly || void 0,
|
|
116
|
+
"aria-invalid": a || void 0,
|
|
108
117
|
disabled: f.disabled
|
|
109
118
|
}, e.$attrs, {
|
|
110
119
|
"aria-describedby": x(n)(r, H.value),
|
|
@@ -121,6 +130,7 @@ var k = [
|
|
|
121
130
|
"readonly",
|
|
122
131
|
"disabled",
|
|
123
132
|
"required",
|
|
133
|
+
"invalid",
|
|
124
134
|
"help",
|
|
125
135
|
"help-display",
|
|
126
136
|
"icons",
|