@quidgest/ui 0.16.54 → 0.16.56
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/json/api.json +14 -3
- package/dist/ui.css +62 -31
- package/dist/ui.esm.js +2825 -2796
- package/dist/ui.js +24 -24
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +667 -667
- package/dist/ui.scss +68 -32
- package/esm/components/QBadge/QBadge.d.ts +3 -2
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +111 -65
- package/esm/components/QBadge/index.d.ts +2 -1
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +1 -1
- package/esm/components/QOverlay/types.d.ts +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -0
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +36 -31
- package/esm/components/QPopover/index.d.ts +6 -0
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +6 -0
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +21 -21
- package/esm/components/QSelect/QSelect.d.ts +4 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/index.d.ts +2 -1
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/composables/uid.d.ts.map +1 -1
- package/esm/composables/uid.js +5 -6
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.56
|
|
3
3
|
* (c) 2026 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -467,7 +467,6 @@ $transition-duration: 0.2s !default;
|
|
|
467
467
|
border-width: 1px;
|
|
468
468
|
border-color: transparent;
|
|
469
469
|
border-radius: var(--border-radius);
|
|
470
|
-
padding: 0.4em 0.5em;
|
|
471
470
|
font-size: 0.75rem;
|
|
472
471
|
line-height: 1;
|
|
473
472
|
position: relative;
|
|
@@ -483,18 +482,49 @@ $transition-duration: 0.2s !default;
|
|
|
483
482
|
border-radius: inherit;
|
|
484
483
|
opacity: 0.1;
|
|
485
484
|
}
|
|
486
|
-
&__content
|
|
485
|
+
&__content,
|
|
486
|
+
&__content.q-button {
|
|
487
487
|
display: inline-flex;
|
|
488
|
+
border-width: 1px;
|
|
489
|
+
border-radius: var(--border-radius);
|
|
488
490
|
align-items: center;
|
|
489
491
|
gap: 0.25em;
|
|
490
492
|
z-index: 1;
|
|
493
|
+
font-size: 0.75rem;
|
|
491
494
|
}
|
|
492
|
-
&
|
|
493
|
-
|
|
495
|
+
&__content:not(.q-button) {
|
|
496
|
+
border-color: transparent;
|
|
497
|
+
padding: 0.483em 0.5em;
|
|
498
|
+
}
|
|
499
|
+
&__content.q-button {
|
|
500
|
+
padding: calc(0.483em + 1px) calc(0.5em + 1px);
|
|
494
501
|
}
|
|
495
502
|
.q-icon {
|
|
496
503
|
color: currentcolor;
|
|
497
504
|
}
|
|
505
|
+
&__remove.q-button {
|
|
506
|
+
padding: 0.25rem;
|
|
507
|
+
}
|
|
508
|
+
&:not(:has(button.q-badge__content)) {
|
|
509
|
+
|
|
510
|
+
.q-badge__remove.q-button {
|
|
511
|
+
background-color: transparent;
|
|
512
|
+
border-top-left-radius: 0;
|
|
513
|
+
border-bottom-left-radius: 0;
|
|
514
|
+
border-color: transparent;
|
|
515
|
+
.q-button__content {
|
|
516
|
+
padding: 1px;
|
|
517
|
+
border-radius: 9999px;
|
|
518
|
+
}
|
|
519
|
+
&:not(:disabled):hover {
|
|
520
|
+
background-color: transparent;
|
|
521
|
+
border-color: transparent;
|
|
522
|
+
.q-button__content {
|
|
523
|
+
background-color: var(--q-button-hover-color);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
498
528
|
|
|
499
529
|
&--bold {
|
|
500
530
|
background-color: var(--q-badge-main-color);
|
|
@@ -511,46 +541,45 @@ $transition-duration: 0.2s !default;
|
|
|
511
541
|
#{$this}__underlay {
|
|
512
542
|
background-color: var(--q-badge-main-color);
|
|
513
543
|
}
|
|
544
|
+
|
|
545
|
+
&:not(:has(button.q-badge__content)) .q-badge__remove.q-button:not(:hover) {
|
|
546
|
+
background-color: transparent;
|
|
547
|
+
}
|
|
514
548
|
}
|
|
515
549
|
&--pill {
|
|
516
550
|
border-radius: 9999px;
|
|
551
|
+
.q-button {
|
|
552
|
+
border-radius: 9999px;
|
|
553
|
+
}
|
|
517
554
|
}
|
|
518
555
|
&--disabled {
|
|
519
556
|
opacity: 0.6;
|
|
520
557
|
pointer-events: none;
|
|
521
558
|
}
|
|
522
|
-
&--clickable {
|
|
523
|
-
cursor: pointer;
|
|
524
|
-
&:hover {
|
|
525
|
-
color: var(--q-badge-on-hover-color, var(--q-badge-on-main-color));
|
|
526
|
-
background-color: var(--q-badge-hover-color);
|
|
527
|
-
border-color: var(--q-badge-hover-color);
|
|
528
|
-
.q-icon {
|
|
529
|
-
color: var(--q-badge-on-hover-color);
|
|
530
|
-
}
|
|
531
|
-
.q-button:not(:disabled):hover {
|
|
532
|
-
background-color: var(--q-badge-on-hover-color);
|
|
533
|
-
border-color: var(--q-badge-on-hover-color);
|
|
534
|
-
.q-icon {
|
|
535
|
-
color: var(--q-badge-hover-color);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
&:focus {
|
|
540
|
-
outline: $outline;
|
|
541
|
-
&:not(:focus-visible) {
|
|
542
|
-
outline: 0;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
559
|
|
|
547
560
|
@each $color, $value in $theme-colors {
|
|
548
561
|
@include color-variant('q-badge', $color);
|
|
549
562
|
}
|
|
550
563
|
|
|
551
564
|
&--large {
|
|
552
|
-
|
|
565
|
+
min-height: 44px;
|
|
566
|
+
&:is(span) {
|
|
567
|
+
padding: 0 0.5rem;
|
|
568
|
+
}
|
|
569
|
+
button.q-button {
|
|
570
|
+
&.q-badge__content,
|
|
571
|
+
&.q-badge__remove {
|
|
572
|
+
min-height: 40px;
|
|
573
|
+
padding: 0 1rem;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
553
576
|
}
|
|
577
|
+
span {
|
|
578
|
+
display: inline-flex;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
.q-button-group > .q-button:not(:first-child).q-badge__remove {
|
|
582
|
+
margin-left: 1px;
|
|
554
583
|
}
|
|
555
584
|
.q-badge-indicator {
|
|
556
585
|
$this: &;
|
|
@@ -641,7 +670,7 @@ $transition-duration: 0.2s !default;
|
|
|
641
670
|
overflow: hidden;
|
|
642
671
|
position: relative;
|
|
643
672
|
border-width: 1px;
|
|
644
|
-
padding: 0.4rem;
|
|
673
|
+
padding: 0.4rem 0.8rem;
|
|
645
674
|
line-height: 1;
|
|
646
675
|
gap: $space-base;
|
|
647
676
|
border-radius: var(--border-radius);
|
|
@@ -776,7 +805,7 @@ $transition-duration: 0.2s !default;
|
|
|
776
805
|
|
|
777
806
|
&--small {
|
|
778
807
|
font-size: 0.8em;
|
|
779
|
-
padding: 0.25rem;
|
|
808
|
+
padding: 0.25rem 0.5rem;
|
|
780
809
|
}
|
|
781
810
|
|
|
782
811
|
&--borderless {
|
|
@@ -1203,6 +1232,7 @@ $q-carousel-height-md: 300px;
|
|
|
1203
1232
|
align-items: flex-start;
|
|
1204
1233
|
gap: 0.5rem;
|
|
1205
1234
|
width: fit-content;
|
|
1235
|
+
border-radius: var(--border-radius);
|
|
1206
1236
|
color: var(--q-theme-neutral-dark);
|
|
1207
1237
|
cursor: pointer;
|
|
1208
1238
|
&--focus-style:focus-within {
|
|
@@ -3131,6 +3161,9 @@ $spinner-color: var(--q-theme-primary);
|
|
|
3131
3161
|
cursor: not-allowed;
|
|
3132
3162
|
}
|
|
3133
3163
|
}
|
|
3164
|
+
.q-switch:not(.q-switch--with-labels) {
|
|
3165
|
+
--q-switch-label-padding-h: var(--q-switch-label-padding-v);
|
|
3166
|
+
}
|
|
3134
3167
|
.q-switch__container {
|
|
3135
3168
|
position: relative;
|
|
3136
3169
|
display: inline-flex;
|
|
@@ -3218,6 +3251,9 @@ $spinner-color: var(--q-theme-primary);
|
|
|
3218
3251
|
var(--q-switch-shadow-spread);
|
|
3219
3252
|
padding: var(--q-switch-label-padding-v) var(--q-switch-label-padding-h);
|
|
3220
3253
|
}
|
|
3254
|
+
.q-switch--with-labels.q-switch--checked:not(.q-switch--readonly) .q-switch__label--off {
|
|
3255
|
+
color: var(--q-theme-primary-light);
|
|
3256
|
+
}
|
|
3221
3257
|
.q-switch--readonly {
|
|
3222
3258
|
cursor: default;
|
|
3223
3259
|
pointer-events: none;
|
|
@@ -4,9 +4,10 @@ declare function __VLS_template(): {
|
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
5
|
slots: {
|
|
6
6
|
default?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
7
8
|
};
|
|
8
9
|
refs: {};
|
|
9
|
-
rootEl:
|
|
10
|
+
rootEl: any;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -19,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}
|
|
|
19
20
|
variant: import('./types').QBadgeVariant;
|
|
20
21
|
icons: typeof DEFAULT_ICONS;
|
|
21
22
|
texts: typeof DEFAULT_TEXTS;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
25
|
export default _default;
|
|
25
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAyCA;AAiJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAkG3C,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,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;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
3
|
-
import { QButton as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as V, useAttrs as A, computed as a, toRef as D, createElementBlock as k, createBlock as i, openBlock as t, normalizeStyle as L, normalizeClass as g, createCommentVNode as c, createElementVNode as q, renderSlot as y, unref as l, mergeProps as B, withCtx as n, createVNode as d, normalizeProps as h, guardReactiveProps as z, resolveDynamicComponent as R } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as U, DEFAULT_ICONS as F } from "./constants.js";
|
|
3
|
+
import { QButton as u } from "../QButton/index.js";
|
|
4
|
+
import { QButtonGroup as I } from "../QButtonGroup/index.js";
|
|
5
|
+
import { QIcon as x } from "../QIcon/index.js";
|
|
6
|
+
import { useColor as w } from "../../composables/useColor/index.js";
|
|
7
|
+
const G = ["id"], H = {
|
|
7
8
|
key: 0,
|
|
8
|
-
class: "q-badge__underlay"
|
|
9
|
-
},
|
|
9
|
+
class: "q-badge__underlay q-button--background"
|
|
10
|
+
}, M = { class: "q-badge__content" }, Y = /* @__PURE__ */ V({
|
|
10
11
|
__name: "QBadge",
|
|
11
12
|
props: {
|
|
12
13
|
id: {},
|
|
@@ -17,80 +18,125 @@ const U = ["id", "role", "tabindex", "onKeydown"], D = {
|
|
|
17
18
|
size: { default: "default" },
|
|
18
19
|
disabled: { type: Boolean },
|
|
19
20
|
removable: { type: Boolean },
|
|
20
|
-
icons: { default: () =>
|
|
21
|
-
texts: { default: () =>
|
|
21
|
+
icons: { default: () => F },
|
|
22
|
+
texts: { default: () => U }
|
|
22
23
|
},
|
|
23
24
|
emits: ["click:remove"],
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
26
|
-
const o =
|
|
25
|
+
setup(T, { emit: E }) {
|
|
26
|
+
const e = T, $ = E, m = A(), N = a(() => !!m.onClick), v = a(() => {
|
|
27
|
+
const o = e.size !== "default" ? `q-badge--${e.size}` : void 0;
|
|
28
|
+
return [
|
|
29
|
+
{
|
|
30
|
+
"q-badge--pill": e.pill
|
|
31
|
+
},
|
|
32
|
+
o,
|
|
33
|
+
e.class
|
|
34
|
+
];
|
|
35
|
+
}), P = a(() => {
|
|
36
|
+
const o = f.value ? `q-badge--${e.color}` : void 0;
|
|
27
37
|
return [
|
|
28
38
|
"q-badge",
|
|
29
39
|
`q-badge--${e.variant}`,
|
|
30
|
-
o,
|
|
31
|
-
t,
|
|
32
40
|
{
|
|
33
|
-
"q-badge--
|
|
34
|
-
"q-badge--disabled": e.disabled,
|
|
35
|
-
"q-badge--clickable": a.value && !e.disabled
|
|
41
|
+
"q-badge--disabled": e.disabled
|
|
36
42
|
},
|
|
37
|
-
|
|
43
|
+
o,
|
|
44
|
+
v.value
|
|
38
45
|
];
|
|
39
|
-
}), { isUtilityColor:
|
|
40
|
-
var o,
|
|
41
|
-
if (!
|
|
46
|
+
}), { isUtilityColor: f, style: r } = w(D(e, "color")), Q = a(() => {
|
|
47
|
+
var o, s, C, _;
|
|
48
|
+
if (!f.value)
|
|
42
49
|
return {
|
|
43
|
-
"--q-badge-main-color": (o =
|
|
44
|
-
"--q-badge-on-main-color": (
|
|
45
|
-
"--q-badge-hover-color": (
|
|
46
|
-
"--q-badge-on-hover-color": (
|
|
50
|
+
"--q-badge-main-color": (o = r.value) == null ? void 0 : o.mainColor,
|
|
51
|
+
"--q-badge-on-main-color": (s = r.value) == null ? void 0 : s.onMainColor,
|
|
52
|
+
"--q-badge-hover-color": (C = r.value) == null ? void 0 : C.hoverColor,
|
|
53
|
+
"--q-badge-on-hover-color": (_ = r.value) == null ? void 0 : _.onHoverColor
|
|
47
54
|
};
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
}), S = a(() => m.onClick), b = a(() => ({
|
|
56
|
+
class: "q-badge__remove",
|
|
57
|
+
variant: e.variant,
|
|
58
|
+
color: e.color,
|
|
59
|
+
ariaLabel: e.texts.removeText,
|
|
60
|
+
title: e.texts.removeText,
|
|
61
|
+
disabled: e.disabled
|
|
62
|
+
}));
|
|
63
|
+
function p() {
|
|
64
|
+
$("click:remove");
|
|
51
65
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
tabindex: a.value ? 0 : void 0,
|
|
61
|
-
onKeydown: x(T(g, ["stop", "prevent"]), ["enter"])
|
|
62
|
-
}, [
|
|
63
|
-
e.variant === "tonal" ? (n(), c("div", D)) : u("v-if", !0),
|
|
64
|
-
w("div", F, [
|
|
65
|
-
E(o.$slots, "default"),
|
|
66
|
-
e.removable ? (n(), N(m(P), {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: "q-badge__remove",
|
|
69
|
-
pill: "",
|
|
70
|
-
borderless: "",
|
|
71
|
-
tabindex: "0",
|
|
66
|
+
return (o, s) => N.value ? (t(), i(R(e.removable ? l(I) : "span"), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: g(v.value)
|
|
69
|
+
}, {
|
|
70
|
+
default: n(() => [
|
|
71
|
+
d(l(u), {
|
|
72
|
+
class: "q-badge__content",
|
|
73
|
+
variant: e.variant,
|
|
72
74
|
color: e.color,
|
|
73
|
-
"aria-label": e.texts.removeText,
|
|
74
|
-
title: e.texts.removeText,
|
|
75
75
|
disabled: e.disabled,
|
|
76
|
-
onClick:
|
|
76
|
+
onClick: S.value
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
|
|
80
|
-
m(Q),
|
|
81
|
-
$(A(e.icons.remove)),
|
|
82
|
-
null,
|
|
83
|
-
16
|
|
84
|
-
/* FULL_PROPS */
|
|
85
|
-
)
|
|
78
|
+
default: n(() => [
|
|
79
|
+
y(o.$slots, "default")
|
|
86
80
|
]),
|
|
87
|
-
_:
|
|
88
|
-
/*
|
|
89
|
-
}, 8, ["
|
|
81
|
+
_: 3
|
|
82
|
+
/* FORWARDED */
|
|
83
|
+
}, 8, ["variant", "color", "disabled", "onClick"]),
|
|
84
|
+
e.removable ? (t(), i(
|
|
85
|
+
l(u),
|
|
86
|
+
B({ key: 0 }, b.value, { onClick: p }),
|
|
87
|
+
{
|
|
88
|
+
default: n(() => [
|
|
89
|
+
d(
|
|
90
|
+
l(x),
|
|
91
|
+
h(z(e.icons.remove)),
|
|
92
|
+
null,
|
|
93
|
+
16
|
|
94
|
+
/* FULL_PROPS */
|
|
95
|
+
)
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
/* STABLE */
|
|
99
|
+
},
|
|
100
|
+
16
|
|
101
|
+
/* FULL_PROPS */
|
|
102
|
+
)) : c("v-if", !0)
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
/* FORWARDED */
|
|
106
|
+
}, 8, ["class"])) : (t(), k("span", {
|
|
107
|
+
key: 0,
|
|
108
|
+
id: e.id,
|
|
109
|
+
class: g(P.value),
|
|
110
|
+
style: L(Q.value)
|
|
111
|
+
}, [
|
|
112
|
+
e.variant === "tonal" ? (t(), k("div", H)) : c("v-if", !0),
|
|
113
|
+
q("span", null, [
|
|
114
|
+
q("div", M, [
|
|
115
|
+
y(o.$slots, "default")
|
|
116
|
+
]),
|
|
117
|
+
e.removable ? (t(), i(
|
|
118
|
+
l(u),
|
|
119
|
+
B({ key: 0 }, b.value, { onClick: p }),
|
|
120
|
+
{
|
|
121
|
+
default: n(() => [
|
|
122
|
+
d(
|
|
123
|
+
l(x),
|
|
124
|
+
h(z(e.icons.remove)),
|
|
125
|
+
null,
|
|
126
|
+
16
|
|
127
|
+
/* FULL_PROPS */
|
|
128
|
+
)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
/* STABLE */
|
|
132
|
+
},
|
|
133
|
+
16
|
|
134
|
+
/* FULL_PROPS */
|
|
135
|
+
)) : c("v-if", !0)
|
|
90
136
|
])
|
|
91
|
-
],
|
|
137
|
+
], 14, G));
|
|
92
138
|
}
|
|
93
139
|
});
|
|
94
140
|
export {
|
|
95
|
-
|
|
141
|
+
Y as default
|
|
96
142
|
};
|
|
@@ -9,7 +9,7 @@ declare const QBadge: {
|
|
|
9
9
|
variant: import('./types').QBadgeVariant;
|
|
10
10
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
11
11
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
12
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {},
|
|
12
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
13
|
P: {};
|
|
14
14
|
B: {};
|
|
15
15
|
D: {};
|
|
@@ -41,6 +41,7 @@ declare const QBadge: {
|
|
|
41
41
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
42
42
|
$slots: {
|
|
43
43
|
default?(_: {}): any;
|
|
44
|
+
default?(_: {}): any;
|
|
44
45
|
};
|
|
45
46
|
});
|
|
46
47
|
export { QBadge };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
|
|
@@ -96,7 +96,7 @@ export type QDialogProps = QBaseComponentProps & {
|
|
|
96
96
|
closingFocus?: HTMLElement | string;
|
|
97
97
|
/**
|
|
98
98
|
* Whether to return focus to the element that opened this
|
|
99
|
-
* when the focus
|
|
99
|
+
* when the focus wrap is deactivated.
|
|
100
100
|
*
|
|
101
101
|
* @category Behavior
|
|
102
102
|
*/
|
|
@@ -163,7 +163,7 @@ export type QOverlayProps = QBaseComponentProps & {
|
|
|
163
163
|
closingFocus?: HTMLElement | string;
|
|
164
164
|
/**
|
|
165
165
|
* Whether to return focus to the element that opened this
|
|
166
|
-
* when the focus
|
|
166
|
+
* when the focus wrap is deactivated.
|
|
167
167
|
*
|
|
168
168
|
* @category Behavior
|
|
169
169
|
*/
|
|
@@ -24,6 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
24
24
|
placement: import('..').QOverlayPlacement;
|
|
25
25
|
arrow: boolean;
|
|
26
26
|
attach: string;
|
|
27
|
+
headingLevel: number;
|
|
27
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
30
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAsCA;AAyEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA6BlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6FT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACH,GAAG;yBACX,GAAG;;;;EAehC;AAaD,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;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, mergeModels as h, useModel as v, computed as f, createBlock as s, openBlock as a, unref as y, normalizeClass as g, withCtx as i, createElementVNode as _, createElementBlock as l, createCommentVNode as k, renderSlot as o, Fragment as V, resolveDynamicComponent as B, createTextVNode as L, toDisplayString as p } from "vue";
|
|
2
|
+
import { QOverlay as $ } from "../QOverlay/index.js";
|
|
3
|
+
const b = { class: "q-popover__content" }, w = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-popover__header"
|
|
6
|
-
},
|
|
6
|
+
}, C = ["innerHTML"], M = { key: 1 }, N = /* @__PURE__ */ u({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "QPopover",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ h({
|
|
10
10
|
id: {},
|
|
11
11
|
class: {},
|
|
12
12
|
anchor: {},
|
|
13
13
|
text: {},
|
|
14
14
|
title: {},
|
|
15
|
+
headingLevel: { default: 2 },
|
|
15
16
|
arrow: { type: Boolean, default: !0 },
|
|
16
17
|
placement: { default: "right" },
|
|
17
18
|
attach: { default: "body" },
|
|
@@ -24,12 +25,12 @@ const V = { class: "q-popover__content" }, g = {
|
|
|
24
25
|
}),
|
|
25
26
|
emits: ["update:modelValue"],
|
|
26
27
|
setup(n) {
|
|
27
|
-
const e = n,
|
|
28
|
-
return (t, r) => (
|
|
28
|
+
const e = n, d = v(n, "modelValue"), c = f(() => e.headingLevel >= 1 && e.headingLevel <= 6 ? "h" + e.headingLevel : "div");
|
|
29
|
+
return (t, r) => (a(), s(y($), {
|
|
29
30
|
id: e.id,
|
|
30
|
-
modelValue:
|
|
31
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
32
|
-
class:
|
|
31
|
+
modelValue: d.value,
|
|
32
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => d.value = m),
|
|
33
|
+
class: g(["q-popover", e.class]),
|
|
33
34
|
trigger: "click",
|
|
34
35
|
anchor: e.anchor,
|
|
35
36
|
arrow: e.arrow,
|
|
@@ -38,35 +39,39 @@ const V = { class: "q-popover__content" }, g = {
|
|
|
38
39
|
disabled: e.disabled,
|
|
39
40
|
placement: e.placement
|
|
40
41
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
e.title || t.$slots.header ? (
|
|
44
|
-
t.$slots.header ?
|
|
45
|
-
|
|
42
|
+
default: i(() => [
|
|
43
|
+
_("div", b, [
|
|
44
|
+
e.title || t.$slots.header ? (a(), l("div", w, [
|
|
45
|
+
t.$slots.header ? o(t.$slots, "header", { key: 0 }) : (a(), l(
|
|
46
|
+
V,
|
|
46
47
|
{ key: 1 },
|
|
47
48
|
[
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
o(t.$slots, "header.prepend"),
|
|
50
|
+
(a(), s(B(c.value), { class: "q-popover__title" }, {
|
|
51
|
+
default: i(() => [
|
|
52
|
+
L(
|
|
53
|
+
p(e.title),
|
|
54
|
+
1
|
|
55
|
+
/* TEXT */
|
|
56
|
+
)
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
/* STABLE */
|
|
60
|
+
})),
|
|
61
|
+
o(t.$slots, "header.append")
|
|
57
62
|
],
|
|
58
63
|
64
|
|
59
64
|
/* STABLE_FRAGMENT */
|
|
60
65
|
))
|
|
61
|
-
])) :
|
|
62
|
-
|
|
63
|
-
e.html ? (
|
|
66
|
+
])) : k("v-if", !0),
|
|
67
|
+
o(t.$slots, "default", {}, () => [
|
|
68
|
+
e.html ? (a(), l("span", {
|
|
64
69
|
key: 0,
|
|
65
70
|
innerHTML: e.text
|
|
66
|
-
}, null, 8,
|
|
71
|
+
}, null, 8, C)) : (a(), l(
|
|
67
72
|
"span",
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
M,
|
|
74
|
+
p(e.text),
|
|
70
75
|
1
|
|
71
76
|
/* TEXT */
|
|
72
77
|
))
|
|
@@ -79,5 +84,5 @@ const V = { class: "q-popover__content" }, g = {
|
|
|
79
84
|
}
|
|
80
85
|
});
|
|
81
86
|
export {
|
|
82
|
-
|
|
87
|
+
N as default
|
|
83
88
|
};
|
|
@@ -5,6 +5,7 @@ declare const QPopover: {
|
|
|
5
5
|
anchor: import('../../utils/getElement').Selector;
|
|
6
6
|
text?: string;
|
|
7
7
|
title?: string;
|
|
8
|
+
headingLevel?: number;
|
|
8
9
|
arrow?: boolean;
|
|
9
10
|
placement?: import('..').QOverlayPlacement;
|
|
10
11
|
attach?: string;
|
|
@@ -20,6 +21,7 @@ declare const QPopover: {
|
|
|
20
21
|
placement: import('..').QOverlayPlacement;
|
|
21
22
|
arrow: boolean;
|
|
22
23
|
attach: string;
|
|
24
|
+
headingLevel: number;
|
|
23
25
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
24
26
|
P: {};
|
|
25
27
|
B: {};
|
|
@@ -33,6 +35,7 @@ declare const QPopover: {
|
|
|
33
35
|
anchor: import('../../utils/getElement').Selector;
|
|
34
36
|
text?: string;
|
|
35
37
|
title?: string;
|
|
38
|
+
headingLevel?: number;
|
|
36
39
|
arrow?: boolean;
|
|
37
40
|
placement?: import('..').QOverlayPlacement;
|
|
38
41
|
attach?: string;
|
|
@@ -46,6 +49,7 @@ declare const QPopover: {
|
|
|
46
49
|
placement: import('..').QOverlayPlacement;
|
|
47
50
|
arrow: boolean;
|
|
48
51
|
attach: string;
|
|
52
|
+
headingLevel: number;
|
|
49
53
|
}>;
|
|
50
54
|
__isFragment?: never;
|
|
51
55
|
__isTeleport?: never;
|
|
@@ -56,6 +60,7 @@ declare const QPopover: {
|
|
|
56
60
|
anchor: import('../../utils/getElement').Selector;
|
|
57
61
|
text?: string;
|
|
58
62
|
title?: string;
|
|
63
|
+
headingLevel?: number;
|
|
59
64
|
arrow?: boolean;
|
|
60
65
|
placement?: import('..').QOverlayPlacement;
|
|
61
66
|
attach?: string;
|
|
@@ -71,6 +76,7 @@ declare const QPopover: {
|
|
|
71
76
|
placement: import('..').QOverlayPlacement;
|
|
72
77
|
arrow: boolean;
|
|
73
78
|
attach: string;
|
|
79
|
+
headingLevel: number;
|
|
74
80
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
75
81
|
$slots: {
|
|
76
82
|
header?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,cAAc,SAAS,CAAA"}
|
|
@@ -20,6 +20,12 @@ export type QPopoverProps = QBaseComponentProps & {
|
|
|
20
20
|
* @category Content
|
|
21
21
|
*/
|
|
22
22
|
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The heading level of the title of the popover.
|
|
25
|
+
*
|
|
26
|
+
* @category Content
|
|
27
|
+
*/
|
|
28
|
+
headingLevel?: number;
|
|
23
29
|
/**
|
|
24
30
|
* Whether the popover has an arrow pointing to the target.
|
|
25
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAuBA;
|
|
1
|
+
{"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAuBA;AAyGC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAiErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;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;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|