@quidgest/ui 0.14.1 → 0.14.3
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/manifest/components.json +1 -0
- package/dist/ui.css +105 -0
- package/dist/ui.esm.js +762 -681
- package/dist/ui.js +3 -3
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +91 -90
- package/dist/ui.scss +101 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +26 -23
- package/esm/components/QCheckbox/QCheckbox.d.ts +20 -0
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -0
- package/esm/components/QCheckbox/QCheckbox.vue.js +105 -0
- package/esm/components/QCheckbox/QCheckbox.vue2.js +4 -0
- package/esm/components/QCheckbox/index.d.ts +4 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -0
- package/esm/components/QCheckbox/index.js +6 -0
- package/esm/components/QCheckbox/types.d.ts +47 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -0
- package/esm/components/QCheckbox/types.js +11 -0
- package/esm/components/QCombobox/QCombobox.d.ts +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +28 -25
- package/esm/components/QPropertyList/types.d.ts +5 -9
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/components/QTooltip/types.d.ts +1 -1
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +42 -40
- package/esm/index.d.ts +1 -0
- package/package.json +24 -22
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.14.
|
|
2
|
+
* Quidgest UI v0.14.3
|
|
3
3
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -497,6 +497,106 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
+
.q-checkbox {
|
|
501
|
+
$this: &;
|
|
502
|
+
--box-size: 1.15rem;
|
|
503
|
+
--icon-color: var(--q-theme-on-primary);
|
|
504
|
+
--icon-opacity: 0;
|
|
505
|
+
display: flex;
|
|
506
|
+
align-items: center;
|
|
507
|
+
gap: 0.5rem;
|
|
508
|
+
width: fit-content;
|
|
509
|
+
color: var(--q-theme-neutral-dark);
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
&__input {
|
|
512
|
+
position: relative;
|
|
513
|
+
width: var(--box-size);
|
|
514
|
+
height: var(--box-size);
|
|
515
|
+
border: 1px solid $border;
|
|
516
|
+
border-radius: $border-radius;
|
|
517
|
+
transition:
|
|
518
|
+
background 0.2s,
|
|
519
|
+
border-color 0.2s,
|
|
520
|
+
box-shadow 0.2s;
|
|
521
|
+
background-color: transparent;
|
|
522
|
+
flex-shrink: 0;
|
|
523
|
+
cursor: inherit;
|
|
524
|
+
&:hover:not(:disabled) {
|
|
525
|
+
border-color: var(--active-color);
|
|
526
|
+
}
|
|
527
|
+
&:focus:not(:disabled) {
|
|
528
|
+
outline: 0;
|
|
529
|
+
}
|
|
530
|
+
&:focus-visible:not(:disabled) {
|
|
531
|
+
outline: $outline;
|
|
532
|
+
}
|
|
533
|
+
&-icon.q-icon {
|
|
534
|
+
position: absolute;
|
|
535
|
+
top: -1px;
|
|
536
|
+
left: -1px;
|
|
537
|
+
width: inherit;
|
|
538
|
+
height: inherit;
|
|
539
|
+
padding: 0.25rem;
|
|
540
|
+
pointer-events: none;
|
|
541
|
+
user-select: none;
|
|
542
|
+
fill: var(--icon-color);
|
|
543
|
+
transition: transform 0.2s ease;
|
|
544
|
+
opacity: var(--icon-opacity);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
&__native-input {
|
|
548
|
+
transform: translateX(-100%);
|
|
549
|
+
position: absolute;
|
|
550
|
+
pointer-events: none;
|
|
551
|
+
opacity: 0;
|
|
552
|
+
margin: 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
&--small {
|
|
556
|
+
--box-size: 0.95rem;
|
|
557
|
+
}
|
|
558
|
+
&--large {
|
|
559
|
+
--box-size: 1.3rem;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
@mixin color-variant($color) {
|
|
563
|
+
&--#{$color} {
|
|
564
|
+
--active-color: var(--q-theme-#{$color});
|
|
565
|
+
--icon-color: var(--q-theme-on-#{$color});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
@each $color in (primary, info, success, warning, danger) {
|
|
569
|
+
@include color-variant($color);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
&--checked,
|
|
573
|
+
&--indeterminate {
|
|
574
|
+
--icon-opacity: 1;
|
|
575
|
+
#{$this}__input {
|
|
576
|
+
background-color: var(--active-color);
|
|
577
|
+
border-color: var(--active-color);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
&--disabled {
|
|
581
|
+
opacity: 0.6;
|
|
582
|
+
cursor: not-allowed;
|
|
583
|
+
}
|
|
584
|
+
&--readonly {
|
|
585
|
+
--active-color: var(--q-theme-neutral-light);
|
|
586
|
+
cursor: default;
|
|
587
|
+
&:not(#{$this}--checked):not(#{$this}--indeterminate) {
|
|
588
|
+
#{$this}__input {
|
|
589
|
+
background-color: rgb(var(--q-theme-neutral-light-rgb) / 0.25);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
@media (prefers-reduced-motion: reduce) {
|
|
595
|
+
.q-checkbox__input,
|
|
596
|
+
.q-checkbox__input .q-icon {
|
|
597
|
+
transition: none;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
500
600
|
.q-combobox {
|
|
501
601
|
$this: &;
|
|
502
602
|
&:not(#{$this}--disabled) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,QAAA,IAAI,eAAe,EAAG,kBAAkB,CAAC;AAgBzC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;6CAyD+D,GAAG;;WAU3E,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as i, mergeModels as c, useModel as m, openBlock as
|
|
2
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as i, mergeModels as c, useModel as m, openBlock as o, createBlock as s, unref as d, normalizeClass as b, withCtx as n, createElementBlock as y, Fragment as f, renderList as k, renderSlot as v } from "vue";
|
|
2
|
+
import { QButton as p } from "../QButton/index.js";
|
|
3
3
|
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
4
|
-
const
|
|
4
|
+
const M = /* @__PURE__ */ i({
|
|
5
5
|
__name: "QButtonToggle",
|
|
6
6
|
props: /* @__PURE__ */ c({
|
|
7
7
|
options: {},
|
|
@@ -15,35 +15,38 @@ const Q = /* @__PURE__ */ i({
|
|
|
15
15
|
modelModifiers: {}
|
|
16
16
|
}),
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
function u(
|
|
21
|
-
t.value ===
|
|
18
|
+
setup(r) {
|
|
19
|
+
const l = r, t = m(r, "modelValue");
|
|
20
|
+
function u(a) {
|
|
21
|
+
t.value === a.key && !l.required ? t.value = void 0 : t.value = a.key;
|
|
22
22
|
}
|
|
23
|
-
return (
|
|
23
|
+
return (a, g) => (o(), s(d(B), {
|
|
24
24
|
"b-style": "secondary",
|
|
25
|
-
class: b(
|
|
26
|
-
disabled:
|
|
27
|
-
borderless:
|
|
28
|
-
elevated:
|
|
25
|
+
class: b(l.class),
|
|
26
|
+
disabled: l.disabled,
|
|
27
|
+
borderless: l.borderless,
|
|
28
|
+
elevated: l.elevated,
|
|
29
|
+
role: "listbox"
|
|
29
30
|
}, {
|
|
30
31
|
default: n(() => [
|
|
31
|
-
(
|
|
32
|
-
|
|
32
|
+
(o(!0), y(
|
|
33
|
+
f,
|
|
33
34
|
null,
|
|
34
|
-
k(
|
|
35
|
-
key:
|
|
36
|
-
title:
|
|
37
|
-
label:
|
|
38
|
-
active: t.value ===
|
|
39
|
-
|
|
35
|
+
k(l.options, (e) => (o(), s(d(p), {
|
|
36
|
+
key: e.key,
|
|
37
|
+
title: e.title,
|
|
38
|
+
label: e.label,
|
|
39
|
+
active: t.value === e.key,
|
|
40
|
+
role: "option",
|
|
41
|
+
"aria-selected": t.value === e.key,
|
|
42
|
+
onClick: () => u(e)
|
|
40
43
|
}, {
|
|
41
44
|
default: n(() => [
|
|
42
|
-
|
|
45
|
+
v(a.$slots, e.key)
|
|
43
46
|
]),
|
|
44
47
|
_: 2
|
|
45
48
|
/* DYNAMIC */
|
|
46
|
-
}, 1032, ["title", "label", "active", "onClick"]))),
|
|
49
|
+
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))),
|
|
47
50
|
128
|
|
48
51
|
/* KEYED_FRAGMENT */
|
|
49
52
|
))
|
|
@@ -54,5 +57,5 @@ const Q = /* @__PURE__ */ i({
|
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
59
|
export {
|
|
57
|
-
|
|
60
|
+
M as default
|
|
58
61
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { QCheckboxProps, DEFAULT_ICONS } from './types';
|
|
2
|
+
declare let __VLS_typeProps: QCheckboxProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & typeof __VLS_typeProps;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (modelValue: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
size: "regular" | "small" | "large";
|
|
12
|
+
class: string | unknown[];
|
|
13
|
+
label: string;
|
|
14
|
+
color: string;
|
|
15
|
+
icons: typeof DEFAULT_ICONS;
|
|
16
|
+
id: string;
|
|
17
|
+
labelPlacement: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=QCheckbox.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIxC,QAAA,IAAI,eAAe,EAAG,cAAc,CAAC;AAmDrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;;;;;;;;;;;;;;AA2E3B,wBAQG"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as k, mergeModels as f, useModel as y, computed as v, openBlock as l, createElementBlock as t, Fragment as x, createElementVNode as a, normalizeClass as _, toDisplayString as s, createCommentVNode as n, unref as u, withModifiers as d, withKeys as m, createBlock as g, mergeProps as q } from "vue";
|
|
2
|
+
import { QIcon as B } from "../QIcon/index.js";
|
|
3
|
+
import { useId as C } from "../../composables/uid.js";
|
|
4
|
+
import { DEFAULT_ICONS as V } from "./types.js";
|
|
5
|
+
const w = { key: 0 }, M = ["id", "aria-checked", "disabled", "onKeydown"], P = { key: 1 }, z = ["checked", "disabled"], D = /* @__PURE__ */ k({
|
|
6
|
+
__name: "QCheckbox",
|
|
7
|
+
props: /* @__PURE__ */ f({
|
|
8
|
+
id: { default: void 0 },
|
|
9
|
+
label: { default: "" },
|
|
10
|
+
labelPlacement: { default: "right" },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
readonly: { type: Boolean },
|
|
13
|
+
indeterminate: { type: Boolean },
|
|
14
|
+
color: { default: "primary" },
|
|
15
|
+
size: { default: "regular" },
|
|
16
|
+
class: { default: void 0 },
|
|
17
|
+
icons: { default: () => V }
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: { type: Boolean },
|
|
20
|
+
modelModifiers: {}
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(i) {
|
|
24
|
+
const e = i, o = y(i, "modelValue"), b = C(e.id), p = v(() => [
|
|
25
|
+
"q-checkbox",
|
|
26
|
+
`q-checkbox--${e.size}`,
|
|
27
|
+
`q-checkbox--${e.color}`,
|
|
28
|
+
{
|
|
29
|
+
"q-checkbox--readonly": e.readonly,
|
|
30
|
+
"q-checkbox--disabled": e.disabled,
|
|
31
|
+
"q-checkbox--checked": o.value,
|
|
32
|
+
"q-checkbox--indeterminate": e.indeterminate
|
|
33
|
+
},
|
|
34
|
+
e.class
|
|
35
|
+
]);
|
|
36
|
+
function c() {
|
|
37
|
+
!e.disabled && !e.readonly && (o.value = !o.value);
|
|
38
|
+
}
|
|
39
|
+
return (h, r) => (l(), t(
|
|
40
|
+
x,
|
|
41
|
+
null,
|
|
42
|
+
[
|
|
43
|
+
a(
|
|
44
|
+
"label",
|
|
45
|
+
{
|
|
46
|
+
class: _(p.value)
|
|
47
|
+
},
|
|
48
|
+
[
|
|
49
|
+
e.labelPlacement !== "right" ? (l(), t(
|
|
50
|
+
"span",
|
|
51
|
+
w,
|
|
52
|
+
s(e.label),
|
|
53
|
+
1
|
|
54
|
+
/* TEXT */
|
|
55
|
+
)) : n("v-if", !0),
|
|
56
|
+
a("button", {
|
|
57
|
+
id: u(b),
|
|
58
|
+
role: "checkbox",
|
|
59
|
+
type: "button",
|
|
60
|
+
"aria-checked": e.indeterminate ? "mixed" : o.value,
|
|
61
|
+
disabled: e.disabled || e.readonly,
|
|
62
|
+
class: "q-checkbox__input",
|
|
63
|
+
onClick: d(c, ["prevent"]),
|
|
64
|
+
onKeydown: [
|
|
65
|
+
m(d(c, ["prevent"]), ["space"]),
|
|
66
|
+
r[0] || (r[0] = m(d(() => {
|
|
67
|
+
}, ["prevent"]), ["enter"]))
|
|
68
|
+
]
|
|
69
|
+
}, [
|
|
70
|
+
o.value || h.indeterminate ? (l(), g(
|
|
71
|
+
u(B),
|
|
72
|
+
q({ key: 0 }, o.value ? e.icons.checked : e.icons.indeterminate, { class: "q-checkbox__input-icon" }),
|
|
73
|
+
null,
|
|
74
|
+
16
|
|
75
|
+
/* FULL_PROPS */
|
|
76
|
+
)) : n("v-if", !0)
|
|
77
|
+
], 40, M),
|
|
78
|
+
e.labelPlacement === "right" ? (l(), t(
|
|
79
|
+
"span",
|
|
80
|
+
P,
|
|
81
|
+
s(e.label),
|
|
82
|
+
1
|
|
83
|
+
/* TEXT */
|
|
84
|
+
)) : n("v-if", !0)
|
|
85
|
+
],
|
|
86
|
+
2
|
|
87
|
+
/* CLASS */
|
|
88
|
+
),
|
|
89
|
+
a("input", {
|
|
90
|
+
type: "checkbox",
|
|
91
|
+
tabindex: "-1",
|
|
92
|
+
"aria-hidden": "true",
|
|
93
|
+
class: "q-checkbox__native-input",
|
|
94
|
+
checked: !!o.value,
|
|
95
|
+
disabled: e.disabled || e.readonly
|
|
96
|
+
}, null, 8, z)
|
|
97
|
+
],
|
|
98
|
+
64
|
|
99
|
+
/* STABLE_FRAGMENT */
|
|
100
|
+
));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
D as default
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/index.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,iBAAiB,CAAA;AAKxC,QAAA,MAAM,SAAS,EAAkC,OAAO,UAAU,CAAA;AAGlE,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Icon } from '../QIcon';
|
|
2
|
+
export type QCheckboxProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The field unique identifier.
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The text content of the checkbox.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The placement of the label shown.
|
|
13
|
+
*/
|
|
14
|
+
labelPlacement?: string;
|
|
15
|
+
/**
|
|
16
|
+
* If true, the checkbox is disabled and cannot be interacted with.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If set to true, the checkbox is read-only.
|
|
21
|
+
*/
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If set to true, the checkbox appears in an indeterminate state
|
|
25
|
+
*/
|
|
26
|
+
indeterminate?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Applies specified color to the control
|
|
29
|
+
*/
|
|
30
|
+
color?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The size of the checkbox, either 'regular', 'small' or 'large.
|
|
33
|
+
*/
|
|
34
|
+
size?: 'regular' | 'small' | 'large';
|
|
35
|
+
/**
|
|
36
|
+
* Custom set of classes to apply to the component.
|
|
37
|
+
*/
|
|
38
|
+
class?: string | unknown[];
|
|
39
|
+
/**
|
|
40
|
+
* Custom icon configurations.
|
|
41
|
+
*/
|
|
42
|
+
icons?: typeof DEFAULT_ICONS;
|
|
43
|
+
};
|
|
44
|
+
type IconKeys = 'checked' | 'indeterminate';
|
|
45
|
+
export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,KAAK,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAA;AAG3C,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAOhD,CAAA"}
|
|
@@ -495,12 +495,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
495
495
|
class: string | unknown[];
|
|
496
496
|
label: string;
|
|
497
497
|
icons: typeof DEFAULT_ICONS;
|
|
498
|
+
id: string;
|
|
498
499
|
groups: (import('../QList').QListItemGroupProps & {
|
|
499
500
|
id: string;
|
|
500
501
|
})[];
|
|
501
502
|
itemValue: string;
|
|
502
503
|
itemLabel: string;
|
|
503
|
-
id: string;
|
|
504
504
|
placeholder: string;
|
|
505
505
|
selectionMode: "manual" | "automatic";
|
|
506
506
|
filterMode: "builtin" | "manual";
|
|
@@ -9,7 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
group?: string | undefined;
|
|
10
10
|
label: string;
|
|
11
11
|
description?: string | undefined;
|
|
12
|
-
component
|
|
12
|
+
component?: string | undefined;
|
|
13
13
|
props: Record<string, unknown>;
|
|
14
14
|
};
|
|
15
15
|
}): any;
|
|
@@ -9,8 +9,8 @@ const O = { class: "q-property-list__table" }, $ = /* @__PURE__ */ w({
|
|
|
9
9
|
noToggle: { type: Boolean },
|
|
10
10
|
panelPosition: { default: "bottom" },
|
|
11
11
|
groups: { default: () => [] },
|
|
12
|
-
class: { default: void 0 },
|
|
13
12
|
readonly: { type: Boolean },
|
|
13
|
+
class: { default: void 0 },
|
|
14
14
|
icons: { default: () => A },
|
|
15
15
|
texts: { default: () => N }
|
|
16
16
|
},
|
|
@@ -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":"AAsEC,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA+CzE,iBAAS,cAAc;;yBA0DM,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"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const B = {
|
|
1
|
+
import { defineComponent as v, computed as o, openBlock as n, createElementBlock as a, normalizeClass as c, createElementVNode as i, toDisplayString as q, renderSlot as C, createBlock as h, resolveDynamicComponent as k, mergeProps as g, createCommentVNode as V } from "vue";
|
|
2
|
+
const B = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "q-property-list-field__container"
|
|
5
|
+
}, P = /* @__PURE__ */ v({
|
|
3
6
|
__name: "QPropertyListRow",
|
|
4
7
|
props: {
|
|
5
8
|
field: {},
|
|
@@ -7,50 +10,50 @@ const B = { class: "q-property-list-field__container" }, b = /* @__PURE__ */ y({
|
|
|
7
10
|
readonly: { type: Boolean }
|
|
8
11
|
},
|
|
9
12
|
emits: ["focus", "field-change"],
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
12
|
-
var
|
|
13
|
+
setup(p, { emit: d }) {
|
|
14
|
+
const e = p, r = d, u = o(() => ["q-property-list__row", e.class]), f = o(() => {
|
|
15
|
+
var s;
|
|
13
16
|
const l = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
14
|
-
return (
|
|
15
|
-
}),
|
|
16
|
-
function
|
|
17
|
+
return (s = e.field.props) != null && s.required && l.push("q-property-list__cell--required"), l;
|
|
18
|
+
}), m = o(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
19
|
+
function t() {
|
|
17
20
|
r("focus", e.field);
|
|
18
21
|
}
|
|
19
|
-
function
|
|
22
|
+
function _(l) {
|
|
20
23
|
r("field-change", e.field, l);
|
|
21
24
|
}
|
|
22
|
-
const
|
|
25
|
+
const y = o(() => ({
|
|
23
26
|
...e.field.props,
|
|
24
|
-
readonly:
|
|
27
|
+
readonly: m.value
|
|
25
28
|
}));
|
|
26
|
-
return (l,
|
|
29
|
+
return (l, s) => (n(), a(
|
|
27
30
|
"tr",
|
|
28
31
|
{
|
|
29
|
-
class: c(
|
|
30
|
-
onFocusin:
|
|
32
|
+
class: c(u.value),
|
|
33
|
+
onFocusin: t
|
|
31
34
|
},
|
|
32
35
|
[
|
|
33
|
-
|
|
36
|
+
i(
|
|
34
37
|
"td",
|
|
35
38
|
{
|
|
36
|
-
class: c(
|
|
37
|
-
onClick:
|
|
39
|
+
class: c(f.value),
|
|
40
|
+
onClick: t
|
|
38
41
|
},
|
|
39
|
-
|
|
42
|
+
q(e.field.label),
|
|
40
43
|
3
|
|
41
44
|
/* TEXT, CLASS */
|
|
42
45
|
),
|
|
43
|
-
|
|
46
|
+
i("td", {
|
|
44
47
|
class: "q-property-list__cell",
|
|
45
|
-
onClick:
|
|
48
|
+
onClick: t
|
|
46
49
|
}, [
|
|
47
50
|
C(l.$slots, "default", {}, () => [
|
|
48
|
-
n("div", B, [
|
|
49
|
-
(
|
|
51
|
+
e.field.component ? (n(), a("div", B, [
|
|
52
|
+
(n(), h(k(e.field.component), g(y.value, {
|
|
50
53
|
"model-value": e.field.props.modelValue,
|
|
51
|
-
"onUpdate:modelValue":
|
|
54
|
+
"onUpdate:modelValue": _
|
|
52
55
|
}), null, 16, ["model-value"]))
|
|
53
|
-
])
|
|
56
|
+
])) : V("v-if", !0)
|
|
54
57
|
])
|
|
55
58
|
])
|
|
56
59
|
],
|
|
@@ -60,5 +63,5 @@ const B = { class: "q-property-list-field__container" }, b = /* @__PURE__ */ y({
|
|
|
60
63
|
}
|
|
61
64
|
});
|
|
62
65
|
export {
|
|
63
|
-
|
|
66
|
+
P as default
|
|
64
67
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Icon } from '../QIcon';
|
|
2
|
-
import { Component, PropType } from 'vue';
|
|
3
2
|
/**
|
|
4
3
|
* Position where the panel should be rendered relative to the main content
|
|
5
4
|
* @value 'bottom' - Panel appears below the main content
|
|
@@ -28,14 +27,14 @@ export type QPropertyListProps = {
|
|
|
28
27
|
* Configuration for property groups used to organize and categorize fields.
|
|
29
28
|
*/
|
|
30
29
|
groups?: QPropertyListGroupProps[];
|
|
31
|
-
/**
|
|
32
|
-
* Custom CSS classes to apply to the root element.
|
|
33
|
-
*/
|
|
34
|
-
class?: string | unknown[];
|
|
35
30
|
/**
|
|
36
31
|
* When true, renders all fields in a read-only state preventing user interaction.
|
|
37
32
|
*/
|
|
38
33
|
readonly?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Custom CSS classes to apply to the root element.
|
|
36
|
+
*/
|
|
37
|
+
class?: string | unknown[];
|
|
39
38
|
/**
|
|
40
39
|
* Custom icon configurations.
|
|
41
40
|
*/
|
|
@@ -87,11 +86,8 @@ export type QPropertyListField = {
|
|
|
87
86
|
description?: string;
|
|
88
87
|
/**
|
|
89
88
|
* Component responsible for rendering the field's input element.
|
|
90
|
-
* Can be specified as either:
|
|
91
|
-
* - A string identifier for a registered component
|
|
92
|
-
* - A direct component reference
|
|
93
89
|
*/
|
|
94
|
-
component
|
|
90
|
+
component?: string;
|
|
95
91
|
/**
|
|
96
92
|
* Configuration object passed as props to the rendered component.
|
|
97
93
|
* Supports any valid props accepted by the specified component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPropertyList/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,aAAa;;CAEzB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAGhC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAOhD,CAAA"}
|
|
@@ -204,12 +204,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
204
204
|
class: string | unknown[];
|
|
205
205
|
label: string;
|
|
206
206
|
icons: typeof DEFAULT_ICONS;
|
|
207
|
+
id: string;
|
|
207
208
|
groups: (import('../QList').QListItemGroupProps & {
|
|
208
209
|
id: string;
|
|
209
210
|
})[];
|
|
210
211
|
itemValue: string;
|
|
211
212
|
itemLabel: string;
|
|
212
|
-
id: string;
|
|
213
213
|
emptyValue: Primitive;
|
|
214
214
|
texts: typeof DEFAULT_TEXTS;
|
|
215
215
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -22,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
22
22
|
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
class: string | unknown[];
|
|
25
|
+
anchor: import('../../utils/getElement').Selector;
|
|
25
26
|
html: boolean;
|
|
26
27
|
icon: import('../QIcon').Icon;
|
|
27
28
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAuEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7C,QAAA,IAAI,eAAe,EAAG,aAAa,CAAC;AAsCpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;;;;;;YAoDK,GAAG;yBACF,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EAQnB,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"}
|
|
@@ -6,7 +6,7 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
|
|
|
6
6
|
__name: "QTooltip",
|
|
7
7
|
props: /* @__PURE__ */ p({
|
|
8
8
|
id: { default: void 0 },
|
|
9
|
-
anchor: {},
|
|
9
|
+
anchor: { default: void 0 },
|
|
10
10
|
appearance: { default: "inverted" },
|
|
11
11
|
arrow: { type: Boolean, default: !0 },
|
|
12
12
|
attach: { default: "body" },
|
|
@@ -9,7 +9,7 @@ export type QTooltipProps = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The DOM element the tooltip should be anchored to.
|
|
11
11
|
*/
|
|
12
|
-
anchor
|
|
12
|
+
anchor?: Selector;
|
|
13
13
|
/**
|
|
14
14
|
* The appearance of the tooltip.
|
|
15
15
|
* 'regular' uses body text color for background and body background color for text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA"}
|