@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebar.vue"],"names":[],"mappings":"AAgBA;
|
|
1
|
+
{"version":3,"file":"QSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebar.vue"],"names":[],"mappings":"AAgBA;AAiQC,OAAO,KAAK,EAAmB,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAOtC,KAAK,WAAW,GAAG,aAAa,CAAC;AA6NlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useGroup as e } from "../../composables/useGroup/index.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import n from "./QSidebarAnchor2.vue.js";
|
|
4
|
+
import { SidebarSymbol as r } from "./context.js";
|
|
5
|
+
import { computed as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, normalizeStyle as d, openBlock as f, provide as p, ref as m, renderSlot as h, shallowRef as g, toRef as _, unref as v, useModel as y, useTemplateRef as b, watch as x } from "vue";
|
|
5
6
|
//#region src/components/QSidebar/QSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var S = ["id"], C = { class: "q-sidebar__panels" }, w = /*@__PURE__*/ c({
|
|
7
8
|
__name: "QSidebar",
|
|
8
|
-
props: /*@__PURE__*/
|
|
9
|
+
props: /*@__PURE__*/ l({
|
|
9
10
|
id: {},
|
|
10
11
|
class: {},
|
|
11
12
|
anchorWidth: {},
|
|
@@ -15,99 +16,99 @@ var y = ["id"], b = { class: "q-sidebar__panels" }, x = /*@__PURE__*/ s({
|
|
|
15
16
|
modelValue: {},
|
|
16
17
|
modelModifiers: {}
|
|
17
18
|
}),
|
|
18
|
-
emits: /*@__PURE__*/
|
|
19
|
+
emits: /*@__PURE__*/ l([
|
|
19
20
|
"click:item",
|
|
20
21
|
"resize",
|
|
21
22
|
"resize:start",
|
|
22
23
|
"resize:end"
|
|
23
24
|
], ["update:modelValue"]),
|
|
24
|
-
setup(
|
|
25
|
-
let
|
|
26
|
-
active:
|
|
25
|
+
setup(c, { emit: l }) {
|
|
26
|
+
let w = c, T = l, E = y(c, "modelValue"), D = t(_(w, "id")), { active: O } = e({
|
|
27
|
+
active: E,
|
|
27
28
|
required: !1
|
|
28
29
|
});
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
x(O, (e) => {
|
|
31
|
+
E.value = e;
|
|
31
32
|
});
|
|
32
|
-
let
|
|
33
|
-
function
|
|
34
|
-
|
|
33
|
+
let k = b("anchor"), A = g([]), j = m(), M = m(!1), N = m();
|
|
34
|
+
function P() {
|
|
35
|
+
N.value = void 0;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
x(E, (e, t) => {
|
|
38
|
+
M.value = !e || !t, e && t && P(), e && (j.value = e);
|
|
38
39
|
}, { immediate: !0 });
|
|
39
|
-
let
|
|
40
|
-
if (!(!
|
|
41
|
-
}),
|
|
40
|
+
let F = i(() => A.value.find((e) => e.value === j.value)), I = i(() => !!F.value), L = i(() => {
|
|
41
|
+
if (!(!F.value?.resizable.value || N.value === void 0)) return w.anchorWidth === void 0 ? { width: `${(k.value?.$el?.offsetWidth ?? 0) + N.value}px` } : { width: `calc(${w.anchorWidth}px * var(--q-density-scale) + ${N.value}px)` };
|
|
42
|
+
}), R = i(() => [
|
|
42
43
|
"q-sidebar",
|
|
43
|
-
`q-sidebar--${
|
|
44
|
-
`q-sidebar--${
|
|
45
|
-
|
|
44
|
+
`q-sidebar--${F.value?.initialWidth.value ?? "small"}`,
|
|
45
|
+
`q-sidebar--${w.position}`,
|
|
46
|
+
w.class,
|
|
46
47
|
{
|
|
47
|
-
"q-sidebar--expanded":
|
|
48
|
-
[`q-sidebar--min-${
|
|
49
|
-
[`q-sidebar--max-${
|
|
48
|
+
"q-sidebar--expanded": I.value,
|
|
49
|
+
[`q-sidebar--min-${F.value?.minWidth.value}`]: !!F.value?.resizable.value && F.value?.minWidth.value !== void 0,
|
|
50
|
+
[`q-sidebar--max-${F.value?.maxWidth.value}`]: !!F.value?.resizable.value && F.value?.maxWidth.value !== void 0
|
|
50
51
|
}
|
|
51
52
|
]);
|
|
52
|
-
function
|
|
53
|
-
|
|
53
|
+
function z(e) {
|
|
54
|
+
A.value = [...A.value, e];
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
56
|
+
function B(e) {
|
|
57
|
+
A.value = A.value.filter((t) => t.value !== e);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function V(e, t) {
|
|
59
60
|
if (e === t) return;
|
|
60
|
-
let n =
|
|
61
|
-
n !== -1 && (
|
|
61
|
+
let n = A.value.findIndex((t) => t.value === e);
|
|
62
|
+
n !== -1 && (A.value = A.value.map((e, r) => r === n ? {
|
|
62
63
|
...e,
|
|
63
64
|
value: t
|
|
64
65
|
} : e));
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
67
|
+
function H(e) {
|
|
68
|
+
T("click:item", e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
70
|
+
function U() {
|
|
71
|
+
T("resize:start");
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
73
|
+
function W(e) {
|
|
74
|
+
N.value = e, T("resize", e);
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
76
|
+
function G(e) {
|
|
77
|
+
T("resize:end", e);
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
79
|
+
function K() {
|
|
80
|
+
E.value || (j.value = void 0, P());
|
|
80
81
|
}
|
|
81
|
-
return
|
|
82
|
-
anchorItemsEl:
|
|
83
|
-
position:
|
|
84
|
-
showLabels:
|
|
85
|
-
anchorWidth:
|
|
86
|
-
animatePanel:
|
|
87
|
-
items:
|
|
88
|
-
register:
|
|
89
|
-
unregister:
|
|
90
|
-
updateValue:
|
|
91
|
-
onItemClick:
|
|
92
|
-
onResizeStart:
|
|
93
|
-
onPanelResize:
|
|
94
|
-
onResizeEnd:
|
|
95
|
-
onPanelAfterLeave:
|
|
96
|
-
}), (e,
|
|
97
|
-
id:
|
|
98
|
-
class:
|
|
99
|
-
style:
|
|
100
|
-
}, [
|
|
82
|
+
return x(() => w.anchorWidth, P), p(r, {
|
|
83
|
+
anchorItemsEl: i(() => k.value?.itemsEl ?? null),
|
|
84
|
+
position: i(() => w.position ?? "left"),
|
|
85
|
+
showLabels: i(() => !!w.showLabels),
|
|
86
|
+
anchorWidth: i(() => w.anchorWidth),
|
|
87
|
+
animatePanel: i(() => M.value),
|
|
88
|
+
items: A,
|
|
89
|
+
register: z,
|
|
90
|
+
unregister: B,
|
|
91
|
+
updateValue: V,
|
|
92
|
+
onItemClick: H,
|
|
93
|
+
onResizeStart: U,
|
|
94
|
+
onPanelResize: W,
|
|
95
|
+
onResizeEnd: G,
|
|
96
|
+
onPanelAfterLeave: K
|
|
97
|
+
}), (e, t) => (f(), a("div", {
|
|
98
|
+
id: v(D),
|
|
99
|
+
class: u(R.value),
|
|
100
|
+
style: d(L.value)
|
|
101
|
+
}, [s(n, {
|
|
101
102
|
ref: "anchor",
|
|
102
|
-
"anchor-width":
|
|
103
|
-
"model-value":
|
|
104
|
-
items:
|
|
103
|
+
"anchor-width": w.anchorWidth,
|
|
104
|
+
"model-value": E.value,
|
|
105
|
+
items: A.value
|
|
105
106
|
}, null, 8, [
|
|
106
107
|
"anchor-width",
|
|
107
108
|
"model-value",
|
|
108
109
|
"items"
|
|
109
|
-
]),
|
|
110
|
+
]), o("div", C, [h(e.$slots, "default")])], 14, S));
|
|
110
111
|
}
|
|
111
112
|
});
|
|
112
113
|
//#endregion
|
|
113
|
-
export {
|
|
114
|
+
export { w as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarItem.vue"],"names":[],"mappings":"AAkEA;AA8LC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"QSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarItem.vue"],"names":[],"mappings":"AAkEA;AA8LC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AA6G3C,iBAAS,cAAc;WAiMT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;wBACb,GAAG;iCACM,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmE0hS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;EAnD/qS;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA6BqiS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;OArB9qS,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGroupItem as e } from "../../composables/useGroup/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import { QIcon as n } from "../QIcon/index.js";
|
|
4
4
|
import { SidebarSymbol as r } from "./context.js";
|
|
5
5
|
import { QToggle as i } from "../QToggle/index.js";
|
|
6
6
|
import a from "./QSidebarPanel2.vue.js";
|
|
@@ -26,7 +26,7 @@ var k = /*@__PURE__*/ h({
|
|
|
26
26
|
setup(h) {
|
|
27
27
|
let k = h, A = g(r, null);
|
|
28
28
|
if (!A) throw Error("QSidebarItem: Failed to retrieve sidebar context. Ensure the component is used within a QSidebar context.");
|
|
29
|
-
let j =
|
|
29
|
+
let j = t(w(k, "value")), M = t(w(k, "id")), N = t(), P = e(j);
|
|
30
30
|
if (!P) throw Error("QSidebarItem: Failed to retrieve group item. Ensure the component is used within a QSidebar context.");
|
|
31
31
|
let F = A, I = P, L = E("anchor"), R = l(() => F.anchorItemsEl.value), z = l(() => F.position.value === "left" ? "right" : "left"), B = l(() => F.position.value === "left" ? "slide-right" : "slide-left");
|
|
32
32
|
function V() {
|
|
@@ -48,7 +48,7 @@ var k = /*@__PURE__*/ h({
|
|
|
48
48
|
e !== t && F.updateValue(t, e);
|
|
49
49
|
}), x(() => {
|
|
50
50
|
F.unregister(j.value);
|
|
51
|
-
}), (e,
|
|
51
|
+
}), (e, t) => (S(), f(o, null, [R.value ? (S(), u(s, {
|
|
52
52
|
key: 0,
|
|
53
53
|
to: R.value
|
|
54
54
|
}, [m(T(i), {
|
|
@@ -59,12 +59,12 @@ var k = /*@__PURE__*/ h({
|
|
|
59
59
|
"icon-pos": "top",
|
|
60
60
|
class: v(["q-sidebar__item", k.class]),
|
|
61
61
|
"model-value": T(I).isActive.value,
|
|
62
|
-
"aria-controls": T(N),
|
|
62
|
+
"aria-controls": T(I).isActive.value ? T(N) : void 0,
|
|
63
63
|
label: T(F).showLabels.value ? k.title : void 0,
|
|
64
64
|
title: T(F).showLabels.value ? void 0 : k.title,
|
|
65
65
|
"onUpdate:modelValue": V
|
|
66
66
|
}, {
|
|
67
|
-
default: O(() => [C(e.$slots, "anchor", {}, () => [k.icon ? (S(), u(T(
|
|
67
|
+
default: O(() => [C(e.$slots, "anchor", {}, () => [k.icon ? (S(), u(T(n), y(_({ key: 0 }, k.icon)), null, 16)) : d("v-if", !0)])]),
|
|
68
68
|
_: 3
|
|
69
69
|
}, 8, [
|
|
70
70
|
"id",
|
|
@@ -81,8 +81,8 @@ var k = /*@__PURE__*/ h({
|
|
|
81
81
|
default: O(() => [T(I).isActive.value ? (S(), u(a, {
|
|
82
82
|
key: 0,
|
|
83
83
|
id: T(N),
|
|
84
|
-
"aria-labelledby": T(M),
|
|
85
84
|
title: k.title,
|
|
85
|
+
"label-id": T(M),
|
|
86
86
|
resizable: k.resizable,
|
|
87
87
|
"show-grip": k.showGrip,
|
|
88
88
|
"resize-position": z.value,
|
|
@@ -115,8 +115,8 @@ var k = /*@__PURE__*/ h({
|
|
|
115
115
|
} : void 0
|
|
116
116
|
]), 1032, [
|
|
117
117
|
"id",
|
|
118
|
-
"aria-labelledby",
|
|
119
118
|
"title",
|
|
119
|
+
"label-id",
|
|
120
120
|
"resizable",
|
|
121
121
|
"show-grip",
|
|
122
122
|
"resize-position",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSidebarPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSidebarPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarPanel.vue"],"names":[],"mappings":"AAyCA;AAoJC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAmG5C,iBAAS,cAAc;WAyET,OAAO,IAA6B;;wBAftB,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;;;EAgB9B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;kBASnB,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,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, onUnmounted as s, openBlock as c, ref as l, renderSlot as u, toDisplayString as d, unref as f, useSlots as p, useTemplateRef as m } from "vue";
|
|
2
3
|
//#region src/components/QSidebar/QSidebarPanel.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
4
|
-
ref: "panel",
|
|
5
|
-
class: "q-sidebar-panel",
|
|
6
|
-
role: "region"
|
|
7
|
-
}, f = { class: "q-sidebar-panel__header" }, p = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "q-sidebar-panel__title"
|
|
10
|
-
}, m = { class: "q-sidebar-panel__content" }, h = {
|
|
4
|
+
var h = ["aria-labelledby"], g = { class: "q-sidebar-panel__header" }, _ = ["id"], v = { class: "q-sidebar-panel__content" }, y = {
|
|
11
5
|
key: 0,
|
|
12
6
|
class: "q-sidebar-panel__footer"
|
|
13
|
-
},
|
|
7
|
+
}, b = {
|
|
14
8
|
key: 0,
|
|
15
9
|
class: "q-sidebar-panel__grip"
|
|
16
|
-
},
|
|
10
|
+
}, x = /*@__PURE__*/ a({
|
|
17
11
|
__name: "QSidebarPanel",
|
|
18
12
|
props: {
|
|
19
13
|
title: {},
|
|
14
|
+
labelId: {},
|
|
20
15
|
resizable: { type: Boolean },
|
|
21
16
|
showGrip: { type: Boolean },
|
|
22
17
|
resizePosition: {}
|
|
@@ -26,38 +21,47 @@ var d = {
|
|
|
26
21
|
"resize:start",
|
|
27
22
|
"resize:end"
|
|
28
23
|
],
|
|
29
|
-
setup(
|
|
30
|
-
let
|
|
31
|
-
function
|
|
32
|
-
|
|
24
|
+
setup(a, { emit: x }) {
|
|
25
|
+
let S = a, C = x, w = p(), T = e(), E = t(() => !!S.title && !w.header), D = t(() => E.value ? T.value : S.labelId), O = m("panel"), k = l(!1), A = 0, j = 0;
|
|
26
|
+
function M(e) {
|
|
27
|
+
S.resizable && (k.value = !0, A = e.clientX, j = O.value.clientWidth, document.addEventListener("mousemove", N), document.addEventListener("mouseup", P), document.body.style.userSelect = "none", C("resize:start"));
|
|
33
28
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!
|
|
36
|
-
let t =
|
|
37
|
-
|
|
29
|
+
function N(e) {
|
|
30
|
+
if (!S.resizable || !k.value) return;
|
|
31
|
+
let t = S.resizePosition === "right" ? e.clientX - A : A - e.clientX;
|
|
32
|
+
C("resize", j + t);
|
|
38
33
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
34
|
+
function P() {
|
|
35
|
+
S.resizable && (k.value = !1, C("resize:end", O.value.clientWidth), F());
|
|
41
36
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
37
|
+
function F() {
|
|
38
|
+
S.resizable && (document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", P), document.body.style.userSelect = "");
|
|
44
39
|
}
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
return s(F), (e, t) => (c(), r("div", {
|
|
41
|
+
ref: "panel",
|
|
42
|
+
class: "q-sidebar-panel",
|
|
43
|
+
role: "region",
|
|
44
|
+
"aria-labelledby": D.value
|
|
45
|
+
}, [
|
|
46
|
+
i("div", g, [u(e.$slots, "header", {}, () => [
|
|
47
|
+
u(e.$slots, "header.prepend"),
|
|
48
|
+
S.title ? (c(), r("h3", {
|
|
49
|
+
key: 0,
|
|
50
|
+
id: f(T),
|
|
51
|
+
class: "q-sidebar-panel__title"
|
|
52
|
+
}, d(S.title), 9, _)) : n("v-if", !0),
|
|
53
|
+
u(e.$slots, "header.append")
|
|
50
54
|
])]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
i("div", v, [u(e.$slots, "content")]),
|
|
56
|
+
e.$slots.footer ? (c(), r("div", y, [u(e.$slots, "footer")])) : n("v-if", !0),
|
|
57
|
+
a.resizable ? (c(), r("div", {
|
|
54
58
|
key: 1,
|
|
55
|
-
class:
|
|
59
|
+
class: o(["q-sidebar-panel__handle", `q-sidebar-panel__handle--${a.resizePosition}`]),
|
|
56
60
|
"data-testid": "q-sidebar-panel-handle",
|
|
57
|
-
onMousedown:
|
|
58
|
-
}, [
|
|
59
|
-
],
|
|
61
|
+
onMousedown: M
|
|
62
|
+
}, [a.showGrip ? (c(), r("div", b)) : n("v-if", !0)], 34)) : n("v-if", !0)
|
|
63
|
+
], 8, h));
|
|
60
64
|
}
|
|
61
65
|
});
|
|
62
66
|
//#endregion
|
|
63
|
-
export {
|
|
67
|
+
export { x as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAEnC;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAEhD;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAE5C;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAE5C;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;CAC1D,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,aAAa,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAE9C;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,MAAM,GAAG,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEhC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAE5C;;;;OAIG;IACH,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAElC;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,wBAAwB,EAAE,CAAC,CAAA;IAE7C;;;;OAIG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAA;IAElD;;;;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;;;;OAIG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEpC;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAA;IAEzB;;;;OAIG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEtC;;;;OAIG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEpC;;;OAGG;IACH,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC7B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,eAAe,CAAuB,CAAA"}
|
|
@@ -14,6 +14,14 @@ export type QSidebarPanelProps = {
|
|
|
14
14
|
* @category Content
|
|
15
15
|
*/
|
|
16
16
|
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Id of the element that names the panel when the title heading is not rendered.
|
|
19
|
+
*
|
|
20
|
+
* `QSidebarItem` passes the anchor toggle id.
|
|
21
|
+
*
|
|
22
|
+
* @category Identification
|
|
23
|
+
*/
|
|
24
|
+
labelId?: string;
|
|
17
25
|
/**
|
|
18
26
|
* Whether the panel is resizable by the user.
|
|
19
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEjF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACjC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG;IACrD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEjF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACjC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG;IACrD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSkeletonLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/QSkeletonLoader.vue"],"names":[],"mappings":"AAQA;
|
|
1
|
+
{"version":3,"file":"QSkeletonLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSkeletonLoader/QSkeletonLoader.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAA;;AAmE9C,wBAOG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, toRef as c, unref as l } from "vue";
|
|
2
3
|
//#region src/components/QSkeletonLoader/QSkeletonLoader.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
4
|
+
var u = ["id"], d = /*@__PURE__*/ i({
|
|
4
5
|
__name: "QSkeletonLoader",
|
|
5
6
|
props: {
|
|
6
7
|
id: {},
|
|
@@ -9,21 +10,21 @@ var s = ["id"], c = /*@__PURE__*/ r({
|
|
|
9
10
|
height: {},
|
|
10
11
|
type: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
let
|
|
14
|
-
width: typeof
|
|
15
|
-
height: typeof
|
|
13
|
+
setup(i) {
|
|
14
|
+
let d = i, f = e(c(d, "id")), p = t(() => d.type ? `q-skeleton-loader--${d.type}` : void 0), m = t(() => ({
|
|
15
|
+
width: typeof d.width == "number" ? `${d.width}px` : d.width,
|
|
16
|
+
height: typeof d.height == "number" ? `${d.height}px` : d.height
|
|
16
17
|
}));
|
|
17
|
-
return (e,
|
|
18
|
-
id:
|
|
19
|
-
class:
|
|
18
|
+
return (e, t) => (s(), n("div", {
|
|
19
|
+
id: l(f),
|
|
20
|
+
class: a([
|
|
20
21
|
"q-skeleton-loader",
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
p.value,
|
|
23
|
+
d.class
|
|
23
24
|
]),
|
|
24
|
-
style:
|
|
25
|
-
}, [...
|
|
25
|
+
style: o(m.value)
|
|
26
|
+
}, [...t[0] ||= [r("div", { class: "q-skeleton-loader__bone" }, null, -1)]], 14, u));
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
//#endregion
|
|
29
|
-
export {
|
|
30
|
+
export { d as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSpinnerLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/QSpinnerLoader.vue"],"names":[],"mappings":"AAMA;
|
|
1
|
+
{"version":3,"file":"QSpinnerLoader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSpinnerLoader/QSpinnerLoader.vue"],"names":[],"mappings":"AAMA;AAiCC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAA;;;;AA6D7C,wBAQG"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, normalizeStyle as a, openBlock as o, toRef as s, unref as c } from "vue";
|
|
2
3
|
//#region src/components/QSpinnerLoader/QSpinnerLoader.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
4
|
+
var l = ["id"], u = /*@__PURE__*/ r({
|
|
4
5
|
__name: "QSpinnerLoader",
|
|
5
6
|
props: {
|
|
6
7
|
id: {},
|
|
7
8
|
class: {},
|
|
8
9
|
size: { default: 48 }
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
let
|
|
12
|
-
return (e,
|
|
13
|
-
id:
|
|
14
|
-
class:
|
|
15
|
-
style:
|
|
16
|
-
}, null, 14,
|
|
11
|
+
setup(r) {
|
|
12
|
+
let u = r, d = e(s(u, "id")), f = t(() => ({ "font-size": u.size === 48 ? void 0 : `${u.size}px` }));
|
|
13
|
+
return (e, t) => (o(), n("div", {
|
|
14
|
+
id: c(d),
|
|
15
|
+
class: i(["q-spinner-loader", u.class]),
|
|
16
|
+
style: a(f.value)
|
|
17
|
+
}, null, 14, l));
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
20
|
//#endregion
|
|
20
|
-
export {
|
|
21
|
+
export { u as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { QStepBadgeState, QStepsIconSlotProps, QStepsVariant } from '.';
|
|
2
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the internal `QStepHeader` sub-component shared by the
|
|
5
|
+
* horizontal and vertical layouts of `QSteps`. Not exported: this
|
|
6
|
+
* component is internal, so its props stay off the package's public API
|
|
7
|
+
* surface.
|
|
8
|
+
*
|
|
9
|
+
* @extends QStepsIconSlotProps
|
|
10
|
+
*/
|
|
11
|
+
type QStepHeaderProps = QStepsIconSlotProps & {
|
|
12
|
+
/**
|
|
13
|
+
* Visual style of the step indicator.
|
|
14
|
+
*
|
|
15
|
+
* @category Presentation
|
|
16
|
+
*/
|
|
17
|
+
variant: QStepsVariant;
|
|
18
|
+
/**
|
|
19
|
+
* Status badge to show on the indicator, if any — resolved by the
|
|
20
|
+
* parent since it depends on both active state and `variant`.
|
|
21
|
+
*
|
|
22
|
+
* @category State
|
|
23
|
+
*/
|
|
24
|
+
badge?: QStepBadgeState;
|
|
25
|
+
/**
|
|
26
|
+
* Custom accessible strings, forwarded to the required indicator.
|
|
27
|
+
*
|
|
28
|
+
* @category Configuration
|
|
29
|
+
*/
|
|
30
|
+
texts: typeof DEFAULT_TEXTS;
|
|
31
|
+
/**
|
|
32
|
+
* Icons for the `completed` and `current` status badges.
|
|
33
|
+
*
|
|
34
|
+
* @category Configuration
|
|
35
|
+
*/
|
|
36
|
+
icons: typeof DEFAULT_ICONS;
|
|
37
|
+
};
|
|
38
|
+
declare function __VLS_template(): {
|
|
39
|
+
attrs: Partial<{}>;
|
|
40
|
+
slots: {
|
|
41
|
+
icon?(_: {
|
|
42
|
+
step: import('./types').QStep;
|
|
43
|
+
index: number;
|
|
44
|
+
}): any;
|
|
45
|
+
};
|
|
46
|
+
refs: {};
|
|
47
|
+
rootEl: HTMLButtonElement;
|
|
48
|
+
};
|
|
49
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
|
+
declare const __VLS_component: import('vue').DefineComponent<QStepHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QStepHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=QStepHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QStepHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/QStepHeader.vue"],"names":[],"mappings":"AA+CA;AA2GC,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D;;;;;;;GAOG;AACH,KAAK,gBAAgB,GAAG,mBAAmB,GAAG;IAC7C;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAA;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,eAAe,CAAA;IAEvB;;;;OAIG;IACH,KAAK,EAAE,OAAO,aAAa,CAAA;IAE3B;;;;OAIG;IACH,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;AAOF,iBAAS,cAAc;WAiHT,OAAO,IAA6B;;;;;YAVxB,GAAG;;;;EAe5B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0TAOnB,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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { QIcon as e } from "../QIcon/index.js";
|
|
2
|
+
import { QRequiredIndicator as t } from "../__internal__/QRequiredIndicator/index.js";
|
|
3
|
+
import { QBadge as n } from "../QBadge/index.js";
|
|
4
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
5
|
+
//#region src/components/QSteps/QStepHeader.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var y = { type: "button" }, b = { class: "q-step__indicator" }, x = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "q-step__indicator-content"
|
|
9
|
+
}, S = { class: "q-sr-only" }, C = { class: "q-step__labels" }, w = { class: "q-step__title" }, T = { class: "q-step__title-text" }, E = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "q-step__caption"
|
|
12
|
+
}, D = /*@__PURE__*/ u({
|
|
13
|
+
__name: "QStepHeader",
|
|
14
|
+
props: {
|
|
15
|
+
step: {},
|
|
16
|
+
index: {},
|
|
17
|
+
variant: {},
|
|
18
|
+
badge: {},
|
|
19
|
+
texts: {},
|
|
20
|
+
icons: {}
|
|
21
|
+
},
|
|
22
|
+
setup(u) {
|
|
23
|
+
let D = u;
|
|
24
|
+
return (u, O) => (m(), o("button", y, [
|
|
25
|
+
s("span", b, [D.variant === "dot" ? a("v-if", !0) : (m(), o("span", x, [h(u.$slots, "icon", {
|
|
26
|
+
step: D.step,
|
|
27
|
+
index: D.index
|
|
28
|
+
}, () => [D.step.icon ? (m(), i(_(e), p(d({ key: 0 }, D.step.icon)), null, 16)) : (m(), o(r, { key: 1 }, [c(g(D.index + 1), 1)], 64))])]))]),
|
|
29
|
+
D.badge ? (m(), i(_(n), {
|
|
30
|
+
key: 0,
|
|
31
|
+
pill: "",
|
|
32
|
+
size: "small",
|
|
33
|
+
variant: "bold",
|
|
34
|
+
color: D.badge === "active" ? "primaryLight" : "successDark",
|
|
35
|
+
class: f(["q-step__badge", `q-step__badge--${D.badge}`])
|
|
36
|
+
}, {
|
|
37
|
+
default: v(() => [l(_(e), d({ "aria-hidden": "true" }, D.badge === "active" ? D.icons.current : D.icons.completed), null, 16), s("span", S, g(D.badge === "active" ? D.texts.current : D.texts.completed), 1)]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["color", "class"])) : a("v-if", !0),
|
|
40
|
+
s("span", C, [s("span", w, [s("span", T, g(D.step.title), 1), D.step.required ? (m(), i(_(t), {
|
|
41
|
+
key: 0,
|
|
42
|
+
announce: "",
|
|
43
|
+
texts: D.texts
|
|
44
|
+
}, null, 8, ["texts"])) : a("v-if", !0)]), D.step.caption ? (m(), o("span", E, g(D.step.caption), 1)) : a("v-if", !0)])
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { D as default };
|