@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,16 +1,17 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
2
|
import { useGroup as t } from "../../composables/useGroup/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { useId as n } from "../../composables/useId/index.js";
|
|
4
|
+
import { QOverflow as r } from "../QOverflow/index.js";
|
|
5
|
+
import { useEnabledSelection as i } from "../../composables/useEnabledSelection/index.js";
|
|
6
|
+
import { TabsSymbol as a } from "./context.js";
|
|
7
|
+
import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, provide as v, ref as y, renderSlot as b, shallowRef as x, toRef as S, unref as C, useModel as w, useTemplateRef as T, watch as E, withCtx as D } from "vue";
|
|
7
8
|
//#region src/components/QTabs/QTabs.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
9
|
+
var O = ["id"], k = {
|
|
9
10
|
ref: "tabListHost",
|
|
10
11
|
class: "q-tabs__list"
|
|
11
|
-
},
|
|
12
|
+
}, A = { class: "q-tabs__panels" }, j = /*@__PURE__*/ d({
|
|
12
13
|
__name: "QTabs",
|
|
13
|
-
props: /*@__PURE__*/
|
|
14
|
+
props: /*@__PURE__*/ f({
|
|
14
15
|
id: {},
|
|
15
16
|
class: {},
|
|
16
17
|
direction: { default: "horizontal" },
|
|
@@ -22,181 +23,181 @@ var D = ["id"], O = {
|
|
|
22
23
|
modelModifiers: {}
|
|
23
24
|
}),
|
|
24
25
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
26
|
+
setup(d) {
|
|
27
|
+
let f = d, j = w(d, "modelValue"), M = n(S(f, "id")), N = T("tabListHost"), P = T("overflowRef"), F = o(() => P.value?.contentEl ?? null), I = x([]), L = y({
|
|
27
28
|
width: "0",
|
|
28
29
|
height: "0",
|
|
29
30
|
transform: "translate(0, 0)",
|
|
30
31
|
opacity: "0"
|
|
31
|
-
}),
|
|
32
|
-
active:
|
|
32
|
+
}), R = y(!1), z = null, { active: B } = t({
|
|
33
|
+
active: j,
|
|
33
34
|
required: !0
|
|
34
35
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}), e({ QTab: { disabled:
|
|
38
|
-
let
|
|
36
|
+
E(B, (e) => {
|
|
37
|
+
j.value = e;
|
|
38
|
+
}), e({ QTab: { disabled: S(f, "disabled") } });
|
|
39
|
+
let V = o(() => [
|
|
39
40
|
"q-tabs",
|
|
40
|
-
`q-tabs--${
|
|
41
|
-
`q-tabs--${
|
|
42
|
-
`q-tabs--align-${
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
`q-tabs--${f.direction}`,
|
|
42
|
+
`q-tabs--${f.variant}`,
|
|
43
|
+
`q-tabs--align-${f.align}`,
|
|
44
|
+
R.value ? "q-tabs--indicator-ready" : void 0,
|
|
45
|
+
f.class
|
|
45
46
|
]);
|
|
46
|
-
function
|
|
47
|
-
let e =
|
|
48
|
-
e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation",
|
|
47
|
+
function H() {
|
|
48
|
+
let e = F.value;
|
|
49
|
+
e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", f.direction));
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function U(e) {
|
|
51
52
|
let t = e.tabRef.value;
|
|
52
53
|
return t ? "$el" in t ? t.$el : t : null;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
...
|
|
55
|
+
function W() {
|
|
56
|
+
R.value = !1, L.value = {
|
|
57
|
+
...L.value,
|
|
57
58
|
opacity: "0",
|
|
58
59
|
width: "0",
|
|
59
60
|
height: "0"
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
|
|
63
|
+
function G() {
|
|
64
|
+
if (f.variant !== "line" || !j.value) {
|
|
65
|
+
W();
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
let e =
|
|
68
|
+
let e = I.value.find((e) => e.value === j.value);
|
|
68
69
|
if (!e) {
|
|
69
|
-
|
|
70
|
+
W();
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
let t =
|
|
73
|
+
let t = U(e);
|
|
73
74
|
if (!t) {
|
|
74
|
-
|
|
75
|
+
W();
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
77
|
-
let n =
|
|
78
|
-
n ?
|
|
78
|
+
let n = f.direction === "horizontal", r = R.value;
|
|
79
|
+
n ? L.value = {
|
|
79
80
|
width: `${t.offsetWidth}px`,
|
|
80
81
|
height: "var(--q-tabs-indicator-thickness)",
|
|
81
82
|
transform: `translate(${t.offsetLeft}px, 0)`,
|
|
82
83
|
opacity: "1"
|
|
83
|
-
} :
|
|
84
|
+
} : L.value = {
|
|
84
85
|
width: "var(--q-tabs-indicator-thickness)",
|
|
85
86
|
height: `${t.offsetHeight}px`,
|
|
86
87
|
transform: `translate(0, ${t.offsetTop}px)`,
|
|
87
88
|
opacity: "1"
|
|
88
|
-
}, r ||
|
|
89
|
-
|
|
89
|
+
}, r || p(() => {
|
|
90
|
+
L.value.opacity === "1" && (R.value = !0);
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
if (!
|
|
94
|
-
let e =
|
|
93
|
+
function K() {
|
|
94
|
+
if (!j.value) return;
|
|
95
|
+
let e = I.value.find((e) => e.value === j.value);
|
|
95
96
|
if (!e) return;
|
|
96
|
-
let t =
|
|
97
|
-
t &&
|
|
97
|
+
let t = U(e);
|
|
98
|
+
t && P.value?.scrollElementIntoView(t);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
if (
|
|
101
|
-
|
|
100
|
+
function q() {
|
|
101
|
+
if (f.variant !== "line") {
|
|
102
|
+
z?.disconnect();
|
|
102
103
|
return;
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
z ? z.disconnect() : z = new ResizeObserver(() => {
|
|
106
|
+
G();
|
|
106
107
|
});
|
|
107
|
-
let e =
|
|
108
|
-
e &&
|
|
109
|
-
for (let e of
|
|
110
|
-
let t =
|
|
111
|
-
t &&
|
|
108
|
+
let e = N.value;
|
|
109
|
+
e && z.observe(e);
|
|
110
|
+
for (let e of I.value) {
|
|
111
|
+
let t = U(e);
|
|
112
|
+
t && z.observe(t);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
let { enabledItems:
|
|
115
|
-
function
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
let { enabledItems: J, ensureSelection: Y } = i(() => I.value, j), X;
|
|
116
|
+
function Z() {
|
|
117
|
+
X ||= p(() => {
|
|
118
|
+
X = void 0, Y();
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
function Q(e) {
|
|
122
|
+
if (I.value = [...I.value, e], !j.value) {
|
|
123
|
+
Y();
|
|
123
124
|
return;
|
|
124
125
|
}
|
|
125
|
-
|
|
126
|
+
Z();
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
128
|
+
function $(e) {
|
|
129
|
+
I.value = I.value.filter((t) => t.value !== e);
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
+
function ee(e, t) {
|
|
131
132
|
if (e === t) return;
|
|
132
|
-
let n =
|
|
133
|
+
let n = I.value.findIndex((t) => t.value === e);
|
|
133
134
|
if (n !== -1) {
|
|
134
|
-
if (
|
|
135
|
+
if (I.value = I.value.map((e, r) => r === n ? {
|
|
135
136
|
...e,
|
|
136
137
|
value: t
|
|
137
|
-
} : e),
|
|
138
|
-
|
|
138
|
+
} : e), j.value === e || j.value === t) {
|
|
139
|
+
j.value = t;
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
+
Y();
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
let n =
|
|
145
|
+
function te(e, t) {
|
|
146
|
+
let n = J.value;
|
|
146
147
|
if (!n.length) return;
|
|
147
148
|
let r = n.findIndex((t) => t.value === e), i = n[r === -1 ? 0 : (r + t + n.length) % n.length];
|
|
148
149
|
i.select(), i.focus();
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
-
let e =
|
|
151
|
+
function ne() {
|
|
152
|
+
let e = J.value[0];
|
|
152
153
|
e && (e.select(), e.focus());
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
-
let e =
|
|
155
|
+
function re() {
|
|
156
|
+
let e = J.value, t = e[e.length - 1];
|
|
156
157
|
t && (t.select(), t.focus());
|
|
157
158
|
}
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
], () =>
|
|
165
|
-
|
|
166
|
-
}), { immediate: !0 }),
|
|
159
|
+
return E(() => I.value.map((e) => [e.value, C(e.disabled)]), () => Z()), E(() => [
|
|
160
|
+
j.value,
|
|
161
|
+
I.value.length,
|
|
162
|
+
f.direction,
|
|
163
|
+
f.variant,
|
|
164
|
+
f.align
|
|
165
|
+
], () => p(() => {
|
|
166
|
+
G(), K();
|
|
167
|
+
}), { immediate: !0 }), E(() => [I.value.length, f.variant], () => p(q), { immediate: !0 }), E(() => [F.value, f.direction], () => H(), {
|
|
167
168
|
immediate: !0,
|
|
168
169
|
flush: "post"
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
}),
|
|
172
|
-
tabListEl:
|
|
173
|
-
direction:
|
|
174
|
-
register:
|
|
175
|
-
unregister:
|
|
176
|
-
updateValue:
|
|
177
|
-
focusAdjacent:
|
|
178
|
-
focusFirst:
|
|
179
|
-
focusLast:
|
|
180
|
-
}), (e, t) => (
|
|
181
|
-
id:
|
|
182
|
-
class:
|
|
183
|
-
}, [
|
|
170
|
+
}), g(() => {
|
|
171
|
+
z?.disconnect(), z = null;
|
|
172
|
+
}), v(a, {
|
|
173
|
+
tabListEl: F,
|
|
174
|
+
direction: o(() => f.direction),
|
|
175
|
+
register: Q,
|
|
176
|
+
unregister: $,
|
|
177
|
+
updateValue: ee,
|
|
178
|
+
focusAdjacent: te,
|
|
179
|
+
focusFirst: ne,
|
|
180
|
+
focusLast: re
|
|
181
|
+
}), (e, t) => (_(), c("div", {
|
|
182
|
+
id: C(M),
|
|
183
|
+
class: m(V.value)
|
|
184
|
+
}, [l("div", k, [u(C(r), {
|
|
184
185
|
ref_key: "overflowRef",
|
|
185
|
-
ref:
|
|
186
|
+
ref: P,
|
|
186
187
|
class: "q-tabs__overflow",
|
|
187
|
-
direction:
|
|
188
|
+
direction: f.direction,
|
|
188
189
|
"scroll-mode": "item",
|
|
189
190
|
"content-class": "q-tabs__tablist"
|
|
190
191
|
}, {
|
|
191
|
-
default:
|
|
192
|
+
default: D(() => [f.variant === "line" ? (_(), c("div", {
|
|
192
193
|
key: 0,
|
|
193
194
|
class: "q-tabs__indicator",
|
|
194
195
|
"aria-hidden": "true",
|
|
195
|
-
style:
|
|
196
|
-
}, null, 4)) :
|
|
196
|
+
style: h(L.value)
|
|
197
|
+
}, null, 4)) : s("v-if", !0)]),
|
|
197
198
|
_: 1
|
|
198
|
-
}, 8, ["direction"])], 512),
|
|
199
|
+
}, 8, ["direction"])], 512), l("div", A, [b(e.$slots, "default")])], 10, O));
|
|
199
200
|
}
|
|
200
201
|
});
|
|
201
202
|
//#endregion
|
|
202
|
-
export {
|
|
203
|
+
export { j as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAEzC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAEzD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAAoB,CAAA"}
|
|
@@ -79,7 +79,7 @@ export type QTabProps = QBaseComponentProps & {
|
|
|
79
79
|
*
|
|
80
80
|
* The asterisk is decorative (`aria-hidden`); {@link QRequiredIndicator}
|
|
81
81
|
* with `announce` exposes the state to assistive tech via `.q-sr-only`
|
|
82
|
-
* (from `texts.required`)
|
|
82
|
+
* (from `texts.required`). `aria-required` is not set: it is not allowed on `role="tab"`.
|
|
83
83
|
*
|
|
84
84
|
* @category Presentation
|
|
85
85
|
*/
|
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
wrap: "soft" | "hard" | "off";
|
|
27
26
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
27
|
+
wrap: "soft" | "hard" | "off";
|
|
28
28
|
rows: number;
|
|
29
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
30
|
textareaRef: HTMLTextAreaElement;
|
|
@@ -25,8 +25,8 @@ declare const QTextArea: {
|
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
26
|
"update:modelValue": (value: string) => any;
|
|
27
27
|
}, import('vue').PublicProps, {
|
|
28
|
-
wrap: "soft" | "hard" | "off";
|
|
29
28
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
29
|
+
wrap: "soft" | "hard" | "off";
|
|
30
30
|
rows: number;
|
|
31
31
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
32
32
|
textareaRef: HTMLTextAreaElement;
|
|
@@ -61,8 +61,8 @@ declare const QTextArea: {
|
|
|
61
61
|
}> & Readonly<{
|
|
62
62
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
63
|
}>, {}, {}, {}, {}, {
|
|
64
|
-
wrap: "soft" | "hard" | "off";
|
|
65
64
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
65
|
+
wrap: "soft" | "hard" | "off";
|
|
66
66
|
rows: number;
|
|
67
67
|
}>;
|
|
68
68
|
__isFragment?: never;
|
|
@@ -94,8 +94,8 @@ declare const QTextArea: {
|
|
|
94
94
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
95
95
|
"update:modelValue": (value: string) => any;
|
|
96
96
|
}, string, {
|
|
97
|
-
wrap: "soft" | "hard" | "off";
|
|
98
97
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
98
|
+
wrap: "soft" | "hard" | "off";
|
|
99
99
|
rows: number;
|
|
100
100
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
101
101
|
$slots: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { provideTheme as t } from "../../composables/theme.js";
|
|
3
3
|
import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, openBlock as o, renderSlot as s, toRef as c, unref as l, watchEffect as u } from "vue";
|
|
4
4
|
//#region src/components/QThemeProvider/QThemeProvider.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var d = ["id"], f = /*@__PURE__*/ r({
|
|
@@ -10,7 +10,7 @@ var d = ["id"], f = /*@__PURE__*/ r({
|
|
|
10
10
|
theme: {}
|
|
11
11
|
},
|
|
12
12
|
setup(r) {
|
|
13
|
-
let f = r, { class: p, css: m } =
|
|
13
|
+
let f = r, { class: p, css: m } = t(c(f, "theme")), h = e(c(f, "id")), g = null, _ = null;
|
|
14
14
|
return u(() => {
|
|
15
15
|
if (m.value) {
|
|
16
16
|
let e = p.value;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_ICONS } from './constants';
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
2
2
|
import { QToastProps } from '.';
|
|
3
3
|
type __VLS_Props = QToastProps & {};
|
|
4
4
|
declare function __VLS_template(): {
|
|
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
23
23
|
color: string;
|
|
24
24
|
elevation: import('..').QCardElevation;
|
|
25
25
|
icons: typeof DEFAULT_ICONS;
|
|
26
|
+
texts: typeof DEFAULT_TEXTS;
|
|
26
27
|
entryKey: string;
|
|
27
28
|
timeout: number;
|
|
28
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AA0EA;AAwQC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAc1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAMpC,KAAK,WAAW,GAAG,WAAW,GAAG,EAG9B,CAAC;AA8KL,iBAAS,cAAc;WAyOT,OAAO,IAA6B;;iCAdZ,GAAG;gCACJ,GAAG;yBACV,GAAG;yBAEH,GAAG;yBADH,GAAG;;;;EAgBhC;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;cApbN,MAAM;;6EA6bnB,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"}
|