@quidgest/ui 0.14.0 → 0.14.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/dist/ui.css +4 -0
- package/dist/ui.esm.js +693 -686
- package/dist/ui.js +4 -4
- package/dist/ui.min.js +51 -51
- package/dist/ui.scss +1053 -1049
- package/esm/components/QBadge/QBadge.d.ts +14 -41
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +33 -33
- package/esm/components/QBadge/index.d.ts +0 -1
- package/esm/components/QBadge/types.d.ts +6 -7
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +12 -35
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +0 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +9 -26
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +17 -47
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.d.ts +0 -1
- package/esm/components/QCombobox/QCombobox.d.ts +373 -485
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +92 -87
- package/esm/components/QCombobox/index.d.ts +0 -1
- package/esm/components/QCombobox/types.d.ts +9 -8
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +3 -1
- package/esm/components/QDialog/QDialog.d.ts +21 -109
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +16 -16
- package/esm/components/QDialog/index.d.ts +0 -1
- package/esm/components/QDialog/types.d.ts +6 -8
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +18 -41
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +0 -1
- package/esm/components/QIcon/InlineSvg.d.ts +6 -6
- package/esm/components/QIcon/QIcon.d.ts +2 -28
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts +2 -30
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.d.ts +1 -11
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.d.ts +6 -32
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/index.d.ts +0 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +12 -39
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +0 -1
- package/esm/components/QInputGroup/types.d.ts +0 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +2 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +0 -1
- package/esm/components/QList/QList.d.ts +22 -72
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +14 -39
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +5 -5
- package/esm/components/QList/QListItemGroup.d.ts +9 -26
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +0 -1
- package/esm/components/QList/types.d.ts +5 -7
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +23 -141
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/index.d.ts +0 -1
- package/esm/components/QOverlay/types.d.ts +0 -1
- package/esm/components/QPopover/QPopover.d.ts +19 -77
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/index.d.ts +0 -1
- package/esm/components/QPopover/types.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +28 -56
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +61 -62
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +7 -44
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +22 -26
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +11 -43
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +14 -16
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +12 -17
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts +0 -1
- package/esm/components/QPropertyList/types.d.ts +70 -34
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +199 -147
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +130 -125
- package/esm/components/QSelect/index.d.ts +0 -1
- package/esm/components/QSelect/types.d.ts +9 -8
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSelect/types.js +5 -3
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -28
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
- package/esm/components/QSkeletonLoader/index.d.ts +0 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -26
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.d.ts +0 -1
- package/esm/components/QTextField/QTextField.d.ts +100 -96
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +0 -1
- package/esm/components/QTextField/types.d.ts +0 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +8 -13
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +0 -1
- package/esm/components/QTooltip/QTooltip.d.ts +23 -121
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/index.d.ts +0 -1
- package/esm/components/QTooltip/types.d.ts +0 -1
- package/esm/composables/defaults.d.ts +0 -1
- package/esm/composables/theme.d.ts +0 -1
- package/esm/framework.d.ts +0 -1
- package/esm/templates/theme.d.ts +0 -1
- package/esm/utils/setupPropsProxy.d.ts +0 -1
- package/esm/utils/theme.d.ts +0 -1
- package/package.json +31 -31
|
@@ -1,67 +1,39 @@
|
|
|
1
|
-
import { QPropertyListGroupProps, QPropertyListProps,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
field: QPropertyListField;
|
|
5
|
-
}) => any>> & {
|
|
6
|
-
panel?(_: {
|
|
1
|
+
import { QPropertyListField, QPropertyListGroupProps, QPropertyListProps, DEFAULT_ICONS, DEFAULT_TEXTS } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: Partial<Record<string, (_: {
|
|
7
4
|
field: QPropertyListField;
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
5
|
+
}) => any>> & {
|
|
6
|
+
panel?(_: {
|
|
7
|
+
field: {
|
|
8
|
+
id: string;
|
|
9
|
+
group?: string | undefined;
|
|
10
|
+
label: string;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
component: ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[];
|
|
13
|
+
props: Record<string, unknown>;
|
|
14
|
+
};
|
|
15
|
+
}): any;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QPropertyListProps>, {
|
|
24
|
-
fields: () => never[];
|
|
25
|
-
panelPosition: string;
|
|
26
|
-
groups: () => never[];
|
|
27
|
-
class: undefined;
|
|
28
|
-
internals: () => {
|
|
29
|
-
icons: Record<string, import('..').Icon>;
|
|
30
|
-
texts: {
|
|
31
|
-
emptyMessage: string;
|
|
32
|
-
};
|
|
17
|
+
refs: {
|
|
18
|
+
componentRoot: HTMLDivElement;
|
|
33
19
|
};
|
|
34
|
-
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<QPropertyListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
"field-change": (field: QPropertyListField) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<QPropertyListProps> & Readonly<{
|
|
35
26
|
"onField-change"?: ((field: QPropertyListField) => any) | undefined;
|
|
36
|
-
}
|
|
27
|
+
}>, {
|
|
37
28
|
class: string | unknown[];
|
|
38
|
-
|
|
39
|
-
icons: typeof DEFAULT_ICONS;
|
|
40
|
-
texts: typeof DEFAULT_TEXTS;
|
|
41
|
-
};
|
|
29
|
+
icons: typeof DEFAULT_ICONS;
|
|
42
30
|
groups: QPropertyListGroupProps[];
|
|
31
|
+
texts: typeof DEFAULT_TEXTS;
|
|
43
32
|
fields: QPropertyListField[];
|
|
44
|
-
panelPosition: import('./types').
|
|
45
|
-
}, {}>;
|
|
46
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
33
|
+
panelPosition: import('./types').PanelPosition;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
36
|
export default _default;
|
|
48
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
-
} : {
|
|
53
|
-
type: import('vue').PropType<T[K]>;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
type __VLS_WithDefaults<P, D> = {
|
|
58
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
-
default: D[K];
|
|
60
|
-
}> : P[K];
|
|
61
|
-
};
|
|
62
|
-
type __VLS_Prettify<T> = {
|
|
63
|
-
[K in keyof T]: T[K];
|
|
64
|
-
} & {};
|
|
65
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
38
|
new (): {
|
|
67
39
|
$slots: S;
|
|
@@ -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":"AAkMC,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI9F,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AA8IvD,iBAAS,cAAc;;;UAyH+D,GAAG;;;;;;;;;;YAE7D,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;6EAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QPropertyListGroup as G, QPropertyListRow as Q, QPropertyListPanel as
|
|
3
|
-
import { DEFAULT_ICONS as
|
|
4
|
-
const
|
|
5
|
-
"thead",
|
|
6
|
-
{ class: "q-property-list__header" },
|
|
7
|
-
[
|
|
8
|
-
/* @__PURE__ */ i("tr", null, [
|
|
9
|
-
/* @__PURE__ */ i("th", { colspan: "2" })
|
|
10
|
-
])
|
|
11
|
-
],
|
|
12
|
-
-1
|
|
13
|
-
/* HOISTED */
|
|
14
|
-
), z = /* @__PURE__ */ x({
|
|
1
|
+
import { defineComponent as w, ref as d, computed as g, openBlock as s, createElementBlock as u, normalizeClass as v, createElementVNode as i, Fragment as p, renderList as _, createBlock as c, unref as f, createCommentVNode as y, withCtx as h, renderSlot as F } from "vue";
|
|
2
|
+
import { QPropertyListGroup as G, QPropertyListRow as Q, QPropertyListPanel as S } from "./index.js";
|
|
3
|
+
import { DEFAULT_ICONS as A, DEFAULT_TEXTS as N } from "./types.js";
|
|
4
|
+
const O = { class: "q-property-list__table" }, $ = /* @__PURE__ */ w({
|
|
15
5
|
__name: "QPropertyList",
|
|
16
6
|
props: {
|
|
17
7
|
fields: { default: () => [] },
|
|
@@ -20,91 +10,100 @@ const S = { class: "q-property-list__table" }, V = /* @__PURE__ */ i(
|
|
|
20
10
|
panelPosition: { default: "bottom" },
|
|
21
11
|
groups: { default: () => [] },
|
|
22
12
|
class: { default: void 0 },
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}) },
|
|
27
|
-
readonly: { type: Boolean }
|
|
13
|
+
readonly: { type: Boolean },
|
|
14
|
+
icons: { default: () => A },
|
|
15
|
+
texts: { default: () => N }
|
|
28
16
|
},
|
|
29
17
|
emits: ["field-change"],
|
|
30
18
|
setup(k, { emit: P }) {
|
|
31
|
-
const t = k,
|
|
19
|
+
const t = k, x = P, a = d(t.groups.map((e) => e.id)), r = d(void 0), m = d(null), C = g(() => t.groups.length ? t.groups.filter(
|
|
32
20
|
(e) => t.fields.some((o) => o.group === e.id)
|
|
33
|
-
) : [{ id: "", title: "" }]),
|
|
21
|
+
) : [{ id: "", title: "" }]), L = g(() => [
|
|
34
22
|
t.class,
|
|
35
23
|
{
|
|
36
24
|
"q-property-list--side-panel": t.panelPosition === "right"
|
|
37
25
|
}
|
|
38
26
|
]);
|
|
39
|
-
function
|
|
27
|
+
function T() {
|
|
40
28
|
var e;
|
|
41
|
-
(e = m.value) != null && e.contains(document.activeElement) || (
|
|
29
|
+
(e = m.value) != null && e.contains(document.activeElement) || (r.value = void 0);
|
|
42
30
|
}
|
|
43
|
-
function
|
|
31
|
+
function q(e) {
|
|
44
32
|
return e ? t.fields.filter((o) => o.group === e) : t.fields;
|
|
45
33
|
}
|
|
46
|
-
function
|
|
34
|
+
function B(e) {
|
|
47
35
|
const o = a.value.indexOf(e);
|
|
48
36
|
o === -1 ? a.value.push(e) : a.value.splice(o, 1);
|
|
49
37
|
}
|
|
50
|
-
function
|
|
51
|
-
var
|
|
38
|
+
function E(e) {
|
|
39
|
+
var n;
|
|
40
|
+
const o = e.group && !a.value.includes(e.group), l = ((n = r.value) == null ? void 0 : n.id) === e.id;
|
|
52
41
|
return [
|
|
53
42
|
{
|
|
54
|
-
"q-property-list__row--closed":
|
|
55
|
-
"q-property-list__row--selected":
|
|
43
|
+
"q-property-list__row--closed": o,
|
|
44
|
+
"q-property-list__row--selected": l
|
|
56
45
|
}
|
|
57
46
|
];
|
|
58
47
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
48
|
+
function R(e) {
|
|
49
|
+
r.value = e;
|
|
61
50
|
}
|
|
62
|
-
function
|
|
63
|
-
t.readonly || (e.props.readonly ?? !1) || (e.props.modelValue = o,
|
|
51
|
+
function b(e, o) {
|
|
52
|
+
t.readonly || (e.props.readonly ?? !1) || (e.props.modelValue = o, x("field-change", e));
|
|
64
53
|
}
|
|
65
|
-
return (e, o) => (
|
|
54
|
+
return (e, o) => (s(), u(
|
|
66
55
|
"div",
|
|
67
56
|
{
|
|
68
57
|
tabindex: "0",
|
|
69
|
-
class: v(["q-property-list",
|
|
58
|
+
class: v(["q-property-list", L.value]),
|
|
70
59
|
ref_key: "componentRoot",
|
|
71
60
|
ref: m,
|
|
72
|
-
onFocusout:
|
|
61
|
+
onFocusout: T
|
|
73
62
|
},
|
|
74
63
|
[
|
|
75
|
-
i("table",
|
|
76
|
-
|
|
64
|
+
i("table", O, [
|
|
65
|
+
o[0] || (o[0] = i(
|
|
66
|
+
"thead",
|
|
67
|
+
{ class: "q-property-list__header" },
|
|
68
|
+
[
|
|
69
|
+
i("tr", null, [
|
|
70
|
+
i("th", { colspan: "2" })
|
|
71
|
+
])
|
|
72
|
+
],
|
|
73
|
+
-1
|
|
74
|
+
/* HOISTED */
|
|
75
|
+
)),
|
|
77
76
|
i("tbody", null, [
|
|
78
|
-
(
|
|
77
|
+
(s(!0), u(
|
|
79
78
|
p,
|
|
80
79
|
null,
|
|
81
|
-
_(
|
|
80
|
+
_(C.value, (l) => (s(), u(
|
|
82
81
|
p,
|
|
83
82
|
{
|
|
84
|
-
key:
|
|
83
|
+
key: l.id
|
|
85
84
|
},
|
|
86
85
|
[
|
|
87
|
-
|
|
86
|
+
l.title ? (s(), c(f(G), {
|
|
88
87
|
key: 0,
|
|
89
|
-
id:
|
|
90
|
-
title:
|
|
91
|
-
|
|
88
|
+
id: l.id,
|
|
89
|
+
title: l.title,
|
|
90
|
+
icons: t.icons,
|
|
92
91
|
"no-toggle": t.noToggle,
|
|
93
|
-
onToggleGroup:
|
|
94
|
-
}, null, 8, ["id", "title", "
|
|
95
|
-
(
|
|
92
|
+
onToggleGroup: B
|
|
93
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : y("v-if", !0),
|
|
94
|
+
(s(!0), u(
|
|
96
95
|
p,
|
|
97
96
|
null,
|
|
98
|
-
_(
|
|
99
|
-
key:
|
|
100
|
-
class: v(
|
|
101
|
-
field:
|
|
97
|
+
_(q(l.id), (n) => (s(), c(f(Q), {
|
|
98
|
+
key: n.id,
|
|
99
|
+
class: v(E(n)),
|
|
100
|
+
field: n,
|
|
102
101
|
readonly: t.readonly,
|
|
103
|
-
onFocus:
|
|
104
|
-
onFieldChange:
|
|
102
|
+
onFocus: R,
|
|
103
|
+
onFieldChange: b
|
|
105
104
|
}, {
|
|
106
105
|
default: h(() => [
|
|
107
|
-
F(e.$slots,
|
|
106
|
+
F(e.$slots, n.id, { field: n })
|
|
108
107
|
]),
|
|
109
108
|
_: 2
|
|
110
109
|
/* DYNAMIC */
|
|
@@ -121,20 +120,20 @@ const S = { class: "q-property-list__table" }, V = /* @__PURE__ */ i(
|
|
|
121
120
|
))
|
|
122
121
|
])
|
|
123
122
|
]),
|
|
124
|
-
t.noPanel ? y("v-if", !0) : (
|
|
123
|
+
t.noPanel ? y("v-if", !0) : (s(), c(f(S), {
|
|
125
124
|
key: 0,
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
field: r.value,
|
|
126
|
+
texts: t.texts
|
|
128
127
|
}, {
|
|
129
128
|
default: h(() => [
|
|
130
|
-
|
|
129
|
+
r.value ? F(e.$slots, "panel", {
|
|
131
130
|
key: 0,
|
|
132
|
-
field:
|
|
131
|
+
field: r.value
|
|
133
132
|
}) : y("v-if", !0)
|
|
134
133
|
]),
|
|
135
134
|
_: 3
|
|
136
135
|
/* FORWARDED */
|
|
137
|
-
}, 8, ["
|
|
136
|
+
}, 8, ["field", "texts"]))
|
|
138
137
|
],
|
|
139
138
|
34
|
|
140
139
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -142,5 +141,5 @@ const S = { class: "q-property-list__table" }, V = /* @__PURE__ */ i(
|
|
|
142
141
|
}
|
|
143
142
|
});
|
|
144
143
|
export {
|
|
145
|
-
|
|
144
|
+
$ as default
|
|
146
145
|
};
|
|
@@ -1,48 +1,11 @@
|
|
|
1
|
-
import { QPropertyListGroupProps, DEFAULT_ICONS
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
internals: () => {
|
|
6
|
-
icons: Record<string, import('../QIcon').Icon>;
|
|
7
|
-
texts: {
|
|
8
|
-
emptyMessage: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
"toggle-group": (id: string) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QPropertyListGroupProps>, {
|
|
14
|
-
noToggle: boolean;
|
|
15
|
-
internals: () => {
|
|
16
|
-
icons: Record<string, import('../QIcon').Icon>;
|
|
17
|
-
texts: {
|
|
18
|
-
emptyMessage: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}>>> & {
|
|
1
|
+
import { QPropertyListGroupProps, DEFAULT_ICONS } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<QPropertyListGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
"toggle-group": (id: string) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<QPropertyListGroupProps> & Readonly<{
|
|
22
5
|
"onToggle-group"?: ((id: string) => any) | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
icons: typeof DEFAULT_ICONS;
|
|
26
|
-
texts: typeof DEFAULT_TEXTS;
|
|
27
|
-
};
|
|
6
|
+
}>, {
|
|
7
|
+
icons: typeof DEFAULT_ICONS;
|
|
28
8
|
noToggle: boolean;
|
|
29
|
-
}, {}>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
10
|
export default _default;
|
|
31
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
-
} : {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
type __VLS_WithDefaults<P, D> = {
|
|
41
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
-
default: D[K];
|
|
43
|
-
}> : P[K];
|
|
44
|
-
};
|
|
45
|
-
type __VLS_Prettify<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
|
48
11
|
//# sourceMappingURL=QPropertyListGroup.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPropertyListGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListGroup.vue"],"names":[],"mappings":"AAyEC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;AAoIxC,wBAUG"}
|
|
@@ -1,54 +1,50 @@
|
|
|
1
|
-
import { defineComponent as m, ref as g, computed as
|
|
1
|
+
import { defineComponent as m, ref as g, computed as n, openBlock as i, createElementBlock as f, normalizeClass as _, unref as o, createElementVNode as s, createBlock as y, withCtx as k, createVNode as v, normalizeProps as C, guardReactiveProps as b, createCommentVNode as T, createTextVNode as h, toDisplayString as x } from "vue";
|
|
2
2
|
import { QButton as B } from "../QButton/index.js";
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { DEFAULT_ICONS as
|
|
6
|
-
const
|
|
3
|
+
import { QIcon as N } from "../QIcon/index.js";
|
|
4
|
+
import { useId as V } from "../../composables/uid.js";
|
|
5
|
+
import { DEFAULT_ICONS as q } from "./types.js";
|
|
6
|
+
const E = ["data-key", "aria-labelledby"], I = ["id"], P = { class: "q-property-list-group__content" }, A = /* @__PURE__ */ m({
|
|
7
7
|
__name: "QPropertyListGroup",
|
|
8
8
|
props: {
|
|
9
9
|
id: {},
|
|
10
10
|
title: {},
|
|
11
11
|
noToggle: { type: Boolean, default: !1 },
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
texts: q
|
|
15
|
-
}) }
|
|
12
|
+
icons: { default: () => q },
|
|
13
|
+
texts: {}
|
|
16
14
|
},
|
|
17
15
|
emits: ["toggle-group"],
|
|
18
16
|
setup(a, { emit: c }) {
|
|
19
|
-
const e = a, p = c,
|
|
20
|
-
() => o.value ? e.internals.icons.open : e.internals.icons.close
|
|
21
|
-
), d = l(() => [
|
|
17
|
+
const e = a, p = c, t = g(!0), r = V(), u = n(() => t.value ? e.icons.open : e.icons.close), d = n(() => [
|
|
22
18
|
"q-property-list-group",
|
|
23
19
|
{
|
|
24
20
|
"q-property-list-group--no-toggle": e.noToggle
|
|
25
21
|
}
|
|
26
22
|
]);
|
|
27
|
-
function
|
|
28
|
-
e.noToggle || (
|
|
23
|
+
function l() {
|
|
24
|
+
e.noToggle || (t.value = !t.value, p("toggle-group", e.id));
|
|
29
25
|
}
|
|
30
|
-
return (
|
|
26
|
+
return (Q, z) => (i(), f("tr", {
|
|
31
27
|
class: _(d.value),
|
|
32
28
|
role: "group",
|
|
33
29
|
"data-key": e.id,
|
|
34
|
-
"aria-labelledby":
|
|
35
|
-
onClick:
|
|
30
|
+
"aria-labelledby": o(r),
|
|
31
|
+
onClick: l
|
|
36
32
|
}, [
|
|
37
33
|
s("td", {
|
|
38
|
-
id:
|
|
34
|
+
id: o(r),
|
|
39
35
|
colspan: "2"
|
|
40
36
|
}, [
|
|
41
|
-
s("div",
|
|
42
|
-
e.noToggle ?
|
|
37
|
+
s("div", P, [
|
|
38
|
+
e.noToggle ? T("v-if", !0) : (i(), y(o(B), {
|
|
43
39
|
key: 0,
|
|
44
40
|
"b-style": "tertiary",
|
|
45
41
|
borderless: "",
|
|
46
|
-
onClick:
|
|
42
|
+
onClick: l
|
|
47
43
|
}, {
|
|
48
44
|
default: k(() => [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
v(
|
|
46
|
+
o(N),
|
|
47
|
+
C(b(u.value)),
|
|
52
48
|
null,
|
|
53
49
|
16
|
|
54
50
|
/* FULL_PROPS */
|
|
@@ -64,9 +60,9 @@ const D = ["data-key", "aria-labelledby"], I = ["id"], L = { class: "q-property-
|
|
|
64
60
|
)
|
|
65
61
|
])
|
|
66
62
|
], 8, I)
|
|
67
|
-
], 10,
|
|
63
|
+
], 10, E));
|
|
68
64
|
}
|
|
69
65
|
});
|
|
70
66
|
export {
|
|
71
|
-
|
|
67
|
+
A as default
|
|
72
68
|
};
|
|
@@ -1,50 +1,18 @@
|
|
|
1
|
-
import { QPropertyListPanelProps, DEFAULT_TEXTS
|
|
2
|
-
|
|
1
|
+
import { QPropertyListPanelProps, DEFAULT_TEXTS } from './types';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QPropertyListPanelProps>, {
|
|
7
|
-
field: undefined;
|
|
8
|
-
internals: () => {
|
|
9
|
-
icons: Record<string, import('..').Icon>;
|
|
10
|
-
texts: {
|
|
11
|
-
emptyMessage: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QPropertyListPanelProps>, {
|
|
15
|
-
field: undefined;
|
|
16
|
-
internals: () => {
|
|
17
|
-
icons: Record<string, import('..').Icon>;
|
|
18
|
-
texts: {
|
|
19
|
-
emptyMessage: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}>>>, {
|
|
23
|
-
internals: {
|
|
24
|
-
icons: typeof DEFAULT_ICONS;
|
|
25
|
-
texts: typeof DEFAULT_TEXTS;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
26
5
|
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<QPropertyListPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QPropertyListPanelProps> & Readonly<{}>, {
|
|
11
|
+
texts: typeof DEFAULT_TEXTS;
|
|
27
12
|
field: import('./types').QPropertyListField;
|
|
28
|
-
}, {}>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
15
|
export default _default;
|
|
31
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
-
} : {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
type __VLS_WithDefaults<P, D> = {
|
|
41
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
-
default: D[K];
|
|
43
|
-
}> : P[K];
|
|
44
|
-
};
|
|
45
|
-
type __VLS_Prettify<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
|
48
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
17
|
new (): {
|
|
50
18
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPropertyListPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListPanel.vue"],"names":[],"mappings":"AA+BC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkBxC,iBAAS,cAAc;;yBAwCM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;6EAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const d = { class: "q-property-list-panel__container" },
|
|
1
|
+
import { defineComponent as n, openBlock as s, createElementBlock as o, renderSlot as p, createElementVNode as l, toDisplayString as t } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as a } from "./types.js";
|
|
3
|
+
const d = { class: "q-property-list-panel__container" }, _ = { class: "q-property-list-panel__label" }, c = { class: "q-property-list-panel__description" }, f = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "q-property-list-panel__empty"
|
|
6
|
-
},
|
|
6
|
+
}, h = /* @__PURE__ */ n({
|
|
7
7
|
__name: "QPropertyListPanel",
|
|
8
8
|
props: {
|
|
9
9
|
field: { default: void 0 },
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
texts: _
|
|
13
|
-
}) }
|
|
10
|
+
icons: {},
|
|
11
|
+
texts: { default: () => a }
|
|
14
12
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const e =
|
|
17
|
-
return (r,
|
|
13
|
+
setup(i) {
|
|
14
|
+
const e = i;
|
|
15
|
+
return (r, m) => (s(), o("div", d, [
|
|
18
16
|
e.field ? p(r.$slots, "default", { key: 0 }, () => [
|
|
19
17
|
l(
|
|
20
18
|
"div",
|
|
21
|
-
|
|
19
|
+
_,
|
|
22
20
|
t(e.field.label),
|
|
23
21
|
1
|
|
24
22
|
/* TEXT */
|
|
25
23
|
),
|
|
26
24
|
l(
|
|
27
25
|
"div",
|
|
28
|
-
|
|
26
|
+
c,
|
|
29
27
|
t(e.field.description),
|
|
30
28
|
1
|
|
31
29
|
/* TEXT */
|
|
32
30
|
)
|
|
33
31
|
]) : (s(), o(
|
|
34
32
|
"div",
|
|
35
|
-
|
|
36
|
-
t(e.
|
|
33
|
+
f,
|
|
34
|
+
t(e.texts.emptyMessage),
|
|
37
35
|
1
|
|
38
36
|
/* TEXT */
|
|
39
37
|
))
|
|
@@ -41,5 +39,5 @@ const d = { class: "q-property-list-panel__container" }, c = { class: "q-propert
|
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
41
|
export {
|
|
44
|
-
|
|
42
|
+
h as default
|
|
45
43
|
};
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import { QPropertyListField, QPropertyListRowProps } from './types';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<QPropertyListRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
focus: (field: QPropertyListField) => any;
|
|
12
|
+
"field-change": (field: QPropertyListField, value: unknown) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<QPropertyListRowProps> & Readonly<{
|
|
10
14
|
onFocus?: ((field: QPropertyListField) => any) | undefined;
|
|
11
15
|
"onField-change"?: ((field: QPropertyListField, value: unknown) => any) | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
18
|
export default _default;
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
20
|
new (): {
|
|
26
21
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPropertyListRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/QPropertyListRow.vue"],"names":[],"mappings":"AAoEC,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA+CzE,iBAAS,cAAc;;yBAwDM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|