@quidgest/ui 0.15.3 → 0.15.5
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 +2 -0
- package/dist/ui.css +1 -1
- package/dist/ui.esm.js +7000 -6132
- package/dist/ui.js +23 -16
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1118 -967
- package/dist/ui.scss +2 -2
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +14 -6
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +37 -36
- package/esm/components/QCombobox/index.d.ts +22 -3
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +2 -2
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +51 -50
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +35 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +50 -0
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +4 -0
- package/esm/components/QDismissibleLayer/index.d.ts +53 -0
- package/esm/components/QDismissibleLayer/index.d.ts.map +1 -0
- package/esm/components/QDismissibleLayer/index.js +6 -0
- package/esm/components/QDismissibleLayer/types.d.ts +25 -0
- package/esm/components/QDismissibleLayer/types.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +0 -4
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +10 -15
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +10 -15
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +72 -117
- package/esm/components/QDropdownMenu/index.d.ts +0 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QFocusTrap/QFocusTrap.d.ts +28 -0
- package/esm/components/QFocusTrap/QFocusTrap.d.ts.map +1 -0
- package/esm/components/QFocusTrap/QFocusTrap.vue.js +32 -0
- package/esm/components/QFocusTrap/QFocusTrap.vue2.js +4 -0
- package/esm/components/QFocusTrap/index.d.ts +38 -0
- package/esm/components/QFocusTrap/index.d.ts.map +1 -0
- package/esm/components/QFocusTrap/index.js +6 -0
- package/esm/components/QFocusTrap/types.d.ts +6 -0
- package/esm/components/QFocusTrap/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +0 -9
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +97 -82
- package/esm/components/QList/index.d.ts +0 -3
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +2 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +197 -148
- package/esm/components/QOverlay/index.d.ts +4 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +6 -1
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +6 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +21 -20
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +6 -5
- package/esm/components/QPasswordField/index.d.ts +3 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +2 -6
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +106 -125
- package/esm/components/QSelect/index.d.ts +1 -3
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +33 -30
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +48 -38
- package/esm/components/QTextField/index.d.ts +3 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +5 -0
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +69 -65
- package/esm/index.d.ts +2 -0
- package/esm/utils/merge.d.ts.map +1 -1
- package/esm/utils/merge.js +12 -16
- package/esm/vendors/@vueuse/core/index.js +173 -67
- package/esm/vendors/@vueuse/integrations/useFocusTrap/component.js +24 -0
- package/esm/vendors/@vueuse/shared/index.js +36 -15
- package/esm/vendors/focus-trap/dist/focus-trap.esm.js +473 -0
- package/esm/vendors/tabbable/dist/index.esm.js +202 -0
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AAgDA;
|
|
1
|
+
{"version":3,"file":"QTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/QTextArea.vue"],"names":[],"mappings":"AAgDA;AAkHC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7C,KAAK,WAAW,GAAG,cAAc,CAAC;AAwDnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;iCAhBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACF,GAAG;;;;;;EAiB/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;OASnB,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 b, mergeModels as h, useModel as z, computed as
|
|
2
|
-
import { QField as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useTextareaAutosize as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as b, mergeModels as h, useModel as z, computed as t, watch as x, ref as g, createBlock as w, openBlock as q, unref as n, normalizeClass as $, createSlots as v, withCtx as a, withDirectives as B, createElementVNode as k, mergeProps as M, toHandlers as V, vModelText as A, renderSlot as o } from "vue";
|
|
2
|
+
import { QField as C } from "../QField/index.js";
|
|
3
|
+
import { useId as H } from "../../composables/uid.js";
|
|
4
|
+
import { useTextareaAutosize as L } from "../../vendors/@vueuse/core/index.js";
|
|
5
|
+
const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], S = /* @__PURE__ */ b({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QTextArea",
|
|
8
8
|
props: /* @__PURE__ */ h({
|
|
@@ -27,39 +27,42 @@ const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
27
27
|
modelModifiers: {}
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(
|
|
31
|
-
const e =
|
|
32
|
-
() =>
|
|
33
|
-
), f = o(() => ({ input: e.autosize ? c : null })), i = g(), { triggerResize: c } = C({
|
|
34
|
-
element: o(() => e.autosize ? i.value : void 0),
|
|
35
|
-
styleProp: "minHeight"
|
|
36
|
-
}), p = o({
|
|
37
|
-
get: () => d.value,
|
|
30
|
+
setup(i) {
|
|
31
|
+
const e = i, s = z(i, "modelValue"), d = t({
|
|
32
|
+
get: () => s.value,
|
|
38
33
|
set: (l) => {
|
|
39
|
-
|
|
34
|
+
const r = e.maxLength;
|
|
35
|
+
s.value = r ? l == null ? void 0 : l.slice(0, r) : l;
|
|
40
36
|
}
|
|
41
37
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
x(s, (l) => d.value = l, { immediate: !0 });
|
|
39
|
+
const p = H(e.id), m = t(
|
|
40
|
+
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
41
|
+
), f = t(() => ({ input: e.autosize ? c : null })), u = g(), { triggerResize: c } = L({
|
|
42
|
+
element: t(() => e.autosize ? u.value : void 0),
|
|
43
|
+
styleProp: "minHeight"
|
|
44
|
+
});
|
|
45
|
+
return (l, r) => (q(), w(n(C), {
|
|
46
|
+
class: $(["q-text-area", e.class]),
|
|
47
|
+
for: n(p),
|
|
45
48
|
label: e.label,
|
|
46
49
|
size: e.size,
|
|
47
50
|
readonly: e.readonly,
|
|
48
51
|
disabled: e.disabled,
|
|
49
52
|
required: e.required
|
|
50
|
-
},
|
|
53
|
+
}, v({
|
|
51
54
|
"label.prepend": a(() => [
|
|
52
|
-
|
|
55
|
+
o(l.$slots, "label.prepend")
|
|
53
56
|
]),
|
|
54
57
|
"label.append": a(() => [
|
|
55
|
-
|
|
58
|
+
o(l.$slots, "label.append")
|
|
56
59
|
]),
|
|
57
60
|
default: a(() => [
|
|
58
|
-
|
|
59
|
-
id:
|
|
61
|
+
B(k("textarea", M({
|
|
62
|
+
id: n(p),
|
|
60
63
|
ref_key: "textareaRef",
|
|
61
|
-
ref:
|
|
62
|
-
"onUpdate:modelValue":
|
|
64
|
+
ref: u,
|
|
65
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => d.value = y),
|
|
63
66
|
class: "q-text-area__input",
|
|
64
67
|
required: e.required,
|
|
65
68
|
placeholder: m.value,
|
|
@@ -70,8 +73,8 @@ const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
70
73
|
cols: e.cols,
|
|
71
74
|
resize: e.resize,
|
|
72
75
|
wrap: e.wrap
|
|
73
|
-
}, l.$attrs,
|
|
74
|
-
[
|
|
76
|
+
}, l.$attrs, V(f.value, !0)), null, 16, R), [
|
|
77
|
+
[A, d.value]
|
|
75
78
|
])
|
|
76
79
|
]),
|
|
77
80
|
_: 2
|
|
@@ -80,21 +83,21 @@ const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
80
83
|
l.$slots.prepend ? {
|
|
81
84
|
name: "prepend",
|
|
82
85
|
fn: a(() => [
|
|
83
|
-
|
|
86
|
+
o(l.$slots, "prepend")
|
|
84
87
|
]),
|
|
85
88
|
key: "0"
|
|
86
89
|
} : void 0,
|
|
87
90
|
l.$slots.append ? {
|
|
88
91
|
name: "append",
|
|
89
92
|
fn: a(() => [
|
|
90
|
-
|
|
93
|
+
o(l.$slots, "append")
|
|
91
94
|
]),
|
|
92
95
|
key: "1"
|
|
93
96
|
} : void 0,
|
|
94
97
|
l.$slots.extras ? {
|
|
95
98
|
name: "extras",
|
|
96
99
|
fn: a(() => [
|
|
97
|
-
|
|
100
|
+
o(l.$slots, "extras")
|
|
98
101
|
]),
|
|
99
102
|
key: "2"
|
|
100
103
|
} : void 0
|
|
@@ -102,5 +105,5 @@ const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
102
105
|
}
|
|
103
106
|
});
|
|
104
107
|
export {
|
|
105
|
-
|
|
108
|
+
S as default
|
|
106
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEyrc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnD90c;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bosc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB70c,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,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QField as
|
|
3
|
-
import { QClearButton as
|
|
4
|
-
import { useId as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as C, mergeModels as y, useModel as R, computed as n, watch as V, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as z, createSlots as M, withCtx as a, withDirectives as w, createElementVNode as L, mergeProps as Q, vModelDynamic as D, renderSlot as o, createCommentVNode as F } from "vue";
|
|
2
|
+
import { QField as N } from "../QField/index.js";
|
|
3
|
+
import { QClearButton as S } from "../__internal__/QClearButton/index.js";
|
|
4
|
+
import { useId as _ } from "../../composables/uid.js";
|
|
5
|
+
const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], U = /* @__PURE__ */ C({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QTextField",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ y({
|
|
9
9
|
id: {},
|
|
10
10
|
class: {},
|
|
11
11
|
label: {},
|
|
@@ -16,6 +16,7 @@ const _ = ["id", "type", "required", "placeholder", "readonly", "disabled"], T =
|
|
|
16
16
|
disabled: { type: Boolean },
|
|
17
17
|
invalid: { type: Boolean },
|
|
18
18
|
placeholder: {},
|
|
19
|
+
maxLength: {},
|
|
19
20
|
clearable: { type: Boolean },
|
|
20
21
|
type: { default: "text" },
|
|
21
22
|
texts: {}
|
|
@@ -23,52 +24,61 @@ const _ = ["id", "type", "required", "placeholder", "readonly", "disabled"], T =
|
|
|
23
24
|
modelValue: {},
|
|
24
25
|
modelModifiers: {}
|
|
25
26
|
}),
|
|
26
|
-
emits: /* @__PURE__ */
|
|
27
|
-
setup(
|
|
28
|
-
const e =
|
|
27
|
+
emits: /* @__PURE__ */ y(["click:clear"], ["update:modelValue"]),
|
|
28
|
+
setup(i, { expose: x, emit: k }) {
|
|
29
|
+
const e = i, q = k, t = R(i, "modelValue"), s = n({
|
|
30
|
+
get: () => t.value,
|
|
31
|
+
set: (l) => {
|
|
32
|
+
const d = e.maxLength;
|
|
33
|
+
t.value = d ? l == null ? void 0 : l.slice(0, d) : l;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
V(t, (l) => s.value = l, { immediate: !0 });
|
|
37
|
+
const p = _(e.id), u = b(null), f = b(null), g = n(
|
|
29
38
|
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
30
|
-
),
|
|
31
|
-
function
|
|
32
|
-
|
|
39
|
+
), m = n(() => e.clearable && !e.readonly && !e.disabled), c = n(() => m.value && t.value);
|
|
40
|
+
function B(l) {
|
|
41
|
+
m.value && (t.value = "", q("click:clear", l));
|
|
33
42
|
}
|
|
34
|
-
return
|
|
35
|
-
fieldRef:
|
|
43
|
+
return x({
|
|
44
|
+
fieldRef: n(() => {
|
|
36
45
|
var l;
|
|
37
|
-
return (l =
|
|
46
|
+
return (l = u.value) == null ? void 0 : l.fieldRef;
|
|
38
47
|
}),
|
|
39
|
-
inputRef:
|
|
40
|
-
}), (l,
|
|
48
|
+
inputRef: f
|
|
49
|
+
}), (l, d) => (v(), h(r(N), {
|
|
41
50
|
ref_key: "fieldRef",
|
|
42
|
-
ref:
|
|
43
|
-
class:
|
|
44
|
-
for: r(
|
|
51
|
+
ref: u,
|
|
52
|
+
class: z(["q-text-field", e.class]),
|
|
53
|
+
for: r(p),
|
|
45
54
|
label: e.label,
|
|
46
55
|
size: e.size,
|
|
47
56
|
readonly: e.readonly,
|
|
48
57
|
disabled: e.disabled,
|
|
49
58
|
required: e.required,
|
|
50
59
|
invalid: e.invalid
|
|
51
|
-
},
|
|
60
|
+
}, M({
|
|
52
61
|
"label.prepend": a(() => [
|
|
53
|
-
|
|
62
|
+
o(l.$slots, "label.prepend")
|
|
54
63
|
]),
|
|
55
64
|
"label.append": a(() => [
|
|
56
|
-
|
|
65
|
+
o(l.$slots, "label.append")
|
|
57
66
|
]),
|
|
58
67
|
default: a(() => [
|
|
59
|
-
|
|
60
|
-
id: r(
|
|
68
|
+
w(L("input", Q({
|
|
69
|
+
id: r(p),
|
|
61
70
|
ref_key: "inputRef",
|
|
62
|
-
ref:
|
|
63
|
-
"onUpdate:modelValue":
|
|
71
|
+
ref: f,
|
|
72
|
+
"onUpdate:modelValue": d[0] || (d[0] = ($) => s.value = $),
|
|
64
73
|
class: "q-text-field__input",
|
|
65
74
|
type: e.type,
|
|
75
|
+
maxlength: e.maxLength,
|
|
66
76
|
required: e.required,
|
|
67
|
-
placeholder:
|
|
77
|
+
placeholder: g.value,
|
|
68
78
|
readonly: e.readonly,
|
|
69
79
|
disabled: e.disabled
|
|
70
|
-
}, l.$attrs), null, 16,
|
|
71
|
-
[
|
|
80
|
+
}, l.$attrs), null, 16, A), [
|
|
81
|
+
[D, s.value]
|
|
72
82
|
])
|
|
73
83
|
]),
|
|
74
84
|
_: 2
|
|
@@ -77,27 +87,27 @@ const _ = ["id", "type", "required", "placeholder", "readonly", "disabled"], T =
|
|
|
77
87
|
l.$slots.prepend ? {
|
|
78
88
|
name: "prepend",
|
|
79
89
|
fn: a(() => [
|
|
80
|
-
|
|
90
|
+
o(l.$slots, "prepend")
|
|
81
91
|
]),
|
|
82
92
|
key: "0"
|
|
83
93
|
} : void 0,
|
|
84
|
-
l.$slots.append ||
|
|
94
|
+
l.$slots.append || c.value ? {
|
|
85
95
|
name: "append",
|
|
86
96
|
fn: a(() => [
|
|
87
|
-
|
|
88
|
-
|
|
97
|
+
o(l.$slots, "append"),
|
|
98
|
+
c.value ? (v(), h(r(S), {
|
|
89
99
|
key: 0,
|
|
90
100
|
"data-testid": "q-text-field__clear-button",
|
|
91
101
|
texts: e.texts,
|
|
92
|
-
onClick:
|
|
93
|
-
}, null, 8, ["texts"])) :
|
|
102
|
+
onClick: B
|
|
103
|
+
}, null, 8, ["texts"])) : F("v-if", !0)
|
|
94
104
|
]),
|
|
95
105
|
key: "1"
|
|
96
106
|
} : void 0,
|
|
97
107
|
l.$slots.extras ? {
|
|
98
108
|
name: "extras",
|
|
99
109
|
fn: a(() => [
|
|
100
|
-
|
|
110
|
+
o(l.$slots, "extras")
|
|
101
111
|
]),
|
|
102
112
|
key: "2"
|
|
103
113
|
} : void 0
|
|
@@ -105,5 +115,5 @@ const _ = ["id", "type", "required", "placeholder", "readonly", "disabled"], T =
|
|
|
105
115
|
}
|
|
106
116
|
});
|
|
107
117
|
export {
|
|
108
|
-
|
|
118
|
+
U as default
|
|
109
119
|
};
|
|
@@ -14,6 +14,7 @@ declare const QTextField: {
|
|
|
14
14
|
invalid?: boolean;
|
|
15
15
|
} & {
|
|
16
16
|
placeholder?: string;
|
|
17
|
+
maxLength?: number;
|
|
17
18
|
clearable?: boolean;
|
|
18
19
|
type?: string;
|
|
19
20
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
@@ -121,6 +122,7 @@ declare const QTextField: {
|
|
|
121
122
|
invalid?: boolean;
|
|
122
123
|
} & {
|
|
123
124
|
placeholder?: string;
|
|
125
|
+
maxLength?: number;
|
|
124
126
|
clearable?: boolean;
|
|
125
127
|
type?: string;
|
|
126
128
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
@@ -150,6 +152,7 @@ declare const QTextField: {
|
|
|
150
152
|
invalid?: boolean;
|
|
151
153
|
} & {
|
|
152
154
|
placeholder?: string;
|
|
155
|
+
maxLength?: number;
|
|
153
156
|
clearable?: boolean;
|
|
154
157
|
type?: string;
|
|
155
158
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO+ozB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPtuzB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,YAAY,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -4,6 +4,11 @@ export type QTextFieldProps = QFieldProps & {
|
|
|
4
4
|
* The placeholder text for the text field.
|
|
5
5
|
*/
|
|
6
6
|
placeholder?: string;
|
|
7
|
+
/**
|
|
8
|
+
* If set, defines the maximum string length
|
|
9
|
+
* that the user can enter into the text area field.
|
|
10
|
+
*/
|
|
11
|
+
maxLength?: number;
|
|
7
12
|
/**
|
|
8
13
|
* Whether the value of the field can be cleared.
|
|
9
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -11,9 +11,11 @@ export * from './QColorPicker';
|
|
|
11
11
|
export * from './QCombobox';
|
|
12
12
|
export * from './QDateTimePicker';
|
|
13
13
|
export * from './QDialog';
|
|
14
|
+
export * from './QDismissibleLayer';
|
|
14
15
|
export * from './QDropdownMenu';
|
|
15
16
|
export * from './QField';
|
|
16
17
|
export * from './QFileUpload';
|
|
18
|
+
export * from './QFocusTrap';
|
|
17
19
|
export * from './QIcon';
|
|
18
20
|
export * from './QInputGroup';
|
|
19
21
|
export * from './QLabel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -2,78 +2,82 @@ import { QAccordion as e } from "./QAccordion/index.js";
|
|
|
2
2
|
import { QBadge as p } from "./QBadge/index.js";
|
|
3
3
|
import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
|
|
4
4
|
import { QButton as f } from "./QButton/index.js";
|
|
5
|
-
import { QButtonGroup as
|
|
6
|
-
import { QButtonToggle as
|
|
7
|
-
import { QCard as
|
|
8
|
-
import { QCheckbox as
|
|
5
|
+
import { QButtonGroup as a } from "./QButtonGroup/index.js";
|
|
6
|
+
import { QButtonToggle as l } from "./QButtonToggle/index.js";
|
|
7
|
+
import { QCard as s } from "./QCard/index.js";
|
|
8
|
+
import { QCheckbox as c } from "./QCheckbox/index.js";
|
|
9
9
|
import { QCollapsible as P } from "./QCollapsible/index.js";
|
|
10
10
|
import { QColorPicker as g } from "./QColorPicker/index.js";
|
|
11
|
-
import { QCombobox as
|
|
12
|
-
import { QDateTimePicker as
|
|
13
|
-
import { QDialog as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
11
|
+
import { QCombobox as b } from "./QCombobox/index.js";
|
|
12
|
+
import { QDateTimePicker as B } from "./QDateTimePicker/index.js";
|
|
13
|
+
import { QDialog as C } from "./QDialog/index.js";
|
|
14
|
+
import { QDismissibleLayer as k } from "./QDismissibleLayer/index.js";
|
|
15
|
+
import { QDropdownMenu as D } from "./QDropdownMenu/index.js";
|
|
16
|
+
import { QField as w } from "./QField/index.js";
|
|
17
|
+
import { QFileUpload as h } from "./QFileUpload/index.js";
|
|
18
|
+
import { QFocusTrap as M } from "./QFocusTrap/index.js";
|
|
19
|
+
import { QIcon as U, QIconFont as j, QIconImg as q, QIconSvg as z } from "./QIcon/index.js";
|
|
20
|
+
import { QInputGroup as H } from "./QInputGroup/index.js";
|
|
21
|
+
import { QLabel as K } from "./QLabel/index.js";
|
|
22
|
+
import { QLineLoader as V } from "./QLineLoader/index.js";
|
|
23
|
+
import { QList as X, QListItem as Y, QListItemGroup as Z } from "./QList/index.js";
|
|
24
|
+
import { QMeter as $ } from "./QMeter/index.js";
|
|
25
|
+
import { QOverlay as ro } from "./QOverlay/index.js";
|
|
26
|
+
import { QPasswordField as to } from "./QPasswordField/index.js";
|
|
27
|
+
import { QPopover as Qo } from "./QPopover/index.js";
|
|
28
|
+
import { QPropertyList as xo, QPropertyListGroup as fo, QPropertyListPanel as io, QPropertyListRow as ao } from "./QPropertyList/index.js";
|
|
29
|
+
import { QRadioButton as lo, QRadioGroup as so } from "./QRadioGroup/index.js";
|
|
30
|
+
import { QSelect as co } from "./QSelect/index.js";
|
|
31
|
+
import { QSkeletonLoader as Po } from "./QSkeletonLoader/index.js";
|
|
32
|
+
import { QSpinnerLoader as go } from "./QSpinnerLoader/index.js";
|
|
33
|
+
import { QTextArea as bo } from "./QTextArea/index.js";
|
|
34
|
+
import { QTextField as Bo } from "./QTextField/index.js";
|
|
35
|
+
import { QThemeProvider as Co } from "./QThemeProvider/index.js";
|
|
36
|
+
import { QTooltip as ko } from "./QTooltip/index.js";
|
|
35
37
|
export {
|
|
36
38
|
e as QAccordion,
|
|
37
39
|
p as QBadge,
|
|
38
40
|
m as QBadgeIndicator,
|
|
39
41
|
f as QButton,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
a as QButtonGroup,
|
|
43
|
+
l as QButtonToggle,
|
|
44
|
+
s as QCard,
|
|
45
|
+
c as QCheckbox,
|
|
44
46
|
P as QCollapsible,
|
|
45
47
|
g as QColorPicker,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
k as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
h as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
z as
|
|
58
|
-
H as
|
|
59
|
-
K as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Z as
|
|
64
|
-
$ as
|
|
65
|
-
ro as
|
|
66
|
-
to as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Po as
|
|
76
|
-
go as
|
|
77
|
-
|
|
78
|
-
|
|
48
|
+
b as QCombobox,
|
|
49
|
+
B as QDateTimePicker,
|
|
50
|
+
C as QDialog,
|
|
51
|
+
k as QDismissibleLayer,
|
|
52
|
+
D as QDropdownMenu,
|
|
53
|
+
w as QField,
|
|
54
|
+
h as QFileUpload,
|
|
55
|
+
M as QFocusTrap,
|
|
56
|
+
U as QIcon,
|
|
57
|
+
j as QIconFont,
|
|
58
|
+
q as QIconImg,
|
|
59
|
+
z as QIconSvg,
|
|
60
|
+
H as QInputGroup,
|
|
61
|
+
K as QLabel,
|
|
62
|
+
V as QLineLoader,
|
|
63
|
+
X as QList,
|
|
64
|
+
Y as QListItem,
|
|
65
|
+
Z as QListItemGroup,
|
|
66
|
+
$ as QMeter,
|
|
67
|
+
ro as QOverlay,
|
|
68
|
+
to as QPasswordField,
|
|
69
|
+
Qo as QPopover,
|
|
70
|
+
xo as QPropertyList,
|
|
71
|
+
fo as QPropertyListGroup,
|
|
72
|
+
io as QPropertyListPanel,
|
|
73
|
+
ao as QPropertyListRow,
|
|
74
|
+
lo as QRadioButton,
|
|
75
|
+
so as QRadioGroup,
|
|
76
|
+
co as QSelect,
|
|
77
|
+
Po as QSkeletonLoader,
|
|
78
|
+
go as QSpinnerLoader,
|
|
79
|
+
bo as QTextArea,
|
|
80
|
+
Bo as QTextField,
|
|
81
|
+
Co as QThemeProvider,
|
|
82
|
+
ko as QTooltip
|
|
79
83
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -20,9 +20,11 @@ declare module '@vue/runtime-core' {
|
|
|
20
20
|
QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
|
|
21
21
|
QDateTimePicker: typeof import('@quidgest/ui/components')['QDateTimePicker']
|
|
22
22
|
QDialog: typeof import('@quidgest/ui/components')['QDialog']
|
|
23
|
+
QDismissibleLayer: typeof import('@quidgest/ui/components')['QDismissibleLayer']
|
|
23
24
|
QDropdownMenu: typeof import('@quidgest/ui/components')['QDropdownMenu']
|
|
24
25
|
QField: typeof import('@quidgest/ui/components')['QField']
|
|
25
26
|
QFileUpload: typeof import('@quidgest/ui/components')['QFileUpload']
|
|
27
|
+
QFocusTrap: typeof import('@quidgest/ui/components')['QFocusTrap']
|
|
26
28
|
QIcon: typeof import('@quidgest/ui/components')['QIcon']
|
|
27
29
|
QIconFont: typeof import('@quidgest/ui/components')['QIconFont']
|
|
28
30
|
QIconImg: typeof import('@quidgest/ui/components')['QIconImg']
|
package/esm/utils/merge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CACpB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACpC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2BzB"}
|
package/esm/utils/merge.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
for (const
|
|
5
|
-
t
|
|
6
|
-
for (const o in e) {
|
|
7
|
-
const c = n[o], r = e[o];
|
|
8
|
-
if (i(c) && i(r)) {
|
|
9
|
-
t[o] = f(
|
|
10
|
-
c,
|
|
11
|
-
r
|
|
12
|
-
);
|
|
1
|
+
import { isObject as s } from "./isObject.js";
|
|
2
|
+
function i(n = {}, c = {}) {
|
|
3
|
+
const o = {}, f = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(c)]);
|
|
4
|
+
for (const t of f) {
|
|
5
|
+
if (t === "__proto__" || t === "constructor" || t === "prototype")
|
|
13
6
|
continue;
|
|
14
|
-
|
|
15
|
-
t
|
|
7
|
+
const r = n[t], e = c[t];
|
|
8
|
+
s(r) && s(e) ? o[t] = i(
|
|
9
|
+
r,
|
|
10
|
+
e
|
|
11
|
+
) : o[t] = e !== void 0 ? e : r;
|
|
16
12
|
}
|
|
17
|
-
return
|
|
13
|
+
return o;
|
|
18
14
|
}
|
|
19
15
|
export {
|
|
20
|
-
|
|
16
|
+
i as merge
|
|
21
17
|
};
|