@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.
Files changed (85) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +1 -1
  3. package/dist/ui.esm.js +7000 -6132
  4. package/dist/ui.js +23 -16
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +1118 -967
  7. package/dist/ui.scss +2 -2
  8. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
  9. package/esm/components/QCombobox/QCombobox.d.ts +14 -6
  10. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  11. package/esm/components/QCombobox/QCombobox.vue.js +37 -36
  12. package/esm/components/QCombobox/index.d.ts +22 -3
  13. package/esm/components/QCombobox/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/QDialog.d.ts +2 -2
  15. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  16. package/esm/components/QDialog/QDialog.vue.js +51 -50
  17. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts +35 -0
  18. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -0
  19. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +50 -0
  20. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +4 -0
  21. package/esm/components/QDismissibleLayer/index.d.ts +53 -0
  22. package/esm/components/QDismissibleLayer/index.d.ts.map +1 -0
  23. package/esm/components/QDismissibleLayer/index.js +6 -0
  24. package/esm/components/QDismissibleLayer/types.d.ts +25 -0
  25. package/esm/components/QDismissibleLayer/types.d.ts.map +1 -0
  26. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +0 -4
  27. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  28. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +10 -15
  29. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +10 -15
  30. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  31. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +72 -117
  32. package/esm/components/QDropdownMenu/index.d.ts +0 -3
  33. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  34. package/esm/components/QFocusTrap/QFocusTrap.d.ts +28 -0
  35. package/esm/components/QFocusTrap/QFocusTrap.d.ts.map +1 -0
  36. package/esm/components/QFocusTrap/QFocusTrap.vue.js +32 -0
  37. package/esm/components/QFocusTrap/QFocusTrap.vue2.js +4 -0
  38. package/esm/components/QFocusTrap/index.d.ts +38 -0
  39. package/esm/components/QFocusTrap/index.d.ts.map +1 -0
  40. package/esm/components/QFocusTrap/index.js +6 -0
  41. package/esm/components/QFocusTrap/types.d.ts +6 -0
  42. package/esm/components/QFocusTrap/types.d.ts.map +1 -0
  43. package/esm/components/QList/QList.d.ts +0 -9
  44. package/esm/components/QList/QList.d.ts.map +1 -1
  45. package/esm/components/QList/QList.vue.js +97 -82
  46. package/esm/components/QList/index.d.ts +0 -3
  47. package/esm/components/QList/index.d.ts.map +1 -1
  48. package/esm/components/QOverlay/QOverlay.d.ts +2 -0
  49. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  50. package/esm/components/QOverlay/QOverlay.vue.js +197 -148
  51. package/esm/components/QOverlay/index.d.ts +4 -0
  52. package/esm/components/QOverlay/index.d.ts.map +1 -1
  53. package/esm/components/QOverlay/types.d.ts +6 -1
  54. package/esm/components/QOverlay/types.d.ts.map +1 -1
  55. package/esm/components/QPasswordField/QPasswordField.d.ts +6 -0
  56. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  57. package/esm/components/QPasswordField/QPasswordField.vue.js +21 -20
  58. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +6 -5
  59. package/esm/components/QPasswordField/index.d.ts +3 -0
  60. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  61. package/esm/components/QSelect/QSelect.d.ts +2 -6
  62. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  63. package/esm/components/QSelect/QSelect.vue.js +106 -125
  64. package/esm/components/QSelect/index.d.ts +1 -3
  65. package/esm/components/QSelect/index.d.ts.map +1 -1
  66. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  67. package/esm/components/QTextArea/QTextArea.vue.js +33 -30
  68. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  69. package/esm/components/QTextField/QTextField.vue.js +48 -38
  70. package/esm/components/QTextField/index.d.ts +3 -0
  71. package/esm/components/QTextField/index.d.ts.map +1 -1
  72. package/esm/components/QTextField/types.d.ts +5 -0
  73. package/esm/components/QTextField/types.d.ts.map +1 -1
  74. package/esm/components/index.d.ts +2 -0
  75. package/esm/components/index.d.ts.map +1 -1
  76. package/esm/components/index.js +69 -65
  77. package/esm/index.d.ts +2 -0
  78. package/esm/utils/merge.d.ts.map +1 -1
  79. package/esm/utils/merge.js +12 -16
  80. package/esm/vendors/@vueuse/core/index.js +173 -67
  81. package/esm/vendors/@vueuse/integrations/useFocusTrap/component.js +24 -0
  82. package/esm/vendors/@vueuse/shared/index.js +36 -15
  83. package/esm/vendors/focus-trap/dist/focus-trap.esm.js +473 -0
  84. package/esm/vendors/tabbable/dist/index.esm.js +202 -0
  85. 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;AA8GC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7C,KAAK,WAAW,GAAG,cAAc,CAAC;AAoDnC,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
