@quidgest/ui 0.25.0 → 0.27.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 +40 -0
- package/dist/json/api.json +501 -156
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1030 -138
- package/dist/ui.esm.js +989 -937
- package/dist/ui.js +1230 -1181
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1230 -1181
- package/dist/ui.scss +1301 -168
- 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 +88 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -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 +2 -0
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +19 -14
- package/esm/components/QSection/index.d.ts +2 -0
- package/esm/components/QSection/index.d.ts.map +1 -1
- 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 -113
- 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/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +9 -7
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +11 -9
- 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/composables/useEnabledSelection/index.d.ts +33 -0
- package/esm/composables/useEnabledSelection/index.d.ts.map +1 -0
- package/esm/composables/useEnabledSelection/index.js +15 -0
- 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,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QOverlay as t } from "../QOverlay/index.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, openBlock as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, toRef as g, unref as _, useAttrs as v, useModel as y, useSlots as b, withCtx as x } from "vue";
|
|
3
4
|
//#region src/components/QPopover/QPopover.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var S = { class: "q-popover__content" }, C = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "q-popover__header"
|
|
7
|
-
},
|
|
8
|
+
}, w = ["innerHTML"], T = { key: 1 }, E = /*@__PURE__*/ l({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "QPopover",
|
|
10
|
-
props: /*@__PURE__*/
|
|
11
|
+
props: /*@__PURE__*/ u({
|
|
11
12
|
id: {},
|
|
12
13
|
class: {},
|
|
13
14
|
anchor: {},
|
|
@@ -31,37 +32,59 @@ var v = { class: "q-popover__content" }, y = {
|
|
|
31
32
|
modelModifiers: {}
|
|
32
33
|
}),
|
|
33
34
|
emits: ["update:modelValue"],
|
|
34
|
-
setup(
|
|
35
|
-
let l =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
setup(l) {
|
|
36
|
+
let u = l, E = y(l, "modelValue"), D = e(g(u, "id")), O = b(), k = v(), A = r(() => `${D.value}_title`), j = r(() => u.headingLevel >= 1 && u.headingLevel <= 6 ? "h" + u.headingLevel : "div");
|
|
37
|
+
function M() {
|
|
38
|
+
return !!u.title && !O.header;
|
|
39
|
+
}
|
|
40
|
+
function N() {
|
|
41
|
+
if (M()) return A.value;
|
|
42
|
+
if (u.title) return;
|
|
43
|
+
let e = k["aria-labelledby"];
|
|
44
|
+
return typeof e == "string" && e ? e : void 0;
|
|
45
|
+
}
|
|
46
|
+
function P() {
|
|
47
|
+
if (M()) return;
|
|
48
|
+
if (u.title) return u.title;
|
|
49
|
+
let e = k["aria-label"];
|
|
50
|
+
return typeof e == "string" && e ? e : void 0;
|
|
51
|
+
}
|
|
52
|
+
return (e, r) => (f(), i(_(t), {
|
|
53
|
+
id: _(D),
|
|
54
|
+
modelValue: E.value,
|
|
55
|
+
"onUpdate:modelValue": r[0] ||= (e) => E.value = e,
|
|
56
|
+
class: d(["q-popover", u.class]),
|
|
57
|
+
"aria-labelledby": N(),
|
|
58
|
+
"aria-label": P(),
|
|
41
59
|
trigger: "click",
|
|
42
|
-
anchor:
|
|
43
|
-
arrow:
|
|
44
|
-
attach:
|
|
45
|
-
inline:
|
|
46
|
-
disabled:
|
|
47
|
-
placement:
|
|
60
|
+
anchor: u.anchor,
|
|
61
|
+
arrow: u.arrow,
|
|
62
|
+
attach: u.attach,
|
|
63
|
+
inline: u.inline,
|
|
64
|
+
disabled: u.disabled,
|
|
65
|
+
placement: u.placement
|
|
48
66
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
|
|
51
|
-
(
|
|
52
|
-
|
|
67
|
+
default: x(() => [s("div", S, [u.title || e.$slots.header ? (f(), o("div", C, [e.$slots.header ? p(e.$slots, "header", { key: 0 }) : (f(), o(n, { key: 1 }, [
|
|
68
|
+
p(e.$slots, "header.prepend"),
|
|
69
|
+
(f(), i(m(j.value), {
|
|
70
|
+
id: A.value,
|
|
71
|
+
class: "q-popover__title"
|
|
72
|
+
}, {
|
|
73
|
+
default: x(() => [c(h(u.title), 1)]),
|
|
53
74
|
_: 1
|
|
54
|
-
})),
|
|
55
|
-
|
|
56
|
-
], 64))])) :
|
|
75
|
+
}, 8, ["id"])),
|
|
76
|
+
p(e.$slots, "header.append")
|
|
77
|
+
], 64))])) : a("v-if", !0), p(e.$slots, "default", {}, () => [u.text ? (f(), o(n, { key: 0 }, [u.html ? (f(), o("span", {
|
|
57
78
|
key: 0,
|
|
58
|
-
innerHTML:
|
|
59
|
-
}, null, 8,
|
|
79
|
+
innerHTML: u.text
|
|
80
|
+
}, null, 8, w)) : (f(), o("span", T, h(u.text), 1))], 64)) : a("v-if", !0)])])]),
|
|
60
81
|
_: 3
|
|
61
82
|
}, 8, [
|
|
62
83
|
"id",
|
|
63
84
|
"modelValue",
|
|
64
85
|
"class",
|
|
86
|
+
"aria-labelledby",
|
|
87
|
+
"aria-label",
|
|
65
88
|
"anchor",
|
|
66
89
|
"arrow",
|
|
67
90
|
"attach",
|
|
@@ -72,4 +95,4 @@ var v = { class: "q-popover__content" }, y = {
|
|
|
72
95
|
}
|
|
73
96
|
});
|
|
74
97
|
//#endregion
|
|
75
|
-
export {
|
|
98
|
+
export { E as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { useColor as t } from "../../composables/useColor/index.js";
|
|
3
3
|
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeModels as s, mergeProps as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, ref as p, toDisplayString as m, toRef as h, unref as g, useModel as _, watch as v } from "vue";
|
|
4
4
|
//#region src/components/QProgress/QProgress.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var y = ["id"], b = [
|
|
@@ -58,7 +58,7 @@ var y = ["id"], b = [
|
|
|
58
58
|
}),
|
|
59
59
|
emits: ["update:modelValue"],
|
|
60
60
|
setup(o) {
|
|
61
|
-
let s = o, E = _(o, "modelValue"), { style: D } =
|
|
61
|
+
let s = o, E = _(o, "modelValue"), { style: D } = t(h(s, "color")), O = e(h(s, "id")), k = n(() => Number.isFinite(s.min) ? s.min < s.max ? s.min : s.max : 0), A = n(() => Number.isFinite(s.max) ? s.max > s.min ? s.max : s.min === s.max ? s.max + 1 : s.min : k.value + 1), j = n(() => Number.isNaN(E.value) ? 0 : E.value < k.value ? k.value : E.value > A.value ? A.value : E.value), M = n(() => Number(((j.value - k.value) / (A.value - k.value) * 100).toFixed(2))), N = n(() => ["q-progress", s.class]), P = n(() => ["q-progress__bar", { "q-progress__bar--mini": s.mini }]), F = n(() => ["q-progress__fill", {
|
|
62
62
|
"q-progress__fill--striped": s.striped,
|
|
63
63
|
"q-progress__fill--animated": s.animated && M.value < 100
|
|
64
64
|
}]), I = n(() => ({ width: `${M.value}%` })), L = n(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPropertyList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyList.vue"],"names":[],"mappings":"AA+DA;AAyPC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1D,OAAO,KAAK,EAAE,kBAAkB,EAA2B,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAsLzF,iBAAS,cAAc;WA8IT,OAAO,IAA6B;;;UAbqC,GAAG;;;;;;;;;;YAE9D,GAAG;;;;;;EAgB9B;AAyBD,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,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { DEFAULT_ICONS as t, DEFAULT_TEXTS as n } from "./constants.js";
|
|
3
|
+
import { QPropertyListGroup as r, QPropertyListPanel as i, QPropertyListRow as a } from "./index.js";
|
|
4
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
4
5
|
//#region src/components/QPropertyList/QPropertyList.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var w = ["id"], T = { class: "q-property-list__table" }, E = { class: "q-property-list__header" }, D = { scope: "col" }, O = { class: "q-sr-only" }, k = { scope: "col" }, A = { class: "q-sr-only" }, j = /*@__PURE__*/ f({
|
|
6
7
|
__name: "QPropertyList",
|
|
7
8
|
props: {
|
|
8
9
|
id: {},
|
|
@@ -14,78 +15,87 @@ var x = ["id"], S = { class: "q-property-list__table" }, C = /*@__PURE__*/ d({
|
|
|
14
15
|
noPanel: { type: Boolean },
|
|
15
16
|
noToggle: { type: Boolean },
|
|
16
17
|
readonly: { type: Boolean },
|
|
17
|
-
icons: { default: () =>
|
|
18
|
-
texts: { default: () =>
|
|
18
|
+
icons: { default: () => t },
|
|
19
|
+
texts: { default: () => n }
|
|
19
20
|
},
|
|
20
21
|
emits: ["field-change", "select-field"],
|
|
21
|
-
setup(
|
|
22
|
-
let
|
|
22
|
+
setup(t, { emit: n }) {
|
|
23
|
+
let f = t, j = n, M = e(b(f, "id")), N = g([]);
|
|
24
|
+
S(() => f.groups.map((e) => e.id), (e, t) => {
|
|
25
|
+
let n = new Set(e);
|
|
26
|
+
N.value = N.value.filter((e) => n.has(e));
|
|
27
|
+
let r = new Set(t ?? []);
|
|
28
|
+
for (let t of e) !r.has(t) && !N.value.includes(t) && N.value.push(t);
|
|
29
|
+
}, { immediate: !0 });
|
|
30
|
+
let P = g(void 0), F = g(null), I = s(() => f.groups.length ? f.groups.filter((e) => f.fields.some((t) => t.group === e.id)) : [{
|
|
23
31
|
id: "",
|
|
24
32
|
title: ""
|
|
25
|
-
}]),
|
|
33
|
+
}]), L = s(() => [
|
|
26
34
|
"q-property-list",
|
|
27
35
|
{
|
|
28
|
-
"q-property-list--side-panel":
|
|
29
|
-
"q-property-list--block":
|
|
36
|
+
"q-property-list--side-panel": f.panelPosition === "right",
|
|
37
|
+
"q-property-list--block": f.block
|
|
30
38
|
},
|
|
31
|
-
|
|
39
|
+
f.class
|
|
32
40
|
]);
|
|
33
|
-
function
|
|
34
|
-
|
|
41
|
+
function R() {
|
|
42
|
+
F.value?.contains(document.activeElement) || (P.value = void 0);
|
|
35
43
|
}
|
|
36
|
-
function
|
|
37
|
-
return e ?
|
|
44
|
+
function z(e) {
|
|
45
|
+
return e ? f.fields.filter((t) => t.group === e) : f.fields;
|
|
38
46
|
}
|
|
39
|
-
function
|
|
40
|
-
let
|
|
41
|
-
t
|
|
47
|
+
function B(e, t) {
|
|
48
|
+
let n = N.value.includes(e);
|
|
49
|
+
t && !n ? N.value.push(e) : !t && n && (N.value = N.value.filter((t) => t !== e));
|
|
42
50
|
}
|
|
43
|
-
function
|
|
44
|
-
return [{ "q-property-list__row--selected":
|
|
51
|
+
function V(e) {
|
|
52
|
+
return [{ "q-property-list__row--selected": P.value?.id === e.id }];
|
|
45
53
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
54
|
+
function H(e) {
|
|
55
|
+
P.value = e, j("select-field", P.value.id);
|
|
48
56
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
57
|
+
function U(e, t) {
|
|
58
|
+
f.readonly || (e.props.readonly ?? !1) || j("field-change", e, t);
|
|
51
59
|
}
|
|
52
|
-
function
|
|
53
|
-
if (!
|
|
54
|
-
let e =
|
|
55
|
-
|
|
60
|
+
function W() {
|
|
61
|
+
if (!F.value) return;
|
|
62
|
+
let e = F.value.offsetWidth;
|
|
63
|
+
F.value.style.minWidth = `${e}px`;
|
|
56
64
|
}
|
|
57
|
-
return
|
|
58
|
-
await
|
|
59
|
-
}, { immediate: !0 }), (e, t) => (
|
|
60
|
-
id:
|
|
65
|
+
return S(() => f.block, async (e) => {
|
|
66
|
+
await p(), e ? F.value?.removeAttribute("style") : W();
|
|
67
|
+
}, { immediate: !0 }), (e, t) => (h(), u("div", {
|
|
68
|
+
id: x(M),
|
|
61
69
|
ref_key: "componentRoot",
|
|
62
|
-
ref:
|
|
70
|
+
ref: F,
|
|
63
71
|
tabindex: "0",
|
|
64
|
-
class:
|
|
65
|
-
onFocusout:
|
|
66
|
-
}, [
|
|
72
|
+
class: m(L.value),
|
|
73
|
+
onFocusout: R
|
|
74
|
+
}, [d("table", T, [d("thead", E, [d("tr", null, [d("th", D, [d("span", O, y(f.texts.property), 1)]), d("th", k, [d("span", A, y(f.texts.value), 1)])])]), d("tbody", null, [(h(!0), u(o, null, _(I.value, (t) => (h(), u(o, { key: t.id }, [t.title ? (h(), c(x(r), {
|
|
67
75
|
key: 0,
|
|
68
76
|
"data-key": t.id,
|
|
69
77
|
title: t.title,
|
|
70
|
-
icons:
|
|
71
|
-
"no-toggle":
|
|
72
|
-
|
|
78
|
+
icons: f.icons,
|
|
79
|
+
"no-toggle": f.noToggle,
|
|
80
|
+
open: N.value.includes(t.id ?? ""),
|
|
81
|
+
"onUpdate:open": (e) => B(t.id ?? "", e)
|
|
73
82
|
}, null, 8, [
|
|
74
83
|
"data-key",
|
|
75
84
|
"title",
|
|
76
85
|
"icons",
|
|
77
86
|
"no-toggle",
|
|
78
|
-
"
|
|
79
|
-
|
|
87
|
+
"open",
|
|
88
|
+
"onUpdate:open"
|
|
89
|
+
])) : l("v-if", !0), t.id === "" || N.value.includes(t.id ?? "") ? (h(!0), u(o, { key: 1 }, _(z(t.id), (t) => (h(), c(x(a), {
|
|
80
90
|
key: t.id,
|
|
81
|
-
class:
|
|
91
|
+
class: m(V(t)),
|
|
82
92
|
field: t,
|
|
83
93
|
"model-value": t.props.modelValue,
|
|
84
|
-
readonly:
|
|
85
|
-
onFocus:
|
|
86
|
-
onFieldChange: (e) =>
|
|
94
|
+
readonly: f.readonly,
|
|
95
|
+
onFocus: H,
|
|
96
|
+
onFieldChange: (e) => U(t, e)
|
|
87
97
|
}, {
|
|
88
|
-
default:
|
|
98
|
+
default: C(() => [v(e.$slots, t.id, { field: t })]),
|
|
89
99
|
_: 2
|
|
90
100
|
}, 1032, [
|
|
91
101
|
"class",
|
|
@@ -93,18 +103,18 @@ var x = ["id"], S = { class: "q-property-list__table" }, C = /*@__PURE__*/ d({
|
|
|
93
103
|
"model-value",
|
|
94
104
|
"readonly",
|
|
95
105
|
"onFieldChange"
|
|
96
|
-
]))), 128)) :
|
|
106
|
+
]))), 128)) : l("v-if", !0)], 64))), 128))])]), f.noPanel ? l("v-if", !0) : (h(), c(x(i), {
|
|
97
107
|
key: 0,
|
|
98
|
-
field:
|
|
99
|
-
texts:
|
|
108
|
+
field: P.value,
|
|
109
|
+
texts: f.texts
|
|
100
110
|
}, {
|
|
101
|
-
default:
|
|
111
|
+
default: C(() => [P.value ? v(e.$slots, "panel", {
|
|
102
112
|
key: 0,
|
|
103
|
-
field:
|
|
104
|
-
}) :
|
|
113
|
+
field: P.value
|
|
114
|
+
}) : l("v-if", !0)]),
|
|
105
115
|
_: 3
|
|
106
|
-
}, 8, ["field", "texts"]))], 42,
|
|
116
|
+
}, 8, ["field", "texts"]))], 42, w));
|
|
107
117
|
}
|
|
108
118
|
});
|
|
109
119
|
//#endregion
|
|
110
|
-
export {
|
|
120
|
+
export { j as default };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { DEFAULT_ICONS } from './constants';
|
|
2
2
|
import { QPropertyListGroupProps } from '.';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type __VLS_Props = QPropertyListGroupProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'open'?: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:open": (value: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
7
11
|
}>, {
|
|
8
12
|
icons: typeof DEFAULT_ICONS;
|
|
9
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAsBA;
|
|
1
|
+
{"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAsBA;AAoEC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAKhD,KAAK,WAAW,GAAG,uBAAuB,CAAC;AAiC5C,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;;;;;;;;AA6FhB,wBASG"}
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QButton as t } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as n } from "../QIcon/index.js";
|
|
4
4
|
import { DEFAULT_ICONS as r } from "./constants.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, normalizeClass as m, normalizeProps as h, openBlock as g, toDisplayString as _, toRef as v, unref as y, useModel as b, withCtx as x } from "vue";
|
|
6
6
|
//#region src/components/QPropertyList/QPropertyListGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var S = ["id"], C = { colspan: "2" }, w = { class: "q-property-list-group__content" }, T = /*@__PURE__*/ d({
|
|
8
8
|
__name: "QPropertyListGroup",
|
|
9
|
-
props: {
|
|
9
|
+
props: /*@__PURE__*/ p({
|
|
10
10
|
id: {},
|
|
11
11
|
class: {},
|
|
12
12
|
title: {},
|
|
13
13
|
noToggle: { type: Boolean },
|
|
14
14
|
icons: { default: () => r },
|
|
15
15
|
texts: {}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
}, {
|
|
17
|
+
open: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
openModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:open"],
|
|
24
|
+
setup(r) {
|
|
25
|
+
let d = r, p = b(r, "open"), T = e(v(d, "id")), E = a(() => p.value ? d.icons.open : d.icons.close), D = a(() => [
|
|
20
26
|
"q-property-list-group",
|
|
21
|
-
{ "q-property-list-group--no-toggle":
|
|
22
|
-
|
|
27
|
+
{ "q-property-list-group--no-toggle": d.noToggle },
|
|
28
|
+
d.class
|
|
23
29
|
]);
|
|
24
|
-
function
|
|
25
|
-
|
|
30
|
+
function O() {
|
|
31
|
+
d.noToggle || (p.value = !p.value);
|
|
26
32
|
}
|
|
27
|
-
return (
|
|
28
|
-
id:
|
|
29
|
-
class:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
onClick: k
|
|
33
|
-
}, [c("td", {
|
|
34
|
-
id: v(E),
|
|
35
|
-
colspan: "2"
|
|
36
|
-
}, [c("div", S, [C.noToggle ? o("v-if", !0) : (h(), a(v(e), {
|
|
33
|
+
return (e, r) => (g(), s("tr", {
|
|
34
|
+
id: y(T),
|
|
35
|
+
class: m(D.value),
|
|
36
|
+
onClick: O
|
|
37
|
+
}, [c("td", C, [c("div", w, [d.noToggle ? (g(), s(i, { key: 1 }, [l(_(d.title), 1)], 64)) : (g(), o(y(t), {
|
|
37
38
|
key: 0,
|
|
38
39
|
variant: "text",
|
|
39
|
-
|
|
40
|
+
label: d.title,
|
|
41
|
+
"aria-expanded": p.value,
|
|
42
|
+
onClick: O
|
|
40
43
|
}, {
|
|
41
|
-
default:
|
|
44
|
+
default: x(() => [u(y(n), h(f(E.value)), null, 16)]),
|
|
42
45
|
_: 1
|
|
43
|
-
}
|
|
46
|
+
}, 8, ["label", "aria-expanded"]))])])], 10, S));
|
|
44
47
|
}
|
|
45
48
|
});
|
|
46
49
|
//#endregion
|
|
47
|
-
export {
|
|
50
|
+
export { T as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AAiBA;
|
|
1
|
+
{"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AAiBA;AAwCC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAiBjD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { DEFAULT_TEXTS as t } from "./constants.js";
|
|
3
|
+
import { createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c, toRef as l, unref as u } from "vue";
|
|
3
4
|
//#region src/components/QPropertyList/QPropertyListPanel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var d = ["id"], f = { class: "q-property-list-panel__label" }, p = { class: "q-property-list-panel__description" }, m = {
|
|
5
6
|
key: 1,
|
|
6
7
|
class: "q-property-list-panel__empty"
|
|
7
|
-
},
|
|
8
|
+
}, h = /*@__PURE__*/ i({
|
|
8
9
|
__name: "QPropertyListPanel",
|
|
9
10
|
props: {
|
|
10
11
|
id: {},
|
|
11
12
|
class: {},
|
|
12
13
|
field: {},
|
|
13
14
|
icons: {},
|
|
14
|
-
texts: { default: () =>
|
|
15
|
+
texts: { default: () => t }
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
return (e,
|
|
19
|
-
id:
|
|
20
|
-
class:
|
|
21
|
-
}, [
|
|
17
|
+
setup(t) {
|
|
18
|
+
let i = t, h = e(l(i, "id"));
|
|
19
|
+
return (e, t) => (o(), n("div", {
|
|
20
|
+
id: u(h),
|
|
21
|
+
class: a(["q-property-list-panel", i.class])
|
|
22
|
+
}, [i.field ? s(e.$slots, "default", { key: 0 }, () => [r("div", f, c(i.field.label), 1), r("div", p, c(i.field.description), 1)]) : (o(), n("div", m, c(i.texts.emptyMessage), 1))], 10, d));
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
//#endregion
|
|
25
|
-
export {
|
|
26
|
+
export { h as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAgCA;
|
|
1
|
+
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAgCA;AAqKC,OAAO,KAAK,EAAE,kBAAkB,EAAyB,MAAM,GAAG,CAAA;yBAKjD,CAAC,eACL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0O1D,mBAAmB,CAAC;;;;;qBA/Gf,CAAC;;;;;oBA+GgF,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAtCkB,GAAG;;UAwCzB;YAxOD,OAAO,SAAS,kBAAkB,GAAG,IAAI;YACzC,cAAc,SAAS,OAAO,GAAG,IAAI;sDAuOA;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApPxE,wBAoP2E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -19,30 +19,55 @@ var y = ["id", "data-group"], b = {
|
|
|
19
19
|
}),
|
|
20
20
|
emits: /*@__PURE__*/ l(["focus", "field-change"], ["update:modelValue"]),
|
|
21
21
|
setup(c, { emit: l }) {
|
|
22
|
-
let x = c, S = l, C = _(c, "modelValue"), w =
|
|
23
|
-
|
|
22
|
+
let x = c, S = l, C = _(c, "modelValue"), w = /* @__PURE__ */ new Set([
|
|
23
|
+
"QTextField",
|
|
24
|
+
"QTextArea",
|
|
25
|
+
"QSelect",
|
|
26
|
+
"QCombobox",
|
|
27
|
+
"QColorPicker",
|
|
28
|
+
"QPasswordField",
|
|
29
|
+
"QPhoneField",
|
|
30
|
+
"QDateTimePicker"
|
|
31
|
+
]);
|
|
32
|
+
function T(e) {
|
|
33
|
+
return e.split("-").filter((e) => e.length > 0).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
34
|
+
}
|
|
35
|
+
function E(e) {
|
|
36
|
+
let t = "";
|
|
37
|
+
if (typeof e == "string") t = e;
|
|
38
|
+
else if (typeof e == "object" && e) {
|
|
39
|
+
let n = e;
|
|
40
|
+
t = n.name || n.__name || "";
|
|
41
|
+
}
|
|
42
|
+
return T(t);
|
|
43
|
+
}
|
|
44
|
+
let D = n(() => ["q-property-list__row", x.class]), O = n(() => ["q-property-list__cell", "q-property-list__cell-label"]), k = n(() => x.readonly || (x.field.props.readonly ?? !1)), A = n(() => x.required || !!x.field.props?.required), j = e(h(x, "id")), M = n(() => {
|
|
45
|
+
let e = x.field.props.id;
|
|
46
|
+
return typeof e == "string" && e ? e : `${j.value}_field`;
|
|
47
|
+
}), N = n(() => w.has(E(x.field.component)) ? `${M.value}_input` : M.value), P = n(() => ({
|
|
24
48
|
...x.field.props,
|
|
25
|
-
|
|
26
|
-
|
|
49
|
+
id: M.value,
|
|
50
|
+
readonly: k.value,
|
|
51
|
+
required: A.value
|
|
27
52
|
}));
|
|
28
|
-
function
|
|
53
|
+
function F() {
|
|
29
54
|
S("focus", x.field);
|
|
30
55
|
}
|
|
31
|
-
function
|
|
56
|
+
function I(e) {
|
|
32
57
|
C.value = e, S("field-change", e);
|
|
33
58
|
}
|
|
34
59
|
return (e, n) => (f(), a("tr", {
|
|
35
|
-
id:
|
|
36
|
-
class: d(
|
|
60
|
+
id: g(j),
|
|
61
|
+
class: d(D.value),
|
|
37
62
|
"data-group": x.field.group,
|
|
38
|
-
onFocusin:
|
|
63
|
+
onFocusin: F
|
|
39
64
|
}, [o("td", {
|
|
40
|
-
class: d(
|
|
41
|
-
onClick: v(
|
|
65
|
+
class: d(O.value),
|
|
66
|
+
onClick: v(F, ["prevent", "stop"])
|
|
42
67
|
}, [s(g(t), {
|
|
43
|
-
for:
|
|
68
|
+
for: N.value,
|
|
44
69
|
label: x.field.label,
|
|
45
|
-
required:
|
|
70
|
+
required: A.value,
|
|
46
71
|
onClick: n[0] ||= v(() => {}, ["stop"])
|
|
47
72
|
}, null, 8, [
|
|
48
73
|
"for",
|
|
@@ -50,10 +75,10 @@ var y = ["id", "data-group"], b = {
|
|
|
50
75
|
"required"
|
|
51
76
|
])], 2), o("td", {
|
|
52
77
|
class: "q-property-list__cell",
|
|
53
|
-
onClick: v(
|
|
54
|
-
}, [p(e.$slots, "default", {}, () => [x.field.component ? (f(), a("div", b, [(f(), r(m(x.field.component), u(
|
|
78
|
+
onClick: v(F, ["prevent", "stop"])
|
|
79
|
+
}, [p(e.$slots, "default", {}, () => [x.field.component ? (f(), a("div", b, [(f(), r(m(x.field.component), u(P.value, {
|
|
55
80
|
modelValue: C.value,
|
|
56
|
-
"onUpdate:modelValue": [n[1] ||= (e) => C.value = e,
|
|
81
|
+
"onUpdate:modelValue": [n[1] ||= (e) => C.value = e, I]
|
|
57
82
|
}), null, 16, ["modelValue"]))])) : i("v-if", !0)])])], 42, y));
|
|
58
83
|
}
|
|
59
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
//#region src/components/QPropertyList/constants.ts
|
|
2
|
-
var e = {
|
|
2
|
+
var e = {
|
|
3
|
+
emptyMessage: "Select a field to view details.",
|
|
4
|
+
property: "Property",
|
|
5
|
+
value: "Value"
|
|
6
|
+
}, t = {
|
|
3
7
|
open: { icon: "minus-box" },
|
|
4
8
|
close: { icon: "plus-box" }
|
|
5
9
|
};
|
|
@@ -94,10 +94,22 @@ declare const QPropertyListRow: <T>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
94
94
|
}>) => import('vue').VNode & {
|
|
95
95
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
96
96
|
};
|
|
97
|
-
declare const QPropertyListGroup: import('vue').DefineComponent<
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
97
|
+
declare const QPropertyListGroup: import('vue').DefineComponent<{
|
|
98
|
+
open?: boolean;
|
|
99
|
+
} & import('../..').QBaseComponentProps & Omit<import('./types').QPropertyListGroup, "id"> & {
|
|
100
|
+
noToggle?: boolean;
|
|
101
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
102
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
103
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
|
+
"update:open": (value: boolean) => any;
|
|
105
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
106
|
+
open?: boolean;
|
|
107
|
+
} & import('../..').QBaseComponentProps & Omit<import('./types').QPropertyListGroup, "id"> & {
|
|
108
|
+
noToggle?: boolean;
|
|
109
|
+
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
110
|
+
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
111
|
+
}> & Readonly<{
|
|
112
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
101
113
|
}>, {
|
|
102
114
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
103
115
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AACrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;2BASymY,KAAK;;;;;;;;;cAA4J,KAAK;SAAiB,CAAC;CAT5vY,CAAA;AAC3D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6FAAuC,CAAA;AAC/D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAGlF,cAAc,SAAS,CAAA"}
|