@quidgest/ui 0.16.23 → 0.16.25
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 +10 -23
- package/dist/ui.esm.js +2444 -2401
- package/dist/ui.js +18 -17
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +734 -727
- package/dist/ui.scss +11 -26
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -3
- package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts +19 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts.map +1 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue.js +16 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue2.js +4 -0
- package/esm/components/QDefaultsProvider/index.d.ts +19 -0
- package/esm/components/QDefaultsProvider/index.d.ts.map +1 -0
- package/esm/components/QDefaultsProvider/index.js +6 -0
- package/esm/components/QDefaultsProvider/types.d.ts +13 -0
- package/esm/components/QDefaultsProvider/types.d.ts.map +1 -0
- package/esm/components/QFileUpload/QFileUpload.vue.js +45 -45
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +12 -12
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +11 -11
- package/esm/components/QTextArea/QTextArea.vue.js +10 -10
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +15 -15
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +29 -11
- package/esm/components/QThemeProvider/types.d.ts +2 -1
- package/esm/components/QThemeProvider/types.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +10 -10
- package/esm/components/QTooltip/QTooltip.vue.js +23 -23
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +88 -86
- package/esm/composables/defaults.d.ts +2 -2
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +12 -12
- package/esm/composables/theme.d.ts +19 -8
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/theme.js +15 -11
- package/esm/composables/uid.d.ts +2 -2
- package/esm/composables/uid.d.ts.map +1 -1
- package/esm/composables/uid.js +6 -5
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +11 -11
- package/esm/composables/useToast/index.js +6 -6
- package/esm/framework.js +45 -36
- package/esm/index.d.ts +1 -0
- package/esm/utils/theme.d.ts +27 -6
- package/esm/utils/theme.d.ts.map +1 -1
- package/esm/utils/theme.js +39 -37
- 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.25
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -292,31 +292,6 @@ body {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
a {
|
|
296
|
-
text-decoration: underline;
|
|
297
|
-
text-decoration-color: transparent;
|
|
298
|
-
transition:
|
|
299
|
-
color 0.15s,
|
|
300
|
-
text-decoration-color 0.15s;
|
|
301
|
-
&:not(:visited) {
|
|
302
|
-
color: var(--q-theme-primary);
|
|
303
|
-
}
|
|
304
|
-
&:visited {
|
|
305
|
-
color: #6a0dad;
|
|
306
|
-
}
|
|
307
|
-
&:hover,
|
|
308
|
-
&:focus {
|
|
309
|
-
color: var(--q-theme-primary-dark);
|
|
310
|
-
text-decoration-color: currentcolor;
|
|
311
|
-
}
|
|
312
|
-
&:active {
|
|
313
|
-
color: var(--q-theme-primary-dark);
|
|
314
|
-
text-decoration: none;
|
|
315
|
-
}
|
|
316
|
-
&:focus {
|
|
317
|
-
outline: $outline;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
295
|
$transition-duration: 0.2s !default;
|
|
321
296
|
.fade-enter-from,
|
|
322
297
|
.fade-leave-to {
|
|
@@ -545,6 +520,16 @@ $transition-duration: 0.2s !default;
|
|
|
545
520
|
color: var(--q-badge-on-hover-color, var(--q-badge-on-main-color));
|
|
546
521
|
background-color: var(--q-badge-hover-color);
|
|
547
522
|
border-color: var(--q-badge-hover-color);
|
|
523
|
+
.q-icon {
|
|
524
|
+
color: var(--q-badge-on-hover-color);
|
|
525
|
+
}
|
|
526
|
+
.q-button:not(:disabled):hover {
|
|
527
|
+
background-color: var(--q-badge-on-hover-color);
|
|
528
|
+
border-color: var(--q-badge-on-hover-color);
|
|
529
|
+
.q-icon {
|
|
530
|
+
color: var(--q-badge-hover-color);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
548
533
|
}
|
|
549
534
|
&:focus {
|
|
550
535
|
outline: $outline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l,
|
|
1
|
+
import { defineComponent as l, toRef as a, createBlock as s, openBlock as c, unref as o, mergeProps as u, withCtx as m, renderSlot as p } from "vue";
|
|
2
2
|
import { QCollapsible as d } from "../QCollapsible/index.js";
|
|
3
3
|
import { useId as f } from "../../composables/uid.js";
|
|
4
4
|
import { useGroupItem as v } from "../../composables/useGroup/index.js";
|
|
@@ -18,12 +18,12 @@ const B = /* @__PURE__ */ l({
|
|
|
18
18
|
value: {}
|
|
19
19
|
},
|
|
20
20
|
setup(r) {
|
|
21
|
-
const t = r, i = a(
|
|
21
|
+
const t = r, i = f(a(t, "value")), e = v(i);
|
|
22
22
|
if (!e)
|
|
23
23
|
throw new Error(
|
|
24
24
|
"QAccordionItem: Failed to retrieve group item. Ensure the component is used within a QAccordion context."
|
|
25
25
|
);
|
|
26
|
-
return (n, h) => (
|
|
26
|
+
return (n, h) => (c(), s(o(d), u(t, {
|
|
27
27
|
"model-value": o(e).isActive.value,
|
|
28
28
|
"onUpdate:modelValue": o(e).toggle
|
|
29
29
|
}), {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QDefaultsProviderProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<QDefaultsProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QDefaultsProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=QDefaultsProvider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QDefaultsProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDefaultsProvider/QDefaultsProvider.vue"],"names":[],"mappings":"AAGA;AAqBC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAetD,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,wTAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as o, toRef as r, renderSlot as s } from "vue";
|
|
2
|
+
import { provideDefaults as p } from "../../composables/defaults.js";
|
|
3
|
+
const l = /* @__PURE__ */ o({
|
|
4
|
+
__name: "QDefaultsProvider",
|
|
5
|
+
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
class: {},
|
|
8
|
+
defaults: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return p(r(e, "defaults")), (t, f) => s(t.$slots, "default");
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
l as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const QDefaultsProvider: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QDefaultsProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<import('./types').QDefaultsProviderProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QDefaultsProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
14
|
+
$slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
export { QDefaultsProvider };
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDefaultsProvider/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;EAAsC,CAAA;AAG7D,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Defaults } from '../../composables/defaults';
|
|
2
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the QDefaultsProvider component.
|
|
5
|
+
*/
|
|
6
|
+
export type QDefaultsProviderProps = QBaseComponentProps & {
|
|
7
|
+
/**
|
|
8
|
+
* The default configuration values to provide to child components.
|
|
9
|
+
* These values will be **merged with each component's own defaults**.
|
|
10
|
+
*/
|
|
11
|
+
defaults: Defaults;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDefaultsProvider/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IAC1D;;;OAGG;IACH,QAAQ,EAAE,QAAQ,CAAA;CAClB,CAAA"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, watch as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
1
|
+
import { defineComponent as L, mergeModels as N, useModel as O, toRef as T, computed as d, ref as h, watch as Z, createBlock as w, openBlock as n, unref as i, createSlots as Q, withCtx as _, createElementVNode as a, normalizeClass as j, createElementBlock as c, mergeProps as F, createVNode as s, normalizeProps as v, guardReactiveProps as m, toDisplayString as y, createCommentVNode as M, createTextVNode as P, renderSlot as $ } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as H, DEFAULT_ICONS as W } from "./types.js";
|
|
3
3
|
import { QButton as b } from "../QButton/index.js";
|
|
4
|
-
import { QField as
|
|
4
|
+
import { QField as X } from "../QField/index.js";
|
|
5
5
|
import { QIcon as u } from "../QIcon/index.js";
|
|
6
|
-
import { useId as
|
|
7
|
-
import { useDropZone as
|
|
8
|
-
import { downloadFile as
|
|
9
|
-
const
|
|
6
|
+
import { useId as G } from "../../composables/uid.js";
|
|
7
|
+
import { useDropZone as J } from "../../composables/useDropZone/index.js";
|
|
8
|
+
import { downloadFile as K } from "../../utils/download.js";
|
|
9
|
+
const Y = ["id", "accept", "required", "readonly", "disabled"], ee = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "q-file-input__drop-area"
|
|
12
|
-
},
|
|
12
|
+
}, le = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "q-file-input__file-details"
|
|
15
|
-
},
|
|
15
|
+
}, te = { class: "q-file-input__attached-file" }, ie = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "q-file-input__preview q-file-input__image-preview"
|
|
18
|
-
},
|
|
18
|
+
}, oe = ["src", "alt"], ae = { class: "q-file-input__file-meta" }, ne = { class: "q-file-input__file-name" }, se = { class: "q-file-input__file-type" }, re = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "q-file-input__action-buttons"
|
|
21
|
-
},
|
|
21
|
+
}, de = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "q-file-input__empty-container"
|
|
24
|
-
},
|
|
24
|
+
}, he = /* @__PURE__ */ L({
|
|
25
25
|
inheritAttrs: !1,
|
|
26
26
|
__name: "QFileUpload",
|
|
27
27
|
props: /* @__PURE__ */ N({
|
|
@@ -35,16 +35,16 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
35
35
|
disabled: { type: Boolean },
|
|
36
36
|
invalid: { type: Boolean },
|
|
37
37
|
accept: {},
|
|
38
|
-
icons: { default: () =>
|
|
39
|
-
texts: { default: () =>
|
|
38
|
+
icons: { default: () => W },
|
|
39
|
+
texts: { default: () => H }
|
|
40
40
|
}, {
|
|
41
41
|
modelValue: {},
|
|
42
42
|
modelModifiers: {}
|
|
43
43
|
}),
|
|
44
44
|
emits: ["update:modelValue"],
|
|
45
45
|
setup(q) {
|
|
46
|
-
const e = q, t = O(q, "modelValue"), k =
|
|
47
|
-
|
|
46
|
+
const e = q, t = O(q, "modelValue"), k = G(T(e, "id")), p = d(() => !e.readonly && !e.disabled), r = h(null);
|
|
47
|
+
Z(t, (l) => {
|
|
48
48
|
r.value && URL.revokeObjectURL(r.value);
|
|
49
49
|
const o = l && l.type.startsWith("image/");
|
|
50
50
|
r.value = o ? URL.createObjectURL(l) : null;
|
|
@@ -54,27 +54,27 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
54
54
|
var l;
|
|
55
55
|
(l = f.value) == null || l.click();
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function R(l) {
|
|
58
58
|
var C;
|
|
59
59
|
const o = l.target;
|
|
60
60
|
(C = o == null ? void 0 : o.files) != null && C[0] && (t.value = o.files[0]);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
t.value &&
|
|
62
|
+
function U() {
|
|
63
|
+
t.value && K(t.value);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function V() {
|
|
66
66
|
t.value = void 0, f.value && (f.value.value = "");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function D(l) {
|
|
69
69
|
if (!p.value) return;
|
|
70
70
|
const o = l == null ? void 0 : l[0];
|
|
71
71
|
o && (t.value = o);
|
|
72
72
|
}
|
|
73
|
-
const g = h(null), x = d(() => Array.isArray(e.accept) ? e.accept : e.accept ? e.accept.split(",").map((l) => l.trim()) : []),
|
|
73
|
+
const g = h(null), x = d(() => Array.isArray(e.accept) ? e.accept : e.accept ? e.accept.split(",").map((l) => l.trim()) : []), I = d(() => {
|
|
74
74
|
var l;
|
|
75
75
|
return (l = x.value) == null ? void 0 : l.join(",");
|
|
76
|
-
}), S = d(() => p.value && !t.value), { isOverDropZone: z, isValid: A } =
|
|
77
|
-
onDrop:
|
|
76
|
+
}), S = d(() => p.value && !t.value), { isOverDropZone: z, isValid: A } = J(g, {
|
|
77
|
+
onDrop: D,
|
|
78
78
|
accept: x,
|
|
79
79
|
enabled: S
|
|
80
80
|
}), E = d(() => [
|
|
@@ -85,7 +85,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
85
85
|
},
|
|
86
86
|
e.class
|
|
87
87
|
]);
|
|
88
|
-
return (l, o) => (n(), w(i(
|
|
88
|
+
return (l, o) => (n(), w(i(X), {
|
|
89
89
|
for: i(k),
|
|
90
90
|
label: e.label,
|
|
91
91
|
size: e.size,
|
|
@@ -93,14 +93,14 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
93
93
|
disabled: e.disabled,
|
|
94
94
|
required: e.required,
|
|
95
95
|
invalid: e.invalid
|
|
96
|
-
},
|
|
96
|
+
}, Q({
|
|
97
97
|
control: _(() => [
|
|
98
98
|
a(
|
|
99
99
|
"div",
|
|
100
100
|
{
|
|
101
101
|
ref_key: "dropZoneRef",
|
|
102
102
|
ref: g,
|
|
103
|
-
class:
|
|
103
|
+
class: j(E.value)
|
|
104
104
|
},
|
|
105
105
|
[
|
|
106
106
|
a("input", F({
|
|
@@ -109,12 +109,12 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
109
109
|
ref: f,
|
|
110
110
|
type: "file",
|
|
111
111
|
class: "q-file-input__file-input",
|
|
112
|
-
accept:
|
|
112
|
+
accept: I.value,
|
|
113
113
|
required: e.required,
|
|
114
114
|
readonly: e.readonly,
|
|
115
115
|
disabled: e.disabled
|
|
116
|
-
}, l.$attrs, { onChange:
|
|
117
|
-
!t.value && p.value ? (n(), c("div",
|
|
116
|
+
}, l.$attrs, { onChange: R }), null, 16, Y),
|
|
117
|
+
!t.value && p.value ? (n(), c("div", ee, [
|
|
118
118
|
s(
|
|
119
119
|
i(u),
|
|
120
120
|
v(m(e.icons.upload)),
|
|
@@ -133,13 +133,13 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
133
133
|
label: e.texts.chooseFile,
|
|
134
134
|
onClick: B
|
|
135
135
|
}, null, 8, ["label"])
|
|
136
|
-
])) : t.value ? (n(), c("div",
|
|
137
|
-
a("div",
|
|
138
|
-
r.value ? (n(), c("div",
|
|
136
|
+
])) : t.value ? (n(), c("div", le, [
|
|
137
|
+
a("div", te, [
|
|
138
|
+
r.value ? (n(), c("div", ie, [
|
|
139
139
|
a("img", {
|
|
140
140
|
src: r.value,
|
|
141
141
|
alt: e.texts.preview
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, oe)
|
|
143
143
|
])) : (n(), w(
|
|
144
144
|
i(u),
|
|
145
145
|
F({
|
|
@@ -150,28 +150,28 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
150
150
|
16
|
|
151
151
|
/* FULL_PROPS */
|
|
152
152
|
)),
|
|
153
|
-
a("div",
|
|
153
|
+
a("div", ae, [
|
|
154
154
|
a(
|
|
155
155
|
"span",
|
|
156
|
-
|
|
156
|
+
ne,
|
|
157
157
|
y(t.value.name),
|
|
158
158
|
1
|
|
159
159
|
/* TEXT */
|
|
160
160
|
),
|
|
161
161
|
a(
|
|
162
162
|
"span",
|
|
163
|
-
|
|
163
|
+
se,
|
|
164
164
|
y(t.value.type),
|
|
165
165
|
1
|
|
166
166
|
/* TEXT */
|
|
167
167
|
)
|
|
168
168
|
])
|
|
169
169
|
]),
|
|
170
|
-
p.value ? (n(), c("div",
|
|
170
|
+
p.value ? (n(), c("div", re, [
|
|
171
171
|
s(i(b), {
|
|
172
172
|
title: e.texts.download,
|
|
173
173
|
borderless: "",
|
|
174
|
-
onClick:
|
|
174
|
+
onClick: U
|
|
175
175
|
}, {
|
|
176
176
|
default: _(() => [
|
|
177
177
|
s(
|
|
@@ -188,7 +188,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
188
188
|
s(i(b), {
|
|
189
189
|
title: e.texts.remove,
|
|
190
190
|
borderless: "",
|
|
191
|
-
onClick:
|
|
191
|
+
onClick: V
|
|
192
192
|
}, {
|
|
193
193
|
default: _(() => [
|
|
194
194
|
s(
|
|
@@ -202,8 +202,8 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
202
202
|
_: 1
|
|
203
203
|
/* STABLE */
|
|
204
204
|
}, 8, ["title"])
|
|
205
|
-
])) :
|
|
206
|
-
])) : (n(), c("div",
|
|
205
|
+
])) : M("v-if", !0)
|
|
206
|
+
])) : (n(), c("div", de, [
|
|
207
207
|
s(
|
|
208
208
|
i(u),
|
|
209
209
|
v(m(e.icons.empty)),
|
|
@@ -211,7 +211,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
211
211
|
16
|
|
212
212
|
/* FULL_PROPS */
|
|
213
213
|
),
|
|
214
|
-
|
|
214
|
+
P(
|
|
215
215
|
" " + y(e.texts.empty),
|
|
216
216
|
1
|
|
217
217
|
/* TEXT */
|
|
@@ -228,7 +228,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
228
228
|
l.$slots.extras ? {
|
|
229
229
|
name: "extras",
|
|
230
230
|
fn: _(() => [
|
|
231
|
-
|
|
231
|
+
$(l.$slots, "extras")
|
|
232
232
|
]),
|
|
233
233
|
key: "0"
|
|
234
234
|
} : void 0
|
|
@@ -236,5 +236,5 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
export {
|
|
239
|
-
|
|
239
|
+
he as default
|
|
240
240
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAiDA;
|
|
1
|
+
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAiDA;AA0HC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAMvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7C,KAAK,WAAW,GAAG,cAAc,CAAC;AA8DnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmGT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;uFASnB,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,8 @@
|
|
|
1
|
-
import { defineComponent as m, computed as r, createBlock as
|
|
2
|
-
import { QLabel as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useGroupItem as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as m, toRef as b, computed as r, createBlock as f, openBlock as v, unref as o, normalizeClass as y, createSlots as g, withCtx as d, createElementVNode as q, renderSlot as s, createCommentVNode as B, mergeProps as C } from "vue";
|
|
2
|
+
import { QLabel as h } from "../QLabel/index.js";
|
|
3
|
+
import { useId as k } from "../../composables/uid.js";
|
|
4
|
+
import { useGroupItem as z } from "../../composables/useGroup/index.js";
|
|
5
|
+
const P = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QRadioButton",
|
|
8
8
|
props: {
|
|
@@ -21,7 +21,7 @@ const z = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m(
|
|
|
21
21
|
name: {}
|
|
22
22
|
},
|
|
23
23
|
setup(i) {
|
|
24
|
-
const e = i, n =
|
|
24
|
+
const e = i, n = k(b(e, "id")), t = z(e.value);
|
|
25
25
|
if (!t)
|
|
26
26
|
throw new Error("QRadioButton must be used inside a QRadioGroup");
|
|
27
27
|
const u = r(() => e.labelPlacement === "start" ? "append" : "prepend"), p = r(() => {
|
|
@@ -38,13 +38,13 @@ const z = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m(
|
|
|
38
38
|
e.class
|
|
39
39
|
];
|
|
40
40
|
});
|
|
41
|
-
return (a, l) => (
|
|
41
|
+
return (a, l) => (v(), f(o(h), {
|
|
42
42
|
for: o(n),
|
|
43
|
-
class:
|
|
43
|
+
class: y(p.value),
|
|
44
44
|
label: e.label
|
|
45
|
-
},
|
|
45
|
+
}, g({
|
|
46
46
|
[u.value]: d(() => [
|
|
47
|
-
|
|
47
|
+
q("input", C({
|
|
48
48
|
id: o(n),
|
|
49
49
|
checked: o(t).isActive.value,
|
|
50
50
|
tabindex: "0",
|
|
@@ -56,8 +56,8 @@ const z = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m(
|
|
|
56
56
|
}, a.$attrs, {
|
|
57
57
|
onChange: l[0] || (l[0] = //@ts-ignore
|
|
58
58
|
(...c) => o(t).toggle && o(t).toggle(...c))
|
|
59
|
-
}), null, 16,
|
|
60
|
-
e.labelPlacement === "end" ? s(a.$slots, "default", { key: 0 }) :
|
|
59
|
+
}), null, 16, P),
|
|
60
|
+
e.labelPlacement === "end" ? s(a.$slots, "default", { key: 0 }) : B("v-if", !0)
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
/* DYNAMIC */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as q, useModel as b, watch as B,
|
|
1
|
+
import { defineComponent as y, mergeModels as q, useModel as b, watch as B, toRef as r, computed as d, createElementBlock as n, openBlock as l, normalizeClass as _, createBlock as h, createCommentVNode as u, createElementVNode as z, unref as a, mergeProps as k, renderSlot as m } from "vue";
|
|
2
2
|
import { QLabel as V } from "../QLabel/index.js";
|
|
3
3
|
import { provideDefaults as $ } from "../../composables/defaults.js";
|
|
4
4
|
import { useId as c } from "../../composables/uid.js";
|
|
@@ -27,18 +27,18 @@ const M = ["id"], Q = {
|
|
|
27
27
|
modelModifiers: {}
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(
|
|
31
|
-
const e =
|
|
30
|
+
setup(t) {
|
|
31
|
+
const e = t, i = b(t, "modelValue"), { active: p } = C({ active: i });
|
|
32
32
|
B(p, (o) => {
|
|
33
|
-
|
|
33
|
+
i.value = o;
|
|
34
34
|
});
|
|
35
|
-
const
|
|
35
|
+
const s = c(r(e, "id")), f = c(r(e, "name")), v = d(() => [
|
|
36
36
|
"q-radio-group",
|
|
37
37
|
{
|
|
38
38
|
"q-radio-group--horizontal": e.orientation === "horizontal"
|
|
39
39
|
},
|
|
40
40
|
e.class
|
|
41
|
-
]), g =
|
|
41
|
+
]), g = d(() => e.columns > 1 ? {
|
|
42
42
|
"--q-radio-group-columns": e.columns
|
|
43
43
|
} : {
|
|
44
44
|
undefined: void 0
|
|
@@ -51,27 +51,27 @@ const M = ["id"], Q = {
|
|
|
51
51
|
invalid: r(e, "invalid"),
|
|
52
52
|
name: f
|
|
53
53
|
}
|
|
54
|
-
}), (o, R) => (
|
|
54
|
+
}), (o, R) => (l(), n(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
57
|
class: _(v.value)
|
|
58
58
|
},
|
|
59
59
|
[
|
|
60
|
-
e.label ? (
|
|
60
|
+
e.label ? (l(), h(a(V), {
|
|
61
61
|
key: 0,
|
|
62
|
-
for:
|
|
62
|
+
for: a(s),
|
|
63
63
|
label: e.label,
|
|
64
64
|
required: e.required
|
|
65
65
|
}, null, 8, ["for", "label", "required"])) : u("v-if", !0),
|
|
66
66
|
z("div", k({
|
|
67
|
-
id:
|
|
67
|
+
id: a(s),
|
|
68
68
|
class: ["q-radio-group__group", { "q-radio-group--grid": e.columns > 1 }],
|
|
69
69
|
role: "radiogroup",
|
|
70
70
|
style: g.value
|
|
71
71
|
}, o.$attrs), [
|
|
72
72
|
m(o.$slots, "default")
|
|
73
73
|
], 16, M),
|
|
74
|
-
o.$slots.extras ? (
|
|
74
|
+
o.$slots.extras ? (l(), n("div", Q, [
|
|
75
75
|
m(o.$slots, "extras")
|
|
76
76
|
])) : u("v-if", !0)
|
|
77
77
|
],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as b, mergeModels as h, useModel as z, computed as t, watch as x,
|
|
1
|
+
import { defineComponent as b, mergeModels as h, useModel as z, computed as t, watch as x, toRef as g, ref as w, createBlock as q, openBlock as $, unref as n, normalizeClass as v, createSlots as B, withCtx as a, withDirectives as k, createElementVNode as M, mergeProps as V, toHandlers as R, vModelText as A, renderSlot as o } from "vue";
|
|
2
2
|
import { QField as C } from "../QField/index.js";
|
|
3
3
|
import { useId as H } from "../../composables/uid.js";
|
|
4
4
|
import { useTextareaAutosize as L } from "../../vendors/@vueuse/core/index.js";
|
|
5
|
-
const
|
|
5
|
+
const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], D = /* @__PURE__ */ b({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QTextArea",
|
|
8
8
|
props: /* @__PURE__ */ h({
|
|
@@ -36,21 +36,21 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
x(s, (l) => d.value = l, { immediate: !0 });
|
|
39
|
-
const p = H(e
|
|
39
|
+
const p = H(g(e, "id")), m = t(
|
|
40
40
|
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
41
|
-
), f = t(() => ({ input: e.autosize ? c : null })), u =
|
|
41
|
+
), f = t(() => ({ input: e.autosize ? c : null })), u = w(), { triggerResize: c } = L({
|
|
42
42
|
element: t(() => e.autosize ? u.value : void 0),
|
|
43
43
|
styleProp: "minHeight"
|
|
44
44
|
});
|
|
45
|
-
return (l, r) => (
|
|
46
|
-
class:
|
|
45
|
+
return (l, r) => ($(), q(n(C), {
|
|
46
|
+
class: v(["q-text-area", e.class]),
|
|
47
47
|
for: n(p),
|
|
48
48
|
label: e.label,
|
|
49
49
|
size: e.size,
|
|
50
50
|
readonly: e.readonly,
|
|
51
51
|
disabled: e.disabled,
|
|
52
52
|
required: e.required
|
|
53
|
-
},
|
|
53
|
+
}, B({
|
|
54
54
|
"label.prepend": a(() => [
|
|
55
55
|
o(l.$slots, "label.prepend")
|
|
56
56
|
]),
|
|
@@ -58,7 +58,7 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
58
58
|
o(l.$slots, "label.append")
|
|
59
59
|
]),
|
|
60
60
|
default: a(() => [
|
|
61
|
-
|
|
61
|
+
k(M("textarea", V({
|
|
62
62
|
id: n(p),
|
|
63
63
|
ref_key: "textareaRef",
|
|
64
64
|
ref: u,
|
|
@@ -73,7 +73,7 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
73
73
|
cols: e.cols,
|
|
74
74
|
resize: e.resize,
|
|
75
75
|
wrap: e.wrap
|
|
76
|
-
}, l.$attrs,
|
|
76
|
+
}, l.$attrs, R(f.value, !0)), null, 16, T), [
|
|
77
77
|
[A, d.value]
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
@@ -105,5 +105,5 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
D as default
|
|
109
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEurc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnD50c;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bksc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB30c,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"}
|