+ {"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 o, ref as g, createBlock as x, openBlock as w, unref as s, normalizeClass as q, createSlots as $, withCtx as a, withDirectives as v, createElementVNode as B, mergeProps as k, toHandlers as M, vModelText as V, renderSlot as r } from "vue";
2
- import { QField as L } from "../QField/index.js";
3
- import { useId as A } from "../../composables/uid.js";
4
- import { useTextareaAutosize as C } from "../../vendors/@vueuse/core/index.js";
5
- const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], Q = /* @__PURE__ */ b({
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(t) {
31
- const e = t, d = z(t, "modelValue"), n = A(e.id), m = o(
32
- () => e.readonly || e.disabled ? void 0 : e.placeholder
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
- d.value = e.maxLength ? l == null ? void 0 : l.slice(0, e.maxLength) : l;
34
+ const r = e.maxLength;
35
+ s.value = r ? l == null ? void 0 : l.slice(0, r) : l;
40
36
  }
41
37
  });
42
- return (l, u) => (w(), x(s(L), {
43
- class: q(["q-text-area", e.class]),
44
- for: s(n),
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
- r(l.$slots, "label.prepend")
55
+ o(l.$slots, "label.prepend")
53
56
  ]),
54
57
  "label.append": a(() => [
55
- r(l.$slots, "label.append")
58
+ o(l.$slots, "label.append")
56
59
  ]),
57
60
  default: a(() => [
58
- v(B("textarea", k({
59
- id: s(n),
61
+ B(k("textarea", M({
62
+ id: n(p),
60
63
  ref_key: "textareaRef",
61
- ref: i,
62
- "onUpdate:modelValue": u[0] || (u[0] = (y) => p.value = y),
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, M(f.value, !0)), null, 16, H), [
74
- [V, p.value]
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
- r(l.$slots, "prepend")
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
- r(l.$slots, "append")
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
- r(l.$slots, "extras")
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
- Q as default
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":"AAmDA;AAmHC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAwDpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEole,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnDzue;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+B+le,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArBxue,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
+ {"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 x, mergeModels as m, useModel as R, ref as y, computed as o, createBlock as b, openBlock as v, unref as r, normalizeClass as V, createSlots as z, withCtx as a, withDirectives as M, createElementVNode as w, mergeProps as Q, vModelDynamic as g, renderSlot as d, createCommentVNode as D } from "vue";
2
- import { QField as F } from "../QField/index.js";
3
- import { QClearButton as N } from "../__internal__/QClearButton/index.js";
4
- import { useId as S } from "../../composables/uid.js";
5
- const _ = ["id", "type", "required", "placeholder", "readonly", "disabled"], T = /* @__PURE__ */ x({
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__ */ m({
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__ */ m(["click:clear"], ["update:modelValue"]),
27
- setup(n, { expose: k, emit: q }) {
28
- const e = n, h = q, t = R(n, "modelValue"), s = S(e.id), i = y(null), p = y(null), B = o(
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
- ), u = o(() => e.clearable && !e.readonly && !e.disabled), f = o(() => u.value && t.value);
31
- function $(l) {
32
- u.value && (t.value = "", h("click:clear", l));
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 k({
35
- fieldRef: o(() => {
43
+ return x({
44
+ fieldRef: n(() => {
36
45
  var l;
37
- return (l = i.value) == null ? void 0 : l.fieldRef;
46
+ return (l = u.value) == null ? void 0 : l.fieldRef;
38
47
  }),
39
- inputRef: p
40
- }), (l, c) => (v(), b(r(F), {
48
+ inputRef: f
49
+ }), (l, d) => (v(), h(r(N), {
41
50
  ref_key: "fieldRef",
42
- ref: i,
43
- class: V(["q-text-field", e.class]),
44
- for: r(s),
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
- }, z({
60
+ }, M({
52
61
  "label.prepend": a(() => [
53
- d(l.$slots, "label.prepend")
62
+ o(l.$slots, "label.prepend")
54
63
  ]),
55
64
  "label.append": a(() => [
56
- d(l.$slots, "label.append")
65
+ o(l.$slots, "label.append")
57
66
  ]),
58
67
  default: a(() => [
59
- M(w("input", Q({
60
- id: r(s),
68
+ w(L("input", Q({
69
+ id: r(p),
61
70
  ref_key: "inputRef",
62
- ref: p,
63
- "onUpdate:modelValue": c[0] || (c[0] = (C) => t.value = C),
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: B.value,
77
+ placeholder: g.value,
68
78
  readonly: e.readonly,
69
79
  disabled: e.disabled
70
- }, l.$attrs), null, 16, _), [
71
- [g, t.value]
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
- d(l.$slots, "prepend")
90
+ o(l.$slots, "prepend")
81
91
  ]),
82
92
  key: "0"
83
93
  } : void 0,
84
- l.$slots.append || f.value ? {
94
+ l.$slots.append || c.value ? {
85
95
  name: "append",
86
96
  fn: a(() => [
87
- d(l.$slots, "append"),
88
- f.value ? (v(), b(r(N), {
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"])) : D("v-if", !0)
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
- d(l.$slots, "extras")
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
- T as default
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO+ozB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPtuzB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,YAAY,EAAE,eAAe,EAAE,CAAA"}
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"}
@@ -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 n } from "./QButtonGroup/index.js";
6
- import { QButtonToggle as d } from "./QButtonToggle/index.js";
7
- import { QCard as L } from "./QCard/index.js";
8
- import { QCheckbox as u } from "./QCheckbox/index.js";
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 T } from "./QCombobox/index.js";
12
- import { QDateTimePicker as y } from "./QDateTimePicker/index.js";
13
- import { QDialog as F } from "./QDialog/index.js";
14
- import { QDropdownMenu as k } from "./QDropdownMenu/index.js";
15
- import { QField as S } from "./QField/index.js";
16
- import { QFileUpload as D } from "./QFileUpload/index.js";
17
- import { QIcon as h, QIconFont as A, QIconImg as M, QIconSvg as O } from "./QIcon/index.js";
18
- import { QInputGroup as j } from "./QInputGroup/index.js";
19
- import { QLabel as z } from "./QLabel/index.js";
20
- import { QLineLoader as H } from "./QLineLoader/index.js";
21
- import { QList as K, QListItem as N, QListItemGroup as V } from "./QList/index.js";
22
- import { QMeter as X } from "./QMeter/index.js";
23
- import { QOverlay as Z } from "./QOverlay/index.js";
24
- import { QPasswordField as $ } from "./QPasswordField/index.js";
25
- import { QPopover as ro } from "./QPopover/index.js";
26
- import { QPropertyList as to, QPropertyListGroup as po, QPropertyListPanel as Qo, QPropertyListRow as mo } from "./QPropertyList/index.js";
27
- import { QRadioButton as fo, QRadioGroup as io } from "./QRadioGroup/index.js";
28
- import { QSelect as ao } from "./QSelect/index.js";
29
- import { QSkeletonLoader as Lo } from "./QSkeletonLoader/index.js";
30
- import { QSpinnerLoader as uo } from "./QSpinnerLoader/index.js";
31
- import { QTextArea as Po } from "./QTextArea/index.js";
32
- import { QTextField as go } from "./QTextField/index.js";
33
- import { QThemeProvider as To } from "./QThemeProvider/index.js";
34
- import { QTooltip as yo } from "./QTooltip/index.js";
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
- n as QButtonGroup,
41
- d as QButtonToggle,
42
- L as QCard,
43
- u as QCheckbox,
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
- T as QCombobox,
47
- y as QDateTimePicker,
48
- F as QDialog,
49
- k as QDropdownMenu,
50
- S as QField,
51
- D as QFileUpload,
52
- h as QIcon,
53
- A as QIconFont,
54
- M as QIconImg,
55
- O as QIconSvg,
56
- j as QInputGroup,
57
- z as QLabel,
58
- H as QLineLoader,
59
- K as QList,
60
- N as QListItem,
61
- V as QListItemGroup,
62
- X as QMeter,
63
- Z as QOverlay,
64
- $ as QPasswordField,
65
- ro as QPopover,
66
- to as QPropertyList,
67
- po as QPropertyListGroup,
68
- Qo as QPropertyListPanel,
69
- mo as QPropertyListRow,
70
- fo as QRadioButton,
71
- io as QRadioGroup,
72
- ao as QSelect,
73
- Lo as QSkeletonLoader,
74
- uo as QSpinnerLoader,
75
- Po as QTextArea,
76
- go as QTextField,
77
- To as QThemeProvider,
78
- yo as QTooltip
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']
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,2BA0B/F"}
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"}
@@ -1,21 +1,17 @@
1
- import { isObject as i } from "./isObject.js";
2
- function f(n = {}, e = {}) {
3
- const t = {};
4
- for (const o in n)
5
- t[o] = n[o];
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[o] = r;
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 t;
13
+ return o;
18
14
  }
19
15
  export {
20
- f as merge
16
+ i as merge
21
17
  